Changeset 1097


Ignore:
Timestamp:
Aug 10, 2008 1:43:30 PM (11 years ago)
Author:
stefan
Message:

take pedantic-errors out of cflags and cxxflags for darwin, because 1. some system file would not compile because gcc says it uses nonstandard bitfields, and 2. because the test for std::isnan(42.42) generates a compiler error due to an unusual #ifndef std::isnan(42.42) in the conftest program; turn off warnings on unknown pragmas, e.g., when SYMPHONY is compiled by a compiler that dos not understand omp

File:
1 edited

Legend:

Unmodified
Added
Removed
  • stable/BSP/coin.m4

    r1095 r1097  
    574574        coin_add_cxxflags="-pipe"
    575575        coin_dbg_cxxflags="-g"
    576         coin_warn_cxxflags="-pedantic-errors -Wimplicit -Wparentheses -Wreturn-type -Wcast-qual -Wall -Wpointer-arith -Wwrite-strings -Wconversion"
    577         case $enable_doscompile in
    578           mingw)
    579             CXXFLAGS="-mno-cygwin"
    580             AC_TRY_LINK(,[int i=0; i++;],
    581                         [coin_add_cxxflags="-mno-cygwin $coin_add_cxxflags"])
    582             CXXFLAGS=
    583             ;;
    584         esac
     576        coin_warn_cxxflags="-Wimplicit -Wparentheses -Wreturn-type -Wcast-qual -Wall -Wpointer-arith -Wwrite-strings -Wconversion -Wno-unknown-pragmas"
     577        case $build in
     578          *-darwin*)
     579            ;;
     580          *)
     581            coin_warn_cxxflags="-pedantic-errors $coin_warn_cxxflags"
     582            ;;
     583        esac
     584
     585        case $enable_doscompile in
     586          mingw)
     587            CXXFLAGS="-mno-cygwin"
     588            AC_TRY_LINK(,[int i=0; i++;],[coin_add_cxxflags="-mno-cygwin $coin_add_cxxflags"])
     589            CXXFLAGS=
     590          ;;
     591        esac
    585592    esac
    586593  fi
     
    952959        coin_add_cflags="-pipe"
    953960        coin_dbg_cflags="-g"
    954         coin_warn_cflags="-pedantic-errors -Wimplicit -Wparentheses -Wsequence-point -Wreturn-type -Wcast-qual -Wall"
     961        coin_warn_cflags="-Wimplicit -Wparentheses -Wsequence-point -Wreturn-type -Wcast-qual -Wall -Wno-unknown-pragmas"
     962        case $build in
     963          *-darwin*)
     964            ;;
     965          *)
     966            coin_warn_cflags="-pedantic-errors $coin_warn_cflags"
     967            ;;
     968        esac
    955969        case $enable_doscompile in
    956970          mingw)
Note: See TracChangeset for help on using the changeset viewer.