summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorDavid McCullough <davidm@snapgear.com>2002-08-09 13:03:00 +0000
committerDavid McCullough <davidm@snapgear.com>2002-08-09 13:03:00 +0000
commitbea67a752df6f8e1dfce75592fb7c371e5c8a212 (patch)
treec9b547baafaae100ab2c34ef6930ba48a1a5a736 /include
parent54e4a312a7ac8609604d922950d29f618d1cb04c (diff)
Fix a number of compile time warnings so that uClibc will build with -Werror using
a 3.0.4 version of the sh-linux-gcc compiler.
Diffstat (limited to 'include')
-rw-r--r--include/features.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/include/features.h b/include/features.h
index 230baedd7..ca3641688 100644
--- a/include/features.h
+++ b/include/features.h
@@ -422,8 +422,8 @@ uClibc was built without large file support enabled.
#define __builtin_expect(x, expected_value) (x)
#endif
-#define likely(x) __builtin_expect((x),1)
-#define unlikely(x) __builtin_expect((x),0)
+#define likely(x) __builtin_expect(((int)(x)),1)
+#define unlikely(x) __builtin_expect(((int)(x)),0)
/* --- this is added to integrate linuxthreads */
#define __USE_UNIX98 1