Add nowarnings in gdb.base/fileio.exp
authorYao Qi <yao.qi@linaro.org>
Wed, 17 May 2017 13:46:17 +0000 (14:46 +0100)
committerYao Qi <yao.qi@linaro.org>
Wed, 17 May 2017 13:46:17 +0000 (14:46 +0100)
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.

gdb/testsuite/ChangeLog
gdb/testsuite/gdb.base/fileio.exp

index 91712e2c0b6455a71831c22aeb22a75282ce44ab..6f877daeae1c2ca1f5819f48694d72ff3d422ec3 100644 (file)
@@ -1,3 +1,7 @@
+2017-05-17  Yao Qi  <yao.qi@linaro.org>
+
+       * gdb.base/fileio.exp: Pass nowarnings to gdb_compile.
+
 2017-05-17  Simon Marchi  <simon.marchi@ericsson.com>
 
        * gdb.base/set-inferior-tty.exp (test_set_inferior_tty): Add
index 6bb71415d17cf4b80115a717b2356800c86448e6..14aaa0d36ab397e56e36cb066ef7a2dce31aedda 100644 (file)
@@ -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
 }