diff options
| author | gingerBill <bill@gingerbill.org> | 2021-08-19 15:03:10 +0100 |
|---|---|---|
| committer | gingerBill <bill@gingerbill.org> | 2021-08-19 15:03:10 +0100 |
| commit | 7845769d4b417fdd321740c5404016dbc3119d43 (patch) | |
| tree | 1ae0d5fb26452ac044101a161d202f7b0135f6f2 /src/check_builtin.cpp | |
| parent | 33239324b83c7a32471fe147c1539fb86ca48404 (diff) | |
Remove unused code
Diffstat (limited to 'src/check_builtin.cpp')
| -rw-r--r-- | src/check_builtin.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/check_builtin.cpp b/src/check_builtin.cpp index e1615ce87..acbb303c1 100644 --- a/src/check_builtin.cpp +++ b/src/check_builtin.cpp @@ -270,6 +270,7 @@ bool check_builtin_procedure(CheckerContext *c, Operand *operand, Ast *call, i32 BlockingMutex *ignore_mutex = nullptr; String path = {}; bool ok = determine_path_from_string(ignore_mutex, call, base_dir, original_string, &path); + gb_unused(ok); char *c_str = alloc_cstring(a, path); defer (gb_free(a, c_str)); @@ -369,6 +370,7 @@ bool check_builtin_procedure(CheckerContext *c, Operand *operand, Ast *call, i32 } bool is_defined = check_identifier_exists(c->scope, arg); + gb_unused(is_defined); operand->type = t_untyped_bool; operand->mode = Addressing_Constant; operand->value = exact_value_bool(false); |