Maximum number of warnings allowed?

David Holmes david.holmes at oracle.com
Wed Sep 13 10:30:18 UTC 2017


On 13/09/2017 7:33 PM, David Holmes wrote:
> I'm building with --disable-warnings-as-errors but the build still fails:
> 
> 1 error
> 100 warnings
> CompileJavaModules.gmk:623: recipe for target 
> '/export/users/dh198349/valhalla/valhalla-nestmates/build/linux-x64-open-debug/jdk/modules/java.datatransfer/_the.java.datatransfer_batch' 
> failed
> make[3]: *** 
> [/export/users/dh198349/valhalla/valhalla-nestmates/build/linux-x64-open-debug/jdk/modules/java.datatransfer/_the.java.datatransfer_batch] 
> Error 1
> make/Main.gmk:198: recipe for target 'java.datatransfer-java' failed
> make[2]: *** [java.datatransfer-java] Error 1
> 
> Is there a maximum number of warnings allowed before it's considered an 
> error? Could this be coming from (s)javac? (The warnings are Java related).

I was told about -Xmaxwarns for javac and I bumped it to 1000 but it 
didn't help much:

1 error
138 warnings
...

I finally spotted this in the log:

error: warnings found and -Werror specified

 From the make-support/failure-log I see -Werror in the javac command 
line. Obviously it isn't adhering to --disable-warnings-as-errors! :(

David

> Thanks,
> David



More information about the build-dev mailing list