]> SALOME platform Git repositories - modules/shaper.git/blobdiff - src/ModuleBase/ModuleBase_WidgetLabel.cpp
Salome HOME
Get rid of compilation warnings. Part I.
[modules/shaper.git] / src / ModuleBase / ModuleBase_WidgetLabel.cpp
index bb2bd26c8272937b9b91b9d1c6d523990af0ef74..7a47835c8a1b984de1fdc6aa9939ef5db144f1f2 100644 (file)
@@ -84,7 +84,10 @@ bool ModuleBase_WidgetLabel::restoreValueCustom()
         std::wstring aWStr((wchar_t*)aStr);
         static const int aBufSize = 1000;
         static char aMBStr[aBufSize];
-        size_t aLen = wcstombs(aMBStr, aWStr.c_str(), aBufSize);
+#ifdef _DEBUG
+        size_t aLen =
+#endif
+          wcstombs(aMBStr, aWStr.c_str(), aBufSize);
         std::string aCodec = Config_Translator::codec("");
         aText = QTextCodec::codecForName(aCodec.c_str())->toUnicode(aMBStr);
       } else {