Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 13 Dec 1998 22:43:53 -0800 (PST)
From:      Archie Cobbs <archie@whistle.com>
To:        bde@zeta.org.au (Bruce Evans)
Cc:        dillon@apollo.backplane.com, cvs-committers@FreeBSD.ORG
Subject:   Re: -Wunused kernel build
Message-ID:  <199812140643.WAA06275@bubba.whistle.com>
In-Reply-To: <199812140635.RAA03001@godzilla.zeta.org.au> from Bruce Evans at "Dec 14, 98 05:35:39 pm"

next in thread | previous in thread | raw e-mail | index | archive | help
Bruce Evans writes:
> -Wall is feeble compared with the warnings already enabled for the
> kernel.  E.g., it doesn't cover printf() with missing args -- -Wformat
> covers that.

Huh? Works for me..

  $ cat xx.c
  #include <stdio.h>
  int
  main(int ac, char **av)
  {
    printf("%s\n");
  }
  $ gcc --version
  2.7.2.1
  $ gcc -Wall xx.c
  xx.c: In function `main':
  xx.c:5: warning: too few arguments for format
  xx.c:6: warning: control reaches end of non-void function

-Archie

___________________________________________________________________________
Archie Cobbs   *   Whistle Communications, Inc.  *   http://www.whistle.com

To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe cvs-all" in the body of the message



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?199812140643.WAA06275>