Re: [GHC] #7660: warning: conflicting types when compiling via-C

#7660: warning: conflicting types when compiling via-C -------------------------------------+------------------------------------- Reporter: singpolyma | Owner: Type: bug | Status: new Priority: normal | Milestone: 8.0.1 Component: Compiler | Version: 7.7 Resolution: | Keywords: warning 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 hvr): Here's a minimal C fragment extracted from such a `.hc` file which triggers this warning: {{{#!c typedef void *(*(*StgFunPtr)(void))(void); extern StgFunPtr strlen(); }}} If the main purpose of this is to get a pointer to primitives such as `strlen`, then we can use `-fno-builtin` to fix this warning (works w/ clang & gcc). -- Ticket URL: http://ghc.haskell.org/trac/ghc/ticket/7660#comment:7 GHC http://www.haskell.org/ghc/ The Glasgow Haskell Compiler
participants (1)
-
GHC