Konstantin Lepa avatar Konstantin Lepa committed 25cc86b

Removed warnings of clang++.

Comments (0)

Files changed (1)

 set(GNUCXX_MAJOR_VERSION 4)
 set(GNUCXX_MINOR_VERSION 2)
 
-option(DEBUG_MODE "Enable debug output" OFF)
 option(TESTING "Enable/Disable testing." ON)
 
-if(DEBUG_MODE)
-  set(CMAKE_BUILD_TYPE DebugFull)
-endif(DEBUG_MODE)
-
 if(NOT CMAKE_BUILD_TYPE)
   set(CMAKE_BUILD_TYPE Release)
 endif(NOT CMAKE_BUILD_TYPE)
   set(CMAKE_CXX_FLAGS_RELWITHDEBINFO "-O2 -g -DNDEBUG")
   set(CMAKE_CXX_FLAGS_RELEASE        "-O2 -DNDEBUG -fomit-frame-pointer")
   set(CMAKE_CXX_FLAGS_DEBUG          "-g -O2 -fno-reorder-blocks -fno-schedule-insns -fno-inline")
-  set(CMAKE_CXX_FLAGS_DEBUGFULL      "-g3 -fno-inline")
-  set(CMAKE_CXX_FLAGS_PROFILE        "-g3 -fno-inline -ftest-coverage -fprofile-arcs")
+  set(CMAKE_CXX_FLAGS_DEBUGFULL      "-g -fno-inline")
+  set(CMAKE_CXX_FLAGS_PROFILE        "-g -fno-inline -ftest-coverage -fprofile-arcs")
 
   set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -Wnon-virtual-dtor -Wno-long-long -ansi -Wundef -Wcast-align -Wchar-subscripts -Wall -Wextra -Wpointer-arith -Wformat-security -fno-common -pedantic")
 
 endif(CMAKE_COMPILER_IS_GNUCXX)
 
+if(CMAKE_CXX_COMPILER MATCHES "clang")
+  set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -Qunused-arguments")
+endif(CMAKE_CXX_COMPILER MATCHES "clang")
+
 if(CMAKE_CXX_COMPILER MATCHES "icpc")
   set(CMAKE_CXX_FLAGS_RELWITHDEBINFO "-O2 -g")
   set(CMAKE_CXX_FLAGS_RELEASE        "-O2 -DNDEBUG")
Tip: Filter by directory path e.g. /media app.js to search for public/media/app.js.
Tip: Use camelCasing e.g. ProjME to search for ProjectModifiedEvent.java.
Tip: Filter by extension type e.g. /repo .js to search for all .js files in the /repo directory.
Tip: Separate your search with spaces e.g. /ssh pom.xml to search for src/ssh/pom.xml.
Tip: Use ↑ and ↓ arrow keys to navigate and return to view the file.
Tip: You can also navigate files with Ctrl+j (next) and Ctrl+k (previous) and view the file with Ctrl+o.
Tip: You can also navigate files with Alt+j (next) and Alt+k (previous) and view the file with Alt+o.