Mail Archives: djgpp/2002/09/23/12:02:10
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?
> 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.
> It creates file.txt but warnings are outputted to the screen. Is it
> general rule for gcc or just problem of djgpp port ?
It's a native problem of DOS, more precisely of command.com. Your command
wouldn't work in other GCC ports, either, but there you would have the
opportunity of writing
gcc 2>file.txt
In DJGPP, there's a special program to implement this missing feature:
redir.exe
--
Hans-Bernhard Broeker (broeker AT physik DOT rwth-aachen DOT de)
Even if all the snow were burnt, ashes would remain.
- Raw text -