From owner-freebsd-questions@FreeBSD.ORG Mon Feb 14 01:46:38 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 4D701106564A for ; Mon, 14 Feb 2011 01:46:38 +0000 (UTC) (envelope-from bonomi@mail.r-bonomi.com) Received: from mail.r-bonomi.com (craigslist.r-bonomi.com [204.87.227.120]) by mx1.freebsd.org (Postfix) with ESMTP id 240178FC14 for ; Mon, 14 Feb 2011 01:46:37 +0000 (UTC) Received: (from bonomi@localhost) by mail.r-bonomi.com (8.14.4/rdb1) id p1E1oGfE082214; Sun, 13 Feb 2011 19:50:16 -0600 (CST) Date: Sun, 13 Feb 2011 19:50:16 -0600 (CST) From: Robert Bonomi Message-Id: <201102140150.p1E1oGfE082214@mail.r-bonomi.com> To: questions@freebsd.org In-Reply-To: <19800.24972.729085.774767@jerusalem.litteratus.org> Cc: roberthuff@rcn.com 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: Mon, 14 Feb 2011 01:46:38 -0000 > From owner-freebsd-questions@freebsd.org Sun Feb 13 17:00:08 2011 > From: Robert Huff > Date: Sun, 13 Feb 2011 17:56:12 -0500 > To: Chip Camden > Cc: questions@freebsd.org > Subject: Re: problem when including readline.h > > > 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. You have to chase through all the includes to see what is included by the files you directly include. It's pretty sure to be sometthing in the '' directory. > The include list: > > #include > #include > #include > #include > #include > #include > #include > #include > #include > #include > #include > #include > > No second "keymap.h" visible. >