Configuring with "--enable-warnings" broke three demos:
authorRichard Rauch <rkr@olib.org>
Thu, 25 Dec 2003 14:39:38 +0000 (14:39 +0000)
committerRichard Rauch <rkr@olib.org>
Thu, 25 Dec 2003 14:39:38 +0000 (14:39 +0000)
 * CallbackMaker defined, but did not use, the Joystick() function
   (a callback for the freeglut joystick interface).  I uncommented
   the callback-registration.  I assume that it was commented out
   because it was spammy.  (freeglut does joysticks by polling with a
   timer.)  Perhaps a longer interval than 10ms would be advisable?

 * fractals.c used strcpy() without getting the prototype.  Added
   #include <string.h> at the top.

 * fractals_random.c had the same problem as fractals.c.

git-svn-id: svn+ssh://svn.code.sf.net/p/freeglut/code/trunk/freeglut/freeglut@415 7f0cb862-5218-0410-a997-914c9d46530a

progs/demos/CallbackMaker/CallbackMaker.c
progs/demos/Fractals/fractals.c
progs/demos/Fractals_random/fractals_random.c

index 3aede72..e91089b 100644 (file)
@@ -149,7 +149,7 @@ main(int argc, char *argv[])
   glutVisibilityFunc( Visibility );
   glutKeyboardUpFunc( KeyUp );
   glutSpecialUpFunc( SpecialUp );
-//  glutJoystickFunc( Joystick, 10 );
+  glutJoystickFunc( Joystick, 10 );
   glutMouseFunc ( Mouse ) ;
   glutMouseWheelFunc ( MouseWheel ) ;
   glutMotionFunc ( Motion ) ;
index 9ac6641..9bb3bfe 100644 (file)
@@ -21,6 +21,7 @@
 #include <GL/freeglut.h>
 #include <stdio.h>
 #include <stdlib.h>
+#include <string.h>
 #include <math.h>
 
 typedef struct
index f0ea3e0..3799ba0 100644 (file)
@@ -23,6 +23,7 @@
 #include <GL/freeglut.h>
 #include <stdio.h>
 #include <stdlib.h>
+#include <string.h>
 #include <math.h>
 #ifdef WIN32
 #include <crtdbg.h>  // DUMP MEMORY LEAKS