configure.ac:3432: warning: The macro 'AC_PROG_GCC_TRADITIONAL' is obsolete.
configure.ac:3432: You should run autoupdate.
./lib/autoconf/c.m4:1676: AC_PROG_GCC_TRADITIONAL is expanded from...
configure.ac:3432: the top level
[01;33mdosed method has not changed file 'configure.ac'.
[0mfgrep: warning: fgrep is obsolescent; using grep -F
configure.ac:114: warning: The macro 'AM_PROG_LIBTOOL' is obsolete.
configure.ac:114: You should run autoupdate.
aclocal.m4:123: AM_PROG_LIBTOOL is expanded from...
configure.ac:114: the top level
configure.ac:120: warning: The macro 'AM_PROG_LIBTOOL' is obsolete.
configure.ac:120: You should run autoupdate.
aclocal.m4:123: AM_PROG_LIBTOOL is expanded from...
configure.ac:120: the top level
configure.ac:122: warning: The macro 'AC_ISC_POSIX' is obsolete.
configure.ac:122: You should run autoupdate.
./lib/autoconf/specific.m4:732: AC_ISC_POSIX is expanded from...
configure.ac:122: the top level
configure: WARNING: PostScript documentation cannot be generated!
configure: WARNING: PDF documentation cannot be generated!
ijs_client_example.c: In function ‘send_pnm_file’:
ijs_client_example.c:135:7: warning: ignoring return value of ‘fread’ declared with attribute ‘warn_unused_result’ [-Wunused-result]
135 | fread (buf, 1, n_bytes, f); /* todo: check error */
| ^~~~~~~~~~~~~~~~~~~~~~~~~~
extract/src/json.c:83:5: warning: no previous prototype for ‘extract_document_to_json_content’ [-Wmissing-prototypes]
83 | int extract_document_to_json_content(
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
leptonica/src/baseline.c: In function ‘pixGetLocalSkewTransform’:
leptonica/src/baseline.c:445:5: warning: ‘dely’ may be used uninitialized [-Wmaybe-uninitialized]
445 | ptaAddPt(ptas, w - 1, i - dely);
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
leptonica/src/baseline.c:400:33: note: ‘dely’ was declared here
400 | l_float32 deg2rad, angr, angd, dely;
| ^~~~
leptonica/src/binarize.c: In function ‘pixSauvolaBinarize’:
leptonica/src/binarize.c:716:47: warning: ‘wplsd’ may be used uninitialized [-Wmaybe-uninitialized]
716 | l_int32 i, j, w, h, tabsize, wplm, wplms, wplsd, wpld, usetab;
| ^~~~~
leptonica/src/bmf.c: In function ‘pixaGenerateFont’:
leptonica/src/bmf.c:605:21: warning: ‘yval’ may be used uninitialized [-Wmaybe-uninitialized]
605 | baseline[i] = yval;
| ~~~~~~~~~~~~^~~~~~
leptonica/src/bmf.c:547:46: note: ‘yval’ was declared here
547 | l_int32 i, j, nrows, nrowchars, nchars, h, yval;
| ^~~~
leptonica/src/boxfunc2.c: In function ‘boxaaTranspose’:
leptonica/src/boxfunc2.c:1807:12: warning: ‘nbox’ may be used uninitialized [-Wmaybe-uninitialized]
1807 | baad = boxaaCreate(nbox);
| ^~~~~~~~~~~~~~~~~
leptonica/src/boxfunc2.c:1783:25: note: ‘nbox’ was declared here
1783 | l_int32 i, j, ny, nb, nbox;
| ^~~~
leptonica/src/boxfunc2.c: In function ‘boxaaAlignBox’:
leptonica/src/boxfunc2.c:1882:17: warning: ‘maxindex’ may be used uninitialized [-Wmaybe-uninitialized]
1882 | *pindex = maxindex;
| ~~~~~~~~^~~~~~~~~~
leptonica/src/boxfunc2.c:1843:48: note: ‘maxindex’ was declared here
1843 | l_int32 i, n, m, y, yt, h, ht, ovlp, maxovlp, maxindex;
| ^~~~~~~~
In function ‘pixGetCCBorders’,
inlined from ‘pixGetAllCCBorders’ at leptonica/src/ccbord.c:598:15:
leptonica/src/ccbord.c:720:16: warning: ‘xh’ may be used uninitialized [-Wmaybe-uninitialized]
720 | for (x = xh + boxt->x; x < w; x++) { /* look for (fg) border pixel */
| ~~^~~~~~~~~~~~~~
leptonica/src/ccbord.c: In function ‘pixGetAllCCBorders’:
leptonica/src/ccbord.c:647:26: note: ‘xh’ was declared here
647 | l_int32 allzero, i, x, xh, w, nh;
| ^~
In function ‘pixGetHoleBorder’,
inlined from ‘pixGetCCBorders’ at leptonica/src/ccbord.c:733:9,
inlined from ‘pixGetAllCCBorders’ at leptonica/src/ccbord.c:598:15:
leptonica/src/ccbord.c:1007:9: warning: ‘xs’ may be used uninitialized [-Wmaybe-uninitialized]
1007 | if (findNextBorderPixel(w, h, data, wpl, xs, ys, &qpos, &npx, &npy))
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
leptonica/src/ccbord.c: In function ‘pixGetAllCCBorders’:
leptonica/src/ccbord.c:648:11: note: ‘xs’ was declared here
648 | l_int32 xs, ys; /* starting hole border pixel, relative in pixs */
| ^~
leptonica/src/colorcontent.c: In function ‘pixColorContent’:
leptonica/src/colorcontent.c:211:30: warning: ‘wplr’ may be used uninitialized [-Wmaybe-uninitialized]
211 | l_int32 w, h, i, j, wpl1, wplr, wplg, wplb;
| ^~~~
leptonica/src/colorcontent.c:211:36: warning: ‘wplg’ may be used uninitialized [-Wmaybe-uninitialized]
211 | l_int32 w, h, i, j, wpl1, wplr, wplg, wplb;
| ^~~~
leptonica/src/colorcontent.c:211:42: warning: ‘wplb’ may be used uninitialized [-Wmaybe-uninitialized]
211 | l_int32 w, h, i, j, wpl1, wplr, wplg, wplb;
| ^~~~
leptonica/src/ccbord.c: In function ‘ccbaGenerateSinglePath’:
leptonica/src/ccbord.c:1575:16: warning: ‘len’ may be used uninitialized [-Wmaybe-uninitialized]
1575 | if (len == 0) { /* lost the hole */
| ^
leptonica/src/ccbord.c:1522:45: note: ‘len’ was declared here
1522 | l_int32 i, j, k, ncc, nb, ncut, npt, dir, len, state, lostholes;
| ^~~
In function ‘locateOutsideSeedPixel’,
inlined from ‘ccbaDisplayImage1’ at leptonica/src/ccbord.c:2043:17:
leptonica/src/ccbord.c:1110:8: warning: ‘fpx’ may be used uninitialized [-Wmaybe-uninitialized]
1110 | dx = spx - fpx;
| ~~~^~~~~~~~~~~
leptonica/src/ccbord.c: In function ‘ccbaDisplayImage1’:
leptonica/src/ccbord.c:1962:10: note: ‘fpx’ was declared here
1962 | l_int32 fpx, fpy, spx, spy, xs, ys;
| ^~~
In function ‘locateOutsideSeedPixel’,
inlined from ‘ccbaDisplayImage1’ at leptonica/src/ccbord.c:2043:17:
leptonica/src/ccbord.c:1111:8: warning: ‘fpy’ may be used uninitialized [-Wmaybe-uninitialized]
1111 | dy = spy - fpy;
| ~~~^~~~~~~~~~~
leptonica/src/ccbord.c: In function ‘ccbaDisplayImage1’:
leptonica/src/ccbord.c:1962:15: note: ‘fpy’ was declared here
1962 | l_int32 fpx, fpy, spx, spy, xs, ys;
| ^~~
In function ‘locateOutsideSeedPixel’,
inlined from ‘ccbaDisplayImage1’ at leptonica/src/ccbord.c:2043:17:
leptonica/src/ccbord.c:1110:8: warning: ‘spx’ may be used uninitialized [-Wmaybe-uninitialized]
1110 | dx = spx - fpx;
| ~~~^~~~~~~~~~~
leptonica/src/ccbord.c: In function ‘ccbaDisplayImage1’:
leptonica/src/ccbord.c:1962:20: note: ‘spx’ was declared here
1962 | l_int32 fpx, fpy, spx, spy, xs, ys;
| ^~~
In function ‘locateOutsideSeedPixel’,
inlined from ‘ccbaDisplayImage1’ at leptonica/src/ccbord.c:2043:17:
leptonica/src/ccbord.c:1111:8: warning: ‘spy’ may be used uninitialized [-Wmaybe-uninitialized]
1111 | dy = spy - fpy;
| ~~~^~~~~~~~~~~
leptonica/src/ccbord.c: In function ‘ccbaDisplayImage1’:
leptonica/src/ccbord.c:1962:25: note: ‘spy’ was declared here
1962 | l_int32 fpx, fpy, spx, spy, xs, ys;
| ^~~
leptonica/src/colormap.c: In function ‘pixcmapReadStream’:
leptonica/src/colormap.c:1790:35: warning: variable ‘ignore’ set but not used [-Wunused-but-set-variable]
1790 | l_int32 rval, gval, bval, aval, ignore;
| ^~~~~~
leptonica/src/colorseg.c: In function ‘pixAssignToNearestColor’:
leptonica/src/colorseg.c:413:30: warning: ‘wplm’ may be used uninitialized [-Wmaybe-uninitialized]
413 | l_int32 w, h, wpls, wpld, wplm, i, j, success;
| ^~~~
leptonica/src/colorquant1.c: In function ‘pixOctreeColorQuantGeneral.part.0’:
leptonica/src/colorquant1.c:688:5: warning: ‘cmap’ may be used uninitialized [-Wmaybe-uninitialized]
688 | pixcmapGetColor(cmap, index, &rval, &gval, &bval);
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
leptonica/src/colorquant1.c:612:12: note: ‘cmap’ was declared here
612 | PIXCMAP *cmap;
| ^~~~
leptonica/src/colorquant1.c: In function ‘pixOctcubeHistogram’:
leptonica/src/colorquant1.c:3716:15: warning: ‘size’ may be used uninitialized [-Wmaybe-uninitialized]
3716 | if ((na = numaCreate(size)) == NULL) {
| ^~~~~~~~~~~~~~~~
leptonica/src/colorquant1.c:3693:13: note: ‘size’ was declared here
3693 | l_int32 size, i, j, w, h, wpl, ncolors, val;
| ^~~~
leptonica/src/correlscore.c: In function ‘pixCorrelationScoreThresholded’:
leptonica/src/correlscore.c:686:46: warning: ‘untouchable’ may be used uninitialized [-Wmaybe-uninitialized]
686 | if (count + downcount[y] - untouchable < threshold) {
| ~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~
leptonica/src/correlscore.c:437:52: note: ‘untouchable’ was declared here
437 | l_int32 wpl1, wpl2, lorow, hirow, locol, hicol, untouchable;
| ^~~~~~~~~~~
leptonica/src/convolve.c: In function ‘pixWindowedVariance’:
leptonica/src/convolve.c:1271:50: warning: ‘wplv’ may be used uninitialized [-Wmaybe-uninitialized]
1271 | l_int32 i, j, w, h, ws, hs, ds, wplm, wplms, wplv, wplrv, valm, valms;
| ^~~~
leptonica/src/convolve.c:1271:56: warning: ‘wplrv’ may be used uninitialized [-Wmaybe-uninitialized]
1271 | l_int32 i, j, w, h, ws, hs, ds, wplm, wplms, wplv, wplrv, valm, valms;
| ^~~~~
In file included from leptonica/src/alltypes.h:37,
from leptonica/src/allheaders.h:35,
from leptonica/src/dewarp2.c:67:
leptonica/src/dewarp2.c: In function ‘dewarpBuildPageModel’:
leptonica/src/environ.h:598:14: warning: ‘ntop’ may be used uninitialized [-Wmaybe-uninitialized]
598 | (void)lept_stderr("Warning in %s: " a, __VA_ARGS__), \
| ^
leptonica/src/environ.h:573:61: note: in definition of macro ‘IF_SEV’
573 | ((l) >= MINIMUM_SEVERITY && (l) >= LeptMsgSeverity ? (t) : (f))
| ^
leptonica/src/dewarp2.c:226:9: note: in expansion of macro ‘L_WARNING’
226 | L_WARNING("invalid line coverage: ntop = %d, nbot = %d;"
| ^~~~~~~~~
leptonica/src/dewarp2.c:159:21: note: ‘ntop’ was declared here
159 | l_int32 linecount, ntop, nbot, ytop, ybot, ret;
| ^~~~
leptonica/src/environ.h:598:14: warning: ‘nbot’ may be used uninitialized [-Wmaybe-uninitialized]
598 | (void)lept_stderr("Warning in %s: " a, __VA_ARGS__), \
| ^
leptonica/src/environ.h:573:61: note: in definition of macro ‘IF_SEV’
573 | ((l) >= MINIMUM_SEVERITY && (l) >= LeptMsgSeverity ? (t) : (f))
| ^
leptonica/src/dewarp2.c:226:9: note: in expansion of macro ‘L_WARNING’
226 | L_WARNING("invalid line coverage: ntop = %d, nbot = %d;"
| ^~~~~~~~~
leptonica/src/dewarp2.c:159:27: note: ‘nbot’ was declared here
159 | l_int32 linecount, ntop, nbot, ytop, ybot, ret;
| ^~~~
leptonica/src/environ.h:598:14: warning: ‘ytop’ may be used uninitialized [-Wmaybe-uninitialized]
598 | (void)lept_stderr("Warning in %s: " a, __VA_ARGS__), \
| ^
leptonica/src/environ.h:573:61: note: in definition of macro ‘IF_SEV’
573 | ((l) >= MINIMUM_SEVERITY && (l) >= LeptMsgSeverity ? (t) : (f))
| ^
leptonica/src/dewarp2.c:226:9: note: in expansion of macro ‘L_WARNING’
226 | L_WARNING("invalid line coverage: ntop = %d, nbot = %d;"
| ^~~~~~~~~
leptonica/src/dewarp2.c:159:33: note: ‘ytop’ was declared here
159 | l_int32 linecount, ntop, nbot, ytop, ybot, ret;
| ^~~~
leptonica/src/environ.h:598:14: warning: ‘ybot’ may be used uninitialized [-Wmaybe-uninitialized]
598 | (void)lept_stderr("Warning in %s: " a, __VA_ARGS__), \
| ^
leptonica/src/environ.h:573:61: note: in definition of macro ‘IF_SEV’
573 | ((l) >= MINIMUM_SEVERITY && (l) >= LeptMsgSeverity ? (t) : (f))
| ^
leptonica/src/dewarp2.c:226:9: note: in expansion of macro ‘L_WARNING’
226 | L_WARNING("invalid line coverage: ntop = %d, nbot = %d;"
| ^~~~~~~~~
leptonica/src/dewarp2.c:159:39: note: ‘ybot’ was declared here
159 | l_int32 linecount, ntop, nbot, ytop, ybot, ret;
| ^~~~
leptonica/src/enhance.c: In function ‘pixUnsharpMaskingGray1D’:
leptonica/src/enhance.c:1321:32: warning: ‘a[3]’ may be used uninitialized [-Wmaybe-uninitialized]
1321 | a[4] * GET_DATA_BYTE(lines, j + 2);
leptonica/src/enhance.c:1265:17: note: ‘a[3]’ was declared here
1265 | l_float32 val, a[5];
| ^
leptonica/src/fhmtgenlow.1.c: In function ‘fhmt_1_5’:
leptonica/src/fhmtgenlow.1.c:273:21: warning: variable ‘wpls5’ set but not used [-Wunused-but-set-variable]
273 | l_int32 wpls5, wpls6;
| ^~~~~
leptonica/src/fhmtgenlow.1.c:272:35: warning: variable ‘wpls4’ set but not used [-Wunused-but-set-variable]
272 | l_int32 wpls2, wpls3, wpls4;
| ^~~~~
leptonica/src/fhmtgenlow.1.c:272:28: warning: variable ‘wpls3’ set but not used [-Wunused-but-set-variable]
272 | l_int32 wpls2, wpls3, wpls4;
| ^~~~~
leptonica/src/fpix2.c: In function ‘linearInterpolatePixelFloat’:
leptonica/src/fpix2.c:2206:6: warning: "DEBUG" is not defined, evaluates to 0 [-Wundef]
2206 | #if DEBUG
| ^~~~~
leptonica/src/gplot.c: In function ‘gplotRead’:
leptonica/src/gplot.c:1209:35: warning: variable ‘ignore’ set but not used [-Wunused-but-set-variable]
1209 | l_int32 outformat, ret, version, ignore;
| ^~~~~~
leptonica/src/gplot.c:1208:47: warning: variable ‘ignores’ set but not used [-Wunused-but-set-variable]
1208 | char *rootname, *title, *xlabel, *ylabel, *ignores;
| ^~~~~~~
In file included from /usr/include/stdio.h:894,
from leptonica/src/alltypes.h:31,
from leptonica/src/allheaders.h:35,
from leptonica/src/fpix1.c:124:
In function ‘fprintf’,
inlined from ‘fpixWriteStream’ at leptonica/src/fpix1.c:1515:5:
/usr/include/bits/stdio2.h:105:10: warning: ‘xres’ may be used uninitialized [-Wmaybe-uninitialized]
105 | return __fprintf_chk (__stream, __USE_FORTIFY_LEVEL - 1, __fmt,
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
106 | __va_arg_pack ());
| ~~~~~~~~~~~~~~~~~
leptonica/src/fpix1.c: In function ‘fpixWriteStream’:
leptonica/src/fpix1.c:1496:19: note: ‘xres’ was declared here
1496 | l_int32 w, h, xres, yres;
| ^~~~
In function ‘fprintf’,
inlined from ‘fpixWriteStream’ at leptonica/src/fpix1.c:1515:5:
/usr/include/bits/stdio2.h:105:10: warning: ‘yres’ may be used uninitialized [-Wmaybe-uninitialized]
105 | return __fprintf_chk (__stream, __USE_FORTIFY_LEVEL - 1, __fmt,
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
106 | __va_arg_pack ());
| ~~~~~~~~~~~~~~~~~
leptonica/src/fpix1.c: In function ‘fpixWriteStream’:
leptonica/src/fpix1.c:1496:25: note: ‘yres’ was declared here
1496 | l_int32 w, h, xres, yres;
| ^~~~
In function ‘fprintf’,
inlined from ‘dpixWriteStream’ at leptonica/src/fpix1.c:1804:5:
/usr/include/bits/stdio2.h:105:10: warning: ‘xres’ may be used uninitialized [-Wmaybe-uninitialized]
105 | return __fprintf_chk (__stream, __USE_FORTIFY_LEVEL - 1, __fmt,
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
106 | __va_arg_pack ());
| ~~~~~~~~~~~~~~~~~
leptonica/src/fpix1.c: In function ‘dpixWriteStream’:
leptonica/src/fpix1.c:1785:19: note: ‘xres’ was declared here
1785 | l_int32 w, h, xres, yres;
| ^~~~
In function ‘fprintf’,
inlined from ‘dpixWriteStream’ at leptonica/src/fpix1.c:1804:5:
/usr/include/bits/stdio2.h:105:10: warning: ‘yres’ may be used uninitialized [-Wmaybe-uninitialized]
105 | return __fprintf_chk (__stream, __USE_FORTIFY_LEVEL - 1, __fmt,
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
106 | __va_arg_pack ());
| ~~~~~~~~~~~~~~~~~
leptonica/src/fpix1.c: In function ‘dpixWriteStream’:
leptonica/src/fpix1.c:1785:25: note: ‘yres’ was declared here
1785 | l_int32 w, h, xres, yres;
| ^~~~
leptonica/src/graphics.c: In function ‘pixRenderPtaArb’:
leptonica/src/graphics.c:1371:13: warning: ‘val’ may be used uninitialized [-Wmaybe-uninitialized]
1371 | pixSetPixel(pix, x, y, val);
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~
leptonica/src/graphics.c:1327:11: note: ‘val’ was declared here
1327 | l_uint8 val;
| ^~~
leptonica/src/grayquant.c: In function ‘thresholdToBinaryLineLow’:
leptonica/src/grayquant.c:568:21: warning: ‘sword’ may be used uninitialized [-Wmaybe-uninitialized]
568 | sword <<= 4;
| ~~~~~~^~~~~
leptonica/src/grayquant.c:524:10: note: ‘sword’ was declared here
524 | l_uint32 sword, dword;
| ^~~~~
leptonica/src/jbclass.c: In function ‘jbGetULCorners’:
leptonica/src/jbclass.c:2239:47: warning: ‘dx’ may be used uninitialized [-Wmaybe-uninitialized]
2239 | ptaAddPt(ptaul, (l_float32)(x - idelx + dx), (l_float32)(y - idely + dy));
| ~~~~~~~~~~~^~~~~
leptonica/src/jbclass.c:2190:64: note: ‘dx’ was declared here
2190 | l_int32 i, baseindex, index, n, iclass, idelx, idely, x, y, dx, dy;
| ^~
leptonica/src/jbclass.c:2239:76: warning: ‘dy’ may be used uninitialized [-Wmaybe-uninitialized]
2239 | ptaAddPt(ptaul, (l_float32)(x - idelx + dx), (l_float32)(y - idely + dy));
| ~~~~~~~~~~~^~~~~
leptonica/src/jbclass.c:2190:68: note: ‘dy’ was declared here
2190 | l_int32 i, baseindex, index, n, iclass, idelx, idely, x, y, dx, dy;
| ^~
leptonica/src/libversions.c: In function ‘getImagelibVersions’:
leptonica/src/libversions.c:107:10: warning: unused variable ‘first’ [-Wunused-variable]
107 | l_int32 first = TRUE;
| ^~~~~
leptonica/src/kernel.c: In function ‘kernelReadStream’:
leptonica/src/kernel.c:540:48: warning: variable ‘ignore’ set but not used [-Wunused-but-set-variable]
540 | l_int32 sy, sx, cy, cx, i, j, ret, version, ignore;
| ^~~~~~
leptonica/src/morphdwa.c: In function ‘pixErodeCompBrickExtendDwa.part.0’:
leptonica/src/morphdwa.c:1329:34: warning: ‘extrah’ may be used uninitialized [-Wmaybe-uninitialized]
1329 | nops = (extrah < 3) ? nh : nh + 1;
| ~~~~~~~~~~~~~~~~~~^~~~~~~~
leptonica/src/morphdwa.c:1302:23: note: ‘extrah’ was declared here
1302 | l_int32 i, nops, nh, extrah, nv, extrav;
| ^~~~~~
leptonica/src/morphdwa.c:1330:18: warning: ‘nh’ may be used uninitialized [-Wmaybe-uninitialized]
1330 | if (nops & 1) { /* odd */
| ~~~~~^~~
leptonica/src/morphdwa.c:1302:19: note: ‘nh’ was declared here
1302 | l_int32 i, nops, nh, extrah, nv, extrav;
| ^~
leptonica/src/morphdwa.c:1363:18: warning: ‘nv’ may be used uninitialized [-Wmaybe-uninitialized]
1363 | if (nops & 1) { /* odd */
| ~~~~~^~~
leptonica/src/morphdwa.c:1302:31: note: ‘nv’ was declared here
1302 | l_int32 i, nops, nh, extrah, nv, extrav;
| ^~
leptonica/src/morphdwa.c:1362:34: warning: ‘extrav’ may be used uninitialized [-Wmaybe-uninitialized]
1362 | nops = (extrav < 3) ? nv : nv + 1;
| ~~~~~~~~~~~~~~~~~~^~~~~~~~
leptonica/src/morphdwa.c:1302:35: note: ‘extrav’ was declared here
1302 | l_int32 i, nops, nh, extrah, nv, extrav;
| ^~~~~~
leptonica/src/morphdwa.c: In function ‘pixDilateCompBrickExtendDwa.part.0’:
leptonica/src/morphdwa.c:1211:34: warning: ‘extrah’ may be used uninitialized [-Wmaybe-uninitialized]
1211 | nops = (extrah < 3) ? nh : nh + 1;
| ~~~~~~~~~~~~~~~~~~^~~~~~~~
leptonica/src/morphdwa.c:1184:23: note: ‘extrah’ was declared here
1184 | l_int32 i, nops, nh, extrah, nv, extrav;
| ^~~~~~
leptonica/src/morphdwa.c:1212:18: warning: ‘nh’ may be used uninitialized [-Wmaybe-uninitialized]
1212 | if (nops & 1) { /* odd */
| ~~~~~^~~
leptonica/src/morphdwa.c:1184:19: note: ‘nh’ was declared here
1184 | l_int32 i, nops, nh, extrah, nv, extrav;
| ^~
leptonica/src/morphdwa.c:1245:18: warning: ‘nv’ may be used uninitialized [-Wmaybe-uninitialized]
1245 | if (nops & 1) { /* odd */
| ~~~~~^~~
leptonica/src/morphdwa.c:1184:31: note: ‘nv’ was declared here
1184 | l_int32 i, nops, nh, extrah, nv, extrav;
| ^~
leptonica/src/morphdwa.c:1244:34: warning: ‘extrav’ may be used uninitialized [-Wmaybe-uninitialized]
1244 | nops = (extrav < 3) ? nv : nv + 1;
| ~~~~~~~~~~~~~~~~~~^~~~~~~~
leptonica/src/morphdwa.c:1184:35: note: ‘extrav’ was declared here
1184 | l_int32 i, nops, nh, extrah, nv, extrav;
| ^~~~~~
leptonica/src/numafunc1.c: In function ‘numaThresholdEdges’:
leptonica/src/numafunc1.c:1476:8: warning: ‘istart’ may be used uninitialized [-Wmaybe-uninitialized]
1476 | if (istart == n) /* no intervals found */
| ^
leptonica/src/numafunc1.c:1437:18: note: ‘istart’ was declared here
1437 | l_int32 n, i, istart, inband, output, sign;
| ^~~~~~
leptonica/src/partify.c: In function ‘boxaRemoveVGaps’:
leptonica/src/partify.c:306:5: warning: this ‘if’ clause does not guard... [-Wmisleading-indentation]
306 | if ((nbox = boxaGetCount(boxa)) == 0);
| ^~
leptonica/src/partify.c:307:9: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the ‘if’
307 | return ERROR_INT("boxa is empty", __func__, 1);
| ^~~~~~
leptonica/src/pix4.c: In function ‘pixGetAverageTiled’:
leptonica/src/pix4.c:1750:52: warning: ‘ave’ may be used uninitialized [-Wmaybe-uninitialized]
1750 | valt = (l_int32)(sqrt(meansq - ave * ave) + 0.5);
| ~~~~^~~~~
leptonica/src/pix4.c:1692:27: note: ‘ave’ was declared here
1692 | l_float64 sumave, summs, ave, meansq, normfact;
| ^~~
leptonica/src/pixafunc2.c: In function ‘pixaDisplayRandomCmap’:
leptonica/src/pixafunc2.c:311:5: warning: ‘res’ may be used uninitialized [-Wmaybe-uninitialized]
311 | pixSetResolution(pixd, res, res);
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
leptonica/src/pixafunc2.c:271:52: note: ‘res’ was declared here
271 | l_int32 i, n, same, maxd, index, xb, yb, wb, hb, res;
| ^~~
leptonica/src/pixafunc2.c: In function ‘pixaDisplayTiled’:
leptonica/src/pixafunc2.c:685:5: warning: ‘res’ may be used uninitialized [-Wmaybe-uninitialized]
685 | pixSetResolution(pixd, res, res);
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
leptonica/src/pixafunc2.c:623:42: note: ‘res’ was declared here
623 | l_int32 wmax, hmax, wd, hd, d, hascmap, res, same;
| ^~~
leptonica/src/pixafunc2.c: In function ‘pixaDisplayTiledInColumns’:
leptonica/src/pixafunc2.c:988:5: warning: ‘res’ may be used uninitialized [-Wmaybe-uninitialized]
988 | pixSetResolution(pixd, res, res);
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
leptonica/src/pixafunc2.c:918:75: note: ‘res’ was declared here
918 | l_int32 i, j, index, n, x, y, nrows, wb, hb, w, h, maxd, maxh, bordval, res;
| ^~~
leptonica/src/pnmio.c: In function ‘pnmReadNextAsciiValue’:
leptonica/src/pnmio.c:1330:10: warning: unused variable ‘ignore’ [-Wunused-variable]
1330 | l_int32 ignore;
| ^~~~~~
leptonica/src/psio1.c: In function ‘pixWriteSegmentedPageToPS’:
leptonica/src/psio1.c:666:39: warning: ‘d’ may be used uninitialized [-Wmaybe-uninitialized]
666 | val = (d == 8) ? 0xff : 0xffffff00;
| ~~~~~~~~~~~~~~~~^~~~~~~~~~~~
leptonica/src/psio1.c:586:29: note: ‘d’ was declared here
586 | l_int32 alltext, notext, d, ret;
| ^
leptonica/src/readfile.c:96:20: warning: ‘FILE_JP2K’ defined but not used [-Wunused-variable]
96 | static const char *FILE_JP2K = "/tmp/lept/format/file.jp2";
| ^~~~~~~~~
leptonica/src/readfile.c:95:20: warning: ‘FILE_WEBP’ defined but not used [-Wunused-variable]
95 | static const char *FILE_WEBP = "/tmp/lept/format/file.webp";
| ^~~~~~~~~
leptonica/src/readfile.c:94:20: warning: ‘FILE_GIF’ defined but not used [-Wunused-variable]
94 | static const char *FILE_GIF = "/tmp/lept/format/file.gif";
| ^~~~~~~~
leptonica/src/readfile.c:93:20: warning: ‘FILE_JPG’ defined but not used [-Wunused-variable]
93 | static const char *FILE_JPG = "/tmp/lept/format/file.jpg";
| ^~~~~~~~
leptonica/src/readfile.c:92:20: warning: ‘FILE_TIFF’ defined but not used [-Wunused-variable]
92 | static const char *FILE_TIFF = "/tmp/lept/format/file.tif";
| ^~~~~~~~~
leptonica/src/readfile.c:91:20: warning: ‘FILE_TIFF_JPEG’ defined but not used [-Wunused-variable]
91 | static const char *FILE_TIFF_JPEG = "/tmp/lept/format/file_jpeg.tif";
| ^~~~~~~~~~~~~~
leptonica/src/readfile.c:90:20: warning: ‘FILE_ZIP’ defined but not used [-Wunused-variable]
90 | static const char *FILE_ZIP = "/tmp/lept/format/file_zip.tif";
| ^~~~~~~~
leptonica/src/readfile.c:89:20: warning: ‘FILE_LZW’ defined but not used [-Wunused-variable]
89 | static const char *FILE_LZW = "/tmp/lept/format/file_lzw.tif";
| ^~~~~~~~
leptonica/src/readfile.c:88:20: warning: ‘FILE_PB’ defined but not used [-Wunused-variable]
88 | static const char *FILE_PB = "/tmp/lept/format/file_packbits.tif";
| ^~~~~~~
leptonica/src/readfile.c:87:20: warning: ‘FILE_RLE’ defined but not used [-Wunused-variable]
87 | static const char *FILE_RLE = "/tmp/lept/format/file_rle.tif";
| ^~~~~~~~
leptonica/src/readfile.c:86:20: warning: ‘FILE_G4’ defined but not used [-Wunused-variable]
86 | static const char *FILE_G4 = "/tmp/lept/format/file_g4.tif";
| ^~~~~~~
leptonica/src/readfile.c:85:20: warning: ‘FILE_G3’ defined but not used [-Wunused-variable]
85 | static const char *FILE_G3 = "/tmp/lept/format/file_g3.tif";
| ^~~~~~~
leptonica/src/readfile.c:83:20: warning: ‘FILE_PNG’ defined but not used [-Wunused-variable]
83 | static const char *FILE_PNG = "/tmp/lept/format/file.png";
| ^~~~~~~~
leptonica/src/rop.c:541:1: warning: ‘checkRasteropCrop’ defined but not used [-Wunused-function]
541 | checkRasteropCrop(l_int32 pixw,
| ^~~~~~~~~~~~~~~~~
In function ‘rasteropGeneralLow’,
inlined from ‘rasteropLow’ at leptonica/src/roplow.c:573:9:
leptonica/src/roplow.c:1623:24: warning: ‘sfwaddb’ may be used uninitialized [-Wmaybe-uninitialized]
1623 | if (sfwaddb)
| ^
leptonica/src/roplow.c: In function ‘rasteropLow’:
leptonica/src/roplow.c:1402:12: note: ‘sfwaddb’ was declared here
1402 | l_int32 sfwaddb; /* boolean: do we need an additional sfw right shift? */
| ^~~~~~~
leptonica/src/sarray1.c: In function ‘sarrayReadStream’:
leptonica/src/sarray1.c:1390:47: warning: variable ‘ignore’ set but not used [-Wunused-but-set-variable]
1390 | l_int32 i, n, size, index, bufsize, version, ignore, success;
| ^~~~~~
leptonica/src/sarray1.c: In function ‘getFilenamesInDirectory’:
leptonica/src/sarray1.c:1888:17: warning: unused variable ‘dfd’ [-Wunused-variable]
1888 | int dfd, stat_ret;
| ^~~
leptonica/src/sel1.c: In function ‘selReadStream’:
leptonica/src/sel1.c:1354:41: warning: variable ‘ignore’ set but not used [-Wunused-but-set-variable]
1354 | l_int32 sy, sx, cy, cx, i, j, version, ignore;
| ^~~~~~
In file included from leptonica/src/alltypes.h:51,
from leptonica/src/allheaders.h:35,
from leptonica/src/scale2.c:103:
leptonica/src/scale2.c: In function ‘pixScaleGrayMinMax’:
leptonica/src/scale2.c:1067:48: warning: ‘maxval’ may be used uninitialized [-Wmaybe-uninitialized]
1067 | SET_DATA_BYTE(lined, j, maxval - minval);
leptonica/src/arrayaccess.h:199:75: note: in definition of macro ‘SET_DATA_BYTE’
199 | *(l_uint8 *)((l_uintptr_t)((l_uint8 *)(pdata) + (n)) ^ 3) = (val)
| ^~~
leptonica/src/scale2.c:1003:20: note: ‘maxval’ was declared here
1003 | l_int32 minval, maxval, val;
| ^~~~~~
leptonica/src/scale2.c:1067:48: warning: ‘minval’ may be used uninitialized [-Wmaybe-uninitialized]
1067 | SET_DATA_BYTE(lined, j, maxval - minval);
leptonica/src/arrayaccess.h:199:75: note: in definition of macro ‘SET_DATA_BYTE’
199 | *(l_uint8 *)((l_uintptr_t)((l_uint8 *)(pdata) + (n)) ^ 3) = (val)
| ^~~
leptonica/src/scale2.c:1003:12: note: ‘minval’ was declared here
1003 | l_int32 minval, maxval, val;
| ^~~~~~
leptonica/src/selgen.c: In function ‘pixGetRunsOnLine’:
leptonica/src/selgen.c:761:5: warning: ‘runlen’ may be used uninitialized [-Wmaybe-uninitialized]
761 | numaAddNumber(numa, runlen); /* append last run */
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~
leptonica/src/selgen.c:709:14: note: ‘runlen’ was declared here
709 | l_int32 i, runlen, preval;
| ^~~~~~
leptonica/src/textops.c: In function ‘splitStringToParagraphs’:
leptonica/src/textops.c:1036:41: warning: ‘allwhite’ may be used uninitialized [-Wmaybe-uninitialized]
1036 | (splitflag == SPLIT_ON_BOTH && (allwhite || leadwhite))) {
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~
leptonica/src/textops.c:1016:21: note: ‘allwhite’ was declared here
1016 | l_int32 nlines, i, allwhite, leadwhite;
| ^~~~~~~~
leptonica/src/textops.c:1036:54: warning: ‘leadwhite’ may be used uninitialized [-Wmaybe-uninitialized]
1036 | (splitflag == SPLIT_ON_BOTH && (allwhite || leadwhite))) {
| ~~~~~~~~~~^~~~~~~~~~~~~
leptonica/src/textops.c:1016:31: note: ‘leadwhite’ was declared here
1016 | l_int32 nlines, i, allwhite, leadwhite;
| ^~~~~~~~~
leptonica/src/utils2.c: In function ‘callSystemDebug’:
leptonica/src/utils2.c:2673:10: warning: variable ‘ret’ set but not used [-Wunused-but-set-variable]
2673 | l_int32 ret;
| ^~~
cc1plus: warning: command-line option ‘-Wstrict-prototypes’ is valid for C/ObjC but not for C++
cc1plus: warning: command-line option ‘-Wmissing-prototypes’ is valid for C/ObjC but not for C++
cc1plus: warning: ‘-Werror=’ argument ‘-Werror=declaration-after-statement’ is not valid for C++
cc1plus: warning: command-line option ‘-Wstrict-prototypes’ is valid for C/ObjC but not for C++
cc1plus: warning: command-line option ‘-Wmissing-prototypes’ is valid for C/ObjC but not for C++
cc1plus: warning: ‘-Werror=’ argument ‘-Werror=declaration-after-statement’ is not valid for C++
cc1plus: warning: command-line option ‘-Wstrict-prototypes’ is valid for C/ObjC but not for C++
cc1plus: warning: command-line option ‘-Wmissing-prototypes’ is valid for C/ObjC but not for C++
cc1plus: warning: ‘-Werror=’ argument ‘-Werror=declaration-after-statement’ is not valid for C++
cc1plus: warning: command-line option ‘-Wstrict-prototypes’ is valid for C/ObjC but not for C++
cc1plus: warning: command-line option ‘-Wmissing-prototypes’ is valid for C/ObjC but not for C++
cc1plus: warning: ‘-Werror=’ argument ‘-Werror=declaration-after-statement’ is not valid for C++
cc1plus: warning: command-line option ‘-Wstrict-prototypes’ is valid for C/ObjC but not for C++
cc1plus: warning: command-line option ‘-Wmissing-prototypes’ is valid for C/ObjC but not for C++
cc1plus: warning: ‘-Werror=’ argument ‘-Werror=declaration-after-statement’ is not valid for C++
cc1plus: warning: command-line option ‘-Wstrict-prototypes’ is valid for C/ObjC but not for C++
cc1plus: warning: command-line option ‘-Wmissing-prototypes’ is valid for C/ObjC but not for C++
cc1plus: warning: ‘-Werror=’ argument ‘-Werror=declaration-after-statement’ is not valid for C++
tesseract/src/api/pagerenderer.cpp:100:6: warning: no previous declaration for ‘Pta* tesseract::TransposePolygonline(Pta*)’ [-Wmissing-declarations]
100 | Pta *TransposePolygonline(Pta *pts) {
| ^~~~~~~~~~~~~~~~~~~~
tesseract/src/api/pagerenderer.cpp:111:6: warning: no previous declaration for ‘Pta* tesseract::ReversePolygonline(Pta*, int)’ [-Wmissing-declarations]
111 | Pta *ReversePolygonline(Pta *pts, int type) {
| ^~~~~~~~~~~~~~~~~~
tesseract/src/api/pagerenderer.cpp:122:6: warning: no previous declaration for ‘Pta* tesseract::DestroyAndCreatePta(Pta*)’ [-Wmissing-declarations]
122 | Pta *DestroyAndCreatePta(Pta *pts) {
| ^~~~~~~~~~~~~~~~~~~
tesseract/src/api/pagerenderer.cpp:131:6: warning: no previous declaration for ‘Pta* tesseract::RecalcPolygonline(Pta*, bool)’ [-Wmissing-declarations]
131 | Pta *RecalcPolygonline(Pta *pts, bool upper) {
| ^~~~~~~~~~~~~~~~~
tesseract/src/api/pagerenderer.cpp:198:6: warning: no previous declaration for ‘Pta* tesseract::PolygonToBoxCoords(Pta*)’ [-Wmissing-declarations]
198 | Pta *PolygonToBoxCoords(Pta *pts) {
| ^~~~~~~~~~~~~~~~~~
tesseract/src/api/pagerenderer.cpp:385:6: warning: no previous declaration for ‘Pta* tesseract::SortBaseline(Pta*, WritingDirection)’ [-Wmissing-declarations]
385 | Pta *SortBaseline(Pta *baseline_pts,
| ^~~~~~~~~~~~
tesseract/src/api/pagerenderer.cpp:414:6: warning: no previous declaration for ‘Pta* tesseract::ClipAndSimplifyBaseline(Pta*, Pta*, WritingDirection)’ [-Wmissing-declarations]
414 | Pta *ClipAndSimplifyBaseline(Pta *bottom_pts, Pta *baseline_pts,
| ^~~~~~~~~~~~~~~~~~~~~~~
tesseract/src/api/pagerenderer.cpp:478:6: warning: no previous declaration for ‘Pta* tesseract::FitBaselineIntoLinePolygon(Pta*, Pta*, WritingDirection)’ [-Wmissing-declarations]
478 | Pta *FitBaselineIntoLinePolygon(Pta *bottom_pts, Pta *baseline_pts,
| ^~~~~~~~~~~~~~~~~~~~~~~~~~
tesseract/src/api/pagerenderer.cpp:601:13: warning: no previous declaration for ‘const char* tesseract::WritingDirectionToStr(int)’ [-Wmissing-declarations]
601 | const char *WritingDirectionToStr(int wd) {
| ^~~~~~~~~~~~~~~~~~~~~
cc1plus: warning: command-line option ‘-Wstrict-prototypes’ is valid for C/ObjC but not for C++
cc1plus: warning: command-line option ‘-Wmissing-prototypes’ is valid for C/ObjC but not for C++
cc1plus: warning: ‘-Werror=’ argument ‘-Werror=declaration-after-statement’ is not valid for C++
tesseract/src/api/baseapi.cpp: In member function ‘int tesseract::TessBaseAPI::Init(const char*, int, const char*, tesseract::OcrEngineMode, char**, int, const std::vector >*, const std::vector >*, bool, tesseract::FileReader)’:
tesseract/src/api/baseapi.cpp:329:8: warning: variable ‘reset_classifier’ set but not used [-Wunused-but-set-variable]
329 | bool reset_classifier = true;
| ^~~~~~~~~~~~~~~~
cc1plus: warning: command-line option ‘-Wstrict-prototypes’ is valid for C/ObjC but not for C++
cc1plus: warning: command-line option ‘-Wmissing-prototypes’ is valid for C/ObjC but not for C++
cc1plus: warning: ‘-Werror=’ argument ‘-Werror=declaration-after-statement’ is not valid for C++
cc1plus: warning: command-line option ‘-Wstrict-prototypes’ is valid for C/ObjC but not for C++
cc1plus: warning: command-line option ‘-Wmissing-prototypes’ is valid for C/ObjC but not for C++
cc1plus: warning: ‘-Werror=’ argument ‘-Werror=declaration-after-statement’ is not valid for C++
cc1plus: warning: command-line option ‘-Wstrict-prototypes’ is valid for C/ObjC but not for C++
cc1plus: warning: command-line option ‘-Wmissing-prototypes’ is valid for C/ObjC but not for C++
cc1plus: warning: ‘-Werror=’ argument ‘-Werror=declaration-after-statement’ is not valid for C++
cc1plus: warning: command-line option ‘-Wstrict-prototypes’ is valid for C/ObjC but not for C++
cc1plus: warning: command-line option ‘-Wmissing-prototypes’ is valid for C/ObjC but not for C++
cc1plus: warning: ‘-Werror=’ argument ‘-Werror=declaration-after-statement’ is not valid for C++
cc1plus: warning: command-line option ‘-Wstrict-prototypes’ is valid for C/ObjC but not for C++
cc1plus: warning: command-line option ‘-Wmissing-prototypes’ is valid for C/ObjC but not for C++
cc1plus: warning: ‘-Werror=’ argument ‘-Werror=declaration-after-statement’ is not valid for C++
cc1plus: warning: command-line option ‘-Wstrict-prototypes’ is valid for C/ObjC but not for C++
cc1plus: warning: command-line option ‘-Wmissing-prototypes’ is valid for C/ObjC but not for C++
cc1plus: warning: ‘-Werror=’ argument ‘-Werror=declaration-after-statement’ is not valid for C++
cc1plus: warning: command-line option ‘-Wstrict-prototypes’ is valid for C/ObjC but not for C++
cc1plus: warning: command-line option ‘-Wmissing-prototypes’ is valid for C/ObjC but not for C++
cc1plus: warning: ‘-Werror=’ argument ‘-Werror=declaration-after-statement’ is not valid for C++
cc1plus: warning: command-line option ‘-Wstrict-prototypes’ is valid for C/ObjC but not for C++
cc1plus: warning: command-line option ‘-Wmissing-prototypes’ is valid for C/ObjC but not for C++
cc1plus: warning: ‘-Werror=’ argument ‘-Werror=declaration-after-statement’ is not valid for C++
cc1plus: warning: command-line option ‘-Wstrict-prototypes’ is valid for C/ObjC but not for C++
cc1plus: warning: command-line option ‘-Wmissing-prototypes’ is valid for C/ObjC but not for C++
cc1plus: warning: ‘-Werror=’ argument ‘-Werror=declaration-after-statement’ is not valid for C++
cc1plus: warning: command-line option ‘-Wstrict-prototypes’ is valid for C/ObjC but not for C++
cc1plus: warning: command-line option ‘-Wmissing-prototypes’ is valid for C/ObjC but not for C++
cc1plus: warning: ‘-Werror=’ argument ‘-Werror=declaration-after-statement’ is not valid for C++
cc1plus: warning: command-line option ‘-Wstrict-prototypes’ is valid for C/ObjC but not for C++
cc1plus: warning: command-line option ‘-Wmissing-prototypes’ is valid for C/ObjC but not for C++
cc1plus: warning: ‘-Werror=’ argument ‘-Werror=declaration-after-statement’ is not valid for C++
cc1plus: warning: command-line option ‘-Wstrict-prototypes’ is valid for C/ObjC but not for C++
cc1plus: warning: command-line option ‘-Wmissing-prototypes’ is valid for C/ObjC but not for C++
cc1plus: warning: ‘-Werror=’ argument ‘-Werror=declaration-after-statement’ is not valid for C++
cc1plus: warning: command-line option ‘-Wstrict-prototypes’ is valid for C/ObjC but not for C++
cc1plus: warning: command-line option ‘-Wmissing-prototypes’ is valid for C/ObjC but not for C++
cc1plus: warning: ‘-Werror=’ argument ‘-Werror=declaration-after-statement’ is not valid for C++
cc1plus: warning: command-line option ‘-Wstrict-prototypes’ is valid for C/ObjC but not for C++
cc1plus: warning: command-line option ‘-Wmissing-prototypes’ is valid for C/ObjC but not for C++
cc1plus: warning: ‘-Werror=’ argument ‘-Werror=declaration-after-statement’ is not valid for C++
cc1plus: warning: command-line option ‘-Wstrict-prototypes’ is valid for C/ObjC but not for C++
cc1plus: warning: command-line option ‘-Wmissing-prototypes’ is valid for C/ObjC but not for C++
cc1plus: warning: ‘-Werror=’ argument ‘-Werror=declaration-after-statement’ is not valid for C++
cc1plus: warning: command-line option ‘-Wstrict-prototypes’ is valid for C/ObjC but not for C++
cc1plus: warning: command-line option ‘-Wmissing-prototypes’ is valid for C/ObjC but not for C++
cc1plus: warning: ‘-Werror=’ argument ‘-Werror=declaration-after-statement’ is not valid for C++
cc1plus: warning: command-line option ‘-Wstrict-prototypes’ is valid for C/ObjC but not for C++
cc1plus: warning: command-line option ‘-Wmissing-prototypes’ is valid for C/ObjC but not for C++
cc1plus: warning: ‘-Werror=’ argument ‘-Werror=declaration-after-statement’ is not valid for C++
tesseract/src/ccmain/pagesegmain.cpp:249:13: warning: ‘void tesseract::AddAllScriptsConverted(const UNICHARSET&, const UNICHARSET&, std::vector*)’ defined but not used [-Wunused-function]
249 | static void AddAllScriptsConverted(const UNICHARSET &sid_set, const UNICHARSET &osd_set,
| ^~~~~~~~~~~~~~~~~~~~~~
cc1plus: warning: command-line option ‘-Wstrict-prototypes’ is valid for C/ObjC but not for C++
cc1plus: warning: command-line option ‘-Wmissing-prototypes’ is valid for C/ObjC but not for C++
cc1plus: warning: ‘-Werror=’ argument ‘-Werror=declaration-after-statement’ is not valid for C++
cc1plus: warning: command-line option ‘-Wstrict-prototypes’ is valid for C/ObjC but not for C++
cc1plus: warning: command-line option ‘-Wmissing-prototypes’ is valid for C/ObjC but not for C++
cc1plus: warning: ‘-Werror=’ argument ‘-Werror=declaration-after-statement’ is not valid for C++
cc1plus: warning: command-line option ‘-Wstrict-prototypes’ is valid for C/ObjC but not for C++
cc1plus: warning: command-line option ‘-Wmissing-prototypes’ is valid for C/ObjC but not for C++
cc1plus: warning: ‘-Werror=’ argument ‘-Werror=declaration-after-statement’ is not valid for C++
cc1plus: warning: command-line option ‘-Wstrict-prototypes’ is valid for C/ObjC but not for C++
cc1plus: warning: command-line option ‘-Wmissing-prototypes’ is valid for C/ObjC but not for C++
cc1plus: warning: ‘-Werror=’ argument ‘-Werror=declaration-after-statement’ is not valid for C++
cc1plus: warning: command-line option ‘-Wstrict-prototypes’ is valid for C/ObjC but not for C++
cc1plus: warning: command-line option ‘-Wmissing-prototypes’ is valid for C/ObjC but not for C++
cc1plus: warning: ‘-Werror=’ argument ‘-Werror=declaration-after-statement’ is not valid for C++
cc1plus: warning: command-line option ‘-Wstrict-prototypes’ is valid for C/ObjC but not for C++
cc1plus: warning: command-line option ‘-Wmissing-prototypes’ is valid for C/ObjC but not for C++
cc1plus: warning: ‘-Werror=’ argument ‘-Werror=declaration-after-statement’ is not valid for C++
cc1plus: warning: command-line option ‘-Wstrict-prototypes’ is valid for C/ObjC but not for C++
cc1plus: warning: command-line option ‘-Wmissing-prototypes’ is valid for C/ObjC but not for C++
cc1plus: warning: ‘-Werror=’ argument ‘-Werror=declaration-after-statement’ is not valid for C++
cc1plus: warning: command-line option ‘-Wstrict-prototypes’ is valid for C/ObjC but not for C++
cc1plus: warning: command-line option ‘-Wmissing-prototypes’ is valid for C/ObjC but not for C++
cc1plus: warning: ‘-Werror=’ argument ‘-Werror=declaration-after-statement’ is not valid for C++
cc1plus: warning: command-line option ‘-Wstrict-prototypes’ is valid for C/ObjC but not for C++
cc1plus: warning: command-line option ‘-Wmissing-prototypes’ is valid for C/ObjC but not for C++
cc1plus: warning: ‘-Werror=’ argument ‘-Werror=declaration-after-statement’ is not valid for C++
cc1plus: warning: command-line option ‘-Wstrict-prototypes’ is valid for C/ObjC but not for C++
cc1plus: warning: command-line option ‘-Wmissing-prototypes’ is valid for C/ObjC but not for C++
cc1plus: warning: ‘-Werror=’ argument ‘-Werror=declaration-after-statement’ is not valid for C++
cc1plus: warning: command-line option ‘-Wstrict-prototypes’ is valid for C/ObjC but not for C++
cc1plus: warning: command-line option ‘-Wmissing-prototypes’ is valid for C/ObjC but not for C++
cc1plus: warning: ‘-Werror=’ argument ‘-Werror=declaration-after-statement’ is not valid for C++
cc1plus: warning: command-line option ‘-Wstrict-prototypes’ is valid for C/ObjC but not for C++
cc1plus: warning: command-line option ‘-Wmissing-prototypes’ is valid for C/ObjC but not for C++
cc1plus: warning: ‘-Werror=’ argument ‘-Werror=declaration-after-statement’ is not valid for C++
cc1plus: warning: command-line option ‘-Wstrict-prototypes’ is valid for C/ObjC but not for C++
cc1plus: warning: command-line option ‘-Wmissing-prototypes’ is valid for C/ObjC but not for C++
cc1plus: warning: ‘-Werror=’ argument ‘-Werror=declaration-after-statement’ is not valid for C++
cc1plus: warning: command-line option ‘-Wstrict-prototypes’ is valid for C/ObjC but not for C++
cc1plus: warning: command-line option ‘-Wmissing-prototypes’ is valid for C/ObjC but not for C++
cc1plus: warning: ‘-Werror=’ argument ‘-Werror=declaration-after-statement’ is not valid for C++
cc1plus: warning: command-line option ‘-Wstrict-prototypes’ is valid for C/ObjC but not for C++
cc1plus: warning: command-line option ‘-Wmissing-prototypes’ is valid for C/ObjC but not for C++
cc1plus: warning: ‘-Werror=’ argument ‘-Werror=declaration-after-statement’ is not valid for C++
cc1plus: warning: command-line option ‘-Wstrict-prototypes’ is valid for C/ObjC but not for C++
cc1plus: warning: command-line option ‘-Wmissing-prototypes’ is valid for C/ObjC but not for C++
cc1plus: warning: ‘-Werror=’ argument ‘-Werror=declaration-after-statement’ is not valid for C++
cc1plus: warning: command-line option ‘-Wstrict-prototypes’ is valid for C/ObjC but not for C++
cc1plus: warning: command-line option ‘-Wmissing-prototypes’ is valid for C/ObjC but not for C++
cc1plus: warning: ‘-Werror=’ argument ‘-Werror=declaration-after-statement’ is not valid for C++
cc1plus: warning: command-line option ‘-Wstrict-prototypes’ is valid for C/ObjC but not for C++
cc1plus: warning: command-line option ‘-Wmissing-prototypes’ is valid for C/ObjC but not for C++
cc1plus: warning: ‘-Werror=’ argument ‘-Werror=declaration-after-statement’ is not valid for C++
cc1plus: warning: command-line option ‘-Wstrict-prototypes’ is valid for C/ObjC but not for C++
cc1plus: warning: command-line option ‘-Wmissing-prototypes’ is valid for C/ObjC but not for C++
cc1plus: warning: ‘-Werror=’ argument ‘-Werror=declaration-after-statement’ is not valid for C++
cc1plus: warning: command-line option ‘-Wstrict-prototypes’ is valid for C/ObjC but not for C++
cc1plus: warning: command-line option ‘-Wmissing-prototypes’ is valid for C/ObjC but not for C++
cc1plus: warning: ‘-Werror=’ argument ‘-Werror=declaration-after-statement’ is not valid for C++
cc1plus: warning: command-line option ‘-Wstrict-prototypes’ is valid for C/ObjC but not for C++
cc1plus: warning: command-line option ‘-Wmissing-prototypes’ is valid for C/ObjC but not for C++
cc1plus: warning: ‘-Werror=’ argument ‘-Werror=declaration-after-statement’ is not valid for C++
cc1plus: warning: command-line option ‘-Wstrict-prototypes’ is valid for C/ObjC but not for C++
cc1plus: warning: command-line option ‘-Wmissing-prototypes’ is valid for C/ObjC but not for C++
cc1plus: warning: ‘-Werror=’ argument ‘-Werror=declaration-after-statement’ is not valid for C++
cc1plus: warning: command-line option ‘-Wstrict-prototypes’ is valid for C/ObjC but not for C++
cc1plus: warning: command-line option ‘-Wmissing-prototypes’ is valid for C/ObjC but not for C++
cc1plus: warning: ‘-Werror=’ argument ‘-Werror=declaration-after-statement’ is not valid for C++
cc1plus: warning: command-line option ‘-Wstrict-prototypes’ is valid for C/ObjC but not for C++
cc1plus: warning: command-line option ‘-Wmissing-prototypes’ is valid for C/ObjC but not for C++
cc1plus: warning: ‘-Werror=’ argument ‘-Werror=declaration-after-statement’ is not valid for C++
cc1plus: warning: command-line option ‘-Wstrict-prototypes’ is valid for C/ObjC but not for C++
cc1plus: warning: command-line option ‘-Wmissing-prototypes’ is valid for C/ObjC but not for C++
cc1plus: warning: ‘-Werror=’ argument ‘-Werror=declaration-after-statement’ is not valid for C++
cc1plus: warning: command-line option ‘-Wstrict-prototypes’ is valid for C/ObjC but not for C++
cc1plus: warning: command-line option ‘-Wmissing-prototypes’ is valid for C/ObjC but not for C++
cc1plus: warning: ‘-Werror=’ argument ‘-Werror=declaration-after-statement’ is not valid for C++
cc1plus: warning: command-line option ‘-Wstrict-prototypes’ is valid for C/ObjC but not for C++
cc1plus: warning: command-line option ‘-Wmissing-prototypes’ is valid for C/ObjC but not for C++
cc1plus: warning: ‘-Werror=’ argument ‘-Werror=declaration-after-statement’ is not valid for C++
cc1plus: warning: command-line option ‘-Wstrict-prototypes’ is valid for C/ObjC but not for C++
cc1plus: warning: command-line option ‘-Wmissing-prototypes’ is valid for C/ObjC but not for C++
cc1plus: warning: ‘-Werror=’ argument ‘-Werror=declaration-after-statement’ is not valid for C++
cc1plus: warning: command-line option ‘-Wstrict-prototypes’ is valid for C/ObjC but not for C++
cc1plus: warning: command-line option ‘-Wmissing-prototypes’ is valid for C/ObjC but not for C++
cc1plus: warning: ‘-Werror=’ argument ‘-Werror=declaration-after-statement’ is not valid for C++
cc1plus: warning: command-line option ‘-Wstrict-prototypes’ is valid for C/ObjC but not for C++
cc1plus: warning: command-line option ‘-Wmissing-prototypes’ is valid for C/ObjC but not for C++
cc1plus: warning: ‘-Werror=’ argument ‘-Werror=declaration-after-statement’ is not valid for C++
cc1plus: warning: command-line option ‘-Wstrict-prototypes’ is valid for C/ObjC but not for C++
cc1plus: warning: command-line option ‘-Wmissing-prototypes’ is valid for C/ObjC but not for C++
cc1plus: warning: ‘-Werror=’ argument ‘-Werror=declaration-after-statement’ is not valid for C++
cc1plus: warning: command-line option ‘-Wstrict-prototypes’ is valid for C/ObjC but not for C++
cc1plus: warning: command-line option ‘-Wmissing-prototypes’ is valid for C/ObjC but not for C++
cc1plus: warning: ‘-Werror=’ argument ‘-Werror=declaration-after-statement’ is not valid for C++
cc1plus: warning: command-line option ‘-Wstrict-prototypes’ is valid for C/ObjC but not for C++
cc1plus: warning: command-line option ‘-Wmissing-prototypes’ is valid for C/ObjC but not for C++
cc1plus: warning: ‘-Werror=’ argument ‘-Werror=declaration-after-statement’ is not valid for C++
cc1plus: warning: command-line option ‘-Wstrict-prototypes’ is valid for C/ObjC but not for C++
cc1plus: warning: command-line option ‘-Wmissing-prototypes’ is valid for C/ObjC but not for C++
cc1plus: warning: ‘-Werror=’ argument ‘-Werror=declaration-after-statement’ is not valid for C++
cc1plus: warning: command-line option ‘-Wstrict-prototypes’ is valid for C/ObjC but not for C++
cc1plus: warning: command-line option ‘-Wmissing-prototypes’ is valid for C/ObjC but not for C++
cc1plus: warning: ‘-Werror=’ argument ‘-Werror=declaration-after-statement’ is not valid for C++
cc1plus: warning: command-line option ‘-Wstrict-prototypes’ is valid for C/ObjC but not for C++
cc1plus: warning: command-line option ‘-Wmissing-prototypes’ is valid for C/ObjC but not for C++
cc1plus: warning: ‘-Werror=’ argument ‘-Werror=declaration-after-statement’ is not valid for C++
cc1plus: warning: command-line option ‘-Wstrict-prototypes’ is valid for C/ObjC but not for C++
cc1plus: warning: command-line option ‘-Wmissing-prototypes’ is valid for C/ObjC but not for C++
cc1plus: warning: ‘-Werror=’ argument ‘-Werror=declaration-after-statement’ is not valid for C++
cc1plus: warning: command-line option ‘-Wstrict-prototypes’ is valid for C/ObjC but not for C++
cc1plus: warning: command-line option ‘-Wmissing-prototypes’ is valid for C/ObjC but not for C++
cc1plus: warning: ‘-Werror=’ argument ‘-Werror=declaration-after-statement’ is not valid for C++
cc1plus: warning: command-line option ‘-Wstrict-prototypes’ is valid for C/ObjC but not for C++
cc1plus: warning: command-line option ‘-Wmissing-prototypes’ is valid for C/ObjC but not for C++
cc1plus: warning: ‘-Werror=’ argument ‘-Werror=declaration-after-statement’ is not valid for C++
cc1plus: warning: command-line option ‘-Wstrict-prototypes’ is valid for C/ObjC but not for C++
cc1plus: warning: command-line option ‘-Wmissing-prototypes’ is valid for C/ObjC but not for C++
cc1plus: warning: ‘-Werror=’ argument ‘-Werror=declaration-after-statement’ is not valid for C++
cc1plus: warning: command-line option ‘-Wstrict-prototypes’ is valid for C/ObjC but not for C++
cc1plus: warning: command-line option ‘-Wmissing-prototypes’ is valid for C/ObjC but not for C++
cc1plus: warning: ‘-Werror=’ argument ‘-Werror=declaration-after-statement’ is not valid for C++
cc1plus: warning: command-line option ‘-Wstrict-prototypes’ is valid for C/ObjC but not for C++
cc1plus: warning: command-line option ‘-Wmissing-prototypes’ is valid for C/ObjC but not for C++
cc1plus: warning: ‘-Werror=’ argument ‘-Werror=declaration-after-statement’ is not valid for C++
cc1plus: warning: command-line option ‘-Wstrict-prototypes’ is valid for C/ObjC but not for C++
cc1plus: warning: command-line option ‘-Wmissing-prototypes’ is valid for C/ObjC but not for C++
cc1plus: warning: ‘-Werror=’ argument ‘-Werror=declaration-after-statement’ is not valid for C++
cc1plus: warning: command-line option ‘-Wstrict-prototypes’ is valid for C/ObjC but not for C++
cc1plus: warning: command-line option ‘-Wmissing-prototypes’ is valid for C/ObjC but not for C++
cc1plus: warning: ‘-Werror=’ argument ‘-Werror=declaration-after-statement’ is not valid for C++
cc1plus: warning: command-line option ‘-Wstrict-prototypes’ is valid for C/ObjC but not for C++
cc1plus: warning: command-line option ‘-Wmissing-prototypes’ is valid for C/ObjC but not for C++
cc1plus: warning: ‘-Werror=’ argument ‘-Werror=declaration-after-statement’ is not valid for C++
cc1plus: warning: command-line option ‘-Wstrict-prototypes’ is valid for C/ObjC but not for C++
cc1plus: warning: command-line option ‘-Wmissing-prototypes’ is valid for C/ObjC but not for C++
cc1plus: warning: ‘-Werror=’ argument ‘-Werror=declaration-after-statement’ is not valid for C++
cc1plus: warning: command-line option ‘-Wstrict-prototypes’ is valid for C/ObjC but not for C++
cc1plus: warning: command-line option ‘-Wmissing-prototypes’ is valid for C/ObjC but not for C++
cc1plus: warning: ‘-Werror=’ argument ‘-Werror=declaration-after-statement’ is not valid for C++
cc1plus: warning: command-line option ‘-Wstrict-prototypes’ is valid for C/ObjC but not for C++
cc1plus: warning: command-line option ‘-Wmissing-prototypes’ is valid for C/ObjC but not for C++
cc1plus: warning: ‘-Werror=’ argument ‘-Werror=declaration-after-statement’ is not valid for C++
cc1plus: warning: command-line option ‘-Wstrict-prototypes’ is valid for C/ObjC but not for C++
cc1plus: warning: command-line option ‘-Wmissing-prototypes’ is valid for C/ObjC but not for C++
cc1plus: warning: ‘-Werror=’ argument ‘-Werror=declaration-after-statement’ is not valid for C++
cc1plus: warning: command-line option ‘-Wstrict-prototypes’ is valid for C/ObjC but not for C++
cc1plus: warning: command-line option ‘-Wmissing-prototypes’ is valid for C/ObjC but not for C++
cc1plus: warning: ‘-Werror=’ argument ‘-Werror=declaration-after-statement’ is not valid for C++
cc1plus: warning: command-line option ‘-Wstrict-prototypes’ is valid for C/ObjC but not for C++
cc1plus: warning: command-line option ‘-Wmissing-prototypes’ is valid for C/ObjC but not for C++
cc1plus: warning: ‘-Werror=’ argument ‘-Werror=declaration-after-statement’ is not valid for C++
cc1plus: warning: command-line option ‘-Wstrict-prototypes’ is valid for C/ObjC but not for C++
cc1plus: warning: command-line option ‘-Wmissing-prototypes’ is valid for C/ObjC but not for C++
cc1plus: warning: ‘-Werror=’ argument ‘-Werror=declaration-after-statement’ is not valid for C++
tesseract/src/textord/bbgrid.cpp:250:7: warning: no previous declaration for ‘tesseract::Image tesseract::TraceBlockOnReducedPix(BLOCK*, int, ICOORD, int*, int*)’ [-Wmissing-declarations]
250 | Image TraceBlockOnReducedPix(BLOCK *block, int gridsize, ICOORD bleft, int *left, int *bottom) {
| ^~~~~~~~~~~~~~~~~~~~~~
cc1plus: warning: command-line option ‘-Wstrict-prototypes’ is valid for C/ObjC but not for C++
cc1plus: warning: command-line option ‘-Wmissing-prototypes’ is valid for C/ObjC but not for C++
cc1plus: warning: ‘-Werror=’ argument ‘-Werror=declaration-after-statement’ is not valid for C++
cc1plus: warning: command-line option ‘-Wstrict-prototypes’ is valid for C/ObjC but not for C++
cc1plus: warning: command-line option ‘-Wmissing-prototypes’ is valid for C/ObjC but not for C++
cc1plus: warning: ‘-Werror=’ argument ‘-Werror=declaration-after-statement’ is not valid for C++
cc1plus: warning: command-line option ‘-Wstrict-prototypes’ is valid for C/ObjC but not for C++
cc1plus: warning: command-line option ‘-Wmissing-prototypes’ is valid for C/ObjC but not for C++
cc1plus: warning: ‘-Werror=’ argument ‘-Werror=declaration-after-statement’ is not valid for C++
cc1plus: warning: command-line option ‘-Wstrict-prototypes’ is valid for C/ObjC but not for C++
cc1plus: warning: command-line option ‘-Wmissing-prototypes’ is valid for C/ObjC but not for C++
cc1plus: warning: ‘-Werror=’ argument ‘-Werror=declaration-after-statement’ is not valid for C++
cc1plus: warning: command-line option ‘-Wstrict-prototypes’ is valid for C/ObjC but not for C++
cc1plus: warning: command-line option ‘-Wmissing-prototypes’ is valid for C/ObjC but not for C++
cc1plus: warning: ‘-Werror=’ argument ‘-Werror=declaration-after-statement’ is not valid for C++
cc1plus: warning: command-line option ‘-Wstrict-prototypes’ is valid for C/ObjC but not for C++
cc1plus: warning: command-line option ‘-Wmissing-prototypes’ is valid for C/ObjC but not for C++
cc1plus: warning: ‘-Werror=’ argument ‘-Werror=declaration-after-statement’ is not valid for C++
cc1plus: warning: command-line option ‘-Wstrict-prototypes’ is valid for C/ObjC but not for C++
cc1plus: warning: command-line option ‘-Wmissing-prototypes’ is valid for C/ObjC but not for C++
cc1plus: warning: ‘-Werror=’ argument ‘-Werror=declaration-after-statement’ is not valid for C++
cc1plus: warning: command-line option ‘-Wstrict-prototypes’ is valid for C/ObjC but not for C++
cc1plus: warning: command-line option ‘-Wmissing-prototypes’ is valid for C/ObjC but not for C++
cc1plus: warning: ‘-Werror=’ argument ‘-Werror=declaration-after-statement’ is not valid for C++
cc1plus: warning: command-line option ‘-Wstrict-prototypes’ is valid for C/ObjC but not for C++
cc1plus: warning: command-line option ‘-Wmissing-prototypes’ is valid for C/ObjC but not for C++
cc1plus: warning: ‘-Werror=’ argument ‘-Werror=declaration-after-statement’ is not valid for C++
cc1plus: warning: command-line option ‘-Wstrict-prototypes’ is valid for C/ObjC but not for C++
cc1plus: warning: command-line option ‘-Wmissing-prototypes’ is valid for C/ObjC but not for C++
cc1plus: warning: ‘-Werror=’ argument ‘-Werror=declaration-after-statement’ is not valid for C++
cc1plus: warning: command-line option ‘-Wstrict-prototypes’ is valid for C/ObjC but not for C++
cc1plus: warning: command-line option ‘-Wmissing-prototypes’ is valid for C/ObjC but not for C++
cc1plus: warning: ‘-Werror=’ argument ‘-Werror=declaration-after-statement’ is not valid for C++
cc1plus: warning: command-line option ‘-Wstrict-prototypes’ is valid for C/ObjC but not for C++
cc1plus: warning: command-line option ‘-Wmissing-prototypes’ is valid for C/ObjC but not for C++
cc1plus: warning: ‘-Werror=’ argument ‘-Werror=declaration-after-statement’ is not valid for C++
cc1plus: warning: command-line option ‘-Wstrict-prototypes’ is valid for C/ObjC but not for C++
cc1plus: warning: command-line option ‘-Wmissing-prototypes’ is valid for C/ObjC but not for C++
cc1plus: warning: ‘-Werror=’ argument ‘-Werror=declaration-after-statement’ is not valid for C++
cc1plus: warning: command-line option ‘-Wstrict-prototypes’ is valid for C/ObjC but not for C++
cc1plus: warning: command-line option ‘-Wmissing-prototypes’ is valid for C/ObjC but not for C++
cc1plus: warning: ‘-Werror=’ argument ‘-Werror=declaration-after-statement’ is not valid for C++
cc1plus: warning: command-line option ‘-Wstrict-prototypes’ is valid for C/ObjC but not for C++
cc1plus: warning: command-line option ‘-Wmissing-prototypes’ is valid for C/ObjC but not for C++
cc1plus: warning: ‘-Werror=’ argument ‘-Werror=declaration-after-statement’ is not valid for C++
cc1plus: warning: command-line option ‘-Wstrict-prototypes’ is valid for C/ObjC but not for C++
cc1plus: warning: command-line option ‘-Wmissing-prototypes’ is valid for C/ObjC but not for C++
cc1plus: warning: ‘-Werror=’ argument ‘-Werror=declaration-after-statement’ is not valid for C++
cc1plus: warning: command-line option ‘-Wstrict-prototypes’ is valid for C/ObjC but not for C++
cc1plus: warning: command-line option ‘-Wmissing-prototypes’ is valid for C/ObjC but not for C++
cc1plus: warning: ‘-Werror=’ argument ‘-Werror=declaration-after-statement’ is not valid for C++
cc1plus: warning: command-line option ‘-Wstrict-prototypes’ is valid for C/ObjC but not for C++
cc1plus: warning: command-line option ‘-Wmissing-prototypes’ is valid for C/ObjC but not for C++
cc1plus: warning: ‘-Werror=’ argument ‘-Werror=declaration-after-statement’ is not valid for C++
cc1plus: warning: command-line option ‘-Wstrict-prototypes’ is valid for C/ObjC but not for C++
cc1plus: warning: command-line option ‘-Wmissing-prototypes’ is valid for C/ObjC but not for C++
cc1plus: warning: ‘-Werror=’ argument ‘-Werror=declaration-after-statement’ is not valid for C++
cc1plus: warning: command-line option ‘-Wstrict-prototypes’ is valid for C/ObjC but not for C++
cc1plus: warning: command-line option ‘-Wmissing-prototypes’ is valid for C/ObjC but not for C++
cc1plus: warning: ‘-Werror=’ argument ‘-Werror=declaration-after-statement’ is not valid for C++
cc1plus: warning: command-line option ‘-Wstrict-prototypes’ is valid for C/ObjC but not for C++
cc1plus: warning: command-line option ‘-Wmissing-prototypes’ is valid for C/ObjC but not for C++
cc1plus: warning: ‘-Werror=’ argument ‘-Werror=declaration-after-statement’ is not valid for C++
tesseract/src/textord/makerow.cpp: In function ‘void tesseract::delete_non_dropout_rows(TO_BLOCK*, float, FCOORD, int32_t, bool)’:
tesseract/src/textord/makerow.cpp:625:11: warning: variable ‘xleft’ set but not used [-Wunused-but-set-variable]
625 | int32_t xleft; // of block
| ^~~~~
tesseract/src/textord/makerow.cpp:626:11: warning: variable ‘ybottom’ set but not used [-Wunused-but-set-variable]
626 | int32_t ybottom; // of block
| ^~~~~~~
tesseract/src/textord/makerow.cpp: In function ‘void tesseract::assign_blobs_to_rows(TO_BLOCK*, float*, int, bool, bool, bool)’:
tesseract/src/textord/makerow.cpp:2281:9: warning: variable ‘ycoord’ set but not used [-Wunused-but-set-variable]
2281 | float ycoord; // current y
| ^~~~~~
cc1plus: warning: command-line option ‘-Wstrict-prototypes’ is valid for C/ObjC but not for C++
cc1plus: warning: command-line option ‘-Wmissing-prototypes’ is valid for C/ObjC but not for C++
cc1plus: warning: ‘-Werror=’ argument ‘-Werror=declaration-after-statement’ is not valid for C++
cc1plus: warning: command-line option ‘-Wstrict-prototypes’ is valid for C/ObjC but not for C++
cc1plus: warning: command-line option ‘-Wmissing-prototypes’ is valid for C/ObjC but not for C++
cc1plus: warning: ‘-Werror=’ argument ‘-Werror=declaration-after-statement’ is not valid for C++
cc1plus: warning: command-line option ‘-Wstrict-prototypes’ is valid for C/ObjC but not for C++
cc1plus: warning: command-line option ‘-Wmissing-prototypes’ is valid for C/ObjC but not for C++
cc1plus: warning: ‘-Werror=’ argument ‘-Werror=declaration-after-statement’ is not valid for C++
cc1plus: warning: command-line option ‘-Wstrict-prototypes’ is valid for C/ObjC but not for C++
cc1plus: warning: command-line option ‘-Wmissing-prototypes’ is valid for C/ObjC but not for C++
cc1plus: warning: ‘-Werror=’ argument ‘-Werror=declaration-after-statement’ is not valid for C++
cc1plus: warning: command-line option ‘-Wstrict-prototypes’ is valid for C/ObjC but not for C++
cc1plus: warning: command-line option ‘-Wmissing-prototypes’ is valid for C/ObjC but not for C++
cc1plus: warning: ‘-Werror=’ argument ‘-Werror=declaration-after-statement’ is not valid for C++
cc1plus: warning: command-line option ‘-Wstrict-prototypes’ is valid for C/ObjC but not for C++
cc1plus: warning: command-line option ‘-Wmissing-prototypes’ is valid for C/ObjC but not for C++
cc1plus: warning: ‘-Werror=’ argument ‘-Werror=declaration-after-statement’ is not valid for C++
cc1plus: warning: command-line option ‘-Wstrict-prototypes’ is valid for C/ObjC but not for C++
cc1plus: warning: command-line option ‘-Wmissing-prototypes’ is valid for C/ObjC but not for C++
cc1plus: warning: ‘-Werror=’ argument ‘-Werror=declaration-after-statement’ is not valid for C++
cc1plus: warning: command-line option ‘-Wstrict-prototypes’ is valid for C/ObjC but not for C++
cc1plus: warning: command-line option ‘-Wmissing-prototypes’ is valid for C/ObjC but not for C++
cc1plus: warning: ‘-Werror=’ argument ‘-Werror=declaration-after-statement’ is not valid for C++
cc1plus: warning: command-line option ‘-Wstrict-prototypes’ is valid for C/ObjC but not for C++
cc1plus: warning: command-line option ‘-Wmissing-prototypes’ is valid for C/ObjC but not for C++
cc1plus: warning: ‘-Werror=’ argument ‘-Werror=declaration-after-statement’ is not valid for C++
cc1plus: warning: command-line option ‘-Wstrict-prototypes’ is valid for C/ObjC but not for C++
cc1plus: warning: command-line option ‘-Wmissing-prototypes’ is valid for C/ObjC but not for C++
cc1plus: warning: ‘-Werror=’ argument ‘-Werror=declaration-after-statement’ is not valid for C++
cc1plus: warning: command-line option ‘-Wstrict-prototypes’ is valid for C/ObjC but not for C++
cc1plus: warning: command-line option ‘-Wmissing-prototypes’ is valid for C/ObjC but not for C++
cc1plus: warning: ‘-Werror=’ argument ‘-Werror=declaration-after-statement’ is not valid for C++
cc1plus: warning: command-line option ‘-Wstrict-prototypes’ is valid for C/ObjC but not for C++
cc1plus: warning: command-line option ‘-Wmissing-prototypes’ is valid for C/ObjC but not for C++
cc1plus: warning: ‘-Werror=’ argument ‘-Werror=declaration-after-statement’ is not valid for C++
cc1plus: warning: command-line option ‘-Wstrict-prototypes’ is valid for C/ObjC but not for C++
cc1plus: warning: command-line option ‘-Wmissing-prototypes’ is valid for C/ObjC but not for C++
cc1plus: warning: ‘-Werror=’ argument ‘-Werror=declaration-after-statement’ is not valid for C++
cc1plus: warning: command-line option ‘-Wstrict-prototypes’ is valid for C/ObjC but not for C++
cc1plus: warning: command-line option ‘-Wmissing-prototypes’ is valid for C/ObjC but not for C++
cc1plus: warning: ‘-Werror=’ argument ‘-Werror=declaration-after-statement’ is not valid for C++
cc1plus: warning: command-line option ‘-Wstrict-prototypes’ is valid for C/ObjC but not for C++
cc1plus: warning: command-line option ‘-Wmissing-prototypes’ is valid for C/ObjC but not for C++
cc1plus: warning: ‘-Werror=’ argument ‘-Werror=declaration-after-statement’ is not valid for C++
cc1plus: warning: command-line option ‘-Wstrict-prototypes’ is valid for C/ObjC but not for C++
cc1plus: warning: command-line option ‘-Wmissing-prototypes’ is valid for C/ObjC but not for C++
cc1plus: warning: ‘-Werror=’ argument ‘-Werror=declaration-after-statement’ is not valid for C++
cc1plus: warning: command-line option ‘-Wstrict-prototypes’ is valid for C/ObjC but not for C++
cc1plus: warning: command-line option ‘-Wmissing-prototypes’ is valid for C/ObjC but not for C++
cc1plus: warning: ‘-Werror=’ argument ‘-Werror=declaration-after-statement’ is not valid for C++
cc1plus: warning: command-line option ‘-Wstrict-prototypes’ is valid for C/ObjC but not for C++
cc1plus: warning: command-line option ‘-Wmissing-prototypes’ is valid for C/ObjC but not for C++
cc1plus: warning: ‘-Werror=’ argument ‘-Werror=declaration-after-statement’ is not valid for C++
tesseract/src/viewer/scrollview.cpp:61:20: warning: ‘tesseract::waiting_for_events_mu’ defined but not used [-Wunused-variable]
61 | static std::mutex *waiting_for_events_mu;
| ^~~~~~~~~~~~~~~~~~~~~
tesseract/src/viewer/scrollview.cpp:57:20: warning: ‘tesseract::svmap_mu’ defined but not used [-Wunused-variable]
57 | static std::mutex *svmap_mu;
| ^~~~~~~~
cc1plus: warning: command-line option ‘-Wstrict-prototypes’ is valid for C/ObjC but not for C++
cc1plus: warning: command-line option ‘-Wmissing-prototypes’ is valid for C/ObjC but not for C++
cc1plus: warning: ‘-Werror=’ argument ‘-Werror=declaration-after-statement’ is not valid for C++
cc1plus: warning: command-line option ‘-Wstrict-prototypes’ is valid for C/ObjC but not for C++
cc1plus: warning: command-line option ‘-Wmissing-prototypes’ is valid for C/ObjC but not for C++
cc1plus: warning: ‘-Werror=’ argument ‘-Werror=declaration-after-statement’ is not valid for C++
cc1plus: warning: command-line option ‘-Wstrict-prototypes’ is valid for C/ObjC but not for C++
cc1plus: warning: command-line option ‘-Wmissing-prototypes’ is valid for C/ObjC but not for C++
cc1plus: warning: ‘-Werror=’ argument ‘-Werror=declaration-after-statement’ is not valid for C++
cc1plus: warning: command-line option ‘-Wstrict-prototypes’ is valid for C/ObjC but not for C++
cc1plus: warning: command-line option ‘-Wmissing-prototypes’ is valid for C/ObjC but not for C++
cc1plus: warning: ‘-Werror=’ argument ‘-Werror=declaration-after-statement’ is not valid for C++
cc1plus: warning: command-line option ‘-Wstrict-prototypes’ is valid for C/ObjC but not for C++
cc1plus: warning: command-line option ‘-Wmissing-prototypes’ is valid for C/ObjC but not for C++
cc1plus: warning: ‘-Werror=’ argument ‘-Werror=declaration-after-statement’ is not valid for C++
cc1plus: warning: command-line option ‘-Wstrict-prototypes’ is valid for C/ObjC but not for C++
cc1plus: warning: command-line option ‘-Wmissing-prototypes’ is valid for C/ObjC but not for C++
cc1plus: warning: ‘-Werror=’ argument ‘-Werror=declaration-after-statement’ is not valid for C++
cc1plus: warning: command-line option ‘-Wstrict-prototypes’ is valid for C/ObjC but not for C++
cc1plus: warning: command-line option ‘-Wmissing-prototypes’ is valid for C/ObjC but not for C++
cc1plus: warning: ‘-Werror=’ argument ‘-Werror=declaration-after-statement’ is not valid for C++
cc1plus: warning: command-line option ‘-Wstrict-prototypes’ is valid for C/ObjC but not for C++
cc1plus: warning: command-line option ‘-Wmissing-prototypes’ is valid for C/ObjC but not for C++
cc1plus: warning: ‘-Werror=’ argument ‘-Werror=declaration-after-statement’ is not valid for C++
cc1plus: warning: command-line option ‘-Wstrict-prototypes’ is valid for C/ObjC but not for C++
cc1plus: warning: command-line option ‘-Wmissing-prototypes’ is valid for C/ObjC but not for C++
cc1plus: warning: ‘-Werror=’ argument ‘-Werror=declaration-after-statement’ is not valid for C++
cc1plus: warning: command-line option ‘-Wstrict-prototypes’ is valid for C/ObjC but not for C++
cc1plus: warning: command-line option ‘-Wmissing-prototypes’ is valid for C/ObjC but not for C++
cc1plus: warning: ‘-Werror=’ argument ‘-Werror=declaration-after-statement’ is not valid for C++
cc1plus: warning: command-line option ‘-Wstrict-prototypes’ is valid for C/ObjC but not for C++
cc1plus: warning: command-line option ‘-Wmissing-prototypes’ is valid for C/ObjC but not for C++
cc1plus: warning: ‘-Werror=’ argument ‘-Werror=declaration-after-statement’ is not valid for C++
cc1plus: warning: command-line option ‘-Wstrict-prototypes’ is valid for C/ObjC but not for C++
cc1plus: warning: command-line option ‘-Wmissing-prototypes’ is valid for C/ObjC but not for C++
cc1plus: warning: ‘-Werror=’ argument ‘-Werror=declaration-after-statement’ is not valid for C++
cc1plus: warning: command-line option ‘-Wstrict-prototypes’ is valid for C/ObjC but not for C++
cc1plus: warning: command-line option ‘-Wmissing-prototypes’ is valid for C/ObjC but not for C++
cc1plus: warning: ‘-Werror=’ argument ‘-Werror=declaration-after-statement’ is not valid for C++
cc1plus: warning: command-line option ‘-Wstrict-prototypes’ is valid for C/ObjC but not for C++
cc1plus: warning: command-line option ‘-Wmissing-prototypes’ is valid for C/ObjC but not for C++
cc1plus: warning: ‘-Werror=’ argument ‘-Werror=declaration-after-statement’ is not valid for C++
cc1plus: warning: command-line option ‘-Wstrict-prototypes’ is valid for C/ObjC but not for C++
cc1plus: warning: command-line option ‘-Wmissing-prototypes’ is valid for C/ObjC but not for C++
cc1plus: warning: ‘-Werror=’ argument ‘-Werror=declaration-after-statement’ is not valid for C++
cc1plus: warning: command-line option ‘-Wstrict-prototypes’ is valid for C/ObjC but not for C++
cc1plus: warning: command-line option ‘-Wmissing-prototypes’ is valid for C/ObjC but not for C++
cc1plus: warning: ‘-Werror=’ argument ‘-Werror=declaration-after-statement’ is not valid for C++
cc1plus: warning: command-line option ‘-Wstrict-prototypes’ is valid for C/ObjC but not for C++
cc1plus: warning: command-line option ‘-Wmissing-prototypes’ is valid for C/ObjC but not for C++
cc1plus: warning: ‘-Werror=’ argument ‘-Werror=declaration-after-statement’ is not valid for C++
tesseract/src/ccutil/tessdatamanager.cpp: In member function ‘bool tesseract::TessdataManager::CombineDataFiles(const char*, const char*)’:
tesseract/src/ccutil/tessdatamanager.cpp:262:18: warning: ‘type’ may be used uninitialized [-Wmaybe-uninitialized]
262 | TessdataType type;
| ^~~~
cc1plus: warning: command-line option ‘-Wstrict-prototypes’ is valid for C/ObjC but not for C++
cc1plus: warning: command-line option ‘-Wmissing-prototypes’ is valid for C/ObjC but not for C++
cc1plus: warning: ‘-Werror=’ argument ‘-Werror=declaration-after-statement’ is not valid for C++
cc1plus: warning: command-line option ‘-Wstrict-prototypes’ is valid for C/ObjC but not for C++
cc1plus: warning: command-line option ‘-Wmissing-prototypes’ is valid for C/ObjC but not for C++
cc1plus: warning: ‘-Werror=’ argument ‘-Werror=declaration-after-statement’ is not valid for C++
cc1plus: warning: command-line option ‘-Wstrict-prototypes’ is valid for C/ObjC but not for C++
cc1plus: warning: command-line option ‘-Wmissing-prototypes’ is valid for C/ObjC but not for C++
cc1plus: warning: ‘-Werror=’ argument ‘-Werror=declaration-after-statement’ is not valid for C++
cc1plus: warning: command-line option ‘-Wstrict-prototypes’ is valid for C/ObjC but not for C++
cc1plus: warning: command-line option ‘-Wmissing-prototypes’ is valid for C/ObjC but not for C++
cc1plus: warning: ‘-Werror=’ argument ‘-Werror=declaration-after-statement’ is not valid for C++
In file included from tesseract/src/ccutil/unicharset.cpp:19:
tesseract/src/ccutil/unicharset.h: In static member function ‘static tesseract::CHAR_FRAGMENT* tesseract::CHAR_FRAGMENT::parse_from_string(const char*)’:
tesseract/src/ccutil/unicharset.h:67:12: warning: ‘char* __builtin_strncpy(char*, const char*, long unsigned int)’ output may be truncated copying 30 bytes from a string of length 30 [-Wstringop-truncation]
67 | strncpy(this->unichar, uch, sizeof(this->unichar));
| ^
cc1plus: warning: command-line option ‘-Wstrict-prototypes’ is valid for C/ObjC but not for C++
cc1plus: warning: command-line option ‘-Wmissing-prototypes’ is valid for C/ObjC but not for C++
cc1plus: warning: ‘-Werror=’ argument ‘-Werror=declaration-after-statement’ is not valid for C++
cc1plus: warning: command-line option ‘-Wstrict-prototypes’ is valid for C/ObjC but not for C++
cc1plus: warning: command-line option ‘-Wmissing-prototypes’ is valid for C/ObjC but not for C++
cc1plus: warning: ‘-Werror=’ argument ‘-Werror=declaration-after-statement’ is not valid for C++
cc1plus: warning: command-line option ‘-Wstrict-prototypes’ is valid for C/ObjC but not for C++
cc1plus: warning: command-line option ‘-Wmissing-prototypes’ is valid for C/ObjC but not for C++
cc1plus: warning: ‘-Werror=’ argument ‘-Werror=declaration-after-statement’ is not valid for C++
cc1plus: warning: command-line option ‘-Wstrict-prototypes’ is valid for C/ObjC but not for C++
cc1plus: warning: command-line option ‘-Wmissing-prototypes’ is valid for C/ObjC but not for C++
cc1plus: warning: ‘-Werror=’ argument ‘-Werror=declaration-after-statement’ is not valid for C++
cc1plus: warning: command-line option ‘-Wstrict-prototypes’ is valid for C/ObjC but not for C++
cc1plus: warning: command-line option ‘-Wmissing-prototypes’ is valid for C/ObjC but not for C++
cc1plus: warning: ‘-Werror=’ argument ‘-Werror=declaration-after-statement’ is not valid for C++
cc1plus: warning: command-line option ‘-Wstrict-prototypes’ is valid for C/ObjC but not for C++
cc1plus: warning: command-line option ‘-Wmissing-prototypes’ is valid for C/ObjC but not for C++
cc1plus: warning: ‘-Werror=’ argument ‘-Werror=declaration-after-statement’ is not valid for C++
cc1plus: warning: command-line option ‘-Wstrict-prototypes’ is valid for C/ObjC but not for C++
cc1plus: warning: command-line option ‘-Wmissing-prototypes’ is valid for C/ObjC but not for C++
cc1plus: warning: ‘-Werror=’ argument ‘-Werror=declaration-after-statement’ is not valid for C++
tesseract/src/lstm/parallel.cpp: In member function ‘virtual void tesseract::Parallel::Forward(bool, const tesseract::NetworkIO&, const tesseract::TransposedArray*, tesseract::NetworkScratch*, tesseract::NetworkIO*)’:
tesseract/src/lstm/parallel.cpp:54:8: warning: variable ‘parallel_debug’ set but not used [-Wunused-but-set-variable]
54 | bool parallel_debug = false;
| ^~~~~~~~~~~~~~
cc1plus: warning: command-line option ‘-Wstrict-prototypes’ is valid for C/ObjC but not for C++
cc1plus: warning: command-line option ‘-Wmissing-prototypes’ is valid for C/ObjC but not for C++
cc1plus: warning: ‘-Werror=’ argument ‘-Werror=declaration-after-statement’ is not valid for C++
cc1plus: warning: command-line option ‘-Wstrict-prototypes’ is valid for C/ObjC but not for C++
cc1plus: warning: command-line option ‘-Wmissing-prototypes’ is valid for C/ObjC but not for C++
cc1plus: warning: ‘-Werror=’ argument ‘-Werror=declaration-after-statement’ is not valid for C++
cc1plus: warning: command-line option ‘-Wstrict-prototypes’ is valid for C/ObjC but not for C++
cc1plus: warning: command-line option ‘-Wmissing-prototypes’ is valid for C/ObjC but not for C++
cc1plus: warning: ‘-Werror=’ argument ‘-Werror=declaration-after-statement’ is not valid for C++
cc1plus: warning: command-line option ‘-Wstrict-prototypes’ is valid for C/ObjC but not for C++
cc1plus: warning: command-line option ‘-Wmissing-prototypes’ is valid for C/ObjC but not for C++
cc1plus: warning: ‘-Werror=’ argument ‘-Werror=declaration-after-statement’ is not valid for C++
cc1plus: warning: command-line option ‘-Wstrict-prototypes’ is valid for C/ObjC but not for C++
cc1plus: warning: command-line option ‘-Wmissing-prototypes’ is valid for C/ObjC but not for C++
cc1plus: warning: ‘-Werror=’ argument ‘-Werror=declaration-after-statement’ is not valid for C++
cc1plus: warning: command-line option ‘-Wstrict-prototypes’ is valid for C/ObjC but not for C++
cc1plus: warning: command-line option ‘-Wmissing-prototypes’ is valid for C/ObjC but not for C++
cc1plus: warning: ‘-Werror=’ argument ‘-Werror=declaration-after-statement’ is not valid for C++
cc1plus: warning: command-line option ‘-Wstrict-prototypes’ is valid for C/ObjC but not for C++
cc1plus: warning: command-line option ‘-Wmissing-prototypes’ is valid for C/ObjC but not for C++
cc1plus: warning: ‘-Werror=’ argument ‘-Werror=declaration-after-statement’ is not valid for C++
cc1plus: warning: command-line option ‘-Wstrict-prototypes’ is valid for C/ObjC but not for C++
cc1plus: warning: command-line option ‘-Wmissing-prototypes’ is valid for C/ObjC but not for C++
cc1plus: warning: ‘-Werror=’ argument ‘-Werror=declaration-after-statement’ is not valid for C++
cc1plus: warning: command-line option ‘-Wstrict-prototypes’ is valid for C/ObjC but not for C++
cc1plus: warning: command-line option ‘-Wmissing-prototypes’ is valid for C/ObjC but not for C++
cc1plus: warning: ‘-Werror=’ argument ‘-Werror=declaration-after-statement’ is not valid for C++
cc1plus: warning: command-line option ‘-Wstrict-prototypes’ is valid for C/ObjC but not for C++
cc1plus: warning: command-line option ‘-Wmissing-prototypes’ is valid for C/ObjC but not for C++
cc1plus: warning: ‘-Werror=’ argument ‘-Werror=declaration-after-statement’ is not valid for C++
cc1plus: warning: command-line option ‘-Wstrict-prototypes’ is valid for C/ObjC but not for C++
cc1plus: warning: command-line option ‘-Wmissing-prototypes’ is valid for C/ObjC but not for C++
cc1plus: warning: ‘-Werror=’ argument ‘-Werror=declaration-after-statement’ is not valid for C++
cc1plus: warning: command-line option ‘-Wstrict-prototypes’ is valid for C/ObjC but not for C++
cc1plus: warning: command-line option ‘-Wmissing-prototypes’ is valid for C/ObjC but not for C++
cc1plus: warning: ‘-Werror=’ argument ‘-Werror=declaration-after-statement’ is not valid for C++
cc1plus: warning: command-line option ‘-Wstrict-prototypes’ is valid for C/ObjC but not for C++
cc1plus: warning: command-line option ‘-Wmissing-prototypes’ is valid for C/ObjC but not for C++
cc1plus: warning: ‘-Werror=’ argument ‘-Werror=declaration-after-statement’ is not valid for C++
In file included from ./base/gsdcolor.h:24,
from ./base/gxdevcli.h:25,
from ./base/gscicach.h:22,
from ./base/gxshade6.c:27:
In function ‘color_norm’,
inlined from ‘quadrangle_color_change’ at ./base/gxshade6.c:3303:13,
inlined from ‘fill_quadrangle.isra’ at ./base/gxshade6.c:3496:23:
./base/gxshade6.c:1438:35: warning: ‘d0001’ may be used uninitialized [-Wmaybe-uninitialized]
1438 | m = any_abs(c->cc.paint.values[0]) / pfs->color_domain.paint.values[0];
./base/gxarith.h:23:22: note: in definition of macro ‘any_abs’
23 | #define any_abs(x) ((x) < 0 ? -(x) : (x))
| ^
./base/gxshade6.c: In function ‘fill_quadrangle.isra’:
./base/gxshade6.c:3297:19: note: ‘d0001’ declared here
3297 | patch_color_t d0001, d1011, d;
| ^~~~~
./base/gstiffio.c:196:1: warning: ‘gs_tifsErrorHandlerEx’ defined but not used [-Wunused-function]
196 | gs_tifsErrorHandlerEx(thandle_t client_data, const char* module, const char* fmt, va_list ap)
| ^~~~~~~~~~~~~~~~~~~~~
./base/gstiffio.c:180:1: warning: ‘gs_tifsWarningHandlerEx’ defined but not used [-Wunused-function]
180 | gs_tifsWarningHandlerEx(thandle_t client_data, const char* module, const char* fmt, va_list ap)
| ^~~~~~~~~~~~~~~~~~~~~~~
./devices/vector/gdevpdfg.c: In function ‘check_colorants_for_pdfx4’:
./devices/vector/gdevpdfg.c:1425:17: warning: unused variable ‘Colorant’ [-Wunused-variable]
1425 | char *ink, *Colorant;
| ^~~~~~~~
./devices/vector/gdevpdfi.c: In function ‘check_colorants_for_pdfx4’:
./devices/vector/gdevpdfi.c:516:17: warning: unused variable ‘Colorant’ [-Wunused-variable]
516 | char *ink, *Colorant;
| ^~~~~~~~
./devices/vector/gdevpdfi.c: In function ‘setup_image_colorspace’:
./devices/vector/gdevpdfi.c:755:43: warning: assignment discards ‘const’ qualifier from pointer target type [-Wdiscarded-qualifiers]
755 | *pcs_orig = pcs;
| ^
./devices/vector/gdevpdfi.c:759:43: warning: assignment discards ‘const’ qualifier from pointer target type [-Wdiscarded-qualifiers]
759 | *pcs_orig = pcs;
| ^
cc1plus: warning: command-line option ‘-Wstrict-prototypes’ is valid for C/ObjC but not for C++
cc1plus: warning: command-line option ‘-Wmissing-prototypes’ is valid for C/ObjC but not for C++
cc1plus: warning: ‘-Werror=’ argument ‘-Werror=declaration-after-statement’ is not valid for C++
In file included from /usr/include/string.h:535,
from ./base/memory_.h:46,
from ./devices/vector/gdevpsfx.c:19:
In function ‘memmove’,
inlined from ‘psf_convert_type1_to_type2’ at ./devices/vector/gdevpsfx.c:832:17:
/usr/include/bits/string_fortified.h:36:10: warning: ‘__builtin_memmove’ offset [-64, -68] is out of the bounds [0, 11216] of object ‘cis’ with type ‘gs_type1_state’ {aka ‘struct gs_type1_state_s’} [-Warray-bounds=]
36 | return __builtin___memmove_chk (__dest, __src, __len,
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
37 | __glibc_objsize0 (__dest));
| ~~~~~~~~~~~~~~~~~~~~~~~~~~
./devices/vector/gdevpsfx.c: In function ‘psf_convert_type1_to_type2’:
./devices/vector/gdevpsfx.c:438:20: note: ‘cis’ declared here
438 | gs_type1_state cis;
| ^~~
In function ‘memmove’,
inlined from ‘psf_convert_type1_to_type2’ at ./devices/vector/gdevpsfx.c:932:25:
/usr/include/bits/string_fortified.h:36:10: warning: ‘__builtin_memmove’ offset [-16, -20] is out of the bounds [0, 11216] of object ‘cis’ with type ‘gs_type1_state’ {aka ‘struct gs_type1_state_s’} [-Warray-bounds=]
36 | return __builtin___memmove_chk (__dest, __src, __len,
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
37 | __glibc_objsize0 (__dest));
| ~~~~~~~~~~~~~~~~~~~~~~~~~~
./devices/vector/gdevpsfx.c: In function ‘psf_convert_type1_to_type2’:
./devices/vector/gdevpsfx.c:438:20: note: ‘cis’ declared here
438 | gs_type1_state cis;
| ^~~
In function ‘memmove’,
inlined from ‘psf_convert_type1_to_type2’ at ./devices/vector/gdevpsfx.c:954:21:
/usr/include/bits/string_fortified.h:36:10: warning: ‘__builtin_memmove’ offset [-16, -20] is out of the bounds [0, 11216] of object ‘cis’ with type ‘gs_type1_state’ {aka ‘struct gs_type1_state_s’} [-Warray-bounds=]
36 | return __builtin___memmove_chk (__dest, __src, __len,
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
37 | __glibc_objsize0 (__dest));
| ~~~~~~~~~~~~~~~~~~~~~~~~~~
./devices/vector/gdevpsfx.c: In function ‘psf_convert_type1_to_type2’:
./devices/vector/gdevpsfx.c:438:20: note: ‘cis’ declared here
438 | gs_type1_state cis;
| ^~~
In function ‘memmove’,
inlined from ‘psf_convert_type1_to_type2’ at ./devices/vector/gdevpsfx.c:963:21:
/usr/include/bits/string_fortified.h:36:10: warning: ‘__builtin_memmove’ offset [-20, -24] is out of the bounds [0, 11216] of object ‘cis’ with type ‘gs_type1_state’ {aka ‘struct gs_type1_state_s’} [-Warray-bounds=]
36 | return __builtin___memmove_chk (__dest, __src, __len,
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
37 | __glibc_objsize0 (__dest));
| ~~~~~~~~~~~~~~~~~~~~~~~~~~
./devices/vector/gdevpsfx.c: In function ‘psf_convert_type1_to_type2’:
./devices/vector/gdevpsfx.c:438:20: note: ‘cis’ declared here
438 | gs_type1_state cis;
| ^~~
In function ‘memmove’,
inlined from ‘psf_convert_type1_to_type2’ at ./devices/vector/gdevpsfx.c:979:17:
/usr/include/bits/string_fortified.h:36:10: warning: ‘__builtin_memmove’ offset [-20, -24] is out of the bounds [0, 11216] of object ‘cis’ with type ‘gs_type1_state’ {aka ‘struct gs_type1_state_s’} [-Warray-bounds=]
36 | return __builtin___memmove_chk (__dest, __src, __len,
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
37 | __glibc_objsize0 (__dest));
| ~~~~~~~~~~~~~~~~~~~~~~~~~~
./devices/vector/gdevpsfx.c: In function ‘psf_convert_type1_to_type2’:
./devices/vector/gdevpsfx.c:438:20: note: ‘cis’ declared here
438 | gs_type1_state cis;
| ^~~
In file included from ./base/gx.h:26,
from ./base/gdevprn.h:24,
from ./contrib/japanese/gdev10v.c:33:
./contrib/japanese/gdev10v.c: In function ‘bj10v_print_page’:
./base/gsmalloc.h:58:21: warning: ‘in’ may be used uninitialized [-Wmaybe-uninitialized]
58 | gs_free_object(mem->non_gc_memory, data, cname)
./base/gsmemory.h:135:28: note: in definition of macro ‘gs_free_object’
135 | do { if (mem != NULL) {((mem)->procs.free_object(mem, data, cname));} } while (0)
| ^~~
./contrib/japanese/gdev10v.c:336:9: note: in expansion of macro ‘gs_free’
336 | gs_free(pdev->memory->non_gc_memory, (char *)in, 8, line_size, "bj10v_print_page(in)");
| ^~~~~~~
./contrib/japanese/gdev10v.c:202:15: note: ‘in’ was declared here
202 | byte *in, *out;
| ^~
./base/gsmalloc.h:58:21: warning: ‘out’ may be used uninitialized [-Wmaybe-uninitialized]
58 | gs_free_object(mem->non_gc_memory, data, cname)
./base/gsmemory.h:135:28: note: in definition of macro ‘gs_free_object’
135 | do { if (mem != NULL) {((mem)->procs.free_object(mem, data, cname));} } while (0)
| ^~~
./contrib/japanese/gdev10v.c:335:9: note: in expansion of macro ‘gs_free’
335 | gs_free(pdev->memory->non_gc_memory, (char *)out, bits_per_column, line_size, "bj10v_print_page(out)");
| ^~~~~~~
./contrib/japanese/gdev10v.c:202:20: note: ‘out’ was declared here
202 | byte *in, *out;
| ^~~
./base/gxclmem.c: In function ‘memfile_get_pdata.isra’:
./base/gxclmem.c:951:67: warning: writing 1 byte into a region of size 0 [-Wstringop-overflow=]
951 | *(bp->phys_blk->link->data - back_up + i) = *++f->rd.ptr;
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~
In file included from ./base/gxclmem.c:21:
./base/gxclmem.h:56:10: note: at offset [-2147483647, -1] into destination object ‘data’ of size 16224
56 | char data[MEMFILE_DATA_SIZE];
| ^~~~
./base/gdevdbit.c: In function ‘gx_default_strip_tile_rect_devn’:
./base/gdevdbit.c:603:11: warning: unused variable ‘tile_id’ [-Wunused-variable]
603 | gs_id tile_id = tiles->id;
| ^~~~~~~
./psi/zcolor.c: In function ‘zcurrentcolorspace’:
./psi/zcolor.c:171:11: warning: unused variable ‘body’ [-Wunused-variable]
171 | byte *body;
| ^~~~
./psi/zcolor.c:170:17: warning: unused variable ‘stref’ [-Wunused-variable]
170 | ref namestr,stref, *aref;
| ^~~~~
./psi/zcolor.c: In function ‘copy_cspace_dict’:
./psi/zcolor.c:493:26: warning: unused variable ‘i’ [-Wunused-variable]
493 | int code = 0, index, i = 0;
| ^
./psi/zcolor.c: In function ‘septransform’:
./psi/zcolor.c:3944:30: warning: unused variable ‘pimap’ [-Wunused-variable]
3944 | gs_device_n_map *pimap;
| ^~~~~
./psi/zcolor.c: In function ‘devicentransform’:
./psi/zcolor.c:4802:30: warning: unused variable ‘pimap’ [-Wunused-variable]
4802 | gs_device_n_map *pimap;
| ^~~~~
./psi/zcolor.c: In function ‘currentbasecolor’:
./psi/zcolor.c:7289:12: warning: unused variable ‘ep’ [-Wunused-variable]
7289 | es_ptr ep = esp;
| ^~
In function ‘pdf_compute_encryption_key_r6’,
inlined from ‘check_owner_password_R6.constprop’ at ./pdf/pdf_sec.c:723:5:
./pdf/pdf_sec.c:402:9: warning: ‘pdf_compute_hardened_hash_r6’ accessing 16 bytes in a region of size 8 [-Wstringop-overflow=]
402 | pdf_compute_hardened_hash_r6(password, pwlen,
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
403 | (ownerkey ? O : U) + 40,
| ~~~~~~~~~~~~~~~~~~~~~~~~
404 | (ownerkey ? U : NULL), hash);
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~
./pdf/pdf_sec.c:402:9: note: referencing argument 3 of type ‘unsigned char[16]’
./pdf/pdf_sec.c:402:9: note: referencing argument 5 of type ‘unsigned char[32]’
./pdf/pdf_sec.c: In function ‘check_owner_password_R6.constprop’:
./pdf/pdf_sec.c:324:1: note: in a call to function ‘pdf_compute_hardened_hash_r6’
324 | pdf_compute_hardened_hash_r6(unsigned char *password, int pwlen, unsigned char salt[16], unsigned char *ownerkey, unsigned char hash[32])
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~
In function ‘pdf_compute_encryption_key_r6’,
inlined from ‘check_user_password_R6.constprop’ at ./pdf/pdf_sec.c:417:5:
./pdf/pdf_sec.c:402:9: warning: ‘pdf_compute_hardened_hash_r6’ accessing 16 bytes in a region of size 8 [-Wstringop-overflow=]
402 | pdf_compute_hardened_hash_r6(password, pwlen,
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
403 | (ownerkey ? O : U) + 40,
| ~~~~~~~~~~~~~~~~~~~~~~~~
404 | (ownerkey ? U : NULL), hash);
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~
./pdf/pdf_sec.c:402:9: note: referencing argument 3 of type ‘unsigned char[16]’
./pdf/pdf_sec.c:402:9: note: referencing argument 5 of type ‘unsigned char[32]’
./pdf/pdf_sec.c: In function ‘check_user_password_R6.constprop’:
./pdf/pdf_sec.c:324:1: note: in a call to function ‘pdf_compute_hardened_hash_r6’
324 | pdf_compute_hardened_hash_r6(unsigned char *password, int pwlen, unsigned char salt[16], unsigned char *ownerkey, unsigned char hash[32])
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~
In file included from ./base/gsdcolor.h:24,
from ./base/gxdevcli.h:25,
from ./base/gscicach.h:22,
from ./base/gxshade6.c:27:
In function ‘color_norm’,
inlined from ‘quadrangle_color_change’ at ./base/gxshade6.c:3303:13,
inlined from ‘fill_quadrangle.isra’ at ./base/gxshade6.c:3496:23:
./base/gxshade6.c:1438:35: warning: ‘d0001’ may be used uninitialized [-Wmaybe-uninitialized]
1438 | m = any_abs(c->cc.paint.values[0]) / pfs->color_domain.paint.values[0];
./base/gxarith.h:23:22: note: in definition of macro ‘any_abs’
23 | #define any_abs(x) ((x) < 0 ? -(x) : (x))
| ^
./base/gxshade6.c: In function ‘fill_quadrangle.isra’:
./base/gxshade6.c:3297:19: note: ‘d0001’ declared here
3297 | patch_color_t d0001, d1011, d;
| ^~~~~
./base/gstiffio.c:196:1: warning: ‘gs_tifsErrorHandlerEx’ defined but not used [-Wunused-function]
196 | gs_tifsErrorHandlerEx(thandle_t client_data, const char* module, const char* fmt, va_list ap)
| ^~~~~~~~~~~~~~~~~~~~~
./base/gstiffio.c:180:1: warning: ‘gs_tifsWarningHandlerEx’ defined but not used [-Wunused-function]
180 | gs_tifsWarningHandlerEx(thandle_t client_data, const char* module, const char* fmt, va_list ap)
| ^~~~~~~~~~~~~~~~~~~~~~~
extract/src/json.c:83:5: warning: no previous prototype for ‘extract_document_to_json_content’ [-Wmissing-prototypes]
83 | int extract_document_to_json_content(
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
./devices/vector/gdevpdfg.c: In function ‘check_colorants_for_pdfx4’:
./devices/vector/gdevpdfg.c:1425:17: warning: unused variable ‘Colorant’ [-Wunused-variable]
1425 | char *ink, *Colorant;
| ^~~~~~~~
./devices/vector/gdevpdfi.c: In function ‘check_colorants_for_pdfx4’:
./devices/vector/gdevpdfi.c:516:17: warning: unused variable ‘Colorant’ [-Wunused-variable]
516 | char *ink, *Colorant;
| ^~~~~~~~
./devices/vector/gdevpdfi.c: In function ‘setup_image_colorspace’:
./devices/vector/gdevpdfi.c:755:43: warning: assignment discards ‘const’ qualifier from pointer target type [-Wdiscarded-qualifiers]
755 | *pcs_orig = pcs;
| ^
./devices/vector/gdevpdfi.c:759:43: warning: assignment discards ‘const’ qualifier from pointer target type [-Wdiscarded-qualifiers]
759 | *pcs_orig = pcs;
| ^
In file included from /usr/include/string.h:535,
from ./base/memory_.h:46,
from ./devices/vector/gdevpsfx.c:19:
In function ‘memmove’,
inlined from ‘psf_convert_type1_to_type2’ at ./devices/vector/gdevpsfx.c:832:17:
/usr/include/bits/string_fortified.h:36:10: warning: ‘__builtin_memmove’ offset [-64, -68] is out of the bounds [0, 11216] of object ‘cis’ with type ‘gs_type1_state’ {aka ‘struct gs_type1_state_s’} [-Warray-bounds=]
36 | return __builtin___memmove_chk (__dest, __src, __len,
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
37 | __glibc_objsize0 (__dest));
| ~~~~~~~~~~~~~~~~~~~~~~~~~~
./devices/vector/gdevpsfx.c: In function ‘psf_convert_type1_to_type2’:
./devices/vector/gdevpsfx.c:438:20: note: ‘cis’ declared here
438 | gs_type1_state cis;
| ^~~
In function ‘memmove’,
inlined from ‘psf_convert_type1_to_type2’ at ./devices/vector/gdevpsfx.c:932:25:
/usr/include/bits/string_fortified.h:36:10: warning: ‘__builtin_memmove’ offset [-16, -20] is out of the bounds [0, 11216] of object ‘cis’ with type ‘gs_type1_state’ {aka ‘struct gs_type1_state_s’} [-Warray-bounds=]
36 | return __builtin___memmove_chk (__dest, __src, __len,
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
37 | __glibc_objsize0 (__dest));
| ~~~~~~~~~~~~~~~~~~~~~~~~~~
./devices/vector/gdevpsfx.c: In function ‘psf_convert_type1_to_type2’:
./devices/vector/gdevpsfx.c:438:20: note: ‘cis’ declared here
438 | gs_type1_state cis;
| ^~~
In function ‘memmove’,
inlined from ‘psf_convert_type1_to_type2’ at ./devices/vector/gdevpsfx.c:954:21:
/usr/include/bits/string_fortified.h:36:10: warning: ‘__builtin_memmove’ offset [-16, -20] is out of the bounds [0, 11216] of object ‘cis’ with type ‘gs_type1_state’ {aka ‘struct gs_type1_state_s’} [-Warray-bounds=]
36 | return __builtin___memmove_chk (__dest, __src, __len,
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
37 | __glibc_objsize0 (__dest));
| ~~~~~~~~~~~~~~~~~~~~~~~~~~
./devices/vector/gdevpsfx.c: In function ‘psf_convert_type1_to_type2’:
./devices/vector/gdevpsfx.c:438:20: note: ‘cis’ declared here
438 | gs_type1_state cis;
| ^~~
In function ‘memmove’,
inlined from ‘psf_convert_type1_to_type2’ at ./devices/vector/gdevpsfx.c:963:21:
/usr/include/bits/string_fortified.h:36:10: warning: ‘__builtin_memmove’ offset [-20, -24] is out of the bounds [0, 11216] of object ‘cis’ with type ‘gs_type1_state’ {aka ‘struct gs_type1_state_s’} [-Warray-bounds=]
36 | return __builtin___memmove_chk (__dest, __src, __len,
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
37 | __glibc_objsize0 (__dest));
| ~~~~~~~~~~~~~~~~~~~~~~~~~~
./devices/vector/gdevpsfx.c: In function ‘psf_convert_type1_to_type2’:
./devices/vector/gdevpsfx.c:438:20: note: ‘cis’ declared here
438 | gs_type1_state cis;
| ^~~
In function ‘memmove’,
inlined from ‘psf_convert_type1_to_type2’ at ./devices/vector/gdevpsfx.c:979:17:
/usr/include/bits/string_fortified.h:36:10: warning: ‘__builtin_memmove’ offset [-20, -24] is out of the bounds [0, 11216] of object ‘cis’ with type ‘gs_type1_state’ {aka ‘struct gs_type1_state_s’} [-Warray-bounds=]
36 | return __builtin___memmove_chk (__dest, __src, __len,
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
37 | __glibc_objsize0 (__dest));
| ~~~~~~~~~~~~~~~~~~~~~~~~~~
./devices/vector/gdevpsfx.c: In function ‘psf_convert_type1_to_type2’:
./devices/vector/gdevpsfx.c:438:20: note: ‘cis’ declared here
438 | gs_type1_state cis;
| ^~~
cc1plus: warning: command-line option ‘-Wstrict-prototypes’ is valid for C/ObjC but not for C++
cc1plus: warning: command-line option ‘-Wmissing-prototypes’ is valid for C/ObjC but not for C++
cc1plus: warning: ‘-Werror=’ argument ‘-Werror=declaration-after-statement’ is not valid for C++
leptonica/src/baseline.c: In function ‘pixGetLocalSkewTransform’:
leptonica/src/baseline.c:445:5: warning: ‘dely’ may be used uninitialized [-Wmaybe-uninitialized]
445 | ptaAddPt(ptas, w - 1, i - dely);
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
leptonica/src/baseline.c:400:33: note: ‘dely’ was declared here
400 | l_float32 deg2rad, angr, angd, dely;
| ^~~~
leptonica/src/binarize.c: In function ‘pixSauvolaBinarize’:
leptonica/src/binarize.c:716:47: warning: ‘wplsd’ may be used uninitialized [-Wmaybe-uninitialized]
716 | l_int32 i, j, w, h, tabsize, wplm, wplms, wplsd, wpld, usetab;
| ^~~~~
leptonica/src/bmf.c: In function ‘pixaGenerateFont’:
leptonica/src/bmf.c:605:21: warning: ‘yval’ may be used uninitialized [-Wmaybe-uninitialized]
605 | baseline[i] = yval;
| ~~~~~~~~~~~~^~~~~~
leptonica/src/bmf.c:547:46: note: ‘yval’ was declared here
547 | l_int32 i, j, nrows, nrowchars, nchars, h, yval;
| ^~~~
leptonica/src/boxfunc2.c: In function ‘boxaaTranspose’:
leptonica/src/boxfunc2.c:1807:12: warning: ‘nbox’ may be used uninitialized [-Wmaybe-uninitialized]
1807 | baad = boxaaCreate(nbox);
| ^~~~~~~~~~~~~~~~~
leptonica/src/boxfunc2.c:1783:25: note: ‘nbox’ was declared here
1783 | l_int32 i, j, ny, nb, nbox;
| ^~~~
leptonica/src/boxfunc2.c: In function ‘boxaaAlignBox’:
leptonica/src/boxfunc2.c:1882:17: warning: ‘maxindex’ may be used uninitialized [-Wmaybe-uninitialized]
1882 | *pindex = maxindex;
| ~~~~~~~~^~~~~~~~~~
leptonica/src/boxfunc2.c:1843:48: note: ‘maxindex’ was declared here
1843 | l_int32 i, n, m, y, yt, h, ht, ovlp, maxovlp, maxindex;
| ^~~~~~~~
In function ‘pixGetCCBorders’,
inlined from ‘pixGetAllCCBorders’ at leptonica/src/ccbord.c:598:15:
leptonica/src/ccbord.c:720:16: warning: ‘xh’ may be used uninitialized [-Wmaybe-uninitialized]
720 | for (x = xh + boxt->x; x < w; x++) { /* look for (fg) border pixel */
| ~~^~~~~~~~~~~~~~
leptonica/src/ccbord.c: In function ‘pixGetAllCCBorders’:
leptonica/src/ccbord.c:647:26: note: ‘xh’ was declared here
647 | l_int32 allzero, i, x, xh, w, nh;
| ^~
In function ‘pixGetHoleBorder’,
inlined from ‘pixGetCCBorders’ at leptonica/src/ccbord.c:733:9,
inlined from ‘pixGetAllCCBorders’ at leptonica/src/ccbord.c:598:15:
leptonica/src/ccbord.c:1007:9: warning: ‘xs’ may be used uninitialized [-Wmaybe-uninitialized]
1007 | if (findNextBorderPixel(w, h, data, wpl, xs, ys, &qpos, &npx, &npy))
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
leptonica/src/ccbord.c: In function ‘pixGetAllCCBorders’:
leptonica/src/ccbord.c:648:11: note: ‘xs’ was declared here
648 | l_int32 xs, ys; /* starting hole border pixel, relative in pixs */
| ^~
leptonica/src/ccbord.c: In function ‘ccbaGenerateSinglePath’:
leptonica/src/ccbord.c:1575:16: warning: ‘len’ may be used uninitialized [-Wmaybe-uninitialized]
1575 | if (len == 0) { /* lost the hole */
| ^
leptonica/src/ccbord.c:1522:45: note: ‘len’ was declared here
1522 | l_int32 i, j, k, ncc, nb, ncut, npt, dir, len, state, lostholes;
| ^~~
In function ‘locateOutsideSeedPixel’,
inlined from ‘ccbaDisplayImage1’ at leptonica/src/ccbord.c:2043:17:
leptonica/src/ccbord.c:1110:8: warning: ‘fpx’ may be used uninitialized [-Wmaybe-uninitialized]
1110 | dx = spx - fpx;
| ~~~^~~~~~~~~~~
leptonica/src/ccbord.c: In function ‘ccbaDisplayImage1’:
leptonica/src/ccbord.c:1962:10: note: ‘fpx’ was declared here
1962 | l_int32 fpx, fpy, spx, spy, xs, ys;
| ^~~
In function ‘locateOutsideSeedPixel’,
inlined from ‘ccbaDisplayImage1’ at leptonica/src/ccbord.c:2043:17:
leptonica/src/ccbord.c:1111:8: warning: ‘fpy’ may be used uninitialized [-Wmaybe-uninitialized]
1111 | dy = spy - fpy;
| ~~~^~~~~~~~~~~
leptonica/src/ccbord.c: In function ‘ccbaDisplayImage1’:
leptonica/src/ccbord.c:1962:15: note: ‘fpy’ was declared here
1962 | l_int32 fpx, fpy, spx, spy, xs, ys;
| ^~~
In function ‘locateOutsideSeedPixel’,
inlined from ‘ccbaDisplayImage1’ at leptonica/src/ccbord.c:2043:17:
leptonica/src/ccbord.c:1110:8: warning: ‘spx’ may be used uninitialized [-Wmaybe-uninitialized]
1110 | dx = spx - fpx;
| ~~~^~~~~~~~~~~
leptonica/src/ccbord.c: In function ‘ccbaDisplayImage1’:
leptonica/src/ccbord.c:1962:20: note: ‘spx’ was declared here
1962 | l_int32 fpx, fpy, spx, spy, xs, ys;
| ^~~
In function ‘locateOutsideSeedPixel’,
inlined from ‘ccbaDisplayImage1’ at leptonica/src/ccbord.c:2043:17:
leptonica/src/ccbord.c:1111:8: warning: ‘spy’ may be used uninitialized [-Wmaybe-uninitialized]
1111 | dy = spy - fpy;
| ~~~^~~~~~~~~~~
leptonica/src/ccbord.c: In function ‘ccbaDisplayImage1’:
leptonica/src/ccbord.c:1962:25: note: ‘spy’ was declared here
1962 | l_int32 fpx, fpy, spx, spy, xs, ys;
| ^~~
leptonica/src/colorcontent.c: In function ‘pixColorContent’:
leptonica/src/colorcontent.c:211:30: warning: ‘wplr’ may be used uninitialized [-Wmaybe-uninitialized]
211 | l_int32 w, h, i, j, wpl1, wplr, wplg, wplb;
| ^~~~
leptonica/src/colorcontent.c:211:36: warning: ‘wplg’ may be used uninitialized [-Wmaybe-uninitialized]
211 | l_int32 w, h, i, j, wpl1, wplr, wplg, wplb;
| ^~~~
leptonica/src/colorcontent.c:211:42: warning: ‘wplb’ may be used uninitialized [-Wmaybe-uninitialized]
211 | l_int32 w, h, i, j, wpl1, wplr, wplg, wplb;
| ^~~~
leptonica/src/colormap.c: In function ‘pixcmapReadStream’:
leptonica/src/colormap.c:1790:35: warning: variable ‘ignore’ set but not used [-Wunused-but-set-variable]
1790 | l_int32 rval, gval, bval, aval, ignore;
| ^~~~~~
In function ‘pixOctreeColorQuantGeneral’,
inlined from ‘pixOctreeColorQuantGeneral’ at leptonica/src/colorquant1.c:600:1:
leptonica/src/colorquant1.c:688:5: warning: ‘cmap’ may be used uninitialized [-Wmaybe-uninitialized]
688 | pixcmapGetColor(cmap, index, &rval, &gval, &bval);
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
leptonica/src/colorquant1.c: In function ‘pixOctreeColorQuantGeneral’:
leptonica/src/colorquant1.c:612:12: note: ‘cmap’ was declared here
612 | PIXCMAP *cmap;
| ^~~~
leptonica/src/colorquant1.c: In function ‘pixOctcubeHistogram’:
leptonica/src/colorquant1.c:3716:15: warning: ‘size’ may be used uninitialized [-Wmaybe-uninitialized]
3716 | if ((na = numaCreate(size)) == NULL) {
| ^~~~~~~~~~~~~~~~
leptonica/src/colorquant1.c:3693:13: note: ‘size’ was declared here
3693 | l_int32 size, i, j, w, h, wpl, ncolors, val;
| ^~~~
leptonica/src/colorseg.c: In function ‘pixAssignToNearestColor’:
leptonica/src/colorseg.c:413:30: warning: ‘wplm’ may be used uninitialized [-Wmaybe-uninitialized]
413 | l_int32 w, h, wpls, wpld, wplm, i, j, success;
| ^~~~
leptonica/src/convolve.c: In function ‘pixWindowedVariance’:
leptonica/src/convolve.c:1271:50: warning: ‘wplv’ may be used uninitialized [-Wmaybe-uninitialized]
1271 | l_int32 i, j, w, h, ws, hs, ds, wplm, wplms, wplv, wplrv, valm, valms;
| ^~~~
leptonica/src/convolve.c:1271:56: warning: ‘wplrv’ may be used uninitialized [-Wmaybe-uninitialized]
1271 | l_int32 i, j, w, h, ws, hs, ds, wplm, wplms, wplv, wplrv, valm, valms;
| ^~~~~
leptonica/src/correlscore.c: In function ‘pixCorrelationScoreThresholded’:
leptonica/src/correlscore.c:686:46: warning: ‘untouchable’ may be used uninitialized [-Wmaybe-uninitialized]
686 | if (count + downcount[y] - untouchable < threshold) {
| ~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~
leptonica/src/correlscore.c:437:52: note: ‘untouchable’ was declared here
437 | l_int32 wpl1, wpl2, lorow, hirow, locol, hicol, untouchable;
| ^~~~~~~~~~~
In file included from leptonica/src/alltypes.h:37,
from leptonica/src/allheaders.h:35,
from leptonica/src/dewarp2.c:67:
leptonica/src/dewarp2.c: In function ‘dewarpBuildPageModel’:
leptonica/src/environ.h:598:14: warning: ‘ntop’ may be used uninitialized [-Wmaybe-uninitialized]
598 | (void)lept_stderr("Warning in %s: " a, __VA_ARGS__), \
| ^
leptonica/src/environ.h:573:61: note: in definition of macro ‘IF_SEV’
573 | ((l) >= MINIMUM_SEVERITY && (l) >= LeptMsgSeverity ? (t) : (f))
| ^
leptonica/src/dewarp2.c:226:9: note: in expansion of macro ‘L_WARNING’
226 | L_WARNING("invalid line coverage: ntop = %d, nbot = %d;"
| ^~~~~~~~~
leptonica/src/dewarp2.c:159:21: note: ‘ntop’ was declared here
159 | l_int32 linecount, ntop, nbot, ytop, ybot, ret;
| ^~~~
leptonica/src/environ.h:598:14: warning: ‘nbot’ may be used uninitialized [-Wmaybe-uninitialized]
598 | (void)lept_stderr("Warning in %s: " a, __VA_ARGS__), \
| ^
leptonica/src/environ.h:573:61: note: in definition of macro ‘IF_SEV’
573 | ((l) >= MINIMUM_SEVERITY && (l) >= LeptMsgSeverity ? (t) : (f))
| ^
leptonica/src/dewarp2.c:226:9: note: in expansion of macro ‘L_WARNING’
226 | L_WARNING("invalid line coverage: ntop = %d, nbot = %d;"
| ^~~~~~~~~
leptonica/src/dewarp2.c:159:27: note: ‘nbot’ was declared here
159 | l_int32 linecount, ntop, nbot, ytop, ybot, ret;
| ^~~~
leptonica/src/environ.h:598:14: warning: ‘ytop’ may be used uninitialized [-Wmaybe-uninitialized]
598 | (void)lept_stderr("Warning in %s: " a, __VA_ARGS__), \
| ^
leptonica/src/environ.h:573:61: note: in definition of macro ‘IF_SEV’
573 | ((l) >= MINIMUM_SEVERITY && (l) >= LeptMsgSeverity ? (t) : (f))
| ^
leptonica/src/dewarp2.c:226:9: note: in expansion of macro ‘L_WARNING’
226 | L_WARNING("invalid line coverage: ntop = %d, nbot = %d;"
| ^~~~~~~~~
leptonica/src/dewarp2.c:159:33: note: ‘ytop’ was declared here
159 | l_int32 linecount, ntop, nbot, ytop, ybot, ret;
| ^~~~
leptonica/src/environ.h:598:14: warning: ‘ybot’ may be used uninitialized [-Wmaybe-uninitialized]
598 | (void)lept_stderr("Warning in %s: " a, __VA_ARGS__), \
| ^
leptonica/src/environ.h:573:61: note: in definition of macro ‘IF_SEV’
573 | ((l) >= MINIMUM_SEVERITY && (l) >= LeptMsgSeverity ? (t) : (f))
| ^
leptonica/src/dewarp2.c:226:9: note: in expansion of macro ‘L_WARNING’
226 | L_WARNING("invalid line coverage: ntop = %d, nbot = %d;"
| ^~~~~~~~~
leptonica/src/dewarp2.c:159:39: note: ‘ybot’ was declared here
159 | l_int32 linecount, ntop, nbot, ytop, ybot, ret;
| ^~~~
leptonica/src/enhance.c: In function ‘pixUnsharpMaskingGray1D’:
leptonica/src/enhance.c:1321:32: warning: ‘a[3]’ may be used uninitialized [-Wmaybe-uninitialized]
1321 | a[4] * GET_DATA_BYTE(lines, j + 2);
leptonica/src/enhance.c:1265:17: note: ‘a[3]’ was declared here
1265 | l_float32 val, a[5];
| ^
leptonica/src/fhmtgenlow.1.c: In function ‘fhmt_1_5’:
leptonica/src/fhmtgenlow.1.c:273:21: warning: variable ‘wpls5’ set but not used [-Wunused-but-set-variable]
273 | l_int32 wpls5, wpls6;
| ^~~~~
leptonica/src/fhmtgenlow.1.c:272:35: warning: variable ‘wpls4’ set but not used [-Wunused-but-set-variable]
272 | l_int32 wpls2, wpls3, wpls4;
| ^~~~~
leptonica/src/fhmtgenlow.1.c:272:28: warning: variable ‘wpls3’ set but not used [-Wunused-but-set-variable]
272 | l_int32 wpls2, wpls3, wpls4;
| ^~~~~
leptonica/src/fpix2.c: In function ‘linearInterpolatePixelFloat’:
leptonica/src/fpix2.c:2206:6: warning: "DEBUG" is not defined, evaluates to 0 [-Wundef]
2206 | #if DEBUG
| ^~~~~
leptonica/src/gplot.c: In function ‘gplotRead’:
leptonica/src/gplot.c:1209:35: warning: variable ‘ignore’ set but not used [-Wunused-but-set-variable]
1209 | l_int32 outformat, ret, version, ignore;
| ^~~~~~
leptonica/src/gplot.c:1208:47: warning: variable ‘ignores’ set but not used [-Wunused-but-set-variable]
1208 | char *rootname, *title, *xlabel, *ylabel, *ignores;
| ^~~~~~~
leptonica/src/graphics.c: In function ‘pixRenderPtaArb’:
leptonica/src/graphics.c:1371:13: warning: ‘val’ may be used uninitialized [-Wmaybe-uninitialized]
1371 | pixSetPixel(pix, x, y, val);
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~
leptonica/src/graphics.c:1327:11: note: ‘val’ was declared here
1327 | l_uint8 val;
| ^~~
leptonica/src/grayquant.c: In function ‘thresholdToBinaryLineLow’:
leptonica/src/grayquant.c:568:21: warning: ‘sword’ may be used uninitialized [-Wmaybe-uninitialized]
568 | sword <<= 4;
| ~~~~~~^~~~~
leptonica/src/grayquant.c:524:10: note: ‘sword’ was declared here
524 | l_uint32 sword, dword;
| ^~~~~
leptonica/src/jbclass.c: In function ‘jbGetULCorners’:
leptonica/src/jbclass.c:2239:47: warning: ‘dx’ may be used uninitialized [-Wmaybe-uninitialized]
2239 | ptaAddPt(ptaul, (l_float32)(x - idelx + dx), (l_float32)(y - idely + dy));
| ~~~~~~~~~~~^~~~~
leptonica/src/jbclass.c:2190:64: note: ‘dx’ was declared here
2190 | l_int32 i, baseindex, index, n, iclass, idelx, idely, x, y, dx, dy;
| ^~
leptonica/src/jbclass.c:2239:76: warning: ‘dy’ may be used uninitialized [-Wmaybe-uninitialized]
2239 | ptaAddPt(ptaul, (l_float32)(x - idelx + dx), (l_float32)(y - idely + dy));
| ~~~~~~~~~~~^~~~~
leptonica/src/jbclass.c:2190:68: note: ‘dy’ was declared here
2190 | l_int32 i, baseindex, index, n, iclass, idelx, idely, x, y, dx, dy;
| ^~
leptonica/src/kernel.c: In function ‘kernelReadStream’:
leptonica/src/kernel.c:540:48: warning: variable ‘ignore’ set but not used [-Wunused-but-set-variable]
540 | l_int32 sy, sx, cy, cx, i, j, ret, version, ignore;
| ^~~~~~
leptonica/src/libversions.c: In function ‘getImagelibVersions’:
leptonica/src/libversions.c:107:10: warning: unused variable ‘first’ [-Wunused-variable]
107 | l_int32 first = TRUE;
| ^~~~~
leptonica/src/numafunc1.c: In function ‘numaThresholdEdges’:
leptonica/src/numafunc1.c:1476:8: warning: ‘istart’ may be used uninitialized [-Wmaybe-uninitialized]
1476 | if (istart == n) /* no intervals found */
| ^
leptonica/src/numafunc1.c:1437:18: note: ‘istart’ was declared here
1437 | l_int32 n, i, istart, inband, output, sign;
| ^~~~~~
leptonica/src/partify.c: In function ‘boxaRemoveVGaps’:
leptonica/src/partify.c:306:5: warning: this ‘if’ clause does not guard... [-Wmisleading-indentation]
306 | if ((nbox = boxaGetCount(boxa)) == 0);
| ^~
leptonica/src/partify.c:307:9: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the ‘if’
307 | return ERROR_INT("boxa is empty", __func__, 1);
| ^~~~~~
leptonica/src/pix4.c: In function ‘pixGetAverageTiled’:
leptonica/src/pix4.c:1750:52: warning: ‘ave’ may be used uninitialized [-Wmaybe-uninitialized]
1750 | valt = (l_int32)(sqrt(meansq - ave * ave) + 0.5);
| ~~~~^~~~~
leptonica/src/pix4.c:1692:27: note: ‘ave’ was declared here
1692 | l_float64 sumave, summs, ave, meansq, normfact;
| ^~~
leptonica/src/pixafunc2.c: In function ‘pixaDisplayRandomCmap’:
leptonica/src/pixafunc2.c:311:5: warning: ‘res’ may be used uninitialized [-Wmaybe-uninitialized]
311 | pixSetResolution(pixd, res, res);
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
leptonica/src/pixafunc2.c:271:52: note: ‘res’ was declared here
271 | l_int32 i, n, same, maxd, index, xb, yb, wb, hb, res;
| ^~~
leptonica/src/pixafunc2.c: In function ‘pixaDisplayTiled’:
leptonica/src/pixafunc2.c:685:5: warning: ‘res’ may be used uninitialized [-Wmaybe-uninitialized]
685 | pixSetResolution(pixd, res, res);
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
leptonica/src/pixafunc2.c:623:42: note: ‘res’ was declared here
623 | l_int32 wmax, hmax, wd, hd, d, hascmap, res, same;
| ^~~
leptonica/src/pixafunc2.c: In function ‘pixaDisplayTiledInColumns’:
leptonica/src/pixafunc2.c:988:5: warning: ‘res’ may be used uninitialized [-Wmaybe-uninitialized]
988 | pixSetResolution(pixd, res, res);
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
leptonica/src/pixafunc2.c:918:75: note: ‘res’ was declared here
918 | l_int32 i, j, index, n, x, y, nrows, wb, hb, w, h, maxd, maxh, bordval, res;
| ^~~
leptonica/src/pnmio.c: In function ‘pnmReadNextAsciiValue’:
leptonica/src/pnmio.c:1330:10: warning: unused variable ‘ignore’ [-Wunused-variable]
1330 | l_int32 ignore;
| ^~~~~~
leptonica/src/psio1.c: In function ‘pixWriteSegmentedPageToPS’:
leptonica/src/psio1.c:666:39: warning: ‘d’ may be used uninitialized [-Wmaybe-uninitialized]
666 | val = (d == 8) ? 0xff : 0xffffff00;
| ~~~~~~~~~~~~~~~~^~~~~~~~~~~~
leptonica/src/psio1.c:586:29: note: ‘d’ was declared here
586 | l_int32 alltext, notext, d, ret;
| ^
leptonica/src/readfile.c:96:20: warning: ‘FILE_JP2K’ defined but not used [-Wunused-variable]
96 | static const char *FILE_JP2K = "/tmp/lept/format/file.jp2";
| ^~~~~~~~~
leptonica/src/readfile.c:95:20: warning: ‘FILE_WEBP’ defined but not used [-Wunused-variable]
95 | static const char *FILE_WEBP = "/tmp/lept/format/file.webp";
| ^~~~~~~~~
leptonica/src/readfile.c:94:20: warning: ‘FILE_GIF’ defined but not used [-Wunused-variable]
94 | static const char *FILE_GIF = "/tmp/lept/format/file.gif";
| ^~~~~~~~
leptonica/src/readfile.c:93:20: warning: ‘FILE_JPG’ defined but not used [-Wunused-variable]
93 | static const char *FILE_JPG = "/tmp/lept/format/file.jpg";
| ^~~~~~~~
leptonica/src/readfile.c:92:20: warning: ‘FILE_TIFF’ defined but not used [-Wunused-variable]
92 | static const char *FILE_TIFF = "/tmp/lept/format/file.tif";
| ^~~~~~~~~
leptonica/src/readfile.c:91:20: warning: ‘FILE_TIFF_JPEG’ defined but not used [-Wunused-variable]
91 | static const char *FILE_TIFF_JPEG = "/tmp/lept/format/file_jpeg.tif";
| ^~~~~~~~~~~~~~
leptonica/src/readfile.c:90:20: warning: ‘FILE_ZIP’ defined but not used [-Wunused-variable]
90 | static const char *FILE_ZIP = "/tmp/lept/format/file_zip.tif";
| ^~~~~~~~
leptonica/src/readfile.c:89:20: warning: ‘FILE_LZW’ defined but not used [-Wunused-variable]
89 | static const char *FILE_LZW = "/tmp/lept/format/file_lzw.tif";
| ^~~~~~~~
leptonica/src/readfile.c:88:20: warning: ‘FILE_PB’ defined but not used [-Wunused-variable]
88 | static const char *FILE_PB = "/tmp/lept/format/file_packbits.tif";
| ^~~~~~~
leptonica/src/readfile.c:87:20: warning: ‘FILE_RLE’ defined but not used [-Wunused-variable]
87 | static const char *FILE_RLE = "/tmp/lept/format/file_rle.tif";
| ^~~~~~~~
leptonica/src/readfile.c:86:20: warning: ‘FILE_G4’ defined but not used [-Wunused-variable]
86 | static const char *FILE_G4 = "/tmp/lept/format/file_g4.tif";
| ^~~~~~~
leptonica/src/readfile.c:85:20: warning: ‘FILE_G3’ defined but not used [-Wunused-variable]
85 | static const char *FILE_G3 = "/tmp/lept/format/file_g3.tif";
| ^~~~~~~
leptonica/src/readfile.c:83:20: warning: ‘FILE_PNG’ defined but not used [-Wunused-variable]
83 | static const char *FILE_PNG = "/tmp/lept/format/file.png";
| ^~~~~~~~
leptonica/src/rop.c:541:1: warning: ‘checkRasteropCrop’ defined but not used [-Wunused-function]
541 | checkRasteropCrop(l_int32 pixw,
| ^~~~~~~~~~~~~~~~~
In function ‘rasteropGeneralLow’,
inlined from ‘rasteropLow’ at leptonica/src/roplow.c:573:9:
leptonica/src/roplow.c:1623:24: warning: ‘sfwaddb’ may be used uninitialized [-Wmaybe-uninitialized]
1623 | if (sfwaddb)
| ^
leptonica/src/roplow.c: In function ‘rasteropLow’:
leptonica/src/roplow.c:1402:12: note: ‘sfwaddb’ was declared here
1402 | l_int32 sfwaddb; /* boolean: do we need an additional sfw right shift? */
| ^~~~~~~
leptonica/src/sarray1.c: In function ‘sarrayReadStream’:
leptonica/src/sarray1.c:1390:47: warning: variable ‘ignore’ set but not used [-Wunused-but-set-variable]
1390 | l_int32 i, n, size, index, bufsize, version, ignore, success;
| ^~~~~~
leptonica/src/sarray1.c: In function ‘getFilenamesInDirectory’:
leptonica/src/sarray1.c:1888:17: warning: unused variable ‘dfd’ [-Wunused-variable]
1888 | int dfd, stat_ret;
| ^~~
In file included from leptonica/src/alltypes.h:51,
from leptonica/src/allheaders.h:35,
from leptonica/src/scale2.c:103:
leptonica/src/scale2.c: In function ‘pixScaleGrayMinMax’:
leptonica/src/scale2.c:1067:48: warning: ‘maxval’ may be used uninitialized [-Wmaybe-uninitialized]
1067 | SET_DATA_BYTE(lined, j, maxval - minval);
leptonica/src/arrayaccess.h:199:75: note: in definition of macro ‘SET_DATA_BYTE’
199 | *(l_uint8 *)((l_uintptr_t)((l_uint8 *)(pdata) + (n)) ^ 3) = (val)
| ^~~
leptonica/src/scale2.c:1003:20: note: ‘maxval’ was declared here
1003 | l_int32 minval, maxval, val;
| ^~~~~~
leptonica/src/scale2.c:1067:48: warning: ‘minval’ may be used uninitialized [-Wmaybe-uninitialized]
1067 | SET_DATA_BYTE(lined, j, maxval - minval);
leptonica/src/arrayaccess.h:199:75: note: in definition of macro ‘SET_DATA_BYTE’
199 | *(l_uint8 *)((l_uintptr_t)((l_uint8 *)(pdata) + (n)) ^ 3) = (val)
| ^~~
leptonica/src/scale2.c:1003:12: note: ‘minval’ was declared here
1003 | l_int32 minval, maxval, val;
| ^~~~~~
leptonica/src/sel1.c: In function ‘selReadStream’:
leptonica/src/sel1.c:1354:41: warning: variable ‘ignore’ set but not used [-Wunused-but-set-variable]
1354 | l_int32 sy, sx, cy, cx, i, j, version, ignore;
| ^~~~~~
leptonica/src/selgen.c: In function ‘pixGetRunsOnLine’:
leptonica/src/selgen.c:761:5: warning: ‘runlen’ may be used uninitialized [-Wmaybe-uninitialized]
761 | numaAddNumber(numa, runlen); /* append last run */
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~
leptonica/src/selgen.c:709:14: note: ‘runlen’ was declared here
709 | l_int32 i, runlen, preval;
| ^~~~~~
leptonica/src/textops.c: In function ‘splitStringToParagraphs’:
leptonica/src/textops.c:1036:41: warning: ‘allwhite’ may be used uninitialized [-Wmaybe-uninitialized]
1036 | (splitflag == SPLIT_ON_BOTH && (allwhite || leadwhite))) {
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~
leptonica/src/textops.c:1016:21: note: ‘allwhite’ was declared here
1016 | l_int32 nlines, i, allwhite, leadwhite;
| ^~~~~~~~
leptonica/src/textops.c:1036:54: warning: ‘leadwhite’ may be used uninitialized [-Wmaybe-uninitialized]
1036 | (splitflag == SPLIT_ON_BOTH && (allwhite || leadwhite))) {
| ~~~~~~~~~~^~~~~~~~~~~~~
leptonica/src/textops.c:1016:31: note: ‘leadwhite’ was declared here
1016 | l_int32 nlines, i, allwhite, leadwhite;
| ^~~~~~~~~
leptonica/src/utils2.c: In function ‘callSystemDebug’:
leptonica/src/utils2.c:2673:10: warning: variable ‘ret’ set but not used [-Wunused-but-set-variable]
2673 | l_int32 ret;
| ^~~
cc1plus: warning: command-line option ‘-Wstrict-prototypes’ is valid for C/ObjC but not for C++
cc1plus: warning: command-line option ‘-Wmissing-prototypes’ is valid for C/ObjC but not for C++
cc1plus: warning: ‘-Werror=’ argument ‘-Werror=declaration-after-statement’ is not valid for C++
cc1plus: warning: command-line option ‘-Wstrict-prototypes’ is valid for C/ObjC but not for C++
cc1plus: warning: command-line option ‘-Wmissing-prototypes’ is valid for C/ObjC but not for C++
cc1plus: warning: ‘-Werror=’ argument ‘-Werror=declaration-after-statement’ is not valid for C++
tesseract/src/api/baseapi.cpp: In member function ‘int tesseract::TessBaseAPI::Init(const char*, int, const char*, tesseract::OcrEngineMode, char**, int, const std::vector >*, const std::vector >*, bool, tesseract::FileReader)’:
tesseract/src/api/baseapi.cpp:329:8: warning: variable ‘reset_classifier’ set but not used [-Wunused-but-set-variable]
329 | bool reset_classifier = true;
| ^~~~~~~~~~~~~~~~
cc1plus: warning: command-line option ‘-Wstrict-prototypes’ is valid for C/ObjC but not for C++
cc1plus: warning: command-line option ‘-Wmissing-prototypes’ is valid for C/ObjC but not for C++
cc1plus: warning: ‘-Werror=’ argument ‘-Werror=declaration-after-statement’ is not valid for C++
cc1plus: warning: command-line option ‘-Wstrict-prototypes’ is valid for C/ObjC but not for C++
cc1plus: warning: command-line option ‘-Wmissing-prototypes’ is valid for C/ObjC but not for C++
cc1plus: warning: ‘-Werror=’ argument ‘-Werror=declaration-after-statement’ is not valid for C++
tesseract/src/api/pagerenderer.cpp:100:6: warning: no previous declaration for ‘Pta* tesseract::TransposePolygonline(Pta*)’ [-Wmissing-declarations]
100 | Pta *TransposePolygonline(Pta *pts) {
| ^~~~~~~~~~~~~~~~~~~~
tesseract/src/api/pagerenderer.cpp:111:6: warning: no previous declaration for ‘Pta* tesseract::ReversePolygonline(Pta*, int)’ [-Wmissing-declarations]
111 | Pta *ReversePolygonline(Pta *pts, int type) {
| ^~~~~~~~~~~~~~~~~~
tesseract/src/api/pagerenderer.cpp:122:6: warning: no previous declaration for ‘Pta* tesseract::DestroyAndCreatePta(Pta*)’ [-Wmissing-declarations]
122 | Pta *DestroyAndCreatePta(Pta *pts) {
| ^~~~~~~~~~~~~~~~~~~
tesseract/src/api/pagerenderer.cpp:131:6: warning: no previous declaration for ‘Pta* tesseract::RecalcPolygonline(Pta*, bool)’ [-Wmissing-declarations]
131 | Pta *RecalcPolygonline(Pta *pts, bool upper) {
| ^~~~~~~~~~~~~~~~~
tesseract/src/api/pagerenderer.cpp:198:6: warning: no previous declaration for ‘Pta* tesseract::PolygonToBoxCoords(Pta*)’ [-Wmissing-declarations]
198 | Pta *PolygonToBoxCoords(Pta *pts) {
| ^~~~~~~~~~~~~~~~~~
tesseract/src/api/pagerenderer.cpp:385:6: warning: no previous declaration for ‘Pta* tesseract::SortBaseline(Pta*, WritingDirection)’ [-Wmissing-declarations]
385 | Pta *SortBaseline(Pta *baseline_pts,
| ^~~~~~~~~~~~
tesseract/src/api/pagerenderer.cpp:414:6: warning: no previous declaration for ‘Pta* tesseract::ClipAndSimplifyBaseline(Pta*, Pta*, WritingDirection)’ [-Wmissing-declarations]
414 | Pta *ClipAndSimplifyBaseline(Pta *bottom_pts, Pta *baseline_pts,
| ^~~~~~~~~~~~~~~~~~~~~~~
tesseract/src/api/pagerenderer.cpp:478:6: warning: no previous declaration for ‘Pta* tesseract::FitBaselineIntoLinePolygon(Pta*, Pta*, WritingDirection)’ [-Wmissing-declarations]
478 | Pta *FitBaselineIntoLinePolygon(Pta *bottom_pts, Pta *baseline_pts,
| ^~~~~~~~~~~~~~~~~~~~~~~~~~
tesseract/src/api/pagerenderer.cpp:601:13: warning: no previous declaration for ‘const char* tesseract::WritingDirectionToStr(int)’ [-Wmissing-declarations]
601 | const char *WritingDirectionToStr(int wd) {
| ^~~~~~~~~~~~~~~~~~~~~
cc1plus: warning: command-line option ‘-Wstrict-prototypes’ is valid for C/ObjC but not for C++
cc1plus: warning: command-line option ‘-Wmissing-prototypes’ is valid for C/ObjC but not for C++
cc1plus: warning: ‘-Werror=’ argument ‘-Werror=declaration-after-statement’ is not valid for C++
cc1plus: warning: command-line option ‘-Wstrict-prototypes’ is valid for C/ObjC but not for C++
cc1plus: warning: command-line option ‘-Wmissing-prototypes’ is valid for C/ObjC but not for C++
cc1plus: warning: ‘-Werror=’ argument ‘-Werror=declaration-after-statement’ is not valid for C++
cc1plus: warning: command-line option ‘-Wstrict-prototypes’ is valid for C/ObjC but not for C++
cc1plus: warning: command-line option ‘-Wmissing-prototypes’ is valid for C/ObjC but not for C++
cc1plus: warning: ‘-Werror=’ argument ‘-Werror=declaration-after-statement’ is not valid for C++
cc1plus: warning: command-line option ‘-Wstrict-prototypes’ is valid for C/ObjC but not for C++
cc1plus: warning: command-line option ‘-Wmissing-prototypes’ is valid for C/ObjC but not for C++
cc1plus: warning: ‘-Werror=’ argument ‘-Werror=declaration-after-statement’ is not valid for C++
cc1plus: warning: command-line option ‘-Wstrict-prototypes’ is valid for C/ObjC but not for C++
cc1plus: warning: command-line option ‘-Wmissing-prototypes’ is valid for C/ObjC but not for C++
cc1plus: warning: ‘-Werror=’ argument ‘-Werror=declaration-after-statement’ is not valid for C++
cc1plus: warning: command-line option ‘-Wstrict-prototypes’ is valid for C/ObjC but not for C++
cc1plus: warning: command-line option ‘-Wmissing-prototypes’ is valid for C/ObjC but not for C++
cc1plus: warning: ‘-Werror=’ argument ‘-Werror=declaration-after-statement’ is not valid for C++
cc1plus: warning: command-line option ‘-Wstrict-prototypes’ is valid for C/ObjC but not for C++
cc1plus: warning: command-line option ‘-Wmissing-prototypes’ is valid for C/ObjC but not for C++
cc1plus: warning: ‘-Werror=’ argument ‘-Werror=declaration-after-statement’ is not valid for C++
cc1plus: warning: command-line option ‘-Wstrict-prototypes’ is valid for C/ObjC but not for C++
cc1plus: warning: command-line option ‘-Wmissing-prototypes’ is valid for C/ObjC but not for C++
cc1plus: warning: ‘-Werror=’ argument ‘-Werror=declaration-after-statement’ is not valid for C++
cc1plus: warning: command-line option ‘-Wstrict-prototypes’ is valid for C/ObjC but not for C++
cc1plus: warning: command-line option ‘-Wmissing-prototypes’ is valid for C/ObjC but not for C++
cc1plus: warning: ‘-Werror=’ argument ‘-Werror=declaration-after-statement’ is not valid for C++
cc1plus: warning: command-line option ‘-Wstrict-prototypes’ is valid for C/ObjC but not for C++
cc1plus: warning: command-line option ‘-Wmissing-prototypes’ is valid for C/ObjC but not for C++
cc1plus: warning: ‘-Werror=’ argument ‘-Werror=declaration-after-statement’ is not valid for C++
cc1plus: warning: command-line option ‘-Wstrict-prototypes’ is valid for C/ObjC but not for C++
cc1plus: warning: command-line option ‘-Wmissing-prototypes’ is valid for C/ObjC but not for C++
cc1plus: warning: ‘-Werror=’ argument ‘-Werror=declaration-after-statement’ is not valid for C++
cc1plus: warning: command-line option ‘-Wstrict-prototypes’ is valid for C/ObjC but not for C++
cc1plus: warning: command-line option ‘-Wmissing-prototypes’ is valid for C/ObjC but not for C++
cc1plus: warning: ‘-Werror=’ argument ‘-Werror=declaration-after-statement’ is not valid for C++
cc1plus: warning: command-line option ‘-Wstrict-prototypes’ is valid for C/ObjC but not for C++
cc1plus: warning: command-line option ‘-Wmissing-prototypes’ is valid for C/ObjC but not for C++
cc1plus: warning: ‘-Werror=’ argument ‘-Werror=declaration-after-statement’ is not valid for C++
cc1plus: warning: command-line option ‘-Wstrict-prototypes’ is valid for C/ObjC but not for C++
cc1plus: warning: command-line option ‘-Wmissing-prototypes’ is valid for C/ObjC but not for C++
cc1plus: warning: ‘-Werror=’ argument ‘-Werror=declaration-after-statement’ is not valid for C++
cc1plus: warning: command-line option ‘-Wstrict-prototypes’ is valid for C/ObjC but not for C++
cc1plus: warning: command-line option ‘-Wmissing-prototypes’ is valid for C/ObjC but not for C++
cc1plus: warning: ‘-Werror=’ argument ‘-Werror=declaration-after-statement’ is not valid for C++
tesseract/src/ccmain/pagesegmain.cpp:249:13: warning: ‘void tesseract::AddAllScriptsConverted(const UNICHARSET&, const UNICHARSET&, std::vector*)’ defined but not used [-Wunused-function]
249 | static void AddAllScriptsConverted(const UNICHARSET &sid_set, const UNICHARSET &osd_set,
| ^~~~~~~~~~~~~~~~~~~~~~
cc1plus: warning: command-line option ‘-Wstrict-prototypes’ is valid for C/ObjC but not for C++
cc1plus: warning: command-line option ‘-Wmissing-prototypes’ is valid for C/ObjC but not for C++
cc1plus: warning: ‘-Werror=’ argument ‘-Werror=declaration-after-statement’ is not valid for C++
cc1plus: warning: command-line option ‘-Wstrict-prototypes’ is valid for C/ObjC but not for C++
cc1plus: warning: command-line option ‘-Wmissing-prototypes’ is valid for C/ObjC but not for C++
cc1plus: warning: ‘-Werror=’ argument ‘-Werror=declaration-after-statement’ is not valid for C++
cc1plus: warning: command-line option ‘-Wstrict-prototypes’ is valid for C/ObjC but not for C++
cc1plus: warning: command-line option ‘-Wmissing-prototypes’ is valid for C/ObjC but not for C++
cc1plus: warning: ‘-Werror=’ argument ‘-Werror=declaration-after-statement’ is not valid for C++
cc1plus: warning: command-line option ‘-Wstrict-prototypes’ is valid for C/ObjC but not for C++
cc1plus: warning: command-line option ‘-Wmissing-prototypes’ is valid for C/ObjC but not for C++
cc1plus: warning: ‘-Werror=’ argument ‘-Werror=declaration-after-statement’ is not valid for C++
cc1plus: warning: command-line option ‘-Wstrict-prototypes’ is valid for C/ObjC but not for C++
cc1plus: warning: command-line option ‘-Wmissing-prototypes’ is valid for C/ObjC but not for C++
cc1plus: warning: ‘-Werror=’ argument ‘-Werror=declaration-after-statement’ is not valid for C++
cc1plus: warning: command-line option ‘-Wstrict-prototypes’ is valid for C/ObjC but not for C++
cc1plus: warning: command-line option ‘-Wmissing-prototypes’ is valid for C/ObjC but not for C++
cc1plus: warning: ‘-Werror=’ argument ‘-Werror=declaration-after-statement’ is not valid for C++
cc1plus: warning: command-line option ‘-Wstrict-prototypes’ is valid for C/ObjC but not for C++
cc1plus: warning: command-line option ‘-Wmissing-prototypes’ is valid for C/ObjC but not for C++
cc1plus: warning: ‘-Werror=’ argument ‘-Werror=declaration-after-statement’ is not valid for C++
cc1plus: warning: command-line option ‘-Wstrict-prototypes’ is valid for C/ObjC but not for C++
cc1plus: warning: command-line option ‘-Wmissing-prototypes’ is valid for C/ObjC but not for C++
cc1plus: warning: ‘-Werror=’ argument ‘-Werror=declaration-after-statement’ is not valid for C++
cc1plus: warning: command-line option ‘-Wstrict-prototypes’ is valid for C/ObjC but not for C++
cc1plus: warning: command-line option ‘-Wmissing-prototypes’ is valid for C/ObjC but not for C++
cc1plus: warning: ‘-Werror=’ argument ‘-Werror=declaration-after-statement’ is not valid for C++
cc1plus: warning: command-line option ‘-Wstrict-prototypes’ is valid for C/ObjC but not for C++
cc1plus: warning: command-line option ‘-Wmissing-prototypes’ is valid for C/ObjC but not for C++
cc1plus: warning: ‘-Werror=’ argument ‘-Werror=declaration-after-statement’ is not valid for C++
cc1plus: warning: command-line option ‘-Wstrict-prototypes’ is valid for C/ObjC but not for C++
cc1plus: warning: command-line option ‘-Wmissing-prototypes’ is valid for C/ObjC but not for C++
cc1plus: warning: ‘-Werror=’ argument ‘-Werror=declaration-after-statement’ is not valid for C++
cc1plus: warning: command-line option ‘-Wstrict-prototypes’ is valid for C/ObjC but not for C++
cc1plus: warning: command-line option ‘-Wmissing-prototypes’ is valid for C/ObjC but not for C++
cc1plus: warning: ‘-Werror=’ argument ‘-Werror=declaration-after-statement’ is not valid for C++
cc1plus: warning: command-line option ‘-Wstrict-prototypes’ is valid for C/ObjC but not for C++
cc1plus: warning: command-line option ‘-Wmissing-prototypes’ is valid for C/ObjC but not for C++
cc1plus: warning: ‘-Werror=’ argument ‘-Werror=declaration-after-statement’ is not valid for C++
cc1plus: warning: command-line option ‘-Wstrict-prototypes’ is valid for C/ObjC but not for C++
cc1plus: warning: command-line option ‘-Wmissing-prototypes’ is valid for C/ObjC but not for C++
cc1plus: warning: ‘-Werror=’ argument ‘-Werror=declaration-after-statement’ is not valid for C++
cc1plus: warning: command-line option ‘-Wstrict-prototypes’ is valid for C/ObjC but not for C++
cc1plus: warning: command-line option ‘-Wmissing-prototypes’ is valid for C/ObjC but not for C++
cc1plus: warning: ‘-Werror=’ argument ‘-Werror=declaration-after-statement’ is not valid for C++
cc1plus: warning: command-line option ‘-Wstrict-prototypes’ is valid for C/ObjC but not for C++
cc1plus: warning: command-line option ‘-Wmissing-prototypes’ is valid for C/ObjC but not for C++
cc1plus: warning: ‘-Werror=’ argument ‘-Werror=declaration-after-statement’ is not valid for C++
cc1plus: warning: command-line option ‘-Wstrict-prototypes’ is valid for C/ObjC but not for C++
cc1plus: warning: command-line option ‘-Wmissing-prototypes’ is valid for C/ObjC but not for C++
cc1plus: warning: ‘-Werror=’ argument ‘-Werror=declaration-after-statement’ is not valid for C++
cc1plus: warning: command-line option ‘-Wstrict-prototypes’ is valid for C/ObjC but not for C++
cc1plus: warning: command-line option ‘-Wmissing-prototypes’ is valid for C/ObjC but not for C++
cc1plus: warning: ‘-Werror=’ argument ‘-Werror=declaration-after-statement’ is not valid for C++
cc1plus: warning: command-line option ‘-Wstrict-prototypes’ is valid for C/ObjC but not for C++
cc1plus: warning: command-line option ‘-Wmissing-prototypes’ is valid for C/ObjC but not for C++
cc1plus: warning: ‘-Werror=’ argument ‘-Werror=declaration-after-statement’ is not valid for C++
cc1plus: warning: command-line option ‘-Wstrict-prototypes’ is valid for C/ObjC but not for C++
cc1plus: warning: command-line option ‘-Wmissing-prototypes’ is valid for C/ObjC but not for C++
cc1plus: warning: ‘-Werror=’ argument ‘-Werror=declaration-after-statement’ is not valid for C++
cc1plus: warning: command-line option ‘-Wstrict-prototypes’ is valid for C/ObjC but not for C++
cc1plus: warning: command-line option ‘-Wmissing-prototypes’ is valid for C/ObjC but not for C++
cc1plus: warning: ‘-Werror=’ argument ‘-Werror=declaration-after-statement’ is not valid for C++
cc1plus: warning: command-line option ‘-Wstrict-prototypes’ is valid for C/ObjC but not for C++
cc1plus: warning: command-line option ‘-Wmissing-prototypes’ is valid for C/ObjC but not for C++
cc1plus: warning: ‘-Werror=’ argument ‘-Werror=declaration-after-statement’ is not valid for C++
cc1plus: warning: command-line option ‘-Wstrict-prototypes’ is valid for C/ObjC but not for C++
cc1plus: warning: command-line option ‘-Wmissing-prototypes’ is valid for C/ObjC but not for C++
cc1plus: warning: ‘-Werror=’ argument ‘-Werror=declaration-after-statement’ is not valid for C++
cc1plus: warning: command-line option ‘-Wstrict-prototypes’ is valid for C/ObjC but not for C++
cc1plus: warning: command-line option ‘-Wmissing-prototypes’ is valid for C/ObjC but not for C++
cc1plus: warning: ‘-Werror=’ argument ‘-Werror=declaration-after-statement’ is not valid for C++
cc1plus: warning: command-line option ‘-Wstrict-prototypes’ is valid for C/ObjC but not for C++
cc1plus: warning: command-line option ‘-Wmissing-prototypes’ is valid for C/ObjC but not for C++
cc1plus: warning: ‘-Werror=’ argument ‘-Werror=declaration-after-statement’ is not valid for C++
cc1plus: warning: command-line option ‘-Wstrict-prototypes’ is valid for C/ObjC but not for C++
cc1plus: warning: command-line option ‘-Wmissing-prototypes’ is valid for C/ObjC but not for C++
cc1plus: warning: ‘-Werror=’ argument ‘-Werror=declaration-after-statement’ is not valid for C++
cc1plus: warning: command-line option ‘-Wstrict-prototypes’ is valid for C/ObjC but not for C++
cc1plus: warning: command-line option ‘-Wmissing-prototypes’ is valid for C/ObjC but not for C++
cc1plus: warning: ‘-Werror=’ argument ‘-Werror=declaration-after-statement’ is not valid for C++
cc1plus: warning: command-line option ‘-Wstrict-prototypes’ is valid for C/ObjC but not for C++
cc1plus: warning: command-line option ‘-Wmissing-prototypes’ is valid for C/ObjC but not for C++
cc1plus: warning: ‘-Werror=’ argument ‘-Werror=declaration-after-statement’ is not valid for C++
cc1plus: warning: command-line option ‘-Wstrict-prototypes’ is valid for C/ObjC but not for C++
cc1plus: warning: command-line option ‘-Wmissing-prototypes’ is valid for C/ObjC but not for C++
cc1plus: warning: ‘-Werror=’ argument ‘-Werror=declaration-after-statement’ is not valid for C++
cc1plus: warning: command-line option ‘-Wstrict-prototypes’ is valid for C/ObjC but not for C++
cc1plus: warning: command-line option ‘-Wmissing-prototypes’ is valid for C/ObjC but not for C++
cc1plus: warning: ‘-Werror=’ argument ‘-Werror=declaration-after-statement’ is not valid for C++
cc1plus: warning: command-line option ‘-Wstrict-prototypes’ is valid for C/ObjC but not for C++
cc1plus: warning: command-line option ‘-Wmissing-prototypes’ is valid for C/ObjC but not for C++
cc1plus: warning: ‘-Werror=’ argument ‘-Werror=declaration-after-statement’ is not valid for C++
cc1plus: warning: command-line option ‘-Wstrict-prototypes’ is valid for C/ObjC but not for C++
cc1plus: warning: command-line option ‘-Wmissing-prototypes’ is valid for C/ObjC but not for C++
cc1plus: warning: ‘-Werror=’ argument ‘-Werror=declaration-after-statement’ is not valid for C++
cc1plus: warning: command-line option ‘-Wstrict-prototypes’ is valid for C/ObjC but not for C++
cc1plus: warning: command-line option ‘-Wmissing-prototypes’ is valid for C/ObjC but not for C++
cc1plus: warning: ‘-Werror=’ argument ‘-Werror=declaration-after-statement’ is not valid for C++
cc1plus: warning: command-line option ‘-Wstrict-prototypes’ is valid for C/ObjC but not for C++
cc1plus: warning: command-line option ‘-Wmissing-prototypes’ is valid for C/ObjC but not for C++
cc1plus: warning: ‘-Werror=’ argument ‘-Werror=declaration-after-statement’ is not valid for C++
cc1plus: warning: command-line option ‘-Wstrict-prototypes’ is valid for C/ObjC but not for C++
cc1plus: warning: command-line option ‘-Wmissing-prototypes’ is valid for C/ObjC but not for C++
cc1plus: warning: ‘-Werror=’ argument ‘-Werror=declaration-after-statement’ is not valid for C++
cc1plus: warning: command-line option ‘-Wstrict-prototypes’ is valid for C/ObjC but not for C++
cc1plus: warning: command-line option ‘-Wmissing-prototypes’ is valid for C/ObjC but not for C++
cc1plus: warning: ‘-Werror=’ argument ‘-Werror=declaration-after-statement’ is not valid for C++
cc1plus: warning: command-line option ‘-Wstrict-prototypes’ is valid for C/ObjC but not for C++
cc1plus: warning: command-line option ‘-Wmissing-prototypes’ is valid for C/ObjC but not for C++
cc1plus: warning: ‘-Werror=’ argument ‘-Werror=declaration-after-statement’ is not valid for C++
cc1plus: warning: command-line option ‘-Wstrict-prototypes’ is valid for C/ObjC but not for C++
cc1plus: warning: command-line option ‘-Wmissing-prototypes’ is valid for C/ObjC but not for C++
cc1plus: warning: ‘-Werror=’ argument ‘-Werror=declaration-after-statement’ is not valid for C++
cc1plus: warning: command-line option ‘-Wstrict-prototypes’ is valid for C/ObjC but not for C++
cc1plus: warning: command-line option ‘-Wmissing-prototypes’ is valid for C/ObjC but not for C++
cc1plus: warning: ‘-Werror=’ argument ‘-Werror=declaration-after-statement’ is not valid for C++
cc1plus: warning: command-line option ‘-Wstrict-prototypes’ is valid for C/ObjC but not for C++
cc1plus: warning: command-line option ‘-Wmissing-prototypes’ is valid for C/ObjC but not for C++
cc1plus: warning: ‘-Werror=’ argument ‘-Werror=declaration-after-statement’ is not valid for C++
cc1plus: warning: command-line option ‘-Wstrict-prototypes’ is valid for C/ObjC but not for C++
cc1plus: warning: command-line option ‘-Wmissing-prototypes’ is valid for C/ObjC but not for C++
cc1plus: warning: ‘-Werror=’ argument ‘-Werror=declaration-after-statement’ is not valid for C++
cc1plus: warning: command-line option ‘-Wstrict-prototypes’ is valid for C/ObjC but not for C++
cc1plus: warning: command-line option ‘-Wmissing-prototypes’ is valid for C/ObjC but not for C++
cc1plus: warning: ‘-Werror=’ argument ‘-Werror=declaration-after-statement’ is not valid for C++
cc1plus: warning: command-line option ‘-Wstrict-prototypes’ is valid for C/ObjC but not for C++
cc1plus: warning: command-line option ‘-Wmissing-prototypes’ is valid for C/ObjC but not for C++
cc1plus: warning: ‘-Werror=’ argument ‘-Werror=declaration-after-statement’ is not valid for C++
cc1plus: warning: command-line option ‘-Wstrict-prototypes’ is valid for C/ObjC but not for C++
cc1plus: warning: command-line option ‘-Wmissing-prototypes’ is valid for C/ObjC but not for C++
cc1plus: warning: ‘-Werror=’ argument ‘-Werror=declaration-after-statement’ is not valid for C++
cc1plus: warning: command-line option ‘-Wstrict-prototypes’ is valid for C/ObjC but not for C++
cc1plus: warning: command-line option ‘-Wmissing-prototypes’ is valid for C/ObjC but not for C++
cc1plus: warning: ‘-Werror=’ argument ‘-Werror=declaration-after-statement’ is not valid for C++
cc1plus: warning: command-line option ‘-Wstrict-prototypes’ is valid for C/ObjC but not for C++
cc1plus: warning: command-line option ‘-Wmissing-prototypes’ is valid for C/ObjC but not for C++
cc1plus: warning: ‘-Werror=’ argument ‘-Werror=declaration-after-statement’ is not valid for C++
cc1plus: warning: command-line option ‘-Wstrict-prototypes’ is valid for C/ObjC but not for C++
cc1plus: warning: command-line option ‘-Wmissing-prototypes’ is valid for C/ObjC but not for C++
cc1plus: warning: ‘-Werror=’ argument ‘-Werror=declaration-after-statement’ is not valid for C++
cc1plus: warning: command-line option ‘-Wstrict-prototypes’ is valid for C/ObjC but not for C++
cc1plus: warning: command-line option ‘-Wmissing-prototypes’ is valid for C/ObjC but not for C++
cc1plus: warning: ‘-Werror=’ argument ‘-Werror=declaration-after-statement’ is not valid for C++
cc1plus: warning: command-line option ‘-Wstrict-prototypes’ is valid for C/ObjC but not for C++
cc1plus: warning: command-line option ‘-Wmissing-prototypes’ is valid for C/ObjC but not for C++
cc1plus: warning: ‘-Werror=’ argument ‘-Werror=declaration-after-statement’ is not valid for C++
cc1plus: warning: command-line option ‘-Wstrict-prototypes’ is valid for C/ObjC but not for C++
cc1plus: warning: command-line option ‘-Wmissing-prototypes’ is valid for C/ObjC but not for C++
cc1plus: warning: ‘-Werror=’ argument ‘-Werror=declaration-after-statement’ is not valid for C++
cc1plus: warning: command-line option ‘-Wstrict-prototypes’ is valid for C/ObjC but not for C++
cc1plus: warning: command-line option ‘-Wmissing-prototypes’ is valid for C/ObjC but not for C++
cc1plus: warning: ‘-Werror=’ argument ‘-Werror=declaration-after-statement’ is not valid for C++
cc1plus: warning: command-line option ‘-Wstrict-prototypes’ is valid for C/ObjC but not for C++
cc1plus: warning: command-line option ‘-Wmissing-prototypes’ is valid for C/ObjC but not for C++
cc1plus: warning: ‘-Werror=’ argument ‘-Werror=declaration-after-statement’ is not valid for C++
cc1plus: warning: command-line option ‘-Wstrict-prototypes’ is valid for C/ObjC but not for C++
cc1plus: warning: command-line option ‘-Wmissing-prototypes’ is valid for C/ObjC but not for C++
cc1plus: warning: ‘-Werror=’ argument ‘-Werror=declaration-after-statement’ is not valid for C++
cc1plus: warning: command-line option ‘-Wstrict-prototypes’ is valid for C/ObjC but not for C++
cc1plus: warning: command-line option ‘-Wmissing-prototypes’ is valid for C/ObjC but not for C++
cc1plus: warning: ‘-Werror=’ argument ‘-Werror=declaration-after-statement’ is not valid for C++
cc1plus: warning: command-line option ‘-Wstrict-prototypes’ is valid for C/ObjC but not for C++
cc1plus: warning: command-line option ‘-Wmissing-prototypes’ is valid for C/ObjC but not for C++
cc1plus: warning: ‘-Werror=’ argument ‘-Werror=declaration-after-statement’ is not valid for C++
cc1plus: warning: command-line option ‘-Wstrict-prototypes’ is valid for C/ObjC but not for C++
cc1plus: warning: command-line option ‘-Wmissing-prototypes’ is valid for C/ObjC but not for C++
cc1plus: warning: ‘-Werror=’ argument ‘-Werror=declaration-after-statement’ is not valid for C++
cc1plus: warning: command-line option ‘-Wstrict-prototypes’ is valid for C/ObjC but not for C++
cc1plus: warning: command-line option ‘-Wmissing-prototypes’ is valid for C/ObjC but not for C++
cc1plus: warning: ‘-Werror=’ argument ‘-Werror=declaration-after-statement’ is not valid for C++
tesseract/src/textord/bbgrid.cpp:250:7: warning: no previous declaration for ‘tesseract::Image tesseract::TraceBlockOnReducedPix(BLOCK*, int, ICOORD, int*, int*)’ [-Wmissing-declarations]
250 | Image TraceBlockOnReducedPix(BLOCK *block, int gridsize, ICOORD bleft, int *left, int *bottom) {
| ^~~~~~~~~~~~~~~~~~~~~~
cc1plus: warning: command-line option ‘-Wstrict-prototypes’ is valid for C/ObjC but not for C++
cc1plus: warning: command-line option ‘-Wmissing-prototypes’ is valid for C/ObjC but not for C++
cc1plus: warning: ‘-Werror=’ argument ‘-Werror=declaration-after-statement’ is not valid for C++
cc1plus: warning: command-line option ‘-Wstrict-prototypes’ is valid for C/ObjC but not for C++
cc1plus: warning: command-line option ‘-Wmissing-prototypes’ is valid for C/ObjC but not for C++
cc1plus: warning: ‘-Werror=’ argument ‘-Werror=declaration-after-statement’ is not valid for C++
cc1plus: warning: command-line option ‘-Wstrict-prototypes’ is valid for C/ObjC but not for C++
cc1plus: warning: command-line option ‘-Wmissing-prototypes’ is valid for C/ObjC but not for C++
cc1plus: warning: ‘-Werror=’ argument ‘-Werror=declaration-after-statement’ is not valid for C++
cc1plus: warning: command-line option ‘-Wstrict-prototypes’ is valid for C/ObjC but not for C++
cc1plus: warning: command-line option ‘-Wmissing-prototypes’ is valid for C/ObjC but not for C++
cc1plus: warning: ‘-Werror=’ argument ‘-Werror=declaration-after-statement’ is not valid for C++
cc1plus: warning: command-line option ‘-Wstrict-prototypes’ is valid for C/ObjC but not for C++
cc1plus: warning: command-line option ‘-Wmissing-prototypes’ is valid for C/ObjC but not for C++
cc1plus: warning: ‘-Werror=’ argument ‘-Werror=declaration-after-statement’ is not valid for C++
cc1plus: warning: command-line option ‘-Wstrict-prototypes’ is valid for C/ObjC but not for C++
cc1plus: warning: command-line option ‘-Wmissing-prototypes’ is valid for C/ObjC but not for C++
cc1plus: warning: ‘-Werror=’ argument ‘-Werror=declaration-after-statement’ is not valid for C++
cc1plus: warning: command-line option ‘-Wstrict-prototypes’ is valid for C/ObjC but not for C++
cc1plus: warning: command-line option ‘-Wmissing-prototypes’ is valid for C/ObjC but not for C++
cc1plus: warning: ‘-Werror=’ argument ‘-Werror=declaration-after-statement’ is not valid for C++
cc1plus: warning: command-line option ‘-Wstrict-prototypes’ is valid for C/ObjC but not for C++
cc1plus: warning: command-line option ‘-Wmissing-prototypes’ is valid for C/ObjC but not for C++
cc1plus: warning: ‘-Werror=’ argument ‘-Werror=declaration-after-statement’ is not valid for C++
cc1plus: warning: command-line option ‘-Wstrict-prototypes’ is valid for C/ObjC but not for C++
cc1plus: warning: command-line option ‘-Wmissing-prototypes’ is valid for C/ObjC but not for C++
cc1plus: warning: ‘-Werror=’ argument ‘-Werror=declaration-after-statement’ is not valid for C++
cc1plus: warning: command-line option ‘-Wstrict-prototypes’ is valid for C/ObjC but not for C++
cc1plus: warning: command-line option ‘-Wmissing-prototypes’ is valid for C/ObjC but not for C++
cc1plus: warning: ‘-Werror=’ argument ‘-Werror=declaration-after-statement’ is not valid for C++
cc1plus: warning: command-line option ‘-Wstrict-prototypes’ is valid for C/ObjC but not for C++
cc1plus: warning: command-line option ‘-Wmissing-prototypes’ is valid for C/ObjC but not for C++
cc1plus: warning: ‘-Werror=’ argument ‘-Werror=declaration-after-statement’ is not valid for C++
cc1plus: warning: command-line option ‘-Wstrict-prototypes’ is valid for C/ObjC but not for C++
cc1plus: warning: command-line option ‘-Wmissing-prototypes’ is valid for C/ObjC but not for C++
cc1plus: warning: ‘-Werror=’ argument ‘-Werror=declaration-after-statement’ is not valid for C++
cc1plus: warning: command-line option ‘-Wstrict-prototypes’ is valid for C/ObjC but not for C++
cc1plus: warning: command-line option ‘-Wmissing-prototypes’ is valid for C/ObjC but not for C++
cc1plus: warning: ‘-Werror=’ argument ‘-Werror=declaration-after-statement’ is not valid for C++
cc1plus: warning: command-line option ‘-Wstrict-prototypes’ is valid for C/ObjC but not for C++
cc1plus: warning: command-line option ‘-Wmissing-prototypes’ is valid for C/ObjC but not for C++
cc1plus: warning: ‘-Werror=’ argument ‘-Werror=declaration-after-statement’ is not valid for C++
cc1plus: warning: command-line option ‘-Wstrict-prototypes’ is valid for C/ObjC but not for C++
cc1plus: warning: command-line option ‘-Wmissing-prototypes’ is valid for C/ObjC but not for C++
cc1plus: warning: ‘-Werror=’ argument ‘-Werror=declaration-after-statement’ is not valid for C++
cc1plus: warning: command-line option ‘-Wstrict-prototypes’ is valid for C/ObjC but not for C++
cc1plus: warning: command-line option ‘-Wmissing-prototypes’ is valid for C/ObjC but not for C++
cc1plus: warning: ‘-Werror=’ argument ‘-Werror=declaration-after-statement’ is not valid for C++
cc1plus: warning: command-line option ‘-Wstrict-prototypes’ is valid for C/ObjC but not for C++
cc1plus: warning: command-line option ‘-Wmissing-prototypes’ is valid for C/ObjC but not for C++
cc1plus: warning: ‘-Werror=’ argument ‘-Werror=declaration-after-statement’ is not valid for C++
tesseract/src/textord/makerow.cpp: In function ‘void tesseract::delete_non_dropout_rows(TO_BLOCK*, float, FCOORD, int32_t, bool)’:
tesseract/src/textord/makerow.cpp:625:11: warning: variable ‘xleft’ set but not used [-Wunused-but-set-variable]
625 | int32_t xleft; // of block
| ^~~~~
tesseract/src/textord/makerow.cpp:626:11: warning: variable ‘ybottom’ set but not used [-Wunused-but-set-variable]
626 | int32_t ybottom; // of block
| ^~~~~~~
tesseract/src/textord/makerow.cpp: In function ‘void tesseract::assign_blobs_to_rows(TO_BLOCK*, float*, int, bool, bool, bool)’:
tesseract/src/textord/makerow.cpp:2281:9: warning: variable ‘ycoord’ set but not used [-Wunused-but-set-variable]
2281 | float ycoord; // current y
| ^~~~~~
cc1plus: warning: command-line option ‘-Wstrict-prototypes’ is valid for C/ObjC but not for C++
cc1plus: warning: command-line option ‘-Wmissing-prototypes’ is valid for C/ObjC but not for C++
cc1plus: warning: ‘-Werror=’ argument ‘-Werror=declaration-after-statement’ is not valid for C++
cc1plus: warning: command-line option ‘-Wstrict-prototypes’ is valid for C/ObjC but not for C++
cc1plus: warning: command-line option ‘-Wmissing-prototypes’ is valid for C/ObjC but not for C++
cc1plus: warning: ‘-Werror=’ argument ‘-Werror=declaration-after-statement’ is not valid for C++
cc1plus: warning: command-line option ‘-Wstrict-prototypes’ is valid for C/ObjC but not for C++
cc1plus: warning: command-line option ‘-Wmissing-prototypes’ is valid for C/ObjC but not for C++
cc1plus: warning: ‘-Werror=’ argument ‘-Werror=declaration-after-statement’ is not valid for C++
cc1plus: warning: command-line option ‘-Wstrict-prototypes’ is valid for C/ObjC but not for C++
cc1plus: warning: command-line option ‘-Wmissing-prototypes’ is valid for C/ObjC but not for C++
cc1plus: warning: ‘-Werror=’ argument ‘-Werror=declaration-after-statement’ is not valid for C++
cc1plus: warning: command-line option ‘-Wstrict-prototypes’ is valid for C/ObjC but not for C++
cc1plus: warning: command-line option ‘-Wmissing-prototypes’ is valid for C/ObjC but not for C++
cc1plus: warning: ‘-Werror=’ argument ‘-Werror=declaration-after-statement’ is not valid for C++
cc1plus: warning: command-line option ‘-Wstrict-prototypes’ is valid for C/ObjC but not for C++
cc1plus: warning: command-line option ‘-Wmissing-prototypes’ is valid for C/ObjC but not for C++
cc1plus: warning: ‘-Werror=’ argument ‘-Werror=declaration-after-statement’ is not valid for C++
cc1plus: warning: command-line option ‘-Wstrict-prototypes’ is valid for C/ObjC but not for C++
cc1plus: warning: command-line option ‘-Wmissing-prototypes’ is valid for C/ObjC but not for C++
cc1plus: warning: ‘-Werror=’ argument ‘-Werror=declaration-after-statement’ is not valid for C++
cc1plus: warning: command-line option ‘-Wstrict-prototypes’ is valid for C/ObjC but not for C++
cc1plus: warning: command-line option ‘-Wmissing-prototypes’ is valid for C/ObjC but not for C++
cc1plus: warning: ‘-Werror=’ argument ‘-Werror=declaration-after-statement’ is not valid for C++
cc1plus: warning: command-line option ‘-Wstrict-prototypes’ is valid for C/ObjC but not for C++
cc1plus: warning: command-line option ‘-Wmissing-prototypes’ is valid for C/ObjC but not for C++
cc1plus: warning: ‘-Werror=’ argument ‘-Werror=declaration-after-statement’ is not valid for C++
cc1plus: warning: command-line option ‘-Wstrict-prototypes’ is valid for C/ObjC but not for C++
cc1plus: warning: command-line option ‘-Wmissing-prototypes’ is valid for C/ObjC but not for C++
cc1plus: warning: ‘-Werror=’ argument ‘-Werror=declaration-after-statement’ is not valid for C++
cc1plus: warning: command-line option ‘-Wstrict-prototypes’ is valid for C/ObjC but not for C++
cc1plus: warning: command-line option ‘-Wmissing-prototypes’ is valid for C/ObjC but not for C++
cc1plus: warning: ‘-Werror=’ argument ‘-Werror=declaration-after-statement’ is not valid for C++
cc1plus: warning: command-line option ‘-Wstrict-prototypes’ is valid for C/ObjC but not for C++
cc1plus: warning: command-line option ‘-Wmissing-prototypes’ is valid for C/ObjC but not for C++
cc1plus: warning: ‘-Werror=’ argument ‘-Werror=declaration-after-statement’ is not valid for C++
cc1plus: warning: command-line option ‘-Wstrict-prototypes’ is valid for C/ObjC but not for C++
cc1plus: warning: command-line option ‘-Wmissing-prototypes’ is valid for C/ObjC but not for C++
cc1plus: warning: ‘-Werror=’ argument ‘-Werror=declaration-after-statement’ is not valid for C++
cc1plus: warning: command-line option ‘-Wstrict-prototypes’ is valid for C/ObjC but not for C++
cc1plus: warning: command-line option ‘-Wmissing-prototypes’ is valid for C/ObjC but not for C++
cc1plus: warning: ‘-Werror=’ argument ‘-Werror=declaration-after-statement’ is not valid for C++
cc1plus: warning: command-line option ‘-Wstrict-prototypes’ is valid for C/ObjC but not for C++
cc1plus: warning: command-line option ‘-Wmissing-prototypes’ is valid for C/ObjC but not for C++
cc1plus: warning: ‘-Werror=’ argument ‘-Werror=declaration-after-statement’ is not valid for C++
cc1plus: warning: command-line option ‘-Wstrict-prototypes’ is valid for C/ObjC but not for C++
cc1plus: warning: command-line option ‘-Wmissing-prototypes’ is valid for C/ObjC but not for C++
cc1plus: warning: ‘-Werror=’ argument ‘-Werror=declaration-after-statement’ is not valid for C++
cc1plus: warning: command-line option ‘-Wstrict-prototypes’ is valid for C/ObjC but not for C++
cc1plus: warning: command-line option ‘-Wmissing-prototypes’ is valid for C/ObjC but not for C++
cc1plus: warning: ‘-Werror=’ argument ‘-Werror=declaration-after-statement’ is not valid for C++
cc1plus: warning: command-line option ‘-Wstrict-prototypes’ is valid for C/ObjC but not for C++
cc1plus: warning: command-line option ‘-Wmissing-prototypes’ is valid for C/ObjC but not for C++
cc1plus: warning: ‘-Werror=’ argument ‘-Werror=declaration-after-statement’ is not valid for C++
cc1plus: warning: command-line option ‘-Wstrict-prototypes’ is valid for C/ObjC but not for C++
cc1plus: warning: command-line option ‘-Wmissing-prototypes’ is valid for C/ObjC but not for C++
cc1plus: warning: ‘-Werror=’ argument ‘-Werror=declaration-after-statement’ is not valid for C++
cc1plus: warning: command-line option ‘-Wstrict-prototypes’ is valid for C/ObjC but not for C++
cc1plus: warning: command-line option ‘-Wmissing-prototypes’ is valid for C/ObjC but not for C++
cc1plus: warning: ‘-Werror=’ argument ‘-Werror=declaration-after-statement’ is not valid for C++
tesseract/src/viewer/scrollview.cpp:61:20: warning: ‘tesseract::waiting_for_events_mu’ defined but not used [-Wunused-variable]
61 | static std::mutex *waiting_for_events_mu;
| ^~~~~~~~~~~~~~~~~~~~~
tesseract/src/viewer/scrollview.cpp:57:20: warning: ‘tesseract::svmap_mu’ defined but not used [-Wunused-variable]
57 | static std::mutex *svmap_mu;
| ^~~~~~~~
cc1plus: warning: command-line option ‘-Wstrict-prototypes’ is valid for C/ObjC but not for C++
cc1plus: warning: command-line option ‘-Wmissing-prototypes’ is valid for C/ObjC but not for C++
cc1plus: warning: ‘-Werror=’ argument ‘-Werror=declaration-after-statement’ is not valid for C++
cc1plus: warning: command-line option ‘-Wstrict-prototypes’ is valid for C/ObjC but not for C++
cc1plus: warning: command-line option ‘-Wmissing-prototypes’ is valid for C/ObjC but not for C++
cc1plus: warning: ‘-Werror=’ argument ‘-Werror=declaration-after-statement’ is not valid for C++
cc1plus: warning: command-line option ‘-Wstrict-prototypes’ is valid for C/ObjC but not for C++
cc1plus: warning: command-line option ‘-Wmissing-prototypes’ is valid for C/ObjC but not for C++
cc1plus: warning: ‘-Werror=’ argument ‘-Werror=declaration-after-statement’ is not valid for C++
cc1plus: warning: command-line option ‘-Wstrict-prototypes’ is valid for C/ObjC but not for C++
cc1plus: warning: command-line option ‘-Wmissing-prototypes’ is valid for C/ObjC but not for C++
cc1plus: warning: ‘-Werror=’ argument ‘-Werror=declaration-after-statement’ is not valid for C++
cc1plus: warning: command-line option ‘-Wstrict-prototypes’ is valid for C/ObjC but not for C++
cc1plus: warning: command-line option ‘-Wmissing-prototypes’ is valid for C/ObjC but not for C++
cc1plus: warning: ‘-Werror=’ argument ‘-Werror=declaration-after-statement’ is not valid for C++
cc1plus: warning: command-line option ‘-Wstrict-prototypes’ is valid for C/ObjC but not for C++
cc1plus: warning: command-line option ‘-Wmissing-prototypes’ is valid for C/ObjC but not for C++
cc1plus: warning: ‘-Werror=’ argument ‘-Werror=declaration-after-statement’ is not valid for C++
cc1plus: warning: command-line option ‘-Wstrict-prototypes’ is valid for C/ObjC but not for C++
cc1plus: warning: command-line option ‘-Wmissing-prototypes’ is valid for C/ObjC but not for C++
cc1plus: warning: ‘-Werror=’ argument ‘-Werror=declaration-after-statement’ is not valid for C++
cc1plus: warning: command-line option ‘-Wstrict-prototypes’ is valid for C/ObjC but not for C++
cc1plus: warning: command-line option ‘-Wmissing-prototypes’ is valid for C/ObjC but not for C++
cc1plus: warning: ‘-Werror=’ argument ‘-Werror=declaration-after-statement’ is not valid for C++
cc1plus: warning: command-line option ‘-Wstrict-prototypes’ is valid for C/ObjC but not for C++
cc1plus: warning: command-line option ‘-Wmissing-prototypes’ is valid for C/ObjC but not for C++
cc1plus: warning: ‘-Werror=’ argument ‘-Werror=declaration-after-statement’ is not valid for C++
cc1plus: warning: command-line option ‘-Wstrict-prototypes’ is valid for C/ObjC but not for C++
cc1plus: warning: command-line option ‘-Wmissing-prototypes’ is valid for C/ObjC but not for C++
cc1plus: warning: ‘-Werror=’ argument ‘-Werror=declaration-after-statement’ is not valid for C++
cc1plus: warning: command-line option ‘-Wstrict-prototypes’ is valid for C/ObjC but not for C++
cc1plus: warning: command-line option ‘-Wmissing-prototypes’ is valid for C/ObjC but not for C++
cc1plus: warning: ‘-Werror=’ argument ‘-Werror=declaration-after-statement’ is not valid for C++
cc1plus: warning: command-line option ‘-Wstrict-prototypes’ is valid for C/ObjC but not for C++
cc1plus: warning: command-line option ‘-Wmissing-prototypes’ is valid for C/ObjC but not for C++
cc1plus: warning: ‘-Werror=’ argument ‘-Werror=declaration-after-statement’ is not valid for C++
cc1plus: warning: command-line option ‘-Wstrict-prototypes’ is valid for C/ObjC but not for C++
cc1plus: warning: command-line option ‘-Wmissing-prototypes’ is valid for C/ObjC but not for C++
cc1plus: warning: ‘-Werror=’ argument ‘-Werror=declaration-after-statement’ is not valid for C++
cc1plus: warning: command-line option ‘-Wstrict-prototypes’ is valid for C/ObjC but not for C++
cc1plus: warning: command-line option ‘-Wmissing-prototypes’ is valid for C/ObjC but not for C++
cc1plus: warning: ‘-Werror=’ argument ‘-Werror=declaration-after-statement’ is not valid for C++
cc1plus: warning: command-line option ‘-Wstrict-prototypes’ is valid for C/ObjC but not for C++
cc1plus: warning: command-line option ‘-Wmissing-prototypes’ is valid for C/ObjC but not for C++
cc1plus: warning: ‘-Werror=’ argument ‘-Werror=declaration-after-statement’ is not valid for C++
cc1plus: warning: command-line option ‘-Wstrict-prototypes’ is valid for C/ObjC but not for C++
cc1plus: warning: command-line option ‘-Wmissing-prototypes’ is valid for C/ObjC but not for C++
cc1plus: warning: ‘-Werror=’ argument ‘-Werror=declaration-after-statement’ is not valid for C++
cc1plus: warning: command-line option ‘-Wstrict-prototypes’ is valid for C/ObjC but not for C++
cc1plus: warning: command-line option ‘-Wmissing-prototypes’ is valid for C/ObjC but not for C++
cc1plus: warning: ‘-Werror=’ argument ‘-Werror=declaration-after-statement’ is not valid for C++
cc1plus: warning: command-line option ‘-Wstrict-prototypes’ is valid for C/ObjC but not for C++
cc1plus: warning: command-line option ‘-Wmissing-prototypes’ is valid for C/ObjC but not for C++
cc1plus: warning: ‘-Werror=’ argument ‘-Werror=declaration-after-statement’ is not valid for C++
In file included from tesseract/src/ccutil/unicharset.cpp:19:
tesseract/src/ccutil/unicharset.h: In static member function ‘static tesseract::CHAR_FRAGMENT* tesseract::CHAR_FRAGMENT::parse_from_string(const char*)’:
tesseract/src/ccutil/unicharset.h:67:12: warning: ‘char* __builtin_strncpy(char*, const char*, long unsigned int)’ output may be truncated copying 30 bytes from a string of length 30 [-Wstringop-truncation]
67 | strncpy(this->unichar, uch, sizeof(this->unichar));
| ^
cc1plus: warning: command-line option ‘-Wstrict-prototypes’ is valid for C/ObjC but not for C++
cc1plus: warning: command-line option ‘-Wmissing-prototypes’ is valid for C/ObjC but not for C++
cc1plus: warning: ‘-Werror=’ argument ‘-Werror=declaration-after-statement’ is not valid for C++
cc1plus: warning: command-line option ‘-Wstrict-prototypes’ is valid for C/ObjC but not for C++
cc1plus: warning: command-line option ‘-Wmissing-prototypes’ is valid for C/ObjC but not for C++
cc1plus: warning: ‘-Werror=’ argument ‘-Werror=declaration-after-statement’ is not valid for C++
cc1plus: warning: command-line option ‘-Wstrict-prototypes’ is valid for C/ObjC but not for C++
cc1plus: warning: command-line option ‘-Wmissing-prototypes’ is valid for C/ObjC but not for C++
cc1plus: warning: ‘-Werror=’ argument ‘-Werror=declaration-after-statement’ is not valid for C++
cc1plus: warning: command-line option ‘-Wstrict-prototypes’ is valid for C/ObjC but not for C++
cc1plus: warning: command-line option ‘-Wmissing-prototypes’ is valid for C/ObjC but not for C++
cc1plus: warning: ‘-Werror=’ argument ‘-Werror=declaration-after-statement’ is not valid for C++
cc1plus: warning: command-line option ‘-Wstrict-prototypes’ is valid for C/ObjC but not for C++
cc1plus: warning: command-line option ‘-Wmissing-prototypes’ is valid for C/ObjC but not for C++
cc1plus: warning: ‘-Werror=’ argument ‘-Werror=declaration-after-statement’ is not valid for C++
cc1plus: warning: command-line option ‘-Wstrict-prototypes’ is valid for C/ObjC but not for C++
cc1plus: warning: command-line option ‘-Wmissing-prototypes’ is valid for C/ObjC but not for C++
cc1plus: warning: ‘-Werror=’ argument ‘-Werror=declaration-after-statement’ is not valid for C++
cc1plus: warning: command-line option ‘-Wstrict-prototypes’ is valid for C/ObjC but not for C++
cc1plus: warning: command-line option ‘-Wmissing-prototypes’ is valid for C/ObjC but not for C++
cc1plus: warning: ‘-Werror=’ argument ‘-Werror=declaration-after-statement’ is not valid for C++
cc1plus: warning: command-line option ‘-Wstrict-prototypes’ is valid for C/ObjC but not for C++
cc1plus: warning: command-line option ‘-Wmissing-prototypes’ is valid for C/ObjC but not for C++
cc1plus: warning: ‘-Werror=’ argument ‘-Werror=declaration-after-statement’ is not valid for C++
cc1plus: warning: command-line option ‘-Wstrict-prototypes’ is valid for C/ObjC but not for C++
cc1plus: warning: command-line option ‘-Wmissing-prototypes’ is valid for C/ObjC but not for C++
cc1plus: warning: ‘-Werror=’ argument ‘-Werror=declaration-after-statement’ is not valid for C++
cc1plus: warning: command-line option ‘-Wstrict-prototypes’ is valid for C/ObjC but not for C++
cc1plus: warning: command-line option ‘-Wmissing-prototypes’ is valid for C/ObjC but not for C++
cc1plus: warning: ‘-Werror=’ argument ‘-Werror=declaration-after-statement’ is not valid for C++
tesseract/src/lstm/parallel.cpp: In member function ‘virtual void tesseract::Parallel::Forward(bool, const tesseract::NetworkIO&, const tesseract::TransposedArray*, tesseract::NetworkScratch*, tesseract::NetworkIO*)’:
tesseract/src/lstm/parallel.cpp:54:8: warning: variable ‘parallel_debug’ set but not used [-Wunused-but-set-variable]
54 | bool parallel_debug = false;
| ^~~~~~~~~~~~~~
cc1plus: warning: command-line option ‘-Wstrict-prototypes’ is valid for C/ObjC but not for C++
cc1plus: warning: command-line option ‘-Wmissing-prototypes’ is valid for C/ObjC but not for C++
cc1plus: warning: ‘-Werror=’ argument ‘-Werror=declaration-after-statement’ is not valid for C++
cc1plus: warning: command-line option ‘-Wstrict-prototypes’ is valid for C/ObjC but not for C++
cc1plus: warning: command-line option ‘-Wmissing-prototypes’ is valid for C/ObjC but not for C++
cc1plus: warning: ‘-Werror=’ argument ‘-Werror=declaration-after-statement’ is not valid for C++
cc1plus: warning: command-line option ‘-Wstrict-prototypes’ is valid for C/ObjC but not for C++
cc1plus: warning: command-line option ‘-Wmissing-prototypes’ is valid for C/ObjC but not for C++
cc1plus: warning: ‘-Werror=’ argument ‘-Werror=declaration-after-statement’ is not valid for C++
cc1plus: warning: command-line option ‘-Wstrict-prototypes’ is valid for C/ObjC but not for C++
cc1plus: warning: command-line option ‘-Wmissing-prototypes’ is valid for C/ObjC but not for C++
cc1plus: warning: ‘-Werror=’ argument ‘-Werror=declaration-after-statement’ is not valid for C++
cc1plus: warning: command-line option ‘-Wstrict-prototypes’ is valid for C/ObjC but not for C++
cc1plus: warning: command-line option ‘-Wmissing-prototypes’ is valid for C/ObjC but not for C++
cc1plus: warning: ‘-Werror=’ argument ‘-Werror=declaration-after-statement’ is not valid for C++
cc1plus: warning: command-line option ‘-Wstrict-prototypes’ is valid for C/ObjC but not for C++
cc1plus: warning: command-line option ‘-Wmissing-prototypes’ is valid for C/ObjC but not for C++
cc1plus: warning: ‘-Werror=’ argument ‘-Werror=declaration-after-statement’ is not valid for C++
cc1plus: warning: command-line option ‘-Wstrict-prototypes’ is valid for C/ObjC but not for C++
cc1plus: warning: command-line option ‘-Wmissing-prototypes’ is valid for C/ObjC but not for C++
cc1plus: warning: ‘-Werror=’ argument ‘-Werror=declaration-after-statement’ is not valid for C++
cc1plus: warning: command-line option ‘-Wstrict-prototypes’ is valid for C/ObjC but not for C++
cc1plus: warning: command-line option ‘-Wmissing-prototypes’ is valid for C/ObjC but not for C++
cc1plus: warning: ‘-Werror=’ argument ‘-Werror=declaration-after-statement’ is not valid for C++
cc1plus: warning: command-line option ‘-Wstrict-prototypes’ is valid for C/ObjC but not for C++
cc1plus: warning: command-line option ‘-Wmissing-prototypes’ is valid for C/ObjC but not for C++
cc1plus: warning: ‘-Werror=’ argument ‘-Werror=declaration-after-statement’ is not valid for C++
cc1plus: warning: command-line option ‘-Wstrict-prototypes’ is valid for C/ObjC but not for C++
cc1plus: warning: command-line option ‘-Wmissing-prototypes’ is valid for C/ObjC but not for C++
cc1plus: warning: ‘-Werror=’ argument ‘-Werror=declaration-after-statement’ is not valid for C++
cc1plus: warning: command-line option ‘-Wstrict-prototypes’ is valid for C/ObjC but not for C++
cc1plus: warning: command-line option ‘-Wmissing-prototypes’ is valid for C/ObjC but not for C++
cc1plus: warning: ‘-Werror=’ argument ‘-Werror=declaration-after-statement’ is not valid for C++
cc1plus: warning: command-line option ‘-Wstrict-prototypes’ is valid for C/ObjC but not for C++
cc1plus: warning: command-line option ‘-Wmissing-prototypes’ is valid for C/ObjC but not for C++
cc1plus: warning: ‘-Werror=’ argument ‘-Werror=declaration-after-statement’ is not valid for C++
cc1plus: warning: command-line option ‘-Wstrict-prototypes’ is valid for C/ObjC but not for C++
cc1plus: warning: command-line option ‘-Wmissing-prototypes’ is valid for C/ObjC but not for C++
cc1plus: warning: ‘-Werror=’ argument ‘-Werror=declaration-after-statement’ is not valid for C++
cc1plus: warning: command-line option ‘-Wstrict-prototypes’ is valid for C/ObjC but not for C++
cc1plus: warning: command-line option ‘-Wmissing-prototypes’ is valid for C/ObjC but not for C++
cc1plus: warning: ‘-Werror=’ argument ‘-Werror=declaration-after-statement’ is not valid for C++
cc1plus: warning: command-line option ‘-Wstrict-prototypes’ is valid for C/ObjC but not for C++
cc1plus: warning: command-line option ‘-Wmissing-prototypes’ is valid for C/ObjC but not for C++
cc1plus: warning: ‘-Werror=’ argument ‘-Werror=declaration-after-statement’ is not valid for C++
In file included from ./base/gx.h:26,
from ./base/gdevprn.h:24,
from ./contrib/japanese/gdev10v.c:33:
./contrib/japanese/gdev10v.c: In function ‘bj10v_print_page’:
./base/gsmalloc.h:58:21: warning: ‘in’ may be used uninitialized [-Wmaybe-uninitialized]
58 | gs_free_object(mem->non_gc_memory, data, cname)
./base/gsmemory.h:135:28: note: in definition of macro ‘gs_free_object’
135 | do { if (mem != NULL) {((mem)->procs.free_object(mem, data, cname));} } while (0)
| ^~~
./contrib/japanese/gdev10v.c:336:9: note: in expansion of macro ‘gs_free’
336 | gs_free(pdev->memory->non_gc_memory, (char *)in, 8, line_size, "bj10v_print_page(in)");
| ^~~~~~~
./contrib/japanese/gdev10v.c:202:15: note: ‘in’ was declared here
202 | byte *in, *out;
| ^~
./base/gsmalloc.h:58:21: warning: ‘out’ may be used uninitialized [-Wmaybe-uninitialized]
58 | gs_free_object(mem->non_gc_memory, data, cname)
./base/gsmemory.h:135:28: note: in definition of macro ‘gs_free_object’
135 | do { if (mem != NULL) {((mem)->procs.free_object(mem, data, cname));} } while (0)
| ^~~
./contrib/japanese/gdev10v.c:335:9: note: in expansion of macro ‘gs_free’
335 | gs_free(pdev->memory->non_gc_memory, (char *)out, bits_per_column, line_size, "bj10v_print_page(out)");
| ^~~~~~~
./contrib/japanese/gdev10v.c:202:20: note: ‘out’ was declared here
202 | byte *in, *out;
| ^~~
./base/gxclmem.c: In function ‘memfile_get_pdata.isra’:
./base/gxclmem.c:951:67: warning: writing 1 byte into a region of size 0 [-Wstringop-overflow=]
951 | *(bp->phys_blk->link->data - back_up + i) = *++f->rd.ptr;
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~
In file included from ./base/gxclmem.c:21:
./base/gxclmem.h:56:10: note: at offset [-2147483647, -1] into destination object ‘data’ of size 16224
56 | char data[MEMFILE_DATA_SIZE];
| ^~~~
./base/gdevdbit.c: In function ‘gx_default_strip_tile_rect_devn’:
./base/gdevdbit.c:603:11: warning: unused variable ‘tile_id’ [-Wunused-variable]
603 | gs_id tile_id = tiles->id;
| ^~~~~~~
./psi/zcolor.c: In function ‘zcurrentcolorspace’:
./psi/zcolor.c:171:11: warning: unused variable ‘body’ [-Wunused-variable]
171 | byte *body;
| ^~~~
./psi/zcolor.c:170:17: warning: unused variable ‘stref’ [-Wunused-variable]
170 | ref namestr,stref, *aref;
| ^~~~~
./psi/zcolor.c: In function ‘copy_cspace_dict’:
./psi/zcolor.c:493:26: warning: unused variable ‘i’ [-Wunused-variable]
493 | int code = 0, index, i = 0;
| ^
./psi/zcolor.c: In function ‘septransform’:
./psi/zcolor.c:3944:30: warning: unused variable ‘pimap’ [-Wunused-variable]
3944 | gs_device_n_map *pimap;
| ^~~~~
./psi/zcolor.c: In function ‘devicentransform’:
./psi/zcolor.c:4802:30: warning: unused variable ‘pimap’ [-Wunused-variable]
4802 | gs_device_n_map *pimap;
| ^~~~~
./psi/zcolor.c: In function ‘currentbasecolor’:
./psi/zcolor.c:7289:12: warning: unused variable ‘ep’ [-Wunused-variable]
7289 | es_ptr ep = esp;
| ^~
In function ‘pdf_compute_encryption_key_r6’,
inlined from ‘check_owner_password_R6.constprop’ at ./pdf/pdf_sec.c:723:5:
./pdf/pdf_sec.c:402:9: warning: ‘pdf_compute_hardened_hash_r6’ accessing 16 bytes in a region of size 8 [-Wstringop-overflow=]
402 | pdf_compute_hardened_hash_r6(password, pwlen,
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
403 | (ownerkey ? O : U) + 40,
| ~~~~~~~~~~~~~~~~~~~~~~~~
404 | (ownerkey ? U : NULL), hash);
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~
./pdf/pdf_sec.c:402:9: note: referencing argument 3 of type ‘unsigned char[16]’
./pdf/pdf_sec.c:402:9: note: referencing argument 5 of type ‘unsigned char[32]’
./pdf/pdf_sec.c: In function ‘check_owner_password_R6.constprop’:
./pdf/pdf_sec.c:324:1: note: in a call to function ‘pdf_compute_hardened_hash_r6’
324 | pdf_compute_hardened_hash_r6(unsigned char *password, int pwlen, unsigned char salt[16], unsigned char *ownerkey, unsigned char hash[32])
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~
In function ‘pdf_compute_encryption_key_r6’,
inlined from ‘check_user_password_R6.constprop’ at ./pdf/pdf_sec.c:417:5:
./pdf/pdf_sec.c:402:9: warning: ‘pdf_compute_hardened_hash_r6’ accessing 16 bytes in a region of size 8 [-Wstringop-overflow=]
402 | pdf_compute_hardened_hash_r6(password, pwlen,
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
403 | (ownerkey ? O : U) + 40,
| ~~~~~~~~~~~~~~~~~~~~~~~~
404 | (ownerkey ? U : NULL), hash);
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~
./pdf/pdf_sec.c:402:9: note: referencing argument 3 of type ‘unsigned char[16]’
./pdf/pdf_sec.c:402:9: note: referencing argument 5 of type ‘unsigned char[32]’
./pdf/pdf_sec.c: In function ‘check_user_password_R6.constprop’:
./pdf/pdf_sec.c:324:1: note: in a call to function ‘pdf_compute_hardened_hash_r6’
324 | pdf_compute_hardened_hash_r6(unsigned char *password, int pwlen, unsigned char salt[16], unsigned char *ownerkey, unsigned char hash[32])
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~
libtool: warning: remember to run 'libtool --finish /usr/lib'
libtool: warning: 'libijs.la' has not been installed in '/usr/lib'
libtool: warning: 'libijs.la' has not been installed in '/usr/lib'
configure.ac:3432: warning: The macro 'AC_PROG_GCC_TRADITIONAL' is obsolete.
configure.ac:3432: You should run autoupdate.
./lib/autoconf/c.m4:1676: AC_PROG_GCC_TRADITIONAL is expanded from...
configure.ac:3432: the top level
configure: WARNING: disabling support for libpaper
[01;33mdosed method has not changed file 'configure.ac'.
[0mfgrep: warning: fgrep is obsolescent; using grep -F
configure.ac:114: warning: The macro 'AM_PROG_LIBTOOL' is obsolete.
configure.ac:114: You should run autoupdate.
aclocal.m4:123: AM_PROG_LIBTOOL is expanded from...
configure.ac:114: the top level
configure.ac:120: warning: The macro 'AM_PROG_LIBTOOL' is obsolete.
configure.ac:120: You should run autoupdate.
aclocal.m4:123: AM_PROG_LIBTOOL is expanded from...
configure.ac:120: the top level
configure.ac:122: warning: The macro 'AC_ISC_POSIX' is obsolete.
configure.ac:122: You should run autoupdate.
./lib/autoconf/specific.m4:732: AC_ISC_POSIX is expanded from...
configure.ac:122: the top level
configure: WARNING: PostScript documentation cannot be generated!
configure: WARNING: PDF documentation cannot be generated!
ijs_client_example.c: In function ‘send_pnm_file’:
ijs_client_example.c:135:7: warning: ignoring return value of ‘fread’ declared with attribute ‘warn_unused_result’ [-Wunused-result]
135 | fread (buf, 1, n_bytes, f); /* todo: check error */
| ^~~~~~~~~~~~~~~~~~~~~~~~~~
extract/src/json.c:83:5: warning: no previous prototype for ‘extract_document_to_json_content’ [-Wmissing-prototypes]
83 | int extract_document_to_json_content(
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
leptonica/src/baseline.c: In function ‘pixGetLocalSkewTransform’:
leptonica/src/baseline.c:445:5: warning: ‘dely’ may be used uninitialized [-Wmaybe-uninitialized]
445 | ptaAddPt(ptas, w - 1, i - dely);
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
leptonica/src/baseline.c:400:33: note: ‘dely’ was declared here
400 | l_float32 deg2rad, angr, angd, dely;
| ^~~~
leptonica/src/binarize.c: In function ‘pixSauvolaBinarize’:
leptonica/src/binarize.c:716:47: warning: ‘wplsd’ may be used uninitialized [-Wmaybe-uninitialized]
716 | l_int32 i, j, w, h, tabsize, wplm, wplms, wplsd, wpld, usetab;
| ^~~~~
leptonica/src/bmf.c: In function ‘pixaGenerateFont’:
leptonica/src/bmf.c:605:21: warning: ‘yval’ may be used uninitialized [-Wmaybe-uninitialized]
605 | baseline[i] = yval;
| ~~~~~~~~~~~~^~~~~~
leptonica/src/bmf.c:547:46: note: ‘yval’ was declared here
547 | l_int32 i, j, nrows, nrowchars, nchars, h, yval;
| ^~~~
leptonica/src/boxfunc2.c: In function ‘boxaaTranspose’:
leptonica/src/boxfunc2.c:1807:12: warning: ‘nbox’ may be used uninitialized [-Wmaybe-uninitialized]
1807 | baad = boxaaCreate(nbox);
| ^~~~~~~~~~~~~~~~~
leptonica/src/boxfunc2.c:1783:25: note: ‘nbox’ was declared here
1783 | l_int32 i, j, ny, nb, nbox;
| ^~~~
leptonica/src/boxfunc2.c: In function ‘boxaaAlignBox’:
leptonica/src/boxfunc2.c:1882:17: warning: ‘maxindex’ may be used uninitialized [-Wmaybe-uninitialized]
1882 | *pindex = maxindex;
| ~~~~~~~~^~~~~~~~~~
leptonica/src/boxfunc2.c:1843:48: note: ‘maxindex’ was declared here
1843 | l_int32 i, n, m, y, yt, h, ht, ovlp, maxovlp, maxindex;
| ^~~~~~~~
In function ‘pixGetCCBorders’,
inlined from ‘pixGetAllCCBorders’ at leptonica/src/ccbord.c:598:15:
leptonica/src/ccbord.c:720:16: warning: ‘xh’ may be used uninitialized [-Wmaybe-uninitialized]
720 | for (x = xh + boxt->x; x < w; x++) { /* look for (fg) border pixel */
| ~~^~~~~~~~~~~~~~
leptonica/src/ccbord.c: In function ‘pixGetAllCCBorders’:
leptonica/src/ccbord.c:647:26: note: ‘xh’ was declared here
647 | l_int32 allzero, i, x, xh, w, nh;
| ^~
In function ‘pixGetHoleBorder’,
inlined from ‘pixGetCCBorders’ at leptonica/src/ccbord.c:733:9,
inlined from ‘pixGetAllCCBorders’ at leptonica/src/ccbord.c:598:15:
leptonica/src/ccbord.c:1007:9: warning: ‘xs’ may be used uninitialized [-Wmaybe-uninitialized]
1007 | if (findNextBorderPixel(w, h, data, wpl, xs, ys, &qpos, &npx, &npy))
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
leptonica/src/ccbord.c: In function ‘pixGetAllCCBorders’:
leptonica/src/ccbord.c:648:11: note: ‘xs’ was declared here
648 | l_int32 xs, ys; /* starting hole border pixel, relative in pixs */
| ^~
leptonica/src/colorcontent.c: In function ‘pixColorContent’:
leptonica/src/colorcontent.c:211:30: warning: ‘wplr’ may be used uninitialized [-Wmaybe-uninitialized]
211 | l_int32 w, h, i, j, wpl1, wplr, wplg, wplb;
| ^~~~
leptonica/src/colorcontent.c:211:36: warning: ‘wplg’ may be used uninitialized [-Wmaybe-uninitialized]
211 | l_int32 w, h, i, j, wpl1, wplr, wplg, wplb;
| ^~~~
leptonica/src/colorcontent.c:211:42: warning: ‘wplb’ may be used uninitialized [-Wmaybe-uninitialized]
211 | l_int32 w, h, i, j, wpl1, wplr, wplg, wplb;
| ^~~~
leptonica/src/colormap.c: In function ‘pixcmapReadStream’:
leptonica/src/colormap.c:1790:35: warning: variable ‘ignore’ set but not used [-Wunused-but-set-variable]
1790 | l_int32 rval, gval, bval, aval, ignore;
| ^~~~~~
leptonica/src/ccbord.c: In function ‘ccbaGenerateSinglePath’:
leptonica/src/ccbord.c:1575:16: warning: ‘len’ may be used uninitialized [-Wmaybe-uninitialized]
1575 | if (len == 0) { /* lost the hole */
| ^
leptonica/src/ccbord.c:1522:45: note: ‘len’ was declared here
1522 | l_int32 i, j, k, ncc, nb, ncut, npt, dir, len, state, lostholes;
| ^~~
In function ‘locateOutsideSeedPixel’,
inlined from ‘ccbaDisplayImage1’ at leptonica/src/ccbord.c:2043:17:
leptonica/src/ccbord.c:1110:8: warning: ‘fpx’ may be used uninitialized [-Wmaybe-uninitialized]
1110 | dx = spx - fpx;
| ~~~^~~~~~~~~~~
leptonica/src/ccbord.c: In function ‘ccbaDisplayImage1’:
leptonica/src/ccbord.c:1962:10: note: ‘fpx’ was declared here
1962 | l_int32 fpx, fpy, spx, spy, xs, ys;
| ^~~
In function ‘locateOutsideSeedPixel’,
inlined from ‘ccbaDisplayImage1’ at leptonica/src/ccbord.c:2043:17:
leptonica/src/ccbord.c:1111:8: warning: ‘fpy’ may be used uninitialized [-Wmaybe-uninitialized]
1111 | dy = spy - fpy;
| ~~~^~~~~~~~~~~
leptonica/src/ccbord.c: In function ‘ccbaDisplayImage1’:
leptonica/src/ccbord.c:1962:15: note: ‘fpy’ was declared here
1962 | l_int32 fpx, fpy, spx, spy, xs, ys;
| ^~~
In function ‘locateOutsideSeedPixel’,
inlined from ‘ccbaDisplayImage1’ at leptonica/src/ccbord.c:2043:17:
leptonica/src/ccbord.c:1110:8: warning: ‘spx’ may be used uninitialized [-Wmaybe-uninitialized]
1110 | dx = spx - fpx;
| ~~~^~~~~~~~~~~
leptonica/src/ccbord.c: In function ‘ccbaDisplayImage1’:
leptonica/src/ccbord.c:1962:20: note: ‘spx’ was declared here
1962 | l_int32 fpx, fpy, spx, spy, xs, ys;
| ^~~
In function ‘locateOutsideSeedPixel’,
inlined from ‘ccbaDisplayImage1’ at leptonica/src/ccbord.c:2043:17:
leptonica/src/ccbord.c:1111:8: warning: ‘spy’ may be used uninitialized [-Wmaybe-uninitialized]
1111 | dy = spy - fpy;
| ~~~^~~~~~~~~~~
leptonica/src/ccbord.c: In function ‘ccbaDisplayImage1’:
leptonica/src/ccbord.c:1962:25: note: ‘spy’ was declared here
1962 | l_int32 fpx, fpy, spx, spy, xs, ys;
| ^~~
leptonica/src/colorseg.c: In function ‘pixAssignToNearestColor’:
leptonica/src/colorseg.c:413:30: warning: ‘wplm’ may be used uninitialized [-Wmaybe-uninitialized]
413 | l_int32 w, h, wpls, wpld, wplm, i, j, success;
| ^~~~
leptonica/src/colorquant1.c: In function ‘pixOctreeColorQuantGeneral.part.0’:
leptonica/src/colorquant1.c:688:5: warning: ‘cmap’ may be used uninitialized [-Wmaybe-uninitialized]
688 | pixcmapGetColor(cmap, index, &rval, &gval, &bval);
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
leptonica/src/colorquant1.c:612:12: note: ‘cmap’ was declared here
612 | PIXCMAP *cmap;
| ^~~~
leptonica/src/colorquant1.c: In function ‘pixOctcubeHistogram’:
leptonica/src/colorquant1.c:3716:15: warning: ‘size’ may be used uninitialized [-Wmaybe-uninitialized]
3716 | if ((na = numaCreate(size)) == NULL) {
| ^~~~~~~~~~~~~~~~
leptonica/src/colorquant1.c:3693:13: note: ‘size’ was declared here
3693 | l_int32 size, i, j, w, h, wpl, ncolors, val;
| ^~~~
leptonica/src/correlscore.c: In function ‘pixCorrelationScoreThresholded’:
leptonica/src/correlscore.c:686:46: warning: ‘untouchable’ may be used uninitialized [-Wmaybe-uninitialized]
686 | if (count + downcount[y] - untouchable < threshold) {
| ~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~
leptonica/src/correlscore.c:437:52: note: ‘untouchable’ was declared here
437 | l_int32 wpl1, wpl2, lorow, hirow, locol, hicol, untouchable;
| ^~~~~~~~~~~
leptonica/src/convolve.c: In function ‘pixWindowedVariance’:
leptonica/src/convolve.c:1271:50: warning: ‘wplv’ may be used uninitialized [-Wmaybe-uninitialized]
1271 | l_int32 i, j, w, h, ws, hs, ds, wplm, wplms, wplv, wplrv, valm, valms;
| ^~~~
leptonica/src/convolve.c:1271:56: warning: ‘wplrv’ may be used uninitialized [-Wmaybe-uninitialized]
1271 | l_int32 i, j, w, h, ws, hs, ds, wplm, wplms, wplv, wplrv, valm, valms;
| ^~~~~
In file included from leptonica/src/alltypes.h:37,
from leptonica/src/allheaders.h:35,
from leptonica/src/dewarp2.c:67:
leptonica/src/dewarp2.c: In function ‘dewarpBuildPageModel’:
leptonica/src/environ.h:598:14: warning: ‘ntop’ may be used uninitialized [-Wmaybe-uninitialized]
598 | (void)lept_stderr("Warning in %s: " a, __VA_ARGS__), \
| ^
leptonica/src/environ.h:573:61: note: in definition of macro ‘IF_SEV’
573 | ((l) >= MINIMUM_SEVERITY && (l) >= LeptMsgSeverity ? (t) : (f))
| ^
leptonica/src/dewarp2.c:226:9: note: in expansion of macro ‘L_WARNING’
226 | L_WARNING("invalid line coverage: ntop = %d, nbot = %d;"
| ^~~~~~~~~
leptonica/src/dewarp2.c:159:21: note: ‘ntop’ was declared here
159 | l_int32 linecount, ntop, nbot, ytop, ybot, ret;
| ^~~~
leptonica/src/environ.h:598:14: warning: ‘nbot’ may be used uninitialized [-Wmaybe-uninitialized]
598 | (void)lept_stderr("Warning in %s: " a, __VA_ARGS__), \
| ^
leptonica/src/environ.h:573:61: note: in definition of macro ‘IF_SEV’
573 | ((l) >= MINIMUM_SEVERITY && (l) >= LeptMsgSeverity ? (t) : (f))
| ^
leptonica/src/dewarp2.c:226:9: note: in expansion of macro ‘L_WARNING’
226 | L_WARNING("invalid line coverage: ntop = %d, nbot = %d;"
| ^~~~~~~~~
leptonica/src/dewarp2.c:159:27: note: ‘nbot’ was declared here
159 | l_int32 linecount, ntop, nbot, ytop, ybot, ret;
| ^~~~
leptonica/src/environ.h:598:14: warning: ‘ytop’ may be used uninitialized [-Wmaybe-uninitialized]
598 | (void)lept_stderr("Warning in %s: " a, __VA_ARGS__), \
| ^
leptonica/src/environ.h:573:61: note: in definition of macro ‘IF_SEV’
573 | ((l) >= MINIMUM_SEVERITY && (l) >= LeptMsgSeverity ? (t) : (f))
| ^
leptonica/src/dewarp2.c:226:9: note: in expansion of macro ‘L_WARNING’
226 | L_WARNING("invalid line coverage: ntop = %d, nbot = %d;"
| ^~~~~~~~~
leptonica/src/dewarp2.c:159:33: note: ‘ytop’ was declared here
159 | l_int32 linecount, ntop, nbot, ytop, ybot, ret;
| ^~~~
leptonica/src/environ.h:598:14: warning: ‘ybot’ may be used uninitialized [-Wmaybe-uninitialized]
598 | (void)lept_stderr("Warning in %s: " a, __VA_ARGS__), \
| ^
leptonica/src/environ.h:573:61: note: in definition of macro ‘IF_SEV’
573 | ((l) >= MINIMUM_SEVERITY && (l) >= LeptMsgSeverity ? (t) : (f))
| ^
leptonica/src/dewarp2.c:226:9: note: in expansion of macro ‘L_WARNING’
226 | L_WARNING("invalid line coverage: ntop = %d, nbot = %d;"
| ^~~~~~~~~
leptonica/src/dewarp2.c:159:39: note: ‘ybot’ was declared here
159 | l_int32 linecount, ntop, nbot, ytop, ybot, ret;
| ^~~~
leptonica/src/fhmtgenlow.1.c: In function ‘fhmt_1_5’:
leptonica/src/fhmtgenlow.1.c:273:21: warning: variable ‘wpls5’ set but not used [-Wunused-but-set-variable]
273 | l_int32 wpls5, wpls6;
| ^~~~~
leptonica/src/fhmtgenlow.1.c:272:35: warning: variable ‘wpls4’ set but not used [-Wunused-but-set-variable]
272 | l_int32 wpls2, wpls3, wpls4;
| ^~~~~
leptonica/src/fhmtgenlow.1.c:272:28: warning: variable ‘wpls3’ set but not used [-Wunused-but-set-variable]
272 | l_int32 wpls2, wpls3, wpls4;
| ^~~~~
leptonica/src/fpix2.c: In function ‘linearInterpolatePixelFloat’:
leptonica/src/fpix2.c:2206:6: warning: "DEBUG" is not defined, evaluates to 0 [-Wundef]
2206 | #if DEBUG
| ^~~~~
leptonica/src/enhance.c: In function ‘pixUnsharpMaskingGray1D’:
leptonica/src/enhance.c:1321:32: warning: ‘a[3]’ may be used uninitialized [-Wmaybe-uninitialized]
1321 | a[4] * GET_DATA_BYTE(lines, j + 2);
leptonica/src/enhance.c:1265:17: note: ‘a[3]’ was declared here
1265 | l_float32 val, a[5];
| ^
In file included from /usr/include/stdio.h:894,
from leptonica/src/alltypes.h:31,
from leptonica/src/allheaders.h:35,
from leptonica/src/fpix1.c:124:
In function ‘fprintf’,
inlined from ‘fpixWriteStream’ at leptonica/src/fpix1.c:1515:5:
/usr/include/bits/stdio2.h:105:10: warning: ‘xres’ may be used uninitialized [-Wmaybe-uninitialized]
105 | return __fprintf_chk (__stream, __USE_FORTIFY_LEVEL - 1, __fmt,
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
106 | __va_arg_pack ());
| ~~~~~~~~~~~~~~~~~
leptonica/src/fpix1.c: In function ‘fpixWriteStream’:
leptonica/src/fpix1.c:1496:19: note: ‘xres’ was declared here
1496 | l_int32 w, h, xres, yres;
| ^~~~
In function ‘fprintf’,
inlined from ‘fpixWriteStream’ at leptonica/src/fpix1.c:1515:5:
/usr/include/bits/stdio2.h:105:10: warning: ‘yres’ may be used uninitialized [-Wmaybe-uninitialized]
105 | return __fprintf_chk (__stream, __USE_FORTIFY_LEVEL - 1, __fmt,
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
106 | __va_arg_pack ());
| ~~~~~~~~~~~~~~~~~
leptonica/src/fpix1.c: In function ‘fpixWriteStream’:
leptonica/src/fpix1.c:1496:25: note: ‘yres’ was declared here
1496 | l_int32 w, h, xres, yres;
| ^~~~
In function ‘fprintf’,
inlined from ‘dpixWriteStream’ at leptonica/src/fpix1.c:1804:5:
/usr/include/bits/stdio2.h:105:10: warning: ‘xres’ may be used uninitialized [-Wmaybe-uninitialized]
105 | return __fprintf_chk (__stream, __USE_FORTIFY_LEVEL - 1, __fmt,
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
106 | __va_arg_pack ());
| ~~~~~~~~~~~~~~~~~
leptonica/src/fpix1.c: In function ‘dpixWriteStream’:
leptonica/src/fpix1.c:1785:19: note: ‘xres’ was declared here
1785 | l_int32 w, h, xres, yres;
| ^~~~
In function ‘fprintf’,
inlined from ‘dpixWriteStream’ at leptonica/src/fpix1.c:1804:5:
/usr/include/bits/stdio2.h:105:10: warning: ‘yres’ may be used uninitialized [-Wmaybe-uninitialized]
105 | return __fprintf_chk (__stream, __USE_FORTIFY_LEVEL - 1, __fmt,
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
106 | __va_arg_pack ());
| ~~~~~~~~~~~~~~~~~
leptonica/src/fpix1.c: In function ‘dpixWriteStream’:
leptonica/src/fpix1.c:1785:25: note: ‘yres’ was declared here
1785 | l_int32 w, h, xres, yres;
| ^~~~
leptonica/src/gplot.c: In function ‘gplotRead’:
leptonica/src/gplot.c:1209:35: warning: variable ‘ignore’ set but not used [-Wunused-but-set-variable]
1209 | l_int32 outformat, ret, version, ignore;
| ^~~~~~
leptonica/src/gplot.c:1208:47: warning: variable ‘ignores’ set but not used [-Wunused-but-set-variable]
1208 | char *rootname, *title, *xlabel, *ylabel, *ignores;
| ^~~~~~~
leptonica/src/graphics.c: In function ‘pixRenderPtaArb’:
leptonica/src/graphics.c:1371:13: warning: ‘val’ may be used uninitialized [-Wmaybe-uninitialized]
1371 | pixSetPixel(pix, x, y, val);
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~
leptonica/src/graphics.c:1327:11: note: ‘val’ was declared here
1327 | l_uint8 val;
| ^~~
leptonica/src/grayquant.c: In function ‘thresholdToBinaryLineLow’:
leptonica/src/grayquant.c:568:21: warning: ‘sword’ may be used uninitialized [-Wmaybe-uninitialized]
568 | sword <<= 4;
| ~~~~~~^~~~~
leptonica/src/grayquant.c:524:10: note: ‘sword’ was declared here
524 | l_uint32 sword, dword;
| ^~~~~
leptonica/src/kernel.c: In function ‘kernelReadStream’:
leptonica/src/kernel.c:540:48: warning: variable ‘ignore’ set but not used [-Wunused-but-set-variable]
540 | l_int32 sy, sx, cy, cx, i, j, ret, version, ignore;
| ^~~~~~
leptonica/src/jbclass.c: In function ‘jbGetULCorners’:
leptonica/src/jbclass.c:2239:47: warning: ‘dx’ may be used uninitialized [-Wmaybe-uninitialized]
2239 | ptaAddPt(ptaul, (l_float32)(x - idelx + dx), (l_float32)(y - idely + dy));
| ~~~~~~~~~~~^~~~~
leptonica/src/jbclass.c:2190:64: note: ‘dx’ was declared here
2190 | l_int32 i, baseindex, index, n, iclass, idelx, idely, x, y, dx, dy;
| ^~
leptonica/src/jbclass.c:2239:76: warning: ‘dy’ may be used uninitialized [-Wmaybe-uninitialized]
2239 | ptaAddPt(ptaul, (l_float32)(x - idelx + dx), (l_float32)(y - idely + dy));
| ~~~~~~~~~~~^~~~~
leptonica/src/jbclass.c:2190:68: note: ‘dy’ was declared here
2190 | l_int32 i, baseindex, index, n, iclass, idelx, idely, x, y, dx, dy;
| ^~
leptonica/src/libversions.c: In function ‘getImagelibVersions’:
leptonica/src/libversions.c:107:10: warning: unused variable ‘first’ [-Wunused-variable]
107 | l_int32 first = TRUE;
| ^~~~~
leptonica/src/morphdwa.c: In function ‘pixErodeCompBrickExtendDwa.part.0’:
leptonica/src/morphdwa.c:1329:34: warning: ‘extrah’ may be used uninitialized [-Wmaybe-uninitialized]
1329 | nops = (extrah < 3) ? nh : nh + 1;
| ~~~~~~~~~~~~~~~~~~^~~~~~~~
leptonica/src/morphdwa.c:1302:23: note: ‘extrah’ was declared here
1302 | l_int32 i, nops, nh, extrah, nv, extrav;
| ^~~~~~
leptonica/src/morphdwa.c:1330:18: warning: ‘nh’ may be used uninitialized [-Wmaybe-uninitialized]
1330 | if (nops & 1) { /* odd */
| ~~~~~^~~
leptonica/src/morphdwa.c:1302:19: note: ‘nh’ was declared here
1302 | l_int32 i, nops, nh, extrah, nv, extrav;
| ^~
leptonica/src/morphdwa.c:1363:18: warning: ‘nv’ may be used uninitialized [-Wmaybe-uninitialized]
1363 | if (nops & 1) { /* odd */
| ~~~~~^~~
leptonica/src/morphdwa.c:1302:31: note: ‘nv’ was declared here
1302 | l_int32 i, nops, nh, extrah, nv, extrav;
| ^~
leptonica/src/morphdwa.c:1362:34: warning: ‘extrav’ may be used uninitialized [-Wmaybe-uninitialized]
1362 | nops = (extrav < 3) ? nv : nv + 1;
| ~~~~~~~~~~~~~~~~~~^~~~~~~~
leptonica/src/morphdwa.c:1302:35: note: ‘extrav’ was declared here
1302 | l_int32 i, nops, nh, extrah, nv, extrav;
| ^~~~~~
leptonica/src/morphdwa.c: In function ‘pixDilateCompBrickExtendDwa.part.0’:
leptonica/src/morphdwa.c:1211:34: warning: ‘extrah’ may be used uninitialized [-Wmaybe-uninitialized]
1211 | nops = (extrah < 3) ? nh : nh + 1;
| ~~~~~~~~~~~~~~~~~~^~~~~~~~
leptonica/src/morphdwa.c:1184:23: note: ‘extrah’ was declared here
1184 | l_int32 i, nops, nh, extrah, nv, extrav;
| ^~~~~~
leptonica/src/morphdwa.c:1212:18: warning: ‘nh’ may be used uninitialized [-Wmaybe-uninitialized]
1212 | if (nops & 1) { /* odd */
| ~~~~~^~~
leptonica/src/morphdwa.c:1184:19: note: ‘nh’ was declared here
1184 | l_int32 i, nops, nh, extrah, nv, extrav;
| ^~
leptonica/src/morphdwa.c:1245:18: warning: ‘nv’ may be used uninitialized [-Wmaybe-uninitialized]
1245 | if (nops & 1) { /* odd */
| ~~~~~^~~
leptonica/src/morphdwa.c:1184:31: note: ‘nv’ was declared here
1184 | l_int32 i, nops, nh, extrah, nv, extrav;
| ^~
leptonica/src/morphdwa.c:1244:34: warning: ‘extrav’ may be used uninitialized [-Wmaybe-uninitialized]
1244 | nops = (extrav < 3) ? nv : nv + 1;
| ~~~~~~~~~~~~~~~~~~^~~~~~~~
leptonica/src/morphdwa.c:1184:35: note: ‘extrav’ was declared here
1184 | l_int32 i, nops, nh, extrah, nv, extrav;
| ^~~~~~
leptonica/src/partify.c: In function ‘boxaRemoveVGaps’:
leptonica/src/partify.c:306:5: warning: this ‘if’ clause does not guard... [-Wmisleading-indentation]
306 | if ((nbox = boxaGetCount(boxa)) == 0);
| ^~
leptonica/src/partify.c:307:9: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the ‘if’
307 | return ERROR_INT("boxa is empty", __func__, 1);
| ^~~~~~
leptonica/src/numafunc1.c: In function ‘numaThresholdEdges’:
leptonica/src/numafunc1.c:1476:8: warning: ‘istart’ may be used uninitialized [-Wmaybe-uninitialized]
1476 | if (istart == n) /* no intervals found */
| ^
leptonica/src/numafunc1.c:1437:18: note: ‘istart’ was declared here
1437 | l_int32 n, i, istart, inband, output, sign;
| ^~~~~~
leptonica/src/pix4.c: In function ‘pixGetAverageTiled’:
leptonica/src/pix4.c:1750:52: warning: ‘ave’ may be used uninitialized [-Wmaybe-uninitialized]
1750 | valt = (l_int32)(sqrt(meansq - ave * ave) + 0.5);
| ~~~~^~~~~
leptonica/src/pix4.c:1692:27: note: ‘ave’ was declared here
1692 | l_float64 sumave, summs, ave, meansq, normfact;
| ^~~
leptonica/src/pixafunc2.c: In function ‘pixaDisplayRandomCmap’:
leptonica/src/pixafunc2.c:311:5: warning: ‘res’ may be used uninitialized [-Wmaybe-uninitialized]
311 | pixSetResolution(pixd, res, res);
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
leptonica/src/pixafunc2.c:271:52: note: ‘res’ was declared here
271 | l_int32 i, n, same, maxd, index, xb, yb, wb, hb, res;
| ^~~
leptonica/src/pixafunc2.c: In function ‘pixaDisplayTiled’:
leptonica/src/pixafunc2.c:685:5: warning: ‘res’ may be used uninitialized [-Wmaybe-uninitialized]
685 | pixSetResolution(pixd, res, res);
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
leptonica/src/pixafunc2.c:623:42: note: ‘res’ was declared here
623 | l_int32 wmax, hmax, wd, hd, d, hascmap, res, same;
| ^~~
leptonica/src/pixafunc2.c: In function ‘pixaDisplayTiledInColumns’:
leptonica/src/pixafunc2.c:988:5: warning: ‘res’ may be used uninitialized [-Wmaybe-uninitialized]
988 | pixSetResolution(pixd, res, res);
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
leptonica/src/pixafunc2.c:918:75: note: ‘res’ was declared here
918 | l_int32 i, j, index, n, x, y, nrows, wb, hb, w, h, maxd, maxh, bordval, res;
| ^~~
leptonica/src/pnmio.c: In function ‘pnmReadNextAsciiValue’:
leptonica/src/pnmio.c:1330:10: warning: unused variable ‘ignore’ [-Wunused-variable]
1330 | l_int32 ignore;
| ^~~~~~
leptonica/src/psio1.c: In function ‘pixWriteSegmentedPageToPS’:
leptonica/src/psio1.c:666:39: warning: ‘d’ may be used uninitialized [-Wmaybe-uninitialized]
666 | val = (d == 8) ? 0xff : 0xffffff00;
| ~~~~~~~~~~~~~~~~^~~~~~~~~~~~
leptonica/src/psio1.c:586:29: note: ‘d’ was declared here
586 | l_int32 alltext, notext, d, ret;
| ^
leptonica/src/readfile.c:96:20: warning: ‘FILE_JP2K’ defined but not used [-Wunused-variable]
96 | static const char *FILE_JP2K = "/tmp/lept/format/file.jp2";
| ^~~~~~~~~
leptonica/src/readfile.c:95:20: warning: ‘FILE_WEBP’ defined but not used [-Wunused-variable]
95 | static const char *FILE_WEBP = "/tmp/lept/format/file.webp";
| ^~~~~~~~~
leptonica/src/readfile.c:94:20: warning: ‘FILE_GIF’ defined but not used [-Wunused-variable]
94 | static const char *FILE_GIF = "/tmp/lept/format/file.gif";
| ^~~~~~~~
leptonica/src/readfile.c:93:20: warning: ‘FILE_JPG’ defined but not used [-Wunused-variable]
93 | static const char *FILE_JPG = "/tmp/lept/format/file.jpg";
| ^~~~~~~~
leptonica/src/readfile.c:92:20: warning: ‘FILE_TIFF’ defined but not used [-Wunused-variable]
92 | static const char *FILE_TIFF = "/tmp/lept/format/file.tif";
| ^~~~~~~~~
leptonica/src/readfile.c:91:20: warning: ‘FILE_TIFF_JPEG’ defined but not used [-Wunused-variable]
91 | static const char *FILE_TIFF_JPEG = "/tmp/lept/format/file_jpeg.tif";
| ^~~~~~~~~~~~~~
leptonica/src/readfile.c:90:20: warning: ‘FILE_ZIP’ defined but not used [-Wunused-variable]
90 | static const char *FILE_ZIP = "/tmp/lept/format/file_zip.tif";
| ^~~~~~~~
leptonica/src/readfile.c:89:20: warning: ‘FILE_LZW’ defined but not used [-Wunused-variable]
89 | static const char *FILE_LZW = "/tmp/lept/format/file_lzw.tif";
| ^~~~~~~~
leptonica/src/readfile.c:88:20: warning: ‘FILE_PB’ defined but not used [-Wunused-variable]
88 | static const char *FILE_PB = "/tmp/lept/format/file_packbits.tif";
| ^~~~~~~
leptonica/src/readfile.c:87:20: warning: ‘FILE_RLE’ defined but not used [-Wunused-variable]
87 | static const char *FILE_RLE = "/tmp/lept/format/file_rle.tif";
| ^~~~~~~~
leptonica/src/readfile.c:86:20: warning: ‘FILE_G4’ defined but not used [-Wunused-variable]
86 | static const char *FILE_G4 = "/tmp/lept/format/file_g4.tif";
| ^~~~~~~
leptonica/src/readfile.c:85:20: warning: ‘FILE_G3’ defined but not used [-Wunused-variable]
85 | static const char *FILE_G3 = "/tmp/lept/format/file_g3.tif";
| ^~~~~~~
leptonica/src/readfile.c:83:20: warning: ‘FILE_PNG’ defined but not used [-Wunused-variable]
83 | static const char *FILE_PNG = "/tmp/lept/format/file.png";
| ^~~~~~~~
leptonica/src/rop.c:541:1: warning: ‘checkRasteropCrop’ defined but not used [-Wunused-function]
541 | checkRasteropCrop(l_int32 pixw,
| ^~~~~~~~~~~~~~~~~
leptonica/src/sarray1.c: In function ‘sarrayReadStream’:
leptonica/src/sarray1.c:1390:47: warning: variable ‘ignore’ set but not used [-Wunused-but-set-variable]
1390 | l_int32 i, n, size, index, bufsize, version, ignore, success;
| ^~~~~~
leptonica/src/sarray1.c: In function ‘getFilenamesInDirectory’:
leptonica/src/sarray1.c:1888:17: warning: unused variable ‘dfd’ [-Wunused-variable]
1888 | int dfd, stat_ret;
| ^~~
In function ‘rasteropGeneralLow’,
inlined from ‘rasteropLow’ at leptonica/src/roplow.c:573:9:
leptonica/src/roplow.c:1623:24: warning: ‘sfwaddb’ may be used uninitialized [-Wmaybe-uninitialized]
1623 | if (sfwaddb)
| ^
leptonica/src/roplow.c: In function ‘rasteropLow’:
leptonica/src/roplow.c:1402:12: note: ‘sfwaddb’ was declared here
1402 | l_int32 sfwaddb; /* boolean: do we need an additional sfw right shift? */
| ^~~~~~~
leptonica/src/sel1.c: In function ‘selReadStream’:
leptonica/src/sel1.c:1354:41: warning: variable ‘ignore’ set but not used [-Wunused-but-set-variable]
1354 | l_int32 sy, sx, cy, cx, i, j, version, ignore;
| ^~~~~~
In file included from leptonica/src/alltypes.h:51,
from leptonica/src/allheaders.h:35,
from leptonica/src/scale2.c:103:
leptonica/src/scale2.c: In function ‘pixScaleGrayMinMax’:
leptonica/src/scale2.c:1067:48: warning: ‘maxval’ may be used uninitialized [-Wmaybe-uninitialized]
1067 | SET_DATA_BYTE(lined, j, maxval - minval);
leptonica/src/arrayaccess.h:199:75: note: in definition of macro ‘SET_DATA_BYTE’
199 | *(l_uint8 *)((l_uintptr_t)((l_uint8 *)(pdata) + (n)) ^ 3) = (val)
| ^~~
leptonica/src/scale2.c:1003:20: note: ‘maxval’ was declared here
1003 | l_int32 minval, maxval, val;
| ^~~~~~
leptonica/src/scale2.c:1067:48: warning: ‘minval’ may be used uninitialized [-Wmaybe-uninitialized]
1067 | SET_DATA_BYTE(lined, j, maxval - minval);
leptonica/src/arrayaccess.h:199:75: note: in definition of macro ‘SET_DATA_BYTE’
199 | *(l_uint8 *)((l_uintptr_t)((l_uint8 *)(pdata) + (n)) ^ 3) = (val)
| ^~~
leptonica/src/scale2.c:1003:12: note: ‘minval’ was declared here
1003 | l_int32 minval, maxval, val;
| ^~~~~~
leptonica/src/selgen.c: In function ‘pixGetRunsOnLine’:
leptonica/src/selgen.c:761:5: warning: ‘runlen’ may be used uninitialized [-Wmaybe-uninitialized]
761 | numaAddNumber(numa, runlen); /* append last run */
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~
leptonica/src/selgen.c:709:14: note: ‘runlen’ was declared here
709 | l_int32 i, runlen, preval;
| ^~~~~~
leptonica/src/utils2.c: In function ‘callSystemDebug’:
leptonica/src/utils2.c:2673:10: warning: variable ‘ret’ set but not used [-Wunused-but-set-variable]
2673 | l_int32 ret;
| ^~~
leptonica/src/textops.c: In function ‘splitStringToParagraphs’:
leptonica/src/textops.c:1036:41: warning: ‘allwhite’ may be used uninitialized [-Wmaybe-uninitialized]
1036 | (splitflag == SPLIT_ON_BOTH && (allwhite || leadwhite))) {
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~
leptonica/src/textops.c:1016:21: note: ‘allwhite’ was declared here
1016 | l_int32 nlines, i, allwhite, leadwhite;
| ^~~~~~~~
leptonica/src/textops.c:1036:54: warning: ‘leadwhite’ may be used uninitialized [-Wmaybe-uninitialized]
1036 | (splitflag == SPLIT_ON_BOTH && (allwhite || leadwhite))) {
| ~~~~~~~~~~^~~~~~~~~~~~~
leptonica/src/textops.c:1016:31: note: ‘leadwhite’ was declared here
1016 | l_int32 nlines, i, allwhite, leadwhite;
| ^~~~~~~~~
cc1plus: warning: command-line option ‘-Wstrict-prototypes’ is valid for C/ObjC but not for C++
cc1plus: warning: command-line option ‘-Wmissing-prototypes’ is valid for C/ObjC but not for C++
cc1plus: warning: ‘-Werror=’ argument ‘-Werror=declaration-after-statement’ is not valid for C++
cc1plus: warning: command-line option ‘-Wstrict-prototypes’ is valid for C/ObjC but not for C++
cc1plus: warning: command-line option ‘-Wmissing-prototypes’ is valid for C/ObjC but not for C++
cc1plus: warning: ‘-Werror=’ argument ‘-Werror=declaration-after-statement’ is not valid for C++
cc1plus: warning: command-line option ‘-Wstrict-prototypes’ is valid for C/ObjC but not for C++
cc1plus: warning: command-line option ‘-Wmissing-prototypes’ is valid for C/ObjC but not for C++
cc1plus: warning: ‘-Werror=’ argument ‘-Werror=declaration-after-statement’ is not valid for C++
cc1plus: warning: command-line option ‘-Wstrict-prototypes’ is valid for C/ObjC but not for C++
cc1plus: warning: command-line option ‘-Wmissing-prototypes’ is valid for C/ObjC but not for C++
cc1plus: warning: ‘-Werror=’ argument ‘-Werror=declaration-after-statement’ is not valid for C++
cc1plus: warning: command-line option ‘-Wstrict-prototypes’ is valid for C/ObjC but not for C++
cc1plus: warning: command-line option ‘-Wmissing-prototypes’ is valid for C/ObjC but not for C++
cc1plus: warning: ‘-Werror=’ argument ‘-Werror=declaration-after-statement’ is not valid for C++
cc1plus: warning: command-line option ‘-Wstrict-prototypes’ is valid for C/ObjC but not for C++
cc1plus: warning: command-line option ‘-Wmissing-prototypes’ is valid for C/ObjC but not for C++
cc1plus: warning: ‘-Werror=’ argument ‘-Werror=declaration-after-statement’ is not valid for C++
cc1plus: warning: command-line option ‘-Wstrict-prototypes’ is valid for C/ObjC but not for C++
cc1plus: warning: command-line option ‘-Wmissing-prototypes’ is valid for C/ObjC but not for C++
cc1plus: warning: ‘-Werror=’ argument ‘-Werror=declaration-after-statement’ is not valid for C++
tesseract/src/api/pagerenderer.cpp:100:6: warning: no previous declaration for ‘Pta* tesseract::TransposePolygonline(Pta*)’ [-Wmissing-declarations]
100 | Pta *TransposePolygonline(Pta *pts) {
| ^~~~~~~~~~~~~~~~~~~~
tesseract/src/api/pagerenderer.cpp:111:6: warning: no previous declaration for ‘Pta* tesseract::ReversePolygonline(Pta*, int)’ [-Wmissing-declarations]
111 | Pta *ReversePolygonline(Pta *pts, int type) {
| ^~~~~~~~~~~~~~~~~~
tesseract/src/api/pagerenderer.cpp:122:6: warning: no previous declaration for ‘Pta* tesseract::DestroyAndCreatePta(Pta*)’ [-Wmissing-declarations]
122 | Pta *DestroyAndCreatePta(Pta *pts) {
| ^~~~~~~~~~~~~~~~~~~
tesseract/src/api/pagerenderer.cpp:131:6: warning: no previous declaration for ‘Pta* tesseract::RecalcPolygonline(Pta*, bool)’ [-Wmissing-declarations]
131 | Pta *RecalcPolygonline(Pta *pts, bool upper) {
| ^~~~~~~~~~~~~~~~~
tesseract/src/api/pagerenderer.cpp:198:6: warning: no previous declaration for ‘Pta* tesseract::PolygonToBoxCoords(Pta*)’ [-Wmissing-declarations]
198 | Pta *PolygonToBoxCoords(Pta *pts) {
| ^~~~~~~~~~~~~~~~~~
tesseract/src/api/pagerenderer.cpp:385:6: warning: no previous declaration for ‘Pta* tesseract::SortBaseline(Pta*, WritingDirection)’ [-Wmissing-declarations]
385 | Pta *SortBaseline(Pta *baseline_pts,
| ^~~~~~~~~~~~
tesseract/src/api/pagerenderer.cpp:414:6: warning: no previous declaration for ‘Pta* tesseract::ClipAndSimplifyBaseline(Pta*, Pta*, WritingDirection)’ [-Wmissing-declarations]
414 | Pta *ClipAndSimplifyBaseline(Pta *bottom_pts, Pta *baseline_pts,
| ^~~~~~~~~~~~~~~~~~~~~~~
tesseract/src/api/pagerenderer.cpp:478:6: warning: no previous declaration for ‘Pta* tesseract::FitBaselineIntoLinePolygon(Pta*, Pta*, WritingDirection)’ [-Wmissing-declarations]
478 | Pta *FitBaselineIntoLinePolygon(Pta *bottom_pts, Pta *baseline_pts,
| ^~~~~~~~~~~~~~~~~~~~~~~~~~
tesseract/src/api/pagerenderer.cpp:601:13: warning: no previous declaration for ‘const char* tesseract::WritingDirectionToStr(int)’ [-Wmissing-declarations]
601 | const char *WritingDirectionToStr(int wd) {
| ^~~~~~~~~~~~~~~~~~~~~
tesseract/src/api/baseapi.cpp: In member function ‘int tesseract::TessBaseAPI::Init(const char*, int, const char*, tesseract::OcrEngineMode, char**, int, const std::vector >*, const std::vector >*, bool, tesseract::FileReader)’:
tesseract/src/api/baseapi.cpp:329:8: warning: variable ‘reset_classifier’ set but not used [-Wunused-but-set-variable]
329 | bool reset_classifier = true;
| ^~~~~~~~~~~~~~~~
cc1plus: warning: command-line option ‘-Wstrict-prototypes’ is valid for C/ObjC but not for C++
cc1plus: warning: command-line option ‘-Wmissing-prototypes’ is valid for C/ObjC but not for C++
cc1plus: warning: ‘-Werror=’ argument ‘-Werror=declaration-after-statement’ is not valid for C++
cc1plus: warning: command-line option ‘-Wstrict-prototypes’ is valid for C/ObjC but not for C++
cc1plus: warning: command-line option ‘-Wmissing-prototypes’ is valid for C/ObjC but not for C++
cc1plus: warning: ‘-Werror=’ argument ‘-Werror=declaration-after-statement’ is not valid for C++
cc1plus: warning: command-line option ‘-Wstrict-prototypes’ is valid for C/ObjC but not for C++
cc1plus: warning: command-line option ‘-Wmissing-prototypes’ is valid for C/ObjC but not for C++
cc1plus: warning: ‘-Werror=’ argument ‘-Werror=declaration-after-statement’ is not valid for C++
cc1plus: warning: command-line option ‘-Wstrict-prototypes’ is valid for C/ObjC but not for C++
cc1plus: warning: command-line option ‘-Wmissing-prototypes’ is valid for C/ObjC but not for C++
cc1plus: warning: ‘-Werror=’ argument ‘-Werror=declaration-after-statement’ is not valid for C++
cc1plus: warning: command-line option ‘-Wstrict-prototypes’ is valid for C/ObjC but not for C++
cc1plus: warning: command-line option ‘-Wmissing-prototypes’ is valid for C/ObjC but not for C++
cc1plus: warning: ‘-Werror=’ argument ‘-Werror=declaration-after-statement’ is not valid for C++
cc1plus: warning: command-line option ‘-Wstrict-prototypes’ is valid for C/ObjC but not for C++
cc1plus: warning: command-line option ‘-Wmissing-prototypes’ is valid for C/ObjC but not for C++
cc1plus: warning: ‘-Werror=’ argument ‘-Werror=declaration-after-statement’ is not valid for C++
cc1plus: warning: command-line option ‘-Wstrict-prototypes’ is valid for C/ObjC but not for C++
cc1plus: warning: command-line option ‘-Wmissing-prototypes’ is valid for C/ObjC but not for C++
cc1plus: warning: ‘-Werror=’ argument ‘-Werror=declaration-after-statement’ is not valid for C++
cc1plus: warning: command-line option ‘-Wstrict-prototypes’ is valid for C/ObjC but not for C++
cc1plus: warning: command-line option ‘-Wmissing-prototypes’ is valid for C/ObjC but not for C++
cc1plus: warning: ‘-Werror=’ argument ‘-Werror=declaration-after-statement’ is not valid for C++
cc1plus: warning: command-line option ‘-Wstrict-prototypes’ is valid for C/ObjC but not for C++
cc1plus: warning: command-line option ‘-Wmissing-prototypes’ is valid for C/ObjC but not for C++
cc1plus: warning: ‘-Werror=’ argument ‘-Werror=declaration-after-statement’ is not valid for C++
cc1plus: warning: command-line option ‘-Wstrict-prototypes’ is valid for C/ObjC but not for C++
cc1plus: warning: command-line option ‘-Wmissing-prototypes’ is valid for C/ObjC but not for C++
cc1plus: warning: ‘-Werror=’ argument ‘-Werror=declaration-after-statement’ is not valid for C++
cc1plus: warning: command-line option ‘-Wstrict-prototypes’ is valid for C/ObjC but not for C++
cc1plus: warning: command-line option ‘-Wmissing-prototypes’ is valid for C/ObjC but not for C++
cc1plus: warning: ‘-Werror=’ argument ‘-Werror=declaration-after-statement’ is not valid for C++
cc1plus: warning: command-line option ‘-Wstrict-prototypes’ is valid for C/ObjC but not for C++
cc1plus: warning: command-line option ‘-Wmissing-prototypes’ is valid for C/ObjC but not for C++
cc1plus: warning: ‘-Werror=’ argument ‘-Werror=declaration-after-statement’ is not valid for C++
cc1plus: warning: command-line option ‘-Wstrict-prototypes’ is valid for C/ObjC but not for C++
cc1plus: warning: command-line option ‘-Wmissing-prototypes’ is valid for C/ObjC but not for C++
cc1plus: warning: ‘-Werror=’ argument ‘-Werror=declaration-after-statement’ is not valid for C++
cc1plus: warning: command-line option ‘-Wstrict-prototypes’ is valid for C/ObjC but not for C++
cc1plus: warning: command-line option ‘-Wmissing-prototypes’ is valid for C/ObjC but not for C++
cc1plus: warning: ‘-Werror=’ argument ‘-Werror=declaration-after-statement’ is not valid for C++
cc1plus: warning: command-line option ‘-Wstrict-prototypes’ is valid for C/ObjC but not for C++
cc1plus: warning: command-line option ‘-Wmissing-prototypes’ is valid for C/ObjC but not for C++
cc1plus: warning: ‘-Werror=’ argument ‘-Werror=declaration-after-statement’ is not valid for C++
cc1plus: warning: command-line option ‘-Wstrict-prototypes’ is valid for C/ObjC but not for C++
cc1plus: warning: command-line option ‘-Wmissing-prototypes’ is valid for C/ObjC but not for C++
cc1plus: warning: ‘-Werror=’ argument ‘-Werror=declaration-after-statement’ is not valid for C++
cc1plus: warning: command-line option ‘-Wstrict-prototypes’ is valid for C/ObjC but not for C++
cc1plus: warning: command-line option ‘-Wmissing-prototypes’ is valid for C/ObjC but not for C++
cc1plus: warning: ‘-Werror=’ argument ‘-Werror=declaration-after-statement’ is not valid for C++
tesseract/src/ccmain/pagesegmain.cpp:249:13: warning: ‘void tesseract::AddAllScriptsConverted(const UNICHARSET&, const UNICHARSET&, std::vector*)’ defined but not used [-Wunused-function]
249 | static void AddAllScriptsConverted(const UNICHARSET &sid_set, const UNICHARSET &osd_set,
| ^~~~~~~~~~~~~~~~~~~~~~
cc1plus: warning: command-line option ‘-Wstrict-prototypes’ is valid for C/ObjC but not for C++
cc1plus: warning: command-line option ‘-Wmissing-prototypes’ is valid for C/ObjC but not for C++
cc1plus: warning: ‘-Werror=’ argument ‘-Werror=declaration-after-statement’ is not valid for C++
cc1plus: warning: command-line option ‘-Wstrict-prototypes’ is valid for C/ObjC but not for C++
cc1plus: warning: command-line option ‘-Wmissing-prototypes’ is valid for C/ObjC but not for C++
cc1plus: warning: ‘-Werror=’ argument ‘-Werror=declaration-after-statement’ is not valid for C++
cc1plus: warning: command-line option ‘-Wstrict-prototypes’ is valid for C/ObjC but not for C++
cc1plus: warning: command-line option ‘-Wmissing-prototypes’ is valid for C/ObjC but not for C++
cc1plus: warning: ‘-Werror=’ argument ‘-Werror=declaration-after-statement’ is not valid for C++
cc1plus: warning: command-line option ‘-Wstrict-prototypes’ is valid for C/ObjC but not for C++
cc1plus: warning: command-line option ‘-Wmissing-prototypes’ is valid for C/ObjC but not for C++
cc1plus: warning: ‘-Werror=’ argument ‘-Werror=declaration-after-statement’ is not valid for C++
cc1plus: warning: command-line option ‘-Wstrict-prototypes’ is valid for C/ObjC but not for C++
cc1plus: warning: command-line option ‘-Wmissing-prototypes’ is valid for C/ObjC but not for C++
cc1plus: warning: ‘-Werror=’ argument ‘-Werror=declaration-after-statement’ is not valid for C++
cc1plus: warning: command-line option ‘-Wstrict-prototypes’ is valid for C/ObjC but not for C++
cc1plus: warning: command-line option ‘-Wmissing-prototypes’ is valid for C/ObjC but not for C++
cc1plus: warning: ‘-Werror=’ argument ‘-Werror=declaration-after-statement’ is not valid for C++
cc1plus: warning: command-line option ‘-Wstrict-prototypes’ is valid for C/ObjC but not for C++
cc1plus: warning: command-line option ‘-Wmissing-prototypes’ is valid for C/ObjC but not for C++
cc1plus: warning: ‘-Werror=’ argument ‘-Werror=declaration-after-statement’ is not valid for C++
cc1plus: warning: command-line option ‘-Wstrict-prototypes’ is valid for C/ObjC but not for C++
cc1plus: warning: command-line option ‘-Wmissing-prototypes’ is valid for C/ObjC but not for C++
cc1plus: warning: ‘-Werror=’ argument ‘-Werror=declaration-after-statement’ is not valid for C++
cc1plus: warning: command-line option ‘-Wstrict-prototypes’ is valid for C/ObjC but not for C++
cc1plus: warning: command-line option ‘-Wmissing-prototypes’ is valid for C/ObjC but not for C++
cc1plus: warning: ‘-Werror=’ argument ‘-Werror=declaration-after-statement’ is not valid for C++
cc1plus: warning: command-line option ‘-Wstrict-prototypes’ is valid for C/ObjC but not for C++
cc1plus: warning: command-line option ‘-Wmissing-prototypes’ is valid for C/ObjC but not for C++
cc1plus: warning: ‘-Werror=’ argument ‘-Werror=declaration-after-statement’ is not valid for C++
cc1plus: warning: command-line option ‘-Wstrict-prototypes’ is valid for C/ObjC but not for C++
cc1plus: warning: command-line option ‘-Wmissing-prototypes’ is valid for C/ObjC but not for C++
cc1plus: warning: ‘-Werror=’ argument ‘-Werror=declaration-after-statement’ is not valid for C++
cc1plus: warning: command-line option ‘-Wstrict-prototypes’ is valid for C/ObjC but not for C++
cc1plus: warning: command-line option ‘-Wmissing-prototypes’ is valid for C/ObjC but not for C++
cc1plus: warning: ‘-Werror=’ argument ‘-Werror=declaration-after-statement’ is not valid for C++
cc1plus: warning: command-line option ‘-Wstrict-prototypes’ is valid for C/ObjC but not for C++
cc1plus: warning: command-line option ‘-Wmissing-prototypes’ is valid for C/ObjC but not for C++
cc1plus: warning: ‘-Werror=’ argument ‘-Werror=declaration-after-statement’ is not valid for C++
cc1plus: warning: command-line option ‘-Wstrict-prototypes’ is valid for C/ObjC but not for C++
cc1plus: warning: command-line option ‘-Wmissing-prototypes’ is valid for C/ObjC but not for C++
cc1plus: warning: ‘-Werror=’ argument ‘-Werror=declaration-after-statement’ is not valid for C++
cc1plus: warning: command-line option ‘-Wstrict-prototypes’ is valid for C/ObjC but not for C++
cc1plus: warning: command-line option ‘-Wmissing-prototypes’ is valid for C/ObjC but not for C++
cc1plus: warning: ‘-Werror=’ argument ‘-Werror=declaration-after-statement’ is not valid for C++
cc1plus: warning: command-line option ‘-Wstrict-prototypes’ is valid for C/ObjC but not for C++
cc1plus: warning: command-line option ‘-Wmissing-prototypes’ is valid for C/ObjC but not for C++
cc1plus: warning: ‘-Werror=’ argument ‘-Werror=declaration-after-statement’ is not valid for C++
cc1plus: warning: command-line option ‘-Wstrict-prototypes’ is valid for C/ObjC but not for C++
cc1plus: warning: command-line option ‘-Wmissing-prototypes’ is valid for C/ObjC but not for C++
cc1plus: warning: ‘-Werror=’ argument ‘-Werror=declaration-after-statement’ is not valid for C++
cc1plus: warning: command-line option ‘-Wstrict-prototypes’ is valid for C/ObjC but not for C++
cc1plus: warning: command-line option ‘-Wmissing-prototypes’ is valid for C/ObjC but not for C++
cc1plus: warning: ‘-Werror=’ argument ‘-Werror=declaration-after-statement’ is not valid for C++
cc1plus: warning: command-line option ‘-Wstrict-prototypes’ is valid for C/ObjC but not for C++
cc1plus: warning: command-line option ‘-Wmissing-prototypes’ is valid for C/ObjC but not for C++
cc1plus: warning: ‘-Werror=’ argument ‘-Werror=declaration-after-statement’ is not valid for C++
cc1plus: warning: command-line option ‘-Wstrict-prototypes’ is valid for C/ObjC but not for C++
cc1plus: warning: command-line option ‘-Wmissing-prototypes’ is valid for C/ObjC but not for C++
cc1plus: warning: ‘-Werror=’ argument ‘-Werror=declaration-after-statement’ is not valid for C++
cc1plus: warning: command-line option ‘-Wstrict-prototypes’ is valid for C/ObjC but not for C++
cc1plus: warning: command-line option ‘-Wmissing-prototypes’ is valid for C/ObjC but not for C++
cc1plus: warning: ‘-Werror=’ argument ‘-Werror=declaration-after-statement’ is not valid for C++
cc1plus: warning: command-line option ‘-Wstrict-prototypes’ is valid for C/ObjC but not for C++
cc1plus: warning: command-line option ‘-Wmissing-prototypes’ is valid for C/ObjC but not for C++
cc1plus: warning: ‘-Werror=’ argument ‘-Werror=declaration-after-statement’ is not valid for C++
cc1plus: warning: command-line option ‘-Wstrict-prototypes’ is valid for C/ObjC but not for C++
cc1plus: warning: command-line option ‘-Wmissing-prototypes’ is valid for C/ObjC but not for C++
cc1plus: warning: ‘-Werror=’ argument ‘-Werror=declaration-after-statement’ is not valid for C++
cc1plus: warning: command-line option ‘-Wstrict-prototypes’ is valid for C/ObjC but not for C++
cc1plus: warning: command-line option ‘-Wmissing-prototypes’ is valid for C/ObjC but not for C++
cc1plus: warning: ‘-Werror=’ argument ‘-Werror=declaration-after-statement’ is not valid for C++
cc1plus: warning: command-line option ‘-Wstrict-prototypes’ is valid for C/ObjC but not for C++
cc1plus: warning: command-line option ‘-Wmissing-prototypes’ is valid for C/ObjC but not for C++
cc1plus: warning: ‘-Werror=’ argument ‘-Werror=declaration-after-statement’ is not valid for C++
cc1plus: warning: command-line option ‘-Wstrict-prototypes’ is valid for C/ObjC but not for C++
cc1plus: warning: command-line option ‘-Wmissing-prototypes’ is valid for C/ObjC but not for C++
cc1plus: warning: ‘-Werror=’ argument ‘-Werror=declaration-after-statement’ is not valid for C++
cc1plus: warning: command-line option ‘-Wstrict-prototypes’ is valid for C/ObjC but not for C++
cc1plus: warning: command-line option ‘-Wmissing-prototypes’ is valid for C/ObjC but not for C++
cc1plus: warning: ‘-Werror=’ argument ‘-Werror=declaration-after-statement’ is not valid for C++
cc1plus: warning: command-line option ‘-Wstrict-prototypes’ is valid for C/ObjC but not for C++
cc1plus: warning: command-line option ‘-Wmissing-prototypes’ is valid for C/ObjC but not for C++
cc1plus: warning: ‘-Werror=’ argument ‘-Werror=declaration-after-statement’ is not valid for C++
cc1plus: warning: command-line option ‘-Wstrict-prototypes’ is valid for C/ObjC but not for C++
cc1plus: warning: command-line option ‘-Wmissing-prototypes’ is valid for C/ObjC but not for C++
cc1plus: warning: ‘-Werror=’ argument ‘-Werror=declaration-after-statement’ is not valid for C++
cc1plus: warning: command-line option ‘-Wstrict-prototypes’ is valid for C/ObjC but not for C++
cc1plus: warning: command-line option ‘-Wmissing-prototypes’ is valid for C/ObjC but not for C++
cc1plus: warning: ‘-Werror=’ argument ‘-Werror=declaration-after-statement’ is not valid for C++
cc1plus: warning: command-line option ‘-Wstrict-prototypes’ is valid for C/ObjC but not for C++
cc1plus: warning: command-line option ‘-Wmissing-prototypes’ is valid for C/ObjC but not for C++
cc1plus: warning: ‘-Werror=’ argument ‘-Werror=declaration-after-statement’ is not valid for C++
cc1plus: warning: command-line option ‘-Wstrict-prototypes’ is valid for C/ObjC but not for C++
cc1plus: warning: command-line option ‘-Wmissing-prototypes’ is valid for C/ObjC but not for C++
cc1plus: warning: ‘-Werror=’ argument ‘-Werror=declaration-after-statement’ is not valid for C++
cc1plus: warning: command-line option ‘-Wstrict-prototypes’ is valid for C/ObjC but not for C++
cc1plus: warning: command-line option ‘-Wmissing-prototypes’ is valid for C/ObjC but not for C++
cc1plus: warning: ‘-Werror=’ argument ‘-Werror=declaration-after-statement’ is not valid for C++
cc1plus: warning: command-line option ‘-Wstrict-prototypes’ is valid for C/ObjC but not for C++
cc1plus: warning: command-line option ‘-Wmissing-prototypes’ is valid for C/ObjC but not for C++
cc1plus: warning: ‘-Werror=’ argument ‘-Werror=declaration-after-statement’ is not valid for C++
cc1plus: warning: command-line option ‘-Wstrict-prototypes’ is valid for C/ObjC but not for C++
cc1plus: warning: command-line option ‘-Wmissing-prototypes’ is valid for C/ObjC but not for C++
cc1plus: warning: ‘-Werror=’ argument ‘-Werror=declaration-after-statement’ is not valid for C++
cc1plus: warning: command-line option ‘-Wstrict-prototypes’ is valid for C/ObjC but not for C++
cc1plus: warning: command-line option ‘-Wmissing-prototypes’ is valid for C/ObjC but not for C++
cc1plus: warning: ‘-Werror=’ argument ‘-Werror=declaration-after-statement’ is not valid for C++
cc1plus: warning: command-line option ‘-Wstrict-prototypes’ is valid for C/ObjC but not for C++
cc1plus: warning: command-line option ‘-Wmissing-prototypes’ is valid for C/ObjC but not for C++
cc1plus: warning: ‘-Werror=’ argument ‘-Werror=declaration-after-statement’ is not valid for C++
cc1plus: warning: command-line option ‘-Wstrict-prototypes’ is valid for C/ObjC but not for C++
cc1plus: warning: command-line option ‘-Wmissing-prototypes’ is valid for C/ObjC but not for C++
cc1plus: warning: ‘-Werror=’ argument ‘-Werror=declaration-after-statement’ is not valid for C++
cc1plus: warning: command-line option ‘-Wstrict-prototypes’ is valid for C/ObjC but not for C++
cc1plus: warning: command-line option ‘-Wmissing-prototypes’ is valid for C/ObjC but not for C++
cc1plus: warning: ‘-Werror=’ argument ‘-Werror=declaration-after-statement’ is not valid for C++
cc1plus: warning: command-line option ‘-Wstrict-prototypes’ is valid for C/ObjC but not for C++
cc1plus: warning: command-line option ‘-Wmissing-prototypes’ is valid for C/ObjC but not for C++
cc1plus: warning: ‘-Werror=’ argument ‘-Werror=declaration-after-statement’ is not valid for C++
cc1plus: warning: command-line option ‘-Wstrict-prototypes’ is valid for C/ObjC but not for C++
cc1plus: warning: command-line option ‘-Wmissing-prototypes’ is valid for C/ObjC but not for C++
cc1plus: warning: ‘-Werror=’ argument ‘-Werror=declaration-after-statement’ is not valid for C++
cc1plus: warning: command-line option ‘-Wstrict-prototypes’ is valid for C/ObjC but not for C++
cc1plus: warning: command-line option ‘-Wmissing-prototypes’ is valid for C/ObjC but not for C++
cc1plus: warning: ‘-Werror=’ argument ‘-Werror=declaration-after-statement’ is not valid for C++
cc1plus: warning: command-line option ‘-Wstrict-prototypes’ is valid for C/ObjC but not for C++
cc1plus: warning: command-line option ‘-Wmissing-prototypes’ is valid for C/ObjC but not for C++
cc1plus: warning: ‘-Werror=’ argument ‘-Werror=declaration-after-statement’ is not valid for C++
cc1plus: warning: command-line option ‘-Wstrict-prototypes’ is valid for C/ObjC but not for C++
cc1plus: warning: command-line option ‘-Wmissing-prototypes’ is valid for C/ObjC but not for C++
cc1plus: warning: ‘-Werror=’ argument ‘-Werror=declaration-after-statement’ is not valid for C++
cc1plus: warning: command-line option ‘-Wstrict-prototypes’ is valid for C/ObjC but not for C++
cc1plus: warning: command-line option ‘-Wmissing-prototypes’ is valid for C/ObjC but not for C++
cc1plus: warning: ‘-Werror=’ argument ‘-Werror=declaration-after-statement’ is not valid for C++
cc1plus: warning: command-line option ‘-Wstrict-prototypes’ is valid for C/ObjC but not for C++
cc1plus: warning: command-line option ‘-Wmissing-prototypes’ is valid for C/ObjC but not for C++
cc1plus: warning: ‘-Werror=’ argument ‘-Werror=declaration-after-statement’ is not valid for C++
cc1plus: warning: command-line option ‘-Wstrict-prototypes’ is valid for C/ObjC but not for C++
cc1plus: warning: command-line option ‘-Wmissing-prototypes’ is valid for C/ObjC but not for C++
cc1plus: warning: ‘-Werror=’ argument ‘-Werror=declaration-after-statement’ is not valid for C++
cc1plus: warning: command-line option ‘-Wstrict-prototypes’ is valid for C/ObjC but not for C++
cc1plus: warning: command-line option ‘-Wmissing-prototypes’ is valid for C/ObjC but not for C++
cc1plus: warning: ‘-Werror=’ argument ‘-Werror=declaration-after-statement’ is not valid for C++
cc1plus: warning: command-line option ‘-Wstrict-prototypes’ is valid for C/ObjC but not for C++
cc1plus: warning: command-line option ‘-Wmissing-prototypes’ is valid for C/ObjC but not for C++
cc1plus: warning: ‘-Werror=’ argument ‘-Werror=declaration-after-statement’ is not valid for C++
cc1plus: warning: command-line option ‘-Wstrict-prototypes’ is valid for C/ObjC but not for C++
cc1plus: warning: command-line option ‘-Wmissing-prototypes’ is valid for C/ObjC but not for C++
cc1plus: warning: ‘-Werror=’ argument ‘-Werror=declaration-after-statement’ is not valid for C++
cc1plus: warning: command-line option ‘-Wstrict-prototypes’ is valid for C/ObjC but not for C++
cc1plus: warning: command-line option ‘-Wmissing-prototypes’ is valid for C/ObjC but not for C++
cc1plus: warning: ‘-Werror=’ argument ‘-Werror=declaration-after-statement’ is not valid for C++
cc1plus: warning: command-line option ‘-Wstrict-prototypes’ is valid for C/ObjC but not for C++
cc1plus: warning: command-line option ‘-Wmissing-prototypes’ is valid for C/ObjC but not for C++
cc1plus: warning: ‘-Werror=’ argument ‘-Werror=declaration-after-statement’ is not valid for C++
cc1plus: warning: command-line option ‘-Wstrict-prototypes’ is valid for C/ObjC but not for C++
cc1plus: warning: command-line option ‘-Wmissing-prototypes’ is valid for C/ObjC but not for C++
cc1plus: warning: ‘-Werror=’ argument ‘-Werror=declaration-after-statement’ is not valid for C++
cc1plus: warning: command-line option ‘-Wstrict-prototypes’ is valid for C/ObjC but not for C++
cc1plus: warning: command-line option ‘-Wmissing-prototypes’ is valid for C/ObjC but not for C++
cc1plus: warning: ‘-Werror=’ argument ‘-Werror=declaration-after-statement’ is not valid for C++
tesseract/src/textord/bbgrid.cpp:250:7: warning: no previous declaration for ‘tesseract::Image tesseract::TraceBlockOnReducedPix(BLOCK*, int, ICOORD, int*, int*)’ [-Wmissing-declarations]
250 | Image TraceBlockOnReducedPix(BLOCK *block, int gridsize, ICOORD bleft, int *left, int *bottom) {
| ^~~~~~~~~~~~~~~~~~~~~~
cc1plus: warning: command-line option ‘-Wstrict-prototypes’ is valid for C/ObjC but not for C++
cc1plus: warning: command-line option ‘-Wmissing-prototypes’ is valid for C/ObjC but not for C++
cc1plus: warning: ‘-Werror=’ argument ‘-Werror=declaration-after-statement’ is not valid for C++
cc1plus: warning: command-line option ‘-Wstrict-prototypes’ is valid for C/ObjC but not for C++
cc1plus: warning: command-line option ‘-Wmissing-prototypes’ is valid for C/ObjC but not for C++
cc1plus: warning: ‘-Werror=’ argument ‘-Werror=declaration-after-statement’ is not valid for C++
cc1plus: warning: command-line option ‘-Wstrict-prototypes’ is valid for C/ObjC but not for C++
cc1plus: warning: command-line option ‘-Wmissing-prototypes’ is valid for C/ObjC but not for C++
cc1plus: warning: ‘-Werror=’ argument ‘-Werror=declaration-after-statement’ is not valid for C++
cc1plus: warning: command-line option ‘-Wstrict-prototypes’ is valid for C/ObjC but not for C++
cc1plus: warning: command-line option ‘-Wmissing-prototypes’ is valid for C/ObjC but not for C++
cc1plus: warning: ‘-Werror=’ argument ‘-Werror=declaration-after-statement’ is not valid for C++
cc1plus: warning: command-line option ‘-Wstrict-prototypes’ is valid for C/ObjC but not for C++
cc1plus: warning: command-line option ‘-Wmissing-prototypes’ is valid for C/ObjC but not for C++
cc1plus: warning: ‘-Werror=’ argument ‘-Werror=declaration-after-statement’ is not valid for C++
cc1plus: warning: command-line option ‘-Wstrict-prototypes’ is valid for C/ObjC but not for C++
cc1plus: warning: command-line option ‘-Wmissing-prototypes’ is valid for C/ObjC but not for C++
cc1plus: warning: ‘-Werror=’ argument ‘-Werror=declaration-after-statement’ is not valid for C++
cc1plus: warning: command-line option ‘-Wstrict-prototypes’ is valid for C/ObjC but not for C++
cc1plus: warning: command-line option ‘-Wmissing-prototypes’ is valid for C/ObjC but not for C++
cc1plus: warning: ‘-Werror=’ argument ‘-Werror=declaration-after-statement’ is not valid for C++
cc1plus: warning: command-line option ‘-Wstrict-prototypes’ is valid for C/ObjC but not for C++
cc1plus: warning: command-line option ‘-Wmissing-prototypes’ is valid for C/ObjC but not for C++
cc1plus: warning: ‘-Werror=’ argument ‘-Werror=declaration-after-statement’ is not valid for C++
cc1plus: warning: command-line option ‘-Wstrict-prototypes’ is valid for C/ObjC but not for C++
cc1plus: warning: command-line option ‘-Wmissing-prototypes’ is valid for C/ObjC but not for C++
cc1plus: warning: ‘-Werror=’ argument ‘-Werror=declaration-after-statement’ is not valid for C++
cc1plus: warning: command-line option ‘-Wstrict-prototypes’ is valid for C/ObjC but not for C++
cc1plus: warning: command-line option ‘-Wmissing-prototypes’ is valid for C/ObjC but not for C++
cc1plus: warning: ‘-Werror=’ argument ‘-Werror=declaration-after-statement’ is not valid for C++
cc1plus: warning: command-line option ‘-Wstrict-prototypes’ is valid for C/ObjC but not for C++
cc1plus: warning: command-line option ‘-Wmissing-prototypes’ is valid for C/ObjC but not for C++
cc1plus: warning: ‘-Werror=’ argument ‘-Werror=declaration-after-statement’ is not valid for C++
cc1plus: warning: command-line option ‘-Wstrict-prototypes’ is valid for C/ObjC but not for C++
cc1plus: warning: command-line option ‘-Wmissing-prototypes’ is valid for C/ObjC but not for C++
cc1plus: warning: ‘-Werror=’ argument ‘-Werror=declaration-after-statement’ is not valid for C++
cc1plus: warning: command-line option ‘-Wstrict-prototypes’ is valid for C/ObjC but not for C++
cc1plus: warning: command-line option ‘-Wmissing-prototypes’ is valid for C/ObjC but not for C++
cc1plus: warning: ‘-Werror=’ argument ‘-Werror=declaration-after-statement’ is not valid for C++
cc1plus: warning: command-line option ‘-Wstrict-prototypes’ is valid for C/ObjC but not for C++
cc1plus: warning: command-line option ‘-Wmissing-prototypes’ is valid for C/ObjC but not for C++
cc1plus: warning: ‘-Werror=’ argument ‘-Werror=declaration-after-statement’ is not valid for C++
cc1plus: warning: command-line option ‘-Wstrict-prototypes’ is valid for C/ObjC but not for C++
cc1plus: warning: command-line option ‘-Wmissing-prototypes’ is valid for C/ObjC but not for C++
cc1plus: warning: ‘-Werror=’ argument ‘-Werror=declaration-after-statement’ is not valid for C++
cc1plus: warning: command-line option ‘-Wstrict-prototypes’ is valid for C/ObjC but not for C++
cc1plus: warning: command-line option ‘-Wmissing-prototypes’ is valid for C/ObjC but not for C++
cc1plus: warning: ‘-Werror=’ argument ‘-Werror=declaration-after-statement’ is not valid for C++
cc1plus: warning: command-line option ‘-Wstrict-prototypes’ is valid for C/ObjC but not for C++
cc1plus: warning: command-line option ‘-Wmissing-prototypes’ is valid for C/ObjC but not for C++
cc1plus: warning: ‘-Werror=’ argument ‘-Werror=declaration-after-statement’ is not valid for C++
tesseract/src/textord/makerow.cpp: In function ‘void tesseract::delete_non_dropout_rows(TO_BLOCK*, float, FCOORD, int32_t, bool)’:
tesseract/src/textord/makerow.cpp:625:11: warning: variable ‘xleft’ set but not used [-Wunused-but-set-variable]
625 | int32_t xleft; // of block
| ^~~~~
tesseract/src/textord/makerow.cpp:626:11: warning: variable ‘ybottom’ set but not used [-Wunused-but-set-variable]
626 | int32_t ybottom; // of block
| ^~~~~~~
tesseract/src/textord/makerow.cpp: In function ‘void tesseract::assign_blobs_to_rows(TO_BLOCK*, float*, int, bool, bool, bool)’:
tesseract/src/textord/makerow.cpp:2281:9: warning: variable ‘ycoord’ set but not used [-Wunused-but-set-variable]
2281 | float ycoord; // current y
| ^~~~~~
cc1plus: warning: command-line option ‘-Wstrict-prototypes’ is valid for C/ObjC but not for C++
cc1plus: warning: command-line option ‘-Wmissing-prototypes’ is valid for C/ObjC but not for C++
cc1plus: warning: ‘-Werror=’ argument ‘-Werror=declaration-after-statement’ is not valid for C++
cc1plus: warning: command-line option ‘-Wstrict-prototypes’ is valid for C/ObjC but not for C++
cc1plus: warning: command-line option ‘-Wmissing-prototypes’ is valid for C/ObjC but not for C++
cc1plus: warning: ‘-Werror=’ argument ‘-Werror=declaration-after-statement’ is not valid for C++
cc1plus: warning: command-line option ‘-Wstrict-prototypes’ is valid for C/ObjC but not for C++
cc1plus: warning: command-line option ‘-Wmissing-prototypes’ is valid for C/ObjC but not for C++
cc1plus: warning: ‘-Werror=’ argument ‘-Werror=declaration-after-statement’ is not valid for C++
cc1plus: warning: command-line option ‘-Wstrict-prototypes’ is valid for C/ObjC but not for C++
cc1plus: warning: command-line option ‘-Wmissing-prototypes’ is valid for C/ObjC but not for C++
cc1plus: warning: ‘-Werror=’ argument ‘-Werror=declaration-after-statement’ is not valid for C++
cc1plus: warning: command-line option ‘-Wstrict-prototypes’ is valid for C/ObjC but not for C++
cc1plus: warning: command-line option ‘-Wmissing-prototypes’ is valid for C/ObjC but not for C++
cc1plus: warning: ‘-Werror=’ argument ‘-Werror=declaration-after-statement’ is not valid for C++
cc1plus: warning: command-line option ‘-Wstrict-prototypes’ is valid for C/ObjC but not for C++
cc1plus: warning: command-line option ‘-Wmissing-prototypes’ is valid for C/ObjC but not for C++
cc1plus: warning: ‘-Werror=’ argument ‘-Werror=declaration-after-statement’ is not valid for C++
cc1plus: warning: command-line option ‘-Wstrict-prototypes’ is valid for C/ObjC but not for C++
cc1plus: warning: command-line option ‘-Wmissing-prototypes’ is valid for C/ObjC but not for C++
cc1plus: warning: ‘-Werror=’ argument ‘-Werror=declaration-after-statement’ is not valid for C++
cc1plus: warning: command-line option ‘-Wstrict-prototypes’ is valid for C/ObjC but not for C++
cc1plus: warning: command-line option ‘-Wmissing-prototypes’ is valid for C/ObjC but not for C++
cc1plus: warning: ‘-Werror=’ argument ‘-Werror=declaration-after-statement’ is not valid for C++
cc1plus: warning: command-line option ‘-Wstrict-prototypes’ is valid for C/ObjC but not for C++
cc1plus: warning: command-line option ‘-Wmissing-prototypes’ is valid for C/ObjC but not for C++
cc1plus: warning: ‘-Werror=’ argument ‘-Werror=declaration-after-statement’ is not valid for C++
cc1plus: warning: command-line option ‘-Wstrict-prototypes’ is valid for C/ObjC but not for C++
cc1plus: warning: command-line option ‘-Wmissing-prototypes’ is valid for C/ObjC but not for C++
cc1plus: warning: ‘-Werror=’ argument ‘-Werror=declaration-after-statement’ is not valid for C++
cc1plus: warning: command-line option ‘-Wstrict-prototypes’ is valid for C/ObjC but not for C++
cc1plus: warning: command-line option ‘-Wmissing-prototypes’ is valid for C/ObjC but not for C++
cc1plus: warning: ‘-Werror=’ argument ‘-Werror=declaration-after-statement’ is not valid for C++
cc1plus: warning: command-line option ‘-Wstrict-prototypes’ is valid for C/ObjC but not for C++
cc1plus: warning: command-line option ‘-Wmissing-prototypes’ is valid for C/ObjC but not for C++
cc1plus: warning: ‘-Werror=’ argument ‘-Werror=declaration-after-statement’ is not valid for C++
cc1plus: warning: command-line option ‘-Wstrict-prototypes’ is valid for C/ObjC but not for C++
cc1plus: warning: command-line option ‘-Wmissing-prototypes’ is valid for C/ObjC but not for C++
cc1plus: warning: ‘-Werror=’ argument ‘-Werror=declaration-after-statement’ is not valid for C++
cc1plus: warning: command-line option ‘-Wstrict-prototypes’ is valid for C/ObjC but not for C++
cc1plus: warning: command-line option ‘-Wmissing-prototypes’ is valid for C/ObjC but not for C++
cc1plus: warning: ‘-Werror=’ argument ‘-Werror=declaration-after-statement’ is not valid for C++
cc1plus: warning: command-line option ‘-Wstrict-prototypes’ is valid for C/ObjC but not for C++
cc1plus: warning: command-line option ‘-Wmissing-prototypes’ is valid for C/ObjC but not for C++
cc1plus: warning: ‘-Werror=’ argument ‘-Werror=declaration-after-statement’ is not valid for C++
cc1plus: warning: command-line option ‘-Wstrict-prototypes’ is valid for C/ObjC but not for C++
cc1plus: warning: command-line option ‘-Wmissing-prototypes’ is valid for C/ObjC but not for C++
cc1plus: warning: ‘-Werror=’ argument ‘-Werror=declaration-after-statement’ is not valid for C++
cc1plus: warning: command-line option ‘-Wstrict-prototypes’ is valid for C/ObjC but not for C++
cc1plus: warning: command-line option ‘-Wmissing-prototypes’ is valid for C/ObjC but not for C++
cc1plus: warning: ‘-Werror=’ argument ‘-Werror=declaration-after-statement’ is not valid for C++
cc1plus: warning: command-line option ‘-Wstrict-prototypes’ is valid for C/ObjC but not for C++
cc1plus: warning: command-line option ‘-Wmissing-prototypes’ is valid for C/ObjC but not for C++
cc1plus: warning: ‘-Werror=’ argument ‘-Werror=declaration-after-statement’ is not valid for C++
cc1plus: warning: command-line option ‘-Wstrict-prototypes’ is valid for C/ObjC but not for C++
cc1plus: warning: command-line option ‘-Wmissing-prototypes’ is valid for C/ObjC but not for C++
cc1plus: warning: ‘-Werror=’ argument ‘-Werror=declaration-after-statement’ is not valid for C++
cc1plus: warning: command-line option ‘-Wstrict-prototypes’ is valid for C/ObjC but not for C++
cc1plus: warning: command-line option ‘-Wmissing-prototypes’ is valid for C/ObjC but not for C++
cc1plus: warning: ‘-Werror=’ argument ‘-Werror=declaration-after-statement’ is not valid for C++
tesseract/src/viewer/scrollview.cpp:61:20: warning: ‘tesseract::waiting_for_events_mu’ defined but not used [-Wunused-variable]
61 | static std::mutex *waiting_for_events_mu;
| ^~~~~~~~~~~~~~~~~~~~~
tesseract/src/viewer/scrollview.cpp:57:20: warning: ‘tesseract::svmap_mu’ defined but not used [-Wunused-variable]
57 | static std::mutex *svmap_mu;
| ^~~~~~~~
cc1plus: warning: command-line option ‘-Wstrict-prototypes’ is valid for C/ObjC but not for C++
cc1plus: warning: command-line option ‘-Wmissing-prototypes’ is valid for C/ObjC but not for C++
cc1plus: warning: ‘-Werror=’ argument ‘-Werror=declaration-after-statement’ is not valid for C++
cc1plus: warning: command-line option ‘-Wstrict-prototypes’ is valid for C/ObjC but not for C++
cc1plus: warning: command-line option ‘-Wmissing-prototypes’ is valid for C/ObjC but not for C++
cc1plus: warning: ‘-Werror=’ argument ‘-Werror=declaration-after-statement’ is not valid for C++
cc1plus: warning: command-line option ‘-Wstrict-prototypes’ is valid for C/ObjC but not for C++
cc1plus: warning: command-line option ‘-Wmissing-prototypes’ is valid for C/ObjC but not for C++
cc1plus: warning: ‘-Werror=’ argument ‘-Werror=declaration-after-statement’ is not valid for C++
cc1plus: warning: command-line option ‘-Wstrict-prototypes’ is valid for C/ObjC but not for C++
cc1plus: warning: command-line option ‘-Wmissing-prototypes’ is valid for C/ObjC but not for C++
cc1plus: warning: ‘-Werror=’ argument ‘-Werror=declaration-after-statement’ is not valid for C++
cc1plus: warning: command-line option ‘-Wstrict-prototypes’ is valid for C/ObjC but not for C++
cc1plus: warning: command-line option ‘-Wmissing-prototypes’ is valid for C/ObjC but not for C++
cc1plus: warning: ‘-Werror=’ argument ‘-Werror=declaration-after-statement’ is not valid for C++
cc1plus: warning: command-line option ‘-Wstrict-prototypes’ is valid for C/ObjC but not for C++
cc1plus: warning: command-line option ‘-Wmissing-prototypes’ is valid for C/ObjC but not for C++
cc1plus: warning: ‘-Werror=’ argument ‘-Werror=declaration-after-statement’ is not valid for C++
cc1plus: warning: command-line option ‘-Wstrict-prototypes’ is valid for C/ObjC but not for C++
cc1plus: warning: command-line option ‘-Wmissing-prototypes’ is valid for C/ObjC but not for C++
cc1plus: warning: ‘-Werror=’ argument ‘-Werror=declaration-after-statement’ is not valid for C++
cc1plus: warning: command-line option ‘-Wstrict-prototypes’ is valid for C/ObjC but not for C++
cc1plus: warning: command-line option ‘-Wmissing-prototypes’ is valid for C/ObjC but not for C++
cc1plus: warning: ‘-Werror=’ argument ‘-Werror=declaration-after-statement’ is not valid for C++
cc1plus: warning: command-line option ‘-Wstrict-prototypes’ is valid for C/ObjC but not for C++
cc1plus: warning: command-line option ‘-Wmissing-prototypes’ is valid for C/ObjC but not for C++
cc1plus: warning: ‘-Werror=’ argument ‘-Werror=declaration-after-statement’ is not valid for C++
cc1plus: warning: command-line option ‘-Wstrict-prototypes’ is valid for C/ObjC but not for C++
cc1plus: warning: command-line option ‘-Wmissing-prototypes’ is valid for C/ObjC but not for C++
cc1plus: warning: ‘-Werror=’ argument ‘-Werror=declaration-after-statement’ is not valid for C++
cc1plus: warning: command-line option ‘-Wstrict-prototypes’ is valid for C/ObjC but not for C++
cc1plus: warning: command-line option ‘-Wmissing-prototypes’ is valid for C/ObjC but not for C++
cc1plus: warning: ‘-Werror=’ argument ‘-Werror=declaration-after-statement’ is not valid for C++
cc1plus: warning: command-line option ‘-Wstrict-prototypes’ is valid for C/ObjC but not for C++
cc1plus: warning: command-line option ‘-Wmissing-prototypes’ is valid for C/ObjC but not for C++
cc1plus: warning: ‘-Werror=’ argument ‘-Werror=declaration-after-statement’ is not valid for C++
cc1plus: warning: command-line option ‘-Wstrict-prototypes’ is valid for C/ObjC but not for C++
cc1plus: warning: command-line option ‘-Wmissing-prototypes’ is valid for C/ObjC but not for C++
cc1plus: warning: ‘-Werror=’ argument ‘-Werror=declaration-after-statement’ is not valid for C++
cc1plus: warning: command-line option ‘-Wstrict-prototypes’ is valid for C/ObjC but not for C++
cc1plus: warning: command-line option ‘-Wmissing-prototypes’ is valid for C/ObjC but not for C++
cc1plus: warning: ‘-Werror=’ argument ‘-Werror=declaration-after-statement’ is not valid for C++
cc1plus: warning: command-line option ‘-Wstrict-prototypes’ is valid for C/ObjC but not for C++
cc1plus: warning: command-line option ‘-Wmissing-prototypes’ is valid for C/ObjC but not for C++
cc1plus: warning: ‘-Werror=’ argument ‘-Werror=declaration-after-statement’ is not valid for C++
cc1plus: warning: command-line option ‘-Wstrict-prototypes’ is valid for C/ObjC but not for C++
cc1plus: warning: command-line option ‘-Wmissing-prototypes’ is valid for C/ObjC but not for C++
cc1plus: warning: ‘-Werror=’ argument ‘-Werror=declaration-after-statement’ is not valid for C++
cc1plus: warning: command-line option ‘-Wstrict-prototypes’ is valid for C/ObjC but not for C++
cc1plus: warning: command-line option ‘-Wmissing-prototypes’ is valid for C/ObjC but not for C++
cc1plus: warning: ‘-Werror=’ argument ‘-Werror=declaration-after-statement’ is not valid for C++
tesseract/src/ccutil/tessdatamanager.cpp: In member function ‘bool tesseract::TessdataManager::CombineDataFiles(const char*, const char*)’:
tesseract/src/ccutil/tessdatamanager.cpp:262:18: warning: ‘type’ may be used uninitialized [-Wmaybe-uninitialized]
262 | TessdataType type;
| ^~~~
cc1plus: warning: command-line option ‘-Wstrict-prototypes’ is valid for C/ObjC but not for C++
cc1plus: warning: command-line option ‘-Wmissing-prototypes’ is valid for C/ObjC but not for C++
cc1plus: warning: ‘-Werror=’ argument ‘-Werror=declaration-after-statement’ is not valid for C++
cc1plus: warning: command-line option ‘-Wstrict-prototypes’ is valid for C/ObjC but not for C++
cc1plus: warning: command-line option ‘-Wmissing-prototypes’ is valid for C/ObjC but not for C++
cc1plus: warning: ‘-Werror=’ argument ‘-Werror=declaration-after-statement’ is not valid for C++
cc1plus: warning: command-line option ‘-Wstrict-prototypes’ is valid for C/ObjC but not for C++
cc1plus: warning: command-line option ‘-Wmissing-prototypes’ is valid for C/ObjC but not for C++
cc1plus: warning: ‘-Werror=’ argument ‘-Werror=declaration-after-statement’ is not valid for C++
In file included from tesseract/src/ccutil/unicharset.cpp:19:
tesseract/src/ccutil/unicharset.h: In static member function ‘static tesseract::CHAR_FRAGMENT* tesseract::CHAR_FRAGMENT::parse_from_string(const char*)’:
tesseract/src/ccutil/unicharset.h:67:12: warning: ‘char* __builtin_strncpy(char*, const char*, unsigned int)’ output may be truncated copying 30 bytes from a string of length 30 [-Wstringop-truncation]
67 | strncpy(this->unichar, uch, sizeof(this->unichar));
| ^
cc1plus: warning: command-line option ‘-Wstrict-prototypes’ is valid for C/ObjC but not for C++
cc1plus: warning: command-line option ‘-Wmissing-prototypes’ is valid for C/ObjC but not for C++
cc1plus: warning: ‘-Werror=’ argument ‘-Werror=declaration-after-statement’ is not valid for C++
cc1plus: warning: command-line option ‘-Wstrict-prototypes’ is valid for C/ObjC but not for C++
cc1plus: warning: command-line option ‘-Wmissing-prototypes’ is valid for C/ObjC but not for C++
cc1plus: warning: ‘-Werror=’ argument ‘-Werror=declaration-after-statement’ is not valid for C++
cc1plus: warning: command-line option ‘-Wstrict-prototypes’ is valid for C/ObjC but not for C++
cc1plus: warning: command-line option ‘-Wmissing-prototypes’ is valid for C/ObjC but not for C++
cc1plus: warning: ‘-Werror=’ argument ‘-Werror=declaration-after-statement’ is not valid for C++
cc1plus: warning: command-line option ‘-Wstrict-prototypes’ is valid for C/ObjC but not for C++
cc1plus: warning: command-line option ‘-Wmissing-prototypes’ is valid for C/ObjC but not for C++
cc1plus: warning: ‘-Werror=’ argument ‘-Werror=declaration-after-statement’ is not valid for C++
cc1plus: warning: command-line option ‘-Wstrict-prototypes’ is valid for C/ObjC but not for C++
cc1plus: warning: command-line option ‘-Wmissing-prototypes’ is valid for C/ObjC but not for C++
cc1plus: warning: ‘-Werror=’ argument ‘-Werror=declaration-after-statement’ is not valid for C++
cc1plus: warning: command-line option ‘-Wstrict-prototypes’ is valid for C/ObjC but not for C++
cc1plus: warning: command-line option ‘-Wmissing-prototypes’ is valid for C/ObjC but not for C++
cc1plus: warning: ‘-Werror=’ argument ‘-Werror=declaration-after-statement’ is not valid for C++
cc1plus: warning: command-line option ‘-Wstrict-prototypes’ is valid for C/ObjC but not for C++
cc1plus: warning: command-line option ‘-Wmissing-prototypes’ is valid for C/ObjC but not for C++
cc1plus: warning: ‘-Werror=’ argument ‘-Werror=declaration-after-statement’ is not valid for C++
cc1plus: warning: command-line option ‘-Wstrict-prototypes’ is valid for C/ObjC but not for C++
cc1plus: warning: command-line option ‘-Wmissing-prototypes’ is valid for C/ObjC but not for C++
cc1plus: warning: ‘-Werror=’ argument ‘-Werror=declaration-after-statement’ is not valid for C++
tesseract/src/lstm/parallel.cpp: In member function ‘virtual void tesseract::Parallel::Forward(bool, const tesseract::NetworkIO&, const tesseract::TransposedArray*, tesseract::NetworkScratch*, tesseract::NetworkIO*)’:
tesseract/src/lstm/parallel.cpp:54:8: warning: variable ‘parallel_debug’ set but not used [-Wunused-but-set-variable]
54 | bool parallel_debug = false;
| ^~~~~~~~~~~~~~
cc1plus: warning: command-line option ‘-Wstrict-prototypes’ is valid for C/ObjC but not for C++
cc1plus: warning: command-line option ‘-Wmissing-prototypes’ is valid for C/ObjC but not for C++
cc1plus: warning: ‘-Werror=’ argument ‘-Werror=declaration-after-statement’ is not valid for C++
cc1plus: warning: command-line option ‘-Wstrict-prototypes’ is valid for C/ObjC but not for C++
cc1plus: warning: command-line option ‘-Wmissing-prototypes’ is valid for C/ObjC but not for C++
cc1plus: warning: ‘-Werror=’ argument ‘-Werror=declaration-after-statement’ is not valid for C++
cc1plus: warning: command-line option ‘-Wstrict-prototypes’ is valid for C/ObjC but not for C++
cc1plus: warning: command-line option ‘-Wmissing-prototypes’ is valid for C/ObjC but not for C++
cc1plus: warning: ‘-Werror=’ argument ‘-Werror=declaration-after-statement’ is not valid for C++
cc1plus: warning: command-line option ‘-Wstrict-prototypes’ is valid for C/ObjC but not for C++
cc1plus: warning: command-line option ‘-Wmissing-prototypes’ is valid for C/ObjC but not for C++
cc1plus: warning: ‘-Werror=’ argument ‘-Werror=declaration-after-statement’ is not valid for C++
cc1plus: warning: command-line option ‘-Wstrict-prototypes’ is valid for C/ObjC but not for C++
cc1plus: warning: command-line option ‘-Wmissing-prototypes’ is valid for C/ObjC but not for C++
cc1plus: warning: ‘-Werror=’ argument ‘-Werror=declaration-after-statement’ is not valid for C++
cc1plus: warning: command-line option ‘-Wstrict-prototypes’ is valid for C/ObjC but not for C++
cc1plus: warning: command-line option ‘-Wmissing-prototypes’ is valid for C/ObjC but not for C++
cc1plus: warning: ‘-Werror=’ argument ‘-Werror=declaration-after-statement’ is not valid for C++
cc1plus: warning: command-line option ‘-Wstrict-prototypes’ is valid for C/ObjC but not for C++
cc1plus: warning: command-line option ‘-Wmissing-prototypes’ is valid for C/ObjC but not for C++
cc1plus: warning: ‘-Werror=’ argument ‘-Werror=declaration-after-statement’ is not valid for C++
cc1plus: warning: command-line option ‘-Wstrict-prototypes’ is valid for C/ObjC but not for C++
cc1plus: warning: command-line option ‘-Wmissing-prototypes’ is valid for C/ObjC but not for C++
cc1plus: warning: ‘-Werror=’ argument ‘-Werror=declaration-after-statement’ is not valid for C++
cc1plus: warning: command-line option ‘-Wstrict-prototypes’ is valid for C/ObjC but not for C++
cc1plus: warning: command-line option ‘-Wmissing-prototypes’ is valid for C/ObjC but not for C++
cc1plus: warning: ‘-Werror=’ argument ‘-Werror=declaration-after-statement’ is not valid for C++
cc1plus: warning: command-line option ‘-Wstrict-prototypes’ is valid for C/ObjC but not for C++
cc1plus: warning: command-line option ‘-Wmissing-prototypes’ is valid for C/ObjC but not for C++
cc1plus: warning: ‘-Werror=’ argument ‘-Werror=declaration-after-statement’ is not valid for C++
cc1plus: warning: command-line option ‘-Wstrict-prototypes’ is valid for C/ObjC but not for C++
cc1plus: warning: command-line option ‘-Wmissing-prototypes’ is valid for C/ObjC but not for C++
cc1plus: warning: ‘-Werror=’ argument ‘-Werror=declaration-after-statement’ is not valid for C++
cc1plus: warning: command-line option ‘-Wstrict-prototypes’ is valid for C/ObjC but not for C++
cc1plus: warning: command-line option ‘-Wmissing-prototypes’ is valid for C/ObjC but not for C++
cc1plus: warning: ‘-Werror=’ argument ‘-Werror=declaration-after-statement’ is not valid for C++
cc1plus: warning: command-line option ‘-Wstrict-prototypes’ is valid for C/ObjC but not for C++
cc1plus: warning: command-line option ‘-Wmissing-prototypes’ is valid for C/ObjC but not for C++
cc1plus: warning: ‘-Werror=’ argument ‘-Werror=declaration-after-statement’ is not valid for C++
In file included from ./base/gsdcolor.h:24,
from ./base/gxdevcli.h:25,
from ./base/gscicach.h:22,
from ./base/gxshade6.c:27:
In function ‘color_norm’,
inlined from ‘quadrangle_color_change’ at ./base/gxshade6.c:3303:13,
inlined from ‘fill_quadrangle.isra’ at ./base/gxshade6.c:3496:23:
./base/gxshade6.c:1438:35: warning: ‘d0001’ may be used uninitialized [-Wmaybe-uninitialized]
1438 | m = any_abs(c->cc.paint.values[0]) / pfs->color_domain.paint.values[0];
./base/gxarith.h:23:22: note: in definition of macro ‘any_abs’
23 | #define any_abs(x) ((x) < 0 ? -(x) : (x))
| ^
./base/gxshade6.c: In function ‘fill_quadrangle.isra’:
./base/gxshade6.c:3297:19: note: ‘d0001’ declared here
3297 | patch_color_t d0001, d1011, d;
| ^~~~~
./base/gstiffio.c:196:1: warning: ‘gs_tifsErrorHandlerEx’ defined but not used [-Wunused-function]
196 | gs_tifsErrorHandlerEx(thandle_t client_data, const char* module, const char* fmt, va_list ap)
| ^~~~~~~~~~~~~~~~~~~~~
./base/gstiffio.c:180:1: warning: ‘gs_tifsWarningHandlerEx’ defined but not used [-Wunused-function]
180 | gs_tifsWarningHandlerEx(thandle_t client_data, const char* module, const char* fmt, va_list ap)
| ^~~~~~~~~~~~~~~~~~~~~~~
./devices/vector/gdevpdfg.c: In function ‘check_colorants_for_pdfx4’:
./devices/vector/gdevpdfg.c:1425:17: warning: unused variable ‘Colorant’ [-Wunused-variable]
1425 | char *ink, *Colorant;
| ^~~~~~~~
./devices/vector/gdevpdfi.c: In function ‘check_colorants_for_pdfx4’:
./devices/vector/gdevpdfi.c:516:17: warning: unused variable ‘Colorant’ [-Wunused-variable]
516 | char *ink, *Colorant;
| ^~~~~~~~
./devices/vector/gdevpdfi.c: In function ‘setup_image_colorspace’:
./devices/vector/gdevpdfi.c:755:43: warning: assignment discards ‘const’ qualifier from pointer target type [-Wdiscarded-qualifiers]
755 | *pcs_orig = pcs;
| ^
./devices/vector/gdevpdfi.c:759:43: warning: assignment discards ‘const’ qualifier from pointer target type [-Wdiscarded-qualifiers]
759 | *pcs_orig = pcs;
| ^
cc1plus: warning: command-line option ‘-Wstrict-prototypes’ is valid for C/ObjC but not for C++
cc1plus: warning: command-line option ‘-Wmissing-prototypes’ is valid for C/ObjC but not for C++
cc1plus: warning: ‘-Werror=’ argument ‘-Werror=declaration-after-statement’ is not valid for C++
In file included from ./base/gx.h:26,
from ./base/gdevprn.h:24,
from ./contrib/japanese/gdev10v.c:33:
./contrib/japanese/gdev10v.c: In function ‘bj10v_print_page’:
./base/gsmalloc.h:58:21: warning: ‘in’ may be used uninitialized [-Wmaybe-uninitialized]
58 | gs_free_object(mem->non_gc_memory, data, cname)
./base/gsmemory.h:135:28: note: in definition of macro ‘gs_free_object’
135 | do { if (mem != NULL) {((mem)->procs.free_object(mem, data, cname));} } while (0)
| ^~~
./contrib/japanese/gdev10v.c:336:9: note: in expansion of macro ‘gs_free’
336 | gs_free(pdev->memory->non_gc_memory, (char *)in, 8, line_size, "bj10v_print_page(in)");
| ^~~~~~~
./contrib/japanese/gdev10v.c:202:15: note: ‘in’ was declared here
202 | byte *in, *out;
| ^~
./base/gsmalloc.h:58:21: warning: ‘out’ may be used uninitialized [-Wmaybe-uninitialized]
58 | gs_free_object(mem->non_gc_memory, data, cname)
./base/gsmemory.h:135:28: note: in definition of macro ‘gs_free_object’
135 | do { if (mem != NULL) {((mem)->procs.free_object(mem, data, cname));} } while (0)
| ^~~
./contrib/japanese/gdev10v.c:335:9: note: in expansion of macro ‘gs_free’
335 | gs_free(pdev->memory->non_gc_memory, (char *)out, bits_per_column, line_size, "bj10v_print_page(out)");
| ^~~~~~~
./contrib/japanese/gdev10v.c:202:20: note: ‘out’ was declared here
202 | byte *in, *out;
| ^~~
./contrib/gdevhl12.c: In function ‘hl1250_compress_band’:
./contrib/gdevhl12.c:492:41: warning: format ‘%lu’ expects argument of type ‘long unsigned int’, but argument 3 has type ‘unsigned int’ [-Wformat=]
492 | gp_fprintf(prn_stream, "\033*b%luW", s->out_count * sizeof(u16) + 9);
| ~~^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
| | |
| long unsigned int unsigned int
| %u
./devices/gdevimgn.c: In function ‘imagen_prn_open’:
./devices/gdevimgn.c:297:14: warning: format ‘%ld’ expects argument of type ‘long int’, but argument 2 has type ‘unsigned int’ [-Wformat=]
297 | DebugMsg(2,"BIGSIZE = %ld \n",BIGSIZE);
| ^~~~~~~~~~~~~~~~~~
./devices/gdevimgn.c:160:69: note: in definition of macro ‘DebugMsg’
160 | #define DebugMsg(Level,P1,P2) if (Level<=IM_DEBUG) {errprintf_nomem(P1,P2 );}
| ^~
./devices/gdevimgn.c:297:27: note: format string is defined here
297 | DebugMsg(2,"BIGSIZE = %ld \n",BIGSIZE);
| ~~^
| |
| long int
| %d
./base/gxclmem.c: In function ‘memfile_get_pdata.isra’:
./base/gxclmem.c:951:67: warning: writing 1 byte into a region of size 0 [-Wstringop-overflow=]
951 | *(bp->phys_blk->link->data - back_up + i) = *++f->rd.ptr;
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~
In file included from ./base/gxclmem.c:21:
./base/gxclmem.h:56:10: note: at offset [-2147483647, -1] into destination object ‘data’ of size 16224
56 | char data[MEMFILE_DATA_SIZE];
| ^~~~
./base/gdevdbit.c: In function ‘gx_default_strip_tile_rect_devn’:
./base/gdevdbit.c:603:11: warning: unused variable ‘tile_id’ [-Wunused-variable]
603 | gs_id tile_id = tiles->id;
| ^~~~~~~
In file included from ./base/malloc_.h:23,
from ./psi/imain.c:20:
./psi/imain.c: In function ‘print_resource_usage’:
./psi/imain.c:1501:28: warning: format ‘%lu’ expects argument of type ‘long unsigned int’, but argument 5 has type ‘size_t’ {aka ‘unsigned int’} [-Wformat=]
1501 | dmprintf5(minst->heap, "%% %s time = %g, memory allocated = %lu, used = %lu, max_used = %lu\n",
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
......
1504 | status.allocated, used, status.max_used);
| ~~~~~~~~~~~~~~~~
| |
| size_t {aka unsigned int}
./base/std.h:344:12: note: in definition of macro ‘dmprintf5’
344 | dpfm(mem,str, arg1, arg2, arg3, arg4, arg5)
| ^~~
./psi/imain.c:1501:67: note: format string is defined here
1501 | dmprintf5(minst->heap, "%% %s time = %g, memory allocated = %lu, used = %lu, max_used = %lu\n",
| ~~^
| |
| long unsigned int
| %u
./psi/imain.c:1501:28: warning: format ‘%lu’ expects argument of type ‘long unsigned int’, but argument 7 has type ‘size_t’ {aka ‘unsigned int’} [-Wformat=]
1501 | dmprintf5(minst->heap, "%% %s time = %g, memory allocated = %lu, used = %lu, max_used = %lu\n",
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
......
1504 | status.allocated, used, status.max_used);
| ~~~~~~~~~~~~~~~
| |
| size_t {aka unsigned int}
./base/std.h:344:12: note: in definition of macro ‘dmprintf5’
344 | dpfm(mem,str, arg1, arg2, arg3, arg4, arg5)
| ^~~
./psi/imain.c:1501:95: note: format string is defined here
1501 | dmprintf5(minst->heap, "%% %s time = %g, memory allocated = %lu, used = %lu, max_used = %lu\n",
| ~~^
| |
| long unsigned int
| %u
./psi/zcolor.c: In function ‘zcurrentcolorspace’:
./psi/zcolor.c:171:11: warning: unused variable ‘body’ [-Wunused-variable]
171 | byte *body;
| ^~~~
./psi/zcolor.c:170:17: warning: unused variable ‘stref’ [-Wunused-variable]
170 | ref namestr,stref, *aref;
| ^~~~~
./psi/zcolor.c: In function ‘copy_cspace_dict’:
./psi/zcolor.c:493:26: warning: unused variable ‘i’ [-Wunused-variable]
493 | int code = 0, index, i = 0;
| ^
./psi/zcolor.c: In function ‘septransform’:
./psi/zcolor.c:3944:30: warning: unused variable ‘pimap’ [-Wunused-variable]
3944 | gs_device_n_map *pimap;
| ^~~~~
./psi/zcolor.c: In function ‘devicentransform’:
./psi/zcolor.c:4802:30: warning: unused variable ‘pimap’ [-Wunused-variable]
4802 | gs_device_n_map *pimap;
| ^~~~~
./psi/zcolor.c: In function ‘currentbasecolor’:
./psi/zcolor.c:7289:12: warning: unused variable ‘ep’ [-Wunused-variable]
7289 | es_ptr ep = esp;
| ^~
In file included from ./base/gsrefct.h:23,
from ./base/gxgstate.h:23,
from ./pdf/ghostpdf.h:21,
from ./pdf/pdf_file.c:16:
./pdf/pdf_file.c: In function ‘pdfi_filter_no_decryption’:
./pdf/pdf_file.c:928:32: warning: format ‘%ld’ expects argument of type ‘long int’, but argument 3 has type ‘gs_offset_t’ {aka ‘long long int’} [-Wformat=]
928 | dmprintf2(ctx->memory, "Filter: offset %ld(0x%lx)\n", stream_offset, stream_offset);
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ~~~~~~~~~~~~~
| |
| gs_offset_t {aka long long int}
./base/std.h:332:12: note: in definition of macro ‘dmprintf2’
332 | dpfm(mem,str, arg1, arg2)
| ^~~
./pdf/pdf_file.c:928:50: note: format string is defined here
928 | dmprintf2(ctx->memory, "Filter: offset %ld(0x%lx)\n", stream_offset, stream_offset);
| ~~^
| |
| long int
| %lld
./pdf/pdf_file.c:928:32: warning: format ‘%lx’ expects argument of type ‘long unsigned int’, but argument 4 has type ‘gs_offset_t’ {aka ‘long long int’} [-Wformat=]
928 | dmprintf2(ctx->memory, "Filter: offset %ld(0x%lx)\n", stream_offset, stream_offset);
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ~~~~~~~~~~~~~
| |
| gs_offset_t {aka long long int}
./base/std.h:332:12: note: in definition of macro ‘dmprintf2’
332 | dpfm(mem,str, arg1, arg2)
| ^~~
./pdf/pdf_file.c:928:56: note: format string is defined here
928 | dmprintf2(ctx->memory, "Filter: offset %ld(0x%lx)\n", stream_offset, stream_offset);
| ~~^
| |
| long unsigned int
| %llx
In function ‘pdf_compute_encryption_key_r6’,
inlined from ‘check_owner_password_R6.constprop’ at ./pdf/pdf_sec.c:723:5:
./pdf/pdf_sec.c:402:9: warning: ‘pdf_compute_hardened_hash_r6’ accessing 16 bytes in a region of size 8 [-Wstringop-overflow=]
402 | pdf_compute_hardened_hash_r6(password, pwlen,
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
403 | (ownerkey ? O : U) + 40,
| ~~~~~~~~~~~~~~~~~~~~~~~~
404 | (ownerkey ? U : NULL), hash);
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~
./pdf/pdf_sec.c:402:9: note: referencing argument 3 of type ‘unsigned char[16]’
./pdf/pdf_sec.c:402:9: note: referencing argument 5 of type ‘unsigned char[32]’
./pdf/pdf_sec.c: In function ‘check_owner_password_R6.constprop’:
./pdf/pdf_sec.c:324:1: note: in a call to function ‘pdf_compute_hardened_hash_r6’
324 | pdf_compute_hardened_hash_r6(unsigned char *password, int pwlen, unsigned char salt[16], unsigned char *ownerkey, unsigned char hash[32])
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~
In function ‘pdf_compute_encryption_key_r6’,
inlined from ‘check_user_password_R6.constprop’ at ./pdf/pdf_sec.c:417:5:
./pdf/pdf_sec.c:402:9: warning: ‘pdf_compute_hardened_hash_r6’ accessing 16 bytes in a region of size 8 [-Wstringop-overflow=]
402 | pdf_compute_hardened_hash_r6(password, pwlen,
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
403 | (ownerkey ? O : U) + 40,
| ~~~~~~~~~~~~~~~~~~~~~~~~
404 | (ownerkey ? U : NULL), hash);
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~
./pdf/pdf_sec.c:402:9: note: referencing argument 3 of type ‘unsigned char[16]’
./pdf/pdf_sec.c:402:9: note: referencing argument 5 of type ‘unsigned char[32]’
./pdf/pdf_sec.c: In function ‘check_user_password_R6.constprop’:
./pdf/pdf_sec.c:324:1: note: in a call to function ‘pdf_compute_hardened_hash_r6’
324 | pdf_compute_hardened_hash_r6(unsigned char *password, int pwlen, unsigned char salt[16], unsigned char *ownerkey, unsigned char hash[32])
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~
In file included from ./base/gsdcolor.h:24,
from ./base/gxdevcli.h:25,
from ./base/gscicach.h:22,
from ./base/gxshade6.c:27:
In function ‘color_norm’,
inlined from ‘quadrangle_color_change’ at ./base/gxshade6.c:3303:13,
inlined from ‘fill_quadrangle.isra’ at ./base/gxshade6.c:3496:23:
./base/gxshade6.c:1438:35: warning: ‘d0001’ may be used uninitialized [-Wmaybe-uninitialized]
1438 | m = any_abs(c->cc.paint.values[0]) / pfs->color_domain.paint.values[0];
./base/gxarith.h:23:22: note: in definition of macro ‘any_abs’
23 | #define any_abs(x) ((x) < 0 ? -(x) : (x))
| ^
./base/gxshade6.c: In function ‘fill_quadrangle.isra’:
./base/gxshade6.c:3297:19: note: ‘d0001’ declared here
3297 | patch_color_t d0001, d1011, d;
| ^~~~~
./base/gstiffio.c:196:1: warning: ‘gs_tifsErrorHandlerEx’ defined but not used [-Wunused-function]
196 | gs_tifsErrorHandlerEx(thandle_t client_data, const char* module, const char* fmt, va_list ap)
| ^~~~~~~~~~~~~~~~~~~~~
./base/gstiffio.c:180:1: warning: ‘gs_tifsWarningHandlerEx’ defined but not used [-Wunused-function]
180 | gs_tifsWarningHandlerEx(thandle_t client_data, const char* module, const char* fmt, va_list ap)
| ^~~~~~~~~~~~~~~~~~~~~~~
extract/src/json.c:83:5: warning: no previous prototype for ‘extract_document_to_json_content’ [-Wmissing-prototypes]
83 | int extract_document_to_json_content(
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
./devices/vector/gdevpdfg.c: In function ‘check_colorants_for_pdfx4’:
./devices/vector/gdevpdfg.c:1425:17: warning: unused variable ‘Colorant’ [-Wunused-variable]
1425 | char *ink, *Colorant;
| ^~~~~~~~
./devices/vector/gdevpdfi.c: In function ‘check_colorants_for_pdfx4’:
./devices/vector/gdevpdfi.c:516:17: warning: unused variable ‘Colorant’ [-Wunused-variable]
516 | char *ink, *Colorant;
| ^~~~~~~~
./devices/vector/gdevpdfi.c: In function ‘setup_image_colorspace’:
./devices/vector/gdevpdfi.c:755:43: warning: assignment discards ‘const’ qualifier from pointer target type [-Wdiscarded-qualifiers]
755 | *pcs_orig = pcs;
| ^
./devices/vector/gdevpdfi.c:759:43: warning: assignment discards ‘const’ qualifier from pointer target type [-Wdiscarded-qualifiers]
759 | *pcs_orig = pcs;
| ^
cc1plus: warning: command-line option ‘-Wstrict-prototypes’ is valid for C/ObjC but not for C++
cc1plus: warning: command-line option ‘-Wmissing-prototypes’ is valid for C/ObjC but not for C++
cc1plus: warning: ‘-Werror=’ argument ‘-Werror=declaration-after-statement’ is not valid for C++
leptonica/src/baseline.c: In function ‘pixGetLocalSkewTransform’:
leptonica/src/baseline.c:445:5: warning: ‘dely’ may be used uninitialized [-Wmaybe-uninitialized]
445 | ptaAddPt(ptas, w - 1, i - dely);
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
leptonica/src/baseline.c:400:33: note: ‘dely’ was declared here
400 | l_float32 deg2rad, angr, angd, dely;
| ^~~~
leptonica/src/binarize.c: In function ‘pixSauvolaBinarize’:
leptonica/src/binarize.c:716:47: warning: ‘wplsd’ may be used uninitialized [-Wmaybe-uninitialized]
716 | l_int32 i, j, w, h, tabsize, wplm, wplms, wplsd, wpld, usetab;
| ^~~~~
leptonica/src/bmf.c: In function ‘pixaGenerateFont’:
leptonica/src/bmf.c:605:21: warning: ‘yval’ may be used uninitialized [-Wmaybe-uninitialized]
605 | baseline[i] = yval;
| ~~~~~~~~~~~~^~~~~~
leptonica/src/bmf.c:547:46: note: ‘yval’ was declared here
547 | l_int32 i, j, nrows, nrowchars, nchars, h, yval;
| ^~~~
leptonica/src/boxfunc2.c: In function ‘boxaaTranspose’:
leptonica/src/boxfunc2.c:1807:12: warning: ‘nbox’ may be used uninitialized [-Wmaybe-uninitialized]
1807 | baad = boxaaCreate(nbox);
| ^~~~~~~~~~~~~~~~~
leptonica/src/boxfunc2.c:1783:25: note: ‘nbox’ was declared here
1783 | l_int32 i, j, ny, nb, nbox;
| ^~~~
leptonica/src/boxfunc2.c: In function ‘boxaaAlignBox’:
leptonica/src/boxfunc2.c:1882:17: warning: ‘maxindex’ may be used uninitialized [-Wmaybe-uninitialized]
1882 | *pindex = maxindex;
| ~~~~~~~~^~~~~~~~~~
leptonica/src/boxfunc2.c:1843:48: note: ‘maxindex’ was declared here
1843 | l_int32 i, n, m, y, yt, h, ht, ovlp, maxovlp, maxindex;
| ^~~~~~~~
In function ‘pixGetCCBorders’,
inlined from ‘pixGetAllCCBorders’ at leptonica/src/ccbord.c:598:15:
leptonica/src/ccbord.c:720:16: warning: ‘xh’ may be used uninitialized [-Wmaybe-uninitialized]
720 | for (x = xh + boxt->x; x < w; x++) { /* look for (fg) border pixel */
| ~~^~~~~~~~~~~~~~
leptonica/src/ccbord.c: In function ‘pixGetAllCCBorders’:
leptonica/src/ccbord.c:647:26: note: ‘xh’ was declared here
647 | l_int32 allzero, i, x, xh, w, nh;
| ^~
In function ‘pixGetHoleBorder’,
inlined from ‘pixGetCCBorders’ at leptonica/src/ccbord.c:733:9,
inlined from ‘pixGetAllCCBorders’ at leptonica/src/ccbord.c:598:15:
leptonica/src/ccbord.c:1007:9: warning: ‘xs’ may be used uninitialized [-Wmaybe-uninitialized]
1007 | if (findNextBorderPixel(w, h, data, wpl, xs, ys, &qpos, &npx, &npy))
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
leptonica/src/ccbord.c: In function ‘pixGetAllCCBorders’:
leptonica/src/ccbord.c:648:11: note: ‘xs’ was declared here
648 | l_int32 xs, ys; /* starting hole border pixel, relative in pixs */
| ^~
leptonica/src/ccbord.c: In function ‘ccbaGenerateSinglePath’:
leptonica/src/ccbord.c:1575:16: warning: ‘len’ may be used uninitialized [-Wmaybe-uninitialized]
1575 | if (len == 0) { /* lost the hole */
| ^
leptonica/src/ccbord.c:1522:45: note: ‘len’ was declared here
1522 | l_int32 i, j, k, ncc, nb, ncut, npt, dir, len, state, lostholes;
| ^~~
In function ‘locateOutsideSeedPixel’,
inlined from ‘ccbaDisplayImage1’ at leptonica/src/ccbord.c:2043:17:
leptonica/src/ccbord.c:1110:8: warning: ‘fpx’ may be used uninitialized [-Wmaybe-uninitialized]
1110 | dx = spx - fpx;
| ~~~^~~~~~~~~~~
leptonica/src/ccbord.c: In function ‘ccbaDisplayImage1’:
leptonica/src/ccbord.c:1962:10: note: ‘fpx’ was declared here
1962 | l_int32 fpx, fpy, spx, spy, xs, ys;
| ^~~
In function ‘locateOutsideSeedPixel’,
inlined from ‘ccbaDisplayImage1’ at leptonica/src/ccbord.c:2043:17:
leptonica/src/ccbord.c:1111:8: warning: ‘fpy’ may be used uninitialized [-Wmaybe-uninitialized]
1111 | dy = spy - fpy;
| ~~~^~~~~~~~~~~
leptonica/src/ccbord.c: In function ‘ccbaDisplayImage1’:
leptonica/src/ccbord.c:1962:15: note: ‘fpy’ was declared here
1962 | l_int32 fpx, fpy, spx, spy, xs, ys;
| ^~~
In function ‘locateOutsideSeedPixel’,
inlined from ‘ccbaDisplayImage1’ at leptonica/src/ccbord.c:2043:17:
leptonica/src/ccbord.c:1110:8: warning: ‘spx’ may be used uninitialized [-Wmaybe-uninitialized]
1110 | dx = spx - fpx;
| ~~~^~~~~~~~~~~
leptonica/src/ccbord.c: In function ‘ccbaDisplayImage1’:
leptonica/src/ccbord.c:1962:20: note: ‘spx’ was declared here
1962 | l_int32 fpx, fpy, spx, spy, xs, ys;
| ^~~
In function ‘locateOutsideSeedPixel’,
inlined from ‘ccbaDisplayImage1’ at leptonica/src/ccbord.c:2043:17:
leptonica/src/ccbord.c:1111:8: warning: ‘spy’ may be used uninitialized [-Wmaybe-uninitialized]
1111 | dy = spy - fpy;
| ~~~^~~~~~~~~~~
leptonica/src/ccbord.c: In function ‘ccbaDisplayImage1’:
leptonica/src/ccbord.c:1962:25: note: ‘spy’ was declared here
1962 | l_int32 fpx, fpy, spx, spy, xs, ys;
| ^~~
leptonica/src/colorcontent.c: In function ‘pixColorContent’:
leptonica/src/colorcontent.c:211:30: warning: ‘wplr’ may be used uninitialized [-Wmaybe-uninitialized]
211 | l_int32 w, h, i, j, wpl1, wplr, wplg, wplb;
| ^~~~
leptonica/src/colorcontent.c:211:36: warning: ‘wplg’ may be used uninitialized [-Wmaybe-uninitialized]
211 | l_int32 w, h, i, j, wpl1, wplr, wplg, wplb;
| ^~~~
leptonica/src/colorcontent.c:211:42: warning: ‘wplb’ may be used uninitialized [-Wmaybe-uninitialized]
211 | l_int32 w, h, i, j, wpl1, wplr, wplg, wplb;
| ^~~~
leptonica/src/colormap.c: In function ‘pixcmapReadStream’:
leptonica/src/colormap.c:1790:35: warning: variable ‘ignore’ set but not used [-Wunused-but-set-variable]
1790 | l_int32 rval, gval, bval, aval, ignore;
| ^~~~~~
leptonica/src/colorquant1.c: In function ‘pixOctreeColorQuantGeneral.part.0’:
leptonica/src/colorquant1.c:688:5: warning: ‘cmap’ may be used uninitialized [-Wmaybe-uninitialized]
688 | pixcmapGetColor(cmap, index, &rval, &gval, &bval);
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
leptonica/src/colorquant1.c:612:12: note: ‘cmap’ was declared here
612 | PIXCMAP *cmap;
| ^~~~
leptonica/src/colorquant1.c: In function ‘pixOctcubeHistogram’:
leptonica/src/colorquant1.c:3716:15: warning: ‘size’ may be used uninitialized [-Wmaybe-uninitialized]
3716 | if ((na = numaCreate(size)) == NULL) {
| ^~~~~~~~~~~~~~~~
leptonica/src/colorquant1.c:3693:13: note: ‘size’ was declared here
3693 | l_int32 size, i, j, w, h, wpl, ncolors, val;
| ^~~~
leptonica/src/colorseg.c: In function ‘pixAssignToNearestColor’:
leptonica/src/colorseg.c:413:30: warning: ‘wplm’ may be used uninitialized [-Wmaybe-uninitialized]
413 | l_int32 w, h, wpls, wpld, wplm, i, j, success;
| ^~~~
leptonica/src/convolve.c: In function ‘pixWindowedVariance’:
leptonica/src/convolve.c:1271:50: warning: ‘wplv’ may be used uninitialized [-Wmaybe-uninitialized]
1271 | l_int32 i, j, w, h, ws, hs, ds, wplm, wplms, wplv, wplrv, valm, valms;
| ^~~~
leptonica/src/convolve.c:1271:56: warning: ‘wplrv’ may be used uninitialized [-Wmaybe-uninitialized]
1271 | l_int32 i, j, w, h, ws, hs, ds, wplm, wplms, wplv, wplrv, valm, valms;
| ^~~~~
leptonica/src/correlscore.c: In function ‘pixCorrelationScoreThresholded’:
leptonica/src/correlscore.c:686:46: warning: ‘untouchable’ may be used uninitialized [-Wmaybe-uninitialized]
686 | if (count + downcount[y] - untouchable < threshold) {
| ~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~
leptonica/src/correlscore.c:437:52: note: ‘untouchable’ was declared here
437 | l_int32 wpl1, wpl2, lorow, hirow, locol, hicol, untouchable;
| ^~~~~~~~~~~
In file included from leptonica/src/alltypes.h:37,
from leptonica/src/allheaders.h:35,
from leptonica/src/dewarp2.c:67:
leptonica/src/dewarp2.c: In function ‘dewarpBuildPageModel’:
leptonica/src/environ.h:598:14: warning: ‘ntop’ may be used uninitialized [-Wmaybe-uninitialized]
598 | (void)lept_stderr("Warning in %s: " a, __VA_ARGS__), \
| ^
leptonica/src/environ.h:573:61: note: in definition of macro ‘IF_SEV’
573 | ((l) >= MINIMUM_SEVERITY && (l) >= LeptMsgSeverity ? (t) : (f))
| ^
leptonica/src/dewarp2.c:226:9: note: in expansion of macro ‘L_WARNING’
226 | L_WARNING("invalid line coverage: ntop = %d, nbot = %d;"
| ^~~~~~~~~
leptonica/src/dewarp2.c:159:21: note: ‘ntop’ was declared here
159 | l_int32 linecount, ntop, nbot, ytop, ybot, ret;
| ^~~~
leptonica/src/environ.h:598:14: warning: ‘nbot’ may be used uninitialized [-Wmaybe-uninitialized]
598 | (void)lept_stderr("Warning in %s: " a, __VA_ARGS__), \
| ^
leptonica/src/environ.h:573:61: note: in definition of macro ‘IF_SEV’
573 | ((l) >= MINIMUM_SEVERITY && (l) >= LeptMsgSeverity ? (t) : (f))
| ^
leptonica/src/dewarp2.c:226:9: note: in expansion of macro ‘L_WARNING’
226 | L_WARNING("invalid line coverage: ntop = %d, nbot = %d;"
| ^~~~~~~~~
leptonica/src/dewarp2.c:159:27: note: ‘nbot’ was declared here
159 | l_int32 linecount, ntop, nbot, ytop, ybot, ret;
| ^~~~
leptonica/src/environ.h:598:14: warning: ‘ytop’ may be used uninitialized [-Wmaybe-uninitialized]
598 | (void)lept_stderr("Warning in %s: " a, __VA_ARGS__), \
| ^
leptonica/src/environ.h:573:61: note: in definition of macro ‘IF_SEV’
573 | ((l) >= MINIMUM_SEVERITY && (l) >= LeptMsgSeverity ? (t) : (f))
| ^
leptonica/src/dewarp2.c:226:9: note: in expansion of macro ‘L_WARNING’
226 | L_WARNING("invalid line coverage: ntop = %d, nbot = %d;"
| ^~~~~~~~~
leptonica/src/dewarp2.c:159:33: note: ‘ytop’ was declared here
159 | l_int32 linecount, ntop, nbot, ytop, ybot, ret;
| ^~~~
leptonica/src/environ.h:598:14: warning: ‘ybot’ may be used uninitialized [-Wmaybe-uninitialized]
598 | (void)lept_stderr("Warning in %s: " a, __VA_ARGS__), \
| ^
leptonica/src/environ.h:573:61: note: in definition of macro ‘IF_SEV’
573 | ((l) >= MINIMUM_SEVERITY && (l) >= LeptMsgSeverity ? (t) : (f))
| ^
leptonica/src/dewarp2.c:226:9: note: in expansion of macro ‘L_WARNING’
226 | L_WARNING("invalid line coverage: ntop = %d, nbot = %d;"
| ^~~~~~~~~
leptonica/src/dewarp2.c:159:39: note: ‘ybot’ was declared here
159 | l_int32 linecount, ntop, nbot, ytop, ybot, ret;
| ^~~~
leptonica/src/enhance.c: In function ‘pixUnsharpMaskingGray1D’:
leptonica/src/enhance.c:1321:32: warning: ‘a[3]’ may be used uninitialized [-Wmaybe-uninitialized]
1321 | a[4] * GET_DATA_BYTE(lines, j + 2);
leptonica/src/enhance.c:1265:17: note: ‘a[3]’ was declared here
1265 | l_float32 val, a[5];
| ^
leptonica/src/fhmtgenlow.1.c: In function ‘fhmt_1_5’:
leptonica/src/fhmtgenlow.1.c:273:21: warning: variable ‘wpls5’ set but not used [-Wunused-but-set-variable]
273 | l_int32 wpls5, wpls6;
| ^~~~~
leptonica/src/fhmtgenlow.1.c:272:35: warning: variable ‘wpls4’ set but not used [-Wunused-but-set-variable]
272 | l_int32 wpls2, wpls3, wpls4;
| ^~~~~
leptonica/src/fhmtgenlow.1.c:272:28: warning: variable ‘wpls3’ set but not used [-Wunused-but-set-variable]
272 | l_int32 wpls2, wpls3, wpls4;
| ^~~~~
In file included from /usr/include/stdio.h:894,
from leptonica/src/alltypes.h:31,
from leptonica/src/allheaders.h:35,
from leptonica/src/fpix1.c:124:
In function ‘fprintf’,
inlined from ‘fpixWriteStream’ at leptonica/src/fpix1.c:1515:5:
/usr/include/bits/stdio2.h:105:10: warning: ‘xres’ may be used uninitialized [-Wmaybe-uninitialized]
105 | return __fprintf_chk (__stream, __USE_FORTIFY_LEVEL - 1, __fmt,
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
106 | __va_arg_pack ());
| ~~~~~~~~~~~~~~~~~
leptonica/src/fpix1.c: In function ‘fpixWriteStream’:
leptonica/src/fpix1.c:1496:19: note: ‘xres’ was declared here
1496 | l_int32 w, h, xres, yres;
| ^~~~
In function ‘fprintf’,
inlined from ‘fpixWriteStream’ at leptonica/src/fpix1.c:1515:5:
/usr/include/bits/stdio2.h:105:10: warning: ‘yres’ may be used uninitialized [-Wmaybe-uninitialized]
105 | return __fprintf_chk (__stream, __USE_FORTIFY_LEVEL - 1, __fmt,
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
106 | __va_arg_pack ());
| ~~~~~~~~~~~~~~~~~
leptonica/src/fpix1.c: In function ‘fpixWriteStream’:
leptonica/src/fpix1.c:1496:25: note: ‘yres’ was declared here
1496 | l_int32 w, h, xres, yres;
| ^~~~
In function ‘fprintf’,
inlined from ‘dpixWriteStream’ at leptonica/src/fpix1.c:1804:5:
/usr/include/bits/stdio2.h:105:10: warning: ‘xres’ may be used uninitialized [-Wmaybe-uninitialized]
105 | return __fprintf_chk (__stream, __USE_FORTIFY_LEVEL - 1, __fmt,
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
106 | __va_arg_pack ());
| ~~~~~~~~~~~~~~~~~
leptonica/src/fpix1.c: In function ‘dpixWriteStream’:
leptonica/src/fpix1.c:1785:19: note: ‘xres’ was declared here
1785 | l_int32 w, h, xres, yres;
| ^~~~
In function ‘fprintf’,
inlined from ‘dpixWriteStream’ at leptonica/src/fpix1.c:1804:5:
/usr/include/bits/stdio2.h:105:10: warning: ‘yres’ may be used uninitialized [-Wmaybe-uninitialized]
105 | return __fprintf_chk (__stream, __USE_FORTIFY_LEVEL - 1, __fmt,
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
106 | __va_arg_pack ());
| ~~~~~~~~~~~~~~~~~
leptonica/src/fpix1.c: In function ‘dpixWriteStream’:
leptonica/src/fpix1.c:1785:25: note: ‘yres’ was declared here
1785 | l_int32 w, h, xres, yres;
| ^~~~
leptonica/src/fpix2.c: In function ‘linearInterpolatePixelFloat’:
leptonica/src/fpix2.c:2206:6: warning: "DEBUG" is not defined, evaluates to 0 [-Wundef]
2206 | #if DEBUG
| ^~~~~
leptonica/src/gplot.c: In function ‘gplotRead’:
leptonica/src/gplot.c:1209:35: warning: variable ‘ignore’ set but not used [-Wunused-but-set-variable]
1209 | l_int32 outformat, ret, version, ignore;
| ^~~~~~
leptonica/src/gplot.c:1208:47: warning: variable ‘ignores’ set but not used [-Wunused-but-set-variable]
1208 | char *rootname, *title, *xlabel, *ylabel, *ignores;
| ^~~~~~~
leptonica/src/graphics.c: In function ‘pixRenderPtaArb’:
leptonica/src/graphics.c:1371:13: warning: ‘val’ may be used uninitialized [-Wmaybe-uninitialized]
1371 | pixSetPixel(pix, x, y, val);
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~
leptonica/src/graphics.c:1327:11: note: ‘val’ was declared here
1327 | l_uint8 val;
| ^~~
leptonica/src/grayquant.c: In function ‘thresholdToBinaryLineLow’:
leptonica/src/grayquant.c:568:21: warning: ‘sword’ may be used uninitialized [-Wmaybe-uninitialized]
568 | sword <<= 4;
| ~~~~~~^~~~~
leptonica/src/grayquant.c:524:10: note: ‘sword’ was declared here
524 | l_uint32 sword, dword;
| ^~~~~
leptonica/src/jbclass.c: In function ‘jbGetULCorners’:
leptonica/src/jbclass.c:2239:47: warning: ‘dx’ may be used uninitialized [-Wmaybe-uninitialized]
2239 | ptaAddPt(ptaul, (l_float32)(x - idelx + dx), (l_float32)(y - idely + dy));
| ~~~~~~~~~~~^~~~~
leptonica/src/jbclass.c:2190:64: note: ‘dx’ was declared here
2190 | l_int32 i, baseindex, index, n, iclass, idelx, idely, x, y, dx, dy;
| ^~
leptonica/src/jbclass.c:2239:76: warning: ‘dy’ may be used uninitialized [-Wmaybe-uninitialized]
2239 | ptaAddPt(ptaul, (l_float32)(x - idelx + dx), (l_float32)(y - idely + dy));
| ~~~~~~~~~~~^~~~~
leptonica/src/jbclass.c:2190:68: note: ‘dy’ was declared here
2190 | l_int32 i, baseindex, index, n, iclass, idelx, idely, x, y, dx, dy;
| ^~
leptonica/src/kernel.c: In function ‘kernelReadStream’:
leptonica/src/kernel.c:540:48: warning: variable ‘ignore’ set but not used [-Wunused-but-set-variable]
540 | l_int32 sy, sx, cy, cx, i, j, ret, version, ignore;
| ^~~~~~
leptonica/src/libversions.c: In function ‘getImagelibVersions’:
leptonica/src/libversions.c:107:10: warning: unused variable ‘first’ [-Wunused-variable]
107 | l_int32 first = TRUE;
| ^~~~~
leptonica/src/morphdwa.c: In function ‘pixErodeCompBrickExtendDwa.part.0’:
leptonica/src/morphdwa.c:1329:34: warning: ‘extrah’ may be used uninitialized [-Wmaybe-uninitialized]
1329 | nops = (extrah < 3) ? nh : nh + 1;
| ~~~~~~~~~~~~~~~~~~^~~~~~~~
leptonica/src/morphdwa.c:1302:23: note: ‘extrah’ was declared here
1302 | l_int32 i, nops, nh, extrah, nv, extrav;
| ^~~~~~
leptonica/src/morphdwa.c:1330:18: warning: ‘nh’ may be used uninitialized [-Wmaybe-uninitialized]
1330 | if (nops & 1) { /* odd */
| ~~~~~^~~
leptonica/src/morphdwa.c:1302:19: note: ‘nh’ was declared here
1302 | l_int32 i, nops, nh, extrah, nv, extrav;
| ^~
leptonica/src/morphdwa.c:1363:18: warning: ‘nv’ may be used uninitialized [-Wmaybe-uninitialized]
1363 | if (nops & 1) { /* odd */
| ~~~~~^~~
leptonica/src/morphdwa.c:1302:31: note: ‘nv’ was declared here
1302 | l_int32 i, nops, nh, extrah, nv, extrav;
| ^~
leptonica/src/morphdwa.c:1362:34: warning: ‘extrav’ may be used uninitialized [-Wmaybe-uninitialized]
1362 | nops = (extrav < 3) ? nv : nv + 1;
| ~~~~~~~~~~~~~~~~~~^~~~~~~~
leptonica/src/morphdwa.c:1302:35: note: ‘extrav’ was declared here
1302 | l_int32 i, nops, nh, extrah, nv, extrav;
| ^~~~~~
leptonica/src/morphdwa.c: In function ‘pixDilateCompBrickExtendDwa.part.0’:
leptonica/src/morphdwa.c:1211:34: warning: ‘extrah’ may be used uninitialized [-Wmaybe-uninitialized]
1211 | nops = (extrah < 3) ? nh : nh + 1;
| ~~~~~~~~~~~~~~~~~~^~~~~~~~
leptonica/src/morphdwa.c:1184:23: note: ‘extrah’ was declared here
1184 | l_int32 i, nops, nh, extrah, nv, extrav;
| ^~~~~~
leptonica/src/morphdwa.c:1212:18: warning: ‘nh’ may be used uninitialized [-Wmaybe-uninitialized]
1212 | if (nops & 1) { /* odd */
| ~~~~~^~~
leptonica/src/morphdwa.c:1184:19: note: ‘nh’ was declared here
1184 | l_int32 i, nops, nh, extrah, nv, extrav;
| ^~
leptonica/src/morphdwa.c:1245:18: warning: ‘nv’ may be used uninitialized [-Wmaybe-uninitialized]
1245 | if (nops & 1) { /* odd */
| ~~~~~^~~
leptonica/src/morphdwa.c:1184:31: note: ‘nv’ was declared here
1184 | l_int32 i, nops, nh, extrah, nv, extrav;
| ^~
leptonica/src/morphdwa.c:1244:34: warning: ‘extrav’ may be used uninitialized [-Wmaybe-uninitialized]
1244 | nops = (extrav < 3) ? nv : nv + 1;
| ~~~~~~~~~~~~~~~~~~^~~~~~~~
leptonica/src/morphdwa.c:1184:35: note: ‘extrav’ was declared here
1184 | l_int32 i, nops, nh, extrah, nv, extrav;
| ^~~~~~
leptonica/src/numafunc1.c: In function ‘numaThresholdEdges’:
leptonica/src/numafunc1.c:1476:8: warning: ‘istart’ may be used uninitialized [-Wmaybe-uninitialized]
1476 | if (istart == n) /* no intervals found */
| ^
leptonica/src/numafunc1.c:1437:18: note: ‘istart’ was declared here
1437 | l_int32 n, i, istart, inband, output, sign;
| ^~~~~~
leptonica/src/partify.c: In function ‘boxaRemoveVGaps’:
leptonica/src/partify.c:306:5: warning: this ‘if’ clause does not guard... [-Wmisleading-indentation]
306 | if ((nbox = boxaGetCount(boxa)) == 0);
| ^~
leptonica/src/partify.c:307:9: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the ‘if’
307 | return ERROR_INT("boxa is empty", __func__, 1);
| ^~~~~~
leptonica/src/pix4.c: In function ‘pixGetAverageTiled’:
leptonica/src/pix4.c:1750:52: warning: ‘ave’ may be used uninitialized [-Wmaybe-uninitialized]
1750 | valt = (l_int32)(sqrt(meansq - ave * ave) + 0.5);
| ~~~~^~~~~
leptonica/src/pix4.c:1692:27: note: ‘ave’ was declared here
1692 | l_float64 sumave, summs, ave, meansq, normfact;
| ^~~
leptonica/src/pixafunc2.c: In function ‘pixaDisplayRandomCmap’:
leptonica/src/pixafunc2.c:311:5: warning: ‘res’ may be used uninitialized [-Wmaybe-uninitialized]
311 | pixSetResolution(pixd, res, res);
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
leptonica/src/pixafunc2.c:271:52: note: ‘res’ was declared here
271 | l_int32 i, n, same, maxd, index, xb, yb, wb, hb, res;
| ^~~
leptonica/src/pixafunc2.c: In function ‘pixaDisplayTiled’:
leptonica/src/pixafunc2.c:685:5: warning: ‘res’ may be used uninitialized [-Wmaybe-uninitialized]
685 | pixSetResolution(pixd, res, res);
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
leptonica/src/pixafunc2.c:623:42: note: ‘res’ was declared here
623 | l_int32 wmax, hmax, wd, hd, d, hascmap, res, same;
| ^~~
leptonica/src/pixafunc2.c: In function ‘pixaDisplayTiledInColumns’:
leptonica/src/pixafunc2.c:988:5: warning: ‘res’ may be used uninitialized [-Wmaybe-uninitialized]
988 | pixSetResolution(pixd, res, res);
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
leptonica/src/pixafunc2.c:918:75: note: ‘res’ was declared here
918 | l_int32 i, j, index, n, x, y, nrows, wb, hb, w, h, maxd, maxh, bordval, res;
| ^~~
leptonica/src/pnmio.c: In function ‘pnmReadNextAsciiValue’:
leptonica/src/pnmio.c:1330:10: warning: unused variable ‘ignore’ [-Wunused-variable]
1330 | l_int32 ignore;
| ^~~~~~
leptonica/src/psio1.c: In function ‘pixWriteSegmentedPageToPS’:
leptonica/src/psio1.c:666:39: warning: ‘d’ may be used uninitialized [-Wmaybe-uninitialized]
666 | val = (d == 8) ? 0xff : 0xffffff00;
| ~~~~~~~~~~~~~~~~^~~~~~~~~~~~
leptonica/src/psio1.c:586:29: note: ‘d’ was declared here
586 | l_int32 alltext, notext, d, ret;
| ^
leptonica/src/readfile.c:96:20: warning: ‘FILE_JP2K’ defined but not used [-Wunused-variable]
96 | static const char *FILE_JP2K = "/tmp/lept/format/file.jp2";
| ^~~~~~~~~
leptonica/src/readfile.c:95:20: warning: ‘FILE_WEBP’ defined but not used [-Wunused-variable]
95 | static const char *FILE_WEBP = "/tmp/lept/format/file.webp";
| ^~~~~~~~~
leptonica/src/readfile.c:94:20: warning: ‘FILE_GIF’ defined but not used [-Wunused-variable]
94 | static const char *FILE_GIF = "/tmp/lept/format/file.gif";
| ^~~~~~~~
leptonica/src/readfile.c:93:20: warning: ‘FILE_JPG’ defined but not used [-Wunused-variable]
93 | static const char *FILE_JPG = "/tmp/lept/format/file.jpg";
| ^~~~~~~~
leptonica/src/readfile.c:92:20: warning: ‘FILE_TIFF’ defined but not used [-Wunused-variable]
92 | static const char *FILE_TIFF = "/tmp/lept/format/file.tif";
| ^~~~~~~~~
leptonica/src/readfile.c:91:20: warning: ‘FILE_TIFF_JPEG’ defined but not used [-Wunused-variable]
91 | static const char *FILE_TIFF_JPEG = "/tmp/lept/format/file_jpeg.tif";
| ^~~~~~~~~~~~~~
leptonica/src/readfile.c:90:20: warning: ‘FILE_ZIP’ defined but not used [-Wunused-variable]
90 | static const char *FILE_ZIP = "/tmp/lept/format/file_zip.tif";
| ^~~~~~~~
leptonica/src/readfile.c:89:20: warning: ‘FILE_LZW’ defined but not used [-Wunused-variable]
89 | static const char *FILE_LZW = "/tmp/lept/format/file_lzw.tif";
| ^~~~~~~~
leptonica/src/readfile.c:88:20: warning: ‘FILE_PB’ defined but not used [-Wunused-variable]
88 | static const char *FILE_PB = "/tmp/lept/format/file_packbits.tif";
| ^~~~~~~
leptonica/src/readfile.c:87:20: warning: ‘FILE_RLE’ defined but not used [-Wunused-variable]
87 | static const char *FILE_RLE = "/tmp/lept/format/file_rle.tif";
| ^~~~~~~~
leptonica/src/readfile.c:86:20: warning: ‘FILE_G4’ defined but not used [-Wunused-variable]
86 | static const char *FILE_G4 = "/tmp/lept/format/file_g4.tif";
| ^~~~~~~
leptonica/src/readfile.c:85:20: warning: ‘FILE_G3’ defined but not used [-Wunused-variable]
85 | static const char *FILE_G3 = "/tmp/lept/format/file_g3.tif";
| ^~~~~~~
leptonica/src/readfile.c:83:20: warning: ‘FILE_PNG’ defined but not used [-Wunused-variable]
83 | static const char *FILE_PNG = "/tmp/lept/format/file.png";
| ^~~~~~~~
leptonica/src/rop.c:541:1: warning: ‘checkRasteropCrop’ defined but not used [-Wunused-function]
541 | checkRasteropCrop(l_int32 pixw,
| ^~~~~~~~~~~~~~~~~
In function ‘rasteropGeneralLow’,
inlined from ‘rasteropLow’ at leptonica/src/roplow.c:573:9:
leptonica/src/roplow.c:1623:24: warning: ‘sfwaddb’ may be used uninitialized [-Wmaybe-uninitialized]
1623 | if (sfwaddb)
| ^
leptonica/src/roplow.c: In function ‘rasteropLow’:
leptonica/src/roplow.c:1402:12: note: ‘sfwaddb’ was declared here
1402 | l_int32 sfwaddb; /* boolean: do we need an additional sfw right shift? */
| ^~~~~~~
leptonica/src/sarray1.c: In function ‘sarrayReadStream’:
leptonica/src/sarray1.c:1390:47: warning: variable ‘ignore’ set but not used [-Wunused-but-set-variable]
1390 | l_int32 i, n, size, index, bufsize, version, ignore, success;
| ^~~~~~
leptonica/src/sarray1.c: In function ‘getFilenamesInDirectory’:
leptonica/src/sarray1.c:1888:17: warning: unused variable ‘dfd’ [-Wunused-variable]
1888 | int dfd, stat_ret;
| ^~~
In file included from leptonica/src/alltypes.h:51,
from leptonica/src/allheaders.h:35,
from leptonica/src/scale2.c:103:
leptonica/src/scale2.c: In function ‘pixScaleGrayMinMax’:
leptonica/src/scale2.c:1067:48: warning: ‘maxval’ may be used uninitialized [-Wmaybe-uninitialized]
1067 | SET_DATA_BYTE(lined, j, maxval - minval);
leptonica/src/arrayaccess.h:199:75: note: in definition of macro ‘SET_DATA_BYTE’
199 | *(l_uint8 *)((l_uintptr_t)((l_uint8 *)(pdata) + (n)) ^ 3) = (val)
| ^~~
leptonica/src/scale2.c:1003:20: note: ‘maxval’ was declared here
1003 | l_int32 minval, maxval, val;
| ^~~~~~
leptonica/src/scale2.c:1067:48: warning: ‘minval’ may be used uninitialized [-Wmaybe-uninitialized]
1067 | SET_DATA_BYTE(lined, j, maxval - minval);
leptonica/src/arrayaccess.h:199:75: note: in definition of macro ‘SET_DATA_BYTE’
199 | *(l_uint8 *)((l_uintptr_t)((l_uint8 *)(pdata) + (n)) ^ 3) = (val)
| ^~~
leptonica/src/scale2.c:1003:12: note: ‘minval’ was declared here
1003 | l_int32 minval, maxval, val;
| ^~~~~~
leptonica/src/sel1.c: In function ‘selReadStream’:
leptonica/src/sel1.c:1354:41: warning: variable ‘ignore’ set but not used [-Wunused-but-set-variable]
1354 | l_int32 sy, sx, cy, cx, i, j, version, ignore;
| ^~~~~~
leptonica/src/selgen.c: In function ‘pixGetRunsOnLine’:
leptonica/src/selgen.c:761:5: warning: ‘runlen’ may be used uninitialized [-Wmaybe-uninitialized]
761 | numaAddNumber(numa, runlen); /* append last run */
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~
leptonica/src/selgen.c:709:14: note: ‘runlen’ was declared here
709 | l_int32 i, runlen, preval;
| ^~~~~~
leptonica/src/textops.c: In function ‘splitStringToParagraphs’:
leptonica/src/textops.c:1036:41: warning: ‘allwhite’ may be used uninitialized [-Wmaybe-uninitialized]
1036 | (splitflag == SPLIT_ON_BOTH && (allwhite || leadwhite))) {
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~
leptonica/src/textops.c:1016:21: note: ‘allwhite’ was declared here
1016 | l_int32 nlines, i, allwhite, leadwhite;
| ^~~~~~~~
leptonica/src/textops.c:1036:54: warning: ‘leadwhite’ may be used uninitialized [-Wmaybe-uninitialized]
1036 | (splitflag == SPLIT_ON_BOTH && (allwhite || leadwhite))) {
| ~~~~~~~~~~^~~~~~~~~~~~~
leptonica/src/textops.c:1016:31: note: ‘leadwhite’ was declared here
1016 | l_int32 nlines, i, allwhite, leadwhite;
| ^~~~~~~~~
leptonica/src/utils2.c: In function ‘callSystemDebug’:
leptonica/src/utils2.c:2673:10: warning: variable ‘ret’ set but not used [-Wunused-but-set-variable]
2673 | l_int32 ret;
| ^~~
cc1plus: warning: command-line option ‘-Wstrict-prototypes’ is valid for C/ObjC but not for C++
cc1plus: warning: command-line option ‘-Wmissing-prototypes’ is valid for C/ObjC but not for C++
cc1plus: warning: ‘-Werror=’ argument ‘-Werror=declaration-after-statement’ is not valid for C++
cc1plus: warning: command-line option ‘-Wstrict-prototypes’ is valid for C/ObjC but not for C++
cc1plus: warning: command-line option ‘-Wmissing-prototypes’ is valid for C/ObjC but not for C++
cc1plus: warning: ‘-Werror=’ argument ‘-Werror=declaration-after-statement’ is not valid for C++
tesseract/src/api/baseapi.cpp: In member function ‘int tesseract::TessBaseAPI::Init(const char*, int, const char*, tesseract::OcrEngineMode, char**, int, const std::vector >*, const std::vector >*, bool, tesseract::FileReader)’:
tesseract/src/api/baseapi.cpp:329:8: warning: variable ‘reset_classifier’ set but not used [-Wunused-but-set-variable]
329 | bool reset_classifier = true;
| ^~~~~~~~~~~~~~~~
cc1plus: warning: command-line option ‘-Wstrict-prototypes’ is valid for C/ObjC but not for C++
cc1plus: warning: command-line option ‘-Wmissing-prototypes’ is valid for C/ObjC but not for C++
cc1plus: warning: ‘-Werror=’ argument ‘-Werror=declaration-after-statement’ is not valid for C++
cc1plus: warning: command-line option ‘-Wstrict-prototypes’ is valid for C/ObjC but not for C++
cc1plus: warning: command-line option ‘-Wmissing-prototypes’ is valid for C/ObjC but not for C++
cc1plus: warning: ‘-Werror=’ argument ‘-Werror=declaration-after-statement’ is not valid for C++
tesseract/src/api/pagerenderer.cpp:100:6: warning: no previous declaration for ‘Pta* tesseract::TransposePolygonline(Pta*)’ [-Wmissing-declarations]
100 | Pta *TransposePolygonline(Pta *pts) {
| ^~~~~~~~~~~~~~~~~~~~
tesseract/src/api/pagerenderer.cpp:111:6: warning: no previous declaration for ‘Pta* tesseract::ReversePolygonline(Pta*, int)’ [-Wmissing-declarations]
111 | Pta *ReversePolygonline(Pta *pts, int type) {
| ^~~~~~~~~~~~~~~~~~
tesseract/src/api/pagerenderer.cpp:122:6: warning: no previous declaration for ‘Pta* tesseract::DestroyAndCreatePta(Pta*)’ [-Wmissing-declarations]
122 | Pta *DestroyAndCreatePta(Pta *pts) {
| ^~~~~~~~~~~~~~~~~~~
tesseract/src/api/pagerenderer.cpp:131:6: warning: no previous declaration for ‘Pta* tesseract::RecalcPolygonline(Pta*, bool)’ [-Wmissing-declarations]
131 | Pta *RecalcPolygonline(Pta *pts, bool upper) {
| ^~~~~~~~~~~~~~~~~
tesseract/src/api/pagerenderer.cpp:198:6: warning: no previous declaration for ‘Pta* tesseract::PolygonToBoxCoords(Pta*)’ [-Wmissing-declarations]
198 | Pta *PolygonToBoxCoords(Pta *pts) {
| ^~~~~~~~~~~~~~~~~~
tesseract/src/api/pagerenderer.cpp:385:6: warning: no previous declaration for ‘Pta* tesseract::SortBaseline(Pta*, WritingDirection)’ [-Wmissing-declarations]
385 | Pta *SortBaseline(Pta *baseline_pts,
| ^~~~~~~~~~~~
tesseract/src/api/pagerenderer.cpp:414:6: warning: no previous declaration for ‘Pta* tesseract::ClipAndSimplifyBaseline(Pta*, Pta*, WritingDirection)’ [-Wmissing-declarations]
414 | Pta *ClipAndSimplifyBaseline(Pta *bottom_pts, Pta *baseline_pts,
| ^~~~~~~~~~~~~~~~~~~~~~~
tesseract/src/api/pagerenderer.cpp:478:6: warning: no previous declaration for ‘Pta* tesseract::FitBaselineIntoLinePolygon(Pta*, Pta*, WritingDirection)’ [-Wmissing-declarations]
478 | Pta *FitBaselineIntoLinePolygon(Pta *bottom_pts, Pta *baseline_pts,
| ^~~~~~~~~~~~~~~~~~~~~~~~~~
tesseract/src/api/pagerenderer.cpp:601:13: warning: no previous declaration for ‘const char* tesseract::WritingDirectionToStr(int)’ [-Wmissing-declarations]
601 | const char *WritingDirectionToStr(int wd) {
| ^~~~~~~~~~~~~~~~~~~~~
cc1plus: warning: command-line option ‘-Wstrict-prototypes’ is valid for C/ObjC but not for C++
cc1plus: warning: command-line option ‘-Wmissing-prototypes’ is valid for C/ObjC but not for C++
cc1plus: warning: ‘-Werror=’ argument ‘-Werror=declaration-after-statement’ is not valid for C++
cc1plus: warning: command-line option ‘-Wstrict-prototypes’ is valid for C/ObjC but not for C++
cc1plus: warning: command-line option ‘-Wmissing-prototypes’ is valid for C/ObjC but not for C++
cc1plus: warning: ‘-Werror=’ argument ‘-Werror=declaration-after-statement’ is not valid for C++
cc1plus: warning: command-line option ‘-Wstrict-prototypes’ is valid for C/ObjC but not for C++
cc1plus: warning: command-line option ‘-Wmissing-prototypes’ is valid for C/ObjC but not for C++
cc1plus: warning: ‘-Werror=’ argument ‘-Werror=declaration-after-statement’ is not valid for C++
cc1plus: warning: command-line option ‘-Wstrict-prototypes’ is valid for C/ObjC but not for C++
cc1plus: warning: command-line option ‘-Wmissing-prototypes’ is valid for C/ObjC but not for C++
cc1plus: warning: ‘-Werror=’ argument ‘-Werror=declaration-after-statement’ is not valid for C++
cc1plus: warning: command-line option ‘-Wstrict-prototypes’ is valid for C/ObjC but not for C++
cc1plus: warning: command-line option ‘-Wmissing-prototypes’ is valid for C/ObjC but not for C++
cc1plus: warning: ‘-Werror=’ argument ‘-Werror=declaration-after-statement’ is not valid for C++
cc1plus: warning: command-line option ‘-Wstrict-prototypes’ is valid for C/ObjC but not for C++
cc1plus: warning: command-line option ‘-Wmissing-prototypes’ is valid for C/ObjC but not for C++
cc1plus: warning: ‘-Werror=’ argument ‘-Werror=declaration-after-statement’ is not valid for C++
cc1plus: warning: command-line option ‘-Wstrict-prototypes’ is valid for C/ObjC but not for C++
cc1plus: warning: command-line option ‘-Wmissing-prototypes’ is valid for C/ObjC but not for C++
cc1plus: warning: ‘-Werror=’ argument ‘-Werror=declaration-after-statement’ is not valid for C++
cc1plus: warning: command-line option ‘-Wstrict-prototypes’ is valid for C/ObjC but not for C++
cc1plus: warning: command-line option ‘-Wmissing-prototypes’ is valid for C/ObjC but not for C++
cc1plus: warning: ‘-Werror=’ argument ‘-Werror=declaration-after-statement’ is not valid for C++
cc1plus: warning: command-line option ‘-Wstrict-prototypes’ is valid for C/ObjC but not for C++
cc1plus: warning: command-line option ‘-Wmissing-prototypes’ is valid for C/ObjC but not for C++
cc1plus: warning: ‘-Werror=’ argument ‘-Werror=declaration-after-statement’ is not valid for C++
cc1plus: warning: command-line option ‘-Wstrict-prototypes’ is valid for C/ObjC but not for C++
cc1plus: warning: command-line option ‘-Wmissing-prototypes’ is valid for C/ObjC but not for C++
cc1plus: warning: ‘-Werror=’ argument ‘-Werror=declaration-after-statement’ is not valid for C++
cc1plus: warning: command-line option ‘-Wstrict-prototypes’ is valid for C/ObjC but not for C++
cc1plus: warning: command-line option ‘-Wmissing-prototypes’ is valid for C/ObjC but not for C++
cc1plus: warning: ‘-Werror=’ argument ‘-Werror=declaration-after-statement’ is not valid for C++
cc1plus: warning: command-line option ‘-Wstrict-prototypes’ is valid for C/ObjC but not for C++
cc1plus: warning: command-line option ‘-Wmissing-prototypes’ is valid for C/ObjC but not for C++
cc1plus: warning: ‘-Werror=’ argument ‘-Werror=declaration-after-statement’ is not valid for C++
cc1plus: warning: command-line option ‘-Wstrict-prototypes’ is valid for C/ObjC but not for C++
cc1plus: warning: command-line option ‘-Wmissing-prototypes’ is valid for C/ObjC but not for C++
cc1plus: warning: ‘-Werror=’ argument ‘-Werror=declaration-after-statement’ is not valid for C++
cc1plus: warning: command-line option ‘-Wstrict-prototypes’ is valid for C/ObjC but not for C++
cc1plus: warning: command-line option ‘-Wmissing-prototypes’ is valid for C/ObjC but not for C++
cc1plus: warning: ‘-Werror=’ argument ‘-Werror=declaration-after-statement’ is not valid for C++
cc1plus: warning: command-line option ‘-Wstrict-prototypes’ is valid for C/ObjC but not for C++
cc1plus: warning: command-line option ‘-Wmissing-prototypes’ is valid for C/ObjC but not for C++
cc1plus: warning: ‘-Werror=’ argument ‘-Werror=declaration-after-statement’ is not valid for C++
tesseract/src/ccmain/pagesegmain.cpp:249:13: warning: ‘void tesseract::AddAllScriptsConverted(const UNICHARSET&, const UNICHARSET&, std::vector*)’ defined but not used [-Wunused-function]
249 | static void AddAllScriptsConverted(const UNICHARSET &sid_set, const UNICHARSET &osd_set,
| ^~~~~~~~~~~~~~~~~~~~~~
cc1plus: warning: command-line option ‘-Wstrict-prototypes’ is valid for C/ObjC but not for C++
cc1plus: warning: command-line option ‘-Wmissing-prototypes’ is valid for C/ObjC but not for C++
cc1plus: warning: ‘-Werror=’ argument ‘-Werror=declaration-after-statement’ is not valid for C++
cc1plus: warning: command-line option ‘-Wstrict-prototypes’ is valid for C/ObjC but not for C++
cc1plus: warning: command-line option ‘-Wmissing-prototypes’ is valid for C/ObjC but not for C++
cc1plus: warning: ‘-Werror=’ argument ‘-Werror=declaration-after-statement’ is not valid for C++
cc1plus: warning: command-line option ‘-Wstrict-prototypes’ is valid for C/ObjC but not for C++
cc1plus: warning: command-line option ‘-Wmissing-prototypes’ is valid for C/ObjC but not for C++
cc1plus: warning: ‘-Werror=’ argument ‘-Werror=declaration-after-statement’ is not valid for C++
cc1plus: warning: command-line option ‘-Wstrict-prototypes’ is valid for C/ObjC but not for C++
cc1plus: warning: command-line option ‘-Wmissing-prototypes’ is valid for C/ObjC but not for C++
cc1plus: warning: ‘-Werror=’ argument ‘-Werror=declaration-after-statement’ is not valid for C++
cc1plus: warning: command-line option ‘-Wstrict-prototypes’ is valid for C/ObjC but not for C++
cc1plus: warning: command-line option ‘-Wmissing-prototypes’ is valid for C/ObjC but not for C++
cc1plus: warning: ‘-Werror=’ argument ‘-Werror=declaration-after-statement’ is not valid for C++
cc1plus: warning: command-line option ‘-Wstrict-prototypes’ is valid for C/ObjC but not for C++
cc1plus: warning: command-line option ‘-Wmissing-prototypes’ is valid for C/ObjC but not for C++
cc1plus: warning: ‘-Werror=’ argument ‘-Werror=declaration-after-statement’ is not valid for C++
cc1plus: warning: command-line option ‘-Wstrict-prototypes’ is valid for C/ObjC but not for C++
cc1plus: warning: command-line option ‘-Wmissing-prototypes’ is valid for C/ObjC but not for C++
cc1plus: warning: ‘-Werror=’ argument ‘-Werror=declaration-after-statement’ is not valid for C++
cc1plus: warning: command-line option ‘-Wstrict-prototypes’ is valid for C/ObjC but not for C++
cc1plus: warning: command-line option ‘-Wmissing-prototypes’ is valid for C/ObjC but not for C++
cc1plus: warning: ‘-Werror=’ argument ‘-Werror=declaration-after-statement’ is not valid for C++
cc1plus: warning: command-line option ‘-Wstrict-prototypes’ is valid for C/ObjC but not for C++
cc1plus: warning: command-line option ‘-Wmissing-prototypes’ is valid for C/ObjC but not for C++
cc1plus: warning: ‘-Werror=’ argument ‘-Werror=declaration-after-statement’ is not valid for C++
cc1plus: warning: command-line option ‘-Wstrict-prototypes’ is valid for C/ObjC but not for C++
cc1plus: warning: command-line option ‘-Wmissing-prototypes’ is valid for C/ObjC but not for C++
cc1plus: warning: ‘-Werror=’ argument ‘-Werror=declaration-after-statement’ is not valid for C++
cc1plus: warning: command-line option ‘-Wstrict-prototypes’ is valid for C/ObjC but not for C++
cc1plus: warning: command-line option ‘-Wmissing-prototypes’ is valid for C/ObjC but not for C++
cc1plus: warning: ‘-Werror=’ argument ‘-Werror=declaration-after-statement’ is not valid for C++
cc1plus: warning: command-line option ‘-Wstrict-prototypes’ is valid for C/ObjC but not for C++
cc1plus: warning: command-line option ‘-Wmissing-prototypes’ is valid for C/ObjC but not for C++
cc1plus: warning: ‘-Werror=’ argument ‘-Werror=declaration-after-statement’ is not valid for C++
cc1plus: warning: command-line option ‘-Wstrict-prototypes’ is valid for C/ObjC but not for C++
cc1plus: warning: command-line option ‘-Wmissing-prototypes’ is valid for C/ObjC but not for C++
cc1plus: warning: ‘-Werror=’ argument ‘-Werror=declaration-after-statement’ is not valid for C++
cc1plus: warning: command-line option ‘-Wstrict-prototypes’ is valid for C/ObjC but not for C++
cc1plus: warning: command-line option ‘-Wmissing-prototypes’ is valid for C/ObjC but not for C++
cc1plus: warning: ‘-Werror=’ argument ‘-Werror=declaration-after-statement’ is not valid for C++
cc1plus: warning: command-line option ‘-Wstrict-prototypes’ is valid for C/ObjC but not for C++
cc1plus: warning: command-line option ‘-Wmissing-prototypes’ is valid for C/ObjC but not for C++
cc1plus: warning: ‘-Werror=’ argument ‘-Werror=declaration-after-statement’ is not valid for C++
cc1plus: warning: command-line option ‘-Wstrict-prototypes’ is valid for C/ObjC but not for C++
cc1plus: warning: command-line option ‘-Wmissing-prototypes’ is valid for C/ObjC but not for C++
cc1plus: warning: ‘-Werror=’ argument ‘-Werror=declaration-after-statement’ is not valid for C++
cc1plus: warning: command-line option ‘-Wstrict-prototypes’ is valid for C/ObjC but not for C++
cc1plus: warning: command-line option ‘-Wmissing-prototypes’ is valid for C/ObjC but not for C++
cc1plus: warning: ‘-Werror=’ argument ‘-Werror=declaration-after-statement’ is not valid for C++
cc1plus: warning: command-line option ‘-Wstrict-prototypes’ is valid for C/ObjC but not for C++
cc1plus: warning: command-line option ‘-Wmissing-prototypes’ is valid for C/ObjC but not for C++
cc1plus: warning: ‘-Werror=’ argument ‘-Werror=declaration-after-statement’ is not valid for C++
cc1plus: warning: command-line option ‘-Wstrict-prototypes’ is valid for C/ObjC but not for C++
cc1plus: warning: command-line option ‘-Wmissing-prototypes’ is valid for C/ObjC but not for C++
cc1plus: warning: ‘-Werror=’ argument ‘-Werror=declaration-after-statement’ is not valid for C++
cc1plus: warning: command-line option ‘-Wstrict-prototypes’ is valid for C/ObjC but not for C++
cc1plus: warning: command-line option ‘-Wmissing-prototypes’ is valid for C/ObjC but not for C++
cc1plus: warning: ‘-Werror=’ argument ‘-Werror=declaration-after-statement’ is not valid for C++
cc1plus: warning: command-line option ‘-Wstrict-prototypes’ is valid for C/ObjC but not for C++
cc1plus: warning: command-line option ‘-Wmissing-prototypes’ is valid for C/ObjC but not for C++
cc1plus: warning: ‘-Werror=’ argument ‘-Werror=declaration-after-statement’ is not valid for C++
cc1plus: warning: command-line option ‘-Wstrict-prototypes’ is valid for C/ObjC but not for C++
cc1plus: warning: command-line option ‘-Wmissing-prototypes’ is valid for C/ObjC but not for C++
cc1plus: warning: ‘-Werror=’ argument ‘-Werror=declaration-after-statement’ is not valid for C++
cc1plus: warning: command-line option ‘-Wstrict-prototypes’ is valid for C/ObjC but not for C++
cc1plus: warning: command-line option ‘-Wmissing-prototypes’ is valid for C/ObjC but not for C++
cc1plus: warning: ‘-Werror=’ argument ‘-Werror=declaration-after-statement’ is not valid for C++
cc1plus: warning: command-line option ‘-Wstrict-prototypes’ is valid for C/ObjC but not for C++
cc1plus: warning: command-line option ‘-Wmissing-prototypes’ is valid for C/ObjC but not for C++
cc1plus: warning: ‘-Werror=’ argument ‘-Werror=declaration-after-statement’ is not valid for C++
cc1plus: warning: command-line option ‘-Wstrict-prototypes’ is valid for C/ObjC but not for C++
cc1plus: warning: command-line option ‘-Wmissing-prototypes’ is valid for C/ObjC but not for C++
cc1plus: warning: ‘-Werror=’ argument ‘-Werror=declaration-after-statement’ is not valid for C++
cc1plus: warning: command-line option ‘-Wstrict-prototypes’ is valid for C/ObjC but not for C++
cc1plus: warning: command-line option ‘-Wmissing-prototypes’ is valid for C/ObjC but not for C++
cc1plus: warning: ‘-Werror=’ argument ‘-Werror=declaration-after-statement’ is not valid for C++
cc1plus: warning: command-line option ‘-Wstrict-prototypes’ is valid for C/ObjC but not for C++
cc1plus: warning: command-line option ‘-Wmissing-prototypes’ is valid for C/ObjC but not for C++
cc1plus: warning: ‘-Werror=’ argument ‘-Werror=declaration-after-statement’ is not valid for C++
cc1plus: warning: command-line option ‘-Wstrict-prototypes’ is valid for C/ObjC but not for C++
cc1plus: warning: command-line option ‘-Wmissing-prototypes’ is valid for C/ObjC but not for C++
cc1plus: warning: ‘-Werror=’ argument ‘-Werror=declaration-after-statement’ is not valid for C++
cc1plus: warning: command-line option ‘-Wstrict-prototypes’ is valid for C/ObjC but not for C++
cc1plus: warning: command-line option ‘-Wmissing-prototypes’ is valid for C/ObjC but not for C++
cc1plus: warning: ‘-Werror=’ argument ‘-Werror=declaration-after-statement’ is not valid for C++
cc1plus: warning: command-line option ‘-Wstrict-prototypes’ is valid for C/ObjC but not for C++
cc1plus: warning: command-line option ‘-Wmissing-prototypes’ is valid for C/ObjC but not for C++
cc1plus: warning: ‘-Werror=’ argument ‘-Werror=declaration-after-statement’ is not valid for C++
cc1plus: warning: command-line option ‘-Wstrict-prototypes’ is valid for C/ObjC but not for C++
cc1plus: warning: command-line option ‘-Wmissing-prototypes’ is valid for C/ObjC but not for C++
cc1plus: warning: ‘-Werror=’ argument ‘-Werror=declaration-after-statement’ is not valid for C++
cc1plus: warning: command-line option ‘-Wstrict-prototypes’ is valid for C/ObjC but not for C++
cc1plus: warning: command-line option ‘-Wmissing-prototypes’ is valid for C/ObjC but not for C++
cc1plus: warning: ‘-Werror=’ argument ‘-Werror=declaration-after-statement’ is not valid for C++
cc1plus: warning: command-line option ‘-Wstrict-prototypes’ is valid for C/ObjC but not for C++
cc1plus: warning: command-line option ‘-Wmissing-prototypes’ is valid for C/ObjC but not for C++
cc1plus: warning: ‘-Werror=’ argument ‘-Werror=declaration-after-statement’ is not valid for C++
cc1plus: warning: command-line option ‘-Wstrict-prototypes’ is valid for C/ObjC but not for C++
cc1plus: warning: command-line option ‘-Wmissing-prototypes’ is valid for C/ObjC but not for C++
cc1plus: warning: ‘-Werror=’ argument ‘-Werror=declaration-after-statement’ is not valid for C++
cc1plus: warning: command-line option ‘-Wstrict-prototypes’ is valid for C/ObjC but not for C++
cc1plus: warning: command-line option ‘-Wmissing-prototypes’ is valid for C/ObjC but not for C++
cc1plus: warning: ‘-Werror=’ argument ‘-Werror=declaration-after-statement’ is not valid for C++
cc1plus: warning: command-line option ‘-Wstrict-prototypes’ is valid for C/ObjC but not for C++
cc1plus: warning: command-line option ‘-Wmissing-prototypes’ is valid for C/ObjC but not for C++
cc1plus: warning: ‘-Werror=’ argument ‘-Werror=declaration-after-statement’ is not valid for C++
cc1plus: warning: command-line option ‘-Wstrict-prototypes’ is valid for C/ObjC but not for C++
cc1plus: warning: command-line option ‘-Wmissing-prototypes’ is valid for C/ObjC but not for C++
cc1plus: warning: ‘-Werror=’ argument ‘-Werror=declaration-after-statement’ is not valid for C++
cc1plus: warning: command-line option ‘-Wstrict-prototypes’ is valid for C/ObjC but not for C++
cc1plus: warning: command-line option ‘-Wmissing-prototypes’ is valid for C/ObjC but not for C++
cc1plus: warning: ‘-Werror=’ argument ‘-Werror=declaration-after-statement’ is not valid for C++
cc1plus: warning: command-line option ‘-Wstrict-prototypes’ is valid for C/ObjC but not for C++
cc1plus: warning: command-line option ‘-Wmissing-prototypes’ is valid for C/ObjC but not for C++
cc1plus: warning: ‘-Werror=’ argument ‘-Werror=declaration-after-statement’ is not valid for C++
cc1plus: warning: command-line option ‘-Wstrict-prototypes’ is valid for C/ObjC but not for C++
cc1plus: warning: command-line option ‘-Wmissing-prototypes’ is valid for C/ObjC but not for C++
cc1plus: warning: ‘-Werror=’ argument ‘-Werror=declaration-after-statement’ is not valid for C++
cc1plus: warning: command-line option ‘-Wstrict-prototypes’ is valid for C/ObjC but not for C++
cc1plus: warning: command-line option ‘-Wmissing-prototypes’ is valid for C/ObjC but not for C++
cc1plus: warning: ‘-Werror=’ argument ‘-Werror=declaration-after-statement’ is not valid for C++
cc1plus: warning: command-line option ‘-Wstrict-prototypes’ is valid for C/ObjC but not for C++
cc1plus: warning: command-line option ‘-Wmissing-prototypes’ is valid for C/ObjC but not for C++
cc1plus: warning: ‘-Werror=’ argument ‘-Werror=declaration-after-statement’ is not valid for C++
cc1plus: warning: command-line option ‘-Wstrict-prototypes’ is valid for C/ObjC but not for C++
cc1plus: warning: command-line option ‘-Wmissing-prototypes’ is valid for C/ObjC but not for C++
cc1plus: warning: ‘-Werror=’ argument ‘-Werror=declaration-after-statement’ is not valid for C++
cc1plus: warning: command-line option ‘-Wstrict-prototypes’ is valid for C/ObjC but not for C++
cc1plus: warning: command-line option ‘-Wmissing-prototypes’ is valid for C/ObjC but not for C++
cc1plus: warning: ‘-Werror=’ argument ‘-Werror=declaration-after-statement’ is not valid for C++
cc1plus: warning: command-line option ‘-Wstrict-prototypes’ is valid for C/ObjC but not for C++
cc1plus: warning: command-line option ‘-Wmissing-prototypes’ is valid for C/ObjC but not for C++
cc1plus: warning: ‘-Werror=’ argument ‘-Werror=declaration-after-statement’ is not valid for C++
cc1plus: warning: command-line option ‘-Wstrict-prototypes’ is valid for C/ObjC but not for C++
cc1plus: warning: command-line option ‘-Wmissing-prototypes’ is valid for C/ObjC but not for C++
cc1plus: warning: ‘-Werror=’ argument ‘-Werror=declaration-after-statement’ is not valid for C++
cc1plus: warning: command-line option ‘-Wstrict-prototypes’ is valid for C/ObjC but not for C++
cc1plus: warning: command-line option ‘-Wmissing-prototypes’ is valid for C/ObjC but not for C++
cc1plus: warning: ‘-Werror=’ argument ‘-Werror=declaration-after-statement’ is not valid for C++
cc1plus: warning: command-line option ‘-Wstrict-prototypes’ is valid for C/ObjC but not for C++
cc1plus: warning: command-line option ‘-Wmissing-prototypes’ is valid for C/ObjC but not for C++
cc1plus: warning: ‘-Werror=’ argument ‘-Werror=declaration-after-statement’ is not valid for C++
cc1plus: warning: command-line option ‘-Wstrict-prototypes’ is valid for C/ObjC but not for C++
cc1plus: warning: command-line option ‘-Wmissing-prototypes’ is valid for C/ObjC but not for C++
cc1plus: warning: ‘-Werror=’ argument ‘-Werror=declaration-after-statement’ is not valid for C++
cc1plus: warning: command-line option ‘-Wstrict-prototypes’ is valid for C/ObjC but not for C++
cc1plus: warning: command-line option ‘-Wmissing-prototypes’ is valid for C/ObjC but not for C++
cc1plus: warning: ‘-Werror=’ argument ‘-Werror=declaration-after-statement’ is not valid for C++
cc1plus: warning: command-line option ‘-Wstrict-prototypes’ is valid for C/ObjC but not for C++
cc1plus: warning: command-line option ‘-Wmissing-prototypes’ is valid for C/ObjC but not for C++
cc1plus: warning: ‘-Werror=’ argument ‘-Werror=declaration-after-statement’ is not valid for C++
cc1plus: warning: command-line option ‘-Wstrict-prototypes’ is valid for C/ObjC but not for C++
cc1plus: warning: command-line option ‘-Wmissing-prototypes’ is valid for C/ObjC but not for C++
cc1plus: warning: ‘-Werror=’ argument ‘-Werror=declaration-after-statement’ is not valid for C++
cc1plus: warning: command-line option ‘-Wstrict-prototypes’ is valid for C/ObjC but not for C++
cc1plus: warning: command-line option ‘-Wmissing-prototypes’ is valid for C/ObjC but not for C++
cc1plus: warning: ‘-Werror=’ argument ‘-Werror=declaration-after-statement’ is not valid for C++
cc1plus: warning: command-line option ‘-Wstrict-prototypes’ is valid for C/ObjC but not for C++
cc1plus: warning: command-line option ‘-Wmissing-prototypes’ is valid for C/ObjC but not for C++
cc1plus: warning: ‘-Werror=’ argument ‘-Werror=declaration-after-statement’ is not valid for C++
cc1plus: warning: command-line option ‘-Wstrict-prototypes’ is valid for C/ObjC but not for C++
cc1plus: warning: command-line option ‘-Wmissing-prototypes’ is valid for C/ObjC but not for C++
cc1plus: warning: ‘-Werror=’ argument ‘-Werror=declaration-after-statement’ is not valid for C++
cc1plus: warning: command-line option ‘-Wstrict-prototypes’ is valid for C/ObjC but not for C++
cc1plus: warning: command-line option ‘-Wmissing-prototypes’ is valid for C/ObjC but not for C++
cc1plus: warning: ‘-Werror=’ argument ‘-Werror=declaration-after-statement’ is not valid for C++
cc1plus: warning: command-line option ‘-Wstrict-prototypes’ is valid for C/ObjC but not for C++
cc1plus: warning: command-line option ‘-Wmissing-prototypes’ is valid for C/ObjC but not for C++
cc1plus: warning: ‘-Werror=’ argument ‘-Werror=declaration-after-statement’ is not valid for C++
tesseract/src/textord/bbgrid.cpp:250:7: warning: no previous declaration for ‘tesseract::Image tesseract::TraceBlockOnReducedPix(BLOCK*, int, ICOORD, int*, int*)’ [-Wmissing-declarations]
250 | Image TraceBlockOnReducedPix(BLOCK *block, int gridsize, ICOORD bleft, int *left, int *bottom) {
| ^~~~~~~~~~~~~~~~~~~~~~
cc1plus: warning: command-line option ‘-Wstrict-prototypes’ is valid for C/ObjC but not for C++
cc1plus: warning: command-line option ‘-Wmissing-prototypes’ is valid for C/ObjC but not for C++
cc1plus: warning: ‘-Werror=’ argument ‘-Werror=declaration-after-statement’ is not valid for C++
cc1plus: warning: command-line option ‘-Wstrict-prototypes’ is valid for C/ObjC but not for C++
cc1plus: warning: command-line option ‘-Wmissing-prototypes’ is valid for C/ObjC but not for C++
cc1plus: warning: ‘-Werror=’ argument ‘-Werror=declaration-after-statement’ is not valid for C++
cc1plus: warning: command-line option ‘-Wstrict-prototypes’ is valid for C/ObjC but not for C++
cc1plus: warning: command-line option ‘-Wmissing-prototypes’ is valid for C/ObjC but not for C++
cc1plus: warning: ‘-Werror=’ argument ‘-Werror=declaration-after-statement’ is not valid for C++
cc1plus: warning: command-line option ‘-Wstrict-prototypes’ is valid for C/ObjC but not for C++
cc1plus: warning: command-line option ‘-Wmissing-prototypes’ is valid for C/ObjC but not for C++
cc1plus: warning: ‘-Werror=’ argument ‘-Werror=declaration-after-statement’ is not valid for C++
cc1plus: warning: command-line option ‘-Wstrict-prototypes’ is valid for C/ObjC but not for C++
cc1plus: warning: command-line option ‘-Wmissing-prototypes’ is valid for C/ObjC but not for C++
cc1plus: warning: ‘-Werror=’ argument ‘-Werror=declaration-after-statement’ is not valid for C++
cc1plus: warning: command-line option ‘-Wstrict-prototypes’ is valid for C/ObjC but not for C++
cc1plus: warning: command-line option ‘-Wmissing-prototypes’ is valid for C/ObjC but not for C++
cc1plus: warning: ‘-Werror=’ argument ‘-Werror=declaration-after-statement’ is not valid for C++
cc1plus: warning: command-line option ‘-Wstrict-prototypes’ is valid for C/ObjC but not for C++
cc1plus: warning: command-line option ‘-Wmissing-prototypes’ is valid for C/ObjC but not for C++
cc1plus: warning: ‘-Werror=’ argument ‘-Werror=declaration-after-statement’ is not valid for C++
cc1plus: warning: command-line option ‘-Wstrict-prototypes’ is valid for C/ObjC but not for C++
cc1plus: warning: command-line option ‘-Wmissing-prototypes’ is valid for C/ObjC but not for C++
cc1plus: warning: ‘-Werror=’ argument ‘-Werror=declaration-after-statement’ is not valid for C++
cc1plus: warning: command-line option ‘-Wstrict-prototypes’ is valid for C/ObjC but not for C++
cc1plus: warning: command-line option ‘-Wmissing-prototypes’ is valid for C/ObjC but not for C++
cc1plus: warning: ‘-Werror=’ argument ‘-Werror=declaration-after-statement’ is not valid for C++
cc1plus: warning: command-line option ‘-Wstrict-prototypes’ is valid for C/ObjC but not for C++
cc1plus: warning: command-line option ‘-Wmissing-prototypes’ is valid for C/ObjC but not for C++
cc1plus: warning: ‘-Werror=’ argument ‘-Werror=declaration-after-statement’ is not valid for C++
cc1plus: warning: command-line option ‘-Wstrict-prototypes’ is valid for C/ObjC but not for C++
cc1plus: warning: command-line option ‘-Wmissing-prototypes’ is valid for C/ObjC but not for C++
cc1plus: warning: ‘-Werror=’ argument ‘-Werror=declaration-after-statement’ is not valid for C++
cc1plus: warning: command-line option ‘-Wstrict-prototypes’ is valid for C/ObjC but not for C++
cc1plus: warning: command-line option ‘-Wmissing-prototypes’ is valid for C/ObjC but not for C++
cc1plus: warning: ‘-Werror=’ argument ‘-Werror=declaration-after-statement’ is not valid for C++
cc1plus: warning: command-line option ‘-Wstrict-prototypes’ is valid for C/ObjC but not for C++
cc1plus: warning: command-line option ‘-Wmissing-prototypes’ is valid for C/ObjC but not for C++
cc1plus: warning: ‘-Werror=’ argument ‘-Werror=declaration-after-statement’ is not valid for C++
cc1plus: warning: command-line option ‘-Wstrict-prototypes’ is valid for C/ObjC but not for C++
cc1plus: warning: command-line option ‘-Wmissing-prototypes’ is valid for C/ObjC but not for C++
cc1plus: warning: ‘-Werror=’ argument ‘-Werror=declaration-after-statement’ is not valid for C++
cc1plus: warning: command-line option ‘-Wstrict-prototypes’ is valid for C/ObjC but not for C++
cc1plus: warning: command-line option ‘-Wmissing-prototypes’ is valid for C/ObjC but not for C++
cc1plus: warning: ‘-Werror=’ argument ‘-Werror=declaration-after-statement’ is not valid for C++
cc1plus: warning: command-line option ‘-Wstrict-prototypes’ is valid for C/ObjC but not for C++
cc1plus: warning: command-line option ‘-Wmissing-prototypes’ is valid for C/ObjC but not for C++
cc1plus: warning: ‘-Werror=’ argument ‘-Werror=declaration-after-statement’ is not valid for C++
cc1plus: warning: command-line option ‘-Wstrict-prototypes’ is valid for C/ObjC but not for C++
cc1plus: warning: command-line option ‘-Wmissing-prototypes’ is valid for C/ObjC but not for C++
cc1plus: warning: ‘-Werror=’ argument ‘-Werror=declaration-after-statement’ is not valid for C++
tesseract/src/textord/makerow.cpp: In function ‘void tesseract::delete_non_dropout_rows(TO_BLOCK*, float, FCOORD, int32_t, bool)’:
tesseract/src/textord/makerow.cpp:625:11: warning: variable ‘xleft’ set but not used [-Wunused-but-set-variable]
625 | int32_t xleft; // of block
| ^~~~~
tesseract/src/textord/makerow.cpp:626:11: warning: variable ‘ybottom’ set but not used [-Wunused-but-set-variable]
626 | int32_t ybottom; // of block
| ^~~~~~~
tesseract/src/textord/makerow.cpp: In function ‘void tesseract::assign_blobs_to_rows(TO_BLOCK*, float*, int, bool, bool, bool)’:
tesseract/src/textord/makerow.cpp:2281:9: warning: variable ‘ycoord’ set but not used [-Wunused-but-set-variable]
2281 | float ycoord; // current y
| ^~~~~~
cc1plus: warning: command-line option ‘-Wstrict-prototypes’ is valid for C/ObjC but not for C++
cc1plus: warning: command-line option ‘-Wmissing-prototypes’ is valid for C/ObjC but not for C++
cc1plus: warning: ‘-Werror=’ argument ‘-Werror=declaration-after-statement’ is not valid for C++
cc1plus: warning: command-line option ‘-Wstrict-prototypes’ is valid for C/ObjC but not for C++
cc1plus: warning: command-line option ‘-Wmissing-prototypes’ is valid for C/ObjC but not for C++
cc1plus: warning: ‘-Werror=’ argument ‘-Werror=declaration-after-statement’ is not valid for C++
cc1plus: warning: command-line option ‘-Wstrict-prototypes’ is valid for C/ObjC but not for C++
cc1plus: warning: command-line option ‘-Wmissing-prototypes’ is valid for C/ObjC but not for C++
cc1plus: warning: ‘-Werror=’ argument ‘-Werror=declaration-after-statement’ is not valid for C++
cc1plus: warning: command-line option ‘-Wstrict-prototypes’ is valid for C/ObjC but not for C++
cc1plus: warning: command-line option ‘-Wmissing-prototypes’ is valid for C/ObjC but not for C++
cc1plus: warning: ‘-Werror=’ argument ‘-Werror=declaration-after-statement’ is not valid for C++
cc1plus: warning: command-line option ‘-Wstrict-prototypes’ is valid for C/ObjC but not for C++
cc1plus: warning: command-line option ‘-Wmissing-prototypes’ is valid for C/ObjC but not for C++
cc1plus: warning: ‘-Werror=’ argument ‘-Werror=declaration-after-statement’ is not valid for C++
cc1plus: warning: command-line option ‘-Wstrict-prototypes’ is valid for C/ObjC but not for C++
cc1plus: warning: command-line option ‘-Wmissing-prototypes’ is valid for C/ObjC but not for C++
cc1plus: warning: ‘-Werror=’ argument ‘-Werror=declaration-after-statement’ is not valid for C++
cc1plus: warning: command-line option ‘-Wstrict-prototypes’ is valid for C/ObjC but not for C++
cc1plus: warning: command-line option ‘-Wmissing-prototypes’ is valid for C/ObjC but not for C++
cc1plus: warning: ‘-Werror=’ argument ‘-Werror=declaration-after-statement’ is not valid for C++
cc1plus: warning: command-line option ‘-Wstrict-prototypes’ is valid for C/ObjC but not for C++
cc1plus: warning: command-line option ‘-Wmissing-prototypes’ is valid for C/ObjC but not for C++
cc1plus: warning: ‘-Werror=’ argument ‘-Werror=declaration-after-statement’ is not valid for C++
cc1plus: warning: command-line option ‘-Wstrict-prototypes’ is valid for C/ObjC but not for C++
cc1plus: warning: command-line option ‘-Wmissing-prototypes’ is valid for C/ObjC but not for C++
cc1plus: warning: ‘-Werror=’ argument ‘-Werror=declaration-after-statement’ is not valid for C++
cc1plus: warning: command-line option ‘-Wstrict-prototypes’ is valid for C/ObjC but not for C++
cc1plus: warning: command-line option ‘-Wmissing-prototypes’ is valid for C/ObjC but not for C++
cc1plus: warning: ‘-Werror=’ argument ‘-Werror=declaration-after-statement’ is not valid for C++
cc1plus: warning: command-line option ‘-Wstrict-prototypes’ is valid for C/ObjC but not for C++
cc1plus: warning: command-line option ‘-Wmissing-prototypes’ is valid for C/ObjC but not for C++
cc1plus: warning: ‘-Werror=’ argument ‘-Werror=declaration-after-statement’ is not valid for C++
cc1plus: warning: command-line option ‘-Wstrict-prototypes’ is valid for C/ObjC but not for C++
cc1plus: warning: command-line option ‘-Wmissing-prototypes’ is valid for C/ObjC but not for C++
cc1plus: warning: ‘-Werror=’ argument ‘-Werror=declaration-after-statement’ is not valid for C++
cc1plus: warning: command-line option ‘-Wstrict-prototypes’ is valid for C/ObjC but not for C++
cc1plus: warning: command-line option ‘-Wmissing-prototypes’ is valid for C/ObjC but not for C++
cc1plus: warning: ‘-Werror=’ argument ‘-Werror=declaration-after-statement’ is not valid for C++
cc1plus: warning: command-line option ‘-Wstrict-prototypes’ is valid for C/ObjC but not for C++
cc1plus: warning: command-line option ‘-Wmissing-prototypes’ is valid for C/ObjC but not for C++
cc1plus: warning: ‘-Werror=’ argument ‘-Werror=declaration-after-statement’ is not valid for C++
cc1plus: warning: command-line option ‘-Wstrict-prototypes’ is valid for C/ObjC but not for C++
cc1plus: warning: command-line option ‘-Wmissing-prototypes’ is valid for C/ObjC but not for C++
cc1plus: warning: ‘-Werror=’ argument ‘-Werror=declaration-after-statement’ is not valid for C++
cc1plus: warning: command-line option ‘-Wstrict-prototypes’ is valid for C/ObjC but not for C++
cc1plus: warning: command-line option ‘-Wmissing-prototypes’ is valid for C/ObjC but not for C++
cc1plus: warning: ‘-Werror=’ argument ‘-Werror=declaration-after-statement’ is not valid for C++
cc1plus: warning: command-line option ‘-Wstrict-prototypes’ is valid for C/ObjC but not for C++
cc1plus: warning: command-line option ‘-Wmissing-prototypes’ is valid for C/ObjC but not for C++
cc1plus: warning: ‘-Werror=’ argument ‘-Werror=declaration-after-statement’ is not valid for C++
cc1plus: warning: command-line option ‘-Wstrict-prototypes’ is valid for C/ObjC but not for C++
cc1plus: warning: command-line option ‘-Wmissing-prototypes’ is valid for C/ObjC but not for C++
cc1plus: warning: ‘-Werror=’ argument ‘-Werror=declaration-after-statement’ is not valid for C++
cc1plus: warning: command-line option ‘-Wstrict-prototypes’ is valid for C/ObjC but not for C++
cc1plus: warning: command-line option ‘-Wmissing-prototypes’ is valid for C/ObjC but not for C++
cc1plus: warning: ‘-Werror=’ argument ‘-Werror=declaration-after-statement’ is not valid for C++
cc1plus: warning: command-line option ‘-Wstrict-prototypes’ is valid for C/ObjC but not for C++
cc1plus: warning: command-line option ‘-Wmissing-prototypes’ is valid for C/ObjC but not for C++
cc1plus: warning: ‘-Werror=’ argument ‘-Werror=declaration-after-statement’ is not valid for C++
tesseract/src/viewer/scrollview.cpp:61:20: warning: ‘tesseract::waiting_for_events_mu’ defined but not used [-Wunused-variable]
61 | static std::mutex *waiting_for_events_mu;
| ^~~~~~~~~~~~~~~~~~~~~
tesseract/src/viewer/scrollview.cpp:57:20: warning: ‘tesseract::svmap_mu’ defined but not used [-Wunused-variable]
57 | static std::mutex *svmap_mu;
| ^~~~~~~~
cc1plus: warning: command-line option ‘-Wstrict-prototypes’ is valid for C/ObjC but not for C++
cc1plus: warning: command-line option ‘-Wmissing-prototypes’ is valid for C/ObjC but not for C++
cc1plus: warning: ‘-Werror=’ argument ‘-Werror=declaration-after-statement’ is not valid for C++
cc1plus: warning: command-line option ‘-Wstrict-prototypes’ is valid for C/ObjC but not for C++
cc1plus: warning: command-line option ‘-Wmissing-prototypes’ is valid for C/ObjC but not for C++
cc1plus: warning: ‘-Werror=’ argument ‘-Werror=declaration-after-statement’ is not valid for C++
cc1plus: warning: command-line option ‘-Wstrict-prototypes’ is valid for C/ObjC but not for C++
cc1plus: warning: command-line option ‘-Wmissing-prototypes’ is valid for C/ObjC but not for C++
cc1plus: warning: ‘-Werror=’ argument ‘-Werror=declaration-after-statement’ is not valid for C++
cc1plus: warning: command-line option ‘-Wstrict-prototypes’ is valid for C/ObjC but not for C++
cc1plus: warning: command-line option ‘-Wmissing-prototypes’ is valid for C/ObjC but not for C++
cc1plus: warning: ‘-Werror=’ argument ‘-Werror=declaration-after-statement’ is not valid for C++
cc1plus: warning: command-line option ‘-Wstrict-prototypes’ is valid for C/ObjC but not for C++
cc1plus: warning: command-line option ‘-Wmissing-prototypes’ is valid for C/ObjC but not for C++
cc1plus: warning: ‘-Werror=’ argument ‘-Werror=declaration-after-statement’ is not valid for C++
cc1plus: warning: command-line option ‘-Wstrict-prototypes’ is valid for C/ObjC but not for C++
cc1plus: warning: command-line option ‘-Wmissing-prototypes’ is valid for C/ObjC but not for C++
cc1plus: warning: ‘-Werror=’ argument ‘-Werror=declaration-after-statement’ is not valid for C++
cc1plus: warning: command-line option ‘-Wstrict-prototypes’ is valid for C/ObjC but not for C++
cc1plus: warning: command-line option ‘-Wmissing-prototypes’ is valid for C/ObjC but not for C++
cc1plus: warning: ‘-Werror=’ argument ‘-Werror=declaration-after-statement’ is not valid for C++
cc1plus: warning: command-line option ‘-Wstrict-prototypes’ is valid for C/ObjC but not for C++
cc1plus: warning: command-line option ‘-Wmissing-prototypes’ is valid for C/ObjC but not for C++
cc1plus: warning: ‘-Werror=’ argument ‘-Werror=declaration-after-statement’ is not valid for C++
cc1plus: warning: command-line option ‘-Wstrict-prototypes’ is valid for C/ObjC but not for C++
cc1plus: warning: command-line option ‘-Wmissing-prototypes’ is valid for C/ObjC but not for C++
cc1plus: warning: ‘-Werror=’ argument ‘-Werror=declaration-after-statement’ is not valid for C++
cc1plus: warning: command-line option ‘-Wstrict-prototypes’ is valid for C/ObjC but not for C++
cc1plus: warning: command-line option ‘-Wmissing-prototypes’ is valid for C/ObjC but not for C++
cc1plus: warning: ‘-Werror=’ argument ‘-Werror=declaration-after-statement’ is not valid for C++
cc1plus: warning: command-line option ‘-Wstrict-prototypes’ is valid for C/ObjC but not for C++
cc1plus: warning: command-line option ‘-Wmissing-prototypes’ is valid for C/ObjC but not for C++
cc1plus: warning: ‘-Werror=’ argument ‘-Werror=declaration-after-statement’ is not valid for C++
cc1plus: warning: command-line option ‘-Wstrict-prototypes’ is valid for C/ObjC but not for C++
cc1plus: warning: command-line option ‘-Wmissing-prototypes’ is valid for C/ObjC but not for C++
cc1plus: warning: ‘-Werror=’ argument ‘-Werror=declaration-after-statement’ is not valid for C++
cc1plus: warning: command-line option ‘-Wstrict-prototypes’ is valid for C/ObjC but not for C++
cc1plus: warning: command-line option ‘-Wmissing-prototypes’ is valid for C/ObjC but not for C++
cc1plus: warning: ‘-Werror=’ argument ‘-Werror=declaration-after-statement’ is not valid for C++
tesseract/src/ccutil/tessdatamanager.cpp: In member function ‘bool tesseract::TessdataManager::CombineDataFiles(const char*, const char*)’:
tesseract/src/ccutil/tessdatamanager.cpp:262:18: warning: ‘type’ may be used uninitialized [-Wmaybe-uninitialized]
262 | TessdataType type;
| ^~~~
cc1plus: warning: command-line option ‘-Wstrict-prototypes’ is valid for C/ObjC but not for C++
cc1plus: warning: command-line option ‘-Wmissing-prototypes’ is valid for C/ObjC but not for C++
cc1plus: warning: ‘-Werror=’ argument ‘-Werror=declaration-after-statement’ is not valid for C++
cc1plus: warning: command-line option ‘-Wstrict-prototypes’ is valid for C/ObjC but not for C++
cc1plus: warning: command-line option ‘-Wmissing-prototypes’ is valid for C/ObjC but not for C++
cc1plus: warning: ‘-Werror=’ argument ‘-Werror=declaration-after-statement’ is not valid for C++
cc1plus: warning: command-line option ‘-Wstrict-prototypes’ is valid for C/ObjC but not for C++
cc1plus: warning: command-line option ‘-Wmissing-prototypes’ is valid for C/ObjC but not for C++
cc1plus: warning: ‘-Werror=’ argument ‘-Werror=declaration-after-statement’ is not valid for C++
cc1plus: warning: command-line option ‘-Wstrict-prototypes’ is valid for C/ObjC but not for C++
cc1plus: warning: command-line option ‘-Wmissing-prototypes’ is valid for C/ObjC but not for C++
cc1plus: warning: ‘-Werror=’ argument ‘-Werror=declaration-after-statement’ is not valid for C++
cc1plus: warning: command-line option ‘-Wstrict-prototypes’ is valid for C/ObjC but not for C++
cc1plus: warning: command-line option ‘-Wmissing-prototypes’ is valid for C/ObjC but not for C++
cc1plus: warning: ‘-Werror=’ argument ‘-Werror=declaration-after-statement’ is not valid for C++
In file included from tesseract/src/ccutil/unicharset.cpp:19:
tesseract/src/ccutil/unicharset.h: In static member function ‘static tesseract::CHAR_FRAGMENT* tesseract::CHAR_FRAGMENT::parse_from_string(const char*)’:
tesseract/src/ccutil/unicharset.h:67:12: warning: ‘char* __builtin_strncpy(char*, const char*, unsigned int)’ output may be truncated copying 30 bytes from a string of length 30 [-Wstringop-truncation]
67 | strncpy(this->unichar, uch, sizeof(this->unichar));
| ^
cc1plus: warning: command-line option ‘-Wstrict-prototypes’ is valid for C/ObjC but not for C++
cc1plus: warning: command-line option ‘-Wmissing-prototypes’ is valid for C/ObjC but not for C++
cc1plus: warning: ‘-Werror=’ argument ‘-Werror=declaration-after-statement’ is not valid for C++
cc1plus: warning: command-line option ‘-Wstrict-prototypes’ is valid for C/ObjC but not for C++
cc1plus: warning: command-line option ‘-Wmissing-prototypes’ is valid for C/ObjC but not for C++
cc1plus: warning: ‘-Werror=’ argument ‘-Werror=declaration-after-statement’ is not valid for C++
cc1plus: warning: command-line option ‘-Wstrict-prototypes’ is valid for C/ObjC but not for C++
cc1plus: warning: command-line option ‘-Wmissing-prototypes’ is valid for C/ObjC but not for C++
cc1plus: warning: ‘-Werror=’ argument ‘-Werror=declaration-after-statement’ is not valid for C++
cc1plus: warning: command-line option ‘-Wstrict-prototypes’ is valid for C/ObjC but not for C++
cc1plus: warning: command-line option ‘-Wmissing-prototypes’ is valid for C/ObjC but not for C++
cc1plus: warning: ‘-Werror=’ argument ‘-Werror=declaration-after-statement’ is not valid for C++
cc1plus: warning: command-line option ‘-Wstrict-prototypes’ is valid for C/ObjC but not for C++
cc1plus: warning: command-line option ‘-Wmissing-prototypes’ is valid for C/ObjC but not for C++
cc1plus: warning: ‘-Werror=’ argument ‘-Werror=declaration-after-statement’ is not valid for C++
cc1plus: warning: command-line option ‘-Wstrict-prototypes’ is valid for C/ObjC but not for C++
cc1plus: warning: command-line option ‘-Wmissing-prototypes’ is valid for C/ObjC but not for C++
cc1plus: warning: ‘-Werror=’ argument ‘-Werror=declaration-after-statement’ is not valid for C++
cc1plus: warning: command-line option ‘-Wstrict-prototypes’ is valid for C/ObjC but not for C++
cc1plus: warning: command-line option ‘-Wmissing-prototypes’ is valid for C/ObjC but not for C++
cc1plus: warning: ‘-Werror=’ argument ‘-Werror=declaration-after-statement’ is not valid for C++
cc1plus: warning: command-line option ‘-Wstrict-prototypes’ is valid for C/ObjC but not for C++
cc1plus: warning: command-line option ‘-Wmissing-prototypes’ is valid for C/ObjC but not for C++
cc1plus: warning: ‘-Werror=’ argument ‘-Werror=declaration-after-statement’ is not valid for C++
cc1plus: warning: command-line option ‘-Wstrict-prototypes’ is valid for C/ObjC but not for C++
cc1plus: warning: command-line option ‘-Wmissing-prototypes’ is valid for C/ObjC but not for C++
cc1plus: warning: ‘-Werror=’ argument ‘-Werror=declaration-after-statement’ is not valid for C++
cc1plus: warning: command-line option ‘-Wstrict-prototypes’ is valid for C/ObjC but not for C++
cc1plus: warning: command-line option ‘-Wmissing-prototypes’ is valid for C/ObjC but not for C++
cc1plus: warning: ‘-Werror=’ argument ‘-Werror=declaration-after-statement’ is not valid for C++
tesseract/src/lstm/parallel.cpp: In member function ‘virtual void tesseract::Parallel::Forward(bool, const tesseract::NetworkIO&, const tesseract::TransposedArray*, tesseract::NetworkScratch*, tesseract::NetworkIO*)’:
tesseract/src/lstm/parallel.cpp:54:8: warning: variable ‘parallel_debug’ set but not used [-Wunused-but-set-variable]
54 | bool parallel_debug = false;
| ^~~~~~~~~~~~~~
cc1plus: warning: command-line option ‘-Wstrict-prototypes’ is valid for C/ObjC but not for C++
cc1plus: warning: command-line option ‘-Wmissing-prototypes’ is valid for C/ObjC but not for C++
cc1plus: warning: ‘-Werror=’ argument ‘-Werror=declaration-after-statement’ is not valid for C++
cc1plus: warning: command-line option ‘-Wstrict-prototypes’ is valid for C/ObjC but not for C++
cc1plus: warning: command-line option ‘-Wmissing-prototypes’ is valid for C/ObjC but not for C++
cc1plus: warning: ‘-Werror=’ argument ‘-Werror=declaration-after-statement’ is not valid for C++
cc1plus: warning: command-line option ‘-Wstrict-prototypes’ is valid for C/ObjC but not for C++
cc1plus: warning: command-line option ‘-Wmissing-prototypes’ is valid for C/ObjC but not for C++
cc1plus: warning: ‘-Werror=’ argument ‘-Werror=declaration-after-statement’ is not valid for C++
cc1plus: warning: command-line option ‘-Wstrict-prototypes’ is valid for C/ObjC but not for C++
cc1plus: warning: command-line option ‘-Wmissing-prototypes’ is valid for C/ObjC but not for C++
cc1plus: warning: ‘-Werror=’ argument ‘-Werror=declaration-after-statement’ is not valid for C++
cc1plus: warning: command-line option ‘-Wstrict-prototypes’ is valid for C/ObjC but not for C++
cc1plus: warning: command-line option ‘-Wmissing-prototypes’ is valid for C/ObjC but not for C++
cc1plus: warning: ‘-Werror=’ argument ‘-Werror=declaration-after-statement’ is not valid for C++
cc1plus: warning: command-line option ‘-Wstrict-prototypes’ is valid for C/ObjC but not for C++
cc1plus: warning: command-line option ‘-Wmissing-prototypes’ is valid for C/ObjC but not for C++
cc1plus: warning: ‘-Werror=’ argument ‘-Werror=declaration-after-statement’ is not valid for C++
cc1plus: warning: command-line option ‘-Wstrict-prototypes’ is valid for C/ObjC but not for C++
cc1plus: warning: command-line option ‘-Wmissing-prototypes’ is valid for C/ObjC but not for C++
cc1plus: warning: ‘-Werror=’ argument ‘-Werror=declaration-after-statement’ is not valid for C++
cc1plus: warning: command-line option ‘-Wstrict-prototypes’ is valid for C/ObjC but not for C++
cc1plus: warning: command-line option ‘-Wmissing-prototypes’ is valid for C/ObjC but not for C++
cc1plus: warning: ‘-Werror=’ argument ‘-Werror=declaration-after-statement’ is not valid for C++
cc1plus: warning: command-line option ‘-Wstrict-prototypes’ is valid for C/ObjC but not for C++
cc1plus: warning: command-line option ‘-Wmissing-prototypes’ is valid for C/ObjC but not for C++
cc1plus: warning: ‘-Werror=’ argument ‘-Werror=declaration-after-statement’ is not valid for C++
cc1plus: warning: command-line option ‘-Wstrict-prototypes’ is valid for C/ObjC but not for C++
cc1plus: warning: command-line option ‘-Wmissing-prototypes’ is valid for C/ObjC but not for C++
cc1plus: warning: ‘-Werror=’ argument ‘-Werror=declaration-after-statement’ is not valid for C++
cc1plus: warning: command-line option ‘-Wstrict-prototypes’ is valid for C/ObjC but not for C++
cc1plus: warning: command-line option ‘-Wmissing-prototypes’ is valid for C/ObjC but not for C++
cc1plus: warning: ‘-Werror=’ argument ‘-Werror=declaration-after-statement’ is not valid for C++
cc1plus: warning: command-line option ‘-Wstrict-prototypes’ is valid for C/ObjC but not for C++
cc1plus: warning: command-line option ‘-Wmissing-prototypes’ is valid for C/ObjC but not for C++
cc1plus: warning: ‘-Werror=’ argument ‘-Werror=declaration-after-statement’ is not valid for C++
cc1plus: warning: command-line option ‘-Wstrict-prototypes’ is valid for C/ObjC but not for C++
cc1plus: warning: command-line option ‘-Wmissing-prototypes’ is valid for C/ObjC but not for C++
cc1plus: warning: ‘-Werror=’ argument ‘-Werror=declaration-after-statement’ is not valid for C++
cc1plus: warning: command-line option ‘-Wstrict-prototypes’ is valid for C/ObjC but not for C++
cc1plus: warning: command-line option ‘-Wmissing-prototypes’ is valid for C/ObjC but not for C++
cc1plus: warning: ‘-Werror=’ argument ‘-Werror=declaration-after-statement’ is not valid for C++
cc1plus: warning: command-line option ‘-Wstrict-prototypes’ is valid for C/ObjC but not for C++
cc1plus: warning: command-line option ‘-Wmissing-prototypes’ is valid for C/ObjC but not for C++
cc1plus: warning: ‘-Werror=’ argument ‘-Werror=declaration-after-statement’ is not valid for C++
In file included from ./base/gx.h:26,
from ./base/gdevprn.h:24,
from ./contrib/japanese/gdev10v.c:33:
./contrib/japanese/gdev10v.c: In function ‘bj10v_print_page’:
./base/gsmalloc.h:58:21: warning: ‘in’ may be used uninitialized [-Wmaybe-uninitialized]
58 | gs_free_object(mem->non_gc_memory, data, cname)
./base/gsmemory.h:135:28: note: in definition of macro ‘gs_free_object’
135 | do { if (mem != NULL) {((mem)->procs.free_object(mem, data, cname));} } while (0)
| ^~~
./contrib/japanese/gdev10v.c:336:9: note: in expansion of macro ‘gs_free’
336 | gs_free(pdev->memory->non_gc_memory, (char *)in, 8, line_size, "bj10v_print_page(in)");
| ^~~~~~~
./contrib/japanese/gdev10v.c:202:15: note: ‘in’ was declared here
202 | byte *in, *out;
| ^~
./base/gsmalloc.h:58:21: warning: ‘out’ may be used uninitialized [-Wmaybe-uninitialized]
58 | gs_free_object(mem->non_gc_memory, data, cname)
./base/gsmemory.h:135:28: note: in definition of macro ‘gs_free_object’
135 | do { if (mem != NULL) {((mem)->procs.free_object(mem, data, cname));} } while (0)
| ^~~
./contrib/japanese/gdev10v.c:335:9: note: in expansion of macro ‘gs_free’
335 | gs_free(pdev->memory->non_gc_memory, (char *)out, bits_per_column, line_size, "bj10v_print_page(out)");
| ^~~~~~~
./contrib/japanese/gdev10v.c:202:20: note: ‘out’ was declared here
202 | byte *in, *out;
| ^~~
./contrib/gdevhl12.c: In function ‘hl1250_compress_band’:
./contrib/gdevhl12.c:492:41: warning: format ‘%lu’ expects argument of type ‘long unsigned int’, but argument 3 has type ‘unsigned int’ [-Wformat=]
492 | gp_fprintf(prn_stream, "\033*b%luW", s->out_count * sizeof(u16) + 9);
| ~~^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
| | |
| long unsigned int unsigned int
| %u
./devices/gdevimgn.c: In function ‘imagen_prn_open’:
./devices/gdevimgn.c:297:14: warning: format ‘%ld’ expects argument of type ‘long int’, but argument 2 has type ‘unsigned int’ [-Wformat=]
297 | DebugMsg(2,"BIGSIZE = %ld \n",BIGSIZE);
| ^~~~~~~~~~~~~~~~~~
./devices/gdevimgn.c:160:69: note: in definition of macro ‘DebugMsg’
160 | #define DebugMsg(Level,P1,P2) if (Level<=IM_DEBUG) {errprintf_nomem(P1,P2 );}
| ^~
./devices/gdevimgn.c:297:27: note: format string is defined here
297 | DebugMsg(2,"BIGSIZE = %ld \n",BIGSIZE);
| ~~^
| |
| long int
| %d
./base/gxclmem.c: In function ‘memfile_get_pdata.isra’:
./base/gxclmem.c:951:67: warning: writing 1 byte into a region of size 0 [-Wstringop-overflow=]
951 | *(bp->phys_blk->link->data - back_up + i) = *++f->rd.ptr;
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~
In file included from ./base/gxclmem.c:21:
./base/gxclmem.h:56:10: note: at offset [-2147483647, -1] into destination object ‘data’ of size 16224
56 | char data[MEMFILE_DATA_SIZE];
| ^~~~
./base/gdevdbit.c: In function ‘gx_default_strip_tile_rect_devn’:
./base/gdevdbit.c:603:11: warning: unused variable ‘tile_id’ [-Wunused-variable]
603 | gs_id tile_id = tiles->id;
| ^~~~~~~
In file included from ./base/malloc_.h:23,
from ./psi/imain.c:20:
./psi/imain.c: In function ‘print_resource_usage’:
./psi/imain.c:1501:28: warning: format ‘%lu’ expects argument of type ‘long unsigned int’, but argument 5 has type ‘size_t’ {aka ‘unsigned int’} [-Wformat=]
1501 | dmprintf5(minst->heap, "%% %s time = %g, memory allocated = %lu, used = %lu, max_used = %lu\n",
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
......
1504 | status.allocated, used, status.max_used);
| ~~~~~~~~~~~~~~~~
| |
| size_t {aka unsigned int}
./base/std.h:344:12: note: in definition of macro ‘dmprintf5’
344 | dpfm(mem,str, arg1, arg2, arg3, arg4, arg5)
| ^~~
./psi/imain.c:1501:67: note: format string is defined here
1501 | dmprintf5(minst->heap, "%% %s time = %g, memory allocated = %lu, used = %lu, max_used = %lu\n",
| ~~^
| |
| long unsigned int
| %u
./psi/imain.c:1501:28: warning: format ‘%lu’ expects argument of type ‘long unsigned int’, but argument 7 has type ‘size_t’ {aka ‘unsigned int’} [-Wformat=]
1501 | dmprintf5(minst->heap, "%% %s time = %g, memory allocated = %lu, used = %lu, max_used = %lu\n",
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
......
1504 | status.allocated, used, status.max_used);
| ~~~~~~~~~~~~~~~
| |
| size_t {aka unsigned int}
./base/std.h:344:12: note: in definition of macro ‘dmprintf5’
344 | dpfm(mem,str, arg1, arg2, arg3, arg4, arg5)
| ^~~
./psi/imain.c:1501:95: note: format string is defined here
1501 | dmprintf5(minst->heap, "%% %s time = %g, memory allocated = %lu, used = %lu, max_used = %lu\n",
| ~~^
| |
| long unsigned int
| %u
./psi/zcolor.c: In function ‘zcurrentcolorspace’:
./psi/zcolor.c:171:11: warning: unused variable ‘body’ [-Wunused-variable]
171 | byte *body;
| ^~~~
./psi/zcolor.c:170:17: warning: unused variable ‘stref’ [-Wunused-variable]
170 | ref namestr,stref, *aref;
| ^~~~~
./psi/zcolor.c: In function ‘copy_cspace_dict’:
./psi/zcolor.c:493:26: warning: unused variable ‘i’ [-Wunused-variable]
493 | int code = 0, index, i = 0;
| ^
./psi/zcolor.c: In function ‘septransform’:
./psi/zcolor.c:3944:30: warning: unused variable ‘pimap’ [-Wunused-variable]
3944 | gs_device_n_map *pimap;
| ^~~~~
./psi/zcolor.c: In function ‘devicentransform’:
./psi/zcolor.c:4802:30: warning: unused variable ‘pimap’ [-Wunused-variable]
4802 | gs_device_n_map *pimap;
| ^~~~~
./psi/zcolor.c: In function ‘currentbasecolor’:
./psi/zcolor.c:7289:12: warning: unused variable ‘ep’ [-Wunused-variable]
7289 | es_ptr ep = esp;
| ^~
In file included from ./base/gsrefct.h:23,
from ./base/gxgstate.h:23,
from ./pdf/ghostpdf.h:21,
from ./pdf/pdf_file.c:16:
./pdf/pdf_file.c: In function ‘pdfi_filter_no_decryption’:
./pdf/pdf_file.c:928:32: warning: format ‘%ld’ expects argument of type ‘long int’, but argument 3 has type ‘gs_offset_t’ {aka ‘long long int’} [-Wformat=]
928 | dmprintf2(ctx->memory, "Filter: offset %ld(0x%lx)\n", stream_offset, stream_offset);
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ~~~~~~~~~~~~~
| |
| gs_offset_t {aka long long int}
./base/std.h:332:12: note: in definition of macro ‘dmprintf2’
332 | dpfm(mem,str, arg1, arg2)
| ^~~
./pdf/pdf_file.c:928:50: note: format string is defined here
928 | dmprintf2(ctx->memory, "Filter: offset %ld(0x%lx)\n", stream_offset, stream_offset);
| ~~^
| |
| long int
| %lld
./pdf/pdf_file.c:928:32: warning: format ‘%lx’ expects argument of type ‘long unsigned int’, but argument 4 has type ‘gs_offset_t’ {aka ‘long long int’} [-Wformat=]
928 | dmprintf2(ctx->memory, "Filter: offset %ld(0x%lx)\n", stream_offset, stream_offset);
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ~~~~~~~~~~~~~
| |
| gs_offset_t {aka long long int}
./base/std.h:332:12: note: in definition of macro ‘dmprintf2’
332 | dpfm(mem,str, arg1, arg2)
| ^~~
./pdf/pdf_file.c:928:56: note: format string is defined here
928 | dmprintf2(ctx->memory, "Filter: offset %ld(0x%lx)\n", stream_offset, stream_offset);
| ~~^
| |
| long unsigned int
| %llx
In function ‘pdf_compute_encryption_key_r6’,
inlined from ‘check_owner_password_R6.constprop’ at ./pdf/pdf_sec.c:723:5:
./pdf/pdf_sec.c:402:9: warning: ‘pdf_compute_hardened_hash_r6’ accessing 16 bytes in a region of size 8 [-Wstringop-overflow=]
402 | pdf_compute_hardened_hash_r6(password, pwlen,
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
403 | (ownerkey ? O : U) + 40,
| ~~~~~~~~~~~~~~~~~~~~~~~~
404 | (ownerkey ? U : NULL), hash);
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~
./pdf/pdf_sec.c:402:9: note: referencing argument 3 of type ‘unsigned char[16]’
./pdf/pdf_sec.c:402:9: note: referencing argument 5 of type ‘unsigned char[32]’
./pdf/pdf_sec.c: In function ‘check_owner_password_R6.constprop’:
./pdf/pdf_sec.c:324:1: note: in a call to function ‘pdf_compute_hardened_hash_r6’
324 | pdf_compute_hardened_hash_r6(unsigned char *password, int pwlen, unsigned char salt[16], unsigned char *ownerkey, unsigned char hash[32])
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~
In function ‘pdf_compute_encryption_key_r6’,
inlined from ‘check_user_password_R6.constprop’ at ./pdf/pdf_sec.c:417:5:
./pdf/pdf_sec.c:402:9: warning: ‘pdf_compute_hardened_hash_r6’ accessing 16 bytes in a region of size 8 [-Wstringop-overflow=]
402 | pdf_compute_hardened_hash_r6(password, pwlen,
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
403 | (ownerkey ? O : U) + 40,
| ~~~~~~~~~~~~~~~~~~~~~~~~
404 | (ownerkey ? U : NULL), hash);
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~
./pdf/pdf_sec.c:402:9: note: referencing argument 3 of type ‘unsigned char[16]’
./pdf/pdf_sec.c:402:9: note: referencing argument 5 of type ‘unsigned char[32]’
./pdf/pdf_sec.c: In function ‘check_user_password_R6.constprop’:
./pdf/pdf_sec.c:324:1: note: in a call to function ‘pdf_compute_hardened_hash_r6’
324 | pdf_compute_hardened_hash_r6(unsigned char *password, int pwlen, unsigned char salt[16], unsigned char *ownerkey, unsigned char hash[32])
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~
[01;33m*** 0 error(s), 1 warning(s)
[0m