diff --git a/leopard/leopard.nim b/leopard/leopard.nim index dd749b9..0e6595f 100644 --- a/leopard/leopard.nim +++ b/leopard/leopard.nim @@ -12,6 +12,12 @@ push: {.upraises: [].} {.deadCodeElim: on.} +# in gcc-14, incompatible-pointer-types warning was promoted to error. +# function arguments in C of type 'const void* const * const' are seen as +# not compatible with nim 'ptr pointer' type. +# We use localPassC to disable this check for the compiling of nim-leopard. +{.localPassC:"-Wno-error=incompatible-pointer-types"} + import pkg/stew/results import ./wrapper