From owner-freebsd-questions Thu Apr 8 13:25:28 1999 Delivered-To: freebsd-questions@freebsd.org Received: from bozeman.pwrh.com (bozeman.vlt.com [199.201.184.209]) by hub.freebsd.org (Postfix) with ESMTP id 731C715076 for ; Thu, 8 Apr 1999 13:25:26 -0700 (PDT) (envelope-from Ptacek@pwrh.com) Received: by bozeman.pwrh.com with Internet Mail Service (5.5.2232.9) id <2365Q5NK>; Thu, 8 Apr 1999 14:28:33 -0600 Message-ID: <83A5B9068368D211BDE90060B06A21BA8A02B6@bozeman.pwrh.com> From: "Ptacek, Chris" To: Steve Price Cc: freebsd-questions@FreeBSD.ORG Subject: RE: How to get rid of warning messages during kernel make? Date: Thu, 8 Apr 1999 14:28:32 -0600 MIME-Version: 1.0 X-Mailer: Internet Mail Service (5.5.2232.9) Content-Type: text/plain Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG Thanks, thats exactly what I needed, should have thought of that. - Chris > -----Original Message----- > From: Steve Price [SMTP:sprice@hiwaay.net] > Sent: Thursday, April 08, 1999 1:47 PM > To: Ptacek, Chris > Cc: freebsd-questions@FreeBSD.ORG > Subject: Re: How to get rid of warning messages during kernel make? > > On Thu, 8 Apr 1999, Ptacek, Chris wrote: > > # I am trying to automate the building process for the kernel for my > system. > # I am using a perl script to do the file modifications and using system > calls > # to do the make depend and make portions. The problem is that I would > # like to not have any of the build information sent to the screen. I > have > # set > # the CWARNFLAGS to " " by the following in my perl script: > # > # system("make CWARNFLAGS=\" \" depend >> logfile.log"); > # system("make CWARNFLAGS=\" \" >> logfile.log"); > > You need to redirect stderr too. So something like this should > work: > > make ... >> logfile.log 2>&1 > > -steve > > # But I still get the following messages: > # > # ./aicasm: 446 instructions used > # ../../dev/dpt/dpt_control.c:389: warning: #warning "O/S Version > # determination is an ugly hack" > # ../../pci/ncr.c:1486: warning: initialization discards `volatile' from > # pointer target type > # ../../pci/ncr.c:1486: warning: initialization discards `volatile' from > # pointer target type > # ../../dev/dpt/dpt_control.c:389: warning: #warning "O/S Version > # determination is an ugly hack" > # ../../i386/isa/seagate.c: In function `sea_data_output': > # ../../i386/isa/seagate.c:1111: warning: assignment discards `volatile' > from > # pointer target type > # ../../i386/isa/seagate.c: In function `sea_data_input': > # ../../i386/isa/seagate.c:1181: warning: assignment discards `volatile' > from > # pointer target type > # > # What is the best way I can prevent these messages from being printed to > the > # screen? > # > # Thanks, > # Chris To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message