From: Rob Browning Date: Sat, 30 Nov 2019 18:09:04 +0000 (-0600) Subject: _helpers: fix -Wsign-compare warnings X-Git-Tag: 0.31~254 X-Git-Url: https://arthur.barton.de/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=03a81e998505a09d41ece590993eb289bef5e3fd;hp=03a81e998505a09d41ece590993eb289bef5e3fd;p=bup.git _helpers: fix -Wsign-compare warnings Python 3 adds -Wsign-compare to the compiler arguments. Address the issues that this causes gcc to warn about. Disable the warnings for the INTEGRAL_ASSIGNMENT_FITS macro since it's intentionally doing something that the compiler can't tell is OK (assuming it is), add some simple tests, and change the types and code in other places to avoid the suspect comparisons. Currently clang doesn't produce the warnings. Signed-off-by: Rob Browning Tested-by: Rob Browning ---