Skip to content

Commit d412dc0

Browse files
committed
Fix a warning regarding C compilation
1 parent a41629f commit d412dc0

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

CMakeLists.txt

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,8 @@ else (MSVC)
3434
set(CPPLINT_ARG_OUTPUT "--output=eclipse")
3535
set(CPPCHECK_ARG_TEMPLATE "--template=gcc")
3636
# Useful compile flags and extra warnings
37-
add_compile_options(-fstack-protector -Wall -Wextra -Wpedantic -Wno-long-long -Wswitch-enum -Wshadow -Winline -Wno-c++0x-compat)
37+
add_compile_options(-fstack-protector -Wall -Wextra -Wpedantic -Wno-long-long -Wswitch-enum -Wshadow -Winline)
38+
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -Wno-c++0x-compat") # C++ only
3839
if (CMAKE_COMPILER_IS_GNUCXX)
3940
# GCC flags
4041
if (SQLITECPP_USE_GCOV AND CMAKE_COMPILER_IS_GNUCXX)

0 commit comments

Comments
 (0)