emacs-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: unused var gcpro1


From: Jason Rumney
Subject: Re: unused var gcpro1
Date: 27 Nov 2001 21:06:13 +0000
User-agent: Gnus/5.09 (Gnus v5.9.0) Emacs/21.1.50

"Stefan Monnier" <monnier+gnu/address@hidden> writes:

> I got tired of those warnings and came up with the patch below.
> It shouldn't make any difference to the code generated (even
> with -O0 I can't think of any way the compiler could generate code
> for those non-actions).
> 
> But since it's a very minor issue, I'd like to know if people think
> it's safe enough.  If it's not 100% safe, it's probably not worth installing.

It looks safe, and the more unnecessary warnings we quieten, the more
likely we are to spot the real warnings.

> Also, it might cause other compilers to spit out other warnings,
> since it's a really silly kind of code.

I think Microsoft's C compiler is in this category when certain
optimizations are turned on, but don't let that stop you, it is only
swapping one warning for another.


-- 
Jason Rumney





reply via email to

[Prev in Thread] Current Thread [Next in Thread]