From e5b3492f23c2296d0d8221e1787ee585331f726e Mon Sep 17 00:00:00 2001 From: Erik de Castro Lopo Date: Wed, 5 Apr 2017 05:53:46 +1000 Subject: Enable new warning for fragile/incorrect CPP #if usage 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. Test Plan: Validate on Linux and Windows Reviewers: austin, angerman, simonmar, bgamari, Phyx Reviewed By: bgamari Subscribers: thomie, snowleopard Differential Revision: https://phabricator.haskell.org/D3278 --- libraries/ghci/GHCi/ObjLink.hs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'libraries') diff --git a/libraries/ghci/GHCi/ObjLink.hs b/libraries/ghci/GHCi/ObjLink.hs index d7dbdd3373..3adb7ebaf9 100644 --- a/libraries/ghci/GHCi/ObjLink.hs +++ b/libraries/ghci/GHCi/ObjLink.hs @@ -187,7 +187,7 @@ cLeadingUnderscore = False #endif isWindowsHost :: Bool -#if mingw32_HOST_OS +#ifdef mingw32_HOST_OS isWindowsHost = True #else isWindowsHost = False -- cgit v1.2.1