This is the mail archive of the gcc-help@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

braces around scalar initializer


Why doesn't this work:

Rectangle *cherry[]    = { { 10, 10, 100, 100 }, NULL };

Display.c:137: warning: braces around scalar initializer
Display.c:137: warning: (near initialization for `cherry[0]')

May God bless you,
David Cullen



Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]