Salome HOME
#18963 Minimize compiler warnings
[modules/kernel.git] / src / DSC / DSC_User / Datastream / Calcium / CalciumGenericProvidesPort.hxx
old mode 100755 (executable)
new mode 100644 (file)
index 135447e..c6176aa
@@ -1,4 +1,4 @@
-// Copyright (C) 2007-2014  CEA/DEN, EDF R&D, OPEN CASCADE
+// Copyright (C) 2007-2020  CEA/DEN, EDF R&D, OPEN CASCADE
 //
 // Copyright (C) 2003-2007  OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN,
 // CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS
       return POA_Ports::PortProperties::_this();                        \
     }                                                                   \
                                                                         \
-    virtual void set_property(const char * name, const CORBA::Any& value) \
-      throw (Ports::NotDefined, Ports::BadType, Ports::BadValue);       \
+    virtual void set_property(const char * name, const CORBA::Any& value); \
                                                                         \
-    virtual CORBA::Any* get_property(const char* name)                  \
-      throw (Ports::NotDefined);                                        \
+    virtual CORBA::Any* get_property(const char* name);                        \
                                                                         \
-    virtual void provides_port_changed(int connection_nbr,              \
+    virtual void provides_port_changed(int /*connection_nbr*/,          \
                                        const Engines::DSC::Message message) { \
       if ( message == Engines::DSC::AddingConnection)                   \
         {                                                               \
 
 #define CALCIUM_GENERIC_PROVIDES_PORT_CXX(specificPortName)             \
                                                                         \
-  specificPortName::~specificPortName(void) {};                         \
+  specificPortName::~specificPortName(void) {}                         \
                                                                         \
   void specificPortName::set_property(const char * name,  const CORBA::Any& value) \
-    throw (Ports::NotDefined, Ports::BadType, Ports::BadValue) {        \
+  {                                                                     \
                                                                         \
     const std::string key(name);                                        \
     CORBA::Long sl;                                                     \
                                                                         \
                                                                         \
   CORBA::Any* specificPortName::get_property(const char* name)          \
-    throw (Ports::NotDefined) {                                         \
+  {                                                                     \
     const std::string key(name);                                        \
     CORBA::Any* value=new CORBA::Any;                                   \
     if (key == "StorageLevel"    )                                      \
       throw Ports::NotDefined();                                        \
     }                                                                   \
     return value;                                                       \
-  };                                            
+  }                                            
                                                                         
 
 #endif