aboutsummaryrefslogtreecommitdiff
path: root/gdb/testsuite/gdb.base
diff options
context:
space:
mode:
authorYao Qi <yao.qi@linaro.org>2017-05-17 14:46:17 +0100
committerYao Qi <yao.qi@linaro.org>2017-05-17 14:46:17 +0100
commit0d5c69990c1992289f7b286600a43de4d5d44062 (patch)
treeed7bf4349913b4257d0108fbbfdff316c79521f3 /gdb/testsuite/gdb.base
parent21873064e835ffb16e92048482e34f19e6a415da (diff)
downloadgdb-0d5c69990c1992289f7b286600a43de4d5d44062.zip
gdb-0d5c69990c1992289f7b286600a43de4d5d44062.tar.gz
gdb-0d5c69990c1992289f7b286600a43de4d5d44062.tar.bz2
Add nowarnings in gdb.base/fileio.exp
I see the following warning in gdb.base/fileio.c, testsuite/gdb.base/fileio.c:297:3: warning: null argument where non-null required (argument 1) [-Wnonnull] ret = stat (NULL, &st); ^ This patch adds "nowarnings" to the list passed to gdb_compile. gdb/testsuite: 2017-05-17 Yao Qi <yao.qi@linaro.org> * gdb.base/fileio.exp: Pass nowarnings to gdb_compile.
Diffstat (limited to 'gdb/testsuite/gdb.base')
-rw-r--r--gdb/testsuite/gdb.base/fileio.exp2
1 files changed, 1 insertions, 1 deletions
diff --git a/gdb/testsuite/gdb.base/fileio.exp b/gdb/testsuite/gdb.base/fileio.exp
index 6bb7141..14aaa0d 100644
--- a/gdb/testsuite/gdb.base/fileio.exp
+++ b/gdb/testsuite/gdb.base/fileio.exp
@@ -31,7 +31,7 @@ if {[is_remote host]} {
if { [gdb_compile "${srcdir}/${subdir}/${srcfile}" "${binfile}" \
executable \
- [list debug "additional_flags=-DOUTDIR=\"$outdir/\""]] != "" } {
+ [list debug nowarnings "additional_flags=-DOUTDIR=\"$outdir/\""]] != "" } {
untested "failed to compile"
return -1
}