[git] GCRYPT - branch, master, updated. libgcrypt-1.5.0-224-gf7135e2
by Werner Koch
cvs at cvs.gnupg.org
Sat Sep 7 11:04:11 CEST 2013
This is an automated email from the git hooks/post-receive script. It was
generated because a ref change was pushed to the repository containing
the project "The GNU crypto library".
The branch, master has been updated
via f7135e299e659d78906aac3dfdf30f380b5cf9c6 (commit)
from ae6f6c47d2e0c536f3eab0823b5f23d26956cda2 (commit)
Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.
- Log -----------------------------------------------------------------
commit f7135e299e659d78906aac3dfdf30f380b5cf9c6
Author: Werner Koch <wk at gnupg.org>
Date: Sat Sep 7 10:06:46 2013 +0200
Use gcc "unused" attribute only with gcc >= 3.5.
* src/g10lib.h (GCC_ATTR_UNUSED): Fix gcc version detection.
--
Reported-by: Dmitry Eremin-Solenikov <dbaryshkov at gmail.com>
Signed-off-by: Werner Koch <wk at gnupg.org>
diff --git a/src/g10lib.h b/src/g10lib.h
index 4c34ae5..6023c60 100644
--- a/src/g10lib.h
+++ b/src/g10lib.h
@@ -67,7 +67,10 @@
#endif
-#if __GNUC__ > 2 || (__GNUC__ == 3 && __GNUC_MINOR__ >= 5 )
+/* I am not sure since when the unused attribute is really supported.
+ In any case it it only needed for gcc versions which print a
+ warning. Thus let us require gcc >= 3.5. */
+#if __GNUC__ > 3 || (__GNUC__ == 3 && __GNUC_MINOR__ >= 5 )
#define GCC_ATTR_UNUSED __attribute__ ((unused))
#else
#define GCC_ATTR_UNUSED
-----------------------------------------------------------------------
Summary of changes:
src/g10lib.h | 5 ++++-
1 files changed, 4 insertions(+), 1 deletions(-)
hooks/post-receive
--
The GNU crypto library
http://git.gnupg.org
More information about the Gnupg-commits
mailing list