From dcdabf5f2ef84e1f304fcc0590ec4bb160354af5 Mon Sep 17 00:00:00 2001 From: Werner Koch Date: Thu, 20 Sep 2018 17:28:25 +0200 Subject: python: Silence a few warnings. * src/gpgme.h.in: Obsolete "class" also for Python. * lang/python/gpgme.i: Silenece a swig warning. Silence a gcc warning. Signed-off-by: Werner Koch --- lang/python/gpgme.i | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) (limited to 'lang') diff --git a/lang/python/gpgme.i b/lang/python/gpgme.i index 492326b8..f3d14a7d 100644 --- a/lang/python/gpgme.i +++ b/lang/python/gpgme.i @@ -21,6 +21,12 @@ %include "cpointer.i" %include "cstring.i" +%{ +/* We use public symbols (eg. "_obsolete_class") which are marked as + * deprecated but we need to keep them. Silence the warning. */ +#pragma GCC diagnostic ignored "-Wdeprecated-declarations" +%} + /* Generate doc strings for all methods. This will generate docstrings of the form @@ -575,7 +581,8 @@ off_t gpgme_data_seek (gpgme_data_t dh, off_t offset, int whence=SEEK_SET); %} /* This is for notations, where we want to hide the length fields, and - the unused bit field block. */ + * the unused bit field block. We silence the warning. */ +%warnfilter(302) _gpgme_sig_notation; struct _gpgme_sig_notation { struct _gpgme_sig_notation *next; -- cgit