[commit: ghc] master: Fixed unused variable warning on mingw32/i686 in rts/Linker.c (208a0c2)

git at git.haskell.org git at git.haskell.org
Wed Oct 29 23:16:39 UTC 2014


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

On branch  : master
Link       : http://ghc.haskell.org/trac/ghc/changeset/208a0c207c1001da0fe63e9640e2a7e0e11c4aff/ghc

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

commit 208a0c207c1001da0fe63e9640e2a7e0e11c4aff
Author: Gintautas Miliauskas <gintautas.miliauskas at gmail.com>
Date:   Wed Oct 29 18:16:12 2014 -0500

    Fixed unused variable warning on mingw32/i686 in rts/Linker.c
    
    The warning was breaking validate.sh runs due to -Wall.
    
    Reviewers: austin
    
    Reviewed By: austin
    
    Subscribers: #ghc_windows_task_force, thomie, carter, simonmar
    
    Differential Revision: https://phabricator.haskell.org/D400


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

208a0c207c1001da0fe63e9640e2a7e0e11c4aff
 rts/Linker.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/rts/Linker.c b/rts/Linker.c
index c40086d..35cee2c 100644
--- a/rts/Linker.c
+++ b/rts/Linker.c
@@ -3706,8 +3706,8 @@ allocateImageAndTrampolines (
                         PAGE_EXECUTE_READWRITE);
 
    if (image == NULL) {
-       errorBelch("%" PATH_FMT ": failed to allocate memory for image",
-                  arch_name);
+       errorBelch("%" PATH_FMT ": failed to allocate memory for image for %s",
+                  arch_name, member_name);
        return NULL;
    }
 



More information about the ghc-commits mailing list