summaryrefslogtreecommitdiff
path: root/src/draft.cc
diff options
context:
space:
mode:
authorJohn Wiegley <johnw@newartisans.com>2012-03-17 23:14:17 -0500
committerJohn Wiegley <johnw@newartisans.com>2012-03-17 23:14:17 -0500
commit09cf0cbb2ae3690b357fc04d6f80476b8d60ce37 (patch)
tree199ec19d4635c9de915655c953afb1e800f963a9 /src/draft.cc
parent1240ce24b3dd59bb2f48a396043b4115cc49c6e1 (diff)
downloadfork-ledger-09cf0cbb2ae3690b357fc04d6f80476b8d60ce37.tar.gz
fork-ledger-09cf0cbb2ae3690b357fc04d6f80476b8d60ce37.tar.bz2
fork-ledger-09cf0cbb2ae3690b357fc04d6f80476b8d60ce37.zip
Change some #if guards to test for gcc 4.7
Diffstat (limited to 'src/draft.cc')
-rw-r--r--src/draft.cc4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/draft.cc b/src/draft.cc
index 74a6f4d2..7edf7edc 100644
--- a/src/draft.cc
+++ b/src/draft.cc
@@ -109,12 +109,12 @@ void draft_t::parse_args(const value_t& args)
}
else if (check_for_date &&
bool(weekday = string_to_day_of_week(what[0]))) {
-#if defined(__GNUC__) && __GNUC__ >= 4 && __GNUC_MINOR__ >= 6
+#if defined(__GNUC__) && __GNUC__ >= 4 && __GNUC_MINOR__ >= 7
#pragma GCC diagnostic push
#pragma GCC diagnostic ignored "-Wmaybe-uninitialized"
#endif
short dow = static_cast<short>(*weekday);
-#if defined(__GNUC__) && __GNUC__ >= 4 && __GNUC_MINOR__ >= 6
+#if defined(__GNUC__) && __GNUC__ >= 4 && __GNUC_MINOR__ >= 7
#pragma GCC diagnostic pop
#endif
date_t date = CURRENT_DATE() - date_duration(1);