• 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
cmake Loading commit data...
doc Loading commit data...
m4 Loading commit data...
packages Loading commit data...
src Loading commit data...
vsprojects Loading commit data...
.gitignore Loading commit data...
AUTHORS Loading commit data...
CMakeLists.txt Loading commit data...
CONTRIBUTING.md Loading commit data...
CONTRIBUTORS Loading commit data...
COPYING Loading commit data...
ChangeLog Loading commit data...
INSTALL Loading commit data...
Makefile.am Loading commit data...
NEWS Loading commit data...
README Loading commit data...
README.windows Loading commit data...
autogen.sh Loading commit data...
configure.ac Loading commit data...
glog-config.cmake.in Loading commit data...
libglog.pc.in Loading commit data...
ltmain.sh Loading commit data...