
#9213: Maybe important CPP warnings on ghcautoconf.h from cpphs -------------------------------------+------------------------------------- Reporter: asr | Owner: Type: bug | Status: new Priority: normal | Milestone: 7.10.1 Component: Compiler | Version: 7.10.1-rc1 Resolution: | Keywords: Operating System: Unknown/Multiple | Architecture: Type of failure: None/Unknown | Unknown/Multiple Blocked By: | Test Case: Related Tickets: | Blocking: | Differential Revisions: -------------------------------------+------------------------------------- Comment (by asr): A minimal example (using cpp 1.18.6 and GHC 7.10.1 RC1): {{{ $ cat Main.hs {-# LANGUAGE CPP #-} module Main where -- Used for example by Alex 3.1.4 and GHC source code. #include "ghcconfig.h" main :: IO () main = putStrLn "Hello, World!" }}} {{{ $ ghc -pgmP cpphs -optP --cpp Main.hs ... Warning: trailing characters after #if directive in file /usr/local/stow/ghc-7.10.0.20141222-bin/lib/ghc-7.10.0.20141222/include/ghcautoconf.h at line 379 col 1: AC_APPLE_UNIVERSAL_BUILD }}} -- Ticket URL: http://ghc.haskell.org/trac/ghc/ticket/9213#comment:11 GHC http://www.haskell.org/ghc/ The Glasgow Haskell Compiler