]> granicus.if.org Git - gc/commit
Eliminate 'write to memory that was const-qualified' code analyzer warning
authorIvan Maidanski <ivmai@mail.ru>
Wed, 28 Sep 2016 08:32:55 +0000 (11:32 +0300)
committerIvan Maidanski <ivmai@mail.ru>
Mon, 31 Oct 2016 20:48:36 +0000 (23:48 +0300)
commitc0179f959e49842a9d91a48371e02367a107e0b8
tree63a509e2b93d131031dd493984f8b2b92259b83e
parentabeba58715048fd88517c2ac61e94e7966e8ad7a
Eliminate 'write to memory that was const-qualified' code analyzer warning

* cord/cordbscs.c (CORD_from_fn): Rename to CORD_from_fn_inner; make it
static; change return type from CORD to CordRep*; define public
CORD_from_fn which simply calls CORD_from_fn_inner (with the type cast
to CORD).
* cord/cordbscs.c (CORD_substr_closure): Call CORD_from_fn_inner
instead of CORD_from_fn (thus remove the cast from const type to
a non-const one).
cord/cordbscs.c