summaryrefslogtreecommitdiff
path: root/6
diff options
context:
space:
mode:
authorOri Bernstein <ori@markovcorp.com>2017-01-02 13:53:38 -0800
committerOri Bernstein <ori@markovcorp.com>2017-01-02 13:53:38 -0800
commit63a36e064a2f9c436a7784d142ef352860948a68 (patch)
tree0e479dc7edee3d81dff5ec8bfaedc7948178dbeb /6
parent3f8013774a97396ace94769e216614ca4fde42a0 (diff)
downloadmc-63a36e064a2f9c436a7784d142ef352860948a68.tar.gz
Fix clang warnings.
Apparently enums getting promoted to ints in va_start() is undefined behavior. This is stupid.
Diffstat (limited to '6')
-rw-r--r--6/asm.h2
-rw-r--r--6/isel.c4
2 files changed, 3 insertions, 3 deletions
diff --git a/6/asm.h b/6/asm.h
index f5edae7..cf08738 100644
--- a/6/asm.h
+++ b/6/asm.h
@@ -294,7 +294,7 @@ int isfloatmode(Mode m);
int isintmode(Mode m);
/* emitting instructions */
-Insn *mkinsn(AsmOp op, ...);
+Insn *mkinsn(int op, ...);
void dbgiprintf(FILE *fd, Insn *insn);
void dbglocprint(FILE *fd, Loc *l, char spec);
diff --git a/6/isel.c b/6/isel.c
index 2b04437..cd1be01 100644
--- a/6/isel.c
+++ b/6/isel.c
@@ -169,7 +169,7 @@ static Insn *mkinsnv(AsmOp op, va_list ap)
return i;
}
-Insn *mkinsn(AsmOp op, ...)
+Insn *mkinsn(int op, ...)
{
va_list ap;
Insn *i;
@@ -180,7 +180,7 @@ Insn *mkinsn(AsmOp op, ...)
return i;
}
-static void g(Isel *s, AsmOp op, ...)
+static void g(Isel *s, int op, ...)
{
va_list ap;
Insn *i;