diff --git a/src/checker.cpp b/src/checker.cpp index 9d99b3a77..5d4557765 100644 --- a/src/checker.cpp +++ b/src/checker.cpp @@ -1602,11 +1602,12 @@ void check_decl_attributes(Checker *c, Array attributes, DeclAttribut if (value != nullptr) { Operand op = {}; check_expr(c, &op, value); - if (op.mode ) - if (op.mode != Addressing_Constant) { - error(value, "An attribute element must be constant"); - } else { - ev = op.value; + if (op.mode) { + if (op.mode != Addressing_Constant) { + error(value, "An attribute element must be constant"); + } else { + ev = op.value; + } } } diff --git a/src/main.cpp b/src/main.cpp index 0a2b0723d..65597dfc5 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -395,7 +395,7 @@ bool parse_build_flags(Array args) { path = string_trim_whitespace(path); if (is_import_path_valid(path)) { if(!string_ends_with(path, str_lit(".rc"))) { - gb_printf_err("Invalid -resource path, missing .rc\n", LIT(path)); + gb_printf_err("Invalid -resource path %.*s, missing .rc\n", LIT(path)); bad_flags = true; break; }