]> git.ipfire.org Git - thirdparty/git.git/commitdiff
promisor-remote.h: include missing header
authorDenton Liu <liu.denton@gmail.com>
Wed, 25 Sep 2019 08:20:56 +0000 (01:20 -0700)
committerJunio C Hamano <gitster@pobox.com>
Sat, 28 Sep 2019 05:04:19 +0000 (14:04 +0900)
When we ran `make hdr-check`, we got the following warning message:

promisor-remote.h:21:46: warning: declaration of 'struct repository' will not be visible outside of this function [-Wvisibility]
extern int promisor_remote_get_direct(struct repository *repo,
     ^
1 warning generated.

This was caused by a missing reference to `struct repository`, which is
defined in "repository.h".

Include this missing header to fix this warning.

Signed-off-by: Denton Liu <liu.denton@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
promisor-remote.h

index 8200dfc9408e294c28f6dc5e1e6b70790633d31d..76e8d86c7cfd5228c20ace2a244d15c682d25619 100644 (file)
@@ -1,6 +1,8 @@
 #ifndef PROMISOR_REMOTE_H
 #define PROMISOR_REMOTE_H
 
+#include "repository.h"
+
 struct object_id;
 
 /*