This is the mail archive of the gdb-patches@sourceware.org mailing list for the GDB project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [PATCH] Turn -Wempty-body on in gdbserver?


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]