summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBrian Paul <brian.paul@tungstengraphics.com>2002-07-12 15:54:19 +0000
committerBrian Paul <brian.paul@tungstengraphics.com>2002-07-12 15:54:19 +0000
commite237491493087e06eddd9da1690b3d163fcf421a (patch)
tree14c2a02b256e18a1f4162c883312410c38eb4e50
parentf02a5f6cc55fc61229a038ac72edb3ce97cb6950 (diff)
silence warnings
-rw-r--r--progs/demos/osdemo.c7
1 files changed, 6 insertions, 1 deletions
diff --git a/progs/demos/osdemo.c b/progs/demos/osdemo.c
index 1827e867d6..25632bc276 100644
--- a/progs/demos/osdemo.c
+++ b/progs/demos/osdemo.c
@@ -1,4 +1,4 @@
-/* $Id: osdemo.c,v 1.8 2002/04/05 17:40:20 kschultz Exp $ */
+/* $Id: osdemo.c,v 1.9 2002/07/12 15:54:19 brianp Exp $ */
/*
* Demo of off-screen Mesa rendering
@@ -24,6 +24,7 @@
#include <stdio.h>
#include <stdlib.h>
+#include <string.h>
#include "GL/osmesa.h"
#include "GL/glut.h"
@@ -152,6 +153,7 @@ static void render_image( void )
}
+#ifdef SAVE_TARGA
static void
write_targa(const char *filename, const GLubyte *buffer, int width, int height)
@@ -192,6 +194,7 @@ write_targa(const char *filename, const GLubyte *buffer, int width, int height)
}
}
+#else
static void
write_ppm(const char *filename, const GLubyte *buffer, int width, int height)
@@ -238,6 +241,8 @@ write_ppm(const char *filename, const GLubyte *buffer, int width, int height)
}
}
+#endif
+
int main( int argc, char *argv[] )