Changeset 1324

Show
Ignore:
Timestamp:
01/26/08 21:03:30 (7 months ago)
Author:
bjornroche
Message:

added -Werror flag back to all mac builds. This required slight tweak to pa_endianness to avoid unused variable warning.

Location:
portaudio/branches/v19-devel
Files:
3 modified

Legend:

Unmodified
Added
Removed
  • portaudio/branches/v19-devel/configure

    r1323 r1324  
    2128421284 
    2128521285        if [ "$enable_mac_debug" = "yes" ] ; then 
    21286                 CFLAGS="$CFLAGS -g -Werror"; 
     21286                CFLAGS="$CFLAGS -g"; 
    2128721287                CXXFLAGS="$CXXFLAGS -g"; 
    2128821288        else 
    2128921289                CFLAGS="$CFLAGS -DNDEBUG"; 
    2129021290        fi 
     21291 
     21292        CFLAGS="$CFLAGS -Werror" 
    2129121293 
    2129221294        if [ -d /Developer/SDKs/MacOSX10.5.sdk ] ; then 
  • portaudio/branches/v19-devel/configure.in

    r1323 r1324  
    151151        AC_DEFINE(PA_USE_COREAUDIO) 
    152152        if [[ "$enable_mac_debug" = "yes" ]] ; then 
    153                 CFLAGS="$CFLAGS -g -Werror"; 
     153                CFLAGS="$CFLAGS -g"; 
    154154                CXXFLAGS="$CXXFLAGS -g"; 
    155155        else 
    156156                CFLAGS="$CFLAGS -DNDEBUG"; 
    157157        fi 
     158 
     159        CFLAGS="$CFLAGS -Werror" 
    158160 
    159161        if [[ -d /Developer/SDKs/MacOSX10.5.sdk ]] ; then 
  • portaudio/branches/v19-devel/src/common/pa_endianness.h

    r1216 r1324  
    121121 the context in which this macro is used. 
    122122*/ 
    123 #if defined(PA_LITTLE_ENDIAN) 
    124     #define PA_VALIDATE_ENDIANNESS \ 
    125     { \ 
    126         const long nativeOne = 1; \ 
    127         assert( "PortAudio: compile time and runtime endianness don't match" && (((char *)&nativeOne)[0]) == 1 ); \ 
    128     } 
    129 #elif defined(PA_BIG_ENDIAN) 
    130     #define PA_VALIDATE_ENDIANNESS \ 
    131     { \ 
    132         const long nativeOne = 1; \ 
    133         assert( "PortAudio: compile time and runtime endianness don't match" && (((char *)&nativeOne)[0]) == 0 ); \ 
    134     } 
     123#if defined(NDEBUG) 
     124    #define PA_VALIDATE_ENDIANNESS 
     125#else 
     126    #if defined(PA_LITTLE_ENDIAN) 
     127        #define PA_VALIDATE_ENDIANNESS \ 
     128        { \ 
     129            const long nativeOne = 1; \ 
     130            assert( "PortAudio: compile time and runtime endianness don't match" && (((char *)&nativeOne)[0]) == 1 ); \ 
     131        } 
     132    #elif defined(PA_BIG_ENDIAN) 
     133        #define PA_VALIDATE_ENDIANNESS \ 
     134        { \ 
     135            const long nativeOne = 1; \ 
     136            assert( "PortAudio: compile time and runtime endianness don't match" && (((char *)&nativeOne)[0]) == 0 ); \ 
     137        } 
     138    #endif 
    135139#endif 
    136140