projects
/
platform
/
upstream
/
xz.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
db33117
)
liblzma: Use TUKLIB_GNUC_REQ to check GCC version in sha256.c.
author
Lasse Collin
<lasse.collin@tukaani.org>
Tue, 5 Apr 2011 19:41:33 +0000
(22:41 +0300)
committer
Lasse Collin
<lasse.collin@tukaani.org>
Tue, 5 Apr 2011 19:41:33 +0000
(22:41 +0300)
src/liblzma/check/sha256.c
patch
|
blob
|
history
diff --git
a/src/liblzma/check/sha256.c
b/src/liblzma/check/sha256.c
index
04231db
..
074cd74
100644
(file)
--- a/
src/liblzma/check/sha256.c
+++ b/
src/liblzma/check/sha256.c
@@
-22,13
+22,13
@@
//
///////////////////////////////////////////////////////////////////////////////
+#include "check.h"
+
// Avoid bogus warnings in transform().
-#if
(__GNUC__ == 4 && __GNUC_MINOR__ >= 2) || __GNUC__ > 4
+#if
TUKLIB_GNUC_REQ(4, 2)
# pragma GCC diagnostic ignored "-Wuninitialized"
#endif
-#include "check.h"
-
// At least on x86, GCC is able to optimize this to a rotate instruction.
#define rotr_32(num, amount) ((num) >> (amount) | (num) << (32 - (amount)))