# HG changeset patch # User John W. Eaton # Date 1294862945 18000 # Node ID 0a4dfc867e60f2ed19d02f88323d3788e3212981 # Parent 9788029649237b867bc34db7d41a59900d17e2a6 avoid GCC warning for oct-rl-hist.c diff --git a/liboctave/ChangeLog b/liboctave/ChangeLog --- a/liboctave/ChangeLog +++ b/liboctave/ChangeLog @@ -1,3 +1,7 @@ +2011-01-12 John W. Eaton + + * oct-rl-hist.c (hc_erasedups): Avoid GCC warning. + 2011-01-12 Jordi GutiƩrrez Hermoso * oct-rl-hist.h: Replace macros with an enum diff --git a/liboctave/oct-rl-hist.c b/liboctave/oct-rl-hist.c --- a/liboctave/oct-rl-hist.c +++ b/liboctave/oct-rl-hist.c @@ -79,7 +79,7 @@ int r; using_history (); - while (temp = previous_history ()) + while ((temp = previous_history ())) { if (! strcmp (temp->line, line)) {