summaryrefslogtreecommitdiff
path: root/builtin/notes.c
diff options
context:
space:
mode:
authorLibravatar Nguyễn Thái Ngọc Duy <pclouds@gmail.com>2018-12-11 16:35:01 +0100
committerLibravatar Junio C Hamano <gitster@pobox.com>2018-12-12 17:21:33 +0900
commita92ec7efe0ad25f1c2047230c0324dcb54ce1cfc (patch)
tree0089c72cfbdf54da76582fc210048badce72071e /builtin/notes.c
parentMerge branch 'nd/completion-negation' (diff)
downloadtgif-a92ec7efe0ad25f1c2047230c0324dcb54ce1cfc.tar.xz
parse-options: fix SunCC compiler warning
The compiler reports this because show_gitcomp() never actually returns a value: "parse-options.c", line 520: warning: Function has no return statement : show_gitcomp We could shut the compiler up. But instead let's not bury exit() too deep. Do the same as internal -h handling, return a special error code and handle the exit() in parse_options() (and other parse_options_step() callers) instead. Reported-by: Ævar Arnfjörð Bjarmason <avarab@gmail.com> Signed-off-by: Nguyễn Thái Ngọc Duy <pclouds@gmail.com> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'builtin/notes.c')
0 files changed, 0 insertions, 0 deletions