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-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.
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
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
dup2 (2, 1);
if (write (2, "stdin/stdout redirected\n",
sizeof ("stdin/stdout redirected\n") - 1) < 0)
- /* Errors ignored. */;
+ {
+ /* Errors ignored. */;
+ }
}
execv (program, allargs);