[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
bug#6740: Spurious byte compiler warnings
From: |
Stefan Monnier |
Subject: |
bug#6740: Spurious byte compiler warnings |
Date: |
Tue, 27 Jul 2010 23:40:50 +0200 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/24.0.50 (gnu/linux) |
>> Warning: value returned from (featurep (quote cc-fix)) is unused
>> Warning: value returned from (featurep (quote cc-fix)) is unused
>>
>> It is obvious that that value is indeed used. This is a bug.
> The byte compiler knows that (featurep 'xemacs) is false, so
> (and (not (featurep 'cc-fix)) ... )
> will be false, so the featurep result is indeed unused.
> If you use (and (featurep 'xemacs) (not (featurep 'cc-fix) ...
> the warning will go away.
It's one of those cases where the warning is the result of a check done
"too late" (i.e. after some optimization), which means the check is not
performed on the code the user sees, but on some massaged version of it.
It's difficult to avoid them, short of removing all "code
improvement" warnings.
Stefan
- bug#6740: Spurious byte compiler warnings, (continued)
- bug#6740: Spurious byte compiler warnings, Dan Nicolaescu, 2010/07/27
- bug#6740: Spurious byte compiler warnings, Alan Mackenzie, 2010/07/27
- bug#6740: Spurious byte compiler warnings, Juanma Barranquero, 2010/07/27
- bug#6740: Spurious byte compiler warnings, Alan Mackenzie, 2010/07/28
- bug#6740: Spurious byte compiler warnings, Juanma Barranquero, 2010/07/28
- bug#6740: Spurious byte compiler warnings, Alan Mackenzie, 2010/07/28
- bug#6740: Spurious byte compiler warnings, Juanma Barranquero, 2010/07/28
- bug#6740: Spurious byte compiler warnings, Dan Nicolaescu, 2010/07/28
- bug#6740: Spurious byte compiler warnings, Alan Mackenzie, 2010/07/29
- bug#6740: Spurious byte compiler warnings, Juanma Barranquero, 2010/07/29
bug#6740: Spurious byte compiler warnings,
Stefan Monnier <=