]> SALOME platform Git repositories - modules/gui.git/commitdiff
Salome HOME
remove warnings
authoradam <adam>
Tue, 23 Mar 2010 15:11:13 +0000 (15:11 +0000)
committeradam <adam>
Tue, 23 Mar 2010 15:11:13 +0000 (15:11 +0000)
src/OBJECT/SALOME_InteractiveObject.hxx
src/SUITApp/SUITApp.cxx
src/Session/SALOME_Session_Server.cxx
src/Session/Session_ServerThread.cxx

index ed938b85300e39cab0a96163d05fd01870974b5e..5abe2100a76e2c521550f3f624ffaca96e539a07 100755 (executable)
@@ -35,6 +35,9 @@
 #ifdef VERSION
 #undef VERSION
 #endif
+#ifdef HAVE_FINITE
+#undef HAVE_FINITE
+#endif
 #include <Standard.hxx>
 #endif
 #ifndef _Handle_SALOME_InteractiveObject_HeaderFile
index 604eff9c55835ed7f13aa6f17d65d4bed7ace9e3..55c744878bee9a0168a96b12108182e68723b4c0 100644 (file)
@@ -93,29 +93,29 @@ static QString salomeVersion()
   return ver;
 }
 
-static void MessageOutput( QtMsgType type, const char* msg )
-{
-  switch ( type )
-  {
-  case QtDebugMsg:
-#ifdef _DEBUG_
-    printf( "Debug: %s\n", msg );
-#endif
-    break;
-  case QtWarningMsg:
-#ifdef _DEBUG_
-    printf( "Warning: %s\n", msg );
-#endif
-    break;
-  case QtFatalMsg:
-#ifdef _DEBUG_
-    printf( "Fatal: %s\n", msg );
-#endif
-    break;
-  default:
-    break;
-  }
-}
+// static void MessageOutput( QtMsgType type, const char* msg )
+// {
+//   switch ( type )
+//   {
+//   case QtDebugMsg:
+// #ifdef _DEBUG_
+//     printf( "Debug: %s\n", msg );
+// #endif
+//     break;
+//   case QtWarningMsg:
+// #ifdef _DEBUG_
+//     printf( "Warning: %s\n", msg );
+// #endif
+//     break;
+//   case QtFatalMsg:
+// #ifdef _DEBUG_
+//     printf( "Fatal: %s\n", msg );
+// #endif
+//     break;
+//   default:
+//     break;
+//   }
+// }
 
 /* XPM */
 static const char* pixmap_not_found_xpm[] = {
index b9fdb1525c0806e341932c0a870ba32bd3123018..5d42b4661b7d4f039e92bdca930500565b3c35c3 100755 (executable)
@@ -597,7 +597,7 @@ int main( int argc, char **argv )
     // std::cerr << "Caught unexpected exception on destroy : ignored !!" << std::endl;
   }
 
-  PyGILState_STATE gstate = PyGILState_Ensure();
+  PyGILState_Ensure();
   //Destroy orb from python (for chasing memory leaks)
   //PyRun_SimpleString("from omniORB import CORBA");
   //PyRun_SimpleString("orb=CORBA.ORB_init([''], CORBA.ORB_ID)");
index 83f6c2de8314e0a58f64e896c023440e1db5141e..39e33ba9d388922a1f177f11cf6fee8400208bee 100755 (executable)
@@ -297,7 +297,7 @@ void Session_ServerThread::ActivateContainerManager(int argc,
   try {
     PortableServer::POA_var root_poa=PortableServer::POA::_the_root_poa();
     cout << "Activate SalomeLauncher ......!!!! " << endl;
-    SALOME_Launcher * myContainer = new SALOME_Launcher(_orb,root_poa);
+    new SALOME_Launcher(_orb,root_poa);
   }
   catch(CORBA::SystemException&) {
     INFOS("Caught CORBA::SystemException.");
@@ -370,8 +370,7 @@ void Session_ServerThread::ActivateContainer(int argc,
       containerName = argv[1];
     }
     
-    Engines_Container_i * myContainer 
-      = new Engines_Container_i(_orb, _root_poa, containerName , argc , argv , true , false);
+    new Engines_Container_i(_orb, _root_poa, containerName , argc , argv , true , false);
   }
   catch(CORBA::SystemException&) {
     INFOS("Caught CORBA::SystemException.");