diff --git a/examples/osglauncher/osglauncher.cpp b/examples/osglauncher/osglauncher.cpp index b45d7df6d..d3c23902b 100644 --- a/examples/osglauncher/osglauncher.cpp +++ b/examples/osglauncher/osglauncher.cpp @@ -237,7 +237,7 @@ int runApp(std::string xapp) } // end printList() -void readConfFile(char* confFile) // read confFile 1 +void readConfFile(const char* confFile) // read confFile 1 { osg::notify(osg::INFO) << "Start reading confFile" << std::endl; diff --git a/src/osg/Array.cpp b/src/osg/Array.cpp index 9db0fada7..5b157678e 100644 --- a/src/osg/Array.cpp +++ b/src/osg/Array.cpp @@ -14,7 +14,7 @@ using namespace osg; -static char* s_ArrayNames[] = +static const char* s_ArrayNames[] = { "Array", // 0 "ByteArray", // 1