Warning fixes

This commit is contained in:
Robert Osfield
2007-12-13 16:06:02 +00:00
parent 831dc38166
commit 3bfa74222b
2 changed files with 5 additions and 10 deletions

View File

@@ -34,7 +34,8 @@
namespace osgProducer {
#define notImplemented {std::cout << __FILE__ << " " << __LINE__ << std::endl;}
struct CameraGroup : public osg::Referenced {
class CameraGroup : public osg::Referenced {
public:
enum ThreadModel {
SingleThreaded,
ThreadPerRenderSurface,
@@ -44,7 +45,8 @@ namespace osgProducer {
};
struct InputArea : public osg::Referenced {
class InputArea : public osg::Referenced {
public:
void addRenderSurface(RenderSurface* s) { _rs.push_back(s); }
std::vector<osg::ref_ptr<RenderSurface> > _rs;
};

View File

@@ -1116,14 +1116,7 @@ yydestruct (yytype, yyvaluep)
/* Pacify ``unused variable'' warnings. */
(void) yyvaluep;
switch (yytype)
{
default:
break;
}
}
/* Prevent warnings from -Wmissing-prototypes. */
@@ -2239,7 +2232,7 @@ bool CameraConfig::parseFile( const std::string &file )
#if defined (SUPPORT_CPP)
char *cpp_path =
const char *cpp_path =
#if defined(__APPLE__)
"/usr/bin/cpp";
#else