diff --git a/examples/osglauncher/osglauncher.cpp b/examples/osglauncher/osglauncher.cpp index 793b8b4be..c64f5625e 100644 --- a/examples/osglauncher/osglauncher.cpp +++ b/examples/osglauncher/osglauncher.cpp @@ -194,6 +194,8 @@ class Xample { return app; } + private: + Xample() {} }; // end class Xample diff --git a/examples/osgviewerGLUT/osgviewerGLUT.cpp b/examples/osgviewerGLUT/osgviewerGLUT.cpp index 4bca3c1c1..5fee7d298 100644 --- a/examples/osgviewerGLUT/osgviewerGLUT.cpp +++ b/examples/osgviewerGLUT/osgviewerGLUT.cpp @@ -20,6 +20,8 @@ // Simple example using GLUT to create an OpenGL window and OSG for rendering. // Derived from osgGLUTsimple.cpp and osgkeyboardmouse.cpp +#include + #if defined(_MSC_VER) && defined(OSG_DISABLE_MSVC_WARNINGS) // disable warning "glutCreateMenu_ATEXIT_HACK' : unreferenced local function has been removed" #pragma warning( disable : 4505 ) @@ -29,6 +31,7 @@ #ifdef WIN32 #include #endif + #ifdef __APPLE__ # include #else diff --git a/src/osgPlugins/cfg/ConfigLexer.cpp b/src/osgPlugins/cfg/ConfigLexer.cpp index 166df3804..31c837be6 100644 --- a/src/osgPlugins/cfg/ConfigLexer.cpp +++ b/src/osgPlugins/cfg/ConfigLexer.cpp @@ -9,6 +9,8 @@ #define YY_FLEX_MAJOR_VERSION 2 #define YY_FLEX_MINOR_VERSION 5 +#include + #if defined(_MSC_VER) && defined(OSG_DISABLE_MSVC_WARNINGS) // disable '=' : conversion from 'int' to 'char', possible loss of data style warnings #pragma warning( disable : 4244) diff --git a/src/osgUtil/TriStrip_graph_array.h b/src/osgUtil/TriStrip_graph_array.h index 92bd1191e..21fa3eb22 100644 --- a/src/osgUtil/TriStrip_graph_array.h +++ b/src/osgUtil/TriStrip_graph_array.h @@ -79,6 +79,7 @@ public: class arc { public: + arc() {} arc & mark() { m_Marker = true; return (* this); } arc & unmark() { m_Marker = false; return (* this); } bool marked() const { return m_Marker; }