Hi On Thu, Mar 26, 2020 at 1:42 PM Eli Schwartz <[email protected]> wrote: > > On 3/26/20 3:32 PM, Anatol Pomozov wrote: > > Hello > > > > In this case I would like to propose to move forward with my original > > patch and enable 'pedantic' warning level by default. It will match > > the flag with the Makefile based build. > The original patch did not clarify this was about parity with autotools. > I've looked around a bit and my conclusions are as follows: > > - We always defaulted to -pedantic -D_GNU_SOURCE -Wall in autotools, > plus additional flags if --enable-warningflags > > - meson will, with warning_level 3, add -Wall -Wextra -Wpedantic, which > means this patch would add the heretofore-unseen -Wextra > (warning_level 1 only adds -Wall, 2 adds -Wall -Wextra, no option is > available for those who like -Wpedantic but don't want -Wextra) > > Since autotools unconditionally added these flags, parity suggests > always adding them in meson too. Do we care about -Wextra? We currently > build with -Wextra without warnings being emitted, anyway. > > If -Wextra is fine then we can just take this current patch, but amend > it to add -Wextra to configure.ac near > > ``` > if test "x$debug" = "xyes" ; then > ``` > > Anatol, can you also update the commit message to mention that this is > implementing parity with the default autotools warning level?
Sure, will send an updated patch in a minute. PTAL.
