Merge branch 'jk/use-wunreachable-code-for-devs'

Enable -Wunreachable-code for developer builds.

* jk/use-wunreachable-code-for-devs:
  config.mak.dev: enable -Wunreachable-code
  git-compat-util: add NOT_CONSTANT macro and use it in atfork_prepare()
  run-command: use errno to check for sigfillset() error
This commit is contained in:
Junio C Hamano
2025-03-29 16:39:10 +09:00
6 changed files with 22 additions and 1 deletions

View File

@@ -264,6 +264,7 @@ libgit_sources = [
'compat/nonblock.c',
'compat/obstack.c',
'compat/terminal.c',
'compiler-tricks/not-constant.c',
'config.c',
'connect.c',
'connected.c',
@@ -719,6 +720,7 @@ if get_option('warning_level') in ['2','3', 'everything'] and compiler.get_argum
'-Woverflow',
'-Wpointer-arith',
'-Wstrict-prototypes',
'-Wunreachable-code',
'-Wunused',
'-Wvla',
'-Wwrite-strings',