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/check/sha256.c | |
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/check/sha256.c')
-rw-r--r-- | src/liblzma/check/sha256.c | 5 |
1 files changed, 5 insertions, 0 deletions
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 |