diff options
| author | Josh Wolfe <thejoshwolfe@gmail.com> | 2015-11-25 15:58:23 -0700 |
|---|---|---|
| committer | Josh Wolfe <thejoshwolfe@gmail.com> | 2015-11-25 15:58:32 -0700 |
| commit | e48717e09131fed8c7c6b743f351486b423e3452 (patch) | |
| tree | 6fef6f1b66ce09403efe0b7bc22c9f63cd1d2c66 /src/parser.cpp | |
| parent | 86a0ae86992462577596b59feaa07c67c3a7566f (diff) | |
| download | zig-e48717e09131fed8c7c6b743f351486b423e3452.tar.gz zig-e48717e09131fed8c7c6b743f351486b423e3452.zip | |
clean up noreturn stuff
Diffstat (limited to 'src/parser.cpp')
| -rw-r--r-- | src/parser.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/parser.cpp b/src/parser.cpp index e24041538e..b779f19f5c 100644 --- a/src/parser.cpp +++ b/src/parser.cpp @@ -10,8 +10,8 @@ #include <stdarg.h> #include <stdio.h> -static void ast_error(Token *token, const char *format, ...) __attribute__ ((noreturn)); __attribute__ ((format (printf, 2, 3))) +__attribute__ ((noreturn)) static void ast_error(Token *token, const char *format, ...) { int line = token->start_line + 1; int column = token->start_column + 1; @@ -257,7 +257,7 @@ static void parse_string_literal(ParseContext *pc, Token *token, Buf *buf) { assert(!escape); } -void ast_invalid_token_error(ParseContext *pc, Token *token) __attribute__ ((noreturn)); +__attribute__ ((noreturn)) void ast_invalid_token_error(ParseContext *pc, Token *token) { Buf token_value = BUF_INIT; ast_buf_from_token(pc, token, &token_value); |
