[commit: ghc] master: RetainerProfile.c: include missing header (#8810) (925b0a4)

git at git.haskell.org git at git.haskell.org
Thu Feb 20 09:36:42 UTC 2014


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

On branch  : master
Link       : http://ghc.haskell.org/trac/ghc/changeset/925b0a499dba8a891af06f1bd3f5caf063682b0b/ghc

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

commit 925b0a499dba8a891af06f1bd3f5caf063682b0b
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>


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

925b0a499dba8a891af06f1bd3f5caf063682b0b
 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