From: Junio C Hamano Date: Sat, 29 Mar 2025 07:39:10 +0000 (+0900) Subject: Merge branch 'jk/use-wunreachable-code-for-devs' X-Git-Tag: v2.50.0-rc0~161 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=f76fe4ab067b9d6e530edf8205b5672ebad27bfc;p=thirdparty%2Fgit.git 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 --- f76fe4ab067b9d6e530edf8205b5672ebad27bfc diff --cc Makefile index efd8215c04,79121c5a92..ac32d2d0bd --- a/Makefile +++ b/Makefile @@@ -995,6 -984,8 +995,7 @@@ LIB_OBJS += common-init. LIB_OBJS += compat/nonblock.o LIB_OBJS += compat/obstack.o LIB_OBJS += compat/terminal.o -LIB_OBJS += compat/zlib-uncompress2.o + LIB_OBJS += compiler-tricks/not-constant.o LIB_OBJS += config.o LIB_OBJS += connect.o LIB_OBJS += connected.o diff --cc meson.build index 0902e12189,0c1904b94b..33d92c066c --- a/meson.build +++ b/meson.build @@@ -264,6 -248,8 +264,7 @@@ libgit_sources = 'compat/nonblock.c', 'compat/obstack.c', 'compat/terminal.c', - 'compat/zlib-uncompress2.c', + 'compiler-tricks/not-constant.c', 'config.c', 'connect.c', 'connected.c',