mirror of
https://codeberg.org/ziglang/zig.git
synced 2025-12-06 05:44:20 +00:00
clean up noreturn stuff
This commit is contained in:
parent
86a0ae8699
commit
e48717e091
1 changed files with 2 additions and 2 deletions
|
|
@ -10,8 +10,8 @@
|
||||||
#include <stdarg.h>
|
#include <stdarg.h>
|
||||||
#include <stdio.h>
|
#include <stdio.h>
|
||||||
|
|
||||||
static void ast_error(Token *token, const char *format, ...) __attribute__ ((noreturn));
|
|
||||||
__attribute__ ((format (printf, 2, 3)))
|
__attribute__ ((format (printf, 2, 3)))
|
||||||
|
__attribute__ ((noreturn))
|
||||||
static void ast_error(Token *token, const char *format, ...) {
|
static void ast_error(Token *token, const char *format, ...) {
|
||||||
int line = token->start_line + 1;
|
int line = token->start_line + 1;
|
||||||
int column = token->start_column + 1;
|
int column = token->start_column + 1;
|
||||||
|
|
@ -257,7 +257,7 @@ static void parse_string_literal(ParseContext *pc, Token *token, Buf *buf) {
|
||||||
assert(!escape);
|
assert(!escape);
|
||||||
}
|
}
|
||||||
|
|
||||||
void ast_invalid_token_error(ParseContext *pc, Token *token) __attribute__ ((noreturn));
|
__attribute__ ((noreturn))
|
||||||
void ast_invalid_token_error(ParseContext *pc, Token *token) {
|
void ast_invalid_token_error(ParseContext *pc, Token *token) {
|
||||||
Buf token_value = BUF_INIT;
|
Buf token_value = BUF_INIT;
|
||||||
ast_buf_from_token(pc, token, &token_value);
|
ast_buf_from_token(pc, token, &token_value);
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue