Fix some warnings
[scilab.git] / scilab / modules / hdf5 / sci_gateway / cpp / sci_export_to_hdf5.cpp
index e6df17e..7e6dc24 100644 (file)
@@ -456,7 +456,11 @@ static bool export_list(int* pvCtx, int _iH5File, int *_piVar, char* _pstName, i
 
 static bool export_hypermat(int* pvCtx, int _iH5File, int *_piVar, char* _pstName)
 {
-    char* strHypermat[] = {"hm", "dims", "entries"};
+    char HM [] = "hm";
+    char DIMS [] = "dims";
+    char ENTRIES [] = "entries";
+
+    char* strHypermat [] = {HM, DIMS, ENTRIES};
 
     int iVarType    = sci_mlist;
     int iRet        = 0;
@@ -814,23 +818,23 @@ static bool export_ints(int* pvCtx, int _iH5File, int *_piVar, char* _pstName)
             iRet = writeUnsignedInteger32Matrix(_iH5File, _pstName, 2, piDims, (unsigned int*)piData);
             break;
         case SCI_INT64 :
-            //sciErr = getMatrixOfInteger64(_piVar, &piDims[0], &piDims[1], (long long**)&piData);
-            //if(sciErr.iErr)
-            //{
-            // printError(&sciErr, 0);
-            // return false;
-            //}
-            //iRet = writeInteger64Matrix(_iH5File, _pstName, 2, piDims, (long long*)piData);
-            //break;
+        //sciErr = getMatrixOfInteger64(_piVar, &piDims[0], &piDims[1], (long long**)&piData);
+        //if(sciErr.iErr)
+        //{
+        //     printError(&sciErr, 0);
+        //     return false;
+        //}
+        //iRet = writeInteger64Matrix(_iH5File, _pstName, 2, piDims, (long long*)piData);
+        //break;
         case SCI_UINT64 :
-            //sciErr = getMatrixOfUnsignedInteger64(_piVar, &piDims[0], &piDims[1], (unsigned long long**)&piData);
-            //if(sciErr.iErr)
-            //{
-            // printError(&sciErr, 0);
-            // return false;
-            //}
-            //iRet = writeUnsignedInteger64Matrix(_iH5File, _pstName, 2, piDims, (unsigned long long*)piData);
-            //break;
+        //sciErr = getMatrixOfUnsignedInteger64(_piVar, &piDims[0], &piDims[1], (unsigned long long**)&piData);
+        //if(sciErr.iErr)
+        //{
+        //     printError(&sciErr, 0);
+        //     return false;
+        //}
+        //iRet = writeUnsignedInteger64Matrix(_iH5File, _pstName, 2, piDims, (unsigned long long*)piData);
+        //break;
         default :
             return 1;
             break;