From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Eli Zaretskii Newsgroups: gmane.lisp.guile.devel Subject: Re: Compilation warnings in net_db.c Date: Sat, 16 Jul 2016 13:30:43 +0300 Message-ID: <83mvlh6fjg.fsf@gnu.org> References: <83zipi66ye.fsf@gnu.org> <877fcmx8tq.fsf@pobox.com> Reply-To: Eli Zaretskii NNTP-Posting-Host: plane.gmane.org X-Trace: ger.gmane.org 1468665073 19774 80.91.229.3 (16 Jul 2016 10:31:13 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sat, 16 Jul 2016 10:31:13 +0000 (UTC) Cc: guile-devel@gnu.org To: Andy Wingo Original-X-From: guile-devel-bounces+guile-devel=m.gmane.org@gnu.org Sat Jul 16 12:31:09 2016 Return-path: Envelope-to: guile-devel@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1bOMsB-0005WG-U6 for guile-devel@m.gmane.org; Sat, 16 Jul 2016 12:31:04 +0200 Original-Received: from localhost ([::1]:36781 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bOMsB-0005i6-34 for guile-devel@m.gmane.org; Sat, 16 Jul 2016 06:31:03 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:45581) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bOMs5-0005hy-IE for guile-devel@gnu.org; Sat, 16 Jul 2016 06:30:58 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1bOMs0-0004Gi-7i for guile-devel@gnu.org; Sat, 16 Jul 2016 06:30:56 -0400 Original-Received: from fencepost.gnu.org ([2001:4830:134:3::e]:50171) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bOMs0-0004GZ-4z; Sat, 16 Jul 2016 06:30:52 -0400 Original-Received: from 84.94.185.246.cable.012.net.il ([84.94.185.246]:4583 helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_128_CBC_SHA1:128) (Exim 4.82) (envelope-from ) id 1bOMry-0001zm-CO; Sat, 16 Jul 2016 06:30:50 -0400 In-reply-to: <877fcmx8tq.fsf@pobox.com> (message from Andy Wingo on Sat, 16 Jul 2016 10:53:37 +0200) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 2001:4830:134:3::e X-BeenThere: guile-devel@gnu.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: "Developers list for Guile, the GNU extensibility library" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guile-devel-bounces+guile-devel=m.gmane.org@gnu.org Original-Sender: "guile-devel" Xref: news.gmane.org gmane.lisp.guile.devel:18535 Archived-At: > From: Andy Wingo > Cc: guile-devel@gnu.org > Date: Sat, 16 Jul 2016 10:53:37 +0200 > > > net_db.c:454:20: warning: 'sym_ai_passive' defined but not used [-Wunused-variable] > > SCM_VARIABLE_INIT (sym_ai_passive, "AI_PASSIVE", > > ^ > > ../libguile/snarf.h:82:29: note: in definition of macro 'SCM_SNARF_HERE' > > # define SCM_SNARF_HERE(X) X > > ^ > > net_db.c:454:1: note: in expansion of macro 'SCM_VARIABLE_INIT' > > SCM_VARIABLE_INIT (sym_ai_passive, "AI_PASSIVE", > > ^ > > > > AFAICT, these SCM_VARIABLE_INIT calls wind up declaring static > > variables that are not used in net_db.c. Is that what's supposed to > > happen, or do I need to look more into this? Do people get these > > warnings on Posix platforms? > > Oddly I don't get these warnings, but perhaps I should. Which version of GCC do you use? I have 5.3.0 here, and its quite picky, given the warning options we use. > I reworked this file to not create these variables. Thanks for the > report :) Thanks.