gdb/gdbserver/
authorYao Qi <yao@codesourcery.com>
Mon, 26 Nov 2012 13:30:07 +0000 (13:30 +0000)
committerYao Qi <yao@codesourcery.com>
Mon, 26 Nov 2012 13:30:07 +0000 (13:30 +0000)
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.

gdb/gdbserver/ChangeLog
gdb/gdbserver/configure
gdb/gdbserver/configure.ac
gdb/gdbserver/linux-low.c

index 7025e582eeaadb6cce8dfbdf55002bd64c11eb04..efebfb111a06ab84c1fd6a0dd65612f23437f335 100644 (file)
@@ -1,3 +1,10 @@
+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.
+
 2012-11-15  Pierre Muller  <muller@sourceware.org>
 
        * configure.ac (AC_CHECK_HEADERS): Add wait.h header.
index b451a22bc32be7e6a0bf37a767e5e1a05419bfd1..02d45da71fc608d2b5288d478da9fa1ab10a5bf4 100755 (executable)
@@ -4569,7 +4569,7 @@ if test "${ERROR_ON_WARNING}" = yes ; then
 fi
 
 build_warnings="-Wall -Wdeclaration-after-statement -Wpointer-arith \
--Wformat-nonliteral -Wno-char-subscripts"
+-Wformat-nonliteral -Wno-char-subscripts -Wempty-body"
 
 WARN_CFLAGS=""
 if test "x$GCC" = xyes
index 46f5dc024dc6aad26e888f9c26f460d8ac82f37f..36ed82f55da41d8e1d00f621520d94b77ad4d8d8 100644 (file)
@@ -126,7 +126,7 @@ if test "${ERROR_ON_WARNING}" = yes ; then
 fi
 
 build_warnings="-Wall -Wdeclaration-after-statement -Wpointer-arith \
--Wformat-nonliteral -Wno-char-subscripts"
+-Wformat-nonliteral -Wno-char-subscripts -Wempty-body"
 
 WARN_CFLAGS=""
 if test "x$GCC" = xyes
index 2de46d288b651bcc63f93aa97a57db17bba74c32..c697f6b467725a8560566d08d83fabb1b35bb9e4 100644 (file)
@@ -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);