[Git][ghc/ghc][wip/stack_cloning] Fix Printer.c missing prototype warnings

Sven Tennie gitlab at gitlab.haskell.org
Mon Oct 12 13:27:31 UTC 2020



Sven Tennie pushed to branch wip/stack_cloning at Glasgow Haskell Compiler / GHC


Commits:
18f27693 by Sven Tennie at 2020-10-12T15:27:17+02:00
Fix Printer.c missing prototype warnings

- - - - -


2 changed files:

- rts/Printer.c
- rts/Printer.h


Changes:

=====================================
rts/Printer.c
=====================================
@@ -17,6 +17,7 @@
 #include "sm/GCThread.h"
 #include "Hash.h"
 #include "Printer.h"
+#include "rts/PrinterAPI.h"
 #include "RtsUtils.h"
 
 #if defined(PROFILING)


=====================================
rts/Printer.h
=====================================
@@ -21,9 +21,9 @@ const char  *      info_type_by_ip ( const StgInfoTable *ip );
 const char  *      info_update_frame ( const StgClosure *closure );
 
 extern void        printClosure    ( const StgClosure *obj );
+extern void        printStackChunk ( StgPtr sp, StgPtr spLim );
 
 #if defined(DEBUG)
-extern void        printStackChunk ( StgPtr sp, StgPtr spLim );
 extern void        printTSO        ( StgTSO *tso );
 extern void        printMutableList( bdescr *bd );
 extern void        printStaticObjects ( StgClosure *obj );



View it on GitLab: https://gitlab.haskell.org/ghc/ghc/-/commit/18f276934c09afcffd10146f8d219cc2bf428cc1

-- 
View it on GitLab: https://gitlab.haskell.org/ghc/ghc/-/commit/18f276934c09afcffd10146f8d219cc2bf428cc1
You're receiving this email because of your account on gitlab.haskell.org.


-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.haskell.org/pipermail/ghc-commits/attachments/20201012/778e5258/attachment.html>


More information about the ghc-commits mailing list