aboutsummaryrefslogtreecommitdiffstats
path: root/lang
diff options
context:
space:
mode:
authorWerner Koch <[email protected]>2018-09-20 15:28:25 +0000
committerWerner Koch <[email protected]>2018-09-20 15:45:07 +0000
commitdcdabf5f2ef84e1f304fcc0590ec4bb160354af5 (patch)
tree937a604ea429d1e9c0b7e9220f97c3fadea92257 /lang
parentjs: renamed keygen algo option (diff)
downloadgpgme-dcdabf5f2ef84e1f304fcc0590ec4bb160354af5.tar.gz
gpgme-dcdabf5f2ef84e1f304fcc0590ec4bb160354af5.zip
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 <[email protected]>
Diffstat (limited to 'lang')
-rw-r--r--lang/python/gpgme.i9
1 files changed, 8 insertions, 1 deletions
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;