Re: [PATCH v2 01/13] packfile.h: drop extern from function declarations
- From
Ramsay Jones <ramsay@ramsayjones.plus.com>
- Date
- Apr 5, 2019, 19:19 UTC
- Message-ID
- <c21b923f-54aa-defa-ecfd-11ecd6f8a664@ramsayjones.plus.com>
- In-Reply-To
- <20190405180340.GA32243@sigill.intra.peff.net>
On 05/04/2019 19:03, Jeff King wrote:
> As CodingGuidelines recommends, we do not need an "extern" when > declaring a public function. Let's drop these. Note that we leave the > extern on report_garbage(), as that is actually a function pointer, not > a function itself.
Hmm, perhaps we need to edit CodingGuidelines to make it clear that the 'extern' keyword is not needed on _function_ declarations only. ;-)
Because, ...
[snip]
> /* global flag to enable extra checks when accessing packed objects */ > -extern int do_check_packed_object_crc; > +int do_check_packed_object_crc;
... removing this 'extern' on an int variable sends 'sparse' into a frenzy of warnings! :-D
[You didn't use a global s/extern// by any chance?]
ATB, Ramsay Jones