gcc warning fix: -Wextra
authorMathieu Desnoyers <mathieu.desnoyers@efficios.com>
Tue, 8 Oct 2013 21:35:15 +0000 (17:35 -0400)
committerMathieu Desnoyers <mathieu.desnoyers@efficios.com>
Tue, 8 Oct 2013 21:35:49 +0000 (17:35 -0400)
commitc523a247c215dcad9a8cfdbeef84c2b330643dd8
treebc20ce7f34c6efbe8a9db4c0cc7568073fff0328
parent95935cdd47dda0c644c6f6b18f714ce811fe6b2c
gcc warning fix: -Wextra

For the "ordered comparison of pointer with integer zero" warning, fix
this by comparing (type) -1 against (type) 0 instead of just 0, so if
"type" is a pointer type, this pointer type will be applied to the right
operand too, thus fixing the warning.

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