>>> Building on localhost under graphics/xsane,gimp BDEPENDS = [graphics/lcms;graphics/gimp/stable;devel/gmake;x11/gtk+2;graphics/sane-backends] DIST = [graphics/xsane:xsane-0.999.tar.gz] FULLPKGNAME = xsane-0.999p7-gimp RDEPENDS = [devel/desktop-file-utils;x11/gtk+2;graphics/sane-backends;graphics/gimp/stable;devel/xdg-utils;graphics/lcms] (Junk lock obtained for localhost at 1779880459.12) >>> Running depends in graphics/xsane,gimp at 1779880459.15 last junk was in x11/gnome/localsearch /usr/sbin/pkg_add -aI -Drepair gimp-2.10.38p8 gtk+2-2.24.33p8 lcms-1.19p3 sane-backends-1.4.0p2 was: /usr/sbin/pkg_add -aI -Drepair gimp-2.10.38p8 gmake-4.4.1p0 gtk+2-2.24.33p8 lcms-1.19p3 sane-backends-1.4.0p2 /usr/sbin/pkg_add -aI -Drepair gimp-2.10.38p8 gtk+2-2.24.33p8 lcms-1.19p3 sane-backends-1.4.0p2 >>> Running show-prepare-results in graphics/xsane,gimp at 1779880527.47 ===> graphics/xsane,gimp ===> Building from scratch xsane-0.999p7-gimp ===> xsane-0.999p7-gimp depends on: gmake-* -> gmake-4.4.1p0 ===> xsane-0.999p7-gimp depends on: gtk+2-* -> gtk+2-2.24.33p8 ===> xsane-0.999p7-gimp depends on: lcms-* -> lcms-1.19p3 ===> xsane-0.999p7-gimp depends on: sane-backends-* -> sane-backends-1.4.0p2 ===> xsane-0.999p7-gimp depends on: gimp->=2,<2.99 -> gimp-2.10.38p8 ===> Verifying specs: X11 Xcomposite Xcursor Xdamage Xext Xfixes Xi Xinerama Xrandr Xrender atk-1.0 c cairo fontconfig freetype gdk-x11-2.0 gdk_pixbuf-2.0 gio-2.0 glib-2.0 gobject-2.0 gtk-x11-2.0 intl jpeg lcms m pango-1.0 pangocairo-1.0 pangoft2-1.0 png sane tiff z harfbuzz gimp-2.0 gimpbase-2.0 gimpcolor-2.0 gimpconfig-2.0 gimpmath-2.0 gimpmodule-2.0 gimpui-2.0 gimpwidgets-2.0 babl-0.1 gegl-0.4 gmodule-2.0 json-glib-1.0 pthread ===> found X11.19.0 Xcomposite.4.0 Xcursor.5.1 Xdamage.4.0 Xext.13.0 Xfixes.6.1 Xi.12.2 Xinerama.6.0 Xrandr.7.1 Xrender.6.0 atk-1.0.21810.5 c.103.0 cairo.13.5 fontconfig.14.1 freetype.31.1 gdk-x11-2.0.2400.0 gdk_pixbuf-2.0.3200.3 gio-2.0.4200.23 glib-2.0.4201.16 gobject-2.0.4200.23 gtk-x11-2.0.2400.0 intl.8.2 jpeg.71.0 lcms.2.0 m.10.1 pango-1.0.3801.7 pangocairo-1.0.3801.4 pangoft2-1.0.3801.4 png.18.2 sane.2.4 tiff.42.2 z.7.2 harfbuzz.19.0 gimp-2.0.275.0 gimpbase-2.0.275.0 gimpcolor-2.0.275.0 gimpconfig-2.0.275.0 gimpmath-2.0.275.0 gimpmodule-2.0.275.0 gimpui-2.0.275.0 gimpwidgets-2.0.275.0 babl-0.1.1.8 gegl-0.4.0.5 gmodule-2.0.4200.23 json-glib-1.0.6.2 pthread.28.1 gimp-2.10.38p8 gmake-4.4.1p0 gtk+2-2.24.33p8 lcms-1.19p3 sane-backends-1.4.0p2 Don't run junk because nojunk in graphics/yacreader (Junk lock released for localhost at 1779880532.22) distfiles size=2950621 >>> Running build in graphics/xsane,gimp at 1779880532.26 ===> graphics/xsane,gimp ===> Checking files for xsane-0.999p7-gimp `/usr/ports/distfiles/xsane-0.999.tar.gz' is up to date. >> (SHA256) all files: OK ===> Extracting for xsane-0.999p7-gimp ===> Patching for xsane-0.999p7-gimp ===> Applying OpenBSD patch patch-lib_getopt_c Hmm... Looks like a unified diff to me... The text leading up to this was: -------------------------- |warning: implicit declaration of function 'getpid' |warning: implicit declaration of function 'strlen' |warning: implicit declaration of function 'strcmp' |warning: implicit declaration of function 'strncmp' | |--- lib/getopt.c.orig Wed Mar 3 00:14:45 1999 |+++ lib/getopt.c Sat May 2 14:49:21 2015 -------------------------- Patching file lib/getopt.c using Plan A... Hunk #1 succeeded at 30. done ===> Applying OpenBSD patch patch-src_xsane-save_c Hmm... Looks like a unified diff to me... The text leading up to this was: -------------------------- |Fix build with png-1.5. | |--- src/xsane-save.c.orig Wed Jul 6 11:21:42 2011 |+++ src/xsane-save.c Wed Jul 6 11:22:16 2011 -------------------------- Patching file src/xsane-save.c using Plan A... Hunk #1 succeeded at 4910. Hunk #2 succeeded at 5100. done ===> Applying OpenBSD patch patch-src_xsane_c Hmm... Looks like a unified diff to me... The text leading up to this was: -------------------------- |overlapping memcpy | |--- src/xsane.c.orig Tue Nov 16 21:57:51 2010 |+++ src/xsane.c Thu Dec 4 13:54:42 2014 -------------------------- Patching file src/xsane.c using Plan A... Hunk #1 succeeded at 4892. Hunk #2 succeeded at 4993. done ===> Applying OpenBSD patch patch-src_xsane_h Hmm... Looks like a unified diff to me... The text leading up to this was: -------------------------- |--- src/xsane.h.orig Fri Nov 30 19:07:34 2007 |+++ src/xsane.h Thu Apr 16 23:59:53 2009 -------------------------- Patching file src/xsane.h using Plan A... Hunk #1 succeeded at 251. done ===> Compiler link: clang -> /usr/bin/clang ===> Compiler link: clang++ -> /usr/bin/clang++ ===> Compiler link: cc -> /usr/bin/cc ===> Compiler link: c++ -> /usr/bin/c++ ===> Generating configure for xsane-0.999p7-gimp ===> Configuring for xsane-0.999p7-gimp Using /usr/obj/ports/xsane-0.999-gimp/config.site (generated) configure: WARNING: unrecognized options: --disable-silent-rules, --disable-gtk-doc configure: loading site script /usr/obj/ports/xsane-0.999-gimp/config.site ************************************************************************** checking whether GTK+-2.0 is requested... yes checking whether GIMP plugin is requested... yes checking whether GIMP-2.0 is requested... yes checking whether JPEG support is requested... yes checking whether PNG support is requested... yes checking whether TIFF support is requested... yes checking whether LCMS (color management) support is requested... yes ************************************************************************** checking for gcc... cc checking whether the C compiler works... yes checking for C compiler default output file name... a.out checking for suffix of executables... checking whether we are cross compiling... no checking for suffix of object files... (cached) o checking whether we are using the GNU C compiler... (cached) yes checking whether cc accepts -g... (cached) yes checking for cc option to accept ISO C89... none needed checking how to run the C preprocessor... cc -E checking for grep that handles long lines and -e... (cached) /usr/bin/grep checking for egrep... (cached) /usr/bin/egrep checking for ANSI C header files... (cached) yes checking for sys/types.h... (cached) yes checking for sys/stat.h... (cached) yes checking for stdlib.h... (cached) yes checking for string.h... (cached) yes checking for memory.h... (cached) yes checking for strings.h... (cached) yes checking for inttypes.h... (cached) yes checking for stdint.h... (cached) yes checking for unistd.h... (cached) yes checking minix/config.h usability... no checking minix/config.h presence... no checking for minix/config.h... no checking whether it is safe to define __EXTENSIONS__... yes checking for library containing strerror... none required checking for gcc... (cached) cc checking whether we are using the GNU C compiler... (cached) yes checking whether cc accepts -g... (cached) yes checking for cc option to accept ISO C89... (cached) none needed checking for a BSD-compatible install... /usr/obj/ports/xsane-0.999-gimp/bin/install -c checking whether gmake sets $(MAKE)... yes checking how to run the C preprocessor... cc -E checking whether cc needs -traditional... no checking windows.h usability... no checking windows.h presence... no checking for windows.h... no checking for ANSI C header files... (cached) yes checking for windows.h... (cached) no checking os2.h usability... no checking os2.h presence... no checking for os2.h... no checking for fcntl.h... (cached) yes checking for unistd.h... (cached) yes checking libc.h usability... no checking libc.h presence... no checking for libc.h... no checking for sys/time.h... (cached) yes checking for sys/types.h... (cached) yes checking for zlib.h... (cached) yes checking for an ANSI C-conforming const... (cached) yes checking for inline... inline checking return type of signal handlers... (cached) void checking for size_t... (cached) yes checking for pid_t... (cached) yes checking for ssize_t... (cached) yes checking for u_char... yes checking for u_int... yes checking for u_long... yes checking for sqrt in -lm... (cached) yes checking for deflateInit_ in -lz... yes checking for jpeg_start_decompress in -ljpeg... yes checking for TIFFOpen in -ltiff... yes checking for cmsOpenProfileFromFile in -llcms... yes checking for working alloca.h... (cached) no checking for alloca... (cached) yes checking for stdlib.h... (cached) yes checking for unistd.h... (cached) yes checking for sys/param.h... (cached) yes checking for getpagesize... (cached) yes checking for working mmap... (cached) yes checking for atexit... (cached) yes checking for mkdir... (cached) yes checking for sigprocmask... (cached) yes checking for strdup... (cached) yes checking for strndup... yes checking for strftime... (cached) yes checking for strstr... (cached) yes checking for strsep... (cached) yes checking for strtod... (cached) yes checking for snprintf... (cached) yes checking for usleep... (cached) yes checking for strcasecmp... (cached) yes checking for strncasecmp... (cached) yes checking for lstat... (cached) yes checking for ranlib... (cached) ranlib checking for off_t... (cached) yes checking argz.h usability... no checking argz.h presence... no checking for argz.h... no checking for limits.h... (cached) yes checking for locale.h... (cached) yes checking for nl_types.h... (cached) yes checking for malloc.h... (cached) no checking for string.h... (cached) yes checking for unistd.h... (cached) yes checking for values.h... (cached) no checking for sys/param.h... (cached) yes checking for getcwd... (cached) yes checking for munmap... (cached) yes checking for putenv... (cached) yes checking for setenv... (cached) yes checking for setlocale... (cached) yes checking for strchr... (cached) yes checking for strcasecmp... (cached) yes checking for __argz_count... no checking for __argz_stringify... no checking for __argz_next... no checking for LC_MESSAGES... yes checking whether NLS is requested... yes checking whether included gettext is requested... no checking libintl.h usability... yes checking libintl.h presence... yes checking for libintl.h... yes checking for gettext in libc... no checking for bindtextdomain in -lintl... yes checking for gettext in libintl... no checking whether catgets can be used... no checking for msgfmt... /usr/obj/ports/xsane-0.999-gimp/bin/msgfmt checking for gmsgfmt... /usr/obj/ports/xsane-0.999-gimp/bin/msgfmt checking for xgettext... /usr/obj/ports/xsane-0.999-gimp/bin/xgettext found xgettext programs is not GNU xgettext; ignore it checking for catalogs to be installed... ca cs da de es fi fr hu it ja nl pa pl pt pt_BR ro ru sk sl sr sv vi tr zh zh_CN checking for sane-config... /usr/local/bin/sane-config checking for SANE - version >= 1.0.0... yes checking for pkg-config... /usr/bin/pkg-config checking for GIMP - version >= 1.3.23... yes (version 2.10.38) checking png.h usability... yes checking png.h presence... yes checking for png.h... yes checking for png_create_info_struct in -lpng... yes configure: creating ./config.status config.status: creating Makefile config.status: WARNING: 'Makefile.in' seems to ignore the --datarootdir setting config.status: creating intl/Makefile config.status: WARNING: 'intl/Makefile.in' seems to ignore the --datarootdir setting config.status: creating po/Makefile config.status: creating lib/Makefile config.status: WARNING: 'lib/Makefile.in' seems to ignore the --datarootdir setting config.status: creating src/Makefile config.status: WARNING: 'src/Makefile.in' seems to ignore the --datarootdir setting config.status: creating include/Makefile config.status: creating doc/Makefile config.status: WARNING: 'doc/Makefile.in' seems to ignore the --datarootdir setting config.status: creating xsane.spec config.status: creating include/config.h config.status: linking intl/libgettext.h to intl/libintl.h configure: WARNING: unrecognized options: --disable-silent-rules, --disable-gtk-doc **************************************************************** * * * XSANE configure status: * * ----------------------- * * - NLS activated (package internal) * * - GIMP plugin activated * * - JPEG support activated * * - TIFF support activated * * - PNG support activated * * - LCMS (color management) support activated * * * **************************************************************** * * * To compile XSANE: * * ----------------- * * make * * make install * * * * ------------------------------------------------------------ * * ... PLEASE READ SANE DOCUMENTATION BEFORE STARTING XSANE ... * * ------------------------------------------------------------ * **************************************************************** NEWS: Due to changes in the configuration file routines you have to enter some data in preferences->setup. In general there is nothing special you have to care about to get xsane to work. Read xsane.CHANGES if you are interested in details of what has changed. If you experience any problems after you upgraded xsane it may help to remove the setup and preferences files of xsane: rm -rf ~/.sane/xsane ===> Building for xsane-0.999p7-gimp for subdir in lib intl src po doc; do \ target=`echo all-recursive | sed s/-recursive//`; \ echo making $target in $subdir; \ (cd $subdir && gmake $target) \ || case "" in *k*) fail=yes;; *) exit 1;; esac; \ done && test -z "$fail" making all in lib gmake[1]: Entering directory '/usr/obj/ports/xsane-0.999-gimp/xsane-0.999/lib' cc -c -DHAVE_CONFIG_H -I. -I. -I../include/sane -I../include -I/usr/local/include -D_GNU_SOURCE -I../intl -DV_MAJOR=0 -DV_MINOR=999 -DSANE_V_MAJOR=1 -O2 -pipe -Wall alloca.c cc -c -DHAVE_CONFIG_H -I. -I. -I../include/sane -I../include -I/usr/local/include -D_GNU_SOURCE -I../intl -DV_MAJOR=0 -DV_MINOR=999 -DSANE_V_MAJOR=1 -O2 -pipe -Wall getopt.c In file included from getopt.c:106: ../include/getopt.h:104:12: warning: a function declaration without a prototype is deprecated in all versions of C and is treated as a zero-parameter prototype in C23, conflicting with a previous declaration [-Wdeprecated-non-prototype] 104 | extern int getopt (); | ^ /usr/include/unistd.h:389:6: note: conflicting prototype is here 389 | int getopt(int, char * const *, const char *); | ^ getopt.c:203:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 203 | my_index (str, chr) | ^ getopt.c:259:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 259 | exchange (argv) | ^ getopt.c:320:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 320 | _getopt_initialize (optstring) | ^ getopt.c:331:28: warning: passing arguments to 'getenv' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 331 | posixly_correct = getenv ("POSIXLY_CORRECT"); | ^ getopt.c:358:32: warning: passing arguments to 'getenv' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 358 | nonoption_flags = getenv (var); | ^ getopt.c:425:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 425 | _getopt_internal (argc, argv, optstring, longopts, longind, long_only) | ^ getopt.c:612:7: warning: add explicit braces to avoid dangling else [-Wdangling-else] 612 | else | ^ getopt.c:751:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 751 | getopt (argc, argv, optstring) | ^ In file included from getopt.c:106: ../include/getopt.h:104:12: warning: a function declaration without a prototype is deprecated in all versions of C and is treated as a zero-parameter prototype in C23, conflicting with a subsequent definition [-Wdeprecated-non-prototype] 104 | extern int getopt (); | ^ 10 warnings generated. cc -c -DHAVE_CONFIG_H -I. -I. -I../include/sane -I../include -I/usr/local/include -D_GNU_SOURCE -I../intl -DV_MAJOR=0 -DV_MINOR=999 -DSANE_V_MAJOR=1 -O2 -pipe -Wall getopt1.c getopt1.c:59:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 59 | getopt_long (argc, argv, options, long_options, opt_index) | ^ getopt1.c:75:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 75 | getopt_long_only (argc, argv, options, long_options, opt_index) | ^ 2 warnings generated. cc -c -DHAVE_CONFIG_H -I. -I. -I../include/sane -I../include -I/usr/local/include -D_GNU_SOURCE -I../intl -DV_MAJOR=0 -DV_MINOR=999 -DSANE_V_MAJOR=1 -O2 -pipe -Wall strndup.c cc -c -DHAVE_CONFIG_H -I. -I. -I../include/sane -I../include -I/usr/local/include -D_GNU_SOURCE -I../intl -DV_MAJOR=0 -DV_MINOR=999 -DSANE_V_MAJOR=1 -O2 -pipe -Wall strdup.c cc -c -DHAVE_CONFIG_H -I. -I. -I../include/sane -I../include -I/usr/local/include -D_GNU_SOURCE -I../intl -DV_MAJOR=0 -DV_MINOR=999 -DSANE_V_MAJOR=1 -O2 -pipe -Wall strsep.c cc -c -DHAVE_CONFIG_H -I. -I. -I../include/sane -I../include -I/usr/local/include -D_GNU_SOURCE -I../intl -DV_MAJOR=0 -DV_MINOR=999 -DSANE_V_MAJOR=1 -O2 -pipe -Wall snprintf.c cc -c -DHAVE_CONFIG_H -I. -I. -I../include/sane -I../include -I/usr/local/include -D_GNU_SOURCE -I../intl -DV_MAJOR=0 -DV_MINOR=999 -DSANE_V_MAJOR=1 -O2 -pipe -Wall usleep.c cc -c -DHAVE_CONFIG_H -I. -I. -I../include/sane -I../include -I/usr/local/include -D_GNU_SOURCE -I../intl -DV_MAJOR=0 -DV_MINOR=999 -DSANE_V_MAJOR=1 -O2 -pipe -Wall md5.c md5.c:63:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 63 | md5_init_ctx (ctx) | ^ md5.c:81:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 81 | md5_read_ctx (ctx, resbuf) | ^ md5.c:99:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 99 | md5_finish_ctx (ctx, resbuf) | ^ md5.c:130:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 130 | md5_stream (stream, resblock) | ^ md5.c:187:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 187 | md5_buffer (buffer, len, resblock) | ^ md5.c:206:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 206 | md5_process_bytes (buffer, len, ctx) | ^ md5.c:264:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 264 | md5_process_block (buffer, len, ctx) | ^ 7 warnings generated. ar r liblib.a alloca.o getopt.o getopt1.o strndup.o strdup.o strsep.o snprintf.o usleep.o md5.o ar: warning: creating liblib.a ranlib liblib.a gmake[1]: Leaving directory '/usr/obj/ports/xsane-0.999-gimp/xsane-0.999/lib' making all in intl gmake[1]: Entering directory '/usr/obj/ports/xsane-0.999-gimp/xsane-0.999/intl' cc -c -DLOCALEDIR=\"/usr/local/share/locale\" -DGNULOCALEDIR=\"/usr/local/share/locale\" -DLOCALE_ALIAS_PATH=\"/usr/local/share/locale:.\" -DHAVE_CONFIG_H -I.. -I. -I../intl -I../lib -I../include -I/usr/local/include -D_GNU_SOURCE -I../intl -DV_MAJOR=0 -DV_MINOR=999 -DSANE_V_MAJOR=1 -O2 -pipe -Wall bindtextdom.c In file included from bindtextdom.c:47: ./gettextP.h:50:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 50 | SWAP (i) | ^ bindtextdom.c:74:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 74 | BINDTEXTDOMAIN (domainname, dirname) | ^ bindtextdom.c:68:25: note: expanded from macro 'BINDTEXTDOMAIN' 68 | # define BINDTEXTDOMAIN bindtextdomain__ | ^ 2 warnings generated. cc -c -DLOCALEDIR=\"/usr/local/share/locale\" -DGNULOCALEDIR=\"/usr/local/share/locale\" -DLOCALE_ALIAS_PATH=\"/usr/local/share/locale:.\" -DHAVE_CONFIG_H -I.. -I. -I../intl -I../lib -I../include -I/usr/local/include -D_GNU_SOURCE -I../intl -DV_MAJOR=0 -DV_MINOR=999 -DSANE_V_MAJOR=1 -O2 -pipe -Wall dcgettext.c In file included from dcgettext.c:79: ./gettextP.h:50:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 50 | SWAP (i) | ^ In file included from dcgettext.c:85: ./hash-string.h:39:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 39 | hash_string (str_param) | ^ dcgettext.c:102:7: warning: a function declaration without a prototype is deprecated in all versions of C and is treated as a zero-parameter prototype in C23, conflicting with a previous declaration [-Wdeprecated-non-prototype] 102 | char *getcwd (); | ^ /usr/include/unistd.h:345:7: note: conflicting prototype is here 345 | char *getcwd(char *, size_t) | ^ dcgettext.c:223:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 223 | DCGETTEXT (domainname, msgid, category) | ^ dcgettext.c:217:20: note: expanded from macro 'DCGETTEXT' 217 | # define DCGETTEXT dcgettext__ | ^ dcgettext.c:395:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 395 | find_msg (domain_file, msgid) | ^ dcgettext.c:484:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 484 | category_to_name (category) | ^ dcgettext.c:544:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 544 | guess_category_value (category, categoryname) | ^ 7 warnings generated. cc -c -DLOCALEDIR=\"/usr/local/share/locale\" -DGNULOCALEDIR=\"/usr/local/share/locale\" -DLOCALE_ALIAS_PATH=\"/usr/local/share/locale:.\" -DHAVE_CONFIG_H -I.. -I. -I../intl -I../lib -I../include -I/usr/local/include -D_GNU_SOURCE -I../intl -DV_MAJOR=0 -DV_MINOR=999 -DSANE_V_MAJOR=1 -O2 -pipe -Wall dgettext.c dgettext.c:49:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 49 | DGETTEXT (domainname, msgid) | ^ dgettext.c:42:19: note: expanded from macro 'DGETTEXT' 42 | # define DGETTEXT dgettext__ | ^ 1 warning generated. cc -c -DLOCALEDIR=\"/usr/local/share/locale\" -DGNULOCALEDIR=\"/usr/local/share/locale\" -DLOCALE_ALIAS_PATH=\"/usr/local/share/locale:.\" -DHAVE_CONFIG_H -I.. -I. -I../intl -I../lib -I../include -I/usr/local/include -D_GNU_SOURCE -I../intl -DV_MAJOR=0 -DV_MINOR=999 -DSANE_V_MAJOR=1 -O2 -pipe -Wall gettext.c gettext.c:61:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 61 | GETTEXT (msgid) | ^ gettext.c:53:18: note: expanded from macro 'GETTEXT' 53 | # define GETTEXT gettext__ | ^ 1 warning generated. cc -c -DLOCALEDIR=\"/usr/local/share/locale\" -DGNULOCALEDIR=\"/usr/local/share/locale\" -DLOCALE_ALIAS_PATH=\"/usr/local/share/locale:.\" -DHAVE_CONFIG_H -I.. -I. -I../intl -I../lib -I../include -I/usr/local/include -D_GNU_SOURCE -I../intl -DV_MAJOR=0 -DV_MINOR=999 -DSANE_V_MAJOR=1 -O2 -pipe -Wall finddomain.c In file included from finddomain.c:57: ./gettextP.h:50:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 50 | SWAP (i) | ^ finddomain.c:74:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 74 | _nl_find_domain (dirname, locale, domainname) | ^ 2 warnings generated. cc -c -DLOCALEDIR=\"/usr/local/share/locale\" -DGNULOCALEDIR=\"/usr/local/share/locale\" -DLOCALE_ALIAS_PATH=\"/usr/local/share/locale:.\" -DHAVE_CONFIG_H -I.. -I. -I../intl -I../lib -I../include -I/usr/local/include -D_GNU_SOURCE -I../intl -DV_MAJOR=0 -DV_MINOR=999 -DSANE_V_MAJOR=1 -O2 -pipe -Wall loadmsgcat.c In file included from loadmsgcat.c:39: ./gettextP.h:50:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 50 | SWAP (i) | ^ loadmsgcat.c:64:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 64 | _nl_load_domain (domain_file) | ^ 2 warnings generated. cc -c -DLOCALEDIR=\"/usr/local/share/locale\" -DGNULOCALEDIR=\"/usr/local/share/locale\" -DLOCALE_ALIAS_PATH=\"/usr/local/share/locale:.\" -DHAVE_CONFIG_H -I.. -I. -I../intl -I../lib -I../include -I/usr/local/include -D_GNU_SOURCE -I../intl -DV_MAJOR=0 -DV_MINOR=999 -DSANE_V_MAJOR=1 -O2 -pipe -Wall localealias.c In file included from localealias.c:73: ./gettextP.h:50:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 50 | SWAP (i) | ^ localealias.c:153:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 153 | _nl_expand_alias (name) | ^ localealias.c:216:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 216 | read_alias_file (fname, fname_len) | ^ localealias.c:395:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 395 | alias_compare (map1, map2) | ^ 4 warnings generated. cc -c -DLOCALEDIR=\"/usr/local/share/locale\" -DGNULOCALEDIR=\"/usr/local/share/locale\" -DLOCALE_ALIAS_PATH=\"/usr/local/share/locale:.\" -DHAVE_CONFIG_H -I.. -I. -I../intl -I../lib -I../include -I/usr/local/include -D_GNU_SOURCE -I../intl -DV_MAJOR=0 -DV_MINOR=999 -DSANE_V_MAJOR=1 -O2 -pipe -Wall textdomain.c textdomain.c:68:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 68 | TEXTDOMAIN (domainname) | ^ textdomain.c:61:21: note: expanded from macro 'TEXTDOMAIN' 61 | # define TEXTDOMAIN textdomain__ | ^ 1 warning generated. cc -c -DLOCALEDIR=\"/usr/local/share/locale\" -DGNULOCALEDIR=\"/usr/local/share/locale\" -DLOCALE_ALIAS_PATH=\"/usr/local/share/locale:.\" -DHAVE_CONFIG_H -I.. -I. -I../intl -I../lib -I../include -I/usr/local/include -D_GNU_SOURCE -I../intl -DV_MAJOR=0 -DV_MINOR=999 -DSANE_V_MAJOR=1 -O2 -pipe -Wall l10nflist.c l10nflist.c:84:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 84 | argz_count__ (argz, len) | ^ l10nflist.c:108:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 108 | argz_stringify__ (argz, len, sep) | ^ l10nflist.c:131:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 131 | argz_next__ (argz, argz_len, entry) | ^ l10nflist.c:158:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 158 | pop (x) | ^ l10nflist.c:172:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 172 | _nl_make_l10nflist (l10nfile_list, dirlist, dirlist_len, mask, language, | ^ l10nflist.c:354:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 354 | _nl_normalize_codeset (codeset, name_len) | ^ 6 warnings generated. cc -c -DLOCALEDIR=\"/usr/local/share/locale\" -DGNULOCALEDIR=\"/usr/local/share/locale\" -DLOCALE_ALIAS_PATH=\"/usr/local/share/locale:.\" -DHAVE_CONFIG_H -I.. -I. -I../intl -I../lib -I../include -I/usr/local/include -D_GNU_SOURCE -I../intl -DV_MAJOR=0 -DV_MINOR=999 -DSANE_V_MAJOR=1 -O2 -pipe -Wall explodename.c explodename.c:47:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 47 | _nl_explode_name (name, language, modifier, territory, codeset, | ^ 1 warning generated. rm -f libintl.a ar cru libintl.a bindtextdom.o dcgettext.o dgettext.o gettext.o finddomain.o loadmsgcat.o localealias.o textdomain.o l10nflist.o explodename.o ranlib libintl.a gmake[1]: Leaving directory '/usr/obj/ports/xsane-0.999-gimp/xsane-0.999/intl' making all in src gmake[1]: Entering directory '/usr/obj/ports/xsane-0.999-gimp/xsane-0.999/src' cc -c -DHAVE_CONFIG_H -DLOCALEDIR=/usr/local/share/locale -DSANELOCALEDIR=/usr/local/share/locale -I. -I. -I../include -I../include -I/usr/local/include -I/usr/local/include -D_GNU_SOURCE -I../intl -DV_MAJOR=0 -DV_MINOR=999 -DSANE_V_MAJOR=1 -DPATH_XSANE_DOC_DIR=/usr/local/share/doc/xsane/ -DPATH_SANE_DATA_DIR=/usr/local/share/ -O2 -pipe -Wall -I/usr/local/include -I/usr/local/include/gimp-2.0 -I/usr/local/include/gegl-0.4 -I/usr/local/include -I/usr/local/include/json-glib-1.0 -I/usr/local/include/babl-0.1 -I/usr/local/include/gtk-2.0 -I/usr/local/lib/gtk-2.0/include -I/usr/local/include/pango-1.0 -I/usr/local/include/gio-unix-2.0 -I/usr/X11R6/include -I/usr/local/include/atk-1.0 -I/usr/local/include/gdk-pixbuf-2.0 -pthread -I/usr/local/include/fribidi -I/usr/local/include/cairo -I/usr/local/include/libpng16 -I/usr/X11R6/include/pixman-1 -I/usr/local/include/harfbuzz -I/usr/X11R6/include/freetype2 -I/usr/local/include/glib-2.0 -I/usr/local/lib/glib-2.0/include xsane-back-gtk.c In file included from xsane-back-gtk.c:25: In file included from ./xsane.h:45: ../include/getopt.h:104:12: warning: a function declaration without a prototype is deprecated in all versions of C and is treated as a zero-parameter prototype in C23, conflicting with a subsequent declaration [-Wdeprecated-non-prototype] 104 | extern int getopt (); | ^ /usr/include/unistd.h:389:6: note: conflicting prototype is here 389 | int getopt(int, char * const *, const char *); | ^ In file included from xsane-back-gtk.c:25: In file included from ./xsane.h:70: In file included from /usr/local/include/gtk-2.0/gtk/gtk.h:33: In file included from /usr/local/include/gtk-2.0/gtk/gtkaboutdialog.h:32: In file included from /usr/local/include/gtk-2.0/gtk/gtkdialog.h:35: In file included from /usr/local/include/gtk-2.0/gtk/gtkwindow.h:36: In file included from /usr/local/include/gtk-2.0/gtk/gtkbin.h:35: In file included from /usr/local/include/gtk-2.0/gtk/gtkcontainer.h:35: In file included from /usr/local/include/gtk-2.0/gtk/gtkwidget.h:36: In file included from /usr/local/include/gtk-2.0/gtk/gtkobject.h:37: /usr/local/include/gtk-2.0/gtk/gtktypeutils.h:236:34: warning: 'GTypeDebugFlags' is deprecated [-Wdeprecated-declarations] 236 | void gtk_type_init (GTypeDebugFlags debug_flags); | ^ /usr/local/include/glib-2.0/gobject/gtype.h:731:36: note: 'GTypeDebugFlags' has been explicitly marked deprecated here 731 | } G_GNUC_FLAG_ENUM GTypeDebugFlags GOBJECT_DEPRECATED_TYPE_IN_2_36; | ^ /usr/local/include/glib-2.0/gobject/gobject-visibility.h:213:41: note: expanded from macro 'GOBJECT_DEPRECATED_TYPE_IN_2_36' 213 | #define GOBJECT_DEPRECATED_TYPE_IN_2_36 GLIB_DEPRECATED_TYPE | ^ /usr/local/include/glib-2.0/glib/gmacros.h:1364:30: note: expanded from macro 'GLIB_DEPRECATED_TYPE' 1364 | #define GLIB_DEPRECATED_TYPE G_DEPRECATED | ^ /usr/local/include/glib-2.0/glib/gmacros.h:1303:37: note: expanded from macro 'G_DEPRECATED' 1303 | #define G_DEPRECATED __attribute__((__deprecated__)) | ^ In file included from xsane-back-gtk.c:25: In file included from ./xsane.h:70: In file included from /usr/local/include/gtk-2.0/gtk/gtk.h:126: In file included from /usr/local/include/gtk-2.0/gtk/gtkmenutoolbutton.h:30: In file included from /usr/local/include/gtk-2.0/gtk/gtktoolbutton.h:30: In file included from /usr/local/include/gtk-2.0/gtk/gtktoolitem.h:31: /usr/local/include/gtk-2.0/gtk/gtktooltips.h:73:3: warning: 'GTimeVal' is deprecated: Use 'GDateTime' instead [-Wdeprecated-declarations] 73 | GTimeVal last_popdown; | ^ /usr/local/include/glib-2.0/glib/gtypes.h:620:35: note: 'GTimeVal' has been explicitly marked deprecated here 620 | typedef struct _GTimeVal GTimeVal GLIB_DEPRECATED_TYPE_IN_2_62_FOR(GDateTime); | ^ /usr/local/include/glib-2.0/glib/glib-visibility.h:656:45: note: expanded from macro 'GLIB_DEPRECATED_TYPE_IN_2_62_FOR' 656 | #define GLIB_DEPRECATED_TYPE_IN_2_62_FOR(f) GLIB_DEPRECATED_TYPE_FOR (f) | ^ /usr/local/include/glib-2.0/glib/gmacros.h:1365:37: note: expanded from macro 'GLIB_DEPRECATED_TYPE_FOR' 1365 | #define GLIB_DEPRECATED_TYPE_FOR(f) G_DEPRECATED_FOR(f) | ^ /usr/local/include/glib-2.0/glib/gmacros.h:1313:44: note: expanded from macro 'G_DEPRECATED_FOR' 1313 | #define G_DEPRECATED_FOR(f) __attribute__((__deprecated__("Use '" #f "' instead"))) | ^ xsane-back-gtk.c:1836:32: warning: variable 'opt' set but not used [-Wunused-but-set-variable] 1836 | const SANE_Option_Descriptor *opt; | ^ xsane-back-gtk.c:1971:15: warning: cast to smaller integer type 'int' from 'gpointer' (aka 'void *') [-Wvoid-pointer-to-int-cast] 1971 | int digits = (int) data; | ^~~~~~~~~~ xsane-back-gtk.c:2019:118: warning: cast to 'void *' from smaller integer type 'int' [-Wint-to-void-pointer-cast] 2019 | g_signal_connect(elem->data, "value_changed", (GtkSignalFunc) xsane_back_gtk_range_display_value_right_callback, (void *) digits); | ^~~~~~~~~~~~~~~ /usr/local/include/glib-2.0/gobject/gsignal.h:549:73: note: expanded from macro 'g_signal_connect' 549 | g_signal_connect_data ((instance), (detailed_signal), (c_handler), (data), NULL, (GConnectFlags) 0) | ^~~~ 6 warnings generated. cc -c -DHAVE_CONFIG_H -DLOCALEDIR=/usr/local/share/locale -DSANELOCALEDIR=/usr/local/share/locale -I. -I. -I../include -I../include -I/usr/local/include -I/usr/local/include -D_GNU_SOURCE -I../intl -DV_MAJOR=0 -DV_MINOR=999 -DSANE_V_MAJOR=1 -DPATH_XSANE_DOC_DIR=/usr/local/share/doc/xsane/ -DPATH_SANE_DATA_DIR=/usr/local/share/ -O2 -pipe -Wall -I/usr/local/include -I/usr/local/include/gimp-2.0 -I/usr/local/include/gegl-0.4 -I/usr/local/include -I/usr/local/include/json-glib-1.0 -I/usr/local/include/babl-0.1 -I/usr/local/include/gtk-2.0 -I/usr/local/lib/gtk-2.0/include -I/usr/local/include/pango-1.0 -I/usr/local/include/gio-unix-2.0 -I/usr/X11R6/include -I/usr/local/include/atk-1.0 -I/usr/local/include/gdk-pixbuf-2.0 -pthread -I/usr/local/include/fribidi -I/usr/local/include/cairo -I/usr/local/include/libpng16 -I/usr/X11R6/include/pixman-1 -I/usr/local/include/harfbuzz -I/usr/X11R6/include/freetype2 -I/usr/local/include/glib-2.0 -I/usr/local/lib/glib-2.0/include xsane-front-gtk.c In file included from xsane-front-gtk.c:25: In file included from ./xsane.h:45: ../include/getopt.h:104:12: warning: a function declaration without a prototype is deprecated in all versions of C and is treated as a zero-parameter prototype in C23, conflicting with a subsequent declaration [-Wdeprecated-non-prototype] 104 | extern int getopt (); | ^ /usr/include/unistd.h:389:6: note: conflicting prototype is here 389 | int getopt(int, char * const *, const char *); | ^ In file included from xsane-front-gtk.c:25: In file included from ./xsane.h:70: In file included from /usr/local/include/gtk-2.0/gtk/gtk.h:33: In file included from /usr/local/include/gtk-2.0/gtk/gtkaboutdialog.h:32: In file included from /usr/local/include/gtk-2.0/gtk/gtkdialog.h:35: In file included from /usr/local/include/gtk-2.0/gtk/gtkwindow.h:36: In file included from /usr/local/include/gtk-2.0/gtk/gtkbin.h:35: In file included from /usr/local/include/gtk-2.0/gtk/gtkcontainer.h:35: In file included from /usr/local/include/gtk-2.0/gtk/gtkwidget.h:36: In file included from /usr/local/include/gtk-2.0/gtk/gtkobject.h:37: /usr/local/include/gtk-2.0/gtk/gtktypeutils.h:236:34: warning: 'GTypeDebugFlags' is deprecated [-Wdeprecated-declarations] 236 | void gtk_type_init (GTypeDebugFlags debug_flags); | ^ /usr/local/include/glib-2.0/gobject/gtype.h:731:36: note: 'GTypeDebugFlags' has been explicitly marked deprecated here 731 | } G_GNUC_FLAG_ENUM GTypeDebugFlags GOBJECT_DEPRECATED_TYPE_IN_2_36; | ^ /usr/local/include/glib-2.0/gobject/gobject-visibility.h:213:41: note: expanded from macro 'GOBJECT_DEPRECATED_TYPE_IN_2_36' 213 | #define GOBJECT_DEPRECATED_TYPE_IN_2_36 GLIB_DEPRECATED_TYPE | ^ /usr/local/include/glib-2.0/glib/gmacros.h:1364:30: note: expanded from macro 'GLIB_DEPRECATED_TYPE' 1364 | #define GLIB_DEPRECATED_TYPE G_DEPRECATED | ^ /usr/local/include/glib-2.0/glib/gmacros.h:1303:37: note: expanded from macro 'G_DEPRECATED' 1303 | #define G_DEPRECATED __attribute__((__deprecated__)) | ^ In file included from xsane-front-gtk.c:25: In file included from ./xsane.h:70: In file included from /usr/local/include/gtk-2.0/gtk/gtk.h:126: In file included from /usr/local/include/gtk-2.0/gtk/gtkmenutoolbutton.h:30: In file included from /usr/local/include/gtk-2.0/gtk/gtktoolbutton.h:30: In file included from /usr/local/include/gtk-2.0/gtk/gtktoolitem.h:31: /usr/local/include/gtk-2.0/gtk/gtktooltips.h:73:3: warning: 'GTimeVal' is deprecated: Use 'GDateTime' instead [-Wdeprecated-declarations] 73 | GTimeVal last_popdown; | ^ /usr/local/include/glib-2.0/glib/gtypes.h:620:35: note: 'GTimeVal' has been explicitly marked deprecated here 620 | typedef struct _GTimeVal GTimeVal GLIB_DEPRECATED_TYPE_IN_2_62_FOR(GDateTime); | ^ /usr/local/include/glib-2.0/glib/glib-visibility.h:656:45: note: expanded from macro 'GLIB_DEPRECATED_TYPE_IN_2_62_FOR' 656 | #define GLIB_DEPRECATED_TYPE_IN_2_62_FOR(f) GLIB_DEPRECATED_TYPE_FOR (f) | ^ /usr/local/include/glib-2.0/glib/gmacros.h:1365:37: note: expanded from macro 'GLIB_DEPRECATED_TYPE_FOR' 1365 | #define GLIB_DEPRECATED_TYPE_FOR(f) G_DEPRECATED_FOR(f) | ^ /usr/local/include/glib-2.0/glib/gmacros.h:1313:44: note: expanded from macro 'G_DEPRECATED_FOR' 1313 | #define G_DEPRECATED_FOR(f) __attribute__((__deprecated__("Use '" #f "' instead"))) | ^ xsane-front-gtk.c:269:12: warning: using integer absolute value function 'abs' when argument is of floating point type [-Wabsolute-value] 269 | diff = abs(bestdpi - dpi); | ^ xsane-front-gtk.c:269:12: note: use function 'fabs' instead 269 | diff = abs(bestdpi - dpi); | ^~~ | fabs xsane-front-gtk.c:279:11: warning: using integer absolute value function 'abs' when argument is of floating point type [-Wabsolute-value] 279 | if (abs(val - dpi) < diff) | ^ xsane-front-gtk.c:279:11: note: use function 'fabs' instead 279 | if (abs(val - dpi) < diff) | ^~~ | fabs xsane-front-gtk.c:281:16: warning: using integer absolute value function 'abs' when argument is of floating point type [-Wabsolute-value] 281 | diff = abs(val - dpi); | ^ xsane-front-gtk.c:281:16: note: use function 'fabs' instead 281 | diff = abs(val - dpi); | ^~~ | fabs xsane-front-gtk.c:351:6: warning: variable 'printer_resolution' set but not used [-Wunused-but-set-variable] 351 | int printer_resolution; | ^ xsane-front-gtk.c:1110:15: warning: cast to smaller integer type 'int' from 'gpointer' (aka 'void *') [-Wvoid-pointer-to-int-cast] 1110 | int digits = (int) data; | ^~~~~~~~~~ xsane-front-gtk.c:1147:104: warning: cast to 'void *' from smaller integer type 'int' [-Wint-to-void-pointer-cast] 1147 | g_signal_connect(*data, "value_changed", (GtkSignalFunc) xsane_range_display_value_right_callback, (void *) digits); | ^~~~~~~~~~~~~~~ /usr/local/include/glib-2.0/gobject/gsignal.h:549:73: note: expanded from macro 'g_signal_connect' 549 | g_signal_connect_data ((instance), (detailed_signal), (c_handler), (data), NULL, (GConnectFlags) 0) | ^~~~ xsane-front-gtk.c:1239:104: warning: cast to 'void *' from smaller integer type 'int' [-Wint-to-void-pointer-cast] 1239 | g_signal_connect(*data, "value_changed", (GtkSignalFunc) xsane_range_display_value_right_callback, (void *) digits); | ^~~~~~~~~~~~~~~ /usr/local/include/glib-2.0/gobject/gsignal.h:549:73: note: expanded from macro 'g_signal_connect' 549 | g_signal_connect_data ((instance), (detailed_signal), (c_handler), (data), NULL, (GConnectFlags) 0) | ^~~~ xsane-front-gtk.c:1382:39: warning: cast to smaller integer type 'int' from 'gpointer' (aka 'void *') [-Wvoid-pointer-to-int-cast] 1382 | preferences.filename_counter_step = (int) data; | ^~~~~~~~~~ xsane-front-gtk.c:1527:134: warning: cast to 'void *' from smaller integer type 'int' [-Wint-to-void-pointer-cast] 1527 | g_signal_connect(GTK_OBJECT(xsane_filename_counter_step_item), "activate", (GtkSignalFunc) xsane_filename_counter_step_callback, (void *) j); | ^~~~~~~~~~ /usr/local/include/glib-2.0/gobject/gsignal.h:549:73: note: expanded from macro 'g_signal_connect' 549 | g_signal_connect_data ((instance), (detailed_signal), (c_handler), (data), NULL, (GConnectFlags) 0) | ^~~~ xsane-front-gtk.c:1894:22: warning: cast to smaller integer type 'int' from 'gpointer' (aka 'void *') [-Wvoid-pointer-to-int-cast] 1894 | eula_accept_flag = (int) data; | ^~~~~~~~~~ xsane-front-gtk.c:1906:22: warning: cast to smaller integer type 'int' from 'gpointer' (aka 'void *') [-Wvoid-pointer-to-int-cast] 1906 | eula_accept_flag = (int) data; | ^~~~~~~~~~ xsane-front-gtk.c:2413:36: warning: cast to smaller integer type 'int' from 'gpointer' (aka 'void *') [-Wvoid-pointer-to-int-cast] 2413 | xsane_front_gtk_getname_button = (int) data; | ^~~~~~~~~~ 15 warnings generated. cc -c -DHAVE_CONFIG_H -DLOCALEDIR=/usr/local/share/locale -DSANELOCALEDIR=/usr/local/share/locale -I. -I. -I../include -I../include -I/usr/local/include -I/usr/local/include -D_GNU_SOURCE -I../intl -DV_MAJOR=0 -DV_MINOR=999 -DSANE_V_MAJOR=1 -DPATH_XSANE_DOC_DIR=/usr/local/share/doc/xsane/ -DPATH_SANE_DATA_DIR=/usr/local/share/ -O2 -pipe -Wall -I/usr/local/include -I/usr/local/include/gimp-2.0 -I/usr/local/include/gegl-0.4 -I/usr/local/include -I/usr/local/include/json-glib-1.0 -I/usr/local/include/babl-0.1 -I/usr/local/include/gtk-2.0 -I/usr/local/lib/gtk-2.0/include -I/usr/local/include/pango-1.0 -I/usr/local/include/gio-unix-2.0 -I/usr/X11R6/include -I/usr/local/include/atk-1.0 -I/usr/local/include/gdk-pixbuf-2.0 -pthread -I/usr/local/include/fribidi -I/usr/local/include/cairo -I/usr/local/include/libpng16 -I/usr/X11R6/include/pixman-1 -I/usr/local/include/harfbuzz -I/usr/X11R6/include/freetype2 -I/usr/local/include/glib-2.0 -I/usr/local/lib/glib-2.0/include xsane-gamma.c In file included from xsane-gamma.c:25: In file included from ./xsane.h:45: ../include/getopt.h:104:12: warning: a function declaration without a prototype is deprecated in all versions of C and is treated as a zero-parameter prototype in C23, conflicting with a subsequent declaration [-Wdeprecated-non-prototype] 104 | extern int getopt (); | ^ /usr/include/unistd.h:389:6: note: conflicting prototype is here 389 | int getopt(int, char * const *, const char *); | ^ In file included from xsane-gamma.c:25: In file included from ./xsane.h:70: In file included from /usr/local/include/gtk-2.0/gtk/gtk.h:33: In file included from /usr/local/include/gtk-2.0/gtk/gtkaboutdialog.h:32: In file included from /usr/local/include/gtk-2.0/gtk/gtkdialog.h:35: In file included from /usr/local/include/gtk-2.0/gtk/gtkwindow.h:36: In file included from /usr/local/include/gtk-2.0/gtk/gtkbin.h:35: In file included from /usr/local/include/gtk-2.0/gtk/gtkcontainer.h:35: In file included from /usr/local/include/gtk-2.0/gtk/gtkwidget.h:36: In file included from /usr/local/include/gtk-2.0/gtk/gtkobject.h:37: /usr/local/include/gtk-2.0/gtk/gtktypeutils.h:236:34: warning: 'GTypeDebugFlags' is deprecated [-Wdeprecated-declarations] 236 | void gtk_type_init (GTypeDebugFlags debug_flags); | ^ /usr/local/include/glib-2.0/gobject/gtype.h:731:36: note: 'GTypeDebugFlags' has been explicitly marked deprecated here 731 | } G_GNUC_FLAG_ENUM GTypeDebugFlags GOBJECT_DEPRECATED_TYPE_IN_2_36; | ^ /usr/local/include/glib-2.0/gobject/gobject-visibility.h:213:41: note: expanded from macro 'GOBJECT_DEPRECATED_TYPE_IN_2_36' 213 | #define GOBJECT_DEPRECATED_TYPE_IN_2_36 GLIB_DEPRECATED_TYPE | ^ /usr/local/include/glib-2.0/glib/gmacros.h:1364:30: note: expanded from macro 'GLIB_DEPRECATED_TYPE' 1364 | #define GLIB_DEPRECATED_TYPE G_DEPRECATED | ^ /usr/local/include/glib-2.0/glib/gmacros.h:1303:37: note: expanded from macro 'G_DEPRECATED' 1303 | #define G_DEPRECATED __attribute__((__deprecated__)) | ^ In file included from xsane-gamma.c:25: In file included from ./xsane.h:70: In file included from /usr/local/include/gtk-2.0/gtk/gtk.h:126: In file included from /usr/local/include/gtk-2.0/gtk/gtkmenutoolbutton.h:30: In file included from /usr/local/include/gtk-2.0/gtk/gtktoolbutton.h:30: In file included from /usr/local/include/gtk-2.0/gtk/gtktoolitem.h:31: /usr/local/include/gtk-2.0/gtk/gtktooltips.h:73:3: warning: 'GTimeVal' is deprecated: Use 'GDateTime' instead [-Wdeprecated-declarations] 73 | GTimeVal last_popdown; | ^ /usr/local/include/glib-2.0/glib/gtypes.h:620:35: note: 'GTimeVal' has been explicitly marked deprecated here 620 | typedef struct _GTimeVal GTimeVal GLIB_DEPRECATED_TYPE_IN_2_62_FOR(GDateTime); | ^ /usr/local/include/glib-2.0/glib/glib-visibility.h:656:45: note: expanded from macro 'GLIB_DEPRECATED_TYPE_IN_2_62_FOR' 656 | #define GLIB_DEPRECATED_TYPE_IN_2_62_FOR(f) GLIB_DEPRECATED_TYPE_FOR (f) | ^ /usr/local/include/glib-2.0/glib/gmacros.h:1365:37: note: expanded from macro 'GLIB_DEPRECATED_TYPE_FOR' 1365 | #define GLIB_DEPRECATED_TYPE_FOR(f) G_DEPRECATED_FOR(f) | ^ /usr/local/include/glib-2.0/glib/gmacros.h:1313:44: note: expanded from macro 'G_DEPRECATED_FOR' 1313 | #define G_DEPRECATED_FOR(f) __attribute__((__deprecated__("Use '" #f "' instead"))) | ^ xsane-gamma.c:593:18: warning: variable 'motion_event' set but not used [-Wunused-but-set-variable] 593 | GdkEventMotion *motion_event; | ^ 4 warnings generated. cc -c -DHAVE_CONFIG_H -DLOCALEDIR=/usr/local/share/locale -DSANELOCALEDIR=/usr/local/share/locale -I. -I. -I../include -I../include -I/usr/local/include -I/usr/local/include -D_GNU_SOURCE -I../intl -DV_MAJOR=0 -DV_MINOR=999 -DSANE_V_MAJOR=1 -DPATH_XSANE_DOC_DIR=/usr/local/share/doc/xsane/ -DPATH_SANE_DATA_DIR=/usr/local/share/ -O2 -pipe -Wall -I/usr/local/include -I/usr/local/include/gimp-2.0 -I/usr/local/include/gegl-0.4 -I/usr/local/include -I/usr/local/include/json-glib-1.0 -I/usr/local/include/babl-0.1 -I/usr/local/include/gtk-2.0 -I/usr/local/lib/gtk-2.0/include -I/usr/local/include/pango-1.0 -I/usr/local/include/gio-unix-2.0 -I/usr/X11R6/include -I/usr/local/include/atk-1.0 -I/usr/local/include/gdk-pixbuf-2.0 -pthread -I/usr/local/include/fribidi -I/usr/local/include/cairo -I/usr/local/include/libpng16 -I/usr/X11R6/include/pixman-1 -I/usr/local/include/harfbuzz -I/usr/X11R6/include/freetype2 -I/usr/local/include/glib-2.0 -I/usr/local/lib/glib-2.0/include xsane-preview.c In file included from xsane-preview.c:75: In file included from ./xsane.h:45: ../include/getopt.h:104:12: warning: a function declaration without a prototype is deprecated in all versions of C and is treated as a zero-parameter prototype in C23, conflicting with a subsequent declaration [-Wdeprecated-non-prototype] 104 | extern int getopt (); | ^ /usr/include/unistd.h:389:6: note: conflicting prototype is here 389 | int getopt(int, char * const *, const char *); | ^ In file included from xsane-preview.c:75: In file included from ./xsane.h:70: In file included from /usr/local/include/gtk-2.0/gtk/gtk.h:33: In file included from /usr/local/include/gtk-2.0/gtk/gtkaboutdialog.h:32: In file included from /usr/local/include/gtk-2.0/gtk/gtkdialog.h:35: In file included from /usr/local/include/gtk-2.0/gtk/gtkwindow.h:36: In file included from /usr/local/include/gtk-2.0/gtk/gtkbin.h:35: In file included from /usr/local/include/gtk-2.0/gtk/gtkcontainer.h:35: In file included from /usr/local/include/gtk-2.0/gtk/gtkwidget.h:36: In file included from /usr/local/include/gtk-2.0/gtk/gtkobject.h:37: /usr/local/include/gtk-2.0/gtk/gtktypeutils.h:236:34: warning: 'GTypeDebugFlags' is deprecated [-Wdeprecated-declarations] 236 | void gtk_type_init (GTypeDebugFlags debug_flags); | ^ /usr/local/include/glib-2.0/gobject/gtype.h:731:36: note: 'GTypeDebugFlags' has been explicitly marked deprecated here 731 | } G_GNUC_FLAG_ENUM GTypeDebugFlags GOBJECT_DEPRECATED_TYPE_IN_2_36; | ^ /usr/local/include/glib-2.0/gobject/gobject-visibility.h:213:41: note: expanded from macro 'GOBJECT_DEPRECATED_TYPE_IN_2_36' 213 | #define GOBJECT_DEPRECATED_TYPE_IN_2_36 GLIB_DEPRECATED_TYPE | ^ /usr/local/include/glib-2.0/glib/gmacros.h:1364:30: note: expanded from macro 'GLIB_DEPRECATED_TYPE' 1364 | #define GLIB_DEPRECATED_TYPE G_DEPRECATED | ^ /usr/local/include/glib-2.0/glib/gmacros.h:1303:37: note: expanded from macro 'G_DEPRECATED' 1303 | #define G_DEPRECATED __attribute__((__deprecated__)) | ^ In file included from xsane-preview.c:75: In file included from ./xsane.h:70: In file included from /usr/local/include/gtk-2.0/gtk/gtk.h:126: In file included from /usr/local/include/gtk-2.0/gtk/gtkmenutoolbutton.h:30: In file included from /usr/local/include/gtk-2.0/gtk/gtktoolbutton.h:30: In file included from /usr/local/include/gtk-2.0/gtk/gtktoolitem.h:31: /usr/local/include/gtk-2.0/gtk/gtktooltips.h:73:3: warning: 'GTimeVal' is deprecated: Use 'GDateTime' instead [-Wdeprecated-declarations] 73 | GTimeVal last_popdown; | ^ /usr/local/include/glib-2.0/glib/gtypes.h:620:35: note: 'GTimeVal' has been explicitly marked deprecated here 620 | typedef struct _GTimeVal GTimeVal GLIB_DEPRECATED_TYPE_IN_2_62_FOR(GDateTime); | ^ /usr/local/include/glib-2.0/glib/glib-visibility.h:656:45: note: expanded from macro 'GLIB_DEPRECATED_TYPE_IN_2_62_FOR' 656 | #define GLIB_DEPRECATED_TYPE_IN_2_62_FOR(f) GLIB_DEPRECATED_TYPE_FOR (f) | ^ /usr/local/include/glib-2.0/glib/gmacros.h:1365:37: note: expanded from macro 'GLIB_DEPRECATED_TYPE_FOR' 1365 | #define GLIB_DEPRECATED_TYPE_FOR(f) G_DEPRECATED_FOR(f) | ^ /usr/local/include/glib-2.0/glib/gmacros.h:1313:44: note: expanded from macro 'G_DEPRECATED_FOR' 1313 | #define G_DEPRECATED_FOR(f) __attribute__((__deprecated__("Use '" #f "' instead"))) | ^ xsane-preview.c:2097:6: warning: variable 'c' set but not used [-Wunused-but-set-variable] 2097 | int c; | ^ xsane-preview.c:2103:9: warning: variable 'bytes_read' set but not used [-Wunused-but-set-variable] 2103 | size_t bytes_read; | ^ xsane-preview.c:2456:9: warning: variable 'nread' set but not used [-Wunused-but-set-variable] 2456 | size_t nread; | ^ xsane-preview.c:4116:68: warning: cast to 'void *' from smaller integer type 'int' [-Wint-to-void-pointer-cast] 4116 | gtk_object_set_data(GTK_OBJECT(preset_area_item), "Selection", (void *) i); | ^~~~~~~~~~ xsane-preview.c:4472:65: warning: cast to 'void *' from smaller integer type 'int' [-Wint-to-void-pointer-cast] 4472 | gtk_object_set_data(GTK_OBJECT(rotation_item), "Selection", (void *) rot); | ^~~~~~~~~~~~ xsane-preview.c:5715:15: warning: cast to smaller integer type 'int' from 'gpointer' (aka 'void *') [-Wvoid-pointer-to-int-cast] 5715 | selection = (int) gtk_object_get_data(GTK_OBJECT(preset_area_widget), "Selection"); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ xsane-preview.c:5722:19: warning: cast to smaller integer type 'int' from 'gpointer' (aka 'void *') [-Wvoid-pointer-to-int-cast] 5722 | old_selection = (int) gtk_object_get_data(GTK_OBJECT(gtk_menu_get_active(GTK_MENU(old_preset_area_menu))), "Selection"); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ xsane-preview.c:5765:15: warning: cast to smaller integer type 'int' from 'gpointer' (aka 'void *') [-Wvoid-pointer-to-int-cast] 5765 | selection = (int) gtk_object_get_data(GTK_OBJECT(preset_area_widget), "Selection"); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ xsane-preview.c:5770:19: warning: cast to smaller integer type 'int' from 'gpointer' (aka 'void *') [-Wvoid-pointer-to-int-cast] 5770 | old_selection = (int) gtk_object_get_data(GTK_OBJECT(gtk_menu_get_active(GTK_MENU(old_preset_area_menu))), "Selection"); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ xsane-preview.c:5816:15: warning: cast to smaller integer type 'int' from 'gpointer' (aka 'void *') [-Wvoid-pointer-to-int-cast] 5816 | selection = (int) gtk_object_get_data(GTK_OBJECT(preset_area_widget), "Selection"); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ xsane-preview.c:5836:21: warning: cast to smaller integer type 'int' from 'gpointer' (aka 'void *') [-Wvoid-pointer-to-int-cast] 5836 | old_selection = (int) gtk_object_get_data(GTK_OBJECT(gtk_menu_get_active(GTK_MENU(old_preset_area_menu))), "Selection"); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ xsane-preview.c:5865:15: warning: cast to smaller integer type 'int' from 'gpointer' (aka 'void *') [-Wvoid-pointer-to-int-cast] 5865 | selection = (int) gtk_object_get_data(GTK_OBJECT(preset_area_widget), "Selection"); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ xsane-preview.c:5881:21: warning: cast to smaller integer type 'int' from 'gpointer' (aka 'void *') [-Wvoid-pointer-to-int-cast] 5881 | old_selection = (int) gtk_object_get_data(GTK_OBJECT(gtk_menu_get_active(GTK_MENU(old_preset_area_menu))), "Selection"); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ xsane-preview.c:5910:15: warning: cast to smaller integer type 'int' from 'gpointer' (aka 'void *') [-Wvoid-pointer-to-int-cast] 5910 | selection = (int) gtk_object_get_data(GTK_OBJECT(preset_area_widget), "Selection"); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ xsane-preview.c:5927:21: warning: cast to smaller integer type 'int' from 'gpointer' (aka 'void *') [-Wvoid-pointer-to-int-cast] 5927 | old_selection = (int) gtk_object_get_data(GTK_OBJECT(gtk_menu_get_active(GTK_MENU(old_preset_area_menu))), "Selection"); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ xsane-preview.c:5958:15: warning: cast to smaller integer type 'int' from 'gpointer' (aka 'void *') [-Wvoid-pointer-to-int-cast] 5958 | selection = (int) gtk_object_get_data(GTK_OBJECT(widget), "Selection"); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ xsane-preview.c:6035:15: warning: cast to smaller integer type 'int' from 'gpointer' (aka 'void *') [-Wvoid-pointer-to-int-cast] 6035 | selection = (int) gtk_object_get_data(GTK_OBJECT(widget), "Selection"); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ xsane-preview.c:6059:9: warning: cast to smaller integer type 'int' from 'gpointer' (aka 'void *') [-Wvoid-pointer-to-int-cast] 6059 | rot = (int) gtk_object_get_data(GTK_OBJECT(widget), "Selection"); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 21 warnings generated. cc -c -DHAVE_CONFIG_H -DLOCALEDIR=/usr/local/share/locale -DSANELOCALEDIR=/usr/local/share/locale -I. -I. -I../include -I../include -I/usr/local/include -I/usr/local/include -D_GNU_SOURCE -I../intl -DV_MAJOR=0 -DV_MINOR=999 -DSANE_V_MAJOR=1 -DPATH_XSANE_DOC_DIR=/usr/local/share/doc/xsane/ -DPATH_SANE_DATA_DIR=/usr/local/share/ -O2 -pipe -Wall -I/usr/local/include -I/usr/local/include/gimp-2.0 -I/usr/local/include/gegl-0.4 -I/usr/local/include -I/usr/local/include/json-glib-1.0 -I/usr/local/include/babl-0.1 -I/usr/local/include/gtk-2.0 -I/usr/local/lib/gtk-2.0/include -I/usr/local/include/pango-1.0 -I/usr/local/include/gio-unix-2.0 -I/usr/X11R6/include -I/usr/local/include/atk-1.0 -I/usr/local/include/gdk-pixbuf-2.0 -pthread -I/usr/local/include/fribidi -I/usr/local/include/cairo -I/usr/local/include/libpng16 -I/usr/X11R6/include/pixman-1 -I/usr/local/include/harfbuzz -I/usr/X11R6/include/freetype2 -I/usr/local/include/glib-2.0 -I/usr/local/lib/glib-2.0/include xsane-viewer.c In file included from xsane-viewer.c:25: In file included from ./xsane.h:45: ../include/getopt.h:104:12: warning: a function declaration without a prototype is deprecated in all versions of C and is treated as a zero-parameter prototype in C23, conflicting with a subsequent declaration [-Wdeprecated-non-prototype] 104 | extern int getopt (); | ^ /usr/include/unistd.h:389:6: note: conflicting prototype is here 389 | int getopt(int, char * const *, const char *); | ^ In file included from xsane-viewer.c:25: In file included from ./xsane.h:70: In file included from /usr/local/include/gtk-2.0/gtk/gtk.h:33: In file included from /usr/local/include/gtk-2.0/gtk/gtkaboutdialog.h:32: In file included from /usr/local/include/gtk-2.0/gtk/gtkdialog.h:35: In file included from /usr/local/include/gtk-2.0/gtk/gtkwindow.h:36: In file included from /usr/local/include/gtk-2.0/gtk/gtkbin.h:35: In file included from /usr/local/include/gtk-2.0/gtk/gtkcontainer.h:35: In file included from /usr/local/include/gtk-2.0/gtk/gtkwidget.h:36: In file included from /usr/local/include/gtk-2.0/gtk/gtkobject.h:37: /usr/local/include/gtk-2.0/gtk/gtktypeutils.h:236:34: warning: 'GTypeDebugFlags' is deprecated [-Wdeprecated-declarations] 236 | void gtk_type_init (GTypeDebugFlags debug_flags); | ^ /usr/local/include/glib-2.0/gobject/gtype.h:731:36: note: 'GTypeDebugFlags' has been explicitly marked deprecated here 731 | } G_GNUC_FLAG_ENUM GTypeDebugFlags GOBJECT_DEPRECATED_TYPE_IN_2_36; | ^ /usr/local/include/glib-2.0/gobject/gobject-visibility.h:213:41: note: expanded from macro 'GOBJECT_DEPRECATED_TYPE_IN_2_36' 213 | #define GOBJECT_DEPRECATED_TYPE_IN_2_36 GLIB_DEPRECATED_TYPE | ^ /usr/local/include/glib-2.0/glib/gmacros.h:1364:30: note: expanded from macro 'GLIB_DEPRECATED_TYPE' 1364 | #define GLIB_DEPRECATED_TYPE G_DEPRECATED | ^ /usr/local/include/glib-2.0/glib/gmacros.h:1303:37: note: expanded from macro 'G_DEPRECATED' 1303 | #define G_DEPRECATED __attribute__((__deprecated__)) | ^ In file included from xsane-viewer.c:25: In file included from ./xsane.h:70: In file included from /usr/local/include/gtk-2.0/gtk/gtk.h:126: In file included from /usr/local/include/gtk-2.0/gtk/gtkmenutoolbutton.h:30: In file included from /usr/local/include/gtk-2.0/gtk/gtktoolbutton.h:30: In file included from /usr/local/include/gtk-2.0/gtk/gtktoolitem.h:31: /usr/local/include/gtk-2.0/gtk/gtktooltips.h:73:3: warning: 'GTimeVal' is deprecated: Use 'GDateTime' instead [-Wdeprecated-declarations] 73 | GTimeVal last_popdown; | ^ /usr/local/include/glib-2.0/glib/gtypes.h:620:35: note: 'GTimeVal' has been explicitly marked deprecated here 620 | typedef struct _GTimeVal GTimeVal GLIB_DEPRECATED_TYPE_IN_2_62_FOR(GDateTime); | ^ /usr/local/include/glib-2.0/glib/glib-visibility.h:656:45: note: expanded from macro 'GLIB_DEPRECATED_TYPE_IN_2_62_FOR' 656 | #define GLIB_DEPRECATED_TYPE_IN_2_62_FOR(f) GLIB_DEPRECATED_TYPE_FOR (f) | ^ /usr/local/include/glib-2.0/glib/gmacros.h:1365:37: note: expanded from macro 'GLIB_DEPRECATED_TYPE_FOR' 1365 | #define GLIB_DEPRECATED_TYPE_FOR(f) G_DEPRECATED_FOR(f) | ^ /usr/local/include/glib-2.0/glib/gmacros.h:1313:44: note: expanded from macro 'G_DEPRECATED_FOR' 1313 | #define G_DEPRECATED_FOR(f) __attribute__((__deprecated__("Use '" #f "' instead"))) | ^ xsane-viewer.c:509:18: warning: cast to smaller integer type 'int' from 'gpointer' (aka 'void *') [-Wvoid-pointer-to-int-cast] 509 | image_width = (int) gtk_object_get_data(GTK_OBJECT(adj_data), "image_width"); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ xsane-viewer.c:510:18: warning: cast to smaller integer type 'int' from 'gpointer' (aka 'void *') [-Wvoid-pointer-to-int-cast] 510 | image_height = (int) gtk_object_get_data(GTK_OBJECT(adj_data), "image_height"); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ xsane-viewer.c:532:18: warning: cast to smaller integer type 'int' from 'gpointer' (aka 'void *') [-Wvoid-pointer-to-int-cast] 532 | image_width = (int) gtk_object_get_data(GTK_OBJECT(adj_data), "image_width"); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ xsane-viewer.c:533:18: warning: cast to smaller integer type 'int' from 'gpointer' (aka 'void *') [-Wvoid-pointer-to-int-cast] 533 | image_height = (int) gtk_object_get_data(GTK_OBJECT(adj_data), "image_height"); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ xsane-viewer.c:530:19: warning: variable 'image_height' set but not used [-Wunused-but-set-variable] 530 | int image_width, image_height; | ^ xsane-viewer.c:556:18: warning: cast to smaller integer type 'int' from 'gpointer' (aka 'void *') [-Wvoid-pointer-to-int-cast] 556 | image_width = (int) gtk_object_get_data(GTK_OBJECT(adj_data), "image_width"); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ xsane-viewer.c:557:18: warning: cast to smaller integer type 'int' from 'gpointer' (aka 'void *') [-Wvoid-pointer-to-int-cast] 557 | image_height = (int) gtk_object_get_data(GTK_OBJECT(adj_data), "image_height"); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ xsane-viewer.c:554:6: warning: variable 'image_width' set but not used [-Wunused-but-set-variable] 554 | int image_width, image_height; | ^ xsane-viewer.c:720:72: warning: cast to 'void *' from smaller integer type 'int' [-Wint-to-void-pointer-cast] 720 | gtk_object_set_data(GTK_OBJECT(scale_widget), "image_width", (void *) image_info.image_width); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ xsane-viewer.c:721:72: warning: cast to 'void *' from smaller integer type 'int' [-Wint-to-void-pointer-cast] 721 | gtk_object_set_data(GTK_OBJECT(scale_widget), "image_height", (void *) image_info.image_height); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ xsane-viewer.c:725:78: warning: cast to 'void *' from smaller integer type 'int' [-Wint-to-void-pointer-cast] 725 | gtk_object_set_data(GTK_OBJECT(adjustment_size_x), "image_width", (void *) image_info.image_width); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ xsane-viewer.c:726:78: warning: cast to 'void *' from smaller integer type 'int' [-Wint-to-void-pointer-cast] 726 | gtk_object_set_data(GTK_OBJECT(adjustment_size_x), "image_height", (void *) image_info.image_height); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ xsane-viewer.c:730:78: warning: cast to 'void *' from smaller integer type 'int' [-Wint-to-void-pointer-cast] 730 | gtk_object_set_data(GTK_OBJECT(adjustment_size_y), "image_width", (void *) image_info.image_width); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ xsane-viewer.c:731:78: warning: cast to 'void *' from smaller integer type 'int' [-Wint-to-void-pointer-cast] 731 | gtk_object_set_data(GTK_OBJECT(adjustment_size_y), "image_height", (void *) image_info.image_height); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ xsane-viewer.c:766:74: warning: cast to 'void *' from smaller integer type 'int' [-Wint-to-void-pointer-cast] 766 | gtk_object_set_data(GTK_OBJECT(scalex_widget), "image_width", (void *) image_info.image_width); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ xsane-viewer.c:767:74: warning: cast to 'void *' from smaller integer type 'int' [-Wint-to-void-pointer-cast] 767 | gtk_object_set_data(GTK_OBJECT(scalex_widget), "image_height", (void *) image_info.image_height); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ xsane-viewer.c:770:78: warning: cast to 'void *' from smaller integer type 'int' [-Wint-to-void-pointer-cast] 770 | gtk_object_set_data(GTK_OBJECT(adjustment_size_x), "image_width", (void *) image_info.image_width); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ xsane-viewer.c:771:78: warning: cast to 'void *' from smaller integer type 'int' [-Wint-to-void-pointer-cast] 771 | gtk_object_set_data(GTK_OBJECT(adjustment_size_x), "image_height", (void *) image_info.image_height); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ xsane-viewer.c:805:73: warning: cast to 'void *' from smaller integer type 'int' [-Wint-to-void-pointer-cast] 805 | gtk_object_set_data(GTK_OBJECT(scaley_widget), "image_width", (void *) image_info.image_width); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ xsane-viewer.c:806:73: warning: cast to 'void *' from smaller integer type 'int' [-Wint-to-void-pointer-cast] 806 | gtk_object_set_data(GTK_OBJECT(scaley_widget), "image_height", (void *) image_info.image_height); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ xsane-viewer.c:809:78: warning: cast to 'void *' from smaller integer type 'int' [-Wint-to-void-pointer-cast] 809 | gtk_object_set_data(GTK_OBJECT(adjustment_size_y), "image_width", (void *) image_info.image_width); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ xsane-viewer.c:810:78: warning: cast to 'void *' from smaller integer type 'int' [-Wint-to-void-pointer-cast] 810 | gtk_object_set_data(GTK_OBJECT(adjustment_size_y), "image_height", (void *) image_info.image_height); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ xsane-viewer.c:1447:9: warning: cast to smaller integer type 'int' from 'gpointer' (aka 'void *') [-Wvoid-pointer-to-int-cast] 1447 | val = (int) gtk_object_get_data(GTK_OBJECT(widget), "Selection"); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ xsane-viewer.c:1724:9: warning: cast to smaller integer type 'int' from 'gpointer' (aka 'void *') [-Wvoid-pointer-to-int-cast] 1724 | val = (int) gtk_object_get_data(GTK_OBJECT(widget), "Selection"); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ xsane-viewer.c:1751:9: warning: cast to smaller integer type 'int' from 'gpointer' (aka 'void *') [-Wvoid-pointer-to-int-cast] 1751 | val = (int) gtk_object_get_data(GTK_OBJECT(widget), "Selection"); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ xsane-viewer.c:1777:9: warning: cast to smaller integer type 'int' from 'gpointer' (aka 'void *') [-Wvoid-pointer-to-int-cast] 1777 | val = (int) gtk_object_get_data(GTK_OBJECT(widget), "Selection"); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ xsane-viewer.c:1806:9: warning: cast to smaller integer type 'int' from 'gpointer' (aka 'void *') [-Wvoid-pointer-to-int-cast] 1806 | val = (int) gtk_object_get_data(GTK_OBJECT(widget), "Selection"); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ xsane-viewer.c:2104:6: warning: variable 'pos0' set but not used [-Wunused-but-set-variable] 2104 | int pos0; | ^ xsane-viewer.c:2159:6: warning: variable 'nread' set but not used [-Wunused-but-set-variable] 2159 | int nread; | ^ xsane-viewer.c:3010:66: warning: cast to 'void *' from smaller integer type 'int' [-Wint-to-void-pointer-cast] 3010 | gtk_object_set_data(GTK_OBJECT(zoom_menu_item), "Selection", (void *) xsane_viewer_zoom[i]); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 33 warnings generated. cc -c -DHAVE_CONFIG_H -DLOCALEDIR=/usr/local/share/locale -DSANELOCALEDIR=/usr/local/share/locale -I. -I. -I../include -I../include -I/usr/local/include -I/usr/local/include -D_GNU_SOURCE -I../intl -DV_MAJOR=0 -DV_MINOR=999 -DSANE_V_MAJOR=1 -DPATH_XSANE_DOC_DIR=/usr/local/share/doc/xsane/ -DPATH_SANE_DATA_DIR=/usr/local/share/ -O2 -pipe -Wall -I/usr/local/include -I/usr/local/include/gimp-2.0 -I/usr/local/include/gegl-0.4 -I/usr/local/include -I/usr/local/include/json-glib-1.0 -I/usr/local/include/babl-0.1 -I/usr/local/include/gtk-2.0 -I/usr/local/lib/gtk-2.0/include -I/usr/local/include/pango-1.0 -I/usr/local/include/gio-unix-2.0 -I/usr/X11R6/include -I/usr/local/include/atk-1.0 -I/usr/local/include/gdk-pixbuf-2.0 -pthread -I/usr/local/include/fribidi -I/usr/local/include/cairo -I/usr/local/include/libpng16 -I/usr/X11R6/include/pixman-1 -I/usr/local/include/harfbuzz -I/usr/X11R6/include/freetype2 -I/usr/local/include/glib-2.0 -I/usr/local/lib/glib-2.0/include xsane-fax-project.c In file included from xsane-fax-project.c:25: In file included from ./xsane.h:45: ../include/getopt.h:104:12: warning: a function declaration without a prototype is deprecated in all versions of C and is treated as a zero-parameter prototype in C23, conflicting with a subsequent declaration [-Wdeprecated-non-prototype] 104 | extern int getopt (); | ^ /usr/include/unistd.h:389:6: note: conflicting prototype is here 389 | int getopt(int, char * const *, const char *); | ^ In file included from xsane-fax-project.c:25: In file included from ./xsane.h:70: In file included from /usr/local/include/gtk-2.0/gtk/gtk.h:33: In file included from /usr/local/include/gtk-2.0/gtk/gtkaboutdialog.h:32: In file included from /usr/local/include/gtk-2.0/gtk/gtkdialog.h:35: In file included from /usr/local/include/gtk-2.0/gtk/gtkwindow.h:36: In file included from /usr/local/include/gtk-2.0/gtk/gtkbin.h:35: In file included from /usr/local/include/gtk-2.0/gtk/gtkcontainer.h:35: In file included from /usr/local/include/gtk-2.0/gtk/gtkwidget.h:36: In file included from /usr/local/include/gtk-2.0/gtk/gtkobject.h:37: /usr/local/include/gtk-2.0/gtk/gtktypeutils.h:236:34: warning: 'GTypeDebugFlags' is deprecated [-Wdeprecated-declarations] 236 | void gtk_type_init (GTypeDebugFlags debug_flags); | ^ /usr/local/include/glib-2.0/gobject/gtype.h:731:36: note: 'GTypeDebugFlags' has been explicitly marked deprecated here 731 | } G_GNUC_FLAG_ENUM GTypeDebugFlags GOBJECT_DEPRECATED_TYPE_IN_2_36; | ^ /usr/local/include/glib-2.0/gobject/gobject-visibility.h:213:41: note: expanded from macro 'GOBJECT_DEPRECATED_TYPE_IN_2_36' 213 | #define GOBJECT_DEPRECATED_TYPE_IN_2_36 GLIB_DEPRECATED_TYPE | ^ /usr/local/include/glib-2.0/glib/gmacros.h:1364:30: note: expanded from macro 'GLIB_DEPRECATED_TYPE' 1364 | #define GLIB_DEPRECATED_TYPE G_DEPRECATED | ^ /usr/local/include/glib-2.0/glib/gmacros.h:1303:37: note: expanded from macro 'G_DEPRECATED' 1303 | #define G_DEPRECATED __attribute__((__deprecated__)) | ^ In file included from xsane-fax-project.c:25: In file included from ./xsane.h:70: In file included from /usr/local/include/gtk-2.0/gtk/gtk.h:126: In file included from /usr/local/include/gtk-2.0/gtk/gtkmenutoolbutton.h:30: In file included from /usr/local/include/gtk-2.0/gtk/gtktoolbutton.h:30: In file included from /usr/local/include/gtk-2.0/gtk/gtktoolitem.h:31: /usr/local/include/gtk-2.0/gtk/gtktooltips.h:73:3: warning: 'GTimeVal' is deprecated: Use 'GDateTime' instead [-Wdeprecated-declarations] 73 | GTimeVal last_popdown; | ^ /usr/local/include/glib-2.0/glib/gtypes.h:620:35: note: 'GTimeVal' has been explicitly marked deprecated here 620 | typedef struct _GTimeVal GTimeVal GLIB_DEPRECATED_TYPE_IN_2_62_FOR(GDateTime); | ^ /usr/local/include/glib-2.0/glib/glib-visibility.h:656:45: note: expanded from macro 'GLIB_DEPRECATED_TYPE_IN_2_62_FOR' 656 | #define GLIB_DEPRECATED_TYPE_IN_2_62_FOR(f) GLIB_DEPRECATED_TYPE_FOR (f) | ^ /usr/local/include/glib-2.0/glib/gmacros.h:1365:37: note: expanded from macro 'GLIB_DEPRECATED_TYPE_FOR' 1365 | #define GLIB_DEPRECATED_TYPE_FOR(f) G_DEPRECATED_FOR(f) | ^ /usr/local/include/glib-2.0/glib/gmacros.h:1313:44: note: expanded from macro 'G_DEPRECATED_FOR' 1313 | #define G_DEPRECATED_FOR(f) __attribute__((__deprecated__("Use '" #f "' instead"))) | ^ xsane-fax-project.c:455:3: warning: 'snprintf' will always be truncated; specified size is 32, but format string expands to at least 33 [-Wformat-truncation] 455 | snprintf(buf, 32, "%s@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@", xsane.fax_status); /* fill 32 characters status line */ | ^ xsane-fax-project.c:501:5: warning: 'snprintf' will always be truncated; specified size is 32, but format string expands to at least 33 [-Wformat-truncation] 501 | snprintf(buf, 32, "%s@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@", xsane.fax_status); /* fill 32 characters status line */ | ^ xsane-fax-project.c:757:28: warning: cast to smaller integer type 'int' from 'gpointer' (aka 'void *') [-Wvoid-pointer-to-int-cast] 757 | xsane_fax_entry_rename = (int) data; | ^~~~~~~~~~ 6 warnings generated. cc -c -DHAVE_CONFIG_H -DLOCALEDIR=/usr/local/share/locale -DSANELOCALEDIR=/usr/local/share/locale -I. -I. -I../include -I../include -I/usr/local/include -I/usr/local/include -D_GNU_SOURCE -I../intl -DV_MAJOR=0 -DV_MINOR=999 -DSANE_V_MAJOR=1 -DPATH_XSANE_DOC_DIR=/usr/local/share/doc/xsane/ -DPATH_SANE_DATA_DIR=/usr/local/share/ -O2 -pipe -Wall -I/usr/local/include -I/usr/local/include/gimp-2.0 -I/usr/local/include/gegl-0.4 -I/usr/local/include -I/usr/local/include/json-glib-1.0 -I/usr/local/include/babl-0.1 -I/usr/local/include/gtk-2.0 -I/usr/local/lib/gtk-2.0/include -I/usr/local/include/pango-1.0 -I/usr/local/include/gio-unix-2.0 -I/usr/X11R6/include -I/usr/local/include/atk-1.0 -I/usr/local/include/gdk-pixbuf-2.0 -pthread -I/usr/local/include/fribidi -I/usr/local/include/cairo -I/usr/local/include/libpng16 -I/usr/X11R6/include/pixman-1 -I/usr/local/include/harfbuzz -I/usr/X11R6/include/freetype2 -I/usr/local/include/glib-2.0 -I/usr/local/lib/glib-2.0/include xsane-email-project.c In file included from xsane-email-project.c:25: In file included from ./xsane.h:45: ../include/getopt.h:104:12: warning: a function declaration without a prototype is deprecated in all versions of C and is treated as a zero-parameter prototype in C23, conflicting with a subsequent declaration [-Wdeprecated-non-prototype] 104 | extern int getopt (); | ^ /usr/include/unistd.h:389:6: note: conflicting prototype is here 389 | int getopt(int, char * const *, const char *); | ^ In file included from xsane-email-project.c:25: In file included from ./xsane.h:70: In file included from /usr/local/include/gtk-2.0/gtk/gtk.h:33: In file included from /usr/local/include/gtk-2.0/gtk/gtkaboutdialog.h:32: In file included from /usr/local/include/gtk-2.0/gtk/gtkdialog.h:35: In file included from /usr/local/include/gtk-2.0/gtk/gtkwindow.h:36: In file included from /usr/local/include/gtk-2.0/gtk/gtkbin.h:35: In file included from /usr/local/include/gtk-2.0/gtk/gtkcontainer.h:35: In file included from /usr/local/include/gtk-2.0/gtk/gtkwidget.h:36: In file included from /usr/local/include/gtk-2.0/gtk/gtkobject.h:37: /usr/local/include/gtk-2.0/gtk/gtktypeutils.h:236:34: warning: 'GTypeDebugFlags' is deprecated [-Wdeprecated-declarations] 236 | void gtk_type_init (GTypeDebugFlags debug_flags); | ^ /usr/local/include/glib-2.0/gobject/gtype.h:731:36: note: 'GTypeDebugFlags' has been explicitly marked deprecated here 731 | } G_GNUC_FLAG_ENUM GTypeDebugFlags GOBJECT_DEPRECATED_TYPE_IN_2_36; | ^ /usr/local/include/glib-2.0/gobject/gobject-visibility.h:213:41: note: expanded from macro 'GOBJECT_DEPRECATED_TYPE_IN_2_36' 213 | #define GOBJECT_DEPRECATED_TYPE_IN_2_36 GLIB_DEPRECATED_TYPE | ^ /usr/local/include/glib-2.0/glib/gmacros.h:1364:30: note: expanded from macro 'GLIB_DEPRECATED_TYPE' 1364 | #define GLIB_DEPRECATED_TYPE G_DEPRECATED | ^ /usr/local/include/glib-2.0/glib/gmacros.h:1303:37: note: expanded from macro 'G_DEPRECATED' 1303 | #define G_DEPRECATED __attribute__((__deprecated__)) | ^ In file included from xsane-email-project.c:25: In file included from ./xsane.h:70: In file included from /usr/local/include/gtk-2.0/gtk/gtk.h:126: In file included from /usr/local/include/gtk-2.0/gtk/gtkmenutoolbutton.h:30: In file included from /usr/local/include/gtk-2.0/gtk/gtktoolbutton.h:30: In file included from /usr/local/include/gtk-2.0/gtk/gtktoolitem.h:31: /usr/local/include/gtk-2.0/gtk/gtktooltips.h:73:3: warning: 'GTimeVal' is deprecated: Use 'GDateTime' instead [-Wdeprecated-declarations] 73 | GTimeVal last_popdown; | ^ /usr/local/include/glib-2.0/glib/gtypes.h:620:35: note: 'GTimeVal' has been explicitly marked deprecated here 620 | typedef struct _GTimeVal GTimeVal GLIB_DEPRECATED_TYPE_IN_2_62_FOR(GDateTime); | ^ /usr/local/include/glib-2.0/glib/glib-visibility.h:656:45: note: expanded from macro 'GLIB_DEPRECATED_TYPE_IN_2_62_FOR' 656 | #define GLIB_DEPRECATED_TYPE_IN_2_62_FOR(f) GLIB_DEPRECATED_TYPE_FOR (f) | ^ /usr/local/include/glib-2.0/glib/gmacros.h:1365:37: note: expanded from macro 'GLIB_DEPRECATED_TYPE_FOR' 1365 | #define GLIB_DEPRECATED_TYPE_FOR(f) G_DEPRECATED_FOR(f) | ^ /usr/local/include/glib-2.0/glib/gmacros.h:1313:44: note: expanded from macro 'G_DEPRECATED_FOR' 1313 | #define G_DEPRECATED_FOR(f) __attribute__((__deprecated__("Use '" #f "' instead"))) | ^ xsane-email-project.c:496:6: warning: variable 'items_done' set but not used [-Wunused-but-set-variable] 496 | int items_done; | ^ xsane-email-project.c:899:3: warning: 'snprintf' will always be truncated; specified size is 32, but format string expands to at least 33 [-Wformat-truncation] 899 | snprintf(buf, 32, "%s@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@", xsane.email_status); /* fill 32 characters status line */ | ^ xsane-email-project.c:939:5: warning: 'snprintf' will always be truncated; specified size is 32, but format string expands to at least 33 [-Wformat-truncation] 939 | snprintf(buf, 32, "%s@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@", xsane.email_status); /* fill 32 characters status line */ | ^ xsane-email-project.c:1274:30: warning: cast to smaller integer type 'int' from 'gpointer' (aka 'void *') [-Wvoid-pointer-to-int-cast] 1274 | xsane_email_entry_rename = (int) data; | ^~~~~~~~~~ xsane-email-project.c:1518:9: warning: variable 'bytes_written' set but not used [-Wunused-but-set-variable] 1518 | size_t bytes_written; | ^ xsane-email-project.c:1937:10: warning: variable 'ipc_file' set but not used [-Wunused-but-set-variable] 1937 | FILE *ipc_file = NULL; | ^ 9 warnings generated. cc -c -DHAVE_CONFIG_H -DLOCALEDIR=/usr/local/share/locale -DSANELOCALEDIR=/usr/local/share/locale -I. -I. -I../include -I../include -I/usr/local/include -I/usr/local/include -D_GNU_SOURCE -I../intl -DV_MAJOR=0 -DV_MINOR=999 -DSANE_V_MAJOR=1 -DPATH_XSANE_DOC_DIR=/usr/local/share/doc/xsane/ -DPATH_SANE_DATA_DIR=/usr/local/share/ -O2 -pipe -Wall -I/usr/local/include -I/usr/local/include/gimp-2.0 -I/usr/local/include/gegl-0.4 -I/usr/local/include -I/usr/local/include/json-glib-1.0 -I/usr/local/include/babl-0.1 -I/usr/local/include/gtk-2.0 -I/usr/local/lib/gtk-2.0/include -I/usr/local/include/pango-1.0 -I/usr/local/include/gio-unix-2.0 -I/usr/X11R6/include -I/usr/local/include/atk-1.0 -I/usr/local/include/gdk-pixbuf-2.0 -pthread -I/usr/local/include/fribidi -I/usr/local/include/cairo -I/usr/local/include/libpng16 -I/usr/X11R6/include/pixman-1 -I/usr/local/include/harfbuzz -I/usr/X11R6/include/freetype2 -I/usr/local/include/glib-2.0 -I/usr/local/lib/glib-2.0/include xsane-multipage-project.c In file included from xsane-multipage-project.c:27: In file included from ./xsane.h:45: ../include/getopt.h:104:12: warning: a function declaration without a prototype is deprecated in all versions of C and is treated as a zero-parameter prototype in C23, conflicting with a subsequent declaration [-Wdeprecated-non-prototype] 104 | extern int getopt (); | ^ /usr/include/unistd.h:389:6: note: conflicting prototype is here 389 | int getopt(int, char * const *, const char *); | ^ In file included from xsane-multipage-project.c:27: In file included from ./xsane.h:70: In file included from /usr/local/include/gtk-2.0/gtk/gtk.h:33: In file included from /usr/local/include/gtk-2.0/gtk/gtkaboutdialog.h:32: In file included from /usr/local/include/gtk-2.0/gtk/gtkdialog.h:35: In file included from /usr/local/include/gtk-2.0/gtk/gtkwindow.h:36: In file included from /usr/local/include/gtk-2.0/gtk/gtkbin.h:35: In file included from /usr/local/include/gtk-2.0/gtk/gtkcontainer.h:35: In file included from /usr/local/include/gtk-2.0/gtk/gtkwidget.h:36: In file included from /usr/local/include/gtk-2.0/gtk/gtkobject.h:37: /usr/local/include/gtk-2.0/gtk/gtktypeutils.h:236:34: warning: 'GTypeDebugFlags' is deprecated [-Wdeprecated-declarations] 236 | void gtk_type_init (GTypeDebugFlags debug_flags); | ^ /usr/local/include/glib-2.0/gobject/gtype.h:731:36: note: 'GTypeDebugFlags' has been explicitly marked deprecated here 731 | } G_GNUC_FLAG_ENUM GTypeDebugFlags GOBJECT_DEPRECATED_TYPE_IN_2_36; | ^ /usr/local/include/glib-2.0/gobject/gobject-visibility.h:213:41: note: expanded from macro 'GOBJECT_DEPRECATED_TYPE_IN_2_36' 213 | #define GOBJECT_DEPRECATED_TYPE_IN_2_36 GLIB_DEPRECATED_TYPE | ^ /usr/local/include/glib-2.0/glib/gmacros.h:1364:30: note: expanded from macro 'GLIB_DEPRECATED_TYPE' 1364 | #define GLIB_DEPRECATED_TYPE G_DEPRECATED | ^ /usr/local/include/glib-2.0/glib/gmacros.h:1303:37: note: expanded from macro 'G_DEPRECATED' 1303 | #define G_DEPRECATED __attribute__((__deprecated__)) | ^ In file included from xsane-multipage-project.c:27: In file included from ./xsane.h:70: In file included from /usr/local/include/gtk-2.0/gtk/gtk.h:126: In file included from /usr/local/include/gtk-2.0/gtk/gtkmenutoolbutton.h:30: In file included from /usr/local/include/gtk-2.0/gtk/gtktoolbutton.h:30: In file included from /usr/local/include/gtk-2.0/gtk/gtktoolitem.h:31: /usr/local/include/gtk-2.0/gtk/gtktooltips.h:73:3: warning: 'GTimeVal' is deprecated: Use 'GDateTime' instead [-Wdeprecated-declarations] 73 | GTimeVal last_popdown; | ^ /usr/local/include/glib-2.0/glib/gtypes.h:620:35: note: 'GTimeVal' has been explicitly marked deprecated here 620 | typedef struct _GTimeVal GTimeVal GLIB_DEPRECATED_TYPE_IN_2_62_FOR(GDateTime); | ^ /usr/local/include/glib-2.0/glib/glib-visibility.h:656:45: note: expanded from macro 'GLIB_DEPRECATED_TYPE_IN_2_62_FOR' 656 | #define GLIB_DEPRECATED_TYPE_IN_2_62_FOR(f) GLIB_DEPRECATED_TYPE_FOR (f) | ^ /usr/local/include/glib-2.0/glib/gmacros.h:1365:37: note: expanded from macro 'GLIB_DEPRECATED_TYPE_FOR' 1365 | #define GLIB_DEPRECATED_TYPE_FOR(f) G_DEPRECATED_FOR(f) | ^ /usr/local/include/glib-2.0/glib/gmacros.h:1313:44: note: expanded from macro 'G_DEPRECATED_FOR' 1313 | #define G_DEPRECATED_FOR(f) __attribute__((__deprecated__("Use '" #f "' instead"))) | ^ xsane-multipage-project.c:525:5: warning: 'snprintf' will always be truncated; specified size is 32, but format string expands to at least 33 [-Wformat-truncation] 525 | snprintf(buf, 32, "%s@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@", xsane.multipage_status); /* fill 32 characters status line */ | ^ xsane-multipage-project.c:861:11: warning: variable 'source_size' set but not used [-Wunused-but-set-variable] 861 | long int source_size = 0; | ^ 5 warnings generated. cc -c -DHAVE_CONFIG_H -DLOCALEDIR=/usr/local/share/locale -DSANELOCALEDIR=/usr/local/share/locale -I. -I. -I../include -I../include -I/usr/local/include -I/usr/local/include -D_GNU_SOURCE -I../intl -DV_MAJOR=0 -DV_MINOR=999 -DSANE_V_MAJOR=1 -DPATH_XSANE_DOC_DIR=/usr/local/share/doc/xsane/ -DPATH_SANE_DATA_DIR=/usr/local/share/ -O2 -pipe -Wall -I/usr/local/include -I/usr/local/include/gimp-2.0 -I/usr/local/include/gegl-0.4 -I/usr/local/include -I/usr/local/include/json-glib-1.0 -I/usr/local/include/babl-0.1 -I/usr/local/include/gtk-2.0 -I/usr/local/lib/gtk-2.0/include -I/usr/local/include/pango-1.0 -I/usr/local/include/gio-unix-2.0 -I/usr/X11R6/include -I/usr/local/include/atk-1.0 -I/usr/local/include/gdk-pixbuf-2.0 -pthread -I/usr/local/include/fribidi -I/usr/local/include/cairo -I/usr/local/include/libpng16 -I/usr/X11R6/include/pixman-1 -I/usr/local/include/harfbuzz -I/usr/X11R6/include/freetype2 -I/usr/local/include/glib-2.0 -I/usr/local/lib/glib-2.0/include xsane-rc-io.c In file included from xsane-rc-io.c:25: In file included from ./xsane.h:45: ../include/getopt.h:104:12: warning: a function declaration without a prototype is deprecated in all versions of C and is treated as a zero-parameter prototype in C23, conflicting with a subsequent declaration [-Wdeprecated-non-prototype] 104 | extern int getopt (); | ^ /usr/include/unistd.h:389:6: note: conflicting prototype is here 389 | int getopt(int, char * const *, const char *); | ^ In file included from xsane-rc-io.c:25: In file included from ./xsane.h:70: In file included from /usr/local/include/gtk-2.0/gtk/gtk.h:33: In file included from /usr/local/include/gtk-2.0/gtk/gtkaboutdialog.h:32: In file included from /usr/local/include/gtk-2.0/gtk/gtkdialog.h:35: In file included from /usr/local/include/gtk-2.0/gtk/gtkwindow.h:36: In file included from /usr/local/include/gtk-2.0/gtk/gtkbin.h:35: In file included from /usr/local/include/gtk-2.0/gtk/gtkcontainer.h:35: In file included from /usr/local/include/gtk-2.0/gtk/gtkwidget.h:36: In file included from /usr/local/include/gtk-2.0/gtk/gtkobject.h:37: /usr/local/include/gtk-2.0/gtk/gtktypeutils.h:236:34: warning: 'GTypeDebugFlags' is deprecated [-Wdeprecated-declarations] 236 | void gtk_type_init (GTypeDebugFlags debug_flags); | ^ /usr/local/include/glib-2.0/gobject/gtype.h:731:36: note: 'GTypeDebugFlags' has been explicitly marked deprecated here 731 | } G_GNUC_FLAG_ENUM GTypeDebugFlags GOBJECT_DEPRECATED_TYPE_IN_2_36; | ^ /usr/local/include/glib-2.0/gobject/gobject-visibility.h:213:41: note: expanded from macro 'GOBJECT_DEPRECATED_TYPE_IN_2_36' 213 | #define GOBJECT_DEPRECATED_TYPE_IN_2_36 GLIB_DEPRECATED_TYPE | ^ /usr/local/include/glib-2.0/glib/gmacros.h:1364:30: note: expanded from macro 'GLIB_DEPRECATED_TYPE' 1364 | #define GLIB_DEPRECATED_TYPE G_DEPRECATED | ^ /usr/local/include/glib-2.0/glib/gmacros.h:1303:37: note: expanded from macro 'G_DEPRECATED' 1303 | #define G_DEPRECATED __attribute__((__deprecated__)) | ^ In file included from xsane-rc-io.c:25: In file included from ./xsane.h:70: In file included from /usr/local/include/gtk-2.0/gtk/gtk.h:126: In file included from /usr/local/include/gtk-2.0/gtk/gtkmenutoolbutton.h:30: In file included from /usr/local/include/gtk-2.0/gtk/gtktoolbutton.h:30: In file included from /usr/local/include/gtk-2.0/gtk/gtktoolitem.h:31: /usr/local/include/gtk-2.0/gtk/gtktooltips.h:73:3: warning: 'GTimeVal' is deprecated: Use 'GDateTime' instead [-Wdeprecated-declarations] 73 | GTimeVal last_popdown; | ^ /usr/local/include/glib-2.0/glib/gtypes.h:620:35: note: 'GTimeVal' has been explicitly marked deprecated here 620 | typedef struct _GTimeVal GTimeVal GLIB_DEPRECATED_TYPE_IN_2_62_FOR(GDateTime); | ^ /usr/local/include/glib-2.0/glib/glib-visibility.h:656:45: note: expanded from macro 'GLIB_DEPRECATED_TYPE_IN_2_62_FOR' 656 | #define GLIB_DEPRECATED_TYPE_IN_2_62_FOR(f) GLIB_DEPRECATED_TYPE_FOR (f) | ^ /usr/local/include/glib-2.0/glib/gmacros.h:1365:37: note: expanded from macro 'GLIB_DEPRECATED_TYPE_FOR' 1365 | #define GLIB_DEPRECATED_TYPE_FOR(f) G_DEPRECATED_FOR(f) | ^ /usr/local/include/glib-2.0/glib/gmacros.h:1313:44: note: expanded from macro 'G_DEPRECATED_FOR' 1313 | #define G_DEPRECATED_FOR(f) __attribute__((__deprecated__("Use '" #f "' instead"))) | ^ 3 warnings generated. cc -c -DHAVE_CONFIG_H -DLOCALEDIR=/usr/local/share/locale -DSANELOCALEDIR=/usr/local/share/locale -I. -I. -I../include -I../include -I/usr/local/include -I/usr/local/include -D_GNU_SOURCE -I../intl -DV_MAJOR=0 -DV_MINOR=999 -DSANE_V_MAJOR=1 -DPATH_XSANE_DOC_DIR=/usr/local/share/doc/xsane/ -DPATH_SANE_DATA_DIR=/usr/local/share/ -O2 -pipe -Wall -I/usr/local/include -I/usr/local/include/gimp-2.0 -I/usr/local/include/gegl-0.4 -I/usr/local/include -I/usr/local/include/json-glib-1.0 -I/usr/local/include/babl-0.1 -I/usr/local/include/gtk-2.0 -I/usr/local/lib/gtk-2.0/include -I/usr/local/include/pango-1.0 -I/usr/local/include/gio-unix-2.0 -I/usr/X11R6/include -I/usr/local/include/atk-1.0 -I/usr/local/include/gdk-pixbuf-2.0 -pthread -I/usr/local/include/fribidi -I/usr/local/include/cairo -I/usr/local/include/libpng16 -I/usr/X11R6/include/pixman-1 -I/usr/local/include/harfbuzz -I/usr/X11R6/include/freetype2 -I/usr/local/include/glib-2.0 -I/usr/local/lib/glib-2.0/include xsane-device-preferences.c In file included from xsane-device-preferences.c:25: In file included from ./xsane.h:45: ../include/getopt.h:104:12: warning: a function declaration without a prototype is deprecated in all versions of C and is treated as a zero-parameter prototype in C23, conflicting with a subsequent declaration [-Wdeprecated-non-prototype] 104 | extern int getopt (); | ^ /usr/include/unistd.h:389:6: note: conflicting prototype is here 389 | int getopt(int, char * const *, const char *); | ^ In file included from xsane-device-preferences.c:25: In file included from ./xsane.h:70: In file included from /usr/local/include/gtk-2.0/gtk/gtk.h:33: In file included from /usr/local/include/gtk-2.0/gtk/gtkaboutdialog.h:32: In file included from /usr/local/include/gtk-2.0/gtk/gtkdialog.h:35: In file included from /usr/local/include/gtk-2.0/gtk/gtkwindow.h:36: In file included from /usr/local/include/gtk-2.0/gtk/gtkbin.h:35: In file included from /usr/local/include/gtk-2.0/gtk/gtkcontainer.h:35: In file included from /usr/local/include/gtk-2.0/gtk/gtkwidget.h:36: In file included from /usr/local/include/gtk-2.0/gtk/gtkobject.h:37: /usr/local/include/gtk-2.0/gtk/gtktypeutils.h:236:34: warning: 'GTypeDebugFlags' is deprecated [-Wdeprecated-declarations] 236 | void gtk_type_init (GTypeDebugFlags debug_flags); | ^ /usr/local/include/glib-2.0/gobject/gtype.h:731:36: note: 'GTypeDebugFlags' has been explicitly marked deprecated here 731 | } G_GNUC_FLAG_ENUM GTypeDebugFlags GOBJECT_DEPRECATED_TYPE_IN_2_36; | ^ /usr/local/include/glib-2.0/gobject/gobject-visibility.h:213:41: note: expanded from macro 'GOBJECT_DEPRECATED_TYPE_IN_2_36' 213 | #define GOBJECT_DEPRECATED_TYPE_IN_2_36 GLIB_DEPRECATED_TYPE | ^ /usr/local/include/glib-2.0/glib/gmacros.h:1364:30: note: expanded from macro 'GLIB_DEPRECATED_TYPE' 1364 | #define GLIB_DEPRECATED_TYPE G_DEPRECATED | ^ /usr/local/include/glib-2.0/glib/gmacros.h:1303:37: note: expanded from macro 'G_DEPRECATED' 1303 | #define G_DEPRECATED __attribute__((__deprecated__)) | ^ In file included from xsane-device-preferences.c:25: In file included from ./xsane.h:70: In file included from /usr/local/include/gtk-2.0/gtk/gtk.h:126: In file included from /usr/local/include/gtk-2.0/gtk/gtkmenutoolbutton.h:30: In file included from /usr/local/include/gtk-2.0/gtk/gtktoolbutton.h:30: In file included from /usr/local/include/gtk-2.0/gtk/gtktoolitem.h:31: /usr/local/include/gtk-2.0/gtk/gtktooltips.h:73:3: warning: 'GTimeVal' is deprecated: Use 'GDateTime' instead [-Wdeprecated-declarations] 73 | GTimeVal last_popdown; | ^ /usr/local/include/glib-2.0/glib/gtypes.h:620:35: note: 'GTimeVal' has been explicitly marked deprecated here 620 | typedef struct _GTimeVal GTimeVal GLIB_DEPRECATED_TYPE_IN_2_62_FOR(GDateTime); | ^ /usr/local/include/glib-2.0/glib/glib-visibility.h:656:45: note: expanded from macro 'GLIB_DEPRECATED_TYPE_IN_2_62_FOR' 656 | #define GLIB_DEPRECATED_TYPE_IN_2_62_FOR(f) GLIB_DEPRECATED_TYPE_FOR (f) | ^ /usr/local/include/glib-2.0/glib/gmacros.h:1365:37: note: expanded from macro 'GLIB_DEPRECATED_TYPE_FOR' 1365 | #define GLIB_DEPRECATED_TYPE_FOR(f) G_DEPRECATED_FOR(f) | ^ /usr/local/include/glib-2.0/glib/gmacros.h:1313:44: note: expanded from macro 'G_DEPRECATED_FOR' 1313 | #define G_DEPRECATED_FOR(f) __attribute__((__deprecated__("Use '" #f "' instead"))) | ^ 3 warnings generated. cc -c -DHAVE_CONFIG_H -DLOCALEDIR=/usr/local/share/locale -DSANELOCALEDIR=/usr/local/share/locale -I. -I. -I../include -I../include -I/usr/local/include -I/usr/local/include -D_GNU_SOURCE -I../intl -DV_MAJOR=0 -DV_MINOR=999 -DSANE_V_MAJOR=1 -DPATH_XSANE_DOC_DIR=/usr/local/share/doc/xsane/ -DPATH_SANE_DATA_DIR=/usr/local/share/ -O2 -pipe -Wall -I/usr/local/include -I/usr/local/include/gimp-2.0 -I/usr/local/include/gegl-0.4 -I/usr/local/include -I/usr/local/include/json-glib-1.0 -I/usr/local/include/babl-0.1 -I/usr/local/include/gtk-2.0 -I/usr/local/lib/gtk-2.0/include -I/usr/local/include/pango-1.0 -I/usr/local/include/gio-unix-2.0 -I/usr/X11R6/include -I/usr/local/include/atk-1.0 -I/usr/local/include/gdk-pixbuf-2.0 -pthread -I/usr/local/include/fribidi -I/usr/local/include/cairo -I/usr/local/include/libpng16 -I/usr/X11R6/include/pixman-1 -I/usr/local/include/harfbuzz -I/usr/X11R6/include/freetype2 -I/usr/local/include/glib-2.0 -I/usr/local/lib/glib-2.0/include xsane-batch-scan.c In file included from xsane-batch-scan.c:25: In file included from ./xsane.h:45: ../include/getopt.h:104:12: warning: a function declaration without a prototype is deprecated in all versions of C and is treated as a zero-parameter prototype in C23, conflicting with a subsequent declaration [-Wdeprecated-non-prototype] 104 | extern int getopt (); | ^ /usr/include/unistd.h:389:6: note: conflicting prototype is here 389 | int getopt(int, char * const *, const char *); | ^ In file included from xsane-batch-scan.c:25: In file included from ./xsane.h:70: In file included from /usr/local/include/gtk-2.0/gtk/gtk.h:33: In file included from /usr/local/include/gtk-2.0/gtk/gtkaboutdialog.h:32: In file included from /usr/local/include/gtk-2.0/gtk/gtkdialog.h:35: In file included from /usr/local/include/gtk-2.0/gtk/gtkwindow.h:36: In file included from /usr/local/include/gtk-2.0/gtk/gtkbin.h:35: In file included from /usr/local/include/gtk-2.0/gtk/gtkcontainer.h:35: In file included from /usr/local/include/gtk-2.0/gtk/gtkwidget.h:36: In file included from /usr/local/include/gtk-2.0/gtk/gtkobject.h:37: /usr/local/include/gtk-2.0/gtk/gtktypeutils.h:236:34: warning: 'GTypeDebugFlags' is deprecated [-Wdeprecated-declarations] 236 | void gtk_type_init (GTypeDebugFlags debug_flags); | ^ /usr/local/include/glib-2.0/gobject/gtype.h:731:36: note: 'GTypeDebugFlags' has been explicitly marked deprecated here 731 | } G_GNUC_FLAG_ENUM GTypeDebugFlags GOBJECT_DEPRECATED_TYPE_IN_2_36; | ^ /usr/local/include/glib-2.0/gobject/gobject-visibility.h:213:41: note: expanded from macro 'GOBJECT_DEPRECATED_TYPE_IN_2_36' 213 | #define GOBJECT_DEPRECATED_TYPE_IN_2_36 GLIB_DEPRECATED_TYPE | ^ /usr/local/include/glib-2.0/glib/gmacros.h:1364:30: note: expanded from macro 'GLIB_DEPRECATED_TYPE' 1364 | #define GLIB_DEPRECATED_TYPE G_DEPRECATED | ^ /usr/local/include/glib-2.0/glib/gmacros.h:1303:37: note: expanded from macro 'G_DEPRECATED' 1303 | #define G_DEPRECATED __attribute__((__deprecated__)) | ^ In file included from xsane-batch-scan.c:25: In file included from ./xsane.h:70: In file included from /usr/local/include/gtk-2.0/gtk/gtk.h:126: In file included from /usr/local/include/gtk-2.0/gtk/gtkmenutoolbutton.h:30: In file included from /usr/local/include/gtk-2.0/gtk/gtktoolbutton.h:30: In file included from /usr/local/include/gtk-2.0/gtk/gtktoolitem.h:31: /usr/local/include/gtk-2.0/gtk/gtktooltips.h:73:3: warning: 'GTimeVal' is deprecated: Use 'GDateTime' instead [-Wdeprecated-declarations] 73 | GTimeVal last_popdown; | ^ /usr/local/include/glib-2.0/glib/gtypes.h:620:35: note: 'GTimeVal' has been explicitly marked deprecated here 620 | typedef struct _GTimeVal GTimeVal GLIB_DEPRECATED_TYPE_IN_2_62_FOR(GDateTime); | ^ /usr/local/include/glib-2.0/glib/glib-visibility.h:656:45: note: expanded from macro 'GLIB_DEPRECATED_TYPE_IN_2_62_FOR' 656 | #define GLIB_DEPRECATED_TYPE_IN_2_62_FOR(f) GLIB_DEPRECATED_TYPE_FOR (f) | ^ /usr/local/include/glib-2.0/glib/gmacros.h:1365:37: note: expanded from macro 'GLIB_DEPRECATED_TYPE_FOR' 1365 | #define GLIB_DEPRECATED_TYPE_FOR(f) G_DEPRECATED_FOR(f) | ^ /usr/local/include/glib-2.0/glib/gmacros.h:1313:44: note: expanded from macro 'G_DEPRECATED_FOR' 1313 | #define G_DEPRECATED_FOR(f) __attribute__((__deprecated__("Use '" #f "' instead"))) | ^ xsane-batch-scan.c:399:245: warning: if statement has empty body [-Wempty-body] 399 | if (!xsane_back_gtk_get_filename(windowname, filename, sizeof(filename), filename, NULL, NULL, XSANE_FILE_CHOOSER_ACTION_SAVE, XSANE_GET_FILENAME_SHOW_NOTHING, XSANE_FILE_FILTER_ALL | XSANE_FILE_FILTER_BATCHLIST, XSANE_FILE_FILTER_BATCHLIST)); | ^ xsane-batch-scan.c:399:245: note: put the semicolon on a separate line to silence this warning xsane-batch-scan.c:683:8: warning: variable 'data' set but not used [-Wunused-but-set-variable] 683 | char *data; | ^ xsane-batch-scan.c:722:13: warning: variable 'list_item' set but not used [-Wunused-but-set-variable] 722 | GtkWidget *list_item; | ^ xsane-batch-scan.c:799:20: warning: cast to smaller integer type 'int' from 'gpointer' (aka 'void *') [-Wvoid-pointer-to-int-cast] 799 | int rotate_info = (int) data; | ^~~~~~~~~~ xsane-batch-scan.c:837:29: warning: cast to smaller integer type 'int' from 'gpointer' (aka 'void *') [-Wvoid-pointer-to-int-cast] 837 | xsane_batch_scan_rename = (int) data; | ^~~~~~~~~~ 8 warnings generated. cc -c -DHAVE_CONFIG_H -DLOCALEDIR=/usr/local/share/locale -DSANELOCALEDIR=/usr/local/share/locale -I. -I. -I../include -I../include -I/usr/local/include -I/usr/local/include -D_GNU_SOURCE -I../intl -DV_MAJOR=0 -DV_MINOR=999 -DSANE_V_MAJOR=1 -DPATH_XSANE_DOC_DIR=/usr/local/share/doc/xsane/ -DPATH_SANE_DATA_DIR=/usr/local/share/ -O2 -pipe -Wall -I/usr/local/include -I/usr/local/include/gimp-2.0 -I/usr/local/include/gegl-0.4 -I/usr/local/include -I/usr/local/include/json-glib-1.0 -I/usr/local/include/babl-0.1 -I/usr/local/include/gtk-2.0 -I/usr/local/lib/gtk-2.0/include -I/usr/local/include/pango-1.0 -I/usr/local/include/gio-unix-2.0 -I/usr/X11R6/include -I/usr/local/include/atk-1.0 -I/usr/local/include/gdk-pixbuf-2.0 -pthread -I/usr/local/include/fribidi -I/usr/local/include/cairo -I/usr/local/include/libpng16 -I/usr/X11R6/include/pixman-1 -I/usr/local/include/harfbuzz -I/usr/X11R6/include/freetype2 -I/usr/local/include/glib-2.0 -I/usr/local/lib/glib-2.0/include xsane-preferences.c In file included from xsane-preferences.c:25: In file included from ./xsane.h:45: ../include/getopt.h:104:12: warning: a function declaration without a prototype is deprecated in all versions of C and is treated as a zero-parameter prototype in C23, conflicting with a subsequent declaration [-Wdeprecated-non-prototype] 104 | extern int getopt (); | ^ /usr/include/unistd.h:389:6: note: conflicting prototype is here 389 | int getopt(int, char * const *, const char *); | ^ In file included from xsane-preferences.c:25: In file included from ./xsane.h:70: In file included from /usr/local/include/gtk-2.0/gtk/gtk.h:33: In file included from /usr/local/include/gtk-2.0/gtk/gtkaboutdialog.h:32: In file included from /usr/local/include/gtk-2.0/gtk/gtkdialog.h:35: In file included from /usr/local/include/gtk-2.0/gtk/gtkwindow.h:36: In file included from /usr/local/include/gtk-2.0/gtk/gtkbin.h:35: In file included from /usr/local/include/gtk-2.0/gtk/gtkcontainer.h:35: In file included from /usr/local/include/gtk-2.0/gtk/gtkwidget.h:36: In file included from /usr/local/include/gtk-2.0/gtk/gtkobject.h:37: /usr/local/include/gtk-2.0/gtk/gtktypeutils.h:236:34: warning: 'GTypeDebugFlags' is deprecated [-Wdeprecated-declarations] 236 | void gtk_type_init (GTypeDebugFlags debug_flags); | ^ /usr/local/include/glib-2.0/gobject/gtype.h:731:36: note: 'GTypeDebugFlags' has been explicitly marked deprecated here 731 | } G_GNUC_FLAG_ENUM GTypeDebugFlags GOBJECT_DEPRECATED_TYPE_IN_2_36; | ^ /usr/local/include/glib-2.0/gobject/gobject-visibility.h:213:41: note: expanded from macro 'GOBJECT_DEPRECATED_TYPE_IN_2_36' 213 | #define GOBJECT_DEPRECATED_TYPE_IN_2_36 GLIB_DEPRECATED_TYPE | ^ /usr/local/include/glib-2.0/glib/gmacros.h:1364:30: note: expanded from macro 'GLIB_DEPRECATED_TYPE' 1364 | #define GLIB_DEPRECATED_TYPE G_DEPRECATED | ^ /usr/local/include/glib-2.0/glib/gmacros.h:1303:37: note: expanded from macro 'G_DEPRECATED' 1303 | #define G_DEPRECATED __attribute__((__deprecated__)) | ^ In file included from xsane-preferences.c:25: In file included from ./xsane.h:70: In file included from /usr/local/include/gtk-2.0/gtk/gtk.h:126: In file included from /usr/local/include/gtk-2.0/gtk/gtkmenutoolbutton.h:30: In file included from /usr/local/include/gtk-2.0/gtk/gtktoolbutton.h:30: In file included from /usr/local/include/gtk-2.0/gtk/gtktoolitem.h:31: /usr/local/include/gtk-2.0/gtk/gtktooltips.h:73:3: warning: 'GTimeVal' is deprecated: Use 'GDateTime' instead [-Wdeprecated-declarations] 73 | GTimeVal last_popdown; | ^ /usr/local/include/glib-2.0/glib/gtypes.h:620:35: note: 'GTimeVal' has been explicitly marked deprecated here 620 | typedef struct _GTimeVal GTimeVal GLIB_DEPRECATED_TYPE_IN_2_62_FOR(GDateTime); | ^ /usr/local/include/glib-2.0/glib/glib-visibility.h:656:45: note: expanded from macro 'GLIB_DEPRECATED_TYPE_IN_2_62_FOR' 656 | #define GLIB_DEPRECATED_TYPE_IN_2_62_FOR(f) GLIB_DEPRECATED_TYPE_FOR (f) | ^ /usr/local/include/glib-2.0/glib/gmacros.h:1365:37: note: expanded from macro 'GLIB_DEPRECATED_TYPE_FOR' 1365 | #define GLIB_DEPRECATED_TYPE_FOR(f) G_DEPRECATED_FOR(f) | ^ /usr/local/include/glib-2.0/glib/gmacros.h:1313:44: note: expanded from macro 'G_DEPRECATED_FOR' 1313 | #define G_DEPRECATED_FOR(f) __attribute__((__deprecated__("Use '" #f "' instead"))) | ^ 3 warnings generated. cc -c -DHAVE_CONFIG_H -DLOCALEDIR=/usr/local/share/locale -DSANELOCALEDIR=/usr/local/share/locale -I. -I. -I../include -I../include -I/usr/local/include -I/usr/local/include -D_GNU_SOURCE -I../intl -DV_MAJOR=0 -DV_MINOR=999 -DSANE_V_MAJOR=1 -DPATH_XSANE_DOC_DIR=/usr/local/share/doc/xsane/ -DPATH_SANE_DATA_DIR=/usr/local/share/ -O2 -pipe -Wall -I/usr/local/include -I/usr/local/include/gimp-2.0 -I/usr/local/include/gegl-0.4 -I/usr/local/include -I/usr/local/include/json-glib-1.0 -I/usr/local/include/babl-0.1 -I/usr/local/include/gtk-2.0 -I/usr/local/lib/gtk-2.0/include -I/usr/local/include/pango-1.0 -I/usr/local/include/gio-unix-2.0 -I/usr/X11R6/include -I/usr/local/include/atk-1.0 -I/usr/local/include/gdk-pixbuf-2.0 -pthread -I/usr/local/include/fribidi -I/usr/local/include/cairo -I/usr/local/include/libpng16 -I/usr/X11R6/include/pixman-1 -I/usr/local/include/harfbuzz -I/usr/X11R6/include/freetype2 -I/usr/local/include/glib-2.0 -I/usr/local/lib/glib-2.0/include xsane-setup.c In file included from xsane-setup.c:25: In file included from ./xsane.h:45: ../include/getopt.h:104:12: warning: a function declaration without a prototype is deprecated in all versions of C and is treated as a zero-parameter prototype in C23, conflicting with a subsequent declaration [-Wdeprecated-non-prototype] 104 | extern int getopt (); | ^ /usr/include/unistd.h:389:6: note: conflicting prototype is here 389 | int getopt(int, char * const *, const char *); | ^ In file included from xsane-setup.c:25: In file included from ./xsane.h:70: In file included from /usr/local/include/gtk-2.0/gtk/gtk.h:33: In file included from /usr/local/include/gtk-2.0/gtk/gtkaboutdialog.h:32: In file included from /usr/local/include/gtk-2.0/gtk/gtkdialog.h:35: In file included from /usr/local/include/gtk-2.0/gtk/gtkwindow.h:36: In file included from /usr/local/include/gtk-2.0/gtk/gtkbin.h:35: In file included from /usr/local/include/gtk-2.0/gtk/gtkcontainer.h:35: In file included from /usr/local/include/gtk-2.0/gtk/gtkwidget.h:36: In file included from /usr/local/include/gtk-2.0/gtk/gtkobject.h:37: /usr/local/include/gtk-2.0/gtk/gtktypeutils.h:236:34: warning: 'GTypeDebugFlags' is deprecated [-Wdeprecated-declarations] 236 | void gtk_type_init (GTypeDebugFlags debug_flags); | ^ /usr/local/include/glib-2.0/gobject/gtype.h:731:36: note: 'GTypeDebugFlags' has been explicitly marked deprecated here 731 | } G_GNUC_FLAG_ENUM GTypeDebugFlags GOBJECT_DEPRECATED_TYPE_IN_2_36; | ^ /usr/local/include/glib-2.0/gobject/gobject-visibility.h:213:41: note: expanded from macro 'GOBJECT_DEPRECATED_TYPE_IN_2_36' 213 | #define GOBJECT_DEPRECATED_TYPE_IN_2_36 GLIB_DEPRECATED_TYPE | ^ /usr/local/include/glib-2.0/glib/gmacros.h:1364:30: note: expanded from macro 'GLIB_DEPRECATED_TYPE' 1364 | #define GLIB_DEPRECATED_TYPE G_DEPRECATED | ^ /usr/local/include/glib-2.0/glib/gmacros.h:1303:37: note: expanded from macro 'G_DEPRECATED' 1303 | #define G_DEPRECATED __attribute__((__deprecated__)) | ^ In file included from xsane-setup.c:25: In file included from ./xsane.h:70: In file included from /usr/local/include/gtk-2.0/gtk/gtk.h:126: In file included from /usr/local/include/gtk-2.0/gtk/gtkmenutoolbutton.h:30: In file included from /usr/local/include/gtk-2.0/gtk/gtktoolbutton.h:30: In file included from /usr/local/include/gtk-2.0/gtk/gtktoolitem.h:31: /usr/local/include/gtk-2.0/gtk/gtktooltips.h:73:3: warning: 'GTimeVal' is deprecated: Use 'GDateTime' instead [-Wdeprecated-declarations] 73 | GTimeVal last_popdown; | ^ /usr/local/include/glib-2.0/glib/gtypes.h:620:35: note: 'GTimeVal' has been explicitly marked deprecated here 620 | typedef struct _GTimeVal GTimeVal GLIB_DEPRECATED_TYPE_IN_2_62_FOR(GDateTime); | ^ /usr/local/include/glib-2.0/glib/glib-visibility.h:656:45: note: expanded from macro 'GLIB_DEPRECATED_TYPE_IN_2_62_FOR' 656 | #define GLIB_DEPRECATED_TYPE_IN_2_62_FOR(f) GLIB_DEPRECATED_TYPE_FOR (f) | ^ /usr/local/include/glib-2.0/glib/gmacros.h:1365:37: note: expanded from macro 'GLIB_DEPRECATED_TYPE_FOR' 1365 | #define GLIB_DEPRECATED_TYPE_FOR(f) G_DEPRECATED_FOR(f) | ^ /usr/local/include/glib-2.0/glib/gmacros.h:1313:44: note: expanded from macro 'G_DEPRECATED_FOR' 1313 | #define G_DEPRECATED_FOR(f) __attribute__((__deprecated__("Use '" #f "' instead"))) | ^ xsane-setup.c:312:27: warning: cast to smaller integer type 'int' from 'gpointer' (aka 'void *') [-Wvoid-pointer-to-int-cast] 312 | preferences.printernr = (int) data; | ^~~~~~~~~~ xsane-setup.c:331:106: warning: cast to 'void *' from smaller integer type 'int' [-Wint-to-void-pointer-cast] 331 | g_signal_connect(GTK_OBJECT(printer_item), "activate", (GtkSignalFunc) xsane_setup_printer_callback, (void *) i); | ^~~~~~~~~~ /usr/local/include/glib-2.0/gobject/gsignal.h:549:73: note: expanded from macro 'g_signal_connect' 549 | g_signal_connect_data ((instance), (detailed_signal), (c_handler), (data), NULL, (GConnectFlags) 0) | ^~~~ xsane-setup.c:457:38: warning: cast to smaller integer type 'int' from 'gpointer' (aka 'void *') [-Wvoid-pointer-to-int-cast] 457 | xsane_setup.filename_counter_len = (int) data; | ^~~~~~~~~~ xsane-setup.c:467:39: warning: cast to smaller integer type 'int' from 'gpointer' (aka 'void *') [-Wvoid-pointer-to-int-cast] 467 | xsane_setup.tiff_compression16_nr = (int) data; | ^~~~~~~~~~ xsane-setup.c:476:38: warning: cast to smaller integer type 'int' from 'gpointer' (aka 'void *') [-Wvoid-pointer-to-int-cast] 476 | xsane_setup.tiff_compression8_nr = (int) data; | ^~~~~~~~~~ xsane-setup.c:484:38: warning: cast to smaller integer type 'int' from 'gpointer' (aka 'void *') [-Wvoid-pointer-to-int-cast] 484 | xsane_setup.tiff_compression1_nr = (int) data; | ^~~~~~~~~~ xsane-setup.c:572:28: warning: cast to smaller integer type 'int' from 'gpointer' (aka 'void *') [-Wvoid-pointer-to-int-cast] 572 | preferences.cms_intent = (int) gtk_object_get_data(GTK_OBJECT(gtk_menu_get_active(GTK_MENU(gtk_option_menu_get_menu(GTK_OPTION_MENU(xsane_setup.cms_intent_option_menu))))), "Selection"); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ xsane-setup.c:846:13: warning: cast to smaller integer type 'int' from 'gpointer' (aka 'void *') [-Wvoid-pointer-to-int-cast] 846 | int mask = (int) data; | ^~~~~~~~~~ xsane-setup.c:1753:132: warning: cast to 'void *' from smaller integer type 'int' [-Wint-to-void-pointer-cast] 1753 | g_signal_connect(GTK_OBJECT(filename_counter_len_item), "activate", (GtkSignalFunc) xsane_setup_filename_counter_len_callback, (void *) i); | ^~~~~~~~~~ /usr/local/include/glib-2.0/gobject/gsignal.h:549:73: note: expanded from macro 'g_signal_connect' 549 | g_signal_connect_data ((instance), (detailed_signal), (c_handler), (data), NULL, (GConnectFlags) 0) | ^~~~ xsane-setup.c:1986:126: warning: cast to 'void *' from smaller integer type 'int' [-Wint-to-void-pointer-cast] 1986 | g_signal_connect(GTK_OBJECT(tiff_compression_item), "activate", (GtkSignalFunc) xsane_setup_tiff_compression16_callback, (void *) tiff_compression16_strings[i-1].number); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /usr/local/include/glib-2.0/gobject/gsignal.h:549:73: note: expanded from macro 'g_signal_connect' 549 | g_signal_connect_data ((instance), (detailed_signal), (c_handler), (data), NULL, (GConnectFlags) 0) | ^~~~ xsane-setup.c:2022:125: warning: cast to 'void *' from smaller integer type 'int' [-Wint-to-void-pointer-cast] 2022 | g_signal_connect(GTK_OBJECT(tiff_compression_item), "activate", (GtkSignalFunc) xsane_setup_tiff_compression8_callback, (void *) tiff_compression8_strings[i-1].number); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /usr/local/include/glib-2.0/gobject/gsignal.h:549:73: note: expanded from macro 'g_signal_connect' 549 | g_signal_connect_data ((instance), (detailed_signal), (c_handler), (data), NULL, (GConnectFlags) 0) | ^~~~ xsane-setup.c:2059:125: warning: cast to 'void *' from smaller integer type 'int' [-Wint-to-void-pointer-cast] 2059 | g_signal_connect(GTK_OBJECT(tiff_compression_item), "activate", (GtkSignalFunc) xsane_setup_tiff_compression1_callback, (void *) tiff_compression1_strings[i-1].number); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /usr/local/include/glib-2.0/gobject/gsignal.h:549:73: note: expanded from macro 'g_signal_connect' 549 | g_signal_connect_data ((instance), (detailed_signal), (c_handler), (data), NULL, (GConnectFlags) 0) | ^~~~ xsane-setup.c:2254:121: warning: cast to 'void *' from smaller integer type 'int' [-Wint-to-void-pointer-cast] 2254 | g_signal_connect(GTK_OBJECT(button), "clicked", (GtkSignalFunc) xsane_fax_notebook_set_faxprogram_default_callback, (void *) i); | ^~~~~~~~~~ /usr/local/include/glib-2.0/gobject/gsignal.h:549:73: note: expanded from macro 'g_signal_connect' 549 | g_signal_connect_data ((instance), (detailed_signal), (c_handler), (data), NULL, (GConnectFlags) 0) | ^~~~ xsane-setup.c:2560:130: warning: cast to 'void *' from smaller integer type 'int' [-Wint-to-void-pointer-cast] 2560 | g_signal_connect(GTK_OBJECT(authentication_menu_item), "activate", (GtkSignalFunc) xsane_setup_authentication_type_callback, (void *) authentication_strings[i-1].number); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /usr/local/include/glib-2.0/gobject/gsignal.h:549:73: note: expanded from macro 'g_signal_connect' 549 | g_signal_connect_data ((instance), (detailed_signal), (c_handler), (data), NULL, (GConnectFlags) 0) | ^~~~ xsane-setup.c:2929:122: warning: cast to 'void *' from smaller integer type 'int' [-Wint-to-void-pointer-cast] 2929 | g_signal_connect(GTK_OBJECT(show_range_mode_item), "activate", (GtkSignalFunc) xsane_setup_show_range_mode_callback, (void *) show_range_mode_strings[i-1].number); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /usr/local/include/glib-2.0/gobject/gsignal.h:549:73: note: expanded from macro 'g_signal_connect' 549 | g_signal_connect_data ((instance), (detailed_signal), (c_handler), (data), NULL, (GConnectFlags) 0) | ^~~~ xsane-setup.c:3132:38: warning: cast to smaller integer type 'int' from 'gpointer' (aka 'void *') [-Wvoid-pointer-to-int-cast] 3132 | xsane_setup.email_authentication = (int) data; | ^~~~~~~~~~ xsane-setup.c:3141:33: warning: cast to smaller integer type 'int' from 'gpointer' (aka 'void *') [-Wvoid-pointer-to-int-cast] 3141 | xsane_setup.show_range_mode = (int) data; | ^~~~~~~~~~ xsane-setup.c:3148:30: warning: cast to smaller integer type 'int' from 'gpointer' (aka 'void *') [-Wvoid-pointer-to-int-cast] 3148 | xsane_setup.lineart_mode = (int) data; | ^~~~~~~~~~ xsane-setup.c:3171:39: warning: cast to smaller integer type 'int' from 'gpointer' (aka 'void *') [-Wvoid-pointer-to-int-cast] 3171 | xsane_setup.preview_pipette_range = (int) data; | ^~~~~~~~~~ xsane-setup.c:3240:116: warning: cast to 'void *' from smaller integer type 'int' [-Wint-to-void-pointer-cast] 3240 | g_signal_connect(GTK_OBJECT(lineart_mode_item), "activate", (GtkSignalFunc) xsane_setup_lineart_mode_callback, (void *) lineart_mode_strings[i-1].number); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /usr/local/include/glib-2.0/gobject/gsignal.h:549:73: note: expanded from macro 'g_signal_connect' 549 | g_signal_connect_data ((instance), (detailed_signal), (c_handler), (data), NULL, (GConnectFlags) 0) | ^~~~ xsane-setup.c:3364:22: warning: variable 'status' set but not used [-Wunused-but-set-variable] 3364 | SANE_Status status; | ^ xsane-setup.c:3464:134: warning: cast to 'void *' from smaller integer type 'int' [-Wint-to-void-pointer-cast] 3464 | g_signal_connect(GTK_OBJECT(preview_pipette_range_item), "activate", (GtkSignalFunc) xsane_setup_preview_pipette_range_callback, (void *) j); | ^~~~~~~~~~ /usr/local/include/glib-2.0/gobject/gsignal.h:549:73: note: expanded from macro 'g_signal_connect' 549 | g_signal_connect_data ((instance), (detailed_signal), (c_handler), (data), NULL, (GConnectFlags) 0) | ^~~~ 25 warnings generated. cc -c -DHAVE_CONFIG_H -DLOCALEDIR=/usr/local/share/locale -DSANELOCALEDIR=/usr/local/share/locale -I. -I. -I../include -I../include -I/usr/local/include -I/usr/local/include -D_GNU_SOURCE -I../intl -DV_MAJOR=0 -DV_MINOR=999 -DSANE_V_MAJOR=1 -DPATH_XSANE_DOC_DIR=/usr/local/share/doc/xsane/ -DPATH_SANE_DATA_DIR=/usr/local/share/ -O2 -pipe -Wall -I/usr/local/include -I/usr/local/include/gimp-2.0 -I/usr/local/include/gegl-0.4 -I/usr/local/include -I/usr/local/include/json-glib-1.0 -I/usr/local/include/babl-0.1 -I/usr/local/include/gtk-2.0 -I/usr/local/lib/gtk-2.0/include -I/usr/local/include/pango-1.0 -I/usr/local/include/gio-unix-2.0 -I/usr/X11R6/include -I/usr/local/include/atk-1.0 -I/usr/local/include/gdk-pixbuf-2.0 -pthread -I/usr/local/include/fribidi -I/usr/local/include/cairo -I/usr/local/include/libpng16 -I/usr/X11R6/include/pixman-1 -I/usr/local/include/harfbuzz -I/usr/X11R6/include/freetype2 -I/usr/local/include/glib-2.0 -I/usr/local/lib/glib-2.0/include xsane-save.c In file included from xsane-save.c:25: In file included from ./xsane.h:45: ../include/getopt.h:104:12: warning: a function declaration without a prototype is deprecated in all versions of C and is treated as a zero-parameter prototype in C23, conflicting with a subsequent declaration [-Wdeprecated-non-prototype] 104 | extern int getopt (); | ^ /usr/include/unistd.h:389:6: note: conflicting prototype is here 389 | int getopt(int, char * const *, const char *); | ^ In file included from xsane-save.c:25: In file included from ./xsane.h:70: In file included from /usr/local/include/gtk-2.0/gtk/gtk.h:33: In file included from /usr/local/include/gtk-2.0/gtk/gtkaboutdialog.h:32: In file included from /usr/local/include/gtk-2.0/gtk/gtkdialog.h:35: In file included from /usr/local/include/gtk-2.0/gtk/gtkwindow.h:36: In file included from /usr/local/include/gtk-2.0/gtk/gtkbin.h:35: In file included from /usr/local/include/gtk-2.0/gtk/gtkcontainer.h:35: In file included from /usr/local/include/gtk-2.0/gtk/gtkwidget.h:36: In file included from /usr/local/include/gtk-2.0/gtk/gtkobject.h:37: /usr/local/include/gtk-2.0/gtk/gtktypeutils.h:236:34: warning: 'GTypeDebugFlags' is deprecated [-Wdeprecated-declarations] 236 | void gtk_type_init (GTypeDebugFlags debug_flags); | ^ /usr/local/include/glib-2.0/gobject/gtype.h:731:36: note: 'GTypeDebugFlags' has been explicitly marked deprecated here 731 | } G_GNUC_FLAG_ENUM GTypeDebugFlags GOBJECT_DEPRECATED_TYPE_IN_2_36; | ^ /usr/local/include/glib-2.0/gobject/gobject-visibility.h:213:41: note: expanded from macro 'GOBJECT_DEPRECATED_TYPE_IN_2_36' 213 | #define GOBJECT_DEPRECATED_TYPE_IN_2_36 GLIB_DEPRECATED_TYPE | ^ /usr/local/include/glib-2.0/glib/gmacros.h:1364:30: note: expanded from macro 'GLIB_DEPRECATED_TYPE' 1364 | #define GLIB_DEPRECATED_TYPE G_DEPRECATED | ^ /usr/local/include/glib-2.0/glib/gmacros.h:1303:37: note: expanded from macro 'G_DEPRECATED' 1303 | #define G_DEPRECATED __attribute__((__deprecated__)) | ^ In file included from xsane-save.c:25: In file included from ./xsane.h:70: In file included from /usr/local/include/gtk-2.0/gtk/gtk.h:126: In file included from /usr/local/include/gtk-2.0/gtk/gtkmenutoolbutton.h:30: In file included from /usr/local/include/gtk-2.0/gtk/gtktoolbutton.h:30: In file included from /usr/local/include/gtk-2.0/gtk/gtktoolitem.h:31: /usr/local/include/gtk-2.0/gtk/gtktooltips.h:73:3: warning: 'GTimeVal' is deprecated: Use 'GDateTime' instead [-Wdeprecated-declarations] 73 | GTimeVal last_popdown; | ^ /usr/local/include/glib-2.0/glib/gtypes.h:620:35: note: 'GTimeVal' has been explicitly marked deprecated here 620 | typedef struct _GTimeVal GTimeVal GLIB_DEPRECATED_TYPE_IN_2_62_FOR(GDateTime); | ^ /usr/local/include/glib-2.0/glib/glib-visibility.h:656:45: note: expanded from macro 'GLIB_DEPRECATED_TYPE_IN_2_62_FOR' 656 | #define GLIB_DEPRECATED_TYPE_IN_2_62_FOR(f) GLIB_DEPRECATED_TYPE_FOR (f) | ^ /usr/local/include/glib-2.0/glib/gmacros.h:1365:37: note: expanded from macro 'GLIB_DEPRECATED_TYPE_FOR' 1365 | #define GLIB_DEPRECATED_TYPE_FOR(f) G_DEPRECATED_FOR(f) | ^ /usr/local/include/glib-2.0/glib/gmacros.h:1313:44: note: expanded from macro 'G_DEPRECATED_FOR' 1313 | #define G_DEPRECATED_FOR(f) __attribute__((__deprecated__("Use '" #f "' instead"))) | ^ In file included from xsane-save.c:28: ./xsane-save.h:53:13: warning: a function declaration without a prototype is deprecated in all versions of C and is treated as a zero-parameter prototype in C23, conflicting with a subsequent definition [-Wdeprecated-non-prototype] 53 | extern void xsane_cancel_save(); | ^ xsane-save.c:155:6: note: conflicting prototype is here 155 | void xsane_cancel_save(int *cancel_save) | ^ xsane-save.c:426:6: warning: variable 'items_done' set but not used [-Wunused-but-set-variable] 426 | int items_done; | ^ xsane-save.c:1036:9: warning: variable 'bytes_read' set but not used [-Wunused-but-set-variable] 1036 | size_t bytes_read; | ^ xsane-save.c:1335:9: warning: variable 'bytes_read' set but not used [-Wunused-but-set-variable] 1335 | size_t bytes_read; | ^ xsane-save.c:1536:9: warning: variable 'bytes_read' set but not used [-Wunused-but-set-variable] 1536 | size_t bytes_read; | ^ xsane-save.c:2489:14: warning: variable 'count' set but not used [-Wunused-but-set-variable] 2489 | static int count = 0; | ^ xsane-save.c:2764:14: warning: variable 'cbuflen' set but not used [-Wunused-but-set-variable] 2764 | static int cbuflen = 0; | ^ xsane-save.c:2765:14: warning: variable 'linelen' set but not used [-Wunused-but-set-variable] 2765 | static int linelen = 0; | ^ xsane-save.c:3066:9: warning: variable 'bytes_read' set but not used [-Wunused-but-set-variable] 3066 | size_t bytes_read; | ^ xsane-save.c:3317:9: warning: variable 'bytes_read' set but not used [-Wunused-but-set-variable] 3317 | size_t bytes_read; | ^ xsane-save.c:4379:9: warning: variable 'bytes_read' set but not used [-Wunused-but-set-variable] 4379 | size_t bytes_read; | ^ xsane-save.c:4625:9: warning: variable 'bytes_read' set but not used [-Wunused-but-set-variable] 4625 | size_t bytes_read; | ^ xsane-save.c:4888:9: warning: variable 'bytes_read' set but not used [-Wunused-but-set-variable] 4888 | size_t bytes_read; | ^ xsane-save.c:5078:9: warning: variable 'bytes_read' set but not used [-Wunused-but-set-variable] 5078 | size_t bytes_read; | ^ xsane-save.c:5259:9: warning: variable 'bytes_read' set but not used [-Wunused-but-set-variable] 5259 | size_t bytes_read; | ^ xsane-save.c:5367:9: warning: variable 'bytes_read' set but not used [-Wunused-but-set-variable] 5367 | size_t bytes_read; | ^ xsane-save.c:5476:9: warning: variable 'bytes_read' set but not used [-Wunused-but-set-variable] 5476 | size_t bytes_read; | ^ xsane-save.c:5574:9: warning: variable 'bytes_read' set but not used [-Wunused-but-set-variable] 5574 | size_t bytes_read; | ^ xsane-save.c:5676:9: warning: variable 'bytes_read' set but not used [-Wunused-but-set-variable] 5676 | size_t bytes_read; | ^ xsane-save.c:5772:9: warning: variable 'bytes_read' set but not used [-Wunused-but-set-variable] 5772 | size_t bytes_read; | ^ xsane-save.c:6735:32: warning: implicit conversion from enumeration type 'GimpImageBaseType' to different enumeration type 'GimpImageType' [-Wimplicit-enum-enum-cast] 6735 | GimpImageType image_type = GIMP_GRAY; | ~~~~~~~~~~ ^~~~~~~~~ xsane-save.c:6825:21: warning: implicit conversion from enumeration type 'GimpImageBaseType' to different enumeration type 'GimpImageType' [-Wimplicit-enum-enum-cast] 6825 | image_type = GIMP_RGB; | ~ ^~~~~~~~ xsane-save.c:6831:21: warning: implicit conversion from enumeration type 'GimpImageBaseType' to different enumeration type 'GimpImageType' [-Wimplicit-enum-enum-cast] 6831 | image_type = GIMP_RGB; | ~ ^~~~~~~~ xsane-save.c:6836:78: warning: implicit conversion from enumeration type 'GimpImageType' to different enumeration type 'GimpImageBaseType' [-Wimplicit-enum-enum-cast] 6836 | image_ID = gimp_image_new(image_info.image_width, image_info.image_height, image_type); | ~~~~~~~~~~~~~~ ^~~~~~~~~~ xsane-save.c:6862:11: warning: 'gimp_image_parasite_attach' is deprecated: Use 'gimp_image_attach_parasite' instead [-Wdeprecated-declarations] 6862 | gimp_image_parasite_attach(image_ID, parasite); | ^ /usr/local/include/gimp-2.0/libgimp/gimpimage.h:97:1: note: 'gimp_image_parasite_attach' has been explicitly marked deprecated here 97 | GIMP_DEPRECATED_FOR(gimp_image_attach_parasite) | ^ /usr/local/include/gimp-2.0/libgimpbase/gimpbasetypes.h:43:32: note: expanded from macro 'GIMP_DEPRECATED_FOR' 43 | #define GIMP_DEPRECATED_FOR(f) G_DEPRECATED_FOR(f) | ^ /usr/local/include/glib-2.0/glib/gmacros.h:1313:44: note: expanded from macro 'G_DEPRECATED_FOR' 1313 | #define G_DEPRECATED_FOR(f) __attribute__((__deprecated__("Use '" #f "' instead"))) | ^ xsane-save.c:6897:3: warning: 'gimp_image_add_layer' is deprecated: Use 'gimp_image_insert_layer' instead [-Wdeprecated-declarations] 6897 | gimp_image_add_layer(image_ID, layer_ID, 0); | ^ /usr/local/include/gimp-2.0/libgimp/gimpimage_pdb.h:74:1: note: 'gimp_image_add_layer' has been explicitly marked deprecated here 74 | GIMP_DEPRECATED_FOR(gimp_image_insert_layer) | ^ /usr/local/include/gimp-2.0/libgimpbase/gimpbasetypes.h:43:32: note: expanded from macro 'GIMP_DEPRECATED_FOR' 43 | #define GIMP_DEPRECATED_FOR(f) G_DEPRECATED_FOR(f) | ^ /usr/local/include/glib-2.0/glib/gmacros.h:1313:44: note: expanded from macro 'G_DEPRECATED_FOR' 1313 | #define G_DEPRECATED_FOR(f) __attribute__((__deprecated__("Use '" #f "' instead"))) | ^ xsane-save.c:6898:14: warning: 'gimp_drawable_get' is deprecated: Use 'gimp_drawable_get_buffer' instead [-Wdeprecated-declarations] 6898 | drawable = gimp_drawable_get(layer_ID); | ^ /usr/local/include/gimp-2.0/libgimp/gimpdrawable.h:51:1: note: 'gimp_drawable_get' has been explicitly marked deprecated here 51 | GIMP_DEPRECATED_FOR(gimp_drawable_get_buffer) | ^ /usr/local/include/gimp-2.0/libgimpbase/gimpbasetypes.h:43:32: note: expanded from macro 'GIMP_DEPRECATED_FOR' 43 | #define GIMP_DEPRECATED_FOR(f) G_DEPRECATED_FOR(f) | ^ /usr/local/include/glib-2.0/glib/gmacros.h:1313:44: note: expanded from macro 'G_DEPRECATED_FOR' 1313 | #define G_DEPRECATED_FOR(f) __attribute__((__deprecated__("Use '" #f "' instead"))) | ^ xsane-save.c:6899:3: warning: 'gimp_pixel_rgn_init' is deprecated: Use 'gimp_drawable_get_buffer' instead [-Wdeprecated-declarations] 6899 | gimp_pixel_rgn_init(®ion, drawable, 0, 0, drawable->width, drawable->height, TRUE, FALSE); | ^ /usr/local/include/gimp-2.0/libgimp/gimppixelrgn.h:47:1: note: 'gimp_pixel_rgn_init' has been explicitly marked deprecated here 47 | GIMP_DEPRECATED_FOR(gimp_drawable_get_buffer) | ^ /usr/local/include/gimp-2.0/libgimpbase/gimpbasetypes.h:43:32: note: expanded from macro 'GIMP_DEPRECATED_FOR' 43 | #define GIMP_DEPRECATED_FOR(f) G_DEPRECATED_FOR(f) | ^ /usr/local/include/glib-2.0/glib/gmacros.h:1313:44: note: expanded from macro 'G_DEPRECATED_FOR' 1313 | #define G_DEPRECATED_FOR(f) __attribute__((__deprecated__("Use '" #f "' instead"))) | ^ xsane-save.c:6930:17: warning: 'gimp_pixel_rgn_set_rect' is deprecated: Use 'gegl_buffer_set' instead [-Wdeprecated-declarations] 6930 | gimp_pixel_rgn_set_rect(®ion, tile, 0, y - tile_height, image_info.image_width, tile_height); | ^ /usr/local/include/gimp-2.0/libgimp/gimppixelrgn.h:103:1: note: 'gimp_pixel_rgn_set_rect' has been explicitly marked deprecated here 103 | GIMP_DEPRECATED_FOR(gegl_buffer_set) | ^ /usr/local/include/gimp-2.0/libgimpbase/gimpbasetypes.h:43:32: note: expanded from macro 'GIMP_DEPRECATED_FOR' 43 | #define GIMP_DEPRECATED_FOR(f) G_DEPRECATED_FOR(f) | ^ /usr/local/include/glib-2.0/glib/gmacros.h:1313:44: note: expanded from macro 'G_DEPRECATED_FOR' 1313 | #define G_DEPRECATED_FOR(f) __attribute__((__deprecated__("Use '" #f "' instead"))) | ^ xsane-save.c:6971:13: warning: 'gimp_pixel_rgn_set_rect' is deprecated: Use 'gegl_buffer_set' instead [-Wdeprecated-declarations] 6971 | gimp_pixel_rgn_set_rect(®ion, tile, 0, y - tile_height, image_info.image_width, tile_height); | ^ /usr/local/include/gimp-2.0/libgimp/gimppixelrgn.h:103:1: note: 'gimp_pixel_rgn_set_rect' has been explicitly marked deprecated here 103 | GIMP_DEPRECATED_FOR(gegl_buffer_set) | ^ /usr/local/include/gimp-2.0/libgimpbase/gimpbasetypes.h:43:32: note: expanded from macro 'GIMP_DEPRECATED_FOR' 43 | #define GIMP_DEPRECATED_FOR(f) G_DEPRECATED_FOR(f) | ^ /usr/local/include/glib-2.0/glib/gmacros.h:1313:44: note: expanded from macro 'G_DEPRECATED_FOR' 1313 | #define G_DEPRECATED_FOR(f) __attribute__((__deprecated__("Use '" #f "' instead"))) | ^ xsane-save.c:7009:13: warning: 'gimp_pixel_rgn_set_rect' is deprecated: Use 'gegl_buffer_set' instead [-Wdeprecated-declarations] 7009 | gimp_pixel_rgn_set_rect(®ion, tile, 0, y - tile_height, image_info.image_width, tile_height); | ^ /usr/local/include/gimp-2.0/libgimp/gimppixelrgn.h:103:1: note: 'gimp_pixel_rgn_set_rect' has been explicitly marked deprecated here 103 | GIMP_DEPRECATED_FOR(gegl_buffer_set) | ^ /usr/local/include/gimp-2.0/libgimpbase/gimpbasetypes.h:43:32: note: expanded from macro 'GIMP_DEPRECATED_FOR' 43 | #define GIMP_DEPRECATED_FOR(f) G_DEPRECATED_FOR(f) | ^ /usr/local/include/glib-2.0/glib/gmacros.h:1313:44: note: expanded from macro 'G_DEPRECATED_FOR' 1313 | #define G_DEPRECATED_FOR(f) __attribute__((__deprecated__("Use '" #f "' instead"))) | ^ xsane-save.c:7057:13: warning: 'gimp_pixel_rgn_set_rect' is deprecated: Use 'gegl_buffer_set' instead [-Wdeprecated-declarations] 7057 | gimp_pixel_rgn_set_rect(®ion, tile, 0, y - tile_height, image_info.image_width, tile_height); | ^ /usr/local/include/gimp-2.0/libgimp/gimppixelrgn.h:103:1: note: 'gimp_pixel_rgn_set_rect' has been explicitly marked deprecated here 103 | GIMP_DEPRECATED_FOR(gegl_buffer_set) | ^ /usr/local/include/gimp-2.0/libgimpbase/gimpbasetypes.h:43:32: note: expanded from macro 'GIMP_DEPRECATED_FOR' 43 | #define GIMP_DEPRECATED_FOR(f) G_DEPRECATED_FOR(f) | ^ /usr/local/include/glib-2.0/glib/gmacros.h:1313:44: note: expanded from macro 'G_DEPRECATED_FOR' 1313 | #define G_DEPRECATED_FOR(f) __attribute__((__deprecated__("Use '" #f "' instead"))) | ^ xsane-save.c:7098:13: warning: 'gimp_pixel_rgn_set_rect' is deprecated: Use 'gegl_buffer_set' instead [-Wdeprecated-declarations] 7098 | gimp_pixel_rgn_set_rect(®ion, tile, 0, y - tile_height, image_info.image_width, tile_height); | ^ /usr/local/include/gimp-2.0/libgimp/gimppixelrgn.h:103:1: note: 'gimp_pixel_rgn_set_rect' has been explicitly marked deprecated here 103 | GIMP_DEPRECATED_FOR(gegl_buffer_set) | ^ /usr/local/include/gimp-2.0/libgimpbase/gimpbasetypes.h:43:32: note: expanded from macro 'GIMP_DEPRECATED_FOR' 43 | #define GIMP_DEPRECATED_FOR(f) G_DEPRECATED_FOR(f) | ^ /usr/local/include/glib-2.0/glib/gmacros.h:1313:44: note: expanded from macro 'G_DEPRECATED_FOR' 1313 | #define G_DEPRECATED_FOR(f) __attribute__((__deprecated__("Use '" #f "' instead"))) | ^ xsane-save.c:7171:5: warning: 'gimp_pixel_rgn_set_rect' is deprecated: Use 'gegl_buffer_set' instead [-Wdeprecated-declarations] 7171 | gimp_pixel_rgn_set_rect(®ion, tile, 0, y - remaining, image_info.image_width, remaining); | ^ /usr/local/include/gimp-2.0/libgimp/gimppixelrgn.h:103:1: note: 'gimp_pixel_rgn_set_rect' has been explicitly marked deprecated here 103 | GIMP_DEPRECATED_FOR(gegl_buffer_set) | ^ /usr/local/include/gimp-2.0/libgimpbase/gimpbasetypes.h:43:32: note: expanded from macro 'GIMP_DEPRECATED_FOR' 43 | #define GIMP_DEPRECATED_FOR(f) G_DEPRECATED_FOR(f) | ^ /usr/local/include/glib-2.0/glib/gmacros.h:1313:44: note: expanded from macro 'G_DEPRECATED_FOR' 1313 | #define G_DEPRECATED_FOR(f) __attribute__((__deprecated__("Use '" #f "' instead"))) | ^ xsane-save.c:7174:3: warning: 'gimp_drawable_flush' is deprecated: Use 'gegl_buffer_flush' instead [-Wdeprecated-declarations] 7174 | gimp_drawable_flush(drawable); | ^ /usr/local/include/gimp-2.0/libgimp/gimpdrawable.h:55:1: note: 'gimp_drawable_flush' has been explicitly marked deprecated here 55 | GIMP_DEPRECATED_FOR(gegl_buffer_flush) | ^ /usr/local/include/gimp-2.0/libgimpbase/gimpbasetypes.h:43:32: note: expanded from macro 'GIMP_DEPRECATED_FOR' 43 | #define GIMP_DEPRECATED_FOR(f) G_DEPRECATED_FOR(f) | ^ /usr/local/include/glib-2.0/glib/gmacros.h:1313:44: note: expanded from macro 'G_DEPRECATED_FOR' 1313 | #define G_DEPRECATED_FOR(f) __attribute__((__deprecated__("Use '" #f "' instead"))) | ^ xsane-save.c:7176:3: warning: 'gimp_drawable_detach' is deprecated [-Wdeprecated-declarations] 7176 | gimp_drawable_detach(drawable); | ^ /usr/local/include/gimp-2.0/libgimp/gimpdrawable.h:53:1: note: 'gimp_drawable_detach' has been explicitly marked deprecated here 53 | GIMP_DEPRECATED | ^ /usr/local/include/gimp-2.0/libgimpbase/gimpbasetypes.h:42:25: note: expanded from macro 'GIMP_DEPRECATED' 42 | #define GIMP_DEPRECATED G_DEPRECATED | ^ /usr/local/include/glib-2.0/glib/gmacros.h:1303:37: note: expanded from macro 'G_DEPRECATED' 1303 | #define G_DEPRECATED __attribute__((__deprecated__)) | ^ xsane-save.c:6749:9: warning: variable 'bytes_read' set but not used [-Wunused-but-set-variable] 6749 | size_t bytes_read; | ^ xsane-save.c:7214:10: warning: variable 'bytes_written' set but not used [-Wunused-but-set-variable] 7214 | ssize_t bytes_written; | ^ xsane-save.c:7245:10: warning: variable 'bytes_written' set but not used [-Wunused-but-set-variable] 7245 | ssize_t bytes_written; | ^ xsane-save.c:7280:10: warning: variable 'bytes_written' set but not used [-Wunused-but-set-variable] 7280 | ssize_t bytes_written; | ^ xsane-save.c:7332:10: warning: variable 'bytes_written' set but not used [-Wunused-but-set-variable] 7332 | ssize_t bytes_written; | ^ xsane-save.c:7369:10: warning: variable 'bytes_written' set but not used [-Wunused-but-set-variable] 7369 | ssize_t bytes_written; | ^ xsane-save.c:7380:10: warning: variable 'bytes_written' set but not used [-Wunused-but-set-variable] 7380 | ssize_t bytes_written; | ^ xsane-save.c:7400:10: warning: variable 'bytes_written' set but not used [-Wunused-but-set-variable] 7400 | ssize_t bytes_written; | ^ xsane-save.c:7426:10: warning: variable 'bytes_written' set but not used [-Wunused-but-set-variable] 7426 | ssize_t bytes_written; | ^ xsane-save.c:7460:10: warning: variable 'bytes_written' set but not used [-Wunused-but-set-variable] 7460 | ssize_t bytes_written; | ^ xsane-save.c:7531:26: error: incompatible pointer types passing 'struct sockaddr_in *' to parameter of type 'const struct sockaddr *' [-Wincompatible-pointer-types] 7531 | if (connect(fd_socket, &sin, sizeof(sin))) | ^~~~ /usr/include/sys/socket.h:575:41: note: passing argument to parameter here 575 | int connect(int, const struct sockaddr *, socklen_t); | ^ xsane-save.c:7550:10: warning: variable 'bytes_written' set but not used [-Wunused-but-set-variable] 7550 | ssize_t bytes_written; | ^ xsane-save.c:7606:10: warning: variable 'bytes_written' set but not used [-Wunused-but-set-variable] 7606 | ssize_t bytes_written; | ^ xsane-save.c:7706:10: warning: variable 'bytes_written' set but not used [-Wunused-but-set-variable] 7706 | ssize_t bytes_written; | ^ xsane-save.c:7862:10: warning: variable 'bytes_written' set but not used [-Wunused-but-set-variable] 7862 | ssize_t bytes_written; | ^ 53 warnings and 1 error generated. gmake[1]: *** [Makefile:63: xsane-save.o] Error 1 gmake[1]: Leaving directory '/usr/obj/ports/xsane-0.999-gimp/xsane-0.999/src' gmake: *** [Makefile:63: all-recursive] Error 1 *** Error 2 in graphics/xsane (/usr/ports/infrastructure/mk/bsd.port.mk:3079 '/usr/obj/ports/xsane-0.999-gimp/.build_done': @cd /usr/obj/por...) *** Error 2 in graphics/xsane (/usr/ports/infrastructure/mk/bsd.port.mk:2722 'build': @lock=xsane-0.999p7-gimp; export _LOCKS_HELD=" xsane-...) ===> Exiting graphics/xsane,gimp with an error *** Error 1 in /usr/ports (infrastructure/mk/bsd.port.subdir.mk:144 'build': @: ${echo_msg:=echo}; : ${target:=build}; for i in ; do eval...) >>> Ended at 1779880687.01 max_stuck=48.33/depends=68.32/show-prepare-results=4.77/build=154.77 Error: job failed with 512 on localhost at 1779880687