[Git][ghc/ghc][wip/ghc-debug] Fix cpp redefinition warnings
Sven Tennie
gitlab at gitlab.haskell.org
Fri Jul 24 18:47:41 UTC 2020
Sven Tennie pushed to branch wip/ghc-debug at Glasgow Haskell Compiler / GHC
Commits:
f45bfdd1 by Sven Tennie at 2020-07-24T20:47:23+02:00
Fix cpp redefinition warnings
With --Werror this made the build fail.
- - - - -
1 changed file:
- libraries/ghc-heap/GHC/Exts/Heap/ProfInfo/PeekProfInfo_ProfilingEnabled.hsc
Changes:
=====================================
libraries/ghc-heap/GHC/Exts/Heap/ProfInfo/PeekProfInfo_ProfilingEnabled.hsc
=====================================
@@ -12,6 +12,9 @@ module GHC.Exts.Heap.ProfInfo.PeekProfInfo_ProfilingEnabled(
#define PROFILING
#include "Rts.h"
+#undef BLOCK_SIZE
+#undef MBLOCK_SIZE
+#undef BLOCKS_PER_MBLOCK
#include "DerivedConstants.h"
import Prelude
View it on GitLab: https://gitlab.haskell.org/ghc/ghc/-/commit/f45bfdd12e456f248ebde8a5cec0435aa9d5e396
--
View it on GitLab: https://gitlab.haskell.org/ghc/ghc/-/commit/f45bfdd12e456f248ebde8a5cec0435aa9d5e396
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/20200724/3bea6965/attachment.html>
More information about the ghc-commits
mailing list