#3261: Some warnings disappear with -Werror
---------------------------------+------------------------------------------
Reporter: igloo | Owner: simonpj
Type: bug | Status: new
Priority: normal | Milestone: 6.12.1
Component: Compiler | Version: 6.11
Severity: normal | Resolution:
Keywords: | Difficulty: Unknown
Testcase: tcfail204 | Os: Unknown/Multiple
Architecture: Unknown/Multiple |
---------------------------------+------------------------------------------
Comment (by simonpj):
Fixed by
{{{
Thu May 28 17:49:00 BST 2009 [email protected]
* Fix Trac #3261: make default types play nice with -Werror
The trial-and-error for type defaults was not playing nicely with
-Werror. The fix is simple.
M ./compiler/typecheck/TcSimplify.lhs -6 +7
}}}
That now shows up a warning as an error, so you need this too:
{{{
Thu May 28 17:45:25 BST 2009 [email protected]
* Remove type-ambiguous (fromIntegral 0)::Int, replacing it with just 0
This unnecessary ambiguity has been there for ages, and is now rejected
by -Werror, after fixing #3261
M ./compiler/ghci/ByteCodeAsm.lhs -1 +1
}}}
And there's a similar case in `Float.lhs`, still to fix.
Simon
--
Ticket URL: <http://hackage.haskell.org/trac/ghc/ticket/3261#comment:2>
GHC <http://www.haskell.org/ghc/>
The Glasgow Haskell Compiler_______________________________________________
Glasgow-haskell-bugs mailing list
[email protected]
http://www.haskell.org/mailman/listinfo/glasgow-haskell-bugs