Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 25 Jan 2000 18:50:03 +0100
From:      dirk.meyer@dinoex.sub.org (Dirk Meyer)
To:        freebsd-ports@FreeBSD.ORG
Subject:   Re: 4.0-release (ports) schedule
Message-ID:  <geBvnC8Xsg@dmeyer.dinoex.sub.org>
References:  <20000124205021.B24975@cichlids.cichlids.com> <200001241436.GAA23651@silvia.hip.berkeley.edu> <20000124103710.B75151@dragon.nuxi.com> <20000124205021.B24975@cichlids.cichlids.com> <20000125005644.A221@extremis.demon.co.uk>

next in thread | previous in thread | raw e-mail | index | archive | help
George Cox schrieb:,

> Ports with such sloppy code should be patched as part of the port process,
> or better, have the original authors ass WHUPPED and have them be taught
> the virtues of using the compiler flags 
> 
>   '-Wall -Wa-few-other-things-documented-in-the-man-page'
> 
> on _every_ _source_ _file_ _they_ _compile_.
> 
> End rant.

Right ...
you will wonder how the software ever could run with all the bugs present.



kind regards Dirk

- Dirk Meyer, Im Grund 4, 34317 Habichtswald, Germany

=============

dnl
dnl	Copyright 1999-2000 Dirk Meyer <dirk.meyer@dinoex.sub.org>
dnl	feel free to include this in your "configure.in"
dnl	with this notice present.
dbl
dnl	you need autoconf to generate a full configure script.
dnl	
dnl     This lines turns on some warnings to see conficts in your code.
dnl	It is checked that your compiler let you do this.
dnl
gcc_warn="
-W
-Wall
-Waggregate-return
-Wbad-function-cast
-Wcast-align
-Wcast-qual
-Wchar-subscripts
-Wcomment
-Wconversion
-Wenum-clash
-Werror-implicit-function-declaration
-Wformat
-Wid-clash-30
-Wimplicit
-Wimplicit-function-delcaration
-Wimplicit-int
-Winline
-Wlong-long
-Wmissing-declarations
-Wmissing-prototypes
-Wnested-externs
-Wno-import
-Wno-parentheses
-Woverloaded-virtual
-Wparentheses
-Wpointer-arith
-Wredundant-decls
-Wreturn-type
-Wshadow
-Wsign-compare
-Wstrict-prototypes
-Wswitch
-Wtraditional
-Wtrigraphs
-Wuninitialized
-Wunused
-Wwrite-strings
-pedantic
"

gcc_warn_ok=""
if test $ac_cv_prog_gcc = yes; then
  for i in $gcc_warn
  do
    echo $ac_n "checking whether ${CC-cc} accepts $i""... $ac_c" 1>&6
    echo 'void f(){}' > conftest.c
    if test -z "`${CC-cc} ${CFLAGS} $i -c conftest.c 2>&1`"; then
      gcc_warn_ok="$gcc_warn_ok $i"
      echo "yes"
    else
      echo "no"
    fi
    rm -fr conftest*
  done
fi
echo "$gcc_warn_ok"
if test "$GCC" = yes; then
  CFLAGS="$CFLAGS $gcc_warn_ok"
fi

dnl end of section


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




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