mirror of
https://github.com/Ed94/Odin.git
synced 2026-08-06 15:48:51 +00:00
Merge pull request #4691 from harold-b/fix-unused-define-crash-when-ignore-warnins
Fixes crash when unused defines are used in conjunction with `-ignore-warnings`
This commit is contained in:
+4
-1
@@ -1801,7 +1801,10 @@ gb_internal void check_defines(BuildContext *bc, Checker *c) {
|
|||||||
if (!found) {
|
if (!found) {
|
||||||
ERROR_BLOCK();
|
ERROR_BLOCK();
|
||||||
warning(nullptr, "given -define:%.*s is unused in the project", LIT(name));
|
warning(nullptr, "given -define:%.*s is unused in the project", LIT(name));
|
||||||
error_line("\tSuggestion: use the -show-defineables flag for an overview of the possible defines\n");
|
|
||||||
|
if (!global_ignore_warnings()) {
|
||||||
|
error_line("\tSuggestion: use the -show-defineables flag for an overview of the possible defines\n");
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user