]> git.eshelyaron.com Git - emacs.git/commit
Pacify gcc -Wunused-macros in older GnuTLS
authorPaul Eggert <eggert@cs.ucla.edu>
Sun, 11 Nov 2018 17:58:29 +0000 (09:58 -0800)
committerPaul Eggert <eggert@cs.ucla.edu>
Sun, 11 Nov 2018 18:03:32 +0000 (10:03 -0800)
commit29172387581b3390e4659c18514eaa1e0f45b0c5
tree2c55dc4bc93f1354388bbc07aeccdf5f8a08d5d2
parent2523ac9fa3ea01f34f7a2b55e19b9dcd5506c232
Pacify gcc -Wunused-macros in older GnuTLS

I ran into this problem on Ubuntu 18.04.1 LTS.
* src/gnutls.c (HAVE_GNUTLS_CIPHER_GET_IV_SIZE)
(HAVE_GNUTLS_CIPHER_GET_TAG_SIZE, HAVE_GNUTLS_DIGEST_LIST):
New macros.  This uses the same style as the other
macros that depend on GnuTLS version, as opposed to trying
to do things a bit more cleverly.
(gnutls_cipher_get_iv_size, gnutls_cipher_get_tag_size)
(gnutls_digest_list, gnutls_digest_get_name):
Define these macros only if they will be used.
src/gnutls.c