unofficial mirror of guile-devel@gnu.org 
 help / color / mirror / Atom feed
* Compilation warnings in net_db.c
@ 2016-07-15 19:23 Eli Zaretskii
  2016-07-16  8:53 ` Andy Wingo
  0 siblings, 1 reply; 3+ messages in thread
From: Eli Zaretskii @ 2016-07-15 19:23 UTC (permalink / raw)
  To: Andy Wingo; +Cc: guile-devel

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?



^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2016-07-16 10:30 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
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 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).