This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: GCC warnings for unused global variables
> > the fix is (more or less) as simple as
> > grep -rl "^static.*const.*rcsid" | perl -i -pe '!$replaced_yet &&
s/^static.*const(.*rcsid)/volatile$1/ && ($replaced_yet = 1)'.
>
> You've never worked on a large corporate source base have you? Just
> making the source change is only 1/2 the battle. Getting the review
> board (or release engineer, or what ever) approval for wide sweeping
> changes can be quite difficult.
Yes, that was the "more or less" part :-)
In GCC I see that Zack did not have much problems getting approved for changes that
touched every *.c file for example. Of course I wouldn't get approval for such a
change in FreeBSD, but somebody will nevertheless and people have an year for that.
Paolo