From 8c29b58e98b4a6d4354b0a5bea6af5ec47cc10aa Mon Sep 17 00:00:00 2001 From: Yao Qi Date: Mon, 26 Nov 2012 13:30:07 +0000 Subject: gdb/gdbserver/ 2012-11-26 Yao Qi * configure.ac (build_warnings): Append '-Wempty-body'. * configure: Regenerated. * linux-low.c (linux_create_inferior): Use braces for empty 'if' body. --- gdb/gdbserver/linux-low.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'gdb/gdbserver/linux-low.c') 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); -- cgit v1.1