From 1753cbb81ba4e21caa74376171b8ed8e4a50544d Mon Sep 17 00:00:00 2001 From: xia-chu <771730766@qq.com> Date: Sat, 21 Sep 2024 18:14:18 +0800 Subject: [PATCH] Add compile options: -Wno-comment --- CMakeLists.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index d37d1a04..b4d6cdd0 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -193,7 +193,7 @@ if(UNIX) "-fPIC" "-Wall;-Wextra" "-Wno-unused-function;-Wno-unused-parameter;-Wno-unused-variable;-Wno-deprecated-declarations" - "-Wno-error=extra;-Wno-error=missing-field-initializers;-Wno-error=type-limits") + "-Wno-error=extra;-Wno-error=missing-field-initializers;-Wno-error=type-limits;-Wno-comment") if("${CMAKE_BUILD_TYPE}" STREQUAL "Debug") set(COMPILE_OPTIONS_DEFAULT ${COMPILE_OPTIONS_DEFAULT} "-g3")