66,8 → 66,7 |
#define __must_check __attribute__((warn_unused_result)) |
#define __deprecated __attribute__((deprecated)) |
#define __used __attribute__((used)) |
// __unused gives errors in x86_64 |
#define __UNUSED __attribute__((unused)) |
#define __unused __attribute__((unused)) |
#define __packed __attribute__((packed)) |
#define likely(x) __builtin_expect (!!(x), 1) |
#define unlikely(x) __builtin_expect (!!(x), 0) |
87,7 → 86,7 |
#define __must_check /* no warn_unused_result */ |
#define __deprecated /* no deprecated */ |
#define __used /* no used */ |
#define __UNUSED /* no unused */ |
#define __unused /* no unused */ |
#define __packed /* no packed */ |
#define likely(x) (x) |
#define unlikely(x) (x) |
151,7 → 150,7 |
* Same as FSL_LOG_WITH_LEVEL but taking a va_list, this function |
* provides the implementation used by the other FSL_LOG_*'s |
*/ |
static inline void __UNUSED FSL_LOG_WITH_LEVEL_IMPL(int level, |
static inline void __unused FSL_LOG_WITH_LEVEL_IMPL(int level, |
gchar * const format, |
va_list ap) |
{ |
165,7 → 164,7 |
* Display a log message with a given log level if the level |
* is at least VERBOSITY_LEVEL(). |
*/ |
static void __UNUSED __va_fprintf FSL_LOG_WITH_LEVEL(int level, |
static void __unused __va_fprintf FSL_LOG_WITH_LEVEL(int level, |
gchar * const format, |
...) |
{ |
181,7 → 180,7 |
* |
* NOTE: Variadic functions can't be inlined |
*/ |
static void __UNUSED __va_printf FSL_LOG(gchar * const format, ...) |
static void __unused __va_printf FSL_LOG(gchar * const format, ...) |
{ |
va_list ap; |
va_start(ap, format); |
195,7 → 194,7 |
* |
* NOTE: Variadic functions can't be inlined |
*/ |
static void __UNUSED __va_fprintf FSL_LOG_COND(int cond, gchar * const format, ...) |
static void __unused __va_fprintf FSL_LOG_COND(int cond, gchar * const format, ...) |
{ |
if (cond) { |
va_list ap; |