mirror of
https://github.com/Ed94/Odin.git
synced 2026-07-29 02:40:05 +00:00
fix compile warnings on linux
This commit is contained in:
+6
-5
@@ -1602,11 +1602,12 @@ void check_decl_attributes(Checker *c, Array<AstNode *> attributes, DeclAttribut
|
|||||||
if (value != nullptr) {
|
if (value != nullptr) {
|
||||||
Operand op = {};
|
Operand op = {};
|
||||||
check_expr(c, &op, value);
|
check_expr(c, &op, value);
|
||||||
if (op.mode )
|
if (op.mode) {
|
||||||
if (op.mode != Addressing_Constant) {
|
if (op.mode != Addressing_Constant) {
|
||||||
error(value, "An attribute element must be constant");
|
error(value, "An attribute element must be constant");
|
||||||
} else {
|
} else {
|
||||||
ev = op.value;
|
ev = op.value;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
+1
-1
@@ -395,7 +395,7 @@ bool parse_build_flags(Array<String> args) {
|
|||||||
path = string_trim_whitespace(path);
|
path = string_trim_whitespace(path);
|
||||||
if (is_import_path_valid(path)) {
|
if (is_import_path_valid(path)) {
|
||||||
if(!string_ends_with(path, str_lit(".rc"))) {
|
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;
|
bad_flags = true;
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user