diff options
| author | gingerBill <gingerBill@users.noreply.github.com> | 2024-07-10 13:22:57 +0100 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2024-07-10 13:22:57 +0100 |
| commit | 34c6868e7836cc24cca1c8fed84bfc5af20e8843 (patch) | |
| tree | 356416949eac66091b1742c612dd6ddc4ad42cb1 /src/check_decl.cpp | |
| parent | 38315f83dad49d89277fc3ba459b6e7c28ff098e (diff) | |
| parent | 2d8d0dd8515a4598d6e027f28818614c117ae0c4 (diff) | |
Merge pull request #3895 from laytan/fix-optimization-mode-attribute
remove misleading @(optimization_mode) values and make "none" inhibit optimizations
Diffstat (limited to 'src/check_decl.cpp')
| -rw-r--r-- | src/check_decl.cpp | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/src/check_decl.cpp b/src/check_decl.cpp index 84c3d9ecc..7d81d102d 100644 --- a/src/check_decl.cpp +++ b/src/check_decl.cpp @@ -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\""); } |