From 220d1ab8ffe3c3bbec99c6143a9f480df4955e5b Mon Sep 17 00:00:00 2001 From: "Neal H. Walfield" Date: Mon, 11 Mar 2019 08:47:21 +0100 Subject: openpgp-ffi: Move all type declarations to - pgp_key_t was declared multiple times, once in and again in . Although the definitions were the same, this causes gcc to emit a warning, which is particularly annoying when combined with -Werror. - It's hard to remove one of the declarations as this would create a circular dependency. - To break this circular dependency, we move all of the type declarations to a separate header file. --- ffi/lang/python/sequoia/sequoia_build.py | 1 + 1 file changed, 1 insertion(+) (limited to 'ffi/lang') diff --git a/ffi/lang/python/sequoia/sequoia_build.py b/ffi/lang/python/sequoia/sequoia_build.py index 7345097b..9fe6343a 100644 --- a/ffi/lang/python/sequoia/sequoia_build.py +++ b/ffi/lang/python/sequoia/sequoia_build.py @@ -8,6 +8,7 @@ pgp_inc = join(dirname(__file__), '../../../../openpgp-ffi/include/sequoia') defs = "".join(l for l in chain(open(join(pgp_inc, "openpgp/error.h")).readlines(), open(join(pgp_inc, "io.h")).readlines(), + open(join(pgp_inc, "openpgp/types.h")).readlines(), open(join(pgp_inc, "openpgp/crypto.h")).readlines(), open(join(pgp_inc, "openpgp.h")).readlines(), open(join(sq_inc, "core.h")).readlines(), -- cgit v1.2.3