1
0
Fork 0

more warning fixes

flightgear compiles with gcc -Wall -Werror
This commit is contained in:
Tim Moore 2009-08-24 00:01:37 +02:00
parent b3ceb9a2fd
commit b1a3d8ba16

View file

@ -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);