-
- Downloads
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>
Showing
- builtin/blame.c 2 additions, 0 deletionsbuiltin/blame.c
- builtin/shortlog.c 2 additions, 0 deletionsbuiltin/shortlog.c
- builtin/update-index.c 2 additions, 0 deletionsbuiltin/update-index.c
- parse-options.c 3 additions, 1 deletionparse-options.c
- parse-options.h 1 addition, 0 deletionsparse-options.h
Please register or sign in to comment