mirror of
https://github.com/odin-lang/Odin.git
synced 2026-10-07 13:25:03 -04:00
fix compile warnings on linux
This commit is contained in:
1 parent
52f60c706a
commit
9fa4aa40b7
2 files changed
+7
-6
No files matched your search
+6
-5
@@ -1602,11 +1602,12 @@ void check_decl_attributes(Checker *c, Array<AstNode *> 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;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user