about summary refs log tree commit diff stats
diff options
context:
space:
mode:
-rw-r--r--nim.cfg2
-rw-r--r--src/main.nim4
2 files changed, 4 insertions, 2 deletions
diff --git a/nim.cfg b/nim.cfg
index df248c83..f193dee6 100644
--- a/nim.cfg
+++ b/nim.cfg
@@ -7,5 +7,3 @@
 --experimental:"overloadableEnums"
 --warning:Effect:off
 --mm:refc
-# workaround for clang 16
---passC:"-Wno-error=incompatible-function-pointer-types"
diff --git a/src/main.nim b/src/main.nim
index ef8bdbbb..ef2ffb08 100644
--- a/src/main.nim
+++ b/src/main.nim
@@ -1,5 +1,9 @@
 import version
 
+# workaround for clang 16
+when defined(clang):
+  {.passC:"-Wno-error=incompatible-function-pointer-types".}
+
 import server/forkserver
 let forks = newForkServer()