diff options
author | John Wiegley <johnw@newartisans.com> | 2007-04-15 02:55:16 +0000 |
---|---|---|
committer | John Wiegley <johnw@newartisans.com> | 2008-04-13 03:35:32 -0400 |
commit | a087e6ea97494d97580c97705c665cac317a0dc3 (patch) | |
tree | d771c7f88f5b6255cb46b2d69aeec9395b3f982d /acprep | |
parent | 691c29a696d2347faebd5663da9d1dc751f275eb (diff) | |
download | fork-ledger-a087e6ea97494d97580c97705c665cac317a0dc3.tar.gz fork-ledger-a087e6ea97494d97580c97705c665cac317a0dc3.tar.bz2 fork-ledger-a087e6ea97494d97580c97705c665cac317a0dc3.zip |
Cleared out all warnings; started work on getting Python up again.
Diffstat (limited to 'acprep')
-rwxr-xr-x | acprep | 36 |
1 files changed, 21 insertions, 15 deletions
@@ -23,7 +23,7 @@ INCDIRS="$INCDIRS -I/usr/include/httpd/xml" INCDIRS="$INCDIRS -I/Library/Frameworks/Python.framework/Versions/2.5/include/python2.5" LIBDIRS="-L/usr/local/lib" -LIBDIRS="$LIBDIRS -L/Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5" +LIBDIRS="$LIBDIRS -L/Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/config" SYSTEM=`uname -s` if [ $SYSTEM = Linux ]; then @@ -36,6 +36,12 @@ else CXXFLAGS="" fi +WARNFLAGS="-Wall -Wextra -Wfloat-equal -Wno-endif-labels -Wshadow" +WARNFLAGS="$WARNFLAGS -Wcast-qual -Wcast-align -Wwrite-strings -Wconversion" +WARNFLAGS="$WARNFLAGS -Wconversion -Wshorten-64-to-32 -Wsign-compare" +WARNFLAGS="$WARNFLAGS -Wmissing-field-initializers -Wmissing-noreturn" +WARNFLAGS="$WARNFLAGS -pedantic-errors" + # Building the command-line tool as a shared library is a luxury, # since there are no clients except a GUI tool which might use it (and # that is built again anyway by Xcode). @@ -54,34 +60,34 @@ HERE="$PWD" if [ "$1" = "--debug" ]; then shift 1 "$HERE/configure" --srcdir="$HERE" \ - CPPFLAGS="$INCDIRS" LDFLAGS="$LIBDIRS" CXXFLAGS="-g" $SWITCHES \ - --enable-debug "$@" -elif [ "$1" = "--python-debug" ]; then + CPPFLAGS="$INCDIRS" LDFLAGS="$LIBDIRS" CXXFLAGS="$CXXFLAGS -ggdb3" \ + WARNFLAGS="$WARNFLAGS" $SWITCHES --enable-debug "$@" +elif [ "$1" = "--python-debug" -o "$1" = "--debug-python" ]; then shift 1 "$HERE/configure" --srcdir="$HERE" \ - CPPFLAGS="$INCDIRS" LDFLAGS="$LIBDIRS" CXXFLAGS="-g" $SWITCHES \ - --enable-debug --enable-python "$@" + CPPFLAGS="$INCDIRS" LDFLAGS="$LIBDIRS" CXXFLAGS="$CXXFLAGS -ggdb3" \ + WARNFLAGS="$WARNFLAGS" $SWITCHES --enable-debug --enable-python "$@" elif [ "$1" = "--opt" ]; then shift 1 "$HERE/configure" --srcdir="$HERE" \ - CPPFLAGS="$INCDIRS" LDFLAGS="$LIBDIRS" \ - CXXFLAGS="-fomit-frame-pointer -O3 -mcpu=7450 -fPIC" "$@" $SWITCHES + CPPFLAGS="$INCDIRS" LDFLAGS="$LIBDIRS" WARNFLAGS="$WARNFLAGS" \ + CXXFLAGS="$CXXFLAGS -fomit-frame-pointer -O3 -fPIC" "$@" $SWITCHES elif [ "$1" = "--flat-opt" ]; then shift 1 "$HERE/configure" --srcdir="$HERE" \ - CPPFLAGS="$INCDIRS" LDFLAGS="$LIBDIRS" \ - CXXFLAGS="-fomit-frame-pointer -O3 -mcpu=7450" "$@" $SWITCHES + CPPFLAGS="$INCDIRS" LDFLAGS="$LIBDIRS" WARNFLAGS="$WARNFLAGS" \ + CXXFLAGS="$CXXFLAGS -fomit-frame-pointer -O3" "$@" $SWITCHES elif [ "$1" = "--safe-opt" ]; then shift 1 "$HERE/configure" --srcdir="$HERE" \ - CPPFLAGS="$INCDIRS" LDFLAGS="$LIBDIRS" \ - CXXFLAGS="-fomit-frame-pointer -O3 -mcpu=7450 -fPIC -DDEBUG_LEVEL=1" "$@" \ + CPPFLAGS="$INCDIRS" LDFLAGS="$LIBDIRS" WARNFLAGS="$WARNFLAGS" \ + CXXFLAGS="$CXXFLAGS -fomit-frame-pointer -O3 -fPIC -DDEBUG_LEVEL=1" "$@" \ $SWITCHES elif [ "$1" = "--perf" ]; then shift 1 - "$HERE/configure" --srcdir="$HERE" \ - CPPFLAGS="$INCDIRS" LDFLAGS="$LIBDIRS" CXXFLAGS="-g -pg" "$@" \ - $SWITCHES + "$HERE/configure" --srcdir="$HERE" WARNFLAGS="$WARNFLAGS" \ + CPPFLAGS="$INCDIRS" LDFLAGS="$LIBDIRS" \ + CXXFLAGS="$CXXFLAGS -ggdb3 -pg" "$@" $SWITCHES fi rm AUTHORS COPYING |