From e7de77d8dfc764fd3764dc45d397d5f8454414be Mon Sep 17 00:00:00 2001 From: John Wiegley Date: Wed, 7 Mar 2012 14:30:10 -0600 Subject: Added #if's for building optimized with Clang --- src/pyinterp.cc | 2 ++ src/query.h | 2 ++ src/times.h | 4 ++++ 3 files changed, 8 insertions(+) diff --git a/src/pyinterp.cc b/src/pyinterp.cc index d1f46580..8d9c8c84 100644 --- a/src/pyinterp.cc +++ b/src/pyinterp.cc @@ -535,7 +535,9 @@ namespace { case value_t::ANY: // a pointer to an arbitrary object return object(val); } +#if !defined(__clang__) return object(); +#endif } } diff --git a/src/query.h b/src/query.h index 7286e89b..c694d099 100644 --- a/src/query.h +++ b/src/query.h @@ -186,7 +186,9 @@ public: assert(false); return ""; } +#if !defined(__clang__) return ""; +#endif } void unexpected(); diff --git a/src/times.h b/src/times.h index edc6d8b8..e3134665 100644 --- a/src/times.h +++ b/src/times.h @@ -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 { -- cgit v1.2.3