GCC warnings for unused global variables

Mike Stump mrs@apple.com
Thu May 8 21:17:00 GMT 2003


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...



More information about the Gcc mailing list