www.delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/2002/09/23/12:02:10

From: Hans-Bernhard Broeker <broeker AT physik DOT rwth-aachen DOT de>
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: <ammsir$l1m$1@nets3.rz.RWTH-Aachen.DE>
References: <e8982227 DOT 0209230144 DOT 2d26793e AT posting DOT google DOT com>
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 <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 -


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