diff options
author | Julien Isorce <julien.isorce@gmail.com> | 2008-06-20 00:05:48 +0000 |
---|---|---|
committer | David Schleef <ds@schleef.org> | 2008-07-15 14:21:37 -0700 |
commit | 1cf72768b73d9f31a5984b077f9a8086341b4b86 (patch) | |
tree | fa9079c8ddbee556a6b895b0afde539de8f3cbd4 | |
parent | 47be596621d71ec1404f25ae7bce6a99dd1b23f0 (diff) |
remove 1 warning
git-svn-id: svn://svn.wobow.com/GStreamer_playground/gst-plugins-gl@535 93df14bb-0f41-7a43-8087-d3e2a2f0e464
-rw-r--r-- | gst-libs/gst/freeglut/freeglut_main.c | 14 | ||||
-rw-r--r-- | unix/codeblocks/gstopengl/gstopengl.cbp | 2 |
2 files changed, 9 insertions, 7 deletions
diff --git a/gst-libs/gst/freeglut/freeglut_main.c b/gst-libs/gst/freeglut/freeglut_main.c index 50641f6..1ebe3ba 100644 --- a/gst-libs/gst/freeglut/freeglut_main.c +++ b/gst-libs/gst/freeglut/freeglut_main.c @@ -1,4 +1,4 @@ -/*
+/*
* GStreamer
* Copyright (C) 2008 Julien Isorce <julien.isorce@gmail.com>
*
@@ -76,7 +76,7 @@ struct GXKeyList gxKeyList; #endif
#if TARGET_HOST_UNIX_X11
-#include <sys/time.h>
+#include <sys/time.h>
#include <unistd.h>
#endif
@@ -234,7 +234,7 @@ static void fghcbDisplayWindow( SFG_Window *window, INVOKE_WCB( *window, Reshape, ( window->State.Width, window->State.Height ) );
glViewport( 0, 0, window->State.Width, window->State.Height );
}
-
+
window->State.NeedToResize = GL_FALSE;
window->State.Visible = GL_TRUE;
BeginPaint( window->Window.Handle, &ps );
@@ -441,7 +441,7 @@ static void fghSleepForEvents( void ) void FGAPIENTRY glutMainLoopEvent( void )
{
#if TARGET_HOST_UNIX_X11
- SFG_Window* window;
+ SFG_Window* window=NULL;
XEvent event;
/* This code was repeated constantly, so here it goes into a definition: */
@@ -573,7 +573,7 @@ void FGAPIENTRY glutMainLoopEvent( void ) */
switch( event.xvisibility.state )
{
- case VisibilityUnobscured:
+ case VisibilityUnobscured:
window->State.Visible = GL_TRUE;
break;
@@ -620,7 +620,7 @@ void FGAPIENTRY glutMainLoopEvent( void ) return;
}
-
+
TranslateMessage( &stMsg );
DispatchMessage( &stMsg );
}
@@ -675,7 +675,7 @@ void FGAPIENTRY glutMainLoop( void ) while( fgState.ExecState == GLUT_EXEC_STATE_RUNNING )
{
SFG_Window *window;
-
+
glutMainLoopEvent( );
window = ( SFG_Window * )fgStructure.Windows.First;
diff --git a/unix/codeblocks/gstopengl/gstopengl.cbp b/unix/codeblocks/gstopengl/gstopengl.cbp index 34b4dd7..c913e15 100644 --- a/unix/codeblocks/gstopengl/gstopengl.cbp +++ b/unix/codeblocks/gstopengl/gstopengl.cbp @@ -16,6 +16,7 @@ <Option createDefFile="1" /> <Option createStaticLib="1" /> <Compiler> + <Add option="-Wall" /> <Add option="-g" /> </Compiler> </Target> @@ -36,6 +37,7 @@ </Build> <Compiler> <Add option="-Wall" /> + <Add option="-g" /> <Add option="-DHAVE_CONFIG_H" /> <Add directory="/usr/lib/glib-2.0/include" /> <Add directory="/usr/include/glib-2.0" /> |