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

Re: Programming question: missing braces around initializer



On Tue, Oct 05, 1999 at 01:42:14PM +0200, J.H.M. Dassen Ray" wrote:
> On Tue, Oct 05, 1999 at 14:23:38 +0200, Joop Stakenborg wrote:
> > Morse MorseTable[]=
> > {
> >         ' ',NIL,NIL,NIL,NIL,NIL,NIL,NIL,
> 
> Change to
>          {' ', {NIL,NIL,NIL,NIL,NIL,NIL,NIL}},
> etc. The outer pair of curly braces is because the elements of the array are
> structs, which aren't atomic; the inner pair is because the second member of
> the struct is an array which isn't atomic.
> 

Yup! That's it.

No more warnings.

Thanks Ray,
> HTH,
> Ray

Groetjes,

Joop
> -- 
> LEADERSHIP  A form of self-preservation exhibited by people with auto-
> destructive imaginations in order to ensure that when it comes to the crunch 
> it'll be someone else's bones which go crack and not their own.       
> - The Hipcrime Vocab by Chad C. Mulligan    
> 

-- 


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


Reply to: