diff options
| author | Werner Koch <[email protected]> | 2016-09-16 13:59:54 +0000 | 
|---|---|---|
| committer | Werner Koch <[email protected]> | 2016-09-16 14:00:57 +0000 | 
| commit | bd24db313d860ae46d37776dcf1067455d1b9880 (patch) | |
| tree | 50f8fd7bab0cc53e695e0f4683a8f7bc8f16c4a9 /lang/cpp/src | |
| parent | core: Document the version a function has been deprecated. (diff) | |
| download | gpgme-bd24db313d860ae46d37776dcf1067455d1b9880.tar.gz gpgme-bd24db313d860ae46d37776dcf1067455d1b9880.zip | |
cpp: Silence use of deprecated function warning.
* lang/cpp/src/context.cpp (GpgME): Use pragma to silence wardning.
Signed-off-by: Werner Koch <[email protected]>
Diffstat (limited to '')
| -rw-r--r-- | lang/cpp/src/context.cpp | 9 | 
1 files changed, 9 insertions, 0 deletions
| diff --git a/lang/cpp/src/context.cpp b/lang/cpp/src/context.cpp index 564cff58..1e134a02 100644 --- a/lang/cpp/src/context.cpp +++ b/lang/cpp/src/context.cpp @@ -693,6 +693,10 @@ Error Context::startPasswd(const Key &key)      return Error(d->lasterr = gpgme_op_passwd_start(d->ctx, key.impl(), 0U));  } + +#pragma GCC push_diagnostics +#pragma GCC diagnostic ignored "-Wdeprecated-declarations" +  Error Context::edit(const Key &key, std::unique_ptr<EditInteractor> func, Data &data)  {      d->lastop = Private::Edit; @@ -704,6 +708,7 @@ Error Context::edit(const Key &key, std::unique_ptr<EditInteractor> func, Data &                                              dp ? dp->data : 0));  } +  Error Context::startEditing(const Key &key, std::unique_ptr<EditInteractor> func, Data &data)  {      d->lastop = Private::Edit; @@ -715,6 +720,7 @@ Error Context::startEditing(const Key &key, std::unique_ptr<EditInteractor> func                                dp ? dp->data : 0));  } +  EditInteractor *Context::lastEditInteractor() const  {      return d->lastEditInteractor.get(); @@ -725,6 +731,7 @@ std::unique_ptr<EditInteractor> Context::takeLastEditInteractor()      return std::move(d->lastEditInteractor);  } +  Error Context::cardEdit(const Key &key, std::unique_ptr<EditInteractor> func, Data &data)  {      d->lastop = Private::CardEdit; @@ -747,6 +754,8 @@ Error Context::startCardEditing(const Key &key, std::unique_ptr<EditInteractor>                                dp ? dp->data : 0));  } +#pragma GCC pop_diagnostics +  EditInteractor *Context::lastCardEditInteractor() const  {      return d->lastCardEditInteractor.get(); | 
