mifare: use unsigned int to suppress compiler -Wstrict-overflow
GCC v7.5 (Ubuntu Bionic) with optimizations has trouble spotting lack of
possible overflow of a signed integer. There is no overflow possible
so this is a false positive which can be suppressed by simply using
unsigned integer. Unsigned also has more sense in that context.
This fixes GCC 7.5 warning:
plugins/mifare.c: In function 'mifare_process_MADs':
plugins/mifare.c:626:5: error: assuming signed overflow does not occur when simplifying conditional to constant [-Werror=strict-overflow]
if (global_tag_size == 0) {
^
Signed-off-by: Krzysztof Kozlowski <krzysztof.kozlowski@canonical.com>
1 file changed