# [PATCH 7/9] midx.h: add missing forward declarations (hdr-check)

2 messages from 2018-09-19 to 2018-09-20. Participants: Ramsay Jones, Derrick Stolee.
Thread: https://gitlist.dev/t/49374

## Ramsay Jones, 2018-09-19 00:13

Subject: [PATCH 7/9] midx.h: add missing forward declarations (hdr-check)
Message-ID: <7b45f9df-5d46-7d75-02d0-457a8ccabf37@ramsayjones.plus.com>
URL: https://gitlist.dev/e/7b45f9df-5d46-7d75-02d0-457a8ccabf37%40ramsayjones.plus.com

```

Signed-off-by: Ramsay Jones <ramsay@ramsayjones.plus.com>
---
 midx.h | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/midx.h b/midx.h
index a210f1af2a..622ddac472 100644
--- a/midx.h
+++ b/midx.h
@@ -3,6 +3,9 @@
 
 #include "repository.h"
 
+struct object_id;
+struct pack_entry;
+
 struct multi_pack_index {
 	struct multi_pack_index *next;
 
-- 
2.19.0

```

## Derrick Stolee, 2018-09-19 23:35

Subject: Re: [PATCH 7/9] midx.h: add missing forward declarations (hdr-check)
Message-ID: <23cbbba5-029e-8031-ec02-a6aa5ec310b2@gmail.com>
URL: https://gitlist.dev/e/23cbbba5-029e-8031-ec02-a6aa5ec310b2%40gmail.com
In-Reply-To: <7b45f9df-5d46-7d75-02d0-457a8ccabf37@ramsayjones.plus.com>

```
On 9/18/2018 8:13 PM, Ramsay Jones wrote:
> Signed-off-by: Ramsay Jones <ramsay@ramsayjones.plus.com>
> ---
>   midx.h | 3 +++
>   1 file changed, 3 insertions(+)
>
> diff --git a/midx.h b/midx.h
> index a210f1af2a..622ddac472 100644
> --- a/midx.h
> +++ b/midx.h
> @@ -3,6 +3,9 @@
>   
>   #include "repository.h"
>   
> +struct object_id;
> +struct pack_entry;
> +
>   struct multi_pack_index {
>   	struct multi_pack_index *next;
>   

Thanks for catching this!

Reviewed-by: Derrick Stolee <dstolee@microsoft.com>

```
