From 4d2ccdfb728950bd8f9b338a0ff5fcdeb8c137a2 Mon Sep 17 00:00:00 2001 From: wmayer Date: Thu, 22 Sep 2016 14:24:38 +0200 Subject: [PATCH] fix -Wextra in Main & Complete --- src/Main/FreeCADGuiPy.cpp | 2 +- src/Mod/Complete/Gui/Command.cpp | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/Main/FreeCADGuiPy.cpp b/src/Main/FreeCADGuiPy.cpp index 08dc6423b..37f7ae34c 100644 --- a/src/Main/FreeCADGuiPy.cpp +++ b/src/Main/FreeCADGuiPy.cpp @@ -238,7 +238,7 @@ struct PyMethodDef FreeCADGui_methods[] = { "an event loop or showing up any GUI\n"}, {"embedToWindow",FreeCADGui_embedToWindow,METH_VARARGS, "embedToWindow() -- Embeds the main window into another window\n"}, - {NULL, NULL} /* sentinel */ + {NULL, NULL, 0, NULL} /* sentinel */ }; static diff --git a/src/Mod/Complete/Gui/Command.cpp b/src/Mod/Complete/Gui/Command.cpp index 03a6f239e..0073df44c 100644 --- a/src/Mod/Complete/Gui/Command.cpp +++ b/src/Mod/Complete/Gui/Command.cpp @@ -50,9 +50,9 @@ CmdCompleteConstraintAxle::CmdCompleteConstraintAxle() void CmdCompleteConstraintAxle::activated(int iMsg) { + Q_UNUSED(iMsg); // load the file with the module //Command::doCommand(Command::Gui, "import Complete, CompleteGui"); - }