Mail Archives: djgpp/2002/09/27/04:46:04
Hans-Bernhard Broeker <broeker AT physik DOT rwth-aachen DOT de> wrote in message news:<ammsir$l1m$1 AT nets3 DOT rz DOT RWTH-Aachen DOT DE>...
> Wlodzimierz ABX Skiba <abx AT abx DOT art DOT pl> 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
- Raw text -