]> https://gitweb.dealii.org/ - dealii.git/commitdiff
Fix DEAL_II_COMPILER_HAS_ATTRIBUTE_ALWAYS_INLINE with -Werror
authorDaniel Arndt <arndtd@ornl.gov>
Fri, 10 Feb 2023 04:09:01 +0000 (23:09 -0500)
committerDaniel Arndt <arndtd@ornl.gov>
Fri, 10 Feb 2023 04:09:01 +0000 (23:09 -0500)
cmake/checks/check_02_compiler_features.cmake

index 990eb0f77c8e506830d2d359e20857cd015498c9..52553b2cd432e300fce88046afef4d7c72ce8ed6 100644 (file)
@@ -276,7 +276,7 @@ endif()
 #
 CHECK_CXX_SOURCE_COMPILES(
   "
-          __attribute__((always_inline)) int fn () { return 0; }
+          __attribute__((always_inline)) inline int fn () { return 0; }
           int main () { return fn(); }
   "
   DEAL_II_COMPILER_HAS_ATTRIBUTE_ALWAYS_INLINE

In the beginning the Universe was created. This has made a lot of people very angry and has been widely regarded as a bad move.

Douglas Adams


Typeset in Trocchi and Trocchi Bold Sans Serif.