Skip to content

Code cleanup: warning: use of GNU old-style field designator extension

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,                             \
   

^

Trac metadata
Trac field Value
Version 7.8.2
Type Bug
TypeOfFailure OtherFailure
Priority normal
Resolution Unresolved
Component Build System
Test case
Differential revisions
BlockedBy
Related
Blocking
CC
Operating system
Architecture
To upload designs, you'll need to enable LFS and have an admin enable hashed storage. More information