[commit: ghc] ghc-7.8: RetainerProfile.c: include missing header (#8810) (ff57204)

git at git.haskell.org git at git.haskell.org
Thu Feb 20 12:01:25 UTC 2014


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

On branch  : ghc-7.8
Link       : http://ghc.haskell.org/trac/ghc/changeset/ff57204d6dd32a87999cf467eb327db2f6245b1c/ghc

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

commit ff57204d6dd32a87999cf467eb327db2f6245b1c
Author: Sergei Trofimovich <slyfox at gentoo.org>
Date:   Thu Feb 20 03:17:27 2014 -0600

    RetainerProfile.c: include missing header (#8810)
    
    Found by clang:
    
      rts_dist_HC rts/dist/build/RetainerProfile.p_o
    
      rts/RetainerProfile.c:1779:5:
         error: implicit declaration of function 'markStableTables' is invalid in C99 [-Werror,-Wimplicit-function-declaration]
            markStableTables(retainRoot, NULL);
    
    Signed-off-by: Sergei Trofimovich <slyfox at gentoo.org>
    Signed-off-by: Austin Seipp <austin at well-typed.com>
    
    (cherry picked from commit 925b0a499dba8a891af06f1bd3f5caf063682b0b)


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

ff57204d6dd32a87999cf467eb327db2f6245b1c
 rts/RetainerProfile.c |    1 +
 1 file changed, 1 insertion(+)

diff --git a/rts/RetainerProfile.c b/rts/RetainerProfile.c
index 8cf8848..973e03b 100644
--- a/rts/RetainerProfile.c
+++ b/rts/RetainerProfile.c
@@ -30,6 +30,7 @@
 #include "Stats.h"
 #include "ProfHeap.h"
 #include "Apply.h"
+#include "Stable.h" /* markStableTables */
 #include "sm/Storage.h" // for END_OF_STATIC_LIST
 
 /*



More information about the ghc-commits mailing list