diff options
| author | Junio C Hamano <gitster@pobox.com> | 2025-03-29 16:39:10 +0900 |
|---|---|---|
| committer | Junio C Hamano <gitster@pobox.com> | 2025-03-29 16:39:10 +0900 |
| commit | f76fe4ab067b9d6e530edf8205b5672ebad27bfc (patch) | |
| tree | 7d8e5a823e75ee64c35b839fceedd9cbeb5074c5 /compiler-tricks/not-constant.c | |
| parent | Merge branch 'en/diff-rename-follow-fix' (diff) | |
| parent | config.mak.dev: enable -Wunreachable-code (diff) | |
| download | git-f76fe4ab067b9d6e530edf8205b5672ebad27bfc.tar.gz git-f76fe4ab067b9d6e530edf8205b5672ebad27bfc.zip | |
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
Diffstat (limited to 'compiler-tricks/not-constant.c')
| -rw-r--r-- | compiler-tricks/not-constant.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/compiler-tricks/not-constant.c b/compiler-tricks/not-constant.c new file mode 100644 index 0000000000..1da3ffc2f5 --- /dev/null +++ b/compiler-tricks/not-constant.c @@ -0,0 +1,2 @@ +#include <git-compat-util.h> +int false_but_the_compiler_does_not_know_it_; |
