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>
This commit is contained in:
parent
aac6ff7b5b
commit
dbcd970c27
@ -143,7 +143,7 @@ static int push_url_of_remote(struct remote *remote, const char ***url_p)
|
|||||||
return remote->url_nr;
|
return remote->url_nr;
|
||||||
}
|
}
|
||||||
|
|
||||||
static NORETURN int die_push_simple(struct branch *branch,
|
static NORETURN void die_push_simple(struct branch *branch,
|
||||||
struct remote *remote)
|
struct remote *remote)
|
||||||
{
|
{
|
||||||
/*
|
/*
|
||||||
|
Loading…
x
Reference in New Issue
Block a user