mirror of
https://github.com/Ed94/Odin.git
synced 2026-08-02 12:48:14 +00:00
fix Syntax Warning
This commit is contained in:
+1
-1
@@ -478,7 +478,7 @@ void syntax_warning_va(Token token, char const *fmt, va_list va) {
|
|||||||
// NOTE(bill): Duplicate error, skip it
|
// NOTE(bill): Duplicate error, skip it
|
||||||
if (global_error_collector.prev != token.pos) {
|
if (global_error_collector.prev != token.pos) {
|
||||||
global_error_collector.prev = token.pos;
|
global_error_collector.prev = token.pos;
|
||||||
error_out("%S Syntax Warning: %s\n",
|
error_out("%s Syntax Warning: %s\n",
|
||||||
token_pos_to_string(token.pos),
|
token_pos_to_string(token.pos),
|
||||||
gb_bprintf_va(fmt, va));
|
gb_bprintf_va(fmt, va));
|
||||||
} else if (token.pos.line == 0) {
|
} else if (token.pos.line == 0) {
|
||||||
|
|||||||
Reference in New Issue
Block a user