Changeset 11290


Ignore:
Timestamp:
Oct 5, 2010, 11:36:39 PM (11 years ago)
Author:
charles
Message:

(trunk) #3602 "GCC option not supported" -- only use -Wvariadic-macros if gcc >= 4.3

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/configure.ac

    r11287 r11290  
    8686if test "x$GCC" = "xyes" ; then
    8787
    88     CFLAGS="$CFLAGS -std=gnu99 -ggdb3 -Wall -W -Wpointer-arith -Wformat-security -Wcast-align -Wundef -Wcast-align -Wstrict-prototypes -Wmissing-declarations -Wmissing-format-attribute -Wredundant-decls -Wnested-externs -Wunused-parameter -Wwrite-strings -Wvariadic-macros -Waggregate-return -Winline -Wfloat-equal"
     88    CFLAGS="$CFLAGS -std=gnu99 -ggdb3 -Wall -W -Wpointer-arith -Wformat-security -Wcast-align -Wundef -Wcast-align -Wstrict-prototypes -Wmissing-declarations -Wmissing-format-attribute -Wredundant-decls -Wnested-externs -Wunused-parameter -Wwrite-strings -Waggregate-return -Winline -Wfloat-equal"
    8989
    9090    dnl figure out gcc version
     
    9999        dnl these were added in 3.4
    100100        CFLAGS="$CFLAGS -Wextra -Wdeclaration-after-statement -Winit-self"
     101    fi
     102    if test $GCC_VERSION_NUM -ge 403; then
     103        dnl these were added in 4.3
     104        CFLAGS="$CFLAGS -Wvariadic-macros"
    101105    fi
    102106fi
Note: See TracChangeset for help on using the changeset viewer.