This is the mail archive of the
gdb-patches@sourceware.org
mailing list for the GDB project.
Re: [PATCH] Turn -Wempty-body on in gdbserver?
- From: Pedro Alves <palves at redhat dot com>
- To: Yao Qi <yao at codesourcery dot com>
- Cc: gdb-patches at sourceware dot org
- Date: Mon, 26 Nov 2012 11:41:32 +0000
- Subject: Re: [PATCH] Turn -Wempty-body on in gdbserver?
- References: <1353927773-24944-1-git-send-email-yao@codesourcery.com>
On 11/26/2012 11:02 AM, Yao Qi wrote:
> Hello,
> When compile gdbserver with clang, I get the following warning,
>
> gdb/gdbserver/linux-low.c:662:28: error: if statement has empty body [-Werror,-Wempty-body]
> /* Errors ignored. */;
> ^
> and this reminds me that we turned '-Wempty-body' on in gdb by this
> patch <http://sourceware.org/ml/gdb-patches/2012-10/msg00349.html>.
> It is also justified to do the same in gdbserver.
>
> Rebuild gdbserver for i686-pc-linux-gnu, arm-linux-gnueabi,
> tic6x-uclinux, misp-linux-gnu and mingw32. Is it OK?
OK. Thanks.
--
Pedro Alves