diff --git a/build/premake/premake.lua b/build/premake/premake.lua index 0c40486f7e..83d4ab5683 100755 --- a/build/premake/premake.lua +++ b/build/premake/premake.lua @@ -250,6 +250,7 @@ function setuppackage_engine (projectname) package.buildoptions = { "-Wall", + "-Wunused-parameter", -- needs to be enabled explicitly "-Wno-switch", -- enumeration value not handled in switch "-Wno-reorder", -- order of initialization list in constructors "-Wno-non-virtual-dtor", diff --git a/source/ps/ProfileViewer.h b/source/ps/ProfileViewer.h index 1de16af117..ec838784f3 100644 --- a/source/ps/ProfileViewer.h +++ b/source/ps/ProfileViewer.h @@ -106,7 +106,7 @@ public: * * @return true if the row should be highlighted in a special color. */ - virtual bool IsHighlightRow(uint row) { return false; } + virtual bool IsHighlightRow(uint row) { UNUSED2(row); return false; } }; diff --git a/source/renderer/Renderer.cpp b/source/renderer/Renderer.cpp index c5b886b334..dc6d7152a1 100755 --- a/source/renderer/Renderer.cpp +++ b/source/renderer/Renderer.cpp @@ -169,7 +169,7 @@ CStr CRendererStatsTable::GetCellText(uint row, uint col) } } -AbstractProfileTable* CRendererStatsTable::GetChild(uint row) +AbstractProfileTable* CRendererStatsTable::GetChild(uint UNUSED(row)) { return 0; }