Skip to content

support pedantic in developer mode

Carlo Marcelo Arenas Belón git 2 versions – In review

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v3 Latest3 patches 15 repliesIn review
  2. v2 RFC4 patches 3 repliesSuperseded

Patches in v3 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/3gettext: remove optional non-standard parens in N_() definitionMakefile config.mak.dev gettext.h +1 more+1 -491 reply
2/3win32: allow building with pedantic mode enabledcompat/nedmalloc/nedmalloc.c compat/win32/lazyload.h config.mak.dev+10 -713 replies
3/3developer: enable pedantic by defaultMakefile config.mak.dev+5 -30 replies

Reviews trailers per patch

None of the 3 patches has a Reviewed-by or Acked-by.

PatchEric Sunshine
1/3Helped-by
2/3
3/3

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v3 thread

Cover letter [PATCH v3 0/3] support pedantic in developer mode

This series enables pedantic mode for building when DEVELOPER=1 is used and as an alternative to only enabling it in one CI job, that was merged to "seen" as part of cb/ci-build-pedantic.

The second patch is really an independent prerequisite to ensure that it doesn't break the build for Windows and is the minimal change possible.

Additional changes needed for the git-for-windows/git fork main to be posted independently.

It merges and builds successfully all the way to "seen" IF the known problem reported earlier[1] and expected as part of a reroll of jh/builtin-fsmonitor is merged first.

[1] https://lore.kernel.org/git/[email protected]/

Carlo Marcelo Arenas Belón (2):
win32: allow building with pedantic mode enabled
developer: enable pedantic by default

Ævar Arnfjörð Bjarmason (1):
gettext: remove optional non-standard parens in N_() definition

 Makefile                     | 22 ++--------------------
 compat/nedmalloc/nedmalloc.c |  2 +-
 compat/win32/lazyload.h      |  2 +-
 config.mak.dev               | 19 +++++++++++--------
 gettext.h                    | 24 ------------------------
 git-compat-util.h            |  4 ----
 6 files changed, 15 insertions(+), 58 deletions(-)

--
v3
- replace the first patch with an even better worded one from Ævar
- include minor changes needed for Windows
- version check new flags to avoid risk of breaking old compilers
- drop alternative
v2
- enable pedantic globally instead of single job as suggested by Phillip
- propose an alternative solution for USE_PARENS_AROUND_GETTEXT_N v1
- create job to check for pedantic compilation (only in Linux, using Fedora)

2.33.0.481.g26d3bed244