mirror of
https://github.com/Ed94/Odin.git
synced 2026-08-08 00:28:49 +00:00
Fixes crash when unused defines are used in conjunction with -ignore-warnings.
This commit is contained in:
@@ -1801,10 +1801,13 @@ gb_internal void check_defines(BuildContext *bc, Checker *c) {
|
||||
if (!found) {
|
||||
ERROR_BLOCK();
|
||||
warning(nullptr, "given -define:%.*s is unused in the project", LIT(name));
|
||||
|
||||
if (!global_ignore_warnings()) {
|
||||
error_line("\tSuggestion: use the -show-defineables flag for an overview of the possible defines\n");
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
gb_internal void temp_alloc_defineable_strings(Checker *c) {
|
||||
for_array(i, c->info.defineables) {
|
||||
|
||||
Reference in New Issue
Block a user