From dae62a1b9a85f08f928a15f95a280aa3a4076f0c Mon Sep 17 00:00:00 2001 From: benbierens Date: Tue, 6 Aug 2024 11:07:24 +0200 Subject: [PATCH] disables pointer-compatibility error in gcc-14 --- leopard/leopard.nim | 6 ++++++ 1 file changed, 6 insertions(+) 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