From 114f44af2451a60245196b8d364ae606aa0abe2f Mon Sep 17 00:00:00 2001 From: Max Lyon Date: Fri, 2 Dec 2016 17:37:54 +0100 Subject: [PATCH] disable unused parameter warning for clang --- CMakeLists.txt | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/CMakeLists.txt b/CMakeLists.txt index d94a979..00f3882 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -372,6 +372,11 @@ if (WIN32) ) endif () +if ("${CMAKE_CXX_COMPILER_ID}" STREQUAL "Clang") + # disable unused parameter warning + add_definitions(-DWno-unused-parameter) +endif() + # collect all header,source and ui files acg_append_files (headers "*.hh" ${directories}) acg_append_files (sources "*.cc" ${directories}) -- GitLab