From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Andy Wingo Newsgroups: gmane.lisp.guile.devel Subject: Re: Compilation warnings in net_db.c Date: Sat, 16 Jul 2016 10:53:37 +0200 Message-ID: <877fcmx8tq.fsf@pobox.com> References: <83zipi66ye.fsf@gnu.org> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: ger.gmane.org 1468659262 6077 80.91.229.3 (16 Jul 2016 08:54:22 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sat, 16 Jul 2016 08:54:22 +0000 (UTC) Cc: guile-devel@gnu.org To: Eli Zaretskii Original-X-From: guile-devel-bounces+guile-devel=m.gmane.org@gnu.org Sat Jul 16 10:54:10 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 1bOLMP-000543-EQ for guile-devel@m.gmane.org; Sat, 16 Jul 2016 10:54:09 +0200 Original-Received: from localhost ([::1]:36479 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bOLMO-0000uL-SF for guile-devel@m.gmane.org; Sat, 16 Jul 2016 04:54:08 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:33302) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bOLMB-0000u4-Jj for guile-devel@gnu.org; Sat, 16 Jul 2016 04:53:56 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1bOLMA-0004m4-L7 for guile-devel@gnu.org; Sat, 16 Jul 2016 04:53:55 -0400 Original-Received: from pb-sasl2.pobox.com ([64.147.108.67]:52309 helo=sasl.smtp.pobox.com) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bOLM4-0004lT-8y; Sat, 16 Jul 2016 04:53:48 -0400 Original-Received: from sasl.smtp.pobox.com (unknown [127.0.0.1]) by pb-sasl2.pobox.com (Postfix) with ESMTP id 0C41E2934E; Sat, 16 Jul 2016 04:53:47 -0400 (EDT) DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=pobox.com; h=from:to:cc :subject:references:date:in-reply-to:message-id:mime-version :content-type; s=sasl; bh=WvbfqG1PDkJsX8iBQZit5QJShZE=; b=xY7irm F0im+1k4l4wRQXYidg1UxB153QfiYIMrMD3yMiR20z1ppvRXeKXUWiwop0JHCHmw ZR5DBV9kp1eEGJUcCp8uKVmgvpfhpC53nnzWPLqFCQFCRGVKxWwS0Lt4QtjFpugD ISIYBdPOjJldpooN89tuzhvxxRvgEpObA/GjQ= DomainKey-Signature: a=rsa-sha1; c=nofws; d=pobox.com; h=from:to:cc :subject:references:date:in-reply-to:message-id:mime-version :content-type; q=dns; s=sasl; b=weAWvAWZwm17dHrxNziFbGvzW8ctM7lX T0qw+0aLAjyo/qPQogFSWDy8Arh2qlT2hijfGSCB7bmEbXpjWmbYmGe5YrQtcyUv B9GOSRQaLx7vaCBQZv23ZcjCJXTR4T3bbR3DHSqFPszZX4exBCz6A8jWOHGh5dZC kCR9VdGC7PI= Original-Received: from pb-sasl2.nyi.icgroup.com (unknown [127.0.0.1]) by pb-sasl2.pobox.com (Postfix) with ESMTP id 052322934D; Sat, 16 Jul 2016 04:53:47 -0400 (EDT) Original-Received: from clucks (unknown [88.160.190.192]) (using TLSv1 with cipher ECDHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by pb-sasl2.pobox.com (Postfix) with ESMTPSA id 2583A2934C; Sat, 16 Jul 2016 04:53:46 -0400 (EDT) In-Reply-To: <83zipi66ye.fsf@gnu.org> (Eli Zaretskii's message of "Fri, 15 Jul 2016 22:23:53 +0300") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.5 (gnu/linux) X-Pobox-Relay-ID: CE62E736-4B32-11E6-8974-28A6F1301B6D-02397024!pb-sasl2.pobox.com X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] [fuzzy] X-Received-From: 64.147.108.67 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:18528 Archived-At: Hi, On Fri 15 Jul 2016 21:23, Eli Zaretskii writes: > 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? Oddly I don't get these warnings, but perhaps I should. I reworked this file to not create these variables. Thanks for the report :) Andy