RFR(XS): 8064786: Fix debug build after 8062808: Turn on the -Wreturn-type warning

Lindenmaier, Goetz goetz.lindenmaier at sap.com
Fri Nov 14 07:56:49 UTC 2014


Hi Stefan,

thanks for handling this!

David, Thomas, thanks for reviews!

Best regards,
  Goetz.

-----Original Message-----
From: David Holmes [mailto:david.holmes at oracle.com] 
Sent: Donnerstag, 13. November 2014 12:54
To: Stefan Karlsson; Lindenmaier, Goetz; hotspot-dev at openjdk.java.net
Subject: Re: RFR(XS): 8064786: Fix debug build after 8062808: Turn on the -Wreturn-type warning

On 13/11/2014 8:34 PM, Stefan Karlsson wrote:
> On 2014-11-13 11:20, Lindenmaier, Goetz wrote:
>> Hi,
>>
>> please review, test and sponsor this tiny change.  It fixes the debug
>> build in the gc repository.
>> https://bugs.openjdk.java.net/browse/JDK-8064786
>> http://cr.openjdk.java.net/~goetz/webrevs/8064786-warnRet/webrev.00/
>
> Looks good. Thanks for fixing. Another approach would be to just remove
> the ShouldNotReachHere() lines.
>
> I'll push when we get another review.

Reviewed.

But I'm concerned as to how this was not detected with the original fix. 
I assume we don't build with a compiler that complains about this code?

Thanks,
David

> thanks,
> StefanK
>
>>
>> Best regards,
>>    Goetz.
>


More information about the hotspot-dev mailing list