| ... | @@ -10,8 +10,8 @@ | ... | @@ -10,8 +10,8 @@ |
| 10 | #include <stdarg.h> | 10 | #include <stdarg.h> |
| 11 | #include <stdio.h> | 11 | #include <stdio.h> |
| 12 | | 12 | |
| 13 | static void ast_error(Token *token, const char *format, ...) __attribute__ ((noreturn)); | | |
| 14 | __attribute__ ((format (printf, 2, 3))) | 13 | __attribute__ ((format (printf, 2, 3))) |
| | 14 | __attribute__ ((noreturn)) |
| 15 | static void ast_error(Token *token, const char *format, ...) { | 15 | static void ast_error(Token *token, const char *format, ...) { |
| 16 | int line = token->start_line + 1; | 16 | int line = token->start_line + 1; |
| 17 | int column = token->start_column + 1; | 17 | int column = token->start_column + 1; |
| ... | @@ -257,7 +257,7 @@ static void parse_string_literal(ParseContext *pc, Token *token, Buf *buf) { | ... | @@ -257,7 +257,7 @@ static void parse_string_literal(ParseContext *pc, Token *token, Buf *buf) { |
| 257 | assert(!escape); | 257 | assert(!escape); |
| 258 | } | 258 | } |
| 259 | | 259 | |
| 260 | void ast_invalid_token_error(ParseContext *pc, Token *token) __attribute__ ((noreturn)); | 260 | __attribute__ ((noreturn)) |
| 261 | void ast_invalid_token_error(ParseContext *pc, Token *token) { | 261 | void ast_invalid_token_error(ParseContext *pc, Token *token) { |
| 262 | Buf token_value = BUF_INIT; | 262 | Buf token_value = BUF_INIT; |
| 263 | ast_buf_from_token(pc, token, &token_value); | 263 | ast_buf_from_token(pc, token, &token_value); |