From de1031b2647a1a327cae478311c3e8f5cb7f120b Mon Sep 17 00:00:00 2001 From: Robert Osfield Date: Tue, 16 Dec 2008 12:20:19 +0000 Subject: [PATCH] Fixed warnings --- src/osgPlugins/cfg/ConfigParser.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/osgPlugins/cfg/ConfigParser.cpp b/src/osgPlugins/cfg/ConfigParser.cpp index a7ccc1120..3cf642a9b 100644 --- a/src/osgPlugins/cfg/ConfigParser.cpp +++ b/src/osgPlugins/cfg/ConfigParser.cpp @@ -2244,7 +2244,7 @@ bool CameraConfig::parseFile( const std::string &file ) { int pd[2]; - pipe( pd ); + int result = pipe( pd ); flexer = new yyFlexLexer; if( fork() == 0 ) @@ -2252,7 +2252,7 @@ bool CameraConfig::parseFile( const std::string &file ) // we don't want to read from the pipe in the child, so close it. close( pd[0] ); close( 1 ); - dup( pd[1] ); + result = dup( pd[1] ); /* This was here to allow reading a config file from stdin. @@ -2261,7 +2261,7 @@ bool CameraConfig::parseFile( const std::string &file ) execlp( cpp_path, "cpp", "-P", 0L ); else */ - execlp( cpp_path, "cpp", "-P", fileName.c_str(), 0L ); + execlp( cpp_path, "cpp", "-P", fileName.c_str(), NULL ); // This should not execute unless an error happens perror( "execlp" ); @@ -2270,7 +2270,7 @@ bool CameraConfig::parseFile( const std::string &file ) { close( pd[1]); close( 0 ); - dup( pd[0] ); + result = dup( pd[0] ); cfg = this;