Mercurial > hg > octave-kai > gnulib-hg
diff lib/diffseq.h @ 9685:2858c91c7452
Avoid gcc warnings due to misplaced 'const'.
author | Bruno Haible <bruno@clisp.org> |
---|---|
date | Sun, 10 Feb 2008 19:22:48 +0100 (2008-02-10) |
parents | 8b484b0c3ae6 |
children | 74c36e9e4884 |
line wrap: on
line diff
--- a/lib/diffseq.h +++ b/lib/diffseq.h @@ -76,8 +76,8 @@ struct context { /* Vectors being compared. */ - const ELEMENT *xvec; - const ELEMENT *yvec; + ELEMENT const *xvec; + ELEMENT const *yvec; /* Extra fields. */ EXTRA_CONTEXT_FIELDS @@ -153,8 +153,8 @@ { OFFSET *const fd = ctxt->fdiag; /* Give the compiler a chance. */ OFFSET *const bd = ctxt->bdiag; /* Additional help for the compiler. */ - const ELEMENT *const xv = ctxt->xvec; /* Still more help for the compiler. */ - const ELEMENT *const yv = ctxt->yvec; /* And more and more . . . */ + ELEMENT const *const xv = ctxt->xvec; /* Still more help for the compiler. */ + ELEMENT const *const yv = ctxt->yvec; /* And more and more . . . */ const OFFSET dmin = xoff - ylim; /* Minimum valid diagonal. */ const OFFSET dmax = xlim - yoff; /* Maximum valid diagonal. */ const OFFSET fmid = xoff - yoff; /* Center diagonal of top-down search. */