From: Richard Rauch Date: Thu, 25 Dec 2003 14:39:38 +0000 (+0000) Subject: Configuring with "--enable-warnings" broke three demos: X-Git-Url: http://git.mutantstargoat.com/user/nuclear/?a=commitdiff_plain;h=1d883926ef0bf15e6af94957f01ea8e7ef6088a5;p=freeglut Configuring with "--enable-warnings" broke three demos: * 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 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 --- diff --git a/progs/demos/CallbackMaker/CallbackMaker.c b/progs/demos/CallbackMaker/CallbackMaker.c index 3aede72..e91089b 100644 --- a/progs/demos/CallbackMaker/CallbackMaker.c +++ b/progs/demos/CallbackMaker/CallbackMaker.c @@ -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 ) ; diff --git a/progs/demos/Fractals/fractals.c b/progs/demos/Fractals/fractals.c index 9ac6641..9bb3bfe 100644 --- a/progs/demos/Fractals/fractals.c +++ b/progs/demos/Fractals/fractals.c @@ -21,6 +21,7 @@ #include #include #include +#include #include typedef struct diff --git a/progs/demos/Fractals_random/fractals_random.c b/progs/demos/Fractals_random/fractals_random.c index f0ea3e0..3799ba0 100644 --- a/progs/demos/Fractals_random/fractals_random.c +++ b/progs/demos/Fractals_random/fractals_random.c @@ -23,6 +23,7 @@ #include #include #include +#include #include #ifdef WIN32 #include // DUMP MEMORY LEAKS