# HG changeset patch # User Paul Eggert # Date 1099423124 0 # Node ID 72833e3704a0fb28b6580318c47bd27c6a27e675 # Parent 20b173a370ecdee1f7801933440e420e2b214c46 * getdate.y [!TEST]: Include , since we use sprintf now. (get_date): Overparenthesize to avoid GCC warning. diff --git a/lib/ChangeLog b/lib/ChangeLog --- a/lib/ChangeLog +++ b/lib/ChangeLog @@ -1,3 +1,9 @@ +2004-11-02 Derek R. Price + and Paul Eggert + + * getdate.y [!TEST]: Include , since we use sprintf now. + (get_date): Overparenthesize to avoid GCC warning. + 2004-11-02 Bruno Haible * setenv.h (unsetenv): Define as a macro if the system's unsetenv() diff --git a/lib/getdate.y b/lib/getdate.y --- a/lib/getdate.y +++ b/lib/getdate.y @@ -50,6 +50,7 @@ #include #include +#include #include #include @@ -1307,8 +1308,8 @@ int month = tm.tm_mon + pc.rel_month; int day = tm.tm_mday + pc.rel_day; if (((year < tm.tm_year) ^ (pc.rel_year < 0)) - | (month < tm.tm_mon) ^ (pc.rel_month < 0) - | (day < tm.tm_mday) ^ (pc.rel_day < 0)) + | ((month < tm.tm_mon) ^ (pc.rel_month < 0)) + | ((day < tm.tm_mday) ^ (pc.rel_day < 0))) goto fail; tm.tm_year = year; tm.tm_mon = month; @@ -1365,8 +1366,6 @@ #if TEST -#include - int main (int ac, char **av) {