Trinity fuzzer tool discussions
 help / color / mirror / Atom feed
* [PATCH] syscall/prctl.c: Fix unused variable build error with USE_SECCOMP=0.
@ 2013-12-04 18:33 Vinson Lee
  2013-12-04 18:44 ` Dave Jones
  0 siblings, 1 reply; 3+ messages in thread
From: Vinson Lee @ 2013-12-04 18:33 UTC (permalink / raw)
  To: trinity; +Cc: Vinson Lee

From: Vinson Lee <vlee@twitter.com>

This patch fixes this build error on CentOS 6.

  CC	syscalls/prctl.o
cc1: warnings being treated as errors
syscalls/prctl.c: In function ‘sanitise_prctl’:
syscalls/prctl.c:36: error: unused variable ‘saddr’

Signed-off-by: Vinson Lee <vlee@twitter.com>
---
 syscalls/prctl.c |    2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)

diff --git a/syscalls/prctl.c b/syscalls/prctl.c
index acca027..bde76aa 100644
--- a/syscalls/prctl.c
+++ b/syscalls/prctl.c
@@ -33,7 +33,9 @@ static int prctl_opts[NR_PRCTL_OPTS] = {
 void sanitise_prctl(int childno)
 {
 	int option = prctl_opts[rand() % NR_PRCTL_OPTS];
+#ifdef USE_SECCOMP
 	struct sockaddr *saddr = NULL;
+#endif
 
 // For now, just do SECCOMP, the other options need some attention.
 option = PR_SET_SECCOMP;
-- 
1.7.1

^ permalink raw reply related	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2013-12-04 18:49 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-12-04 18:33 [PATCH] syscall/prctl.c: Fix unused variable build error with USE_SECCOMP=0 Vinson Lee
2013-12-04 18:44 ` Dave Jones
2013-12-04 18:49   ` Vinson Lee

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox