[GHC] #12752: GHC should be able to warn on usafe CPP usage
GHC
ghc-devs at haskell.org
Sat Oct 22 07:12:59 UTC 2016
#12752: GHC should be able to warn on usafe CPP usage
-------------------------------------+-------------------------------------
Reporter: erikd | Owner: erikd
Type: feature request | Status: new
Priority: normal | Milestone:
Component: Compiler | Version: 8.1
Resolution: | Keywords:
Operating System: Unknown/Multiple | Architecture:
| Unknown/Multiple
Type of failure: Other | Test Case:
Blocked By: | Blocking:
Related Tickets: | Differential Rev(s):
Wiki Page: |
-------------------------------------+-------------------------------------
Comment (by erikd):
I suspect this is just a matter of adding a GHC warning flag named
something like `-Dcpp-undef` and then if that is set, passing `-Wundef` to
the C pre-processor.
--
Ticket URL: <http://ghc.haskell.org/trac/ghc/ticket/12752#comment:2>
GHC <http://www.haskell.org/ghc/>
The Glasgow Haskell Compiler
More information about the ghc-tickets
mailing list