diff options
author | John Wiegley <johnw@newartisans.com> | 2012-03-07 14:30:10 -0600 |
---|---|---|
committer | John Wiegley <johnw@newartisans.com> | 2012-03-07 14:30:34 -0600 |
commit | e7de77d8dfc764fd3764dc45d397d5f8454414be (patch) | |
tree | a32e7432203062d368e4663b437d51a7a3a8e36c | |
parent | 79a4919777b839238bbaf61f0fb6bdf58959e43b (diff) | |
download | fork-ledger-e7de77d8dfc764fd3764dc45d397d5f8454414be.tar.gz fork-ledger-e7de77d8dfc764fd3764dc45d397d5f8454414be.tar.bz2 fork-ledger-e7de77d8dfc764fd3764dc45d397d5f8454414be.zip |
Added #if's for building optimized with Clang
-rw-r--r-- | src/pyinterp.cc | 2 | ||||
-rw-r--r-- | src/query.h | 2 | ||||
-rw-r--r-- | src/times.h | 4 |
3 files changed, 8 insertions, 0 deletions
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 "<UNKNOWN>"; } +#if !defined(__clang__) return "<ERROR>"; +#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 { |