From c3a9c8a90b59b3099415974cc04763cf41ea306d Mon Sep 17 00:00:00 2001 From: rodrigc Date: Sun, 11 Sep 2005 16:13:02 +0000 Subject: Forward declare z_errmsg with static linkage since it is defined with static linkage later in the file. Eliminates GCC 4.0 error. --- sys/net/zlib.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'sys') diff --git a/sys/net/zlib.c b/sys/net/zlib.c index 73e9572..8fc8cab 100644 --- a/sys/net/zlib.c +++ b/sys/net/zlib.c @@ -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)] -- cgit v1.1