unofficial mirror of guile-devel@gnu.org 
 help / color / mirror / Atom feed
From: Eli Zaretskii <eliz@gnu.org>
To: Andy Wingo <wingo@pobox.com>
Cc: guile-devel@gnu.org
Subject: Re: Compilation warnings in net_db.c
Date: Sat, 16 Jul 2016 13:30:43 +0300	[thread overview]
Message-ID: <83mvlh6fjg.fsf@gnu.org> (raw)
In-Reply-To: <877fcmx8tq.fsf@pobox.com> (message from Andy Wingo on Sat, 16 Jul 2016 10:53:37 +0200)

> From: Andy Wingo <wingo@pobox.com>
> 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.



      reply	other threads:[~2016-07-16 10:30 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2016-07-15 19:23 Compilation warnings in net_db.c Eli Zaretskii
2016-07-16  8:53 ` Andy Wingo
2016-07-16 10:30   ` Eli Zaretskii [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.gnu.org/software/guile/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=83mvlh6fjg.fsf@gnu.org \
    --to=eliz@gnu.org \
    --cc=guile-devel@gnu.org \
    --cc=wingo@pobox.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).