summaryrefslogtreecommitdiff
path: root/syscall.c
diff options
context:
space:
mode:
authorDenys Vlasenko <vda.linux@googlemail.com>2013-02-19 17:39:56 +0100
committerDenys Vlasenko <vda.linux@googlemail.com>2013-02-19 17:39:56 +0100
commit2544f988c96a48e48369a767d8886c4282859ed3 (patch)
tree7cc8d1ed374971f113d2fb87336bfed8a61223ab /syscall.c
parent30c03230a8a5ba41d183279dcd6d0668940267db (diff)
downloadstrace-2544f988c96a48e48369a767d8886c4282859ed3.tar.gz
strace-2544f988c96a48e48369a767d8886c4282859ed3.tar.bz2
strace-2544f988c96a48e48369a767d8886c4282859ed3.tar.xz
Fix compiler warnings
With constant current_wordsize == 4 and 32-bit longs, gcc was spooked by "1ul << (8 * current_wordsize)" = "1ul << 32". Make such places conditional on SIZEOF_LONG > 4. Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
Diffstat (limited to 'syscall.c')
-rw-r--r--syscall.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/syscall.c b/syscall.c
index a1e33e1..158fe89 100644
--- a/syscall.c
+++ b/syscall.c
@@ -2041,7 +2041,7 @@ static inline int
is_negated_errno(unsigned long int val)
{
unsigned long int max = -(long int) nerrnos;
-#if SUPPORTED_PERSONALITIES > 1
+#if SUPPORTED_PERSONALITIES > 1 && SIZEOF_LONG > 4
if (current_wordsize < sizeof(val)) {
val = (unsigned int) val;
max = (unsigned int) max;