This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: Remove another redundant extern from rs6000/sysv4.h


 > > I might try writing a script that finds externs in config/ that are
 > > also outside config/, because they're a PITA.
 > 
 > That would be great IMO - and then let's check also for multiple
 > declarations in .h and .c files everywhere...
 > Andreas

Try compiling GCC with -Wredundant-decls.  At one point (Apr 2001) I
went through and zapped a bunch of low-hanging fruit.  We've probably
accumulated more cruft since then.

Another good one might be -Wshadow.

--
Kaveh R. Ghazi			ghazi@caip.rutgers.edu


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]