summaryrefslogtreecommitdiff
path: root/parse/parse.h
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 /parse/parse.h
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 'parse/parse.h')
-rw-r--r--parse/parse.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/parse/parse.h b/parse/parse.h
index a705e5b..a06d477 100644
--- a/parse/parse.h
+++ b/parse/parse.h
@@ -471,7 +471,7 @@ Node *mkfile(char *name);
Node *mkuse(Srcloc l, char *use, int islocal);
Node *mksliceexpr(Srcloc l, Node *sl, Node *base, Node *off);
Node *mkexprl(Srcloc l, Op op, Node **args, size_t nargs);
-Node *mkexpr(Srcloc l, Op op, ...); /* NULL terminated */
+Node *mkexpr(Srcloc l, int op, ...); /* NULL terminated */
Node *mkcall(Srcloc l, Node *fn, Node **args, size_t nargs);
Node *mkifstmt(Srcloc l, Node *cond, Node *iftrue, Node *iffalse);
Node *mkloopstmt(Srcloc l, Node *init, Node *cond, Node *incr, Node *body);