mirror of
https://github.com/HowardHinnant/date.git
synced 2025-01-14 01:37:57 +08:00
Silence clang warning
This commit is contained in:
parent
fa6529a2fc
commit
3a5e8c9384
@ -58,9 +58,18 @@
|
||||
# endif
|
||||
#endif
|
||||
|
||||
#ifdef __clang__
|
||||
# pragma clang diagnostic push
|
||||
# pragma clang diagnostic ignored "-Wconstant-logical-operand"
|
||||
#endif
|
||||
|
||||
static_assert(!(USE_OS_TZDB && HAS_REMOTE_API),
|
||||
"USE_OS_TZDB and HAS_REMOTE_API can not be used together");
|
||||
|
||||
#ifdef __clang__
|
||||
# pragma clang diagnostic pop
|
||||
#endif
|
||||
|
||||
#ifndef AUTO_DOWNLOAD
|
||||
# define AUTO_DOWNLOAD HAS_REMOTE_API
|
||||
#endif
|
||||
|
Loading…
x
Reference in New Issue
Block a user