about summary refs log tree commit diff
path: root/src/libexpr/eval.cc
diff options
context:
space:
mode:
authorEelco Dolstra <edolstra@gmail.com>2017-04-14T12·42+0200
committerEelco Dolstra <edolstra@gmail.com>2017-04-14T12·42+0200
commitf8a2e8a55203f2cc16d70ad43afcc186adaab6b3 (patch)
tree140135f2478edeb4d974112cfbe5023a50a32cfd /src/libexpr/eval.cc
parentdd3714f6eff44e0777c5e8afcc7a29e283986629 (diff)
Shut up some warnings
Diffstat (limited to 'src/libexpr/eval.cc')
-rw-r--r--src/libexpr/eval.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/libexpr/eval.cc b/src/libexpr/eval.cc
index f6cdedb3797d..5e1ae63c4824 100644
--- a/src/libexpr/eval.cc
+++ b/src/libexpr/eval.cc
@@ -202,7 +202,7 @@ void initGC()
 
     GC_INIT();
 
-    GC_oom_fn = oomHandler;
+    GC_set_oom_fn(oomHandler);
 
     /* Set the initial heap size to something fairly big (25% of
        physical RAM, up to a maximum of 384 MiB) so that in most cases