~lttng/lttng-modules/trunk

Viewing all changes in revision 1215.

  • Committer: Mathieu Desnoyers
  • Date: 2019-05-17 20:34:22 UTC
  • Revision ID: git-v1:9282620c748aa737553da4d20075df0f7317708f
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

expand all expand all

Show diffs side-by-side

added added

removed removed

Lines of Context: