]> git.imager.perl.org - imager.git/commit
avoid ignoring the result of i_io_getc()
authorTony Cook <tony@develop-help.com>
Sat, 5 Jan 2019 03:33:22 +0000 (14:33 +1100)
committerTony Cook <tony@develop-help.com>
Sat, 5 Jan 2019 03:33:22 +0000 (14:33 +1100)
commit215d9ead9350d69161c7ae11719b5c7228711ecc
treea1ca2b6764a2e73b1cb024645558e4c8c7654216
parenta3b721bb9af3baf668992e08d966b0f768d61e44
avoid ignoring the result of i_io_getc()

Coverity complained about *(ig->read_ptr++) because the result of the *
operator was ignored, which was deliberate.

I could simply had added a void cast, but given i_io_peekc(),
I could see a macro that skips the * being simpler to read, adding
i_io_nextc(), which is exposed as the nextc() method on Imager::IO
objects.
Changes
Imager.xs
iolayert.h
lib/Imager/IO.pod
pnm.c