X-Authentication-Warning: delorie.com: mail set sender to djgpp-bounces using -f From: abx AT abx DOT art DOT pl (Wlodzimierz ABX Skiba) Newsgroups: comp.os.msdos.djgpp Subject: Re: cleaning source from warnings troubles Date: 27 Sep 2002 01:13:44 -0700 Organization: http://groups.google.com/ Lines: 31 Message-ID: References: NNTP-Posting-Host: 195.205.156.102 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 8bit X-Trace: posting.google.com 1033114424 4550 127.0.0.1 (27 Sep 2002 08:13:44 GMT) X-Complaints-To: groups-abuse AT google DOT com NNTP-Posting-Date: 27 Sep 2002 08:13:44 GMT To: djgpp AT delorie DOT com DJ-Gateway: from newsgroup comp.os.msdos.djgpp Reply-To: djgpp AT delorie DOT com Hans-Bernhard Broeker wrote in message news:... > Wlodzimierz ABX Skiba wrote: > > > 1. "aggregate has a partly bracketed initializer" > [...] > > I can't see any particular reason for this one. Are you sure you > quoted the actual source fragment this warning was about? Yes. This structure contains 20 entries and warning is outputed 20 times. Number of line in warning point to line with closing bracket of this structure. > > 2. "multi-character character constant" > > > Is there any way to remove this warning (of course except command line > > option) for definition: > > No. This code deserves a warning. Note that they have single quotes, > but more than one character in between. The language definition says > the value of such a construct is implementation-defined, i.e. the > programmer can't know what this code will do on somebody else's > compiler. But this is written in so called "portable" package - POV-Ray. It is supposed to be compatible with as much as possible compilers. I'm compiling it with DJGPP, CYGWIN, Borland C++. Official distributions are compiled with Intel C, Visual C, Metrowerks CodeWarrior Pro 7.2. Any other way to write this part as more portable code ? ABX