diff options
author | Lasse Collin <lasse.collin@tukaani.org> | 2009-05-02 16:10:14 +0300 |
---|---|---|
committer | Lasse Collin <lasse.collin@tukaani.org> | 2009-05-02 16:16:28 +0300 |
commit | a6f43e64128a6da5cd641de1e1e527433b3e5638 (patch) | |
tree | 156bb6c72df23cbe0864e293456fc217c652d22d /src/liblzma | |
parent | Removed --disable-encoder and --disable-decoder. Use the values (diff) | |
download | xz-a6f43e64128a6da5cd641de1e1e527433b3e5638.tar.xz |
Use a GCC-specific #pragma instead of GCC-specific
-Wno-uninitialized to silence a bogus warning.
Diffstat (limited to 'src/liblzma')
-rw-r--r-- | src/liblzma/check/Makefile.am | 5 | ||||
-rw-r--r-- | src/liblzma/check/sha256.c | 5 |
2 files changed, 5 insertions, 5 deletions
diff --git a/src/liblzma/check/Makefile.am b/src/liblzma/check/Makefile.am index 1409bec0..6c43a701 100644 --- a/src/liblzma/check/Makefile.am +++ b/src/liblzma/check/Makefile.am @@ -44,9 +44,4 @@ endif if COND_CHECK_SHA256 libcheck_la_SOURCES += sha256.c -# Hide bogus warning to allow usage of -Werror. If more issues like this -# pop up, we'll drop -Werror. -if COND_WNO_UNINITIALIZED -AM_CFLAGS += -Wno-uninitialized -endif endif diff --git a/src/liblzma/check/sha256.c b/src/liblzma/check/sha256.c index 978fc668..6053a51b 100644 --- a/src/liblzma/check/sha256.c +++ b/src/liblzma/check/sha256.c @@ -22,6 +22,11 @@ // /////////////////////////////////////////////////////////////////////////////// +// Avoid bogus warnings in transform(). +#if (__GNUC__ == 4 && __GNUC_MINOR__ >= 2) || __GNUC__ > 4 +# pragma GCC diagnostic ignored "-Wuninitialized" +#endif + #include "check.h" #ifndef WORDS_BIGENDIAN |