Silence compiler "always false comparison" warning
authorMathieu Desnoyers <mathieu.desnoyers@efficios.com>
Tue, 14 May 2019 14:57:13 +0000 (10:57 -0400)
committerMathieu Desnoyers <mathieu.desnoyers@efficios.com>
Fri, 17 May 2019 20:39:13 +0000 (16:39 -0400)
commitedb2b3aa1fc5db78600660afdccc8853d6fea04c
tree546384b927f4b5ca1fe32591d89b9b0dffb2df21
parent4f656c2f65698720ed93ffb7d369f73dbe27689b
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
lib/bitfield.h
This page took 0.025066 seconds and 4 git commands to generate.