Problem with warning: gcrypt.h '...' is deprecated messages
bradh at frogmouth.net
Thu Jul 14 10:54:12 CEST 2011
On Thursday 14 July 2011 17:53:40 Werner Koch wrote:
> On Wed, 13 Jul 2011 18:29, steve at stephen-fisher.com said:
> > /usr/local/include/gcrypt.h:1656: warning: 'gcry_ac_id_t' is deprecated
> > The release announcement for 1.5.0 says that using gcry_ac_ functions
> > will produce compile time warnings. We are not using those functions,
> That is a bug in some versions of gcc.
> > with gcrypt.h included has the same problem. Defining "
> > _GCRYPT_IN_LIBGCRYPT" to "1" in Wireshark sources before the gcrypt.h
> > inclusion works around this problem in my local sources.
> Please don't do this.
You can work around this problem using gcc pragmas.
#pragma GCC diagnostic ignored "-Wdeprecated-declarations"
before the include, and
#pragma GCC diagnostic warning "-Wdeprecated-declarations"
after the include will probably do it.
More information about the Gcrypt-devel