From mboxrd@z Thu Jan 1 00:00:00 1970 From: mathieu.desnoyers@efficios.com (Mathieu Desnoyers) Date: Tue, 14 May 2019 16:37:59 -0400 Subject: [lttng-dev] [PATCH lttng-modules 2/2] Silence compiler "always false comparison" warning In-Reply-To: <20190514203759.27112-1-mathieu.desnoyers@efficios.com> References: <20190514203759.27112-1-mathieu.desnoyers@efficios.com> Message-ID: <20190514203759.27112-2-mathieu.desnoyers@efficios.com> 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