RFR: 8325163: Enable -Wpedantic on clang

Kim Barrett kbarrett at openjdk.org
Mon Feb 5 03:24:01 UTC 2024


On Fri, 2 Feb 2024 15:22:03 GMT, Magnus Ihse Bursie <ihse at openjdk.org> wrote:

> Inspired by (the later backed-out) [JDK-8296115](https://bugs.openjdk.org/browse/JDK-8296115), I propose to enable `-Wpedantic` for clang. This has already found some irregularities in the code, like mistakenly using `#import` instead of `#include`. In this patch, I disable warnings for these individual buggy or badly written files, but I intend to post follow-up issues on the respective teams to have them properly fixed.

Rather than first turning on pedantic warnings and then (maybe) going back and perhaps fixing things, I'd really prefer
things be done in the other order.  (That's how I handled the recent `-Wparentheses` changes, for example.)

-------------

PR Comment: https://git.openjdk.org/jdk/pull/17687#issuecomment-1926164327


More information about the build-dev mailing list