# HG changeset patch # User John W. Eaton # Date 1294862945 18000 # Node ID 0a4dfc867e60f2ed19d02f88323d3788e3212981 # Parent 9788029649237b867bc34db7d41a59900d17e2a6 avoid GCC warning for oct-rl-hist.c diff -r 978802964923 -r 0a4dfc867e60 liboctave/ChangeLog --- a/liboctave/ChangeLog Wed Jan 12 15:08:36 2011 -0500 +++ b/liboctave/ChangeLog Wed Jan 12 15:09:05 2011 -0500 @@ -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 -r 978802964923 -r 0a4dfc867e60 liboctave/oct-rl-hist.c --- a/liboctave/oct-rl-hist.c Wed Jan 12 15:08:36 2011 -0500 +++ b/liboctave/oct-rl-hist.c Wed Jan 12 15:09:05 2011 -0500 @@ -79,7 +79,7 @@ int r; using_history (); - while (temp = previous_history ()) + while ((temp = previous_history ())) { if (! strcmp (temp->line, line)) {