Changeset 14363


Ignore:
Timestamp:
Dec 6, 2014, 4:28:53 PM (8 years ago)
Author:
mikedld
Message:

Remove duplicate -Wcast-align flag, add canonicalize_file_name function check

Location:
trunk
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/CMakeLists.txt

    r14350 r14363  
    272272
    273273    set(NEEDED_COMPILER_FLAGS
    274         -Wpointer-arith
     274        -Wcast-align
     275        -Wextra
     276        -Wfloat-equal
    275277        -Wformat
    276278        -Wformat-security
    277         -Wcast-align
    278         -Wundef
    279         -Wcast-align
     279        -Winit-self
     280        -Winline
    280281        -Wmissing-declarations
    281282        -Wmissing-format-attribute
     283        -Wpointer-arith
    282284        -Wredundant-decls
     285        -Wundef
    283286        -Wunused-parameter
    284         -Wwrite-strings
    285         -Winline
    286         -Wfloat-equal
    287         -Wextra
    288         -Winit-self
    289         -Wvariadic-macros)
     287        -Wvariadic-macros
     288        -Wwrite-strings)
    290289
    291290    set(NEEDED_C_COMPILER_FLAGS
    292291        ${NEEDED_COMPILER_FLAGS}
    293         -Wstrict-prototypes
     292        -Wdeclaration-after-statement
    294293        -Wnested-externs
    295         -Wdeclaration-after-statement)
     294        -Wstrict-prototypes)
    296295    string(REPLACE ";" " " NEEDED_C_COMPILER_FLAGS_STRING "${NEEDED_C_COMPILER_FLAGS}")
    297296    set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} ${NEEDED_C_COMPILER_FLAGS_STRING}")
     
    318317
    319318set(NEEDED_FUNCTIONS
     319    canonicalize_file_name
    320320    daemon
    321321    fallocate64
  • trunk/configure.ac

    r14328 r14363  
    7676if test "x$GCC" = "xyes" ; then
    7777
    78     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 -Winline -Wfloat-equal"
     78    CFLAGS="$CFLAGS -std=gnu99 -ggdb3 -Wall -W -Wpointer-arith -Wformat-security -Wundef -Wcast-align -Wstrict-prototypes -Wmissing-declarations -Wmissing-format-attribute -Wredundant-decls -Wnested-externs -Wunused-parameter -Wwrite-strings -Winline -Wfloat-equal"
    7979
    8080    dnl figure out gcc version
     
    100100
    101101AC_CHECK_HEADERS([stdbool.h])
    102 AC_CHECK_FUNCS([iconv_open pread pwrite lrintf strlcpy daemon dirname basename strcasecmp localtime_r fallocate64 posix_fallocate memmem strsep strtold syslog valloc getpagesize posix_memalign statvfs htonll ntohll mkdtemp])
     102AC_CHECK_FUNCS([iconv_open pread pwrite lrintf strlcpy daemon dirname basename canonicalize_file_name strcasecmp localtime_r fallocate64 posix_fallocate memmem strsep strtold syslog valloc getpagesize posix_memalign statvfs htonll ntohll mkdtemp])
    103103AC_PROG_INSTALL
    104104AC_PROG_MAKE_SET
Note: See TracChangeset for help on using the changeset viewer.