aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authoralektron <alektron1@gmail.com>2025-01-15 18:00:29 +0100
committeralektron <alektron1@gmail.com>2025-01-15 18:00:29 +0100
commit32d747cf8bc61db63d1137585e06f075ff333fe1 (patch)
tree9a1670afebc4966cb17d2679f7585f210f3fd28a /src
parenta0c20023fc87e0cbd2a2316a2eb993edf67815cf (diff)
parente55b65291685c8a1fc3d70252a73f01c7c6f253c (diff)
Merge branch 'master' into ArenaBug
Diffstat (limited to 'src')
-rw-r--r--src/main.cpp5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/main.cpp b/src/main.cpp
index 41c7170f6..1de5d987b 100644
--- a/src/main.cpp
+++ b/src/main.cpp
@@ -1801,7 +1801,10 @@ 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));
- 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");
+ }
}
}
}