Package: gcc-3.3 Version: 1:3.3-2 Severity: minor Tags: upstream It seems as if gcc-3.3 has some builtin "stuff" which causes wrong reports on shadowed declarations. These are the warnings caused by a build of the current proftpd cvs tree:
--- main.c: In function `session_exit': main.c:382: warning: declaration of `log' shadows a global declaration <built-in>:0: warning: shadowed declaration is here log.c:380: warning: shadowing built-in function `log' mod_log.c: In function `find_extendedlogs': mod_log.c:979: warning: declaration of `logf' shadows a global declaration <built-in>:0: warning: shadowed declaration is here --- Here is a code sippet from main.c: --- void session_exit(int pri, void *lv, int exitval, void *dummy) { char *log = (char *) lv; log_pri(pri, "%s", log); if (is_standalone && is_master) { log_pri(PR_LOG_NOTICE, "ProFTPD " PROFTPD_VERSION_TEXT " standalone mode SHUTDOWN"); PRIVS_ROOT pr_delete_scoreboard(); if (!nodaemon) unlink(PidPath); PRIVS_RELINQUISH } end_login(exitval); } --- These warnings didn't happen with gcc-2.95.4 and gcc-3.2. -- System Information: Debian Release: testing/unstable Architecture: i386 Kernel: Linux mirror 2.4.20 #2 Wed Mar 19 23:04:57 CET 2003 i686 Locale: LANG=C, LC_CTYPE=C Versions of packages gcc-3.3 depends on: ii binutils 2.14.90.0.2-0.1 The GNU assembler, linker and bina ii cpp-3.3 1:3.3-2 The GNU C preprocessor ii gcc-3.3-base 1:3.3-2 The GNU Compiler Collection (base ii libc6 2.3.1-16 GNU C Library: Shared libraries an ii libgcc1 1:3.3-2 GCC support library -- no debconf information