diff --git a/include/toolchain/gcc.h b/include/toolchain/gcc.h index bc3baaf93d4..d02fda11fa1 100644 --- a/include/toolchain/gcc.h +++ b/include/toolchain/gcc.h @@ -209,7 +209,9 @@ do { \ /* Be *very* careful with this, you cannot filter out with -wno-deprecated, * which has implications for -Werror */ +#ifndef __DEPRECATED_MACRO #define __DEPRECATED_MACRO _Pragma("GCC warning \"Macro is deprecated\"") +#endif /* These macros allow having ARM asm functions callable from thumb */