authorgravatar for thejoshwolfe@gmail.comJosh Wolfe <thejoshwolfe@gmail.com> 2015-11-25 15:58:23-07:00
committergravatar for thejoshwolfe@gmail.comJosh Wolfe <thejoshwolfe@gmail.com> 2015-11-25 15:58:32-07:00
loge48717e09131fed8c7c6b743f351486b423e3452
tree6fef6f1b66ce09403efe0b7bc22c9f63cd1d2c66
parent86a0ae86992462577596b59feaa07c67c3a7566f

clean up noreturn stuff


1 files changed, 2 insertions(+), 2 deletions(-)

src/parser.cpp+2-2
......@@ -10,8 +10,8 @@
1010#include <stdarg.h>
1111#include <stdio.h>
1212
13static void ast_error(Token *token, const char *format, ...) __attribute__ ((noreturn));
1413__attribute__ ((format (printf, 2, 3)))
14__attribute__ ((noreturn))
1515static void ast_error(Token *token, const char *format, ...) {
1616 int line = token->start_line + 1;
1717 int column = token->start_column + 1;
......@@ -257,7 +257,7 @@ static void parse_string_literal(ParseContext *pc, Token *token, Buf *buf) {
257257 assert(!escape);
258258}
259259
260void ast_invalid_token_error(ParseContext *pc, Token *token) __attribute__ ((noreturn));
260__attribute__ ((noreturn))
261261void ast_invalid_token_error(ParseContext *pc, Token *token) {
262262 Buf token_value = BUF_INIT;
263263 ast_buf_from_token(pc, token, &token_value);