Date: Sun, 13 Feb 2011 14:39:59 -0800 From: Chip Camden <sterling@camdensoftware.com> To: questions@freebsd.org Subject: Re: problem when including readline.h Message-ID: <20110213223959.GF2807@libertas.local.camdensoftware.com> In-Reply-To: <19800.23295.265146.528435@jerusalem.litteratus.org> References: <19800.23295.265146.528435@jerusalem.litteratus.org>
next in thread | previous in thread | raw e-mail | index | archive | help
--iBwuxWUsK/REspAd Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Quoth Robert Huff on Sunday, 13 February 2011: > I'm writing a C program which, for various reasons, has the > warning level turned _way_ up. > I'm now getting this: >=20 > /usr/include/readline/readline.h:336: warning: redundant redeclaration of= 'rl_make_bare_keymap' > /usr/include/readline/keymaps.h:74: warning: previous declaration of 'rl_= make_bare_keymap' was here >=20 > and more like it. > Other than turning down the warning level, what's wrong and how > do I fix it? >=20 > Respectfully, >=20 >=20 > Robert Huff >=20 Both keymaps.h and readline.h declare rl_make_bare_keymap as an external function. Perhaps you shouldn't be including both files? --=20 Sterling (Chip) Camden | sterling@camdensoftware.com | 2048D/3A978E4F http://chipsquips.com | http://camdensoftware.com | http://chipstips.com --iBwuxWUsK/REspAd Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.11 (FreeBSD) iQEcBAEBAgAGBQJNWF2/AAoJEIpckszW26+RTroH/iqw9y5JvOBHisTbDUw2ewvV NvxJFnWYcp9yJAepmJ+1nw23KTv7tAJIarxWzqw+846VSHi8UjkNQvTSBMrrGx0v waXJYTwdbFYZPEye0HhrMlo7PMo88PrQq7UEELD3rhpVxF0kaWoMFVH8nHurS2yZ yJPylGusf+CZoI/vRNyRXPngcm8eBSiAni2vOApiwiVLSFOhU0zOw1QQPbEvnYWa /BakiNs3uDub6X/GyywUuByhAo0JVN5mFSg8BUOectmTLVwuOfjtDdIFMMBWVoPJ pYvOAzfXynLmEZyLgE0k4Ruf7VTYRDM/fxRTuhG3E0lC15UH1BJeLoDsvUWqtxg= =z5D0 -----END PGP SIGNATURE----- --iBwuxWUsK/REspAd--
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20110213223959.GF2807>