mharbison72 added a comment.
In D8304#124116 <https://phab.mercurial-scm.org/D8304#124116>, @yuja wrote: >> Could we enable some kind of warning to catch this in the tests ? > > -Wdeclaration-after-statement for gcc and maybe clang. I can confirm that this works on 18.04, though it doesn't issue a warning (or complain about an unknown option) on 10.14 with gcc/clang. REPOSITORY rHG Mercurial CHANGES SINCE LAST ACTION https://phab.mercurial-scm.org/D8304/new/ REVISION DETAIL https://phab.mercurial-scm.org/D8304 To: mharbison72, #hg-reviewers, marmoute Cc: yuja, marmoute, mercurial-devel _______________________________________________ Mercurial-devel mailing list [email protected] https://www.mercurial-scm.org/mailman/listinfo/mercurial-devel
