guile-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: compilation warnings


From: Marius Vollmer
Subject: Re: compilation warnings
Date: 27 Jul 2003 18:56:23 +0200
User-agent: Gnus/5.09 (Gnus v5.9.0) Emacs/21.3

address@hidden (Paul Jarc) writes:

> If I use the "-Wwrite-strings -Wshadow" options for gcc while
> compiling an extension, I get some warnings that I think could be
> silenced:
> 
> .../smob.h:149: warning: declaration of `free' shadows a global declaration
> .../smob.h:170: warning: declaration of `free' shadows a global declaration
> .../smob.h:176: warning: declaration of `free' shadows a global declaration
> .../ports.h:233: warning: declaration of `free' shadows a global declaration
> .../numbers.h:258: warning: declaration of `div' shadows a global declaration
> .../libguile-ldap.c:169: warning: passing arg 1 of `scm_make_smob_type' 
> discards qualifiers from pointer target type
> 
> Is there some reason why scm_make_smob_type's first argument is char*
> instead of char const*?  Should I submit a patch to silence these
> warnings?

Yes, please do.  The shadow warnings seem annoying, but since there
are so few, we can just as well fix them.  I don't think using a
global name as a parameter name in a prototype can ever hurt...

-- 
GPG: D5D4E405 - 2F9B BCCC 8527 692A 04E3  331E FAF8 226A D5D4 E405




reply via email to

[Prev in Thread] Current Thread [Next in Thread]