Skip to content

Commit b06fdea

Browse files
Denton-Lgitster
authored andcommitted
promisor-remote.h: include missing header
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 <[email protected]> Signed-off-by: Junio C Hamano <[email protected]>
1 parent 97b989e commit b06fdea

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

promisor-remote.h

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,8 @@
11
#ifndef PROMISOR_REMOTE_H
22
#define PROMISOR_REMOTE_H
33

4+
#include "repository.h"
5+
46
struct object_id;
57

68
/*

0 commit comments

Comments
 (0)