From owner-freebsd-questions@FreeBSD.ORG Sun Feb 13 23:17:39 2011 Return-Path: Delivered-To: questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 82FA61065670 for ; Sun, 13 Feb 2011 23:17:39 +0000 (UTC) (envelope-from sterling@camdensoftware.com) Received: from wh2.interactivevillages.com (wh2.interactivevillages.com [75.125.250.34]) by mx1.freebsd.org (Postfix) with ESMTP id 48BA18FC1C for ; Sun, 13 Feb 2011 23:17:39 +0000 (UTC) Received: from c-24-22-230-24.hsd1.wa.comcast.net ([24.22.230.24] helo=_HOSTNAME_) by wh2.interactivevillages.com with esmtpsa (TLSv1:AES256-SHA:256) (Exim 4.69) (envelope-from ) id 1PolC8-0002SA-Iv for questions@freebsd.org; Sun, 13 Feb 2011 15:17:33 -0800 Received: by _HOSTNAME_ (sSMTP sendmail emulation); Sun, 13 Feb 2011 15:17:34 -0800 Date: Sun, 13 Feb 2011 15:17:34 -0800 From: Chip Camden To: questions@freebsd.org Message-ID: <20110213231734.GH2807@libertas.local.camdensoftware.com> Mail-Followup-To: questions@freebsd.org References: <19800.23295.265146.528435@jerusalem.litteratus.org> <20110213223959.GF2807@libertas.local.camdensoftware.com> <19800.24972.729085.774767@jerusalem.litteratus.org> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="kHRd/tpU31Zn62xO" Content-Disposition: inline In-Reply-To: <19800.24972.729085.774767@jerusalem.litteratus.org> User-Agent: Mutt/1.4.2.3i Company: Camden Software Consulting URL: http://camdensoftware.com X-PGP-Key: http://pgp.mit.edu:11371/pks/lookup?search=0xD6DBAF91 X-AntiAbuse: This header was added to track abuse, please include it with any abuse report X-AntiAbuse: Primary Hostname - wh2.interactivevillages.com X-AntiAbuse: Original Domain - freebsd.org X-AntiAbuse: Originator/Caller UID/GID - [47 12] / [47 12] X-AntiAbuse: Sender Address Domain - camdensoftware.com Cc: Subject: Re: problem when including readline.h X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 13 Feb 2011 23:17:39 -0000 --kHRd/tpU31Zn62xO Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Quoth Robert Huff on Sunday, 13 February 2011: > Chip Camden writes: >=20 > > > 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 redeclarati= on 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 > > Both keymaps.h and readline.h declare rl_make_bare_keymap as an extern= al > > function. Perhaps you shouldn't be including both files? >=20 > Except I don't. The include list: >=20 > #include > #include > #include > #include > #include > #include > #include > #include > #include > #include > #include > #include >=20 > No second "keymap.h" visible. >=20 >=20 > Robert Huff >=20 Ah -- readline.h includes keymaps.h. You're SOL. --=20 Sterling (Chip) Camden | sterling@camdensoftware.com | 2048D/3A978E4F http://chipsquips.com | http://camdensoftware.com | http://chipstips.com --kHRd/tpU31Zn62xO Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.11 (FreeBSD) iQEcBAEBAgAGBQJNWGaOAAoJEIpckszW26+RxYUIALkY8RRjLrJUUft5nfC2IkY9 dUxi12oXrtOf8qBbIhQM+juGewon4eOVysbOfdDjDAB7X4xgpzBHZTZCoIqniMFP 6JqZ2S3yJi/2sAIzTHlIFLAvMRAt4j6o/XkL9GPZRT7I793I4T/PR4crTxySWkdY W0qkkolsP9sDzJ6cO+cTFdfuFN/rlg1zrTxWrusDf0iixhk/+z6CTeXrcEP5GNug 3JDd4k6meZTMfDclPsWTv2JKm2sf+ougJdXWMnYHnF7YWJX2jlDrNYBqoNlF6sjx ar6vzQY1LSriCkKSciH1VEXFg2d/6TsikAl9tFSKeWZSS0rW19RK5mOC8H/F7UA= =us9i -----END PGP SIGNATURE----- --kHRd/tpU31Zn62xO--