From c5352b93043031cff7c5a7f83353a25862c69221 Mon Sep 17 00:00:00 2001 From: Daniel Arndt Date: Sun, 22 Jul 2018 11:44:02 +0200 Subject: [PATCH] Rephrase comment --- cmake/checks/check_02_compiler_features.cmake | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/cmake/checks/check_02_compiler_features.cmake b/cmake/checks/check_02_compiler_features.cmake index d826c38119..c544740c28 100644 --- a/cmake/checks/check_02_compiler_features.cmake +++ b/cmake/checks/check_02_compiler_features.cmake @@ -290,10 +290,11 @@ ENDIF() # - Wolfgang Bangerth, 2012 # -# some compilers compile the attributes but they do not work -# so we treat errors as warnings: +# Some compilers swallow the deprecation attribute, but emit a warning saying +# that it is actually not supported such as: # "warning: use of the 'deprecated' attribute is a C++14 extension" (clang in c++11 mode) # "warning #1292: unknown attribute "deprecated"" (icc) +# Hence, we treat warnings as errors: PUSH_CMAKE_REQUIRED("${DEAL_II_CXX_FLAGS}") PUSH_CMAKE_REQUIRED("-Werror") PUSH_CMAKE_REQUIRED("-Wno-unused-command-line-argument") -- 2.39.5