From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 31012 invoked by alias); 26 Sep 2003 11:34:44 -0000 Mailing-List: contact gcc-help-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Archive: List-Post: List-Help: Sender: gcc-help-owner@gcc.gnu.org Received: (qmail 30818 invoked from network); 26 Sep 2003 11:34:41 -0000 Received: from unknown (HELO bowmore.compxs.com) (194.153.106.198) by sources.redhat.com with SMTP; 26 Sep 2003 11:34:41 -0000 Received: from Kindrogan ([192.168.189.6]) by bowmore.compxs.com (8.12.5/8.12.5) with ESMTP id h8QBrscW019737; Fri, 26 Sep 2003 12:54:02 +0100 Reply-To: From: "Jon Beniston" To: "'Eitan'" , , Subject: RE: need help Date: Fri, 26 Sep 2003 11:34:00 -0000 Organization: CompXs Message-ID: <016301c38421$f07a4d00$06bda8c0@Kindrogan> MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-Priority: 3 (Normal) X-MSMail-Priority: Normal In-Reply-To: <005001c38429$65ac1d90$0956da51@gur> X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1165 Importance: Normal X-SW-Source: 2003-09/txt/msg00291.txt.bz2 > > 2. I get an annoying warning message - "warning: too many > arguments for format". What does it mean? Probably that you're doing something like printf("%s %d\n", name, age, address); i.e. there are more arguments than there are %'s. > 3. Good programing parctice - If I have a static global > variable, that is defined in one file, but not used in it - > why is it a bad thing (I get a warning)? Static variables (and functions) are not visible to other files. So if they're not referenced in the file in which they are defined, then they may as well not exist. Cheers, Jon