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:46 +0000 (17:35 -0400)
commit6f0f3216eb57ce0eda0f0f1195d9f7181bac7d83
tree322a4c31bf3064ff80d79abdac0503210b9d7fe1
parent670c619d5fc86bda34ea606b425be7c1c8f2167c
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.025105 seconds and 4 git commands to generate.