Remove @(warning) and #warning(...)

This commit is contained in:
gingerBill
2024-06-25 09:36:59 +01:00
parent e42029c5ed
commit c098739484
4 changed files with 2 additions and 36 deletions
-14
View File
@@ -3493,20 +3493,6 @@ gb_internal DECL_ATTRIBUTE_PROC(proc_decl_attribute) {
error(elem, "Expected a string value for '%.*s'", LIT(name));
}
return true;
} else if (name == "warning") {
ExactValue ev = check_decl_attribute_value(c, value);
if (ev.kind == ExactValue_String) {
String msg = ev.value_string;
if (msg.len == 0) {
error(elem, "Warning message cannot be an empty string");
} else {
ac->warning_message = msg;
}
} else {
error(elem, "Expected a string value for '%.*s'", LIT(name));
}
return true;
} else if (name == "require_results") {
if (value != nullptr) {
error(elem, "Expected no value for '%.*s'", LIT(name));