forked from pool/python-datrie
- Cherry-pick upstream patch to fix build with GCC 14 * https://github.com/pytries/datrie/pull/99.patch OBS-URL: https://build.opensuse.org/request/show/1177289 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-datrie?expand=0&rev=24
24 lines
716 B
Diff
24 lines
716 B
Diff
From 12ffaa89e589a47d0b29b32997cb3623d231d920 Mon Sep 17 00:00:00 2001
|
|
From: "Benjamin A. Beasley" <code@musicinmybrain.net>
|
|
Date: Thu, 1 Feb 2024 15:14:00 -0500
|
|
Subject: [PATCH] Fix AlphaMap definition in cdatrie.pxd
|
|
|
|
Fixes failure to compile on GCC with `-Werror=incompatible-pointer-types`.
|
|
---
|
|
src/cdatrie.pxd | 2 +-
|
|
1 file changed, 1 insertion(+), 1 deletion(-)
|
|
|
|
diff --git a/src/cdatrie.pxd b/src/cdatrie.pxd
|
|
index b80ce99..e609d1c 100644
|
|
--- a/src/cdatrie.pxd
|
|
+++ b/src/cdatrie.pxd
|
|
@@ -9,7 +9,7 @@ cdef extern from "../libdatrie/datrie/triedefs.h":
|
|
|
|
cdef extern from "../libdatrie/datrie/alpha-map.h":
|
|
|
|
- struct AlphaMap:
|
|
+ ctypedef struct AlphaMap:
|
|
pass
|
|
|
|
AlphaMap * alpha_map_new()
|