[GHC] #9396: Code cleanup: warning: use of GNU old-style field designator extension
GHC
ghc-devs at haskell.org
Sat Aug 2 21:34:59 UTC 2014
#9396: Code cleanup: warning: use of GNU old-style field designator extension
-------------------------------------+-------------------------------------
Reporter: jrp | Owner:
Type: bug | Status: new
Priority: normal | Milestone:
Component: Build System | Version: 7.8.2
Keywords: | Operating System:
Architecture: Unknown/Multiple | Unknown/Multiple
Difficulty: Easy (less than 1 | Type of failure: Other
hour) | Test Case:
Blocked By: | Blocking:
Related Tickets: | Differential Revisions:
-------------------------------------+-------------------------------------
The attached patch updates replaces GNU old-style designator syntax with
C98 syntax for initializing structs.
This gets rid of warnings such as
{{{
rts/Profiling.c:90:1:
warning: use of GNU old-style field designator extension [-Wgnu-
designator]
CC_DECLARE(CC_MAIN, "MAIN", "MAIN", "<built-in>",
CC_NOT_CAF, );
^
includes/rts/prof/CCS.h:215:13:
note: expanded from macro 'CC_DECLARE'
= {{ ccID : 0, \
}}}
^
--
Ticket URL: <http://ghc.haskell.org/trac/ghc/ticket/9396>
GHC <http://www.haskell.org/ghc/>
The Glasgow Haskell Compiler
More information about the ghc-tickets
mailing list