IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Changeset 39427


Ignore:
Timestamp:
Mar 1, 2016, 12:08:38 PM (10 years ago)
Author:
eugene
Message:

specify -Wextra options explicitly for now

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/eam_branches/ohana.20160226/configure.tcsh

    r39406 r39427  
    211211if ($sanitize_address) set CFLAGS = "$CFLAGS -fsanitize=address"
    212212
     213# gnu c99 fails due to missing flockfile prototype
     214# we are forced to used gnu99
     215# -std=gnu89 fails with -pedantic tests because we use VA_ARGS in macros (allowed by gnu but not C89)
     216
    213217# use_gnu99
    214 if ($use_gnu99) then
     218if ($use_gnu99 || $extra_safety_checks) then
    215219    set CFLAGS = "$CFLAGS -std=gnu99"
    216220else
     
    232236# other temp flags
    233237if ($extra_safety_checks) then
    234   set CPPFLAGS = "$CPPFLAGS -fstack-check -fstack-protector-all -D_FORTIFY_SOURCE=2 -Wstrict-aliasing=2 -fno-strict-aliasing -Wextra -pedantic"
     238  set CPPFLAGS = "$CPPFLAGS -fstack-check -fstack-protector-all -D_FORTIFY_SOURCE=2 -Wstrict-aliasing=2 -fno-strict-aliasing -pedantic"
     239  set CPPFLAGS = "$CPPFLAGS -Wclobbered -Wempty-body -Wignored-qualifiers -Wmissing-field-initializers -Wmissing-parameter-type -Wold-style-declaration -Woverride-init -Wtype-limits -Wuninitialized -Wunused-parameter -Wunused-but-set-parameter"
     240  set CPPFLAGS = "$CPPFLAGS -Wsign-compare"
    235241endif
    236242
     
    717723  --enable-profile          enable
    718724  --enable-sanitize-address enable
     725  --extra-safety-checks     enable extra gcc safety checks
    719726  --enable-memcheck         enable ohana memory tests
     727  --enable-debug-build      enable debug build
    720728  --pedantic                include -Wall -Werror on compilation
    721729  --use-tcmalloc            use the alternate tcmalloc from Google
    722730  --use-gnu99               use gnu99 flags to ensure C99 compatibility
    723731  --no-largefiles           skip large file compatibility
     732  --enable-no-as-needed     pass --no-as-needed flag to linker
    724733
    725734Installation directories:
     
    745754  --no-create
    746755  --no-recursion
     756  --disable-shared
     757  --enable-shared
     758  --disable-static
     759  --enable-static
    747760  --sbindir
    748761  --libexecdir
Note: See TracChangeset for help on using the changeset viewer.