-
-
Notifications
You must be signed in to change notification settings - Fork 12.7k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #25998 from czyzykowski/fix/25139-ghc-warnings
ghc: 8.0.2 without link warnings
- Loading branch information
Showing
2 changed files
with
26 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
23 changes: 23 additions & 0 deletions
23
pkgs/development/compilers/ghc/ghc-8.0.2-no-cpp-warnings.patch
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
--- b/includes/rts/storage/ClosureMacros.h 2017-05-21 12:54:09.000000000 +0200 | ||
+++ a/includes/rts/storage/ClosureMacros.h 2017-05-21 12:55:57.000000000 +0200 | ||
@@ -499,8 +499,17 @@ | ||
|
||
-------------------------------------------------------------------------- */ | ||
|
||
-#define ZERO_SLOP_FOR_LDV_PROF (defined(PROFILING)) | ||
-#define ZERO_SLOP_FOR_SANITY_CHECK (defined(DEBUG) && !defined(THREADED_RTS)) | ||
+#if defined(PROFILING) | ||
+#define ZERO_SLOP_FOR_LDV_PROF 1 | ||
+#else | ||
+#define ZERO_SLOP_FOR_LDV_PROF 0 | ||
+#endif | ||
+ | ||
+#if defined(DEBUG) && !defined(THREADED_RTS) | ||
+#define ZERO_SLOP_FOR_SANITY_CHECK 1 | ||
+#else | ||
+#define ZERO_SLOP_FOR_SANITY_CHECK 0 | ||
+#endif | ||
|
||
#if ZERO_SLOP_FOR_LDV_PROF || ZERO_SLOP_FOR_SANITY_CHECK | ||
#define OVERWRITING_CLOSURE(c) overwritingClosure(c) | ||
|