Snippets for m17n-lib 1.8.7 from Fedora i686
Sourced from https://kojipkgs.fedoraproject.org/packages/m17n-lib/1.8.7/1.fc46/data/logs/i686/build.log.
-
mtext-wseg.c:129:3: warning: 'th_brk' is deprecated: Use 'th_brk_find_breaks' instead [-Wdeprecated-declarations] 129 | int count = th_brk ((thchar_t *) tis, breaks, len); | ^~~ -
plist.c:308:20: warning: pointer targets in passing argument 1 of 'sprintf' differ in signedness [-Wpointer-sign] 308 | sprintf (buf, "-- invalid UTF-8 bytes --"); | ^~~ | | | unsigned char * -
plist.c:309:47: warning: pointer targets in passing argument 1 of 'strlen' differ in signedness [-Wpointer-sign] 309 | mt = mtext__from_data (buf, strlen (buf), MTEXT_FORMAT_UTF_8, buf == buffer); | ^~~ | | | unsigned char * -
charset.c:351:34: warning: variable 'c2' set but not used [-Wunused-but-set-variable=] 351 | unsigned code1, code2, c1, c2; | ^~ -
face.c:398:29: warning: 'val' may be used uninitialized [-Wmaybe-uninitialized] 398 | face->property[index] = val; | ~~~~~~~~~~~~~~~~~~~~~~^~~~~ -
fontset.c:850:13: warning: operation on 'request.property[1]' may be undefined [-Wsequence-point] 849 | = request.property[MFONT_FAMILY] | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 850 | = request.property[MFONT_FAMILY] = 0; | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -
m17n-flt.c:766:24: warning: unused variable 'langsys' [-Wunused-variable] 766 | unsigned int script, langsys; | ^~~~~~~ -
m17n-flt.c:766:16: warning: unused variable 'script' [-Wunused-variable] 766 | unsigned int script, langsys; | ^~~~~~ -
internal.h:230:33: warning: 'dummy' may be used uninitialized [-Wmaybe-uninitialized] 230 | (list)->mem[(list)->used++] = (elt); \ | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~ -
m17n-flt.c:1385:16: warning: 'sym' may be used uninitialized [-Wmaybe-uninitialized] 1385 | if (sym) | ^ -
font-ft.c:1786:18: warning: variable 'pitch' set but not used [-Wunused-but-set-variable=] 1786 | int width, pitch; | ^~~~~ -
font-ft.c:1030:10: warning: 'cs' may be used uninitialized [-Wmaybe-uninitialized] 1030 | if (cs) FcCharSetDestroy (cs); | ^ -
font-ft.c:2322:16: warning: writing 1 byte into a region of size 0 [-Wstringop-overflow=] 2322 | *--p = '\0'; | ~~~~~^~~~~~ -
m17n-gd.c:122:7: warning: ignoring return value of 'fgets' declared with attribute 'warn_unused_result' [-Wunused-result] 122 | fgets (buf + 1, 255, fp); | ^~~~~~~~~~~~~~~~~~~~~~~~ -
m17n-gd.c:360:30: warning: 'r' may be used uninitialized [-Wmaybe-uninitialized] 360 | pixel1 = gdImageColorResolveAlpha (img, r, g, b, alpha); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -
m17n-gd.c:360:30: warning: 'g' may be used uninitialized [-Wmaybe-uninitialized] 360 | pixel1 = gdImageColorResolveAlpha (img, r, g, b, alpha); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -
m17n-gd.c:360:30: warning: 'b' may be used uninitialized [-Wmaybe-uninitialized] 360 | pixel1 = gdImageColorResolveAlpha (img, r, g, b, alpha); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -
coding.c:2452:34: warning: variable 'p' set but not used [-Wunused-but-set-variable=] 2452 | unsigned char *p = NULL; | ^ -
draw.c:1256:15: warning: 'left_x' may be used uninitialized [-Wmaybe-uninitialized] 1256 | *from_x += left_x; | ^~ -
draw.c:1263:13: warning: 'right_x' may be used uninitialized [-Wmaybe-uninitialized] 1263 | *to_x += right_x; | ^~ -
input.c:287:19: warning: unused variable 'pl' [-Wunused-variable] 287 | MPlist *plist, *pl, *p; | ^~ -
input.c:3799:10: warning: unused variable 'produced' [-Wunused-variable] 3799 | MText *produced; | ^~~~~~~~ -
input.c:6876:41: warning: unused variable 'start' [-Wunused-variable] 6876 | int from = 0, to = mtext_len (mt), i, start = 0; | ^~~~~ -
input.c:6876:7: warning: unused variable 'from' [-Wunused-variable] 6876 | int from = 0, to = mtext_len (mt), i, start = 0; | ^~~~ -
symbol.h:46:33: warning: 'module' may be used uninitialized [-Wmaybe-uninitialized] 46 | #define MSYMBOL_NAME(sym) ((sym)->name) | ~~~~~~^~~~~~~ -
input.c:1584:45: warning: 'extra' may be used uninitialized [-Wmaybe-uninitialized] 1584 | if (language == Mnil || (name == Mnil && extra == Mnil)) | ~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~ -
input.c:3807:11: warning: 'stack' may be used uninitialized [-Wmaybe-uninitialized] 3807 | free (stack); | ^~~~~~~~~~~~ -
font-ft.c:2322:16: warning: writing 1 byte into a region of size 0 [-Wstringop-overflow=] 2322 | *--p = '\0'; | ^ -
mdate.c:228:5: warning: ‘fclose’ called on pointer returned from a mismatched allocation function [-Wmismatched-dealloc] 228 | fclose (p); | ^~~~~~~~~~ -
mview.c:267:39: warning: variable ‘text’ set but not used [-Wunused-but-set-variable=] 267 | Widget shell, form, quit, viewport, text; | ^~~~ -
minputtest.c:64:59: warning: pointer targets in passing argument 3 of ‘mconv_encode_buffer’ differ in signedness [-Wpointer-sign] 64 | int written = mconv_encode_buffer (Mcoding_utf_8, text, buf, TEXT_BUF_SIZE); | ^~~ | | | char * -
minputtest.c:284:1: warning: no return statement in function returning non-void [-Wreturn-type] 284 | } | ^ -
mdump.c:399:11: warning: ‘yoff’ may be used uninitialized [-Wmaybe-uninitialized] 399 | rect->y = yoff; | ~~~~~~~~^~~~~~ -
mdump.c:451:5: warning: ‘fclose’ called on pointer returned from a mismatched allocation function [-Wmismatched-dealloc] 451 | fclose (fp); | ^~~~~~~~~~~ -
medit.c:943:7: warning: variable ‘y0’ set but not used [-Wunused-but-set-variable=] 943 | int y0, old_y1, new_y1; | ^~ -
medit.c:997:7: warning: variable ‘line_from’ set but not used [-Wunused-but-set-variable=] 997 | int line_from; | ^~~~~~~~~