assorted warning clean-ups for x86_64, etc (Mikko T.)

This commit is contained in:
Brian Paul
2005-05-07 17:06:49 +00:00
parent 42fa81275c
commit 6f3d16c64a
10 changed files with 68 additions and 67 deletions

View File

@@ -45,3 +45,4 @@ readtex.o: readtex.c readtex.h
clean:
-rm -f $(PROGS)
-rm -f *.o *~
-rm -f readtex.c readtex.h

View File

@@ -14,7 +14,9 @@
#include <windows.h>
#endif
#define GL_GLEXT_LEGACY
#define GL_GLEXT_PROTOTYPES
#include <GL/glut.h>
#include <GL/glext.h>
GLenum doubleBuffer;

View File

@@ -37,7 +37,7 @@ static PPMImage *LoadPPM(const char *filename)
exit(1);
}
if (fscanf(fp, "%d %d", &result->sizeX, &result->sizeY) != 2)
if (fscanf(fp, "%lu %lu", &result->sizeX, &result->sizeY) != 2)
{
fprintf(stderr, "Error loading image `%s'\n", filename);
exit(1);