On Tue May 24, 2005 at 22:41:27 +1000, Erik de Castro Lopo wrote: >Benno wrote: > >> Does anyone want to convince me otherwise? > >I have seen bugs in GNU Arch and Ecartis (mailing list manager) >that were caused by a variable in an outer scope being shadowed >in an inner scope. > >If -Wshadow catches on single bug its worth living with or >rather working around any spurious warnings. > >I wouldn't cut C code without it.
My main work around for this was having function declarations in header files not specify the name of arguments, to avoid potential spurious clashes. However this means that I can't use doxygen, which relies on the name of arguments to document the functions. Maybe I will try and configure splint to check this error in a way that doesn't generate the spurious warnings. Benno -- SLUG - Sydney Linux User's Group Mailing List - http://slug.org.au/ Subscription info and FAQs: http://slug.org.au/faq/mailinglists.html
