aboutsummaryrefslogtreecommitdiff
path: root/gdb/gdbserver/linux-low.c
diff options
context:
space:
mode:
authorYao Qi <yao@codesourcery.com>2012-11-26 13:30:07 +0000
committerYao Qi <yao@codesourcery.com>2012-11-26 13:30:07 +0000
commit8c29b58e98b4a6d4354b0a5bea6af5ec47cc10aa (patch)
treef15a1549d03a406b61ec6ef577b759245659c4bc /gdb/gdbserver/linux-low.c
parent9c16be9afa30916420fd406dc0184c6665ee716c (diff)
downloadgdb-8c29b58e98b4a6d4354b0a5bea6af5ec47cc10aa.zip
gdb-8c29b58e98b4a6d4354b0a5bea6af5ec47cc10aa.tar.gz
gdb-8c29b58e98b4a6d4354b0a5bea6af5ec47cc10aa.tar.bz2
gdb/gdbserver/
2012-11-26 Yao Qi <yao@codesourcery.com> * configure.ac (build_warnings): Append '-Wempty-body'. * configure: Regenerated. * linux-low.c (linux_create_inferior): Use braces for empty 'if' body.
Diffstat (limited to 'gdb/gdbserver/linux-low.c')
-rw-r--r--gdb/gdbserver/linux-low.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/gdb/gdbserver/linux-low.c b/gdb/gdbserver/linux-low.c
index 2de46d2..c697f6b 100644
--- a/gdb/gdbserver/linux-low.c
+++ b/gdb/gdbserver/linux-low.c
@@ -659,7 +659,9 @@ linux_create_inferior (char *program, char **allargs)
dup2 (2, 1);
if (write (2, "stdin/stdout redirected\n",
sizeof ("stdin/stdout redirected\n") - 1) < 0)
- /* Errors ignored. */;
+ {
+ /* Errors ignored. */;
+ }
}
execv (program, allargs);