]> git.ipfire.org Git - thirdparty/gnutls.git/commitdiff
Fix warnings with GCC 4.5.2
authorStef Walter <stefw@collabora.co.uk>
Sat, 28 May 2011 16:31:35 +0000 (18:31 +0200)
committerNikos Mavrogiannopoulos <nmav@gnutls.org>
Sat, 28 May 2011 18:25:25 +0000 (20:25 +0200)
lib/nettle/cipher.c

index e4e6d7f07546f53e0c549bd70e1875d54cf14b92..6e5946130a02298d3c0f25005df9ac2909b47211 100644 (file)
@@ -144,9 +144,9 @@ struct nettle_cipher_ctx
   tag_func tag;
 };
 
+#ifdef NETTLE_GCM
 #define GCM_DEFAULT_NONCE_SIZE 12
 
-#ifdef NETTLE_GCM
 static void _gcm_encrypt(void *_ctx, nettle_crypt_func f,  
             unsigned block_size, uint8_t *iv,
             unsigned length, uint8_t *dst,