remove misleading @(optimization_mode) values and make "none" inhibit optimizations

This commit is contained in:
Laytan Laats
2024-07-08 21:06:57 +02:00
parent 498fb00c25
commit 1a20b78633
7 changed files with 19 additions and 34 deletions
-1
View File
@@ -1030,7 +1030,6 @@ gb_internal void check_proc_decl(CheckerContext *ctx, Entity *e, DeclInfo *d) {
switch (e->Procedure.optimization_mode) {
case ProcedureOptimizationMode_None:
case ProcedureOptimizationMode_Minimal:
if (pl->inlining == ProcInlining_inline) {
error(e->token, "#force_inline cannot be used in conjunction with the attribute 'optimization_mode' with neither \"none\" nor \"minimal\"");
}