diff options
Diffstat (limited to 'gcc/cp/parser.c')
-rw-r--r-- | gcc/cp/parser.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/gcc/cp/parser.c b/gcc/cp/parser.c index 4897941..906b0c3 100644 --- a/gcc/cp/parser.c +++ b/gcc/cp/parser.c @@ -18212,7 +18212,7 @@ cp_parser_exception_specification_opt (cp_parser* parser) /* Enable this once a lot of code has transitioned to noexcept? */ if (cxx_dialect == cxx0x && !in_system_header) warning (OPT_Wdeprecated, "dynamic exception specifications are " - "deprecated in C++0x; use %<noexcept%> instead."); + "deprecated in C++0x; use %<noexcept%> instead"); #endif /* Consume the `throw'. */ @@ -21972,7 +21972,7 @@ cp_parser_objc_interstitial_code (cp_parser* parser) else if (token->type == CPP_OPEN_BRACE || token->type == CPP_CLOSE_BRACE) { cp_lexer_consume_token (parser->lexer); - error ("stray `%s' between Objective-C++ methods", + error ("stray %qs between Objective-C++ methods", token->type == CPP_OPEN_BRACE ? "{" : "}"); } /* Finally, try to parse a block-declaration, or a function-definition. */ |