Added #if's for building optimized with Clang
This commit is contained in:
parent
79a4919777
commit
e7de77d8df
3 changed files with 8 additions and 0 deletions
|
|
@ -535,7 +535,9 @@ namespace {
|
|||
case value_t::ANY: // a pointer to an arbitrary object
|
||||
return object(val);
|
||||
}
|
||||
#if !defined(__clang__)
|
||||
return object();
|
||||
#endif
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -186,7 +186,9 @@ public:
|
|||
assert(false);
|
||||
return "<UNKNOWN>";
|
||||
}
|
||||
#if !defined(__clang__)
|
||||
return "<ERROR>";
|
||||
#endif
|
||||
}
|
||||
|
||||
void unexpected();
|
||||
|
|
|
|||
|
|
@ -218,7 +218,9 @@ struct date_duration_t
|
|||
case YEARS:
|
||||
return date + gregorian::years(length);
|
||||
}
|
||||
#if !defined(__clang__)
|
||||
return date_t();
|
||||
#endif
|
||||
}
|
||||
|
||||
date_t subtract(const date_t& date) const {
|
||||
|
|
@ -234,7 +236,9 @@ struct date_duration_t
|
|||
case YEARS:
|
||||
return date - gregorian::years(length);
|
||||
}
|
||||
#if !defined(__clang__)
|
||||
return date_t();
|
||||
#endif
|
||||
}
|
||||
|
||||
string to_string() const {
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue