hcs2hs failure

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

hcs2hs failure

GHC - devs mailing list

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
[hidden email]
http://mail.haskell.org/cgi-bin/mailman/listinfo/ghc-devs
Reply | Threaded
Open this post in threaded view
|

Re: hcs2hs failure

Matthew Pickering
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
<[hidden email]> wrote:

>
> 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
> [hidden email]
> http://mail.haskell.org/cgi-bin/mailman/listinfo/ghc-devs
_______________________________________________
ghc-devs mailing list
[hidden email]
http://mail.haskell.org/cgi-bin/mailman/listinfo/ghc-devs