From: Hans-Bernhard Broeker Newsgroups: comp.os.msdos.djgpp Subject: Re: cleaning source from warnings troubles Date: 23 Sep 2002 11:06:03 GMT Organization: Aachen University of Technology (RWTH) Lines: 33 Message-ID: References: NNTP-Posting-Host: acp3bf.physik.rwth-aachen.de X-Trace: nets3.rz.RWTH-Aachen.DE 1032779163 21558 137.226.32.75 (23 Sep 2002 11:06:03 GMT) X-Complaints-To: abuse AT rwth-aachen DOT de NNTP-Posting-Date: 23 Sep 2002 11:06:03 GMT Originator: broeker@ To: djgpp AT delorie DOT com DJ-Gateway: from newsgroup comp.os.msdos.djgpp Reply-To: djgpp AT delorie DOT com 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? > 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.