summaryrefslogtreecommitdiff
path: root/dev-python/cython/files/cython-3.0.8-no-warn-ptr-types.patch
blob: bfa51fd2bf5cfa1405989c793d404721cc49cfb7 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
diff --git a/Cython/Compiler/ModuleNode.py b/Cython/Compiler/ModuleNode.py
index b46b6cee6..9f9f08d61 100644
--- a/Cython/Compiler/ModuleNode.py
+++ b/Cython/Compiler/ModuleNode.py
@@ -507,6 +507,9 @@ class ModuleNode(Nodes.Node, Nodes.BlockNode):
         self.generate_includes(env, modules, code, early=False)
 
         code = globalstate['module_code']
+        # Gentoo: workaround for https://github.com/cython/cython/issues/2747
+        # https://bugs.gentoo.org/918983
+        code.putln('#pragma GCC diagnostic ignored "-Wincompatible-pointer-types"')
 
         self.generate_cached_builtins_decls(env, code)