[commit: ghc] master: Fix warning about unused pattern variable (44c3e37)

git at git.haskell.org git at git.haskell.org
Tue Dec 1 15:59:36 UTC 2015


Repository : ssh://git@git.haskell.org/ghc

On branch  : master
Link       : http://ghc.haskell.org/trac/ghc/changeset/44c3e3768e28199468d2ffff0b25db055d22c310/ghc

>---------------------------------------------------------------

commit 44c3e3768e28199468d2ffff0b25db055d22c310
Author: Gabor Greif <ggreif at gmail.com>
Date:   Tue Dec 1 16:59:39 2015 +0100

    Fix warning about unused pattern variable


>---------------------------------------------------------------

44c3e3768e28199468d2ffff0b25db055d22c310
 utils/deriveConstants/Main.hs | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/utils/deriveConstants/Main.hs b/utils/deriveConstants/Main.hs
index 09c94ab..6a88ac2 100644
--- a/utils/deriveConstants/Main.hs
+++ b/utils/deriveConstants/Main.hs
@@ -786,7 +786,7 @@ getWanted verbose os tmpdir gccProgram gccFlags nmProgram mobjdumpProgram
                   , Just sym <- stripPrefix prefix sym0 = Just (sym, read n)
                   | otherwise = Nothing
                 where
-                  [sym0, adr] = take 2 (reverse $ words l1)
+                  [sym0, _] = take 2 (reverse $ words l1)
 
           -- If an Int value is larger than 2^28 or smaller
           -- than -2^28, then fail.



More information about the ghc-commits mailing list