From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 19682 invoked by alias); 12 Aug 2008 15:36:20 -0000 Received: (qmail 19673 invoked by uid 22791); 12 Aug 2008 15:36:20 -0000 X-Spam-Check-By: sourceware.org Received: from qw-out-1920.google.com (HELO qw-out-1920.google.com) (74.125.92.147) by sourceware.org (qpsmtpd/0.31) with ESMTP; Tue, 12 Aug 2008 15:35:45 +0000 Received: by qw-out-1920.google.com with SMTP id 5so234166qwc.14 for ; Tue, 12 Aug 2008 08:35:43 -0700 (PDT) Received: by 10.151.155.21 with SMTP id h21mr14562083ybo.72.1218555343381; Tue, 12 Aug 2008 08:35:43 -0700 (PDT) Received: by 10.151.154.14 with HTTP; Tue, 12 Aug 2008 08:35:43 -0700 (PDT) Message-ID: Date: Tue, 12 Aug 2008 15:48:00 -0000 From: "Andrew Bell" To: kamelopardus Subject: Re: gcc warnings Cc: gcc-help@gcc.gnu.org In-Reply-To: <18946614.post@talk.nabble.com> MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline References: <18946614.post@talk.nabble.com> X-IsSubscribed: yes Mailing-List: contact gcc-help-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-help-owner@gcc.gnu.org X-SW-Source: 2008-08/txt/msg00119.txt.bz2 On Tue, Aug 12, 2008 at 10:25 AM, kamelopardus wrote: > > Hello. > > I use gcc 3.4.2 under mingw32. I need to put compiler warnings about > uninitialized variables into some text file, for example, "warnings.txt". > > i try > > gcc -O -Wuninitialized -v echo.c>warnings.txt They are going to stderr, not stdout. Try: gcc -O -Wuninitialized -v echo.c 2>& > warnings.txt -- Andrew Bell andrew.bell.ia@gmail.com