Skip to content

Commit 758caca

Browse files
committed
fix some clang compiler warnings
1 parent 0f1606e commit 758caca

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed

backends/asm/outasm.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4671,7 +4671,7 @@ CompileExpression(IRList *irl, AST *expr, Operand *dest)
46714671
if (x == 0) {
46724672
AST *astmsg = expr->right;
46734673
const char *msg = GetStringFromAst(astmsg);
4674-
ERROR(expr, msg);
4674+
ERROR(expr, "%s", msg);
46754675
}
46764676
return NewImmediate(x);
46774677
}

backends/bytecode/outbc.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2318,7 +2318,7 @@ BCCompileExpression(BCIRBuffer *irbuf,AST *node,BCContext context,bool asStateme
23182318
case AST_STATIC_ASSERT: {
23192319
int32_t val = EvalConstExpr(node->left);
23202320
if (val == 0) {
2321-
ERROR(node, GetStringFromAst(node->right));
2321+
ERROR(node, "%s", GetStringFromAst(node->right));
23222322
}
23232323
popResults = 0;
23242324
} break;

version.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,8 @@
66

77
#define VERSION_MAJOR 7
88
#define VERSION_MINOR 0
9-
#define VERSION_REV 2
10-
//#define BETA "-beta"
9+
#define VERSION_REV 3
10+
#define BETA "-beta"
1111

1212
#define VERSIONSTR version_string
1313

0 commit comments

Comments
 (0)