more warning fixes
flightgear compiles with gcc -Wall -Werror
This commit is contained in:
parent
b3ceb9a2fd
commit
b1a3d8ba16
1 changed files with 2 additions and 3 deletions
|
@ -26,11 +26,10 @@
|
|||
|
||||
int main()
|
||||
{
|
||||
ALCint i,j;
|
||||
ALCint data[MAX_DATA];
|
||||
ALCdevice *device = NULL;
|
||||
ALCcontext *context = NULL;
|
||||
const unsigned char *s;
|
||||
const ALchar *s;
|
||||
ALCenum error;
|
||||
|
||||
device = alcOpenDevice(NULL);
|
||||
|
@ -62,7 +61,7 @@ int main()
|
|||
alcGetError(device);
|
||||
|
||||
printf("\n");
|
||||
if (alcIsExtensionPresent(NULL, (unsigned char *)"ALC_ENUMERATION_EXT") == AL_TRUE)
|
||||
if (alcIsExtensionPresent(NULL, (const ALchar *)"ALC_ENUMERATION_EXT") == AL_TRUE)
|
||||
{
|
||||
s = alcGetString(NULL, ALC_DEVICE_SPECIFIER);
|
||||
printf("ALC_DEVICE_SPECIFIER = \"%s\"\n", s);
|
||||
|
|
Loading…
Add table
Reference in a new issue