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()
|
int main()
|
||||||
{
|
{
|
||||||
ALCint i,j;
|
|
||||||
ALCint data[MAX_DATA];
|
ALCint data[MAX_DATA];
|
||||||
ALCdevice *device = NULL;
|
ALCdevice *device = NULL;
|
||||||
ALCcontext *context = NULL;
|
ALCcontext *context = NULL;
|
||||||
const unsigned char *s;
|
const ALchar *s;
|
||||||
ALCenum error;
|
ALCenum error;
|
||||||
|
|
||||||
device = alcOpenDevice(NULL);
|
device = alcOpenDevice(NULL);
|
||||||
|
@ -62,7 +61,7 @@ int main()
|
||||||
alcGetError(device);
|
alcGetError(device);
|
||||||
|
|
||||||
printf("\n");
|
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);
|
s = alcGetString(NULL, ALC_DEVICE_SPECIFIER);
|
||||||
printf("ALC_DEVICE_SPECIFIER = \"%s\"\n", s);
|
printf("ALC_DEVICE_SPECIFIER = \"%s\"\n", s);
|
||||||
|
|
Loading…
Add table
Reference in a new issue