Mercurial > hg > octave-nkf > gnulib-hg
changeset 9685:2858c91c7452
Avoid gcc warnings due to misplaced 'const'.
author | Bruno Haible <bruno@clisp.org> |
---|---|
date | Sun, 10 Feb 2008 19:22:48 +0100 |
parents | cacb7a47b649 |
children | 25f7280c9cf0 |
files | ChangeLog lib/diffseq.h |
diffstat | 2 files changed, 9 insertions(+), 4 deletions(-) [+] |
line wrap: on
line diff
--- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +2008-02-10 Bruno Haible <bruno@clisp.org> + + * lib/diffseq.h: Write "ELEMENT const" instead of "const ELEMENT". + Needed when ELEMENT is #defined to 'some_type *'. + 2008-02-10 Jim Meyering <meyering@redhat.com> New script and module: useless-if-before-free
--- 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. */