summaryrefslogtreecommitdiff
path: root/parse/node.c
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/node.c
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/node.c')
-rw-r--r--parse/node.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/parse/node.c b/parse/node.c
index 14822d4..936db36 100644
--- a/parse/node.c
+++ b/parse/node.c
@@ -95,7 +95,7 @@ Node *mkexprl(Srcloc loc, Op op, Node **args, size_t nargs)
return n;
}
-Node *mkexpr(Srcloc loc, Op op, ...)
+Node *mkexpr(Srcloc loc, int op, ...)
{
Node *n;
va_list ap;