diff options
Diffstat (limited to 'gcc/c-family/c-lex.c')
-rw-r--r-- | gcc/c-family/c-lex.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/gcc/c-family/c-lex.c b/gcc/c-family/c-lex.c index ff7eb25..38a428d 100644 --- a/gcc/c-family/c-lex.c +++ b/gcc/c-family/c-lex.c @@ -347,7 +347,8 @@ c_common_has_attribute (cpp_reader *pfile) result = 200809; else if (is_attribute_p ("deprecated", attr_name)) result = 201309; - else if (is_attribute_p ("maybe_unused", attr_name)) + else if (is_attribute_p ("maybe_unused", attr_name) + || is_attribute_p ("nodiscard", attr_name)) result = 201603; if (result) attr_name = NULL_TREE; |