qemu-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Qemu-devel] [PATCH V2] build: remove compile warning


From: Paolo Bonzini
Subject: Re: [Qemu-devel] [PATCH V2] build: remove compile warning
Date: Wed, 26 Jun 2013 10:12:59 +0200
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:17.0) Gecko/20130514 Thunderbird/17.0.6

Il 24/06/2013 19:58, Stefan Weil ha scritto:
>>> hw/ppc/spapr_hcall.c:188:1: warning: control reaches end of non-void
>>> function [-Wreturn-type]
>>> hw/ppc/spapr_pci.c:454:1: warning: control reaches end of non-void
>>> function [-Wreturn-type]
>> I think you could report this to mingw.  GCC should handle "if (!0)
>> foo()" just fine if foo is noreturn, perhaps the "assertion failure"
>> runtime function is not noreturn in mingw.
> 
> It's a gcc problem. Removing the assertion manually in the source
> code and compiling with NDEBUG (which we do by default)results
> in the same compiler warning.

Huh?  That seems wrong, assertions are there for a reason...

Paolo



reply via email to

[Prev in Thread] Current Thread [Next in Thread]