Fix compile warnings for GwenOpenGLTest and Test_enet_chat_client.

This commit is contained in:
Jeffrey Bingham 2017-09-30 13:13:46 -07:00
parent 6e4707df5f
commit febbb92fb6
2 changed files with 4 additions and 2 deletions

View File

@ -331,7 +331,7 @@ int main()
int majorGlVersion, minorGlVersion;
if (!sscanf((const char*)glGetString(GL_VERSION), "%d.%d", &majorGlVersion, &minorGlVersion)==2)
if (!(sscanf((const char*)glGetString(GL_VERSION), "%d.%d", &majorGlVersion, &minorGlVersion)==2))
{
printf("Exit: Error cannot extract OpenGL version from GL_VERSION string\n");
exit(0);

View File

@ -64,7 +64,7 @@ int main(int argc, char *argv[])
break;
case ENET_EVENT_TYPE_RECEIVE:
printf("A packet of length %u containing '%s' was "
printf("A packet of length %lu containing '%s' was "
"received from %s on channel %u.\n",
event.packet->dataLength,
event.packet->data,
@ -83,6 +83,8 @@ int main(int argc, char *argv[])
event.peer->data = NULL;
break;
case ENET_EVENT_TYPE_NONE:
break;
}
}