[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Programming question: missing braces around initializer



I have a bit of source code here with the following bit:

Morse MorseTable[]= 
{ 
        ' ',NIL,NIL,NIL,NIL,NIL,NIL,NIL, 
        'A',DIH,DAH,NIL,NIL,NIL,NIL,NIL, 
        'B',DAH,DIH,DIH,DIH,NIL,NIL,NIL,

        [etc...]

        '/',DAH,DIH,DIH,DAH,DIH,NIL,NIL, 
        0,  NIL,NIL,NIL,NIL,NIL,NIL,NIL /* END MARKER */ 
}; 


Gcc warns me with:

morse.c:52: warning: missing braces around initializer
morse.c:52: warning: (near initialization for `MorseTable[0]')


Anyone know how to fix?

Thanks,

Joop
-- 

 Joop Stakenborg PA4TU, ex-PA3ABA 
      <pa3aba@debian.org>
 Linux Amateur Radio Software Database
    http://radio.linux.org.au


Reply to: