Changeset 1407


Ignore:
Timestamp:
Oct 22, 2011, 9:56:13 PM (9 years ago)
Author:
Peter Johansson
Message:

reintroduce -Wall (in enable-debug mode) refs #488

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/configure.ac

    r1405 r1407  
    9595APR_SAVE_THE_ENVIRONMENT(CXXFLAGS)
    9696
    97 # -Wno-long-long is needed to suppress compiler diagnostics regarding
    98 # using extension beyond the C++ standard (usage of non C++ standard
    99 # 'long long' types).
    100 YAT_CXX_ADD_FLAG([CXXFLAGS],[-Wno-long-long])
    10197AC_TYPE_LONG_LONG_INT
    10298AS_IF([test x$ac_cv_type_long_long_int = xno],
     
    107103  [AS_HELP_STRING([--enable-debug],[turn on debug options and code])])
    108104
     105# -Wno-long-long is needed to suppress compiler diagnostics regarding
     106# using extension beyond the C++ standard (usage of non C++ standard
     107# 'long long' types).
    109108AS_IF([test x$enable_debug = xyes],
    110   [YAT_CXX_ADD_FLAG([CXXFLAGS],[-pedantic -g -O])],
     109  [YAT_CXX_ADD_FLAG([CXXFLAGS],[-pedantic -Wall -Wno-long-long -g -O])],
    111110  [YAT_CPP_ADD_FLAG([CPPFLAGS],[-DNDEBUG])
    112111   YAT_CXX_ADD_FLAG([CXXFLAGS],[-O3])])
Note: See TracChangeset for help on using the changeset viewer.