summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLeo Tenenbaum <pommicket@gmail.com>2020-02-15 22:20:39 -0500
committerLeo Tenenbaum <pommicket@gmail.com>2020-02-15 22:20:39 -0500
commitae997062bc5e527283ec762085fc780dcdd65ea1 (patch)
treed73f9d2d1bbfa9ac9cc5b9bc6b927dcb30a80848
parentb543b9a80fdb15a03d13c863391dbeff46e804d7 (diff)
fixed disabling foreign
-rw-r--r--foreign.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/foreign.c b/foreign.c
index 2c1e54a..ad14f7c 100644
--- a/foreign.c
+++ b/foreign.c
@@ -316,8 +316,9 @@ static bool foreign_call(ForeignFnManager *ffmgr, FnExpr *fn, Type *fn_type, Val
}
#else
-static void ffmgr_create(ForeignFnManager *ffmgr) {
+static void ffmgr_create(ForeignFnManager *ffmgr, Allocator *allocr) {
(void)ffmgr;
+ (void)allocr;
}
static bool foreign_call(ForeignFnManager *ffmgr, FnExpr *fn, Type *fn_type, Value *args, Location call_where, Value *ret) {