From owner-freebsd-questions@FreeBSD.ORG Sun Feb 13 22:56:14 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 8BD95106564A for ; Sun, 13 Feb 2011 22:56:14 +0000 (UTC) (envelope-from roberthuff@rcn.com) Received: from smtp02.lnh.mail.rcn.net (smtp02.lnh.mail.rcn.net [207.172.157.102]) by mx1.freebsd.org (Postfix) with ESMTP id 467EF8FC0A for ; Sun, 13 Feb 2011 22:56:13 +0000 (UTC) Received: from mr16.lnh.mail.rcn.net ([207.172.157.36]) by smtp02.lnh.mail.rcn.net with ESMTP; 13 Feb 2011 17:56:13 -0500 Received: from smtp01.lnh.mail.rcn.net (smtp01.lnh.mail.rcn.net [207.172.4.11]) by mr16.lnh.mail.rcn.net (MOS 4.2.3-GA) with ESMTP id AXL18397; Sun, 13 Feb 2011 17:56:13 -0500 Received-SPF: None identity=pra; client-ip=209.6.91.204; receiver=smtp01.lnh.mail.rcn.net; envelope-from="roberthuff@rcn.com"; x-sender="roberthuff@rcn.com"; x-conformance=sidf_compatible Received-SPF: None identity=mailfrom; client-ip=209.6.91.204; receiver=smtp01.lnh.mail.rcn.net; envelope-from="roberthuff@rcn.com"; x-sender="roberthuff@rcn.com"; x-conformance=sidf_compatible Received-SPF: None identity=helo; client-ip=209.6.91.204; receiver=smtp01.lnh.mail.rcn.net; envelope-from="roberthuff@rcn.com"; x-sender="postmaster@jerusalem.litteratus.org.litteratus.org"; x-conformance=sidf_compatible Received: from 209-6-91-204.c3-0.smr-ubr1.sbo-smr.ma.cable.rcn.com (HELO jerusalem.litteratus.org.litteratus.org) ([209.6.91.204]) by smtp01.lnh.mail.rcn.net with ESMTP; 13 Feb 2011 17:56:13 -0500 From: Robert Huff MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Message-ID: <19800.24972.729085.774767@jerusalem.litteratus.org> Date: Sun, 13 Feb 2011 17:56:12 -0500 To: Chip Camden In-Reply-To: <20110213223959.GF2807@libertas.local.camdensoftware.com> References: <19800.23295.265146.528435@jerusalem.litteratus.org> <20110213223959.GF2807@libertas.local.camdensoftware.com> X-Mailer: VM 7.17 under 21.5 (beta28) "fuki" XEmacs Lucid X-Junkmail-Whitelist: YES (by domain whitelist at mr16.lnh.mail.rcn.net) Cc: questions@freebsd.org 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 22:56:14 -0000 Chip Camden writes: > > I'm writing a C program which, for various reasons, has the > > warning level turned _way_ up. > > I'm now getting this: > > > > /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 > > > > and more like it. > > Other than turning down the warning level, what's wrong and how > > do I fix it? > > Both keymaps.h and readline.h declare rl_make_bare_keymap as an external > function. Perhaps you shouldn't be including both files? Except I don't. The include list: #include #include #include #include #include #include #include #include #include #include #include #include No second "keymap.h" visible. Robert Huff