cpp: Silence use of deprecated function warning.

* lang/cpp/src/context.cpp (GpgME): Use pragma to silence wardning.

Signed-off-by: Werner Koch <wk@gnupg.org>
This commit is contained in:
Werner Koch 2016-09-16 15:59:54 +02:00
parent b615316168
commit bd24db313d
No known key found for this signature in database
GPG Key ID: E3FDFF218E45B72B

View File

@ -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();