diff options
author | Nikolai Merinov <n.merinov@inango-systems.com> | 2018-11-07 21:02:27 +0000 |
---|---|---|
committer | Jeff Law <law@gcc.gnu.org> | 2018-11-07 14:02:27 -0700 |
commit | e217792beda1ca48daea497c00694a3924f992c5 (patch) | |
tree | a9b3a57a076c540e02affb6a305a3f52f651f185 /gcc/common.opt | |
parent | 285556b5599bc180ad7a7ba1bb5f226b558ab32d (diff) | |
download | gcc-e217792beda1ca48daea497c00694a3924f992c5.zip gcc-e217792beda1ca48daea497c00694a3924f992c5.tar.gz gcc-e217792beda1ca48daea497c00694a3924f992c5.tar.bz2 |
common.opt: Add -Wattribute-warning.
* common.opt: Add -Wattribute-warning.
* doc/invoke.texi: Add documentation for -Wno-attribute-warning.
* expr.c (expand_expr_real_1): Add new attribute to warning_at
call to allow user configure behavior of "warning" attribute.
* gcc.dg/Wno-attribute-warning.c: New test.
From-SVN: r265891
Diffstat (limited to 'gcc/common.opt')
-rw-r--r-- | gcc/common.opt | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/gcc/common.opt b/gcc/common.opt index 2971dc2..5a5d332 100644 --- a/gcc/common.opt +++ b/gcc/common.opt @@ -571,6 +571,10 @@ Wcpp Common Var(warn_cpp) Init(1) Warning Warn when a #warning directive is encountered. +Wattribute-warning +Common Var(warn_attribute_warning) Init(1) Warning +Warn about uses of __attribute__((warning)) declarations. + Wdeprecated-declarations Common Var(warn_deprecated_decl) Init(1) Warning Warn about uses of __attribute__((deprecated)) declarations. |