Fix compilation on recent clang.

This commit is contained in:
Syoyo Fujita
2017-12-28 18:45:14 +09:00
parent cc73127bf0
commit 609139f370
2 changed files with 166 additions and 116 deletions

View File

@@ -29,6 +29,12 @@ extern "C" {
#endif
#endif
#ifdef __clang__
#if __has_warning("-Wzero-as-null-pointer-constant")
#pragma clang diagnostic ignored "-Wzero-as-null-pointer-constant"
#endif
#endif
class timerutil {
public:
#ifdef _WIN32