Skip to content
Snippets Groups Projects
Commit c21803e7 authored by Christophe Geuzaine's avatar Christophe Geuzaine
Browse files

fix warnings

parent 82640ec1
No related branches found
No related tags found
No related merge requests found
...@@ -60,17 +60,17 @@ void GmshRemote::runCommand(int commandIndex, int optionIndex, int optionChoice) ...@@ -60,17 +60,17 @@ void GmshRemote::runCommand(int commandIndex, int optionIndex, int optionChoice)
std::string meshArg = meshFileName.empty() ? "" : ReplacePercentS std::string meshArg = meshFileName.empty() ? "" : ReplacePercentS
(meshFileSwitch, std::string("\"") + FixWindowsPath(meshFileName) + "\""); (meshFileSwitch, std::string("\"") + FixWindowsPath(meshFileName) + "\"");
if(commandIndex < 0 || commandIndex >= buttonSwitch.size()){ if(commandIndex < 0 || commandIndex >= (int)buttonSwitch.size()){
Msg::Error("Wrong command index"); Msg::Error("Wrong command index");
return; return;
} }
if(optionIndex < 0 || optionIndex >= optionValue.size()){ if(optionIndex < 0 || optionIndex >= (int)optionValue.size()){
Msg::Error("Wrong option index"); Msg::Error("Wrong option index");
return; return;
} }
if(optionChoice < 0 || optionChoice >= optionValue[optionIndex].size()){ if(optionChoice < 0 || optionChoice >= (int)optionValue[optionIndex].size()){
Msg::Error("Wrong option choice"); Msg::Error("Wrong option choice");
return; return;
} }
......
...@@ -114,7 +114,7 @@ PView *GMSH_TetrahedralizePlugin::execute(PView *v) ...@@ -114,7 +114,7 @@ PView *GMSH_TetrahedralizePlugin::execute(PView *v)
return v1; return v1;
} }
if(points.size() != out.numberofpoints){ if(out.numberofpoints != (int)points.size()){
Msg::Error("Tetrahedralization added points (%d -> %d): aborting", Msg::Error("Tetrahedralization added points (%d -> %d): aborting",
points.size(), out.numberofpoints); points.size(), out.numberofpoints);
return v1; return v1;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment