]> git.lttng.org Git - lttng-ust.git/commit
Silence compiler "always false comparison" warning
authorMathieu Desnoyers <mathieu.desnoyers@efficios.com>
Tue, 14 May 2019 14:49:37 +0000 (10:49 -0400)
committerMathieu Desnoyers <mathieu.desnoyers@efficios.com>
Fri, 17 May 2019 20:33:26 +0000 (16:33 -0400)
commit3268eea058929e63873bfc37c3778f0e20c3e4e5
treea1bcf59e62a18f7f964c26906f5b114e9c39c27e
parentfa81c5dfcdcfd5dc613a616bf0c159ef9af791be
Silence compiler "always false comparison" warning

Compiling the bitfield test with gcc -Wextra generates those warnings:

 ../../include/babeltrace/bitfield-internal.h:38:45: warning: comparison of unsigned expression < 0 is always false [-Wtype-limits]
 #define _bt_is_signed_type(type) ((type) -1 < (type) 0)

This is the intent of the macro. Disable compiler warnings around use of
that macro.

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