
Is anyone else seeing this in a GHC build utils/hsc2hs/HSCParser.hs:170:14: error: [-Wunused-matches, -Werror=unused-matches] Defined but not used: 'd' | 170 | '\'':d:'\'':_ -> do any3Chars_; text -- Case 2 | ^ Indeed, d looks unused. But this line of code has been there since 28 Dec, so I can't understand why it has not bitten before. With -Werror my build fails. I could switch to -Wwarn, but I think -Werror is the default. Simon

Simon,
Unfortunately -Werror seems to have not been enabled on CI builds
since the gitlab migration.
Along with Sebastian I am working to fix that here:
https://gitlab.haskell.org/ghc/ghc/merge_requests/257
Cheers,
Matt
On Tue, Jan 29, 2019 at 3:04 PM Simon Peyton Jones via ghc-devs
Is anyone else seeing this in a GHC build
utils/hsc2hs/HSCParser.hs:170:14: error: [-Wunused-matches, -Werror=unused-matches]
Defined but not used: ‘d’
|
170 | '\'':d:'\'':_ -> do any3Chars_; text -- Case 2
| ^
Indeed, d looks unused. But this line of code has been there since 28 Dec, so I can’t understand why it has not bitten before.
With -Werror my build fails. I could switch to -Wwarn, but I think -Werror is the default.
Simon
_______________________________________________ ghc-devs mailing list ghc-devs@haskell.org http://mail.haskell.org/cgi-bin/mailman/listinfo/ghc-devs
participants (2)
-
Matthew Pickering
-
Simon Peyton Jones