Skip to content
Snippets Groups Projects
Commit 9dd79d00 authored by Rye Mutt's avatar Rye Mutt :bread:
Browse files

Fix unknown pragma spam on gcc 8

parent 5b2760c1
No related branches found
No related tags found
No related merge requests found
......@@ -299,11 +299,16 @@ if (LINUX OR DARWIN)
endif (CMAKE_CXX_COMPILER MATCHES ".*clang")
if (CMAKE_COMPILER_IS_GNUCXX)
set(GCC_WARNINGS "-Wall -Wno-sign-compare -Wno-unused-parameter -Wno-unused-but-set-parameter -Wno-deprecated-copy -Wno-ignored-qualifiers -Wno-unused-function -Wnon-virtual-dtor")
set(GCC_WARNINGS "-Wall -Wno-sign-compare -Wno-unused-parameter -Wno-unused-but-set-parameter -Wno-ignored-qualifiers -Wno-unused-function -Wnon-virtual-dtor")
elseif (CMAKE_COMPILER_IS_CLANGXX)
set(GCC_WARNINGS "-Wall -Wno-sign-compare -Wno-trigraphs")
endif()
CHECK_CXX_COMPILER_FLAG(-Wdeprecated-copy HAS_DEPRECATED_COPY)
if (HAS_DEPRECATED_COPY)
set(GCC_WARNINGS "${GCC_WARNINGS} -Wno-deprecated-copy")
endif()
if (NOT GCC_DISABLE_FATAL_WARNINGS)
# set(GCC_WARNINGS "${GCC_WARNINGS} -Werror")
endif (NOT GCC_DISABLE_FATAL_WARNINGS)
......
......@@ -27,7 +27,7 @@
#ifndef LL_LLSTRING_H
#define LL_LLSTRING_H
#if LL_GNUC
#if LL_GNUC && GCC_VERSION >= 90000
#pragma GCC diagnostic push
#pragma GCC diagnostic ignored "-Wdeprecated-copy-dtor"
#endif
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment