Change some #if guards to test for gcc 4.7
This commit is contained in:
parent
1240ce24b3
commit
09cf0cbb2a
2 changed files with 4 additions and 4 deletions
|
|
@ -109,12 +109,12 @@ void draft_t::parse_args(const value_t& args)
|
||||||
}
|
}
|
||||||
else if (check_for_date &&
|
else if (check_for_date &&
|
||||||
bool(weekday = string_to_day_of_week(what[0]))) {
|
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 push
|
||||||
#pragma GCC diagnostic ignored "-Wmaybe-uninitialized"
|
#pragma GCC diagnostic ignored "-Wmaybe-uninitialized"
|
||||||
#endif
|
#endif
|
||||||
short dow = static_cast<short>(*weekday);
|
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
|
#pragma GCC diagnostic pop
|
||||||
#endif
|
#endif
|
||||||
date_t date = CURRENT_DATE() - date_duration(1);
|
date_t date = CURRENT_DATE() - date_duration(1);
|
||||||
|
|
|
||||||
|
|
@ -835,7 +835,7 @@ void subtotal_posts::report_subtotal(const char * spec_fmt,
|
||||||
foreach (post_t * post, component_posts) {
|
foreach (post_t * post, component_posts) {
|
||||||
date_t date = post->date();
|
date_t date = post->date();
|
||||||
date_t value_date = post->value_date();
|
date_t value_date = post->value_date();
|
||||||
#if defined(__GNUC__) && __GNUC__ >= 4 && __GNUC_MINOR__ >= 6
|
#if defined(__GNUC__) && __GNUC__ >= 4 && __GNUC_MINOR__ >= 7
|
||||||
#pragma GCC diagnostic push
|
#pragma GCC diagnostic push
|
||||||
#pragma GCC diagnostic ignored "-Wmaybe-uninitialized"
|
#pragma GCC diagnostic ignored "-Wmaybe-uninitialized"
|
||||||
#endif
|
#endif
|
||||||
|
|
@ -843,7 +843,7 @@ void subtotal_posts::report_subtotal(const char * spec_fmt,
|
||||||
range_start = date;
|
range_start = date;
|
||||||
if (! range_finish || value_date > *range_finish)
|
if (! range_finish || value_date > *range_finish)
|
||||||
range_finish = value_date;
|
range_finish = value_date;
|
||||||
#if defined(__GNUC__) && __GNUC__ >= 4 && __GNUC_MINOR__ >= 6
|
#if defined(__GNUC__) && __GNUC__ >= 4 && __GNUC_MINOR__ >= 7
|
||||||
#pragma GCC diagnostic pop
|
#pragma GCC diagnostic pop
|
||||||
#endif
|
#endif
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue