delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1997/12/23/10:38:12

From: eyal DOT ben-david AT aks DOT com
To: gregorio AT jet DOT es (Grzegorz Adam Hankiewicz)
cc: djgpp AT delorie DOT com
Message-ID: <42256576.00551630.00@aks.com>
Date: Tue, 23 Dec 1997 17:32:45 +0200
Subject: Re: The warning 'missing braces' is driving me crazy...
Mime-Version: 1.0


On 12/23/97 3:52:44 PM gregorio wrote:

>Hello.
>
>For some time i've compiled my programs without warning flags.
>Now I compile with -Werror -Wall -W.
>
>The point is that I can't recompile some old source. There, I make the
>following definition/declaration/whateverisitsname :
>
>char line[4][2] = {2,1,2,1,
>         3,4,2,1};
>
try:

char line[4][2] = {
  { 2,1 },          /* initializer of line[0] *
  { 2,1 },          /* initializer of line[1] *
  { 3,4 },          /* initializer of line[2] *
  { 2,1 }      /* initializer of line[3] *
};

Eyal.




- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019