• Jim Ray's avatar
    Fix LOG_EVERY_N with clang -Wunused-local-typedef · 8b3023f7
    Jim Ray authored
    Glog uses a pre-C++11 compile time assert to verify the validity of
    the severity parameter for LOG_EVERY_N. Unfortunately, some compilers
    will complain about the usage of LOG_EVERY_N with
    "-Wunused-local-typedef" due to the way the compile time assert is
    constructed. This makes it impossible to use LOG_EVERY_N with this
    warning treated as an error.
    
    The fix simply removes the assert entirely. This is safe to do since
    you can't put anything invalid into the severity parameters without
    generating a compile error elsewhere. This has been safe to do ever
    since the GLOG_ prefixes were added as part of 6febec36.
    
    Fixes #223
    8b3023f7
Name
Last commit
Last update
..
base Loading commit data...
glog Loading commit data...
windows Loading commit data...
config.h.cmake.in Loading commit data...
config.h.in Loading commit data...
config_for_unittests.h Loading commit data...
demangle.cc Loading commit data...
demangle.h Loading commit data...
demangle_unittest.cc Loading commit data...
demangle_unittest.sh Loading commit data...
demangle_unittest.txt Loading commit data...
googletest.h Loading commit data...
logging.cc Loading commit data...
logging_striplog_test.sh Loading commit data...
logging_striptest10.cc Loading commit data...
logging_striptest2.cc Loading commit data...
logging_striptest_main.cc Loading commit data...
logging_unittest.cc Loading commit data...
logging_unittest.err Loading commit data...
mock-log.h Loading commit data...
mock-log_test.cc Loading commit data...
raw_logging.cc Loading commit data...
signalhandler.cc Loading commit data...
signalhandler_unittest.cc Loading commit data...
signalhandler_unittest.sh Loading commit data...
stacktrace.h Loading commit data...
stacktrace_generic-inl.h Loading commit data...
stacktrace_libunwind-inl.h Loading commit data...
stacktrace_powerpc-inl.h Loading commit data...
stacktrace_unittest.cc Loading commit data...
stacktrace_windows-inl.h Loading commit data...
stacktrace_x86-inl.h Loading commit data...
stacktrace_x86_64-inl.h Loading commit data...
stl_logging_unittest.cc Loading commit data...
symbolize.cc Loading commit data...
symbolize.h Loading commit data...
symbolize_unittest.cc Loading commit data...
utilities.cc Loading commit data...
utilities.h Loading commit data...
utilities_unittest.cc Loading commit data...
vlog_is_on.cc Loading commit data...