Salome HOME
#18963 Minimize compiler warnings
[modules/smesh.git] / src / MEDWrapper / MED_Structures.cxx
index a0e91f4a3e130bd2b7addb419ec29701f65c2627..aa7777c10702cf4139ae7a449bd5e03f16c4dfb3 100644 (file)
@@ -352,10 +352,10 @@ namespace MED
   TGaussInfo::TLess
   ::operator()(const TGaussInfo& theLeft, const TGaussInfo& theRight) const
   {
-    if(!&theLeft)
+    if(!&theLeft)    // todo: address of reference can be assumed always non-null by compiler
       return true;
 
-    if(!&theRight)
+    if(!&theRight)   // todo: address of reference can be assumed always non-null by compiler
       return false;
 
     if(theLeft.myGeom != theRight.myGeom)
@@ -644,13 +644,14 @@ namespace MED
       switch(aDim){
       case 3:
         aCoord[2] = myCoord[aDim*theId+2];
+        // fall through
       case 2:
         aCoord[1] = myCoord[aDim*theId+1];
-      case 1:{
+        // fall through
+      case 1:
         aCoord[0] = myCoord[aDim*theId];
         break;
       }
-      }
     } else {
 
       TFloatVector aVecX  = this->GetIndexes(0);