gcc warning fix: -Wextra
authorMathieu Desnoyers <mathieu.desnoyers@efficios.com>
Tue, 8 Oct 2013 21:33:55 +0000 (17:33 -0400)
committerMathieu Desnoyers <mathieu.desnoyers@efficios.com>
Fri, 21 Feb 2014 16:59:10 +0000 (11:59 -0500)
commit0f2dee49b850816973685ea8674252c9b4c37e1e
tree68f5f2c12548d4554f672f051ae0abed469d9ac2
parent6d84bfcf07a0867721870978fe6ae2043d9be5b6
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/babeltrace/bitfield.h
This page took 0.026657 seconds and 4 git commands to generate.