build warnings

Chris Hegarty chris.hegarty at oracle.com
Fri Feb 7 10:54:08 UTC 2014


On 07/02/14 10:43, Michael McMahon wrote:
> It seems, the warning is emitted by the combination of:
>
> -W -Wall
>
> and could be disabled by adding -Wno-unused-parameter

Given the definition of JNI method signatures, then I agree with this. 
It would be really helpful to be able to see "real" warnings.

-Chris.

>
> Michael
>
> On 07/02/14 10:06, Dmitry Samersoff wrote:
>> Michael,
>>
>> I'm totally agree with you (and had sent to build-dev approx the same
>> letter about two weeks ago).
>>
>> On my opinion we should turn off unused parameter warning, at least for
>> product build.
>>
>> -Dmitry
>>
>>
>> On 2014-02-07 14:02, Michael McMahon wrote:
>>> Just wondering is there a plan to deal with build warnings on Linux?
>>>
>>> I was experimenting with macros that could be used to deal with the
>>> -Wunused-parameter
>>> warning, but there are over 3700 occurrences and frankly it's not a very
>>> useful
>>> warning in the context of JNI formal function parameters at least. Some
>>> more useful
>>> warnings are getting lost in the noise.
>>>
>>> - Michael.
>>>
>>
>



More information about the build-dev mailing list