Skip to content

Commit

Permalink
Ignore -Wcast-function-type -Wdeprecated-copy
Browse files Browse the repository at this point in the history
  • Loading branch information
tttapa committed Oct 3, 2022
1 parent d77ee98 commit fed7fad
Showing 1 changed file with 17 additions and 1 deletion.
18 changes: 17 additions & 1 deletion src/AH/Settings/Warnings.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,23 @@

#if defined(__GNUC__) && !defined(__clang__)

#if __GNUC__ >= 5
#if __GNUC__ >= 11

#define AH_DIAGNOSTIC_WERROR() \
_Pragma("GCC diagnostic push") _Pragma("GCC diagnostic error \"-Wall\"") \
_Pragma("GCC diagnostic error \"-Wextra\"") \
_Pragma("GCC diagnostic ignored \"-Wc++0x-compat\"")
#define AH_DIAGNOSTIC_POP() _Pragma("GCC diagnostic pop")
#define AH_DIAGNOSTIC_EXTERNAL_HEADER() \
_Pragma("GCC diagnostic push") _Pragma("GCC diagnostic ignored \"-Wall\"") \
_Pragma("GCC diagnostic ignored \"-Wextra\"") \
_Pragma("GCC diagnostic ignored \"-Wsuggest-override\"") _Pragma( \
"GCC diagnostic ignored \"-Wunused-parameter\"") \
_Pragma("GCC diagnostic warning \"-Wcast-function-type\"") \
_Pragma("GCC diagnostic warning \"-Wdeprecated-copy\"")
/* For the last two: see https://github.com/PaulStoffregen/cores/issues/660 */

#elif __GNUC__ >= 5

#define AH_DIAGNOSTIC_WERROR() \
_Pragma("GCC diagnostic push") _Pragma("GCC diagnostic error \"-Wall\"") \
Expand Down

0 comments on commit fed7fad

Please sign in to comment.