# - Wolfgang Bangerth, 2012
#
-# some compilers compile the attributes but they do not work:
+# some compilers compile the attributes but they do not work
+# so we treat errors as warnings:
# "warning: use of the 'deprecated' attribute is a C++14 extension" (clang in c++11 mode)
# "warning #1292: unknown attribute "deprecated"" (icc)
PUSH_CMAKE_REQUIRED("${DEAL_II_CXX_FLAGS}")
PUSH_CMAKE_REQUIRED("-Werror")
-PUSH_CMAKE_REQUIRED("-Wno-deprecated-declarations")
-PUSH_CMAKE_REQUIRED("-Wno-deprecated")
PUSH_CMAKE_REQUIRED("-Wno-unused-command-line-argument")
# first see if the compiler accepts the attribute
"
[[deprecated]] int old_fn ();
int old_fn () { return 0; }
- int (*fn_ptr)() = old_fn;
struct [[deprecated]] bob
{
"
__attribute__((deprecated)) int old_fn ();
int old_fn () { return 0; }
- int (*fn_ptr)() = old_fn;
struct __attribute__((deprecated)) bob
{