gnutls-devel
[Top][All Lists]
Advanced

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

[gnutls-dev] Re: prototype shadowing warning


From: Simon Josefsson
Subject: [gnutls-dev] Re: prototype shadowing warning
Date: Sat, 12 Feb 2005 16:51:02 +0100
User-agent: Gnus/5.110003 (No Gnus v0.3) Emacs/21.3.50 (gnu/linux)

Neil Spring <address@hidden> writes:

> Hi,

Hello!

> Please avoid using "index", "time" and "exp" as parameter names in 
> function prototypes in header files to avoid -Wshadow warnings.  
> Warnings follow. (yeah, I know the compiler should be a little smarter, 
> but then again, "index" and "time" aren't very descriptive names for 
> parameters.)
>
> Sorry I'm so picky.

Not at all, I agree completely.

Should be fixed in CVS now, please verify.

I have added -Wshadow to the CFLAGS that are added by
--enable-developer-mode.  Hopefully I (or someone else) will get
annoyed at the warnings and fix them eventually, there were quite a
few of them.  Further, the function prototypes seem to be duplicated
in several places in includes/gnutls/ and lib/, I think we should try
to only have function prototypes in one place.  It is less work to
maintain all copies.

Thanks,
Simon



reply via email to

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