]> git.mxchange.org Git - flightgear.git/commitdiff
more warning fixes
authorTim Moore <timoore@redhat.com>
Sun, 23 Aug 2009 22:01:37 +0000 (00:01 +0200)
committerTim Moore <timoore@redhat.com>
Sun, 23 Aug 2009 22:01:37 +0000 (00:01 +0200)
flightgear compiles with gcc -Wall -Werror

tests/al-info.c

index 9969fcf3b5f1c027de4f0c93a6dfc7985bd41ede..13c68f2048d153db0e5998fe2365751ca16af1d8 100644 (file)
 
 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);