]> granicus.if.org Git - xz/commit
Silence a bogus Valgrind warning.
authorLasse Collin <lasse.collin@tukaani.org>
Wed, 2 Jun 2010 20:09:22 +0000 (23:09 +0300)
committerLasse Collin <lasse.collin@tukaani.org>
Wed, 2 Jun 2010 20:09:22 +0000 (23:09 +0300)
commitb5fbab6123a39c9a55cd5d7af410e9aae067d5f8
tree0e864fbc2f2ac3719bb063cfb4775c07a459bff4
parent29a7b250e685852f2f97615493ec49acaf528623
Silence a bogus Valgrind warning.

When using -O2 with GCC, it liked to swap two comparisons
in one "if" statement. It's otherwise fine except that
the latter part, which is seemingly never executed, got
executed (nothing wrong with that) and then triggered
warning in Valgrind about conditional jump depending on
uninitialized variable. A few people find this annoying
so do things a bit differently to avoid the warning.
src/liblzma/lz/lz_encoder.c