Snippets for mtpaint 3.50 from Fedora aarch64
Sourced from https://kojipkgs.fedoraproject.org/packages/mtpaint/3.50/20.fc45/data/logs/aarch64/build.log.
-
mygtk.c:2649:17: warning: ‘gdk_screen_width’ is deprecated [-Wdeprecated-declarations] 2649 | p->w = gdk_screen_width(); | ^ -
mygtk.c:2650:17: warning: ‘gdk_screen_height’ is deprecated [-Wdeprecated-declarations] 2650 | p->h = gdk_screen_height(); | ^ -
mygtk.c:2781:9: warning: ‘gdk_pixbuf_new_from_xpm_data’ is deprecated [-Wdeprecated-declarations] 2781 | buf = gdk_pixbuf_new_from_xpm_data((const char **)xpm[1]); | ^~~ -
mygtk.c:3681:9: warning: ‘gdk_window_set_background_pattern’ is deprecated [-Wdeprecated-declarations] 3681 | gdk_window_set_background_pattern(win, NULL); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -
mygtk.c:5870:9: warning: ‘gdk_device_ungrab’ is deprecated: Use 'gdk_seat_ungrab' instead [-Wdeprecated-declarations] 5870 | gdk_device_ungrab(gdk_device_get_associated_device(mouse), time); // kbd | ^~~~~~~~~~~~~~~~~ -
mygtk.c:5871:9: warning: ‘gdk_device_ungrab’ is deprecated: Use 'gdk_seat_ungrab' instead [-Wdeprecated-declarations] 5871 | gdk_device_ungrab(mouse, time); | ^~~~~~~~~~~~~~~~~ -
mygtk.c:5996:9: warning: ‘gdk_screen_get_height’ is deprecated [-Wdeprecated-declarations] 5996 | return ((gdk_screen_get_height(sc) * (double)25.4) / gdk_screen_get_height_mm(sc)); | ^~~~~~ -
mygtk.c:5996:9: warning: ‘gdk_screen_get_height_mm’ is deprecated [-Wdeprecated-declarations] 5996 | return ((gdk_screen_get_height(sc) * (double)25.4) / gdk_screen_get_height_mm(sc)); | ^~~~~~ -
png.c:2231:17: warning: ‘bpp’ is deprecated: Use prec instead [-Wdeprecated-declarations] 2231 | channels[i].prec = channels[i].bpp = 8; | ^~~~~~~~ -
inifile.c:84:33: warning: assignment discards ‘const’ qualifier from pointer target type [-Wdiscarded-qualifiers] 84 | if ((cp = strchr(e, c))) | ^ -
png.c:2840:9: warning: ‘uint16’ is deprecated [-Wdeprecated-declarations] 2840 | uint16 bpsamp, sampp, xsamp, pmetric, planar, orient, sform; | ^~~~~~ -
png.c:2840:9: warning: ‘uint16’ is deprecated [-Wdeprecated-declarations]
-
png.c:2841:9: warning: ‘uint16’ is deprecated [-Wdeprecated-declarations] 2841 | uint16 *sampinfo, *red16, *green16, *blue16; | ^~~~~~ -
png.c:2841:9: warning: ‘uint16’ is deprecated [-Wdeprecated-declarations]
-
png.c:2842:9: warning: ‘uint32’ is deprecated [-Wdeprecated-declarations] 2842 | uint32 width, height, tw = 0, th = 0, rps = 0; | ^~~~~~ -
png.c:2842:9: warning: ‘uint32’ is deprecated [-Wdeprecated-declarations]
-
layer.c:469:17: warning: ignoring return value of ‘fgets’ declared with attribute ‘warn_unused_result’ [-Wunused-result] 469 | fgets(tin, 256, fp); | ^~~~~~~~~~~~~~~~~~~ -
png.c:2843:9: warning: ‘uint32’ is deprecated [-Wdeprecated-declarations] 2843 | uint32 *tr, *raster = NULL; | ^~~~~~ -
layer.c:490:17: warning: ignoring return value of ‘fgets’ declared with attribute ‘warn_unused_result’ [-Wunused-result] 490 | fgets(tin, 256, fp); | ^~~~~~~~~~~~~~~~~~~ -
png.c:2843:9: warning: ‘uint32’ is deprecated [-Wdeprecated-declarations]
-
png.c:2978:17: warning: ‘uint32’ is deprecated [-Wdeprecated-declarations] 2978 | uint32 size; | ^~~~~~ -
png.c:3005:17: warning: ‘uint32’ is deprecated [-Wdeprecated-declarations] 3005 | raster = (uint32 *)_TIFFmalloc(width * height * sizeof(uint32)); | ^~~~~~ -
png.c:3005:17: warning: ‘uint32’ is deprecated [-Wdeprecated-declarations]
-
png.c:3040:17: warning: ‘uint32’ is deprecated [-Wdeprecated-declarations] 3040 | uint32 x0, y0, xstep = tw ? tw : width, ystep = th ? th : rps; | ^~~~~~ -
png.c:3040:17: warning: ‘uint32’ is deprecated [-Wdeprecated-declarations]
-
png.c:3102:25: warning: ‘uint32’ is deprecated [-Wdeprecated-declarations] 3102 | uint32 x, y, w, h, l; | ^~~~~~ -
png.c:3102:25: warning: ‘uint32’ is deprecated [-Wdeprecated-declarations]
-
png.c:3346:9: warning: ‘uint16’ is deprecated [-Wdeprecated-declarations] 3346 | uint16 rgb[256 * 3]; | ^~~~~~ -
mygtk.c:5498:17: warning: ignoring return value of ‘getcwd’ declared with attribute ‘warn_unused_result’ [-Wunused-result] 5498 | getcwd(wbuf, PATHBUF - 1); | ^~~~~~~~~~~~~~~~~~~~~~~~~ -
png.c:5974:23: warning: assignment discards ‘const’ qualifier from pointer target type [-Wdiscarded-qualifiers] 5974 | else if ((tmp = memchr(planarconfig, (planes << 4) | bits, 9))) | ^ -
png.c:4441:16: warning: ignoring return value of ‘fscanf’ declared with attribute ‘warn_unused_result’ [-Wunused-result] 4441 | j = 0; fscanf(fp, " /* XPM */%n", &j); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -
png.c:8125:25: warning: ignoring return value of ‘fscanf’ declared with attribute ‘warn_unused_result’ [-Wunused-result] 8125 | fscanf(fp, "%i,%i,%i\n", rgb + 0, rgb + 1, rgb + 2); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -
wu.c:72:13: warning: old-style function definition [-Wold-style-definition] 72 | static void Hist3d(inbuf, vwt, vmr, vmg, vmb) // build 3-D color histogram of counts, r/g/b, c^2 | ^~~~~~ -
wu.c:128:13: warning: old-style function definition [-Wold-style-definition] 128 | static void M3d(vwt, vmr, vmg, vmb) // compute cumulative moments. | ^~~ -
wu.c:167:17: warning: old-style function definition [-Wold-style-definition] 167 | static long int Vol(cube, mmt) // Compute sum over a box of any given statistic | ^~~ -
wu.c:187:17: warning: old-style function definition [-Wold-style-definition] 187 | static long int Bottom(cube, dir, mmt) | ^~~~~~ -
wu.c:219:17: warning: old-style function definition [-Wold-style-definition] 219 | static long int Top(cube, dir, pos, mmt) | ^~~ -
wu.c:252:15: warning: old-style function definition [-Wold-style-definition] 252 | static double Var(cube) | ^~~ -
wu.c:281:15: warning: old-style function definition [-Wold-style-definition] 281 | static double Maximize(cube, dir, first, last, cut, whole_r, whole_g, whole_b, whole_w) | ^~~~~~~~ -
spawn.c:774:40: warning: ignoring return value of ‘chdir’ declared with attribute ‘warn_unused_result’ [-Wunused-result] 774 | if (directory) chdir(directory); | ^~~~~~~~~~~~~~~~ -
spawn.c:785:25: warning: ignoring return value of ‘write’ declared with attribute ‘warn_unused_result’ [-Wunused-result] 785 | write(fds[1], &err, sizeof(err)); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -
fpick.c:533:25: warning: ignoring return value of ‘getcwd’ declared with attribute ‘warn_unused_result’ [-Wunused-result] 533 | getcwd(full_name, PATHBUF - 1); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -
thread.c:254:17: warning: ‘g_atomic_int_exchange_and_add’ is deprecated: Use 'g_atomic_int_add' instead [-Wdeprecated-declarations] 254 | nx = thread_xadd(&tdata->done, step); | ^~ -
thread.c:305:17: warning: ‘g_thread_create’ is deprecated: Use 'g_thread_new' instead [-Wdeprecated-declarations] 305 | if (!g_thread_create((GThreadFunc)thread, tp, FALSE, NULL)) | ^~ -
vcode.c:7236:33: warning: ‘gdk_pixbuf_new_from_xpm_data’ is deprecated [-Wdeprecated-declarations] 7236 | GdkPixbuf *p = gdk_pixbuf_new_from_xpm_data(pp[2]); | ^~~~~~~~~ -
viewer.c:1036:28: warning: argument 2 range [18446744071562067968, 18446744073709551615] exceeds maximum object size 9223372036854775807 [-Walloc-size-larger-than=] 1036 | if ((tmp = realloc(mask, l))) mask = img = tmp; | ^