From: Dmitry V. Levin Date: Wed, 14 Jan 2015 07:21:36 +0000 (+0000) Subject: ARM OABI: fix potential compilation warning X-Git-Tag: v4.10~196 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=03b4454129e5ff43c2086ec649df74906778ecdb;p=strace ARM OABI: fix potential compilation warning * syscall.c (get_scno) [!__ARM_EABI__ || ENABLE_ARM_OABI]: Fix "comparison between signed and unsigned" warning reported by some gcc versions. --- diff --git a/syscall.c b/syscall.c index 343fa308..a50910ff 100644 --- a/syscall.c +++ b/syscall.c @@ -1379,7 +1379,7 @@ get_scno(struct tcb *tcp) if (errno) return -1; /* EABI syscall convention? */ - if (scno != 0xef000000) { + if ((unsigned long) scno != 0xef000000) { /* No, it's OABI */ if ((scno & 0x0ff00000) != 0x0f900000) { fprintf(stderr, "pid %d unknown syscall trap 0x%08lx\n",