compiler warning cleanup: is_signed_type: compare -1 to 1
authorMathieu Desnoyers <mathieu.desnoyers@efficios.com>
Thu, 25 Mar 2021 18:28:20 +0000 (14:28 -0400)
committerMathieu Desnoyers <mathieu.desnoyers@efficios.com>
Thu, 25 Mar 2021 18:32:16 +0000 (14:32 -0400)
commitb6cd40337647f5a01c24b155c7808a856cd8c377
treeb9144a3e432932912fea668b9e0bfee026ad156e
parent14b6f89117234871ef9f750c4d282975397e30b7
compiler warning cleanup: is_signed_type: compare -1 to 1

Comparing -1 to 0 triggers compiler warnings (gcc -Wtype-limits and
-Wbool-compare) and Coverity warning "Macro compares unsigned to 0".

Comparing -1 to 1 instead takes care of silencing those warnings while
keeping the same behavior.

Signed-off-by: Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
Change-Id: I5003ce1f80d34ca6713bab43e8114a23f2d8c1d4
include/lttng/ust-tracer.h
include/ust-bitfield.h
This page took 0.030866 seconds and 4 git commands to generate.