Skip to content

Commit

Permalink
Fix clang build (#2166)
Browse files Browse the repository at this point in the history
  • Loading branch information
LittleFall authored Jun 16, 2021
1 parent 5c26f4b commit 74c69fb
Showing 1 changed file with 0 additions and 8 deletions.
8 changes: 0 additions & 8 deletions libs/libcommon/src/DateLUTImpl.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -34,17 +34,9 @@ UInt8 getDayOfWeek(const cctz::civil_day & date)

}


__attribute__((__weak__)) extern bool inside_main;

DateLUTImpl::DateLUTImpl(const std::string & time_zone_)
: time_zone(time_zone_)
{
/// DateLUT should not be initialized in global constructors for the following reasons:
/// 1. It is too heavy.
if (&inside_main)
assert(inside_main);

cctz::time_zone cctz_time_zone;
if (!cctz::load_time_zone(time_zone, &cctz_time_zone))
throw Poco::Exception("Cannot load time zone " + time_zone_);
Expand Down

0 comments on commit 74c69fb

Please sign in to comment.