~angelsl/ubuntu/wily/gcc-5/mips-cross

« back to all changes in this revision

Viewing changes to debian/patches/testsuite-glibc-warnings.diff

  • Committer: angelsl
  • Date: 2015-10-30 03:30:35 UTC
  • Revision ID: angelsl-20151030033035-rmug41zm8hyjgisg
Original import

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
# DP: fix testcases that triggered -Wunused-result with glibc
 
2
# DP: Author: Steve Beattie <steve.beattie@canonical.com>
 
3
---
 
4
 src/gcc/testsuite/c-c++-common/cilk-plus/AN/comma_exp.c |    2 +-
 
5
 src/gcc/testsuite/c-c++-common/tsan/fd_pipe_race.c      |    1 +
 
6
 2 files changed, 2 insertions(+), 1 deletion(-)
 
7
 
 
8
Index: b/src/gcc/testsuite/c-c++-common/tsan/fd_pipe_race.c
 
9
===================================================================
 
10
--- a/src/gcc/testsuite/c-c++-common/tsan/fd_pipe_race.c
 
11
+++ b/src/gcc/testsuite/c-c++-common/tsan/fd_pipe_race.c
 
12
@@ -1,5 +1,5 @@
 
13
 /* { dg-shouldfail "tsan" } */
 
14
-/* { dg-additional-options "-ldl" } */
 
15
+/* { dg-additional-options "-Wno-unused-result -ldl" } */
 
16
 
 
17
 #include <pthread.h>
 
18
 #include <unistd.h>
 
19
Index: b/src/gcc/testsuite/c-c++-common/cilk-plus/AN/comma_exp.c
 
20
===================================================================
 
21
--- a/src/gcc/testsuite/c-c++-common/cilk-plus/AN/comma_exp.c
 
22
+++ b/src/gcc/testsuite/c-c++-common/cilk-plus/AN/comma_exp.c
 
23
@@ -1,5 +1,5 @@
 
24
 /* { dg-do run } */
 
25
-/* { dg-options "-fcilkplus" } */
 
26
+/* { dg-options "-fcilkplus -Wno-unused-result" } */
 
27
 
 
28
 #include <stdlib.h>
 
29