RFR: 8062808: Turn on the -Wreturn-type warning

Stefan Karlsson stefan.karlsson at oracle.com
Wed Nov 5 20:13:08 UTC 2014


On 2014-11-05 18:50, Coleen Phillimore wrote:
>
> This looks good to me also.  I'm surprised there weren't more CHECK in 
> return statements and other changes needed.

Thanks.

StefanK

>
> Coleen
>
> On 11/5/14, 11:05 AM, Thomas Schatzl wrote:
>> Hi,
>>
>> On Wed, 2014-11-05 at 13:22 +0100, Stefan Karlsson wrote:
>>> Hi all,
>>>
>>> I propose that we turn on the -Wreturn-type warning when compiling
>>> HotSpot with GCC.
>>>
>>> This will help us catch missing return statements earlier in the
>>> development cycle.
>>>
>>> http://cr.openjdk.java.net/~stefank/8062808/webrev.01/
>>> https://bugs.openjdk.java.net/browse/JDK-8062808
>>    looks good to me.
>>
>> Thanks,
>>   Thomas
>>
>



More information about the hotspot-dev mailing list