Skip to content

Commit dc64e05

Browse files
committed
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 <[email protected]>
1 parent 4780c1d commit dc64e05

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

builtin/push.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -144,8 +144,8 @@ static int push_url_of_remote(struct remote *remote, const char ***url_p)
144144
return remote->url_nr;
145145
}
146146

147-
static NORETURN int die_push_simple(struct branch *branch,
148-
struct remote *remote)
147+
static NORETURN void die_push_simple(struct branch *branch,
148+
struct remote *remote)
149149
{
150150
/*
151151
* There's no point in using shorten_unambiguous_ref here,

0 commit comments

Comments
 (0)