aboutsummaryrefslogtreecommitdiff
path: root/gcc/c/c-parser.cc
diff options
context:
space:
mode:
Diffstat (limited to 'gcc/c/c-parser.cc')
-rw-r--r--gcc/c/c-parser.cc20
1 files changed, 14 insertions, 6 deletions
diff --git a/gcc/c/c-parser.cc b/gcc/c/c-parser.cc
index 5226169..4ec0ee8 100644
--- a/gcc/c/c-parser.cc
+++ b/gcc/c/c-parser.cc
@@ -76,6 +76,7 @@ along with GCC; see the file COPYING3. If not see
#include "toplev.h"
#include "asan.h"
#include "c-family/c-ubsan.h"
+#include "gcc-urlifier.h"
/* We need to walk over decls with incomplete struct/union/enum types
after parsing the whole translation unit.
@@ -8147,6 +8148,7 @@ c_parser_statement_after_labels (c_parser *parser, bool *if_p,
attrs = handle_assume_attribute (loc, attrs, true);
else
{
+ auto_urlify_attributes sentinel;
warning_at (loc, OPT_Wattributes,
"%<assume%> attribute not followed by %<;%>");
has_assume = false;
@@ -8164,17 +8166,23 @@ c_parser_statement_after_labels (c_parser *parser, bool *if_p,
c_parser_consume_token (parser);
}
else
- warning_at (loc, OPT_Wattributes,
- "%<fallthrough%> attribute not followed "
- "by %<;%>");
+ {
+ auto_urlify_attributes sentinel;
+ warning_at (loc, OPT_Wattributes,
+ "%<fallthrough%> attribute not followed "
+ "by %<;%>");
+ }
}
else if (has_assume)
/* Eat the ';'. */
c_parser_consume_token (parser);
else if (attrs != NULL_TREE)
- warning_at (loc, OPT_Wattributes,
- "only attribute %<fallthrough%> or %<assume%> can "
- "be applied to a null statement");
+ {
+ auto_urlify_attributes sentinel;
+ warning_at (loc, OPT_Wattributes,
+ "only attribute %<fallthrough%> or %<assume%> can "
+ "be applied to a null statement");
+ }
break;
}
default: