[GHC] #1292: -Wall doesn't include all warnings
GHC
trac at galois.com
Mon Apr 30 04:56:36 EDT 2007
#1292: -Wall doesn't include all warnings
-------------------------+--------------------------------------------------
Reporter: guest | Owner:
Type: bug | Status: reopened
Priority: normal | Milestone:
Component: Compiler | Version: 6.7
Severity: normal | Resolution:
Keywords: | Difficulty: Unknown
Os: Unknown | Testcase:
Architecture: Unknown |
-------------------------+--------------------------------------------------
Changes (by simonmar):
* resolution: invalid =>
* summary: -fwarn-monomorphism-restriction should be -Wmonomorphism-
restriction => -Wall doesn't include all
warnings
* status: closed => reopened
Comment:
`-Wall` should enable all warnings, otherwise it's badly named. So if we
have `-fwarn-monomorphism-restriction` at all, it should be in `-Wall`,
and possibly also in `-W`. I personally think it's useful and we should
have it, but it should not be enabled by default.
If you use `-Wall -Werror`, you should expect your code to break whenever
a new warning is added. Perhaps we should emit a warning for this option
combination :-)
Incedentally, the following warnings are not in `-Wall` (I believe we
should fix this):
* `-fwarn-simple-patterns`
* `-fwarn-tabs`
* `-fwarn-incomplete-record-updates`
--
Ticket URL: <http://hackage.haskell.org/trac/ghc/ticket/1292>
GHC <http://www.haskell.org/ghc/>
The Glasgow Haskell Compiler
-------------- next part --------------
_______________________________________________
Glasgow-haskell-bugs mailing list
Glasgow-haskell-bugs at haskell.org
http://www.haskell.org/mailman/listinfo/glasgow-haskell-bugs
More information about the Glasgow-haskell-bugs
mailing list