diff options
author | John Wiegley <johnw@newartisans.com> | 2009-02-16 17:33:29 -0400 |
---|---|---|
committer | John Wiegley <johnw@newartisans.com> | 2009-02-16 17:33:29 -0400 |
commit | 2a79d2d3bd4ccdb7fdc75cc22ee970b61adfcf6a (patch) | |
tree | 672ff9e9d39f5591944828299c728b9deff14577 | |
parent | 5dc8f6bccb89bc952d924cf615435c0185168a27 (diff) | |
download | fork-ledger-2a79d2d3bd4ccdb7fdc75cc22ee970b61adfcf6a.tar.gz fork-ledger-2a79d2d3bd4ccdb7fdc75cc22ee970b61adfcf6a.tar.bz2 fork-ledger-2a79d2d3bd4ccdb7fdc75cc22ee970b61adfcf6a.zip |
Increase amount of warnings reported with --pch
-rwxr-xr-x | acprep | 13 |
1 files changed, 6 insertions, 7 deletions
@@ -204,8 +204,14 @@ while [ -n "$1" ]; do case "$1" in --pch) USE_GLIBCXX_DEBUG=false + SWITCHES="$SWITCHES --enable-pch" + # These can cause problems when run against a full set of headers, + # but with PCH, they only apply to Ledger itself + CXXFLAGS="$CXXFLAGS -Wconversion" + CXXFLAGS="$CXXFLAGS -Wold-style-cast" + # g++ 4.0.1 cannot use PCH headers on OS X 10.5, so we must use a # newer version. However, it also means I can't use GLIBCXX_DEBUG. if [ -f /usr/bin/g++-4.2 ]; then @@ -250,15 +256,8 @@ while [ -n "$1" ]; do CXXFLAGS="$CXXFLAGS -Wsign-promo" CXXFLAGS="$CXXFLAGS -Wstrict-null-sentinel" CXXFLAGS="$CXXFLAGS -Wwrite-strings" - CXXFLAGS="$CXXFLAGS -Wno-unused" CXXFLAGS="$CXXFLAGS -Wno-old-style-cast" CXXFLAGS="$CXXFLAGS -Wno-deprecated" - - # These cause problems on some systems - #CXXFLAGS="$CXXFLAGS -Wconversion" - #CXXFLAGS="$CXXFLAGS -Wold-style-cast" - #CXXFLAGS="$CXXFLAGS -Wshorten-64-to-32" - #CXXFLAGS="$CXXFLAGS -Weffc++" shift 1 ;; --debug) |