push: do not pretend to return `int` from `die_push_simple()`
authorJohannes Schindelin <johannes.schindelin@gmx.de>
Mon, 30 Sep 2019 09:55:31 +0000 (02:55 -0700)
committerJunio C Hamano <gitster@pobox.com>
Thu, 3 Oct 2019 22:35:31 +0000 (07:35 +0900)
commitdbcd970c27ba42ab09073211f858b1a89c7f8300
tree09149afddd4594195a81d8ed1d090ea730d2e9df
parentaac6ff7b5beeea9bca66ecda6eec60fc1dd447ec
push: do not pretend to return `int` from `die_push_simple()`

This function is marked as `NORETURN`, and it indeed does not want to
return anything. So let's not declare it with the return type `int`.
This fixes the following warning when building with MSVC:

C4646: function declared with 'noreturn' has non-void return type

Signed-off-by: Johannes Schindelin <johannes.schindelin@gmx.de>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
builtin/push.c