1 ?RCS: $Id: warnflags.U 1 2006-08-24 12:32:52Z rmanfredi $
3 ?RCS: Copyright (c) 1991-1997, 2004-2006, Raphael Manfredi
5 ?RCS: You may redistribute only under the terms of the Artistic Licence,
6 ?RCS: as specified in the README file that comes with the distribution.
7 ?RCS: You may reuse parts of this distribution only within the terms of
8 ?RCS: that same Artistic Licence; a copy of which may be found at the root
9 ?RCS: of the source tree for dist 4.0.
11 ?RCS: Orginal Author: Graham Stoney <greyham@research.canon.oz.au>
13 ?RCS: $Log: warnflags.U,v $
14 ?RCS: Revision 3.0 1993/08/18 12:10:02 ram
15 ?RCS: Baseline for dist 3.0 netwide release.
17 ?MAKE:warnflags: cat cc contains Myread Guess Oldconfig Findhdr
18 ?MAKE: -pick add $@ %<
20 ?S: This variable contains any additional C compiler flags to generate
21 ?S: warnings from the compiler. It is up to the Makefile to use this.
23 : offer additional warning flags for compilation
26 You may wish to compile with extra compiler warnings enabled.
27 Note that doing so enhances your chance of receiving your free set of steak
28 knives, particularly if you find any bugs and report them.
29 If you don't want extra warnings, answer "none".
35 dflt="-Wall -Wno-comment"
36 if $contains 'fprintf' `./findhdr stdio.h` >/dev/null 2>&1; then
39 dflt="$dflt -Wno-implicit"
46 *) dflt="$warnflags";;
49 rp="Any $cc flags to enable warnings?"