Use the same ifdef logic around the call sites of decode_subcall()
to protect the definition of the func itself.  This fixes warnings
for targets like hppa which don't use this func.

* syscall.c (decode_subcall): Wrap in SYS_socket_subcall and
SYS_ipc_subcall define checks.

Signed-off-by: Mike Frysinger <[email protected]>
---
 syscall.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/syscall.c b/syscall.c
index d1c8992..ec13a46 100644
--- a/syscall.c
+++ b/syscall.c
@@ -520,7 +520,7 @@ qualify(const char *s)
 
 enum subcall_style { shift_style, deref_style, mask_style, door_style };
 
-#if !(defined(ALPHA) || defined(MIPS) || defined(__ARM_EABI__))
+#if defined(SYS_socket_subcall) || defined(SYS_ipc_subcall)
 
 static void
 decode_subcall(struct tcb *tcp, int subcall, int nsubcalls, enum subcall_style 
style)
-- 
1.7.8.5


------------------------------------------------------------------------------
This SF email is sponsosred by:
Try Windows Azure free for 90 days Click Here 
http://p.sf.net/sfu/sfd2d-msazure
_______________________________________________
Strace-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/strace-devel

Reply via email to