Comment 11 for bug 15293

Revision history for this message
Debian Bug Importer (debzilla) wrote :

Message-ID: <email address hidden>
Date: Wed, 16 Mar 2005 08:19:36 +0100
From: Andreas Jochens <email address hidden>
To: Adam Heath <email address hidden>
Cc: Andreas Jochens <email address hidden>, <email address hidden>
Subject: Re: Bug#299699: dpkg: FTBFS (amd64/gcc-4.0): array type has incomplete element type

On 05-Mar-15 17:48, Adam Heath wrote:
> I don't agree with the patch; move the struct definition.

Hello,

thank you for your fast reply to my report.

Is the following patch OK?

Regards
Andreas Jochens

diff -urN ../tmp-orig/dpkg-1.10.27/include/parsedump.h ./include/parsedump.h
--- ../tmp-orig/dpkg-1.10.27/include/parsedump.h 2005-02-10 16:24:17.000000000 +0100
+++ ./include/parsedump.h 2005-03-16 08:05:05.291829783 +0100
@@ -30,7 +30,6 @@
   const char *canon;
 };

-extern const struct fieldinfo fieldinfos[];
 extern const struct nickname nicknames[];
 extern const int nfields; /* = elements in fieldinfos, including the sentinels */

@@ -68,6 +67,8 @@
   unsigned int integer;
 };

+extern const struct fieldinfo fieldinfos[];
+
 void parseerr(FILE *file, const char *filename, int lno, FILE *warnto, int *warncount,
               const struct pkginfo *pigp, int warnonly,
               const char *fmt, ...) PRINTFFORMAT(8,9);