bug-gnulib
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[bug-gnulib] gcc -Wall warning for minmax.h


From: Derek Price
Subject: [bug-gnulib] gcc -Wall warning for minmax.h
Date: Fri, 13 May 2005 18:07:54 -0400
User-agent: Mozilla Thunderbird 1.0.2 (Windows/20050317)

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

I get the following warning on NetBSD 1.6.1 when using the minmax module:

In file included from /usr/include/arpa/inet.h:65,
                 from socket-client.h:27,
                 from socket-client.c:20:
/usr/include/sys/param.h:222: warning: `MIN' redefined
../lib/minmax.h:50: warning: this is the location of the previous definition
/usr/include/sys/param.h:223: warning: `MAX' redefined
../lib/minmax.h:45: warning: this is the location of the previous definition
source='stack.c' object='stack.o' libtool=no  DEPDIR=.deps depmode=gcc
/bin/sh ../build-aux/depcomp  gcc -DHAVE_CONFIG_H -I. -I. -I..  -I../lib
-I../lib  -I../diff -I../zlib  -Wall -Ino/include  -g -O2 -c stack.c


minmax was so nice and small, but would you be willing to add an m4 file
which called AC_CHECK_HEADERS([sys/param.h]) and the following lines to
the beginning of minmax.h?

#ifdef HAVE_SYS_PARAM_H
# include <sys/param.h>
#endif

I'll send the complete patch if you approve.

Cheers,

Derek
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.0 (Cygwin)
Comment: Using GnuPG with Thunderbird - http://enigmail.mozdev.org

iD8DBQFChSRFLD1OTBfyMaQRAiBGAKD99phnBoA8q1KnjRkech6pqE83uQCeK5Ta
EWudGtyfcxUtVRiapxWtWQs=
=DmyC
-----END PGP SIGNATURE-----






reply via email to

[Prev in Thread] Current Thread [Next in Thread]