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: Compilation warnings in net_db.c Date: Fri, 15 Jul 2016 22:23:53 +0300 Message-ID: <83zipi66ye.fsf@gnu.org> Reply-To: Eli Zaretskii NNTP-Posting-Host: plane.gmane.org X-Trace: ger.gmane.org 1468630498 30299 80.91.229.3 (16 Jul 2016 00:54:58 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sat, 16 Jul 2016 00:54:58 +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 02:54:38 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 1bODrS-0007pf-TV for guile-devel@m.gmane.org; Sat, 16 Jul 2016 02:53:43 +0200 Original-Received: from localhost ([::1]:34641 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bO8jK-0003dC-DV for guile-devel@m.gmane.org; Fri, 15 Jul 2016 15:24:58 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:41118) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bO8iU-0002UX-MV for guile-devel@gnu.org; Fri, 15 Jul 2016 15:24:07 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1bO8iR-00019L-CW for guile-devel@gnu.org; Fri, 15 Jul 2016 15:24:06 -0400 Original-Received: from fencepost.gnu.org ([2001:4830:134:3::e]:38452) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bO8iR-00019D-9I; Fri, 15 Jul 2016 15:24:03 -0400 Original-Received: from 84.94.185.246.cable.012.net.il ([84.94.185.246]:3807 helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_128_CBC_SHA1:128) (Exim 4.82) (envelope-from ) id 1bO8iQ-00036h-GE; Fri, 15 Jul 2016 15:24:02 -0400 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:18509 Archived-At: While compiling net_db.c from Guile 2.0.12 with MinGW, I get a bunch of warnings such as this one: 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?