Forward declare z_errmsg with static linkage since it is defined

with static linkage later in the file.  Eliminates GCC 4.0 error.
This commit is contained in:
Craig Rodrigues 2005-09-11 16:13:02 +00:00
parent 7b7a19f3c8
commit 6a3d26b2b7
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=149993

View File

@ -94,7 +94,7 @@ typedef unsigned short ush;
typedef ush FAR ushf;
typedef unsigned long ulg;
extern const char *z_errmsg[10]; /* indexed by 2-zlib_error */
static const char *z_errmsg[10]; /* indexed by 2-zlib_error */
/* (size given to avoid silly warnings with Visual C++) */
#define ERR_MSG(err) z_errmsg[Z_NEED_DICT-(err)]