-
Notifications
You must be signed in to change notification settings - Fork 109
Open
Description
AFAIR I have compiled jasper 4.2.8 without trouble with gcc 12, but now see the following apparently accurate int != char complaint from gcc 14:
/tmp/pkgsrc/graphics/jasper/work/jasper-4.2.8/src/libjasper/jp2/jp2_dec.c: In function 'jp2_decode':
/tmp/pkgsrc/graphics/jasper/work/jasper-4.2.8/src/libjasper/jp2/jp2_dec.c:312:73: error: passing argument 1 of 'jas_iccprof_createfrombuf' from incompatible pointer type [-Wincompatible-pointer-types]
312 | iccprof = jas_iccprof_createfrombuf(dec->colr->data.colr.iccp,
| ~~~~~~~~~~~~~~~~~~~~^~~~~
| |
| uint_fast8_t * {aka unsigned int *}
In file included from /tmp/pkgsrc/graphics/jasper/work/jasper-4.2.8/src/libjasper/include/jasper/jas_cm.h:78,
from /tmp/pkgsrc/graphics/jasper/work/jasper-4.2.8/src/libjasper/include/jasper/jas_image.h:82,
from /tmp/pkgsrc/graphics/jasper/work/jasper-4.2.8/src/libjasper/jp2/jp2_dec.h:67,
from /tmp/pkgsrc/graphics/jasper/work/jasper-4.2.8/src/libjasper/jp2/jp2_dec.c:74:
/tmp/pkgsrc/graphics/jasper/work/jasper-4.2.8/src/libjasper/include/jasper/jas_icc.h:507:59: note: expected 'const unsigned char *' but argument is of type 'uint_fast8_t *' {aka 'unsigned int *'}
507 | jas_iccprof_t *jas_iccprof_createfrombuf(const jas_uchar *buf, unsigned len);
| ~~~~~~~~~~~~~~~~~^~~
At top level:
cc1: note: unrecognized command-line option '-Wno-tautological-constant-out-of-range-compare' may have been intended to silence earlier diagnosticsMetadata
Metadata
Assignees
Labels
No labels