Re: [PATCH v2 3/8] diff-delta.c: "delta.h" is not a required include
- From
Nicolas Pitre <nico@cam.org>
- Date
- Jun 6, 2009, 01:21 UTC
- Message-ID
- <alpine.LFD.2.00.0906052112590.3906@xanadu.home>
- In-Reply-To
- <M3MzU6FlQXfVApDnN0vdEf4UcS0v8Dh-XOz1cA15MA7nN8wUHrIif6F7g1-JWcHSJSi5Z6_vOoA@cipher.nrlssc.navy.mil>
On Fri, 5 Jun 2009, Brandon Casey wrote:
Show 10 quoted lines
> From: Brandon Casey <drafnel@gmail.com> > > When compiling diff-delta.c with the SUNWspro C99 compiler, it complains > > "diff-delta.c", line 314: identifier redeclared: create_delta > > There is nothing in "delta.h" that is required by diff-delta.c, so don't > include it. > > Signed-off-by: Brandon Casey <drafnel@gmail.com>
NAK.
This is common practice to include the header file declaring function prototypes into the file defining the actual function so to make sure the declaration matches with the definition. Deleting that include is actively ignoring a problem instead of fixing the cause of it.
Nicolas