[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Unnecessary warnings
From: |
Ludovic Courtès |
Subject: |
Re: Unnecessary warnings |
Date: |
Mon, 25 Sep 2006 10:19:38 +0200 |
User-agent: |
Gnus/5.110006 (No Gnus v0.6) Emacs/21.4 (gnu/linux) |
Hi,
Bruce Korb <address@hidden> writes:
> /usr/local/gnu/include/libguile/smob.h:149: warning: declaration of 'free'
> shadows a global declaration
> /usr/local/gnu/include/libguile/filesys.h:75: warning: declaration of
> 'dirname' shadows a global declaration
> /usr/local/gnu/include/libguile/ports.h:233: warning: declaration of 'write'
> shadows a global declaration
> /usr/local/gnu/include/libguile/ports.h:254: warning: declaration of
> 'truncate' shadows a global declaration
> /usr/local/gnu/include/libguile/numbers.h:258: warning: declaration of 'div'
> shadows a global declaration
> /usr/local/gnu/include/libguile/stime.h:55: warning: declaration of 'time'
> shadows a global declaration
> /usr/include/iso/time_iso.h:91: warning: shadowed declaration is here
> /usr/local/gnu/include/libguile/stime.h:56: warning: declaration of 'time'
> shadows a global declaration
> /usr/include/iso/time_iso.h:91: warning: shadowed declaration is here
> /usr/local/gnu/include/libguile/stime.h:60: warning: declaration of 'stime'
> shadows a global declaration
>
> These are all due to argument names in prototype declarations.
What compiler issues those messages? To me, it looks like the compiler
is kind of broken, because there's no reason (AFAIK) there can be name
clashes between argument names and global declarations.
Thanks,
Ludovic.