]> granicus.if.org Git - xz/commitdiff
liblzma: SHA-256: Remove the GCC #pragma that became unneeded.
authorLasse Collin <lasse.collin@tukaani.org>
Sun, 3 Aug 2014 17:38:13 +0000 (20:38 +0300)
committerLasse Collin <lasse.collin@tukaani.org>
Sun, 3 Aug 2014 17:38:13 +0000 (20:38 +0300)
The unrolling in the previous commit should avoid the
situation where a compiler may think that an uninitialized
variable might be accessed.

src/liblzma/check/sha256.c

index 376401d598f246d5b975120c0aaa64217db8d235..6e2f65f1254c7e67a344eaa44e261ca1d3c4b14a 100644 (file)
 
 #include "check.h"
 
-// Avoid bogus warnings in transform().
-#if TUKLIB_GNUC_REQ(4, 2)
-#      pragma GCC diagnostic ignored "-Wuninitialized"
-#endif
-
 // At least on x86, GCC is able to optimize this to a rotate instruction.
 #define rotr_32(num, amount) ((num) >> (amount) | (num) << (32 - (amount)))