This is the mail archive of the gcc@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: GCC warnings for unused global variables


On Thursday, May 8, 2003, at 12:42 PM, David O'Brien wrote:
One has to be very proactive to have this.  I've done contract work
updating people's old source bases with their custom hacks to recent
releases.  They certainly weren't this proactive.

Hum, if all else fails:


min=MAXINT
for i in all versions do;
	v=`cvs update -p -r$i file.c | diff - file.c | wc -l`
	if [ v < min ];
		save_v=$i;
		min=v
	fi
done
echo $save_v

I know, gross, but, when all else has failed...


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