Skip to content

GHC stops after a single 'defined but not used' warning

Using -Wall -Werror, GHC stops after finding a single "defined but not used" warning:

cmm/ZDF3.hs:795:10: Warning: Defined but not used: `rew_CO'

I'm sweeping away old code and would much prefer that GHC find all the defined-but-not-used identifiers on a single run. The transitive closure would be ideal, but I would settle for just all the ones that are defined but not used.

Trac metadata
Trac field Value
Version 6.10.1
Type Bug
TypeOfFailure OtherFailure
Priority normal
Resolution Unresolved
Component Compiler
Test case
Differential revisions
BlockedBy
Related
Blocking
CC
Operating system
Architecture
To upload designs, you'll need to enable LFS and have an admin enable hashed storage. More information