delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin-developers/1998/04/08/15:01:19

From: noer AT cygnus DOT com (Geoffrey Noer)
Subject: Re: Committed some warnings-removing changes
8 Apr 1998 15:01:19 -0700 :
Message-ID: <199804082155.OAA02009.cygnus.cygwin32.developers@skaro.cygnus.com>
References: <c=US%a=_%p=Butler_Manufactu%l=BUILDINGS/BLDGSHUB/00093850 AT nttwr2 DOT tower DOT bldgs DOT butlermfg DOT org>
To: rdparker AT butlermfg DOT org (Parker Ron)
Cc: cygwin32-developers AT cygnus DOT com

Parker, Ron wrote:
> 
> > 1) Anyone know how to fix the following message followed by many more
> > of the same?
> 
> Yes. Each struct or array which is statically initialized in C/C++
> should have brackets around it.  This includes nested structs and
> arrays.  For example:
> 	static struct {
> 		int vk;
> 		char *val[4];
> 	} keytable[] = {
> 		{ VK_LEFT,    { "\033[D",	NULL,		NULL,		NULL } },
> 		{ 0,          { "",		NULL,		NULL,		NULL } }
> 	};

Ah, I thought the brackets around the char *val[4] settings were
needed based on the gcc manual, but I forgot about the outer ones that
were also needed.  Committing the change...

-- 
Geoffrey Noer
noer AT cygnus DOT com

- Raw text -


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