From 119d40642c13259995ee7f51fc7d887b09debd85 Mon Sep 17 00:00:00 2001 From: Marcus Fritzsch Date: Fri, 9 Jun 2017 15:52:36 +0200 Subject: cmake: visibility is hidden, do not warn about comments Signed-off-by: Marcus Fritzsch --- CMakeLists.txt | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'CMakeLists.txt') diff --git a/CMakeLists.txt b/CMakeLists.txt index 3e9ee9e..ed26d05 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -42,8 +42,8 @@ endmacro() add_definitions(-D_GNU_SOURCE -DDEBUG_OUTPUT) -set(CMAKE_C_FLAGS "-Wall -fvisibility=hidden -Wextra -Wno-unused-parameter -std=c99 ${CMAKE_C_FLAGS}") -set(CMAKE_CXX_FLAGS "-Wall -fvisibility=hidden -Wextra -Wno-unused-parameter -std=c++14 ${CMAKE_CXX_FLAGS}") +set(CMAKE_C_FLAGS "-Wall -Wextra -Wno-comment -Wno-unused-parameter -fvisibility=hidden -std=c99 ${CMAKE_C_FLAGS}") +set(CMAKE_CXX_FLAGS "-Wall -Wextra -Wno-comment -Wno-unused-parameter -fvisibility=hidden -std=c++14 ${CMAKE_CXX_FLAGS}") set(SANITIZER_MODE "none" CACHE STRING "Build using a specific sanitizer (e.g. 'address', 'thread', 'leak', 'undefined'), depends on compiler; default none") if (NOT ${SANITIZER_MODE} STREQUAL "none" AND NOT ${SANITIZER_MODE} STREQUAL "") -- cgit 1.2.3-korg