diff options
author | Erik de Castro Lopo <erikd@mega-nerd.com> | 2016-10-23 08:30:19 +1100 |
---|---|---|
committer | Erik de Castro Lopo <erikd@mega-nerd.com> | 2017-03-04 17:16:12 +1100 |
commit | 8bc809b7d3bc416d63eba96013553498c95ecc6f (patch) | |
tree | 685963d18a1e9eed2d8ee98484646b192435a8f8 /rts/LinkerInternals.h | |
parent | 96f5656d2ae885fa4b0227c4650b1c375e16dd00 (diff) | |
download | haskell-wip/erikd/rts.tar.gz |
Enable new warning for bad CPP #if usagewip/erikd/rts
The C code in the RTS now gets built with `-Wundef` and the Haskell code
(stages 1 and 2 only) with `-Wcpp-undef`. We now get warnings whereever
`#if` is used on undefined identifiers.
Diffstat (limited to 'rts/LinkerInternals.h')
-rw-r--r-- | rts/LinkerInternals.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/rts/LinkerInternals.h b/rts/LinkerInternals.h index 76497df257..9b4fc17e75 100644 --- a/rts/LinkerInternals.h +++ b/rts/LinkerInternals.h @@ -85,7 +85,8 @@ typedef struct ForeignExportStablePtr_ { struct ForeignExportStablePtr_ *next; } ForeignExportStablePtr; -#if powerpc_HOST_ARCH || x86_64_HOST_ARCH || arm_HOST_ARCH +#if defined powerpc_HOST_ARCH || defined x86_64_HOST_ARCH \ + || defined arm_HOST_ARCH #define NEED_SYMBOL_EXTRAS 1 #endif |