mbox series

[v2,0/3] -Wunreachable-code

Message ID 20250314210909.3776678-1-gitster@pobox.com (mailing list archive)
Headers show
Series -Wunreachable-code | expand

Message

Junio C Hamano March 14, 2025, 9:09 p.m. UTC
So here is a recap.  The first one has meson.build change from
Patrick squashed in, the second "errno" based one was what made
me write the last one, and is kept as-is.  The third one introduces
NOT_A_CONST() marking to an expression to tell the compiler not to
be overly aggressive to optimize it out.

Jeff King (2):
  config.mak.dev: enable -Wunreachable-code
  run-command: use errno to check for sigfillset() error

Junio C Hamano (1):
  git-compat-util: add NOT_A_CONST macro and use it in atfork_prepare()

 Makefile          | 1 +
 config.mak.dev    | 1 +
 git-compat-util.h | 9 +++++++++
 meson.build       | 2 ++
 run-command.c     | 8 +++++++-
 5 files changed, 20 insertions(+), 1 deletion(-)