Added #if's for building optimized with Clang

This commit is contained in:
John Wiegley 2012-03-07 14:30:10 -06:00
parent 79a4919777
commit e7de77d8df
3 changed files with 8 additions and 0 deletions

View file

@ -535,7 +535,9 @@ namespace {
case value_t::ANY: // a pointer to an arbitrary object case value_t::ANY: // a pointer to an arbitrary object
return object(val); return object(val);
} }
#if !defined(__clang__)
return object(); return object();
#endif
} }
} }

View file

@ -186,7 +186,9 @@ public:
assert(false); assert(false);
return "<UNKNOWN>"; return "<UNKNOWN>";
} }
#if !defined(__clang__)
return "<ERROR>"; return "<ERROR>";
#endif
} }
void unexpected(); void unexpected();

View file

@ -218,7 +218,9 @@ struct date_duration_t
case YEARS: case YEARS:
return date + gregorian::years(length); return date + gregorian::years(length);
} }
#if !defined(__clang__)
return date_t(); return date_t();
#endif
} }
date_t subtract(const date_t& date) const { date_t subtract(const date_t& date) const {
@ -234,7 +236,9 @@ struct date_duration_t
case YEARS: case YEARS:
return date - gregorian::years(length); return date - gregorian::years(length);
} }
#if !defined(__clang__)
return date_t(); return date_t();
#endif
} }
string to_string() const { string to_string() const {