Skip to content
Commit e0185d4c authored by Andrew Boie's avatar Andrew Boie Committed by Anas Nashif
Browse files

toolchain: gcc: add __DEPRECATED_MACRO



Add a macro which signals to the compiler that use of the macro is
deprecated.

Example:

  #define FOO __DEPRECATED_MACRO bar

Defines FOO to 'bar' but emits a warning if used in code.

Cannot filter out with -Wno-deprecated, so be careful with -Werror.

Signed-off-by: default avatarAndrew Boie <andrew.p.boie@intel.com>
parent 2f28bf53
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment