gcc warning fix: -Wextra
[lttng-ust.git] / include / lttng / bitfield.h
index b7b4a1bd5e93ba39fdce43846e73c7e36525a72a..ef5453c29be2397b225126daa8b2515abdb33c61 100644 (file)
@@ -30,7 +30,6 @@
 #include <stdint.h>    /* C99 5.2.4.2 Numerical limits */
 #include <limits.h>    /* C99 5.2.4.2 Numerical limits */
 #include <lttng/ust-endian.h>  /* Non-standard BIG_ENDIAN, LITTLE_ENDIAN, BYTE_ORDER */
-#include <assert.h>
 
 /* We can't shift a int from 32 bit, >> 32 and << 32 on int is undefined */
 #define _bt_piecewise_rshift(_v, _shift)                               \
@@ -57,7 +56,7 @@
        ___v <<= final;                                                 \
 })
 
-#define _bt_is_signed_type(type)       (((type)(-1)) < 0)
+#define _bt_is_signed_type(type)       ((type) -1 < (type) 0)
 
 #define _bt_unsigned_cast(type, v)                                     \
 ({                                                                     \
This page took 0.025815 seconds and 4 git commands to generate.