aboutsummaryrefslogtreecommitdiff
path: root/src/liblzma/check/sha256.c
diff options
context:
space:
mode:
authorLasse Collin <lasse.collin@tukaani.org>2009-05-02 16:10:14 +0300
committerLasse Collin <lasse.collin@tukaani.org>2009-05-02 16:16:28 +0300
commita6f43e64128a6da5cd641de1e1e527433b3e5638 (patch)
tree156bb6c72df23cbe0864e293456fc217c652d22d /src/liblzma/check/sha256.c
parentRemoved --disable-encoder and --disable-decoder. Use the values (diff)
downloadxz-a6f43e64128a6da5cd641de1e1e527433b3e5638.tar.xz
Use a GCC-specific #pragma instead of GCC-specific
-Wno-uninitialized to silence a bogus warning.
Diffstat (limited to '')
-rw-r--r--src/liblzma/check/sha256.c5
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