braces around scalar initializer

David Cullen dcullen7@intergate.com
Wed Dec 11 02:52:00 GMT 2002


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




More information about the Gcc-help mailing list