==> Building on s ==> Checking for remote environment... ==> Syncing package to remote host... sending incremental file list ./ PKGBUILD 1,417 73% 0.00kB/s 0:00:00 1,939 100% 509.77kB/s 0:00:00 (xfr#1, to-chk=3/5) ghostscript918.patch 700 97% 683.59kB/s 0:00:00 720 100% 703.12kB/s 0:00:00 (xfr#2, to-chk=2/5) graphviz-4.0.0-1.log 443 100% 432.62kB/s 0:00:00 443 100% 432.62kB/s 0:00:00 (xfr#3, to-chk=1/5) install 157 100% 153.32kB/s 0:00:00 157 100% 153.32kB/s 0:00:00 (xfr#4, to-chk=0/5) sent 947 bytes received 137 bytes 433.60 bytes/sec total size is 3,004 speedup is 2.77 ==> Applying RISC-V patches... sending incremental file list ./ sent 83 bytes received 19 bytes 68.00 bytes/sec total size is 588 speedup is 5.76 patching file PKGBUILD ==> Patching arch to riscv64... ==> Running extra-riscv64-build -- -d /home/felix/packages/riscv64-pkg-cache:/var/cache/pacman/pkg -l felix37 on remote host... [?25l:: Synchronizing package databases... core downloading... extra downloading... community downloading... :: Starting full system upgrade... there is nothing to do [?25h==> Building in chroot for [extra] (riscv64)... ==> Synchronizing chroot copy [/var/lib/archbuild/extra-riscv64/root] -> [felix37]...done ==> Making package: graphviz 4.0.0-1 (Tue Jun 14 13:23:29 2022) ==> Retrieving sources...  -> Downloading graphviz-4.0.0.tar.gz... % Total % Received % Xferd Average Speed Time Time Time Current Dload Upload Total Spent Left Speed 0 0 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0 100 3597k 0 3597k 0 0 5844k 0 --:--:-- --:--:-- --:--:-- 5839k 100 10.6M 0 10.6M 0 0 6758k 0 --:--:-- 0:00:01 --:--:-- 6756k 100 19.0M 0 19.0M 0 0 7488k 0 --:--:-- 0:00:02 --:--:-- 7486k 100 29.0M 0 29.0M 0 0 8676k 0 --:--:-- 0:00:03 --:--:-- 8678k  -> Found ghostscript918.patch ==> Validating source files with sha256sums... graphviz-4.0.0.tar.gz ... Passed ghostscript918.patch ... Passed ==> Making package: graphviz 4.0.0-1 (Tue Jun 14 13:23:44 2022) ==> Checking runtime dependencies... ==> Installing missing dependencies... [?25lresolving dependencies... looking for conflicting packages... warning: dependency cycle detected: warning: harfbuzz will be installed before its freetype2 dependency Package (61) New Version Net Change extra/aom 3.3.0-1 4.02 MiB extra/avahi 0.8+22+gfd482a7-3 1.70 MiB extra/cairo 1.17.6-2 3.10 MiB extra/dav1d 1.0.0-1 0.55 MiB core/dbus 1.14.0-1 0.77 MiB extra/fontconfig 2:2.14.0-1 0.97 MiB extra/freetype2 2.12.1-1 1.47 MiB extra/fribidi 1.0.12-1 0.20 MiB extra/gdk-pixbuf2 2.42.8-1 2.92 MiB extra/giflib 5.2.1-2 0.22 MiB extra/graphite 1:1.3.14-2 0.63 MiB extra/harfbuzz 4.3.0-1 5.42 MiB extra/ijs 0.35-4 0.11 MiB extra/jbig2dec 0.19-1 0.12 MiB extra/lcms2 2.13.1-1 0.58 MiB community/libavif 0.10.1-1.1 0.27 MiB extra/libcups 1:2.4.2-3 0.74 MiB extra/libdaemon 0.14-5 0.05 MiB extra/libdatrie 0.2.13-1 0.05 MiB extra/libde265 1.0.8-2 0.79 MiB extra/libheif 1.12.0-3 0.63 MiB extra/libice 1.0.10-4 0.33 MiB extra/libidn 1.38-1 0.73 MiB extra/libjpeg-turbo 2.1.3-2 1.36 MiB extra/libpaper 1.1.28-2 0.08 MiB extra/libsm 1.2.3-3 0.25 MiB extra/libthai 0.1.29-1 0.64 MiB extra/libtiff 4.4.0-1 2.64 MiB core/libusb 1.0.26-1 0.18 MiB extra/libwebp 1.2.2-1 0.72 MiB extra/libx11 1.8-1 9.90 MiB extra/libxau 1.0.9-4 0.02 MiB extra/libxcb 1.15-1 3.59 MiB extra/libxdmcp 1.1.3-4 0.12 MiB extra/libxext 1.3.4-4 0.29 MiB extra/libxft 2.3.4-1 0.09 MiB extra/libxmu 1.1.3-3 0.32 MiB extra/libxpm 3.5.13-3 0.12 MiB extra/libxrender 0.9.10-5 0.06 MiB extra/libxt 1.2.1-1 1.91 MiB community/libyuv r2322+3aebf69d-1 1.06 MiB core/lzo 2.10-3 0.34 MiB extra/netpbm 10.73.37-1 5.85 MiB extra/openjpeg2 2.5.0-1 13.25 MiB extra/pixman 0.40.0-2 0.40 MiB extra/rav1e 0.4.1-2 3.94 MiB core/run-parts 5.5-1 0.04 MiB extra/shared-mime-info 2.0+144+g13695c7-1 4.46 MiB extra/svt-av1 1.1.0-1 3.32 MiB extra/x265 3.5-3 3.62 MiB extra/xcb-proto 1.15-1 0.88 MiB extra/xorgproto 2022.1-1 1.43 MiB extra/gd 2.3.3-4 0.55 MiB extra/ghostscript 9.56.1-1 46.26 MiB extra/gsfonts 20200910-2 3.11 MiB extra/gts 0.7.6.121130-2 0.50 MiB core/libnsl 2.0.0-2 0.06 MiB extra/libpng 1.6.37-3 0.46 MiB extra/librsvg 2:2.54.3-1 12.74 MiB extra/libxaw 1.0.14-1 1.55 MiB extra/pango 1:1.50.7-1 2.17 MiB Total Installed Size: 154.66 MiB :: Proceed with installation? [Y/n] checking keyring... checking package integrity... loading package files... checking for file conflicts... :: Processing package changes... installing libpng... installing graphite... installing harfbuzz... Optional dependencies for harfbuzz cairo: hb-view program [pending] chafa: hb-view program installing freetype2... installing fontconfig... Creating fontconfig configuration... Rebuilding fontconfig cache... installing libice... installing libsm... installing xcb-proto... installing libxdmcp... installing libxau... installing libxcb... installing xorgproto... installing libx11... installing libxt... installing libxext... installing libxpm... installing libjpeg-turbo... Optional dependencies for libjpeg-turbo java-runtime>11: for TurboJPEG Java wrapper installing libtiff... Optional dependencies for libtiff freeglut: for using tiffgt installing giflib... installing libwebp... Optional dependencies for libwebp freeglut: vwebp viewer installing aom... installing dav1d... Optional dependencies for dav1d dav1d-doc: HTML documentation installing rav1e... installing svt-av1... installing libyuv... installing libavif... installing libde265... Optional dependencies for libde265 ffmpeg: for sherlock265 qt5-base: for sherlock265 sdl: dec265 YUV overlay output installing x265... installing libheif... Optional dependencies for libheif libjpeg: for heif-convert and heif-enc [installed] libpng: for heif-convert and heif-enc [installed] installing gd... Optional dependencies for gd perl: bdftogd script [installed] installing lzo... installing libxrender... installing pixman... installing cairo... installing shared-mime-info... installing gdk-pixbuf2... Optional dependencies for gdk-pixbuf2 libwmf: Load .wmf and .apm libopenraw: Load .dng, .cr2, .crw, .nef, .orf, .pef, .arw, .erf, .mrw, and .raf libavif: Load .avif [installed] libheif: Load .heif, .heic, and .avif [installed] libjxl: Load .jxl librsvg: Load .svg, .svgz, and .svg.gz [pending] webp-pixbuf-loader: Load .webp installing libdatrie... installing libthai... installing libxft... installing fribidi... installing pango... installing librsvg... installing libxmu... installing libxaw... installing libdaemon... installing dbus... installing avahi... Optional dependencies for avahi gtk3: avahi-discover, avahi-discover-standalone, bshell, bssh, bvnc qt5-base: qt5 bindings libevent: libevent bindings nss-mdns: NSS support for mDNS python-twisted: avahi-bookmarks python-gobject: avahi-bookmarks, avahi-discover python-dbus: avahi-bookmarks, avahi-discover installing libusb... installing libcups... installing jbig2dec... installing lcms2... installing run-parts... installing libpaper... installing ijs... installing openjpeg2... installing libidn... installing ghostscript... Optional dependencies for ghostscript texlive-core: needed for dvipdf gtk3: needed for gsx installing netpbm... installing gts... installing gsfonts... installing libnsl... :: Running post-transaction hooks... (1/6) Updating the MIME type database... (2/6) Updating fontconfig configuration... (3/6) Reloading system bus configuration... call to execv failed (No such file or directory) error: command failed to execute correctly (4/6) Updating fontconfig cache... (5/6) Probing GDK-Pixbuf loader modules... g_module_open() failed for /usr/lib/gdk-pixbuf-2.0/2.10.0/loaders/libpixbufloader-avif.so: libSvtAv1Enc.so.0: cannot open shared object file: No such file or directory (6/6) Updating the info directory file... [?25h==> Checking buildtime dependencies... ==> Installing missing dependencies... [?25lresolving dependencies... looking for conflicting packages... Package (24) New Version Net Change Download Size extra/atk 2.38.0-1 3.59 MiB extra/blas 3.10.1-1 0.20 MiB extra/desktop-file-utils 0.26-2 0.18 MiB extra/gtk-update-icon-cache 1:4.6.5-1 0.03 MiB extra/hicolor-icon-theme 0.17-2 0.05 MiB extra/lapack 3.10.1-1 4.17 MiB extra/libxcomposite 0.4.5-4 0.02 MiB extra/libxcursor 1.2.1-1 0.06 MiB extra/libxdamage 1.1.5-4 0.01 MiB extra/libxfixes 6.0.0-1 0.03 MiB extra/libxi 1.8-1 0.46 MiB extra/libxinerama 1.1.4-4 0.02 MiB extra/libxrandr 1.5.2-4 0.06 MiB extra/libxss 1.2.3-4 0.02 MiB extra/tcl 8.6.12-3 6.30 MiB extra/unzip 6.0-18 0.26 MiB extra/zip 3.0-10 0.47 MiB extra/gtk2 2.24.33-2 35.47 MiB extra/lua 5.4.4-1 1.06 MiB extra/ocaml 4.13.1-3 301.85 MiB core/python 3.10.1-2 79.11 MiB community/r 4.2.0-4 83.18 MiB 59.38 MiB extra/swig 4.0.2-5 4.28 MiB extra/tk 8.6.12-1 4.53 MiB Total Download Size: 59.38 MiB Total Installed Size: 525.40 MiB :: Proceed with installation? [Y/n] :: Retrieving packages... r-4.2.0-4-riscv64 downloading... checking keyring... checking package integrity... loading package files... checking for file conflicts... :: Processing package changes... installing swig... installing lua... installing ocaml... Optional dependencies for ocaml ncurses: advanced ncurses features [installed] tk: advanced tk features [pending] installing python... Optional dependencies for python python-setuptools python-pip sqlite [installed] mpdecimal: for decimal xz: for lzma [installed] tk: for tkinter [pending] installing blas... installing lapack... installing zip... installing unzip... installing r... Optional dependencies for r tk: tcl/tk interface [pending] texlive-bin: latex sty files gcc-fortran: needed to compile some CRAN packages openblas: faster linear algebra installing tcl... installing libxss... installing tk... installing atk... installing libxfixes... installing libxcursor... Optional dependencies for libxcursor gnome-themes-standard: fallback icon theme installing libxinerama... installing libxrandr... installing libxi... installing libxcomposite... installing libxdamage... installing hicolor-icon-theme... installing gtk-update-icon-cache... installing desktop-file-utils... installing gtk2... Optional dependencies for gtk2 gnome-themes-standard: Default widget theme adwaita-icon-theme: Default icon theme python: gtk-builder-convert [installed] :: Running post-transaction hooks... (1/4) Probing GTK2 input method modules... (2/4) Updating icon theme caches... (3/4) Updating the info directory file... (4/4) Updating the desktop file MIME type cache... [?25h==> Retrieving sources...  -> Found graphviz-4.0.0.tar.gz  -> Found ghostscript918.patch ==> WARNING: Skipping all source file integrity checks. ==> Extracting sources...  -> Extracting graphviz-4.0.0.tar.gz with bsdtar ==> Starting prepare()... patching file plugin/gs/gvloadimage_gs.c Hunk #1 succeeded at 77 (offset 5 lines). Warning: build not started in a Git clone, or Git is not installed: setting version date to 0. Warning: build not started in a Git clone, or Git is not installed: setting version date to 0. autoreconf: export WARNINGS= autoreconf: Entering directory '.' autoreconf: configure.ac: not using Gettext autoreconf: running: aclocal --force -I m4 autoreconf: configure.ac: tracing autoreconf: configure.ac: subdirectory libltdl not present autoreconf: running: libtoolize --copy --force --ltdl libtoolize: putting auxiliary files in AC_CONFIG_AUX_DIR, 'config'. libtoolize: copying file 'config/compile' libtoolize: copying file 'config/config.guess' libtoolize: copying file 'config/config.sub' libtoolize: copying file 'config/depcomp' libtoolize: copying file 'config/install-sh' libtoolize: copying file 'config/missing' libtoolize: copying file 'config/ltmain.sh' libtoolize: putting macros in AC_CONFIG_MACRO_DIRS, 'm4'. libtoolize: copying file 'm4/libtool.m4' libtoolize: copying file 'm4/ltargz.m4' libtoolize: copying file 'm4/ltdl.m4' libtoolize: copying file 'm4/ltoptions.m4' libtoolize: copying file 'm4/ltsugar.m4' libtoolize: copying file 'm4/ltversion.m4' libtoolize: copying file 'm4/lt~obsolete.m4' libtoolize: putting libltdl files in LT_CONFIG_LTDL_DIR, 'libltdl'. libtoolize: copying file 'libltdl/COPYING.LIB' libtoolize: creating file 'libltdl/Makefile.am' libtoolize: copying file 'libltdl/README' libtoolize: creating file 'libltdl/configure.ac' libtoolize: copying file 'libltdl/aclocal.m4' libtoolize: creating file 'libltdl/Makefile.in' libtoolize: copying file 'libltdl/config-h.in' libtoolize: creating file 'libltdl/configure' libtoolize: copying file 'libltdl/libltdl/lt__alloc.h' libtoolize: copying file 'libltdl/libltdl/lt__argz_.h' libtoolize: copying file 'libltdl/libltdl/lt__dirent.h' libtoolize: copying file 'libltdl/libltdl/lt__glibc.h' libtoolize: copying file 'libltdl/libltdl/lt__private.h' libtoolize: copying file 'libltdl/libltdl/lt__strl.h' libtoolize: copying file 'libltdl/libltdl/lt_dlloader.h' libtoolize: copying file 'libltdl/libltdl/lt_error.h' libtoolize: copying file 'libltdl/libltdl/lt_system.h' libtoolize: copying file 'libltdl/libltdl/slist.h' libtoolize: copying file 'libltdl/loaders/dld_link.c' libtoolize: copying file 'libltdl/loaders/dlopen.c' libtoolize: copying file 'libltdl/loaders/dyld.c' libtoolize: copying file 'libltdl/loaders/load_add_on.c' libtoolize: copying file 'libltdl/loaders/loadlibrary.c' libtoolize: copying file 'libltdl/loaders/preopen.c' libtoolize: copying file 'libltdl/loaders/shl_load.c' libtoolize: copying file 'libltdl/lt__alloc.c' libtoolize: copying file 'libltdl/lt__argz.c' libtoolize: copying file 'libltdl/lt__dirent.c' libtoolize: copying file 'libltdl/lt__strl.c' libtoolize: copying file 'libltdl/lt_dlloader.c' libtoolize: copying file 'libltdl/lt_error.c' libtoolize: copying file 'libltdl/ltdl.c' libtoolize: copying file 'libltdl/ltdl.h' libtoolize: copying file 'libltdl/slist.c' autoreconf: configure.ac: not using Intltool autoreconf: configure.ac: not using Gtkdoc autoreconf: running: aclocal --force -I m4 autoreconf: running: /usr/bin/autoconf --force configure.ac:267: warning: AC_PROG_LEX without either yywrap or noyywrap is obsolete ./lib/autoconf/programs.m4:716: _AC_PROG_LEX is expanded from... ./lib/autoconf/programs.m4:709: AC_PROG_LEX is expanded from... aclocal.m4:1012: AM_PROG_LEX is expanded from... configure.ac:267: the top level configure.ac:319: warning: The macro `AC_PROG_CC_C99' is obsolete. configure.ac:319: You should run autoupdate. ./lib/autoconf/c.m4:1659: AC_PROG_CC_C99 is expanded from... configure.ac:319: the top level autoreconf: running: /usr/bin/autoheader --force autoreconf: running: automake --add-missing --copy --force-missing Makefile.am: installing './INSTALL' configure.ac: installing 'config/ylwrap' parallel-tests: installing 'config/test-driver' autoreconf: Leaving directory '.' ==> Starting build()... checking build system type... riscv64-unknown-linux-gnu checking host system type... riscv64-unknown-linux-gnu checking for a BSD-compatible install... /usr/bin/install -c checking whether build environment is sane... yes checking for a race-free mkdir -p... /usr/bin/mkdir -p checking for gawk... gawk checking whether make sets $(MAKE)... yes checking whether make supports nested variables... yes checking whether UID '1010' is supported by ustar format... yes checking whether GID '1010' is supported by ustar format... yes checking how to create a ustar tar archive... gnutar checking whether make supports nested variables... (cached) yes checking whether make supports the include directive... yes (GNU style) checking for gcc... gcc 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... o checking whether the compiler supports GNU C... yes checking whether gcc accepts -g... yes checking for gcc option to enable C11 features... none needed checking whether gcc understands -c and -o together... yes checking dependency style of gcc... gcc3 checking for flex... flex checking for lex output file root... lex.yy checking for lex library... none needed checking for library containing yywrap... no checking whether yytext is a pointer... yes checking for bison... bison -y checking for a sed that does not truncate output... /usr/bin/sed checking for grep that handles long lines and -e... /usr/bin/grep checking for egrep... /usr/bin/grep -E checking whether ln -s works... yes checking how to print strings... printf checking for a sed that does not truncate output... (cached) /usr/bin/sed checking for fgrep... /usr/bin/grep -F checking for ld used by gcc... /usr/bin/ld checking if the linker (/usr/bin/ld) is GNU ld... yes checking for BSD- or MS-compatible name lister (nm)... /usr/bin/nm -B checking the name lister (/usr/bin/nm -B) interface... BSD nm checking the maximum length of command line arguments... 1572864 checking how to convert riscv64-unknown-linux-gnu file names to riscv64-unknown-linux-gnu format... func_convert_file_noop checking how to convert riscv64-unknown-linux-gnu file names to toolchain format... func_convert_file_noop checking for /usr/bin/ld option to reload object files... -r checking for file... file checking for objdump... objdump checking how to recognize dependent libraries... pass_all checking for dlltool... no checking how to associate runtime and link libraries... printf %s\n checking for ar... ar checking for archiver @FILE support... @ checking for strip... strip checking for ranlib... ranlib checking command to parse /usr/bin/nm -B output from gcc object... ok checking for sysroot... no checking for a working dd... /usr/bin/dd checking how to truncate binary pipes... /usr/bin/dd bs=4096 count=1 checking for mt... no checking if : is a manifest tool... no checking for stdio.h... yes checking for stdlib.h... yes checking for string.h... yes checking for inttypes.h... yes checking for stdint.h... yes checking for strings.h... yes checking for sys/stat.h... yes checking for sys/types.h... yes checking for unistd.h... yes checking for dlfcn.h... yes checking for objdir... .libs checking if gcc supports -fno-rtti -fno-exceptions... no checking for gcc option to produce PIC... -fPIC -DPIC checking if gcc PIC flag -fPIC -DPIC works... yes checking if gcc static flag -static works... yes checking if gcc supports -c -o file.o... yes checking if gcc supports -c -o file.o... (cached) yes checking whether the gcc linker (/usr/bin/ld) supports shared libraries... yes checking whether -lc should be explicitly linked in... no checking dynamic linker characteristics... GNU/Linux ld.so checking how to hardcode library paths into programs... immediate checking whether stripping libraries is possible... yes checking if libtool supports shared libraries... yes checking whether to build shared libraries... yes checking whether to build static libraries... no checking for groff... groff checking for ps2pdf... ps2pdf checking for pkg-config... /usr/bin/pkg-config checking pkg-config is at least version 0.9.0... yes checking for tclsh8.6... /usr/bin/tclsh8.6 checking for g++... g++ checking whether the compiler supports GNU C++... yes checking whether g++ accepts -g... yes checking for g++ option to enable C++11 features... none needed checking dependency style of g++... gcc3 checking how to run the C++ preprocessor... g++ -E checking for ld used by g++... /usr/bin/ld checking if the linker (/usr/bin/ld) is GNU ld... yes checking whether the g++ linker (/usr/bin/ld) supports shared libraries... yes checking for g++ option to produce PIC... -fPIC -DPIC checking if g++ PIC flag -fPIC -DPIC works... yes checking if g++ static flag -static works... yes checking if g++ supports -c -o file.o... yes checking if g++ supports -c -o file.o... (cached) yes checking whether the g++ linker (/usr/bin/ld) supports shared libraries... yes checking dynamic linker characteristics... (cached) GNU/Linux ld.so checking how to hardcode library paths into programs... immediate checking whether g++ supports C++11 features with -std=c++11... yes checking for gcc... gcc checking whether the compiler supports GNU Objective C... no checking whether gcc accepts -g... no checking dependency style of gcc... gcc3 checking for inline... inline checking whether C compiler accepts -Wtrampolines... yes checking whether C compiler accepts -Wlogical-op... yes checking for windres... no checking for riscv64-unknown-linux-gnu-windres... no checking for pid_t... yes checking for ssize_t... yes checking how to run the C preprocessor... gcc -E checking for uid_t in sys/types.h... yes checking for off64_t... no checking for struct stat64... no checking for ... no checking for fcntl.h... yes checking for search.h... yes checking for stropts.h... no checking for termios.h... yes checking for sys/time.h... yes checking for sys/types.h... (cached) yes checking for sys/select.h... yes checking for sys/socket.h... yes checking for sys/stat.h... (cached) yes checking for sys/mman.h... yes checking for sys/ioctl.h... yes checking for sys/inotify.h... yes checking for main in -lm... yes checking for sincos... yes checking for lrand48... yes checking for drand48... yes checking for srand48... yes checking for setmode... no checking for setenv... yes checking for getpagesize... yes checking for ftruncate... yes checking for lseek64... yes checking for stat64... yes checking for select... yes checking for dl_iterate_phdr... yes checking for strcasestr... yes checking for gcc options needed to detect all undeclared functions... none needed checking what extension is used for runtime loadable modules... .so checking what variable specifies run-time module search path... LD_LIBRARY_PATH checking for the default library search path... /lib /usr/lib /usr/lib/R/lib /usr/lib/libfakeroot checking for library containing dlopen... none required checking for dlerror... yes checking for shl_load... no checking for shl_load in -ldld... no checking for dld_link in -ldld... no checking for _ prefix in compiled symbols... no checking whether deplibs are loaded by dlopen... yes checking for argz.h... yes checking for error_t... yes checking for argz_add... yes checking for argz_append... yes checking for argz_count... yes checking for argz_create_sep... yes checking for argz_insert... yes checking for argz_next... yes checking for argz_stringify... yes checking if argz actually works... yes checking whether libtool supports -dlopen/-dlpreopen... yes checking for ltdl.h... yes checking whether lt_dlinterface_register is declared... yes checking for lt_dladvise_preload in -lltdl... yes checking where to find libltdl headers... checking where to find libltdl library... -lltdl checking for unistd.h... (cached) yes checking for dl.h... no checking for sys/dl.h... no checking for dld.h... no checking for mach-o/dyld.h... no checking for dirent.h... yes checking for closedir... yes checking for opendir... yes checking for readdir... yes checking for strlcat... no checking for strlcpy... no checking for lt_dladvise_init in -lltdl... yes checking for X... libraries , headers checking for gethostbyname... yes checking for connect... yes checking for remove... yes checking for shmat... yes checking for IceConnectionNumber in -lICE... yes checking for XRENDER... yes checking for swig... swig checking for mcs... no checking for go... no checking for guile-config2.2... no checking for guile-config... guile-config checking for guile2.2... no checking for guile2... no checking for guile... guile checking for GUILE... no checking for GUILE... no checking for libguile.h... yes checking for java... no checking for lua... lua checking for lua... (cached) lua checking for Lua headers and libraries with pkg-config... checking for Lua compiling and linking... checking for ocaml... ocaml checking for ocamlopt... ocamlopt checking for ocamlc... ocamlc checking for caml/mlvalues.h... yes checking for perl... perl checking for EXTERN.h... yes checking for php7.2... no checking for php7-config... no ./configure: line 24367: php-config: command not found ./configure: line 24368: php-config: command not found ./configure: line 24370: php-config: command not found ./configure: line 24370: php-config: command not found checking for php.h... no checking for python3... python3 checking for Python3 headers and libraries with pkg-config... :1: DeprecationWarning: The distutils package is deprecated and slated for removal in Python 3.12. Use setuptools or check PEP 632 for potential alternatives :1: DeprecationWarning: The distutils.sysconfig module is deprecated, use sysconfig instead checking for Python.h... yes checking for R... yes checking for RUBY... no checking for RUBY... no checking for ruby... no checking for tcl.h... yes using /usr/lib//tclConfig.sh checking for connect... (cached) yes checking for gethostbyname... (cached) yes checking for expat-config... no checking for expat.h... yes checking for main in -lexpat... yes checking for IL/il.h... no configure: WARNING: Optional DevIL library not available - missing headers checking for main in -lIL... no configure: WARNING: Optional DevIL library not available checking for zlib.h... yes checking for main in -lz... yes checking for deflateBound... no checking for WEBP... yes checking for POPPLER... no checking for RSVG... yes checking for SVG_2_36... yes checking for ghostscript/iapi.h... yes checking for main in -lgs... yes checking for PANGOCAIRO... yes checking for PANGOFT2... yes checking for pango_fc_font_lock_face... yes checking for pango_fc_font_unlock_face... yes checking for pango_font_map_create_context... yes checking for cairo_surface_set_mime_data... yes checking for LASI... no checking for FREETYPE2... yes checking for FONTCONFIG... yes checking for GDK... yes checking for g_object_unref... yes checking for g_type_init... yes checking for GDK_PIXBUF... yes checking for GTK... yes checking for GTKGL... no checking for GTKGLEXT... no checking for GTS... yes checking for ANN... no checking for GLADE... no checking for qmake-qt5... no checking for qmake5... no checking for qmake... no checking for GDLIB... yes checking for gd.h... yes checking for main in -lgd... yes checking for GL/glut.h... no configure: WARNING: Optional glut library not available - no GL/glut.h configure: WARNING: SMYRNA requires GTKGLEXT configure: WARNING: SMYRNA requires GLADE configure: WARNING: SMYRNA requires GLUT checking if FILE struct contains _cnt... no checking if FILE struct contains _r... no checking if FILE struct contains _next... no checking if FILE struct contains _IO_read_end... yes checking if intptr_t is declared... yes checking for main in -lcriterion... no configure: WARNING: Criterion unit testing framework not installed checking that generated files are newer than configure... done configure: creating ./config.status config.status: creating Makefile config.status: creating debian/changelog config.status: creating doc/Makefile config.status: creating doc/info/Makefile config.status: creating doc/schema/Makefile config.status: creating contrib/Makefile config.status: creating contrib/prune/Makefile config.status: creating contrib/diffimg/Makefile config.status: creating graphs/Makefile config.status: creating graphs/directed/Makefile config.status: creating graphs/undirected/Makefile config.status: creating lib/Makefile config.status: creating lib/cdt/Makefile config.status: creating lib/cdt/libcdt.pc config.status: creating lib/cgraph/Makefile config.status: creating lib/cgraph/libcgraph.pc config.status: creating lib/rbtree/Makefile config.status: creating lib/pathplan/Makefile config.status: creating lib/pathplan/libpathplan.pc config.status: creating lib/ast/Makefile config.status: creating lib/sfio/Makefile config.status: creating lib/sfio/Sfio_f/Makefile config.status: creating lib/vmalloc/Makefile config.status: creating lib/dotgen/Makefile config.status: creating lib/neatogen/Makefile config.status: creating lib/fdpgen/Makefile config.status: creating lib/sparse/Makefile config.status: creating lib/mingle/Makefile config.status: creating lib/label/Makefile config.status: creating lib/sfdpgen/Makefile config.status: creating lib/sfdpgen/libsfdp.pc config.status: creating lib/osage/Makefile config.status: creating lib/edgepaint/Makefile config.status: creating lib/edgepaint/liblab_gamut.pc config.status: creating lib/gvpr/Makefile config.status: creating lib/gvpr/libgvpr.pc config.status: creating lib/circogen/Makefile config.status: creating lib/twopigen/Makefile config.status: creating lib/patchwork/Makefile config.status: creating lib/pack/Makefile config.status: creating lib/ortho/Makefile config.status: creating lib/expr/Makefile config.status: creating lib/expr/libexpr.pc config.status: creating lib/common/Makefile config.status: creating lib/ingraphs/Makefile config.status: creating lib/vpsc/Makefile config.status: creating lib/gvc/Makefile config.status: creating lib/gvc/libgvc.pc config.status: creating lib/xdot/Makefile config.status: creating lib/xdot/libxdot.pc config.status: creating lib/topfish/Makefile config.status: creating lib/glcomp/Makefile config.status: creating macosx/Info.plist config.status: creating macosx/build/graphviz.pmdoc/01local.xml config.status: creating macosx/build/graphviz.pmdoc/02graphviz.xml config.status: creating windows/build/graphviz.wxs config.status: creating windows/Properties/AssemblyInfo.cs config.status: creating plugin/Makefile config.status: creating plugin/core/Makefile config.status: creating plugin/devil/Makefile config.status: creating plugin/gd/Makefile config.status: creating plugin/gdk/Makefile config.status: creating plugin/gdiplus/Makefile config.status: creating plugin/gs/Makefile config.status: creating plugin/gtk/Makefile config.status: creating plugin/lasi/Makefile config.status: creating plugin/pango/Makefile config.status: creating plugin/poppler/Makefile config.status: creating plugin/quartz/Makefile config.status: creating plugin/rsvg/Makefile config.status: creating plugin/visio/Makefile config.status: creating plugin/webp/Makefile config.status: creating plugin/xlib/Makefile config.status: creating plugin/dot_layout/Makefile config.status: creating plugin/neato_layout/Makefile config.status: creating cmd/Makefile config.status: creating cmd/dot/Makefile config.status: creating cmd/tools/Makefile config.status: creating cmd/gvpr/Makefile config.status: creating cmd/gvpr/lib/Makefile config.status: creating cmd/smyrna/Makefile config.status: creating cmd/gvmap/Makefile config.status: creating cmd/mingle/Makefile config.status: creating cmd/edgepaint/Makefile config.status: creating cmd/gvedit/Makefile config.status: creating cmd/gvedit/gvedit.pro config.status: creating cmd/gvedit/ui/Makefile config.status: creating cmd/gvedit/images/Makefile config.status: creating tclpkg/Makefile config.status: creating tclpkg/tclstubs/Makefile config.status: creating tclpkg/tclhandle/Makefile config.status: creating tclpkg/gdtclft/Makefile config.status: creating tclpkg/gdtclft/demo/Makefile config.status: creating tclpkg/tcldot/Makefile config.status: creating tclpkg/tcldot/demo/Makefile config.status: creating tclpkg/tclpathplan/Makefile config.status: creating tclpkg/tclpathplan/demo/Makefile config.status: creating tclpkg/tclpathplan/demo/pathplan_data/Makefile config.status: creating tclpkg/gv/Makefile config.status: creating tclpkg/gv/demo/Makefile config.status: creating tclpkg/gv/META.gv config.status: creating tests/graphs/Makefile config.status: creating tests/linux.x86/Makefile config.status: creating tests/Makefile config.status: creating tests/unit_tests/Makefile config.status: creating tests/unit_tests/lib/Makefile config.status: creating tests/unit_tests/lib/common/Makefile config.status: creating tests/regression_tests/Makefile config.status: creating tests/regression_tests/shapes/Makefile config.status: creating tests/regression_tests/shapes/reference/Makefile config.status: creating tests/regression_tests/vuln/Makefile config.status: creating tests/regression_tests/vuln/input/Makefile config.status: creating tests/regression_tests/vuln/reference/Makefile config.status: creating share/Makefile config.status: creating share/examples/Makefile config.status: creating share/gui/Makefile config.status: creating redhat/graphviz.spec.fedora config.status: creating redhat/graphviz.spec.rhel config.status: creating Doxyfile config.status: creating config.h config.status: executing depfiles commands config.status: executing libtool commands === configuring in libltdl (/build/graphviz/src/graphviz-4.0.0/libltdl) configure: running /bin/sh ./configure --disable-option-checking '--prefix=/usr' '--enable-python3=yes' '--disable-python' '--enable-lefty' 'LIBPOSTFIX=/' 'CFLAGS=-march=rv64gc -mabi=lp64d -O2 -pipe -fexceptions -Wp,-D_FORTIFY_SOURCE=2 -Wformat -Werror=format-security -fstack-clash-protection -flto=auto' 'LDFLAGS=-Wl,-O1,--sort-common,--as-needed,-z,relro,-z,now -flto=auto' 'CXXFLAGS=-march=rv64gc -mabi=lp64d -O2 -pipe -fexceptions -Wp,-D_FORTIFY_SOURCE=2 -Wformat -Werror=format-security -fstack-clash-protection -Wp,-D_GLIBCXX_ASSERTIONS -flto=auto -fPIC -fpermissive' --cache-file=/dev/null --srcdir=. checking for a BSD-compatible install... /usr/bin/install -c checking whether build environment is sane... yes checking for a race-free mkdir -p... /usr/bin/mkdir -p checking for gawk... gawk checking whether make sets $(MAKE)... yes checking whether make supports nested variables... yes checking whether make supports nested variables... (cached) yes checking build system type... riscv64-unknown-linux-gnu checking host system type... riscv64-unknown-linux-gnu checking how to print strings... printf checking whether make supports the include directive... yes (GNU style) checking for gcc... gcc 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... o checking whether the compiler supports GNU C... yes checking whether gcc accepts -g... yes checking for gcc option to enable C11 features... none needed checking whether gcc understands -c and -o together... yes checking dependency style of gcc... gcc3 checking for a sed that does not truncate output... /usr/bin/sed checking for grep that handles long lines and -e... /usr/bin/grep checking for egrep... /usr/bin/grep -E checking for fgrep... /usr/bin/grep -F checking for ld used by gcc... /usr/bin/ld checking if the linker (/usr/bin/ld) is GNU ld... yes checking for BSD- or MS-compatible name lister (nm)... /usr/bin/nm -B checking the name lister (/usr/bin/nm -B) interface... BSD nm checking whether ln -s works... yes checking the maximum length of command line arguments... 1572864 checking how to convert riscv64-unknown-linux-gnu file names to riscv64-unknown-linux-gnu format... func_convert_file_noop checking how to convert riscv64-unknown-linux-gnu file names to toolchain format... func_convert_file_noop checking for /usr/bin/ld option to reload object files... -r checking for file... file checking for objdump... objdump checking how to recognize dependent libraries... pass_all checking for dlltool... no checking how to associate runtime and link libraries... printf %s\n checking for ar... ar checking for archiver @FILE support... @ checking for strip... strip checking for ranlib... ranlib checking command to parse /usr/bin/nm -B output from gcc object... ok checking for sysroot... no checking for a working dd... /usr/bin/dd checking how to truncate binary pipes... /usr/bin/dd bs=4096 count=1 checking for mt... no checking if : is a manifest tool... no checking for stdio.h... yes checking for stdlib.h... yes checking for string.h... yes checking for inttypes.h... yes checking for stdint.h... yes checking for strings.h... yes checking for sys/stat.h... yes checking for sys/types.h... yes checking for unistd.h... yes checking for dlfcn.h... yes checking for objdir... .libs checking if gcc supports -fno-rtti -fno-exceptions... no checking for gcc option to produce PIC... -fPIC -DPIC checking if gcc PIC flag -fPIC -DPIC works... yes checking if gcc static flag -static works... yes checking if gcc supports -c -o file.o... yes checking if gcc supports -c -o file.o... (cached) yes checking whether the gcc linker (/usr/bin/ld) supports shared libraries... yes checking whether -lc should be explicitly linked in... no checking dynamic linker characteristics... GNU/Linux ld.so checking how to hardcode library paths into programs... immediate checking for shl_load... no checking for shl_load in -ldld... no checking for dlopen... yes checking whether a program can dlopen itself... yes checking whether a statically linked program can dlopen itself... no checking whether stripping libraries is possible... yes checking if libtool supports shared libraries... yes checking whether to build shared libraries... yes checking whether to build static libraries... yes checking what extension is used for runtime loadable modules... .so checking what variable specifies run-time module search path... LD_LIBRARY_PATH checking for the default library search path... /lib /usr/lib /usr/lib/R/lib /usr/lib/libfakeroot checking for gcc options needed to detect all undeclared functions... none needed checking for library containing dlopen... none required checking for dlerror... yes checking for shl_load... (cached) no checking for shl_load in -ldld... (cached) no checking for dld_link in -ldld... no checking for _ prefix in compiled symbols... no checking whether deplibs are loaded by dlopen... yes checking for argz.h... yes checking for error_t... yes checking for argz_add... yes checking for argz_append... yes checking for argz_count... yes checking for argz_create_sep... yes checking for argz_insert... yes checking for argz_next... yes checking for argz_stringify... yes checking if argz actually works... yes checking whether libtool supports -dlopen/-dlpreopen... yes checking for unistd.h... (cached) yes checking for dl.h... no checking for sys/dl.h... no checking for dld.h... no checking for mach-o/dyld.h... no checking for dirent.h... yes checking for closedir... yes checking for opendir... yes checking for readdir... yes checking for strlcat... no checking for strlcpy... no checking that generated files are newer than configure... done configure: creating ./config.status config.status: creating Makefile config.status: creating config.h config.status: executing depfiles commands config.status: executing libtool commands ---------------------------------------------------------------- graphviz-4.0.0 will be compiled with the following: options: cgraph: Yes (always enabled) digcola: Yes expat: Yes fontconfig: Yes freetype: Yes glut: No (missing GL/glut.h) ann: No (no ann.pc found) gts: Yes ipsepcola: Yes ltdl: Yes ortho: Yes sfdp: Yes swig: Yes ( 4.0.2 ) shared: Yes static: No (disabled by default) qt: No (qmake not found) x: Yes commands: dot: Yes (always enabled) neato: Yes (always enabled) fdp: Yes (always enabled) circo: Yes (always enabled) twopi: Yes (always enabled) gvpr: Yes (always enabled) gvmap: Yes (always enabled) smyrna: No (requires: gtkglext glade glut) gvedit: No (qmake not found) plugin libraries: dot_layout: Yes (always enabled) neato_layout: Yes (always enabled) core: Yes (always enabled) devil: No (missing library) gd: Yes gdiplus: No (disabled by default - Windows only) gdk: Yes gdk_pixbuf: Yes ghostscript: Yes gtk: Yes lasi: No (lasi library not available) pangocairo: Yes poppler: No (poppler library not available) quartz: No (disabled by default - Mac only) rsvg: Yes visio: Yes webp: Yes xlib: Yes language extensions: gv_sharp: No (mcs not available) gv_d: No (disabled by default - incomplete) gv_go: No (GO compiler not available) gv_guile: Yes gv_io: No (disabled by default - no swig support yet) gv_java: No (java not available) gv_javascript: No (disabled by default - incomplete) gv_lua: Yes gv_ocaml: Yes gv_perl: Yes gv_php: No (missing header) gv_python: No (disabled) gv_python3: Yes gv_R: Yes gv_ruby: No (ruby not available) gv_tcl: Yes tcldot: Yes tclpathplan: Yes gdtclft: Yes Testing utilities: criterion: No (Criterion unit testing framework not installed) printf '#pragma once\n' > ./graphviz_version.h /usr/bin/grep -E 'PACKAGE|VERSION|GVPLUGIN' config.h >> ./graphviz_version.h make all-recursive make[1]: Entering directory '/build/graphviz/src/graphviz-4.0.0' Making all in libltdl make[2]: Entering directory '/build/graphviz/src/graphviz-4.0.0/libltdl' make all-am make[3]: Entering directory '/build/graphviz/src/graphviz-4.0.0/libltdl' CC libltdlc_la-lt__alloc.lo CC libltdlc_la-lt_dlloader.lo CC libltdlc_la-lt_error.lo CC libltdlc_la-ltdl.lo CC libltdlc_la-slist.lo CC lt__strl.lo CC loaders/dlopen.lo CC loaders/libltdlc_la-preopen.lo CCLD dlopen.la CCLD libltdlc.la make[3]: Leaving directory '/build/graphviz/src/graphviz-4.0.0/libltdl' make[2]: Leaving directory '/build/graphviz/src/graphviz-4.0.0/libltdl' Making all in lib make[2]: Entering directory '/build/graphviz/src/graphviz-4.0.0/lib' Making all in cdt make[3]: Entering directory '/build/graphviz/src/graphviz-4.0.0/lib/cdt' CC dtextract.lo CC dtflatten.lo CC dtlist.lo CC dtopen.lo CC dtrenew.lo CC dtrestore.lo CC dtmethod.lo CC dtclose.lo CC dtdisc.lo CC dthash.lo CC dtsize.lo CC dtstat.lo CC dttree.lo CC dtwalk.lo CC dtstrhash.lo CC dtview.lo dtstat.c: In function 'dtstat': dtstat.c:60:59: warning: conversion to 'long unsigned int' from 'int' may change the sign of the result [-Wsign-conversion] 60 | if(!(Count = malloc((ds->dt_max+1)*sizeof(int))) ) | ^ dtstat.c:74:65: warning: conversion to 'long unsigned int' from 'int' may change the sign of the result [-Wsign-conversion] 74 | if(!(Count = malloc((ds->dt_n+1)*sizeof(int))) ) | ^ dtstrhash.c: In function 'dtstrhash': dtstrhash.c:23:21: warning: conversion from 'long int' to 'int' may change value [-Wconversion] 23 | n = s - (unsigned char*)args; | ^ dtstrhash.c:32:18: warning: conversion to 'unsigned int' from 'int' may change the sign of the result [-Wsign-conversion] 32 | return (h+n)*DT_PRIME; | ^ dthash.c: In function 'dthtab': dthash.c:50:43: warning: conversion to 'long unsigned int' from 'int' may change the sign of the result [-Wsign-conversion] 50 | if (!(s = dt->memoryf(dt, olds, n * sizeof(Dtlink_t*), dt->disc))) | ^ In file included from dthash.c:1: ../../lib/cdt/dthdr.h:33:29: warning: conversion to 'unsigned int' from 'int' may change the sign of the result [-Wsign-conversion] 33 | #define HINDEX(n,h) ((h)&((n)-1)) | ^ dthash.c:62:38: note: in expansion of macro 'HINDEX' 62 | if((is = s + HINDEX(n,t->hash)) == hs) | ^~~~~~ dthash.c: In function 'dthash': ../../lib/cdt/dthdr.h:33:29: warning: conversion to 'unsigned int' from 'int' may change the sign of the result [-Wsign-conversion] 33 | #define HINDEX(n,h) ((h)&((n)-1)) | ^ dthash.c:138:38: note: in expansion of macro 'HINDEX' 138 | s = dt->data->htab + HINDEX(dt->data->ntab,dt->data->here->hash); | ^~~~~~ ../../lib/cdt/dthdr.h:33:29: warning: conversion to 'unsigned int' from 'int' may change the sign of the result [-Wsign-conversion] 33 | #define HINDEX(n,h) ((h)&((n)-1)) | ^ dthash.c:167:46: note: in expansion of macro 'HINDEX' 167 | s = dt->data->htab + HINDEX(dt->data->ntab,hsh); | ^~~~~~ ../../lib/cdt/dthdr.h:33:29: warning: conversion to 'unsigned int' from 'int' may change the sign of the result [-Wsign-conversion] 33 | #define HINDEX(n,h) ((h)&((n)-1)) | ^ dthash.c:175:56: note: in expansion of macro 'HINDEX' 175 | *(s = dt->data->htab + HINDEX(dt->data->ntab,hsh)); | ^~~~~~ In file included from dtrenew.c:1: dtrenew.c: In function 'dtrenew': ../../lib/cdt/dthdr.h:33:29: warning: conversion to 'unsigned int' from 'int' may change the sign of the result [-Wsign-conversion] 33 | #define HINDEX(n,h) ((h)&((n)-1)) | ^ dthash.c:235:38: note: in expansion of macro 'HINDEX' 235 | s = dt->data->htab + HINDEX(dt->data->ntab,hsh); | ^~~~~~ ../../lib/cdt/dthdr.h:33:29: warning: conversion to 'unsigned int' from 'int' may change the sign of the result [-Wsign-conversion] 33 | #define HINDEX(n,h) ((h)&((n)-1)) | ^ dtrenew.c:37:38: note: in expansion of macro 'HINDEX' 37 | { s = dt->data->htab + HINDEX(dt->data->ntab,e->hash); | ^~~~~~ rm -f cdt.3.pdf; pdffile=cdt.3.pdf; psfile=${pdffile%pdf}ps; \ groff -Tps -man cdt.3 > $psfile || { rm -f $psfile; exit 1; }; \ ps2pdf $psfile && rm -f $psfile || { rm -f $psfile; exit 1; } CCLD libcdt.la CCLD libcdt_C.la make[3]: Leaving directory '/build/graphviz/src/graphviz-4.0.0/lib/cdt' Making all in xdot make[3]: Entering directory '/build/graphviz/src/graphviz-4.0.0/lib/xdot' rm -f xdot.3.pdf; pdffile=xdot.3.pdf; psfile=${pdffile%pdf}ps; \ groff -Tps -man xdot.3 > $psfile || { rm -f $psfile; exit 1; }; \ ps2pdf $psfile && rm -f $psfile || { rm -f $psfile; exit 1; } CC xdot.lo xdot.c: In function 'parsePolyline': xdot.c:95:26: warning: conversion to 'size_t' {aka 'long unsigned int'} from 'int' may change the sign of the result [-Wsign-conversion] 95 | pts = ps = gv_calloc(i, sizeof(ps[0])); | ^ xdot.c: In function 'parseString': xdot.c:130:29: warning: conversion to 'size_t' {aka 'long unsigned int'} from 'int' may change the sign of the result [-Wsign-conversion] 130 | char *c = gv_strndup(s, i); | ^ xdot.c:131:19: warning: comparison of integer expressions of different signedness: 'size_t' {aka 'long unsigned int'} and 'int' [-Wsign-compare] 131 | if (strlen(c) != i) { | ^~ xdot.c: In function 'parseXDotFOn': xdot.c:343:16: warning: comparison of integer expressions of different signedness: 'int' and 'long unsigned int' [-Wsign-compare] 343 | if (sz <= sizeof(xdot_op)) | ^~ xdot.c:354:34: warning: conversion to 'size_t' {aka 'long unsigned int'} from 'int' may change the sign of the result [-Wsign-conversion] 354 | ops = gv_calloc(XDBSIZE, sz); | ^~ xdot.c:359:32: warning: conversion to 'size_t' {aka 'long unsigned int'} from 'int' may change the sign of the result [-Wsign-conversion] 359 | ops = gv_recalloc(ops, initcnt, bufsz, sz); | ^~~~~~~ xdot.c:359:41: warning: conversion to 'size_t' {aka 'long unsigned int'} from 'int' may change the sign of the result [-Wsign-conversion] 359 | ops = gv_recalloc(ops, initcnt, bufsz, sz); | ^~~~~ xdot.c:359:48: warning: conversion to 'size_t' {aka 'long unsigned int'} from 'int' may change the sign of the result [-Wsign-conversion] 359 | ops = gv_recalloc(ops, initcnt, bufsz, sz); | ^~ xdot.c:366:36: warning: conversion to 'size_t' {aka 'long unsigned int'} from 'int' may change the sign of the result [-Wsign-conversion] 366 | ops = gv_recalloc(ops, oldsz, bufsz, sz); | ^~~~~ xdot.c:366:43: warning: conversion to 'size_t' {aka 'long unsigned int'} from 'int' may change the sign of the result [-Wsign-conversion] 366 | ops = gv_recalloc(ops, oldsz, bufsz, sz); | ^~~~~ xdot.c:366:50: warning: conversion to 'size_t' {aka 'long unsigned int'} from 'int' may change the sign of the result [-Wsign-conversion] 366 | ops = gv_recalloc(ops, oldsz, bufsz, sz); | ^~ xdot.c:374:35: warning: conversion to 'size_t' {aka 'long unsigned int'} from 'int' may change the sign of the result [-Wsign-conversion] 374 | x->ops = gv_recalloc(ops, bufsz, x->cnt, sz); | ^~~~~ xdot.c:374:43: warning: conversion to 'size_t' {aka 'long unsigned int'} from 'int' may change the sign of the result [-Wsign-conversion] 374 | x->ops = gv_recalloc(ops, bufsz, x->cnt, sz); | ~^~~~~ xdot.c:374:50: warning: conversion to 'size_t' {aka 'long unsigned int'} from 'int' may change the sign of the result [-Wsign-conversion] 374 | x->ops = gv_recalloc(ops, bufsz, x->cnt, sz); | ^~ xdot.c: In function 'printAlign': xdot.c:484:5: warning: switch missing default case [-Wswitch-default] 484 | switch (a) { | ^~~~~~ xdot.c: In function 'toGradString': xdot.c:511:31: warning: conversion from 'double' to 'float' may change value [-Wfloat-conversion] 511 | printFloat (cp->u.ling.x0, gradprint, xb, 0); | ~~~~~~~~~~^~~ xdot.c:512:31: warning: conversion from 'double' to 'float' may change value [-Wfloat-conversion] 512 | printFloat (cp->u.ling.y0, gradprint, xb, 1); | ~~~~~~~~~~^~~ xdot.c:513:31: warning: conversion from 'double' to 'float' may change value [-Wfloat-conversion] 513 | printFloat (cp->u.ling.x1, gradprint, xb, 1); | ~~~~~~~~~~^~~ xdot.c:514:31: warning: conversion from 'double' to 'float' may change value [-Wfloat-conversion] 514 | printFloat (cp->u.ling.y1, gradprint, xb, 1); | ~~~~~~~~~~^~~ xdot.c:520:31: warning: conversion from 'double' to 'float' may change value [-Wfloat-conversion] 520 | printFloat (cp->u.ring.x0, gradprint, xb, 0); | ~~~~~~~~~~^~~ xdot.c:521:31: warning: conversion from 'double' to 'float' may change value [-Wfloat-conversion] 521 | printFloat (cp->u.ring.y0, gradprint, xb, 1); | ~~~~~~~~~~^~~ xdot.c:522:31: warning: conversion from 'double' to 'float' may change value [-Wfloat-conversion] 522 | printFloat (cp->u.ring.r0, gradprint, xb, 1); | ~~~~~~~~~~^~~ xdot.c:523:31: warning: conversion from 'double' to 'float' may change value [-Wfloat-conversion] 523 | printFloat (cp->u.ring.x1, gradprint, xb, 1); | ~~~~~~~~~~^~~ xdot.c:524:31: warning: conversion from 'double' to 'float' may change value [-Wfloat-conversion] 524 | printFloat (cp->u.ring.y1, gradprint, xb, 1); | ~~~~~~~~~~^~~ xdot.c:525:31: warning: conversion from 'double' to 'float' may change value [-Wfloat-conversion] 525 | printFloat (cp->u.ring.r1, gradprint, xb, 1); | ~~~~~~~~~~^~~ xdot.c: In function 'printXDot_Op': xdot.c:598:28: warning: conversion from 'double' to 'int' may change value [-Wfloat-conversion] 598 | printInt(op->u.text.x, print, info); | ~~~~~~~~~~^~ xdot.c:599:28: warning: conversion from 'double' to 'int' may change value [-Wfloat-conversion] 599 | printInt(op->u.text.y, print, info); | ~~~~~~~~~~^~ xdot.c:601:28: warning: conversion from 'double' to 'int' may change value [-Wfloat-conversion] 601 | printInt(op->u.text.width, print, info); | ~~~~~~~~~~^~~~~~ xdot.c:606:30: warning: conversion from 'double' to 'float' may change value [-Wfloat-conversion] 606 | printFloat(op->u.font.size, print, info, 1); | ~~~~~~~~~~^~~~~ xdot.c:611:23: warning: conversion to 'int' from 'unsigned int' may change the sign of the result [-Wsign-conversion] 611 | printInt(op->u.fontchar, print, info); | ~~~~~^~~~~~~~~ xdot.c:549:5: warning: switch missing default case [-Wswitch-default] 549 | switch (op->kind) { | ^~~~~~ xdot.c: In function 'jsonXDot_Op': xdot.c:722:28: warning: conversion from 'double' to 'int' may change value [-Wfloat-conversion] 722 | printInt(op->u.text.x, print, info); | ~~~~~~~~~~^~ xdot.c:724:28: warning: conversion from 'double' to 'int' may change value [-Wfloat-conversion] 724 | printInt(op->u.text.y, print, info); | ~~~~~~~~~~^~ xdot.c:728:28: warning: conversion from 'double' to 'int' may change value [-Wfloat-conversion] 728 | printInt(op->u.text.width, print, info); | ~~~~~~~~~~^~~~~~ xdot.c:736:30: warning: conversion from 'double' to 'float' may change value [-Wfloat-conversion] 736 | printFloat(op->u.font.size, print, info, 1); | ~~~~~~~~~~^~~~~ xdot.c:743:23: warning: conversion to 'int' from 'unsigned int' may change the sign of the result [-Wsign-conversion] 743 | printInt(op->u.fontchar, print, info); | ~~~~~^~~~~~~~~ xdot.c:673:5: warning: switch missing default case [-Wswitch-default] 673 | switch (op->kind) { | ^~~~~~ xdot.c: In function 'fprintXDot': xdot.c:796:19: warning: cast between incompatible function types from 'int (*)(const char * restrict, FILE * restrict)' to 'void (*)(char *, void *)' [-Wcast-function-type] 796 | _printXDot(x, (pf) fputs, fp, printXDot_Op); | ^ xdot.c: In function 'jsonXDot': xdot.c:802:19: warning: cast between incompatible function types from 'int (*)(const char * restrict, FILE * restrict)' to 'void (*)(char *, void *)' [-Wcast-function-type] 802 | _printXDot(x, (pf) fputs, fp, jsonXDot_Op); | ^ xdot.c: In function 'radGradient': xdot.c:955:34: warning: conversion to 'size_t' {aka 'long unsigned int'} from 'int' may change the sign of the result [-Wsign-conversion] 955 | stops = gv_calloc(clr->u.ring.n_stops, sizeof(stops[0])); | ~~~~~~~~~~~^~~~~~~~ xdot.c:959:25: warning: conversion from 'double' to 'float' may change value [-Wfloat-conversion] 959 | stops[i].frac = d; | ^ xdot.c: In function 'linGradient': xdot.c:992:34: warning: conversion to 'size_t' {aka 'long unsigned int'} from 'int' may change the sign of the result [-Wsign-conversion] 992 | stops = gv_calloc(clr->u.ling.n_stops, sizeof(stops[0])); | ~~~~~~~~~~~^~~~~~~~ xdot.c:996:25: warning: conversion from 'double' to 'float' may change value [-Wfloat-conversion] 996 | stops[i].frac = d; | ^ CCLD libxdot.la CCLD libxdot_C.la make[3]: Leaving directory '/build/graphviz/src/graphviz-4.0.0/lib/xdot' Making all in cgraph make[3]: Entering directory '/build/graphviz/src/graphviz-4.0.0/lib/cgraph' bison -y -Wno-yacc -dv --output=grammar.c ../../lib/cgraph/grammar.y CC agerror.lo CC apply.lo CC edge.lo CC id.lo CC io.lo CC obj.lo CC attr.lo CC flatten.lo CC graph.lo CC imap.lo CC pend.lo CC node.lo CC mem.lo CC refstr.lo CC rec.lo flex --outfile=scan.c -i ../../lib/cgraph/scan.l CC subg.lo graph.c: In function 'agopen1': graph.c:77:20: warning: conversion from 'uint64_t' {aka 'long unsigned int'} to 'unsigned int:28' may change value [-Wconversion] 77 | AGSEQ(g) = agnextseq(par, AGRAPH); | ^~~~~~~~~ graph.c: In function 'agraphidcmpf': graph.c:246:9: warning: conversion to 'ptrdiff_t' {aka 'long int'} from 'IDTYPE' {aka 'long unsigned int'} may change the sign of the result [-Wsign-conversion] 246 | v = (AGID(sg0) - AGID(sg1)); | ^ flatten.c:20:6: warning: no previous prototype for 'agflatten_edges' [-Wmissing-prototypes] 20 | void agflatten_edges(Agraph_t * g, Agnode_t * n, int flag) | ^~~~~~~~~~~~~~~ edge.c: In function 'newedge': edge.c:209:11: warning: conversion from 'uint64_t' {aka 'long unsigned int'} to 'int' may change value [-Wconversion] 209 | seq = agnextseq(g, AGEDGE); | ^~~~~~~~~ edge.c:213:30: warning: conversion from 'int' to 'unsigned int:28' may change value [-Wconversion] 213 | AGSEQ(in) = AGSEQ(out) = seq; | ^~~ node.c: In function 'newnode': node.c:76:16: warning: conversion from 'uint64_t' {aka 'long unsigned int'} to 'unsigned int:28' may change value [-Wconversion] 76 | AGSEQ(n) = seq; | ^~~ node.c: In function 'agrelabel_node': node.c:242:39: warning: cast between incompatible function types from 'void (*)(Agnode_t *, void *)' {aka 'void (*)(struct Agnode_s *, void *)'} to 'void (*)(Agraph_t *, Agobj_t *, void *)' {aka 'void (*)(struct Agraph_s *, struct Agobj_s *, void *)'} [-Wcast-function-type] 242 | agapply(g, (Agobj_t *) n, (agobjfn_t) dict_relabel, | ^ node.c: In function 'agnodebefore': node.c:359:22: warning: conversion from 'uint64_t' {aka 'long unsigned int'} to 'unsigned int:28' may change value [-Wconversion] 359 | AGSEQ(snd) = (g->clos->seq[AGNODE] + 2); | ^ obj.c: In function 'aginitcb': obj.c:93:5: warning: switch missing default case [-Wswitch-default] 93 | switch (AGTYPE(obj)) { | ^~~~~~ obj.c: In function 'agupdcb': obj.c:124:5: warning: switch missing default case [-Wswitch-default] 124 | switch (AGTYPE(obj)) { | ^~~~~~ obj.c: In function 'agdelcb': obj.c:155:5: warning: switch missing default case [-Wswitch-default] 155 | switch (AGTYPE(obj)) { | ^~~~~~ attr.c: In function 'init_all_attrs': attr.c:534:37: warning: cast between incompatible function types from 'void (*)(Agraph_t *)' {aka 'void (*)(struct Agraph_s *)'} to 'void (*)(Agraph_t *, Agobj_t *, void *)' {aka 'void (*)(struct Agraph_s *, struct Agobj_s *, void *)'} [-Wcast-function-type] 534 | agapply(root, (Agobj_t *) root, (agobjfn_t) agraphattr_init, | ^ CC utils.lo rm -f cgraph.3.pdf; pdffile=cgraph.3.pdf; psfile=${pdffile%pdf}ps; \ groff -Tps -man cgraph.3 > $psfile || { rm -f $psfile; exit 1; }; \ ps2pdf $psfile && rm -f $psfile || { rm -f $psfile; exit 1; } CC write.lo CC grammar.lo CC scan.lo ../../lib/cgraph/grammar.y: In function 'delete_items': ../../lib/cgraph/grammar.y:241:17: warning: switch missing default case [-Wswitch-default] 241 | switch(p->tag) { | ^~~~~~ ../../lib/cgraph/scan.l: In function 'addstr': ../../lib/cgraph/scan.l:87:48: warning: conversion to 'size_t' {aka 'long unsigned int'} from 'long int' may change the sign of the result [-Wsign-conversion] 87 | long sz = Send - Sbuf; | ^~ ../../lib/cgraph/scan.l: In function 'storeFileName': ../../lib/cgraph/scan.l:111:25: warning: conversion to 'size_t' {aka 'long unsigned int'} from 'int' may change the sign of the result [-Wsign-conversion] 111 | static char* buf; | ^ ../../lib/cgraph/scan.l: In function 'ppDirective': ../../lib/cgraph/scan.l:138:29: warning: conversion from 'long int' to 'int' may change value [-Wconversion] 138 | while (*e && *e != '"') e++; | ~^~ scan.c: In function 'aaglex': scan.c:1510:8: warning: switch missing default case [-Wswitch-default] 1510 | | ^ ../../lib/cgraph/scan.l: At top level: ../../lib/cgraph/scan.l:234:6: warning: no previous prototype for 'aagerror' [-Wmissing-prototypes] 234 | void aagerror(const char *str) | ^~~~~~~~ ../../lib/cgraph/scan.l: In function 'aagerror': ../../lib/cgraph/scan.l:247:14: warning: switch missing default case [-Wswitch-default] 247 | else switch (YYSTATE) { | ^~~~~~ CCLD libcgraph.la CCLD libcgraph_C.la make[3]: Leaving directory '/build/graphviz/src/graphviz-4.0.0/lib/cgraph' Making all in pathplan make[3]: Entering directory '/build/graphviz/src/graphviz-4.0.0/lib/pathplan' rm -f pathplan.3.pdf; pdffile=pathplan.3.pdf; psfile=${pdffile%pdf}ps; \ groff -Tps -man pathplan.3 > $psfile || { rm -f $psfile; exit 1; }; \ ps2pdf $psfile && rm -f $psfile || { rm -f $psfile; exit 1; } CC cvt.lo CC inpoly.lo CC route.lo CC shortest.lo CC shortestpth.lo CC solvers.lo CC triang.lo CC util.lo CC visibility.lo util.c: In function 'Ppolybarriers': util.c:35:20: warning: conversion to 'long unsigned int' from 'int' may change the sign of the result [-Wsign-conversion] 35 | bar = malloc(n * sizeof(Pedge_t)); | ^ util.c: In function 'make_polyline': util.c:16:48: warning: conversion to 'long unsigned int' from 'int' may change the sign of the result [-Wsign-conversion] 16 | #define ALLOC(size,ptr,type) realloc(ptr,(size)*sizeof(type)) | ^ util.c:66:19: note: in expansion of macro 'ALLOC' 66 | ispline = ALLOC(npts, ispline, Ppoint_t); | ^~~~~ visibility.c: In function 'allocArray': visibility.c:36:30: warning: conversion to 'long unsigned int' from 'int' may change the sign of the result [-Wsign-conversion] 36 | arr = malloc((V + extra) * sizeof(COORD *)); | ^ visibility.c:37:18: warning: conversion to 'size_t' {aka 'long unsigned int'} from 'int' may change the sign of the result [-Wsign-conversion] 37 | p = calloc(V * V, sizeof(COORD)); | ~~^~~ triang.c: In function 'Ptriangulate': triang.c:48:21: warning: conversion to 'size_t' {aka 'long unsigned int'} from 'int' may change the sign of the result [-Wsign-conversion] 48 | pointp = calloc(pointn, sizeof(Ppoint_t *)); | ^~~~~~ visibility.c: In function 'inBetween': visibility.c:74:13: warning: comparing floating-point with '==' or '!=' is unsafe [-Wfloat-equal] 74 | if (a.x != b.x) /* not vertical */ | ^~ shortestpth.c: In function 'shortestPath': shortestpth.c:37:20: warning: conversion to 'long unsigned int' from 'int' may change the sign of the result [-Wsign-conversion] 37 | dad = malloc(V * sizeof(int)); | ^ visibility.c: In function 'clear': visibility.c:201:59: warning: unused parameter 'prevPt' [-Wunused-parameter] 201 | int V, Ppoint_t pts[], int nextPt[], int prevPt[]) | ~~~~^~~~~~~~ shortestpth.c:38:25: warning: conversion to 'long unsigned int' from 'int' may change the sign of the result [-Wsign-conversion] 38 | vl = malloc((V + 1) * sizeof(COORD)); /* One extra for sentinel */ | ^ shortestpth.c:54:20: warning: comparing floating-point with '==' or '!=' is unsafe [-Wfloat-equal] 54 | if (val[k] == unseen) | ^~ visibility.c: In function 'ptVis': shortestpth.c:69:26: warning: comparing floating-point with '==' or '!=' is unsafe [-Wfloat-equal] 69 | if ((wkt != 0) && (val[t] < newpri)) { | ^~ visibility.c:312:27: warning: conversion to 'long unsigned int' from 'int' may change the sign of the result [-Wsign-conversion] 312 | vadj = malloc((V + 2) * sizeof(COORD)); | ^ shortestpth.c: In function 'makePath': shortestpth.c:99:39: warning: conversion to 'long unsigned int' from 'int' may change the sign of the result [-Wsign-conversion] 99 | int *dad = malloc(sizeof(int) * (V + 2)); | ^ route.c: In function 'reallyroutespline': route.c:115:50: warning: conversion to 'long unsigned int' from 'int' may change the sign of the result [-Wsign-conversion] 115 | if (!(tnas = realloc(tnas, sizeof(tna_t) * inpn))) | ^ shortest.c: In function 'Pshortestpath': shortest.c:124:15: warning: comparing floating-point with '==' or '!=' is unsafe [-Wfloat-equal] 124 | if ((p1.x == p2.x && p2.x == p3.x && p3.y > p2.y) || | ^~ route.c: In function 'splinefits': shortest.c:124:31: warning: comparing floating-point with '==' or '!=' is unsafe [-Wfloat-equal] 124 | if ((p1.x == p2.x && p2.x == p3.x && p3.y > p2.y) || | ^~ route.c:248:15: warning: comparing floating-point with '==' or '!=' is unsafe [-Wfloat-equal] 248 | if (a == 0 && b == 0) { | ^~ route.c:248:25: warning: comparing floating-point with '==' or '!=' is unsafe [-Wfloat-equal] 248 | if (a == 0 && b == 0) { | ^~ shortest.c:128:36: warning: comparing floating-point with '==' or '!=' is unsafe [-Wfloat-equal] 128 | && polyp->ps[pi].x == polyp->ps[pi + 1].x | ^~ shortest.c:129:36: warning: comparing floating-point with '==' or '!=' is unsafe [-Wfloat-equal] 129 | && polyp->ps[pi].y == polyp->ps[pi + 1].y) | ^~ shortest.c:138:43: warning: comparing floating-point with '==' or '!=' is unsafe [-Wfloat-equal] 138 | if (pi > 0 && polyp->ps[pi].x == polyp->ps[pi - 1].x && | ^~ shortest.c:139:33: warning: comparing floating-point with '==' or '!=' is unsafe [-Wfloat-equal] 139 | polyp->ps[pi].y == polyp->ps[pi - 1].y) | ^~ route.c: In function 'splineintersectsline': route.c:316:19: warning: comparing floating-point with '==' or '!=' is unsafe [-Wfloat-equal] 316 | if (xcoeff[1] == 0) { | ^~ route.c:317:23: warning: comparing floating-point with '==' or '!=' is unsafe [-Wfloat-equal] 317 | if (ycoeff[1] == 0) { | ^~ route.c:336:39: warning: comparing floating-point with '==' or '!=' is unsafe [-Wfloat-equal] 336 | if (xroots[i] == yroots[j]) | ^~ shortest.c:267:24: warning: conversion from 'long int' to 'int' may change value [-Wconversion] 267 | trii = trip->e[ei].rtp - tris; | ^~~~ route.c: In function 'growops': route.c:415:40: warning: conversion to 'long unsigned int' from 'int' may change the sign of the result [-Wsign-conversion] 415 | if (!(ops = realloc(ops, POINTSIZE * newopn))) { | ^ shortest.c: In function 'triangulate': shortest.c:292:40: warning: declaration of 'pnlps' shadows a global declaration [-Wshadow] 292 | static int triangulate(pointnlink_t ** pnlps, int pnln) | ~~~~~~~~~~~~~~~~^~~~~ shortest.c:57:30: note: shadowed declaration is here 57 | static pointnlink_t *pnls, **pnlps; | ^~~~~ shortest.c:292:51: warning: declaration of 'pnln' shadows a global declaration [-Wshadow] 292 | static int triangulate(pointnlink_t ** pnlps, int pnln) | ~~~~^~~~ shortest.c:58:12: note: shadowed declaration is here 58 | static int pnln, pnll; | ^~~~ shortest.c: In function 'isdiagonal': shortest.c:322:62: warning: declaration of 'pnlps' shadows a global declaration [-Wshadow] 322 | static bool isdiagonal(int pnli, int pnlip2, pointnlink_t ** pnlps, | ~~~~~~~~~~~~~~~~^~~~~ shortest.c:57:30: note: shadowed declaration is here 57 | static pointnlink_t *pnls, **pnlps; | ^~~~~ shortest.c:323:27: warning: declaration of 'pnln' shadows a global declaration [-Wshadow] 323 | int pnln) | ~~~~^~~~ shortest.c:58:12: note: shadowed declaration is here 58 | static int pnln, pnll; | ^~~~ shortest.c: In function 'marktripath': shortest.c:404:46: warning: conversion from 'long int' to 'int' may change value [-Wconversion] 404 | marktripath(tris[trii].e[ei].rtp - tris, trij)) | ~~~~~~~~~~~~~~~~~~~~~^~~~~~ shortest.c: In function 'growpnls': shortest.c:505:41: warning: conversion to 'long unsigned int' from 'int' may change the sign of the result [-Wsign-conversion] 505 | pnls = realloc(pnls, POINTNLINKSIZE * newpnln); | ^ shortest.c:510:44: warning: conversion to 'long unsigned int' from 'int' may change the sign of the result [-Wsign-conversion] 510 | pnlps = realloc(pnlps, POINTNLINKPSIZE * newpnln); | ^ shortest.c: In function 'growtris': shortest.c:523:39: warning: conversion to 'long unsigned int' from 'int' may change the sign of the result [-Wsign-conversion] 523 | tris = realloc(tris, TRIANGLESIZE * newtrin); | ^ shortest.c: In function 'growdq': shortest.c:537:50: warning: conversion to 'long unsigned int' from 'int' may change the sign of the result [-Wsign-conversion] 537 | dq.pnlps = realloc(dq.pnlps, POINTNLINKPSIZE * newdqn); | ^ shortest.c: In function 'growops': shortest.c:550:34: warning: conversion to 'long unsigned int' from 'int' may change the sign of the result [-Wsign-conversion] 550 | ops = realloc(ops, POINTSIZE * newopn); | ^ cvt.c: In function 'Pobsopen': cvt.c:57:24: warning: conversion to 'long unsigned int' from 'int' may change the sign of the result [-Wsign-conversion] 57 | rv->P = mymalloc(n * sizeof(Ppoint_t)); | ^ cvt.c:58:38: warning: conversion to 'long unsigned int' from 'int' may change the sign of the result [-Wsign-conversion] 58 | rv->start = mymalloc((n_obs + 1) * sizeof(int)); | ^ cvt.c:59:27: warning: conversion to 'long unsigned int' from 'int' may change the sign of the result [-Wsign-conversion] 59 | rv->next = mymalloc(n * sizeof(int)); | ^ cvt.c:60:27: warning: conversion to 'long unsigned int' from 'int' may change the sign of the result [-Wsign-conversion] 60 | rv->prev = mymalloc(n * sizeof(int)); | ^ cvt.c: In function 'Pobspath': cvt.c:140:24: warning: conversion from 'size_t' {aka 'long unsigned int'} to 'int' may change value [-Wconversion] 140 | output_route->pn = opn; | ^~~ CCLD libpathplan.la CCLD libpathplan_C.la make[3]: Leaving directory '/build/graphviz/src/graphviz-4.0.0/lib/pathplan' Making all in sfio make[3]: Entering directory '/build/graphviz/src/graphviz-4.0.0/lib/sfio' Making all in Sfio_f make[4]: Entering directory '/build/graphviz/src/graphviz-4.0.0/lib/sfio/Sfio_f' CC _sffileno.lo CC _sfgetc.lo CC _sfputc.lo CC _sfslen.lo CCLD libsfiof_C.la make[4]: Leaving directory '/build/graphviz/src/graphviz-4.0.0/lib/sfio/Sfio_f' make[4]: Entering directory '/build/graphviz/src/graphviz-4.0.0/lib/sfio' CC sfclose.lo CC sfexcept.lo CC sffilbuf.lo CC sfflsbuf.lo CC sfmode.lo CC sfnew.lo CC sfnputc.lo CC sfcvt.lo CC sfdisc.lo CC sfextern.lo CC sfprintf.lo CC sfpkrd.lo CC sfopen.lo CC sfputr.lo CC sfraise.lo CC sfrd.lo sfflsbuf.c: In function '_sfflsbuf': sfflsbuf.c:59:30: warning: conversion from 'int' to 'unsigned char' may change value [-Wconversion] 59 | *f->next++ = c; | ^ In file included from sfflsbuf.c:11: sfflsbuf.c:78:32: warning: conversion to 'size_t' {aka 'long unsigned int'} from 'ssize_t' {aka 'long int'} may change the sign of the result [-Wsign-conversion] 78 | if ((w = SFWR(f, data, n, f->disc)) > 0) { | ^ ../../lib/sfio/sfhdr.h:346:54: note: in definition of macro 'SFWR' 346 | #define SFWR(f,b,n,d) (SETLOCAL(f),sfwr(f,(void*)b,n,d)) | ^ sfflsbuf.c:80:43: warning: conversion to 'size_t' {aka 'long unsigned int'} from 'ssize_t' {aka 'long int'} may change the sign of the result [-Wsign-conversion] 80 | memcpy(f->data, data + w, n); | ^ sfnew.c: In function 'sfnew': sfflsbuf.c:94:16: warning: conversion from 'long int' to 'int' may change value [-Wconversion] 94 | inpc = f->endb - f->next; | ^ sfnew.c:86:15: warning: conversion from 'int' to 'short int' may change value [-Wconversion] 86 | f->file = file; | ^~~~ sfnew.c:92:19: warning: conversion to 'ssize_t' {aka 'long int'} from 'size_t' {aka 'long unsigned int'} may change the sign of the result [-Wsign-conversion] 92 | f->size = size; | ^~~~ sfnputc.c: In function 'sfnputc': sfnputc.c:45:13: warning: conversion to 'ssize_t' {aka 'long int'} from 'size_t' {aka 'long unsigned int'} may change the sign of the result [-Wsign-conversion] 45 | p = n; | ^ sfnputc.c:46:19: warning: conversion to 'size_t' {aka 'long unsigned int'} from 'ssize_t' {aka 'long int'} may change the sign of the result [-Wsign-conversion] 46 | memset(ps, c, p); | ^ sfnputc.c:48:9: warning: conversion to 'ssize_t' {aka 'long int'} from 'size_t' {aka 'long unsigned int'} may change the sign of the result [-Wsign-conversion] 48 | w = n; | ^ In file included from sfnputc.c:11: sfnputc.c:57:33: warning: conversion to 'size_t' {aka 'long unsigned int'} from 'ssize_t' {aka 'long int'} may change the sign of the result [-Wsign-conversion] 57 | if ((p = SFWRITE(f, ps, p)) <= 0 || (n -= p) <= 0) { | ^ ../../lib/sfio/sfhdr.h:352:50: note: in definition of macro 'SFWRITE' 352 | #define SFWRITE(f,s,n) (SETLOCAL(f),sfwrite(f,s,n)) | ^ sfnputc.c:57:48: warning: conversion to 'long unsigned int' from 'ssize_t' {aka 'long int'} may change the sign of the result [-Wsign-conversion] 57 | if ((p = SFWRITE(f, ps, p)) <= 0 || (n -= p) <= 0) { | ^~ sfnputc.c:58:15: warning: conversion to 'long unsigned int' from 'ssize_t' {aka 'long int'} may change the sign of the result [-Wsign-conversion] 58 | w -= n; | ^~ sfnputc.c:58:18: warning: conversion to 'ssize_t' {aka 'long int'} from 'long unsigned int' may change the sign of the result [-Wsign-conversion] 58 | w -= n; | ^ sfcvt.c: In function '_sfcvt': sfnputc.c:62:17: warning: conversion to 'ssize_t' {aka 'long int'} from 'size_t' {aka 'long unsigned int'} may change the sign of the result [-Wsign-conversion] 62 | p = n; | ^ sfcvt.c:46:18: warning: comparing floating-point with '==' or '!=' is unsafe [-Wfloat-equal] 46 | if (dval == 0.) | ^~ In file included from sfcvt.c:12: ../../lib/sfio/sfhdr.h:456:25: warning: conversion from 'long double' to 'double' may change value [-Wfloat-conversion] 456 | #define _Sfneg10 (_Sftable.sf_neg10) | ^ sfcvt.c:58:29: note: in expansion of macro '_Sfneg10' 58 | dval *= _Sfneg10[v]; | ^~~~~~~~ sfputr.c: In function 'sfputr': sfputr.c:39:17: warning: conversion to 'ssize_t' {aka 'long int'} from 'size_t' {aka 'long unsigned int'} may change the sign of the result [-Wsign-conversion] 39 | n = strlen(s); | ^~~~~~ sfputr.c:42:35: warning: conversion to 'size_t' {aka 'long unsigned int'} from 'ssize_t' {aka 'long int'} may change the sign of the result [-Wsign-conversion] 42 | memcpy(ps, s, n); | ^ sfputr.c:47:29: warning: conversion from 'int' to 'unsigned char' may change value [-Wconversion] 47 | *ps++ = rc; | ^~ sfputr.c:59:47: warning: conversion to 'size_t' {aka 'long unsigned int'} from 'ssize_t' {aka 'long int'} may change the sign of the result [-Wsign-conversion] 59 | memcpy(rsrv->data, s, n); | ^ sfputr.c:61:41: warning: conversion from 'int' to 'unsigned char' may change value [-Wconversion] 61 | rsrv->data[n] = rc; | ^~ In file included from sfputr.c:11: sfputr.c:62:53: warning: conversion to 'size_t' {aka 'long unsigned int'} from 'ssize_t' {aka 'long int'} may change the sign of the result [-Wsign-conversion] 62 | if ((n = SFWRITE(f, rsrv->data, p)) < 0) | ^ ../../lib/sfio/sfhdr.h:352:50: note: in definition of macro 'SFWRITE' 352 | #define SFWRITE(f,s,n) (SETLOCAL(f),sfwrite(f,s,n)) | ^ sfputr.c:72:21: warning: conversion from 'int' to 'unsigned char' may change value [-Wconversion] 72 | *ps++ = rc; | ^~ sfputr.c:77:40: warning: conversion to 'size_t' {aka 'long unsigned int'} from 'ssize_t' {aka 'long int'} may change the sign of the result [-Wsign-conversion] 77 | if ((ps = memccpy(ps, s, '\0', p)) != NULL) | ^ sfputr.c:96:36: warning: conversion to 'size_t' {aka 'long unsigned int'} from 'ssize_t' {aka 'long int'} may change the sign of the result [-Wsign-conversion] 96 | (void) SFWRITE(f, f->next, n); | ^ ../../lib/sfio/sfhdr.h:352:50: note: in definition of macro 'SFWRITE' 352 | #define SFWRITE(f,s,n) (SETLOCAL(f),sfwrite(f,s,n)) | ^ sfcvt.c:107:26: warning: conversion from 'long int' to 'double' may change value [-Wconversion] 107 | dval -= n; | ^~ sfdisc.c: In function 'sfdisc': sfdisc.c:134:39: warning: conversion to 'size_t' {aka 'long unsigned int'} from 'ssize_t' {aka 'long int'} may change the sign of the result [-Wsign-conversion] 134 | sfsetbuf(f, f->data, f->size); | ~^~~~~~ sffilbuf.c: In function '_sffilbuf': sffilbuf.c:73:70: warning: comparison of integer expressions of different signedness: 'size_t' {aka 'long unsigned int'} and 'ssize_t' {aka 'long int'} [-Wsign-compare] 73 | else if (justseek && (size_t)n <= f->iosz && f->iosz <= f->size) | ^~ sffilbuf.c:74:25: warning: conversion to 'ssize_t' {aka 'long int'} from 'size_t' {aka 'long unsigned int'} may change the sign of the result [-Wsign-conversion] 74 | r = f->iosz; /* limit buffer filling */ | ^ sffilbuf.c:79:17: warning: conversion to 'unsigned int' from 'int' may change the sign of the result [-Wsign-conversion] 79 | f->mode |= rcrv; | ^~ sffilbuf.c:80:19: warning: conversion from 'int' to 'unsigned char' may change value [-Wconversion] 80 | f->getr = rc; | ^~ sfopen.c: In function 'sfopen': In file included from sffilbuf.c:11: sffilbuf.c:81:35: warning: conversion to 'size_t' {aka 'long unsigned int'} from 'ssize_t' {aka 'long int'} may change the sign of the result [-Wsign-conversion] 81 | if ((r = SFRD(f, f->endb, r, f->disc)) >= 0) { | ^ ../../lib/sfio/sfhdr.h:345:54: note: in definition of macro 'SFRD' 345 | #define SFRD(f,b,n,d) (SETLOCAL(f),sfrd(f,(void*)b,n,d)) | ^ sfopen.c:54:28: warning: unsigned conversion from 'int' to 'short unsigned int' changes the value of '-4' [-Wsign-conversion] 54 | f->flags = (f->flags & ~SF_RDWR) | sflags; | ^ sfopen.c:62:40: warning: unsigned conversion from 'int' to 'unsigned int' changes value from '-3' to '4294967293' [-Wsign-conversion] 62 | f->mode = (f->mode & ~SF_WRITE) | SF_READ; | ^ sfopen.c:64:40: warning: unsigned conversion from 'int' to 'unsigned int' changes value from '-2' to '4294967294' [-Wsign-conversion] 64 | f->mode = (f->mode & ~SF_READ) | SF_WRITE; | ^ sfopen.c:74:22: warning: cast discards 'const' qualifier from pointer target type [-Wcast-qual] 74 | f = sfnew(f, (char *)file, file ? strlen(file) : SF_UNBOUND, -1, sflags); | ^ CC sfread.lo sfmode.c: In function '_sfcleanup': sfmode.c:78:21: warning: conversion to 'unsigned int' from 'int' may change the sign of the result [-Wsign-conversion] 78 | f->mode |= pool; | ^~ sfmode.c: In function '_sfsetpool': sfmode.c:108:36: warning: conversion to 'long unsigned int' from 'int' may change the sign of the result [-Wsign-conversion] 108 | if (!(array = malloc(n * sizeof(Sfio_t *)))) | ^ sfmode.c:112:42: warning: conversion to 'long unsigned int' from 'int' may change the sign of the result [-Wsign-conversion] 112 | memcpy(array, p->sf, p->n_sf * sizeof(Sfio_t *)); | ^ sfmode.c: In function '_sfrsrv': sfmode.c:139:32: warning: conversion to 'long unsigned int' from 'ssize_t' {aka 'long int'} may change the sign of the result [-Wsign-conversion] 139 | if (!(rs = malloc(size + sizeof(Sfrsrv_t)))) | ^ sfmode.c:144:55: warning: conversion to 'long unsigned int' from 'ssize_t' {aka 'long int'} may change the sign of the result [-Wsign-conversion] 144 | memcpy(rs, rsrv, sizeof(Sfrsrv_t) + rsrv->slen); | ^ sfexcept.c: In function '_sfexcept': sfpkrd.c: In function 'sfpkrd': sfexcept.c:73:41: warning: conversion to 'size_t' {aka 'long unsigned int'} from 'ssize_t' {aka 'long int'} may change the sign of the result [-Wsign-conversion] 73 | data = realloc(f->data, size); | ^~~~ sfpkrd.c:197:26: warning: conversion from 'size_t' {aka 'long unsigned int'} to 'int' may change value [-Wconversion] 197 | action = n; | ^ sfexcept.c:75:31: warning: conversion to 'size_t' {aka 'long unsigned int'} from 'ssize_t' {aka 'long int'} may change the sign of the result [-Wsign-conversion] 75 | data = malloc(size); | ^~~~ sfpkrd.c:199:39: warning: conversion to 'size_t' {aka 'long unsigned int'} from 'int' may change the sign of the result [-Wsign-conversion] 199 | while ((t = read(fd, buf, action)) > 0) { | ^~~~~~ sfmode.c: In function '_sfpmode': sfpkrd.c:199:25: warning: conversion from 'ssize_t' {aka 'long int'} to 'int' may change value [-Wconversion] 199 | while ((t = read(fd, buf, action)) > 0) { | ^~~~ sfmode.c:244:20: warning: conversion from 'long int' to 'int' may change value [-Wconversion] 244 | p->ndata = f->endb - f->next; | ^ sfmode.c:247:37: warning: conversion to 'size_t' {aka 'long unsigned int'} from 'int' may change the sign of the result [-Wsign-conversion] 247 | if ((p->rdata = malloc(p->ndata))) | ~^~~~~~~ sfpkrd.c:204:45: warning: conversion to 'long unsigned int' from 'ssize_t' {aka 'long int'} may change the sign of the result [-Wsign-conversion] 204 | if (action == 0 || (int) (n - r) < action) | ^ sfmode.c:255:40: warning: conversion to 'size_t' {aka 'long unsigned int'} from 'int' may change the sign of the result [-Wsign-conversion] 255 | memcpy(p->rdata, f->next, p->ndata); | ~^~~~~~~ sfrd.c: In function 'sfrd': sfmode.c:259:24: warning: conversion from 'ssize_t' {aka 'long int'} to 'int' may change value [-Wconversion] 259 | p->ndata = f->size; | ^ sfmode.c:261:40: warning: conversion to 'size_t' {aka 'long unsigned int'} from 'int' may change the sign of the result [-Wsign-conversion] 261 | memcpy(f->data, p->rdata, p->ndata); | ~^~~~~~~ sfmode.c:270:19: warning: conversion from 'int' to 'short int' may change value [-Wconversion] 270 | f->file = p->file; | ^ sfrd.c:95:45: warning: conversion to 'ssize_t' {aka 'long int'} from 'size_t' {aka 'long unsigned int'} may change the sign of the result [-Wsign-conversion] 95 | if ((rv = _sfexcept(f, SF_READ, n, dc)) > 0) | ^ sfpkrd.c:225:27: warning: conversion to 'size_t' {aka 'long unsigned int'} from 'ssize_t' {aka 'long int'} may change the sign of the result [-Wsign-conversion] 225 | r = read(fd, buf, r); | ^ sfrd.c:96:21: warning: conversion to 'size_t' {aka 'long unsigned int'} from 'int' may change the sign of the result [-Wsign-conversion] 96 | n = rv; | ^~ sfrd.c:135:29: warning: conversion from 'int' to 'short unsigned int' may change value [-Wconversion] 135 | f->flags |= share; | ^~~~~ In file included from sfmode.c:11: sfmode.c: In function '_sfmode': sfmode.c:363:42: warning: conversion to 'size_t' {aka 'long unsigned int'} from 'ssize_t' {aka 'long int'} may change the sign of the result [-Wsign-conversion] 363 | (void) SFSETBUF(f, f->data, f->size); | ~^~~~~~ ../../lib/sfio/sfhdr.h:351:51: note: in definition of macro 'SFSETBUF' 351 | #define SFSETBUF(f,s,n) (SETLOCAL(f),sfsetbuf(f,s,n)) | ^ sfrd.c:176:17: warning: conversion to 'size_t' {aka 'long unsigned int'} from 'long int' may change the sign of the result [-Wsign-conversion] 176 | n = local ? 0 : (ssize_t) r; | ^~~~~ In file included from sfrd.c:11: ../../lib/sfio/sfhdr.h:61:41: warning: conversion to 'ssize_t' {aka 'long int'} from 'size_t' {aka 'long unsigned int'} may change the sign of the result [-Wsign-conversion] 61 | #define SFMTXRETURN(f,v) { return(v); } | ^ sfrd.c:177:13: note: in expansion of macro 'SFMTXRETURN' 177 | SFMTXRETURN(f, n); | ^~~~~~~~~~~ sfrd.c:172:9: warning: switch missing default case [-Wswitch-default] 172 | switch (_sfexcept(f, SF_READ, (ssize_t) r, dc)) { | ^~~~~~ CC sfscanf.lo sfmode.c:464:20: warning: comparison of integer expressions of different signedness: 'int' and 'unsigned int' [-Wsign-compare] 464 | if (wanted != (f->mode & SF_RDWR) && f->file >= 0) | ^~ CC sfseek.lo CC sfsetbuf.lo CC sfsetfd.lo CC sfsk.lo CC sfstack.lo CC sfswap.lo CC sfsync.lo CC sftable.lo CC sfungetc.lo CC sfvprintf.lo CC sfvscanf.lo CC sfwr.lo CC sfwrite.lo sfscanf.c: In function 'sfvsscanf': sfscanf.c:39:14: warning: conversion to 'ssize_t' {aka 'long int'} from 'size_t' {aka 'long unsigned int'} may change the sign of the result [-Wsign-conversion] 39 | f.size = strlen(s); | ^~~~~~ sfscanf.c:40:32: warning: cast discards 'const' qualifier from pointer target type [-Wcast-qual] 40 | f.data = f.next = f.endw = (uchar *) s; | ^ sfread.c: In function 'sfread': sfread.c:56:25: warning: conversion to 'size_t' {aka 'long unsigned int'} from 'ssize_t' {aka 'long int'} may change the sign of the result [-Wsign-conversion] 56 | n = (r = read(f->file, f->data, n)) < 0 ? 0 : r; | ^ sfread.c:58:25: warning: conversion to 'long long unsigned int' from 'long long int' may change the sign of the result [-Wsign-conversion] 58 | f->here += n; | ^~ sfread.c:58:28: warning: conversion to 'long long int' from 'long long unsigned int' may change the sign of the result [-Wsign-conversion] 58 | f->here += n; | ^ In file included from sfread.c:11: ../../lib/sfio/sfhdr.h:61:41: warning: conversion to 'ssize_t' {aka 'long int'} from 'size_t' {aka 'long unsigned int'} may change the sign of the result [-Wsign-conversion] 61 | #define SFMTXRETURN(f,v) { return(v); } | ^ sfread.c:62:13: note: in expansion of macro 'SFMTXRETURN' 62 | SFMTXRETURN(f, n); | ^~~~~~~~~~~ sfread.c:69:28: warning: operand of '?:' changes signedness from 'long int' to 'long unsigned int' due to unsignedness of other operand [-Wsign-compare] 69 | n = s > begs ? s - begs : (size_t) (-1); | ^~~~~~~~ sfread.c:69:37: warning: conversion to 'long unsigned int' from 'long int' may change the sign of the result [-Wsign-conversion] 69 | n = s > begs ? s - begs : (size_t) (-1); | ^ sfread.c:79:36: warning: conversion to 'size_t' {aka 'long unsigned int'} from 'ssize_t' {aka 'long int'} may change the sign of the result [-Wsign-conversion] 79 | memcpy(s, f->next, r); | ^ sfread.c:82:15: warning: conversion to 'long unsigned int' from 'ssize_t' {aka 'long int'} may change the sign of the result [-Wsign-conversion] 82 | n -= r; | ^~ sfread.c:94:58: warning: comparison of integer expressions of different signedness: 'size_t' {aka 'long unsigned int'} and 'ssize_t' {aka 'long int'} [-Wsign-compare] 94 | else if (justseek && n <= f->iosz && f->iosz <= f->size) | ^~ sfread.c:95:21: warning: conversion to 'ssize_t' {aka 'long int'} from 'size_t' {aka 'long unsigned int'} may change the sign of the result [-Wsign-conversion] 95 | r = f->iosz; /* limit buffering */ | ^ sfread.c:104:53: warning: conversion to 'size_t' {aka 'long unsigned int'} from 'ssize_t' {aka 'long int'} may change the sign of the result [-Wsign-conversion] 104 | if (r == (ssize_t) n && (r = SFRD(f, s, r, f->disc)) >= 0) { | ^ ../../lib/sfio/sfhdr.h:345:54: note: in definition of macro 'SFRD' 345 | #define SFRD(f,b,n,d) (SETLOCAL(f),sfrd(f,(void*)b,n,d)) | ^ sfread.c:106:19: warning: conversion to 'long unsigned int' from 'ssize_t' {aka 'long int'} may change the sign of the result [-Wsign-conversion] 106 | n -= r; | ^~ In file included from sfseek.c:11: sfseek.c: In function 'sfseek': ../../lib/sfio/sfhdr.h:412:35: warning: declaration of 's' shadows a previous local [-Wshadow] 412 | #define SFSTRSIZE(f) { Sfoff_t s = (f)->next - (f)->data; \ | ^ sfseek.c:91:9: note: in expansion of macro 'SFSTRSIZE' 91 | SFSTRSIZE(f); | ^~~~~~~~~ sfseek.c:36:16: note: shadowed declaration is here 36 | Sfoff_t r, s; | ^ sfseek.c:105:47: warning: conversion to 'size_t' {aka 'long unsigned int'} from 'int' may change the sign of the result [-Wsign-conversion] 105 | memclear(f->data + f->extent, (int)(p - f->extent)); ../../lib/sfio/sfhdr.h:536:42: note: in definition of macro 'memclear' 536 | #define memclear(s,n) memset((s),'\0',(n)) | ^ sfseek.c:177:9: warning: conversion to 'size_t' {aka 'long unsigned int'} from 'long int' may change the sign of the result [-Wsign-conversion] 177 | b = f->endb - f->data; /* amount of buffered data */ | ^ sfseek.c:178:9: warning: conversion to 'size_t' {aka 'long unsigned int'} from 'long int' may change the sign of the result [-Wsign-conversion] 178 | c = f->next - f->data; /* amount of data consumed */ | ^ sfseek.c:195:17: warning: comparison of integer expressions of different signedness: 'size_t' {aka 'long unsigned int'} and 'ssize_t' {aka 'long int'} [-Wsign-compare] 195 | if (f->iosz >= f->size) | ^~ sfseek.c:223:34: warning: conversion to 'size_t' {aka 'long unsigned int'} from 'ssize_t' {aka 'long int'} may change the sign of the result [-Wsign-conversion] 223 | (void) SFRD(f, f->data, f->size, f->disc); | ~^~~~~~ ../../lib/sfio/sfhdr.h:345:54: note: in definition of macro 'SFRD' 345 | #define SFRD(f,b,n,d) (SETLOCAL(f),sfrd(f,(void*)b,n,d)) | ^ sfsetbuf.c: In function 'sfsetbuf': sfsetbuf.c:199:20: warning: conversion to 'size_t' {aka 'long unsigned int'} from 'ssize_t' {aka 'long int'} may change the sign of the result [-Wsign-conversion] 199 | size = osize; | ^~~~~ In file included from sfsetbuf.c:12: ../../lib/sfio/sfhdr.h:291:25: warning: conversion to 'size_t' {aka 'long unsigned int'} from 'ssize_t' {aka 'long int'} may change the sign of the result [-Wsign-conversion] 291 | #define _Sfpage (_Sfextern.sf_page) | ^ sfsetbuf.c:209:36: note: in expansion of macro '_Sfpage' 209 | else if ((ssize_t) (size = _Sfpage) < blksize) | ^~~~~~~ sfsetbuf.c:210:20: warning: conversion to 'size_t' {aka 'long unsigned int'} from 'ssize_t' {aka 'long int'} may change the sign of the result [-Wsign-conversion] 210 | size = blksize; | ^~~~~~~ sfsetbuf.c:240:15: warning: conversion to 'ssize_t' {aka 'long int'} from 'size_t' {aka 'long unsigned int'} may change the sign of the result [-Wsign-conversion] 240 | f->size = size; | ^~~~ sfsetbuf.c:244:21: warning: conversion to 'long long int' from 'size_t' {aka 'long unsigned int'} may change the sign of the result [-Wsign-conversion] 244 | f->extent = (!sf_malloc && | ^ In file included from sfsk.c:11: sfsk.c: In function 'sfsk': ../../lib/sfio/sfhdr.h:412:35: warning: declaration of 's' shadows a previous local [-Wshadow] 412 | #define SFSTRSIZE(f) { Sfoff_t s = (f)->next - (f)->data; \ | ^ sfsk.c:42:13: note: in expansion of macro 'SFSTRSIZE' 42 | SFSTRSIZE(f); | ^~~~~~~~~ sfsk.c:21:13: note: shadowed declaration is here 21 | ssize_t s; | ^ sfsetfd.c: In function 'sfsetfd': sfsetfd.c:97:15: warning: conversion from 'int' to 'short int' may change value [-Wconversion] 97 | f->file = newfd; | ^~~~~ sfswap.c: In function 'sfswap': sfswap.c:36:14: warning: conversion to 'int' from 'unsigned int' may change the sign of the result [-Wsign-conversion] 36 | f1mode = f1->mode; | ^~ sfswap.c:50:28: warning: conversion to 'unsigned int' from 'int' may change the sign of the result [-Wsign-conversion] 50 | f1->mode = f1mode; | ^~~~~~ sfswap.c:104:16: warning: conversion to 'unsigned int' from 'int' may change the sign of the result [-Wsign-conversion] 104 | f2->mode = f1mode; | ^~~~~~ sfsync.c: In function 'sfsync': sfsync.c:117:21: warning: conversion to 'unsigned int' from 'int' may change the sign of the result [-Wsign-conversion] 117 | f->mode |= pool; | ^~ sfsync.c:134:17: warning: conversion to 'unsigned int' from 'int' may change the sign of the result [-Wsign-conversion] 134 | f->mode |= mode; | ^~ sftable.c: In function 'sffmtint': sftable.c:25:12: warning: cast discards 'const' qualifier from pointer target type [-Wcast-qual] 25 | return (char *) str; | ^ sftable.c: In function 'sffmtpos': sftable.c:50:18: warning: cast discards 'const' qualifier from pointer target type [-Wcast-qual] 50 | sp = (char *) form++; | ^ sftable.c:87:21: warning: cast discards 'const' qualifier from pointer target type [-Wcast-qual] 87 | t_str = (char *) form; | ^ sftable.c:112:45: warning: cast discards 'const' qualifier from pointer target type [-Wcast-qual] 112 | fp[n].ft.form = (char *) form; | ^ sftable.c:89:17: warning: switch missing default case [-Wswitch-default] 89 | switch (*form++) { | ^~~~~~ sftable.c:168:33: warning: cast discards 'const' qualifier from pointer target type [-Wcast-qual] 168 | fp[n].ft.form = (char *) form; | ^ sftable.c:212:37: warning: cast discards 'const' qualifier from pointer target type [-Wcast-qual] 212 | fp[n].ft.form = (char *) form; | ^ sftable.c:85:9: warning: switch missing default case [-Wswitch-default] 85 | switch ((fmt = *form++)) { | ^~~~~~ sftable.c:250:62: warning: operand of '?:' changes signedness from 'int' to 'long unsigned int' due to unsignedness of other operand [-Wsign-compare] 250 | (flags & SFFMT_ZFLAG) ? sizeof(size_t) : -1; | ^~ sftable.c:250:60: warning: unsigned conversion from 'int' to 'long unsigned int' changes value from '-1' to '18446744073709551615' [-Wsign-conversion] 250 | (flags & SFFMT_ZFLAG) ? sizeof(size_t) : -1; | ^ sftable.c:244:24: warning: signed conversion from 'long unsigned int' to 'ssize_t' {aka 'long int'} changes the value of '18446744073709551615' [-Wsign-conversion] 244 | size = (flags & SFFMT_LLONG) ? sizeof(Sflong_t) : | ^ sftable.c:254:38: warning: operand of '?:' changes signedness from 'int' to 'long unsigned int' due to unsignedness of other operand [-Wsign-compare] 254 | sizeof(double) : -1; | ^~ sftable.c:254:36: warning: unsigned conversion from 'int' to 'long unsigned int' changes value from '-1' to '18446744073709551615' [-Wsign-conversion] 254 | sizeof(double) : -1; | ^ sftable.c:252:24: warning: signed conversion from 'long unsigned int' to 'ssize_t' {aka 'long int'} changes the value of '18446744073709551615' [-Wsign-conversion] 252 | size = (flags & SFFMT_LDOUBLE) ? sizeof(Sfdouble_t) : | ^ sftable.c:268:32: warning: cast discards 'const' qualifier from pointer target type [-Wcast-qual] 268 | fp[argp].ft.form = (char *) form; | ^ sftable.c:284:41: warning: conversion to 'long unsigned int' from 'int' may change the sign of the result [-Wsign-conversion] 284 | || !(fp = malloc((maxp + 1) * sizeof(Fmtpos_t)))) | ^ sftable.c:337:33: warning: conversion to 'ssize_t' {aka 'long int'} from 'size_t' {aka 'long unsigned int'} may change the sign of the result [-Wsign-conversion] 337 | fp[n].ft.size = strlen(fp[n].argv.s); | ^~~~~~ sftable.c: In function 'sfcvinit': sftable.c:395:41: warning: conversion from 'int' to 'unsigned char' may change value [-Wconversion] 395 | _Sfcv36[(uchar) _Sfdigits[d]] = d; | ^ sftable.c:396:41: warning: conversion from 'int' to 'unsigned char' may change value [-Wconversion] 396 | _Sfcv64[(uchar) _Sfdigits[d]] = d; | ^ sftable.c:401:41: warning: conversion from 'int' to 'unsigned char' may change value [-Wconversion] 401 | _Sfcv36[(uchar) _Sfdigits[d]] = d; | ^ sftable.c:402:41: warning: conversion from 'int' to 'unsigned char' may change value [-Wconversion] 402 | _Sfcv64[(uchar) _Sfdigits[d]] = d; | ^ sftable.c:407:41: warning: conversion from 'int' to 'unsigned char' may change value [-Wconversion] 407 | _Sfcv36[(uchar) _Sfdigits[d]] = l; | ^ sftable.c:408:41: warning: conversion from 'int' to 'unsigned char' may change value [-Wconversion] 408 | _Sfcv64[(uchar) _Sfdigits[d]] = d; | ^ sftable.c:413:41: warning: conversion from 'int' to 'unsigned char' may change value [-Wconversion] 413 | _Sfcv36[(uchar) _Sfdigits[d]] = d; | ^ sftable.c:414:41: warning: conversion from 'int' to 'unsigned char' may change value [-Wconversion] 414 | _Sfcv64[(uchar) _Sfdigits[d]] = d; | ^ sfungetc.c: In function 'sfungetc': sftable.c: At top level: sftable.c:465:1: warning: missing initializer for field 'sf_cv36' of 'Sftab_t' {aka 'struct _sftab_'} [-Wmissing-field-initializers] 465 | }; | ^ In file included from sftable.c:12: ../../lib/sfio/sfhdr.h:475:15: note: 'sf_cv36' declared here 475 | uchar sf_cv36[UCHAR_MAX + 1]; /* conversion for base [2-36] */ | ^~~~~~~ sfungetc.c:72:37: warning: conversion to 'size_t' {aka 'long unsigned int'} from 'ssize_t' {aka 'long int'} may change the sign of the result [-Wsign-conversion] 72 | if (!(data = malloc(f->size + 16))) { | ~~~~~~~~^~~~ sfungetc.c:78:41: warning: conversion to 'size_t' {aka 'long unsigned int'} from 'ssize_t' {aka 'long int'} may change the sign of the result [-Wsign-conversion] 78 | memcpy(data + 16, f->data, f->size); | ~^~~~~~ sfvprintf.c: In function 'sfvprintf': sfvprintf.c:112:13: warning: cast discards 'const' qualifier from pointer target type [-Wcast-qual] 112 | oform = (char *) form; | ^ sfvprintf.c:120:18: warning: cast discards 'const' qualifier from pointer target type [-Wcast-qual] 120 | sp = (char *) form++; | ^ sfvprintf.c:123:17: warning: conversion from 'long int' to 'int' may change value [-Wconversion] 123 | n = form - sp; | ^~~~ In file included from sfvprintf.c:12: sfvprintf.c:124:28: warning: conversion to 'size_t' {aka 'long unsigned int'} from 'int' may change the sign of the result [-Wsign-conversion] 124 | SFwrite(f, sp, n); | ^ ../../lib/sfio/sfhdr.h:540:41: note: in definition of macro 'MEMCPY' 540 | do { memcpy((void*)to,(void*)fr,n); to += n; fr += n; } while (0) | ^ sfvprintf.c:124:13: note: in expansion of macro 'SFwrite' 124 | SFwrite(f, sp, n); | ^~~~~~~ sfvprintf.c:64:39: warning: conversion from 'long int' to 'int' may change value [-Wconversion] 64 | #define SFEND(f) ((n_output += d - f->next), (f->next = d)) | ^ sfvprintf.c:83:13: note: in expansion of macro 'SFEND' 83 | { SFEND(f); n_output += (w = SFWRITE(f,(void*)s,n)) > 0 ? w : 0; SFBUF(f); \ | ^~~~~ sfvprintf.c:124:13: note: in expansion of macro 'SFwrite' 124 | SFwrite(f, sp, n); | ^~~~~~~ sfvprintf.c:124:28: warning: conversion to 'size_t' {aka 'long unsigned int'} from 'int' may change the sign of the result [-Wsign-conversion] 124 | SFwrite(f, sp, n); | ^ ../../lib/sfio/sfhdr.h:352:50: note: in definition of macro 'SFWRITE' 352 | #define SFWRITE(f,s,n) (SETLOCAL(f),sfwrite(f,s,n)) | ^ sfvprintf.c:124:13: note: in expansion of macro 'SFwrite' 124 | SFwrite(f, sp, n); | ^~~~~~~ ../../lib/sfio/sfhdr.h:352:25: warning: conversion from 'ssize_t' {aka 'long int'} to 'int' may change value [-Wconversion] 352 | #define SFWRITE(f,s,n) (SETLOCAL(f),sfwrite(f,s,n)) | ^ sfvprintf.c:83:40: note: in expansion of macro 'SFWRITE' 83 | { SFEND(f); n_output += (w = SFWRITE(f,(void*)s,n)) > 0 ? w : 0; SFBUF(f); \ | ^~~~~~~ sfvprintf.c:124:13: note: in expansion of macro 'SFwrite' 124 | SFwrite(f, sp, n); | ^~~~~~~ sfvprintf.c:64:39: warning: conversion from 'long int' to 'int' may change value [-Wconversion] 64 | #define SFEND(f) ((n_output += d - f->next), (f->next = d)) | ^ sfvprintf.c:68:13: note: in expansion of macro 'SFEND' 68 | { SFEND(f); n_output += (w = SFFLSBUF(f,c)) >= 0 ? 1 : 0; SFBUF(f); \ | ^~~~~ sfvprintf.c:140:13: note: in expansion of macro 'SFputc' 140 | SFputc(f, '%'); | ^~~~~~ sfvprintf.c:64:39: warning: conversion from 'long int' to 'int' may change value [-Wconversion] 64 | #define SFEND(f) ((n_output += d - f->next), (f->next = d)) | ^ sfvprintf.c:68:13: note: in expansion of macro 'SFEND' 68 | { SFEND(f); n_output += (w = SFFLSBUF(f,c)) >= 0 ? 1 : 0; SFBUF(f); \ | ^~~~~ sfvprintf.c:143:13: note: in expansion of macro 'SFputc' 143 | SFputc(f, '%'); | ^~~~~~ sfvprintf.c:147:21: warning: cast discards 'const' qualifier from pointer target type [-Wcast-qual] 147 | t_str = (char *) form; | ^ ../../lib/sfio/sfhdr.h:260:22: warning: cast discards 'const' qualifier from pointer target type [-Wcast-qual] 260 | ((ft->form = (char*)frm), va_copy(ft->args,ags), \ | ^ sfvprintf.c:176:29: note: in expansion of macro 'FMTSET' 176 | FMTSET(ft, form, args, | ^~~~~~ sfvprintf.c:185:41: warning: conversion to 'ssize_t' {aka 'long int'} from 'size_t' {aka 'long unsigned int'} may change the sign of the result [-Wsign-conversion] 185 | n_str = strlen(t_str); | ^~~~~~ sfvprintf.c:189:42: warning: conversion to 'ssize_t' {aka 'long int'} from 'size_t' {aka 'long unsigned int'} may change the sign of the result [-Wsign-conversion] 189 | n_str = strlen(t_str); | ^~~~~~ sfvprintf.c:149:17: warning: switch missing default case [-Wswitch-default] 149 | switch (*form++) { | ^~~~~~ ../../lib/sfio/sfhdr.h:165:25: warning: declaration of 'lv' shadows a previous local [-Wshadow] 165 | { struct lconv* lv; \ | ^~ sfvprintf.c:214:13: note: in expansion of macro 'SFSETLOCALE' 214 | SFSETLOCALE(decimal, thousand); | ^~~~~~~~~~~ sfvprintf.c:36:14: note: shadowed declaration is here 36 | Sflong_t lv; | ^~ ../../lib/sfio/sfhdr.h:260:22: warning: cast discards 'const' qualifier from pointer target type [-Wcast-qual] 260 | ((ft->form = (char*)frm), va_copy(ft->args,ags), \ | ^ sfvprintf.c:259:17: note: in expansion of macro 'FMTSET' 259 | FMTSET(ft, form, args, '.', dot, 0, 0, 0, 0, NULL, | ^~~~~~ ../../lib/sfio/sfhdr.h:260:22: warning: cast discards 'const' qualifier from pointer target type [-Wcast-qual] 260 | ((ft->form = (char*)frm), va_copy(ft->args,ags), \ | ^ sfvprintf.c:321:21: note: in expansion of macro 'FMTSET' 321 | FMTSET(ft, form, args, 'I', sizeof(int), 0, 0, 0, 0, | ^~~~~~ sfvprintf.c:138:9: warning: switch missing default case [-Wswitch-default] 138 | switch ((fmt = *form++)) { | ^~~~~~ sfvprintf.c:380:62: warning: operand of '?:' changes signedness from 'int' to 'long unsigned int' due to unsignedness of other operand [-Wsign-compare] 380 | (flags & SFFMT_ZFLAG) ? sizeof(size_t) : -1; | ^~ sfvprintf.c:380:60: warning: unsigned conversion from 'int' to 'long unsigned int' changes value from '-1' to '18446744073709551615' [-Wsign-conversion] 380 | (flags & SFFMT_ZFLAG) ? sizeof(size_t) : -1; | ^ sfvprintf.c:374:24: warning: signed conversion from 'long unsigned int' to 'ssize_t' {aka 'long int'} changes the value of '18446744073709551615' [-Wsign-conversion] 374 | size = (flags & SFFMT_LLONG) ? sizeof(Sflong_t) : | ^ sfvprintf.c:384:38: warning: operand of '?:' changes signedness from 'int' to 'long unsigned int' due to unsignedness of other operand [-Wsign-compare] 384 | sizeof(double) : -1; | ^~ sfvprintf.c:384:36: warning: unsigned conversion from 'int' to 'long unsigned int' changes value from '-1' to '18446744073709551615' [-Wsign-conversion] 384 | sizeof(double) : -1; | ^ sfvprintf.c:382:24: warning: signed conversion from 'long unsigned int' to 'ssize_t' {aka 'long int'} changes the value of '18446744073709551615' [-Wsign-conversion] 382 | size = (flags & SFFMT_LDOUBLE) ? sizeof(Sfdouble_t) : | ^ ../../lib/sfio/sfhdr.h:260:22: warning: cast discards 'const' qualifier from pointer target type [-Wcast-qual] 260 | ((ft->form = (char*)frm), va_copy(ft->args,ags), \ | ^ sfvprintf.c:395:13: note: in expansion of macro 'FMTSET' 395 | FMTSET(ft, form, args, fmt, size, flags, width, precis, base, | ^~~~~~ sfvprintf.c:64:39: warning: conversion from 'long int' to 'int' may change value [-Wconversion] 64 | #define SFEND(f) ((n_output += d - f->next), (f->next = d)) | ^ sfvprintf.c:397:13: note: in expansion of macro 'SFEND' 397 | SFEND(f); | ^~~~~ sfvprintf.c:456:58: warning: cast discards 'const' qualifier from pointer target type [-Wcast-qual] 456 | if (ft->eventf && ft->eventf(f, SF_DPOP, (void *) form, ft) < 0) | ^ sfvprintf.c:464:32: warning: cast discards 'const' qualifier from pointer target type [-Wcast-qual] 464 | fm->form = (char *) form; | ^ sfvprintf.c:498:26: warning: conversion from 'ssize_t' {aka 'long int'} to 'int' may change value [-Wconversion] 498 | if ((v = size) >= 0) { | ^~~~ sfvprintf.c:502:25: warning: conversion from 'size_t' {aka 'long unsigned int'} to 'int' may change value [-Wconversion] 502 | v = strlen(sp); | ^~~~~~ sfvprintf.c:64:39: warning: conversion from 'long int' to 'int' may change value [-Wconversion] 64 | #define SFEND(f) ((n_output += d - f->next), (f->next = d)) | ^ sfvprintf.c:75:13: note: in expansion of macro 'SFEND' 75 | { SFEND(f); n_output += (w = SFNPUTC(f,c,n)) > 0 ? w : 0; SFBUF(f); \ | ^~~~~ sfvprintf.c:510:25: note: in expansion of macro 'SFnputc' 510 | SFnputc(f, '0', n); | ^~~~~~~ sfvprintf.c:510:41: warning: conversion to 'size_t' {aka 'long unsigned int'} from 'int' may change the sign of the result [-Wsign-conversion] 510 | SFnputc(f, '0', n); | ^ ../../lib/sfio/sfhdr.h:354:50: note: in definition of macro 'SFNPUTC' 354 | #define SFNPUTC(f,c,n) (SETLOCAL(f),sfnputc(f,c,n)) | ^ sfvprintf.c:510:25: note: in expansion of macro 'SFnputc' 510 | SFnputc(f, '0', n); | ^~~~~~~ ../../lib/sfio/sfhdr.h:354:25: warning: conversion from 'ssize_t' {aka 'long int'} to 'int' may change value [-Wconversion] 354 | #define SFNPUTC(f,c,n) (SETLOCAL(f),sfnputc(f,c,n)) | ^ sfvprintf.c:75:40: note: in expansion of macro 'SFNPUTC' 75 | { SFEND(f); n_output += (w = SFNPUTC(f,c,n)) > 0 ? w : 0; SFBUF(f); \ | ^~~~~~~ sfvprintf.c:510:25: note: in expansion of macro 'SFnputc' 510 | SFnputc(f, '0', n); | ^~~~~~~ sfvprintf.c:64:39: warning: conversion from 'long int' to 'int' may change value [-Wconversion] 64 | #define SFEND(f) ((n_output += d - f->next), (f->next = d)) | ^ sfvprintf.c:75:13: note: in expansion of macro 'SFEND' 75 | { SFEND(f); n_output += (w = SFNPUTC(f,c,n)) > 0 ? w : 0; SFBUF(f); \ | ^~~~~ sfvprintf.c:512:25: note: in expansion of macro 'SFnputc' 512 | SFnputc(f, ' ', n); | ^~~~~~~ sfvprintf.c:512:41: warning: conversion to 'size_t' {aka 'long unsigned int'} from 'int' may change the sign of the result [-Wsign-conversion] 512 | SFnputc(f, ' ', n); | ^ ../../lib/sfio/sfhdr.h:354:50: note: in definition of macro 'SFNPUTC' 354 | #define SFNPUTC(f,c,n) (SETLOCAL(f),sfnputc(f,c,n)) | ^ sfvprintf.c:512:25: note: in expansion of macro 'SFnputc' 512 | SFnputc(f, ' ', n); | ^~~~~~~ ../../lib/sfio/sfhdr.h:354:25: warning: conversion from 'ssize_t' {aka 'long int'} to 'int' may change value [-Wconversion] 354 | #define SFNPUTC(f,c,n) (SETLOCAL(f),sfnputc(f,c,n)) | ^ sfvprintf.c:75:40: note: in expansion of macro 'SFNPUTC' 75 | { SFEND(f); n_output += (w = SFNPUTC(f,c,n)) > 0 ? w : 0; SFBUF(f); \ | ^~~~~~~ sfvprintf.c:512:25: note: in expansion of macro 'SFnputc' 512 | SFnputc(f, ' ', n); | ^~~~~~~ sfvprintf.c:515:32: warning: conversion to 'size_t' {aka 'long unsigned int'} from 'int' may change the sign of the result [-Wsign-conversion] 515 | SFwrite(f, sp, v); | ^ ../../lib/sfio/sfhdr.h:540:41: note: in definition of macro 'MEMCPY' 540 | do { memcpy((void*)to,(void*)fr,n); to += n; fr += n; } while (0) | ^ sfvprintf.c:515:17: note: in expansion of macro 'SFwrite' 515 | SFwrite(f, sp, v); | ^~~~~~~ sfvprintf.c:64:39: warning: conversion from 'long int' to 'int' may change value [-Wconversion] 64 | #define SFEND(f) ((n_output += d - f->next), (f->next = d)) | ^ sfvprintf.c:83:13: note: in expansion of macro 'SFEND' 83 | { SFEND(f); n_output += (w = SFWRITE(f,(void*)s,n)) > 0 ? w : 0; SFBUF(f); \ | ^~~~~ sfvprintf.c:515:17: note: in expansion of macro 'SFwrite' 515 | SFwrite(f, sp, v); | ^~~~~~~ sfvprintf.c:515:32: warning: conversion to 'size_t' {aka 'long unsigned int'} from 'int' may change the sign of the result [-Wsign-conversion] 515 | SFwrite(f, sp, v); | ^ ../../lib/sfio/sfhdr.h:352:50: note: in definition of macro 'SFWRITE' 352 | #define SFWRITE(f,s,n) (SETLOCAL(f),sfwrite(f,s,n)) | ^ sfvprintf.c:515:17: note: in expansion of macro 'SFwrite' 515 | SFwrite(f, sp, v); | ^~~~~~~ ../../lib/sfio/sfhdr.h:352:25: warning: conversion from 'ssize_t' {aka 'long int'} to 'int' may change value [-Wconversion] 352 | #define SFWRITE(f,s,n) (SETLOCAL(f),sfwrite(f,s,n)) | ^ sfvprintf.c:83:40: note: in expansion of macro 'SFWRITE' 83 | { SFEND(f); n_output += (w = SFWRITE(f,(void*)s,n)) > 0 ? w : 0; SFBUF(f); \ | ^~~~~~~ sfvprintf.c:515:17: note: in expansion of macro 'SFwrite' 515 | SFwrite(f, sp, v); | ^~~~~~~ sfvprintf.c:64:39: warning: conversion from 'long int' to 'int' may change value [-Wconversion] 64 | #define SFEND(f) ((n_output += d - f->next), (f->next = d)) | ^ sfvprintf.c:75:13: note: in expansion of macro 'SFEND' 75 | { SFEND(f); n_output += (w = SFNPUTC(f,c,n)) > 0 ? w : 0; SFBUF(f); \ | ^~~~~ sfvprintf.c:517:21: note: in expansion of macro 'SFnputc' 517 | SFnputc(f, ' ', n); | ^~~~~~~ sfvprintf.c:517:37: warning: conversion to 'size_t' {aka 'long unsigned int'} from 'int' may change the sign of the result [-Wsign-conversion] 517 | SFnputc(f, ' ', n); | ^ ../../lib/sfio/sfhdr.h:354:50: note: in definition of macro 'SFNPUTC' 354 | #define SFNPUTC(f,c,n) (SETLOCAL(f),sfnputc(f,c,n)) | ^ sfvprintf.c:517:21: note: in expansion of macro 'SFnputc' 517 | SFnputc(f, ' ', n); | ^~~~~~~ ../../lib/sfio/sfhdr.h:354:25: warning: conversion from 'ssize_t' {aka 'long int'} to 'int' may change value [-Wconversion] 354 | #define SFNPUTC(f,c,n) (SETLOCAL(f),sfnputc(f,c,n)) | ^ sfvprintf.c:75:40: note: in expansion of macro 'SFNPUTC' 75 | { SFEND(f); n_output += (w = SFNPUTC(f,c,n)) > 0 ? w : 0; SFBUF(f); \ | ^~~~~~~ sfvprintf.c:517:21: note: in expansion of macro 'SFnputc' 517 | SFnputc(f, ' ', n); | ^~~~~~~ sfvprintf.c:64:39: warning: conversion from 'long int' to 'int' may change value [-Wconversion] 64 | #define SFEND(f) ((n_output += d - f->next), (f->next = d)) | ^ sfvprintf.c:68:13: note: in expansion of macro 'SFEND' 68 | { SFEND(f); n_output += (w = SFFLSBUF(f,c)) >= 0 ? 1 : 0; SFBUF(f); \ | ^~~~~ sfvprintf.c:522:21: note: in expansion of macro 'SFputc' 522 | SFputc(f, base); | ^~~~~~ sfvprintf.c:534:26: warning: conversion from 'int' to 'char' may change value [-Wconversion] 534 | buf[0] = fmt; | ^~~ sfvprintf.c:64:39: warning: conversion from 'long int' to 'int' may change value [-Wconversion] 64 | #define SFEND(f) ((n_output += d - f->next), (f->next = d)) | ^ sfvprintf.c:75:13: note: in expansion of macro 'SFEND' 75 | { SFEND(f); n_output += (w = SFNPUTC(f,c,n)) > 0 ? w : 0; SFBUF(f); \ | ^~~~~ sfvprintf.c:541:17: note: in expansion of macro 'SFnputc' 541 | SFnputc(f, ' ', n)}; | ^~~~~~~ sfvprintf.c:541:33: warning: conversion to 'size_t' {aka 'long unsigned int'} from 'int' may change the sign of the result [-Wsign-conversion] 541 | SFnputc(f, ' ', n)}; | ^ ../../lib/sfio/sfhdr.h:354:50: note: in definition of macro 'SFNPUTC' 354 | #define SFNPUTC(f,c,n) (SETLOCAL(f),sfnputc(f,c,n)) | ^ sfvprintf.c:541:17: note: in expansion of macro 'SFnputc' 541 | SFnputc(f, ' ', n)}; | ^~~~~~~ ../../lib/sfio/sfhdr.h:354:25: warning: conversion from 'ssize_t' {aka 'long int'} to 'int' may change value [-Wconversion] 354 | #define SFNPUTC(f,c,n) (SETLOCAL(f),sfnputc(f,c,n)) | ^ sfvprintf.c:75:40: note: in expansion of macro 'SFNPUTC' 75 | { SFEND(f); n_output += (w = SFNPUTC(f,c,n)) > 0 ? w : 0; SFBUF(f); \ | ^~~~~~~ sfvprintf.c:541:17: note: in expansion of macro 'SFnputc' 541 | SFnputc(f, ' ', n)}; | ^~~~~~~ sfvprintf.c:64:39: warning: conversion from 'long int' to 'int' may change value [-Wconversion] 64 | #define SFEND(f) ((n_output += d - f->next), (f->next = d)) | ^ sfvprintf.c:75:13: note: in expansion of macro 'SFEND' 75 | { SFEND(f); n_output += (w = SFNPUTC(f,c,n)) > 0 ? w : 0; SFBUF(f); \ | ^~~~~ sfvprintf.c:543:17: note: in expansion of macro 'SFnputc' 543 | SFnputc(f, fmt, v); | ^~~~~~~ sfvprintf.c:543:33: warning: conversion to 'size_t' {aka 'long unsigned int'} from 'int' may change the sign of the result [-Wsign-conversion] 543 | SFnputc(f, fmt, v); | ^ ../../lib/sfio/sfhdr.h:354:50: note: in definition of macro 'SFNPUTC' 354 | #define SFNPUTC(f,c,n) (SETLOCAL(f),sfnputc(f,c,n)) | ^ sfvprintf.c:543:17: note: in expansion of macro 'SFnputc' 543 | SFnputc(f, fmt, v); | ^~~~~~~ ../../lib/sfio/sfhdr.h:354:25: warning: conversion from 'ssize_t' {aka 'long int'} to 'int' may change value [-Wconversion] 354 | #define SFNPUTC(f,c,n) (SETLOCAL(f),sfnputc(f,c,n)) | ^ sfvprintf.c:75:40: note: in expansion of macro 'SFNPUTC' 75 | { SFEND(f); n_output += (w = SFNPUTC(f,c,n)) > 0 ? w : 0; SFBUF(f); \ | ^~~~~~~ sfvprintf.c:543:17: note: in expansion of macro 'SFnputc' 543 | SFnputc(f, fmt, v); | ^~~~~~~ sfvprintf.c:64:39: warning: conversion from 'long int' to 'int' may change value [-Wconversion] 64 | #define SFEND(f) ((n_output += d - f->next), (f->next = d)) | ^ sfvprintf.c:75:13: note: in expansion of macro 'SFEND' 75 | { SFEND(f); n_output += (w = SFNPUTC(f,c,n)) > 0 ? w : 0; SFBUF(f); \ | ^~~~~ sfvprintf.c:545:17: note: in expansion of macro 'SFnputc' 545 | SFnputc(f, ' ', n)}; | ^~~~~~~ sfvprintf.c:545:33: warning: conversion to 'size_t' {aka 'long unsigned int'} from 'int' may change the sign of the result [-Wsign-conversion] 545 | SFnputc(f, ' ', n)}; | ^ ../../lib/sfio/sfhdr.h:354:50: note: in definition of macro 'SFNPUTC' 354 | #define SFNPUTC(f,c,n) (SETLOCAL(f),sfnputc(f,c,n)) | ^ sfvprintf.c:545:17: note: in expansion of macro 'SFnputc' 545 | SFnputc(f, ' ', n)}; | ^~~~~~~ ../../lib/sfio/sfhdr.h:354:25: warning: conversion from 'ssize_t' {aka 'long int'} to 'int' may change value [-Wconversion] 354 | #define SFNPUTC(f,c,n) (SETLOCAL(f),sfnputc(f,c,n)) | ^ sfvprintf.c:75:40: note: in expansion of macro 'SFNPUTC' 75 | { SFEND(f); n_output += (w = SFNPUTC(f,c,n)) > 0 ? w : 0; SFBUF(f); \ | ^~~~~~~ sfvprintf.c:545:17: note: in expansion of macro 'SFnputc' 545 | SFnputc(f, ' ', n)}; | ^~~~~~~ sfvprintf.c:64:39: warning: conversion from 'long int' to 'int' may change value [-Wconversion] 64 | #define SFEND(f) ((n_output += d - f->next), (f->next = d)) | ^ sfvprintf.c:68:13: note: in expansion of macro 'SFEND' 68 | { SFEND(f); n_output += (w = SFFLSBUF(f,c)) >= 0 ? 1 : 0; SFBUF(f); \ | ^~~~~ sfvprintf.c:549:21: note: in expansion of macro 'SFputc' 549 | SFputc(f, base); | ^~~~~~ sfvprintf.c:64:39: warning: conversion from 'long int' to 'int' may change value [-Wconversion] 64 | #define SFEND(f) ((n_output += d - f->next), (f->next = d)) | ^ sfvprintf.c:555:13: note: in expansion of macro 'SFEND' 555 | SFEND(f); | ^~~~~ sfvscanf.c: In function 'setclass': sfvprintf.c:632:28: warning: comparison of integer expressions of different signedness: 'long long int' and 'long long unsigned int' [-Wsign-compare] 632 | if (lv == HIGHBITL) { /* avoid overflow */ | ^~ sfvprintf.c:633:51: warning: conversion to 'long long unsigned int' from 'int' may change the sign of the result [-Wsign-conversion] 633 | lv = (Sflong_t) (HIGHBITL / base); | ^ sfvscanf.c:41:23: warning: conversion from 'int' to 'char' may change value [-Wconversion] 41 | accept[fmt] = yes; | ^~~ sfvprintf.c:635:60: warning: conversion to 'long long unsigned int' from 'int' may change the sign of the result [-Wsign-conversion] 635 | ((Sfulong_t) lv) * base]; | ^ sfvscanf.c:51:27: warning: conversion from 'int' to 'char' may change value [-Wconversion] 51 | accept[fmt] = yes; | ^~~ sfvscanf.c:54:29: warning: conversion from 'int' to 'char' may change value [-Wconversion] 54 | accept[c] = yes; | ^~~ sfvscanf.c: In function 'sfvscanf': sfvscanf.c:134:13: warning: cast discards 'const' qualifier from pointer target type [-Wcast-qual] 134 | oform = (char *) form; | ^ sfvprintf.c:645:36: warning: conversion to 'long long int' from 'long long unsigned int' may change the sign of the result [-Wsign-conversion] 645 | } while ((lv = ((Sfulong_t) lv) >> n)); | ^ sfvprintf.c:648:54: warning: conversion to 'long long unsigned int' from 'int' may change the sign of the result [-Wsign-conversion] 648 | *--sp = ssp[((Sfulong_t) lv) % base]; | ^ sfvscanf.c:105:38: warning: conversion from 'long int' to 'int' may change value [-Wconversion] 105 | #define SFEND(f) ((n_input += d-data), \ | ^ sfvscanf.c:107:46: note: in expansion of macro 'SFEND' 107 | #define SFGETC(f,c) ((c) = (d < endd || (SFEND(f), SFBUF(f), d < endd)) ? \ | ^~~~~ sfvscanf.c:144:25: note: in expansion of macro 'SFGETC' 144 | if (SFGETC(f, inp) < 0 || inp == fmt) | ^~~~~~ sfvprintf.c:649:53: warning: conversion to 'long long unsigned int' from 'int' may change the sign of the result [-Wsign-conversion] 649 | } while ((lv = ((Sfulong_t) lv) / base)); | ^ sfvprintf.c:649:36: warning: conversion to 'long long int' from 'long long unsigned int' may change the sign of the result [-Wsign-conversion] 649 | } while ((lv = ((Sfulong_t) lv) / base)); | ^ In file included from sfvscanf.c:13: sfvscanf.c:106:58: warning: conversion to 'size_t' {aka 'long unsigned int'} from 'long int' may change the sign of the result [-Wsign-conversion] 106 | (rs > 0 ? SFREAD(f,(void*)data,d-data) : ((f->next = d), 0)) ) | ~^~~~~ ../../lib/sfio/sfhdr.h:353:49: note: in definition of macro 'SFREAD' 353 | #define SFREAD(f,s,n) (SETLOCAL(f),sfread(f,s,n)) | ^ sfvscanf.c:107:46: note: in expansion of macro 'SFEND' 107 | #define SFGETC(f,c) ((c) = (d < endd || (SFEND(f), SFBUF(f), d < endd)) ? \ | ^~~~~ sfvscanf.c:144:25: note: in expansion of macro 'SFGETC' 144 | if (SFGETC(f, inp) < 0 || inp == fmt) | ^~~~~~ sfvprintf.c:686:27: warning: comparison of integer expressions of different signedness: 'int' and 'unsigned int' [-Wsign-compare] 686 | if (v == HIGHBITI) { /* avoid overflow */ | ^~ sfvscanf.c:105:38: warning: conversion from 'long int' to 'int' may change value [-Wconversion] 105 | #define SFEND(f) ((n_input += d-data), \ | ^ sfvscanf.c:107:46: note: in expansion of macro 'SFEND' 107 | #define SFGETC(f,c) ((c) = (d < endd || (SFEND(f), SFBUF(f), d < endd)) ? \ | ^~~~~ sfvscanf.c:153:21: note: in expansion of macro 'SFGETC' 153 | if (SFGETC(f, inp) != fmt) { | ^~~~~~ sfvscanf.c:106:58: warning: conversion to 'size_t' {aka 'long unsigned int'} from 'long int' may change the sign of the result [-Wsign-conversion] 106 | (rs > 0 ? SFREAD(f,(void*)data,d-data) : ((f->next = d), 0)) ) | ~^~~~~ ../../lib/sfio/sfhdr.h:353:49: note: in definition of macro 'SFREAD' 353 | #define SFREAD(f,s,n) (SETLOCAL(f),sfread(f,s,n)) | ^ sfvscanf.c:107:46: note: in expansion of macro 'SFEND' 107 | #define SFGETC(f,c) ((c) = (d < endd || (SFEND(f), SFBUF(f), d < endd)) ? \ | ^~~~~ sfvscanf.c:153:21: note: in expansion of macro 'SFGETC' 153 | if (SFGETC(f, inp) != fmt) { | ^~~~~~ sfvprintf.c:687:45: warning: conversion to 'unsigned int' from 'int' may change the sign of the result [-Wsign-conversion] 687 | v = (int) (HIGHBITI / base); | ^ sfvprintf.c:688:65: warning: conversion to 'unsigned int' from 'int' may change the sign of the result [-Wsign-conversion] 688 | *--sp = _Sfdigits[HIGHBITI - ((uint) v) * base]; | ^ sfvscanf.c:188:21: warning: cast discards 'const' qualifier from pointer target type [-Wcast-qual] 188 | t_str = (char *) form; | ^ ../../lib/sfio/sfhdr.h:260:22: warning: cast discards 'const' qualifier from pointer target type [-Wcast-qual] 260 | ((ft->form = (char*)frm), va_copy(ft->args,ags), \ | ^ sfvscanf.c:217:29: note: in expansion of macro 'FMTSET' 217 | FMTSET(ft, form, args, | ^~~~~~ sfvscanf.c:226:41: warning: conversion to 'ssize_t' {aka 'long int'} from 'size_t' {aka 'long unsigned int'} may change the sign of the result [-Wsign-conversion] 226 | n_str = strlen(t_str); | ^~~~~~ sfvprintf.c:697:35: warning: conversion to 'int' from 'unsigned int' may change the sign of the result [-Wsign-conversion] 697 | } while ((v = ((uint) v) >> n)); | ^ sfvscanf.c:230:42: warning: conversion to 'ssize_t' {aka 'long int'} from 'size_t' {aka 'long unsigned int'} may change the sign of the result [-Wsign-conversion] 230 | n_str = strlen(t_str); | ^~~~~~ sfvprintf.c:700:48: warning: conversion to 'unsigned int' from 'int' may change the sign of the result [-Wsign-conversion] 700 | *--sp = ssp[((uint) v) % base]; | ^ sfvprintf.c:701:46: warning: conversion to 'unsigned int' from 'int' may change the sign of the result [-Wsign-conversion] 701 | } while ((v = ((uint) v) / base)); | ^ sfvscanf.c:190:17: warning: switch missing default case [-Wswitch-default] 190 | switch (*form++) { | ^~~~~~ sfvprintf.c:701:35: warning: conversion to 'int' from 'unsigned int' may change the sign of the result [-Wsign-conversion] 701 | } while ((v = ((uint) v) / base)); | ^ sfvprintf.c:706:25: warning: conversion from 'long int' to 'int' may change value [-Wconversion] 706 | && (n = endsp - sp) > 3) { | ^~~~~ ../../lib/sfio/sfhdr.h:260:22: warning: cast discards 'const' qualifier from pointer target type [-Wcast-qual] 260 | ((ft->form = (char*)frm), va_copy(ft->args,ags), \ | ^ sfvscanf.c:259:21: note: in expansion of macro 'FMTSET' 259 | FMTSET(ft, form, args, '.', dot, 0, 0, 0, 0, | ^~~~~~ sfvprintf.c:723:42: warning: conversion from 'long int' to 'int' may change value [-Wconversion] 723 | if (precis > 0 && (precis -= (endsp - sp)) < (sp - buf) - 64) | ^ sfvprintf.c:740:29: warning: conversion from 'long int' to 'int' may change value [-Wconversion] 740 | n = width - (n + (endsp - sp)); | ^~~~~ ../../lib/sfio/sfhdr.h:260:22: warning: cast discards 'const' qualifier from pointer target type [-Wcast-qual] 260 | ((ft->form = (char*)frm), va_copy(ft->args,ags), \ | ^ sfvscanf.c:323:21: note: in expansion of macro 'FMTSET' 323 | FMTSET(ft, form, args, 'I', sizeof(int), 0, 0, 0, 0, | ^~~~~~ sfwr.c: In function 'sfoutput': sfwr.c:32:17: warning: conversion to 'ssize_t' {aka 'long int'} from 'size_t' {aka 'long unsigned int'} may change the sign of the result [-Wsign-conversion] 32 | s = n = 0; | ^ sfvscanf.c:186:9: warning: switch missing default case [-Wswitch-default] 186 | switch ((fmt = *form++)) { | ^~~~~~ sfvscanf.c:381:62: warning: operand of '?:' changes signedness from 'int' to 'long unsigned int' due to unsignedness of other operand [-Wsign-compare] 381 | (flags & SFFMT_ZFLAG) ? sizeof(size_t) : -1; | ^~ sfvprintf.c:793:26: warning: comparing floating-point with '==' or '!=' is unsafe [-Wfloat-equal] 793 | if (dval == 0.) | ^~ sfvscanf.c:381:60: warning: unsigned conversion from 'int' to 'long unsigned int' changes value from '-1' to '18446744073709551615' [-Wsign-conversion] 381 | (flags & SFFMT_ZFLAG) ? sizeof(size_t) : -1; | ^ sfwr.c:66:19: warning: conversion to 'long unsigned int' from 'ssize_t' {aka 'long int'} may change the sign of the result [-Wsign-conversion] 66 | n -= _Sfpage; | ^~ sfvscanf.c:375:24: warning: signed conversion from 'long unsigned int' to 'ssize_t' {aka 'long int'} changes the value of '18446744073709551615' [-Wsign-conversion] 375 | size = (flags & SFFMT_LLONG) ? sizeof(Sflong_t) : | ^ In file included from ../../lib/sfio/sfio_t.h:41, from ../../lib/sfio/sfhdr.h:27: ../../lib/sfio/sfio.h:252:49: warning: conversion from 'ssize_t' {aka 'long int'} to 'int' may change value [-Wconversion] 252 | #define sfslen() ( __sf_slen() ) | ^ sfvprintf.c:800:26: note: in expansion of macro 'sfslen' 800 | if ((n = sfslen()) > precis) | ^~~~~~ sfwr.c:74:21: warning: conversion to 'size_t' {aka 'long unsigned int'} from 'ssize_t' {aka 'long int'} may change the sign of the result [-Wsign-conversion] 74 | n = s = 0; | ^ sfvscanf.c:385:38: warning: operand of '?:' changes signedness from 'int' to 'long unsigned int' due to unsignedness of other operand [-Wsign-compare] 385 | sizeof(double) : -1; | ^~ sfvscanf.c:385:36: warning: unsigned conversion from 'int' to 'long unsigned int' changes value from '-1' to '18446744073709551615' [-Wsign-conversion] 385 | sizeof(double) : -1; | ^ sfvscanf.c:383:24: warning: signed conversion from 'long unsigned int' to 'ssize_t' {aka 'long int'} changes the value of '18446744073709551615' [-Wsign-conversion] 383 | size = (flags & SFFMT_LDOUBLE) ? sizeof(Sfdouble_t) : | ^ ../../lib/sfio/sfhdr.h:165:25: warning: declaration of 'lv' shadows a previous local [-Wshadow] 165 | { struct lconv* lv; \ | ^~ sfvprintf.c:821:13: note: in expansion of macro 'SFSETLOCALE' 821 | SFSETLOCALE(decimal, thousand); | ^~~~~~~~~~~ sfvprintf.c:36:14: note: shadowed declaration is here 36 | Sflong_t lv; | ^~ ../../lib/sfio/sfhdr.h:260:22: warning: cast discards 'const' qualifier from pointer target type [-Wcast-qual] 260 | ((ft->form = (char*)frm), va_copy(ft->args,ags), \ | ^ sfvscanf.c:400:13: note: in expansion of macro 'FMTSET' 400 | FMTSET(ft, form, args, fmt, size, flags, width, 0, base, t_str, | ^~~~~~ sfwr.c:91:15: warning: conversion to 'long unsigned int' from 'ssize_t' {aka 'long int'} may change the sign of the result [-Wsign-conversion] 91 | n -= s; | ^~ sfwrite.c: In function 'sfwrite': sfwr.c:98:19: warning: conversion to 'long unsigned int' from 'ssize_t' {aka 'long int'} may change the sign of the result [-Wsign-conversion] 98 | n -= s; | ^~ sfvscanf.c:105:38: warning: conversion from 'long int' to 'int' may change value [-Wconversion] 105 | #define SFEND(f) ((n_input += d-data), \ | ^ sfvscanf.c:402:13: note: in expansion of macro 'SFEND' 402 | SFEND(f); | ^~~~~ sfvprintf.c:827:23: warning: conversion from 'long int' to 'int' may change value [-Wconversion] 827 | precis -= (endsp -= 1) - ssp; | ^ sfvscanf.c:106:58: warning: conversion to 'size_t' {aka 'long unsigned int'} from 'long int' may change the sign of the result [-Wsign-conversion] 106 | (rs > 0 ? SFREAD(f,(void*)data,d-data) : ((f->next = d), 0)) ) | ~^~~~~ ../../lib/sfio/sfhdr.h:353:49: note: in definition of macro 'SFREAD' 353 | #define SFREAD(f,s,n) (SETLOCAL(f),sfread(f,s,n)) | ^ sfvscanf.c:402:13: note: in expansion of macro 'SFEND' 402 | SFEND(f); | ^~~~~ sfvprintf.c:831:22: warning: comparing floating-point with '==' or '!=' is unsafe [-Wfloat-equal] 831 | if (dval != 0.) { | ^~ sfwrite.c:47:18: warning: declaration of 'buf' shadows a parameter [-Wshadow] 47 | char buf[16]; | ^~~ sfwrite.c:23:42: note: shadowed declaration is here 23 | ssize_t sfwrite(Sfio_t * f, const void * buf, size_t n) | ~~~~~~~~~~~~~^~~ sfwrite.c:50:22: warning: conversion to 'ssize_t' {aka 'long int'} from 'size_t' {aka 'long unsigned int'} may change the sign of the result [-Wsign-conversion] 50 | for (w = n; w > 0;) { | ^ sfwrite.c:51:29: warning: comparison of integer expressions of different signedness: 'ssize_t' {aka 'long int'} and 'long unsigned int' [-Wsign-compare] 51 | if ((r = w) > sizeof(buf)) | ^ sfwrite.c:54:23: warning: conversion to 'long unsigned int' from 'ssize_t' {aka 'long int'} may change the sign of the result [-Wsign-conversion] 54 | n -= w; | ^~ sfwr.c: In function 'sfwr': sfwr.c:132:19: warning: conversion to 'long unsigned int' from 'long int' may change the sign of the result [-Wsign-conversion] 132 | w = n + (f->next - f->data); | ^ sfvprintf.c:846:40: warning: comparing floating-point with '==' or '!=' is unsafe [-Wfloat-equal] 846 | *--ep = (decpt > 0 || dval == 0.) ? '+' : '-'; | ^~ sfwrite.c:62:21: warning: conversion to 'long long unsigned int' from 'long long int' may change the sign of the result [-Wsign-conversion] 62 | f->here += n; | ^~ sfwr.c:132:17: warning: conversion to 'ssize_t' {aka 'long int'} from 'long unsigned int' may change the sign of the result [-Wsign-conversion] 132 | w = n + (f->next - f->data); | ^ sfwrite.c:62:24: warning: conversion to 'long long int' from 'long long unsigned int' may change the sign of the result [-Wsign-conversion] 62 | f->here += n; | ^ sfwrite.c:69:16: warning: cast discards 'const' qualifier from pointer target type [-Wcast-qual] 69 | s = begs = (uchar *) buf; | ^ sfvscanf.c:434:58: warning: cast discards 'const' qualifier from pointer target type [-Wcast-qual] 434 | if (ft->eventf && ft->eventf(f, SF_DPOP, (void *) form, ft) < 0) | ^ ../../lib/sfio/sfhdr.h:165:25: warning: declaration of 'lv' shadows a previous local [-Wshadow] 165 | { struct lconv* lv; \ | ^~ sfvprintf.c:860:13: note: in expansion of macro 'SFSETLOCALE' 860 | SFSETLOCALE(decimal, thousand); | ^~~~~~~~~~~ sfvprintf.c:36:14: note: shadowed declaration is here 36 | Sflong_t lv; | ^~ sfwr.c:139:50: warning: conversion to 'ssize_t' {aka 'long int'} from 'size_t' {aka 'long unsigned int'} may change the sign of the result [-Wsign-conversion] 139 | if ((rv = _sfexcept(f, SF_WRITE, n, dc)) > 0) | ^ sfwr.c:140:25: warning: conversion to 'size_t' {aka 'long unsigned int'} from 'int' may change the sign of the result [-Wsign-conversion] 140 | n = rv; | ^~ sfvscanf.c:442:32: warning: cast discards 'const' qualifier from pointer target type [-Wcast-qual] 442 | fm->form = (char *) form; | ^ sfwrite.c:85:15: warning: conversion to 'long unsigned int' from 'ssize_t' {aka 'long int'} may change the sign of the result [-Wsign-conversion] 85 | n -= w; | ^~ In file included from sfwrite.c:11: sfwrite.c:92:37: warning: conversion to 'long unsigned int' from 'ssize_t' {aka 'long int'} may change the sign of the result [-Wsign-conversion] 92 | (void) SFWR(f, s, n - w, f->disc); | ^ ../../lib/sfio/sfhdr.h:346:54: note: in definition of macro 'SFWR' 346 | #define SFWR(f,b,n,d) (SETLOCAL(f),sfwr(f,(void*)b,n,d)) | ^ sfwr.c:164:21: warning: conversion to 'ssize_t' {aka 'long int'} from 'size_t' {aka 'long unsigned int'} may change the sign of the result [-Wsign-conversion] 164 | w = n; | ^ sfvprintf.c:891:23: warning: conversion from 'long int' to 'int' may change value [-Wconversion] 891 | precis -= (endsp -= 1) - ssp; | ^ sfvscanf.c:105:38: warning: conversion from 'long int' to 'int' may change value [-Wconversion] 105 | #define SFEND(f) ((n_input += d-data), \ | ^ sfvscanf.c:107:46: note: in expansion of macro 'SFEND' 107 | #define SFGETC(f,c) ((c) = (d < endd || (SFEND(f), SFBUF(f), d < endd)) ? \ | ^~~~~ sfvscanf.c:489:13: note: in expansion of macro 'SFGETC' 489 | SFGETC(f, inp); | ^~~~~~ sfwr.c:170:38: warning: cast discards 'const' qualifier from pointer target type [-Wcast-qual] 170 | if ((w = sfoutput(f, (char *) buf, n)) <= 0) | ^ sfwrite.c:111:32: warning: conversion to 'size_t' {aka 'long unsigned int'} from 'ssize_t' {aka 'long int'} may change the sign of the result [-Wsign-conversion] 111 | memcpy(f->next, s, w); | ^ sfwrite.c:116:16: warning: conversion to 'long unsigned int' from 'ssize_t' {aka 'long int'} may change the sign of the result [-Wsign-conversion] 116 | if ((n -= w) <= 0) | ^~ sfvscanf.c:106:58: warning: conversion to 'size_t' {aka 'long unsigned int'} from 'long int' may change the sign of the result [-Wsign-conversion] 106 | (rs > 0 ? SFREAD(f,(void*)data,d-data) : ((f->next = d), 0)) ) | ~^~~~~ ../../lib/sfio/sfhdr.h:353:49: note: in definition of macro 'SFREAD' 353 | #define SFREAD(f,s,n) (SETLOCAL(f),sfread(f,s,n)) | ^ sfvscanf.c:107:46: note: in expansion of macro 'SFEND' 107 | #define SFGETC(f,c) ((c) = (d < endd || (SFEND(f), SFBUF(f), d < endd)) ? \ | ^~~~~ sfvscanf.c:489:13: note: in expansion of macro 'SFGETC' 489 | SFGETC(f, inp); | ^~~~~~ sfvprintf.c:908:13: warning: conversion from 'long int' to 'int' may change value [-Wconversion] 908 | n = (endsp - sp) + (endep - ep) + (precis <= 0 ? 0 : precis) + | ^ sfvscanf.c:105:38: warning: conversion from 'long int' to 'int' may change value [-Wconversion] 105 | #define SFEND(f) ((n_input += d-data), \ | ^ sfvscanf.c:107:46: note: in expansion of macro 'SFEND' 107 | #define SFGETC(f,c) ((c) = (d < endd || (SFEND(f), SFBUF(f), d < endd)) ? \ | ^~~~~ sfvscanf.c:492:17: note: in expansion of macro 'SFGETC' 492 | SFGETC(f, inp); | ^~~~~~ sfvprintf.c:916:25: warning: conversion from 'int' to 'char' may change value [-Wconversion] 916 | *--sp = fmt; | ^~~ sfwrite.c:126:28: warning: conversion to 'size_t' {aka 'long unsigned int'} from 'long int' may change the sign of the result [-Wsign-conversion] 126 | if ((ssize_t) (n = f->next - f->data) > (w = s - begs)) | ^ sfwrite.c:127:17: warning: conversion to 'size_t' {aka 'long unsigned int'} from 'ssize_t' {aka 'long int'} may change the sign of the result [-Wsign-conversion] 127 | n = w; | ^ sfvscanf.c:106:58: warning: conversion to 'size_t' {aka 'long unsigned int'} from 'long int' may change the sign of the result [-Wsign-conversion] 106 | (rs > 0 ? SFREAD(f,(void*)data,d-data) : ((f->next = d), 0)) ) | ~^~~~~ ../../lib/sfio/sfhdr.h:353:49: note: in definition of macro 'SFREAD' 353 | #define SFREAD(f,s,n) (SETLOCAL(f),sfread(f,s,n)) | ^ sfvscanf.c:107:46: note: in expansion of macro 'SFEND' 107 | #define SFGETC(f,c) ((c) = (d < endd || (SFEND(f), SFBUF(f), d < endd)) ? \ | ^~~~~ sfvscanf.c:492:17: note: in expansion of macro 'SFGETC' 492 | SFGETC(f, inp); | ^~~~~~ sfwr.c:197:9: warning: switch missing default case [-Wswitch-default] 197 | switch (_sfexcept(f, SF_WRITE, w, dc)) { | ^~~~~~ sfvprintf.c:64:39: warning: conversion from 'long int' to 'int' may change value [-Wconversion] 64 | #define SFEND(f) ((n_output += d - f->next), (f->next = d)) | ^ sfvprintf.c:68:13: note: in expansion of macro 'SFEND' 68 | { SFEND(f); n_output += (w = SFFLSBUF(f,c)) >= 0 ? 1 : 0; SFBUF(f); \ | ^~~~~ sfvprintf.c:922:13: note: in expansion of macro 'SFputc' 922 | SFputc(f, fmt); | ^~~~~~ sfvscanf.c:502:17: warning: declaration of 'dot' shadows a previous local [-Wshadow] 502 | int dot, exponent; | ^~~ sfvscanf.c:85:21: note: shadowed declaration is here 85 | int fmt, flags, dot, n_assign, v, n, n_input; | ^~~ sfvprintf.c:64:39: warning: conversion from 'long int' to 'int' may change value [-Wconversion] 64 | #define SFEND(f) ((n_output += d - f->next), (f->next = d)) | ^ sfvprintf.c:75:13: note: in expansion of macro 'SFEND' 75 | { SFEND(f); n_output += (w = SFNPUTC(f,c,n)) > 0 ? w : 0; SFBUF(f); \ | ^~~~~ sfvprintf.c:929:13: note: in expansion of macro 'SFnputc' 929 | SFnputc(f, v, n); | ^~~~~~~ sfvscanf.c:505:23: warning: comparison of integer expressions of different signedness: 'int' and 'long unsigned int' [-Wsign-compare] 505 | if (width >= SF_MAXDIGITS) | ^~ sfvscanf.c:510:30: warning: conversion from 'int' to 'char' may change value [-Wconversion] 510 | *val++ = inp; | ^~~ sfvprintf.c:929:27: warning: conversion to 'size_t' {aka 'long unsigned int'} from 'int' may change the sign of the result [-Wsign-conversion] 929 | SFnputc(f, v, n); | ^ ../../lib/sfio/sfhdr.h:354:50: note: in definition of macro 'SFNPUTC' 354 | #define SFNPUTC(f,c,n) (SETLOCAL(f),sfnputc(f,c,n)) | ^ sfvprintf.c:929:13: note: in expansion of macro 'SFnputc' 929 | SFnputc(f, v, n); | ^~~~~~~ sfvscanf.c:518:30: warning: conversion from 'int' to 'char' may change value [-Wconversion] 518 | *val++ = inp; | ^~~ ../../lib/sfio/sfhdr.h:354:25: warning: conversion from 'ssize_t' {aka 'long int'} to 'int' may change value [-Wconversion] 354 | #define SFNPUTC(f,c,n) (SETLOCAL(f),sfnputc(f,c,n)) | ^ sfvprintf.c:75:40: note: in expansion of macro 'SFNPUTC' 75 | { SFEND(f); n_output += (w = SFNPUTC(f,c,n)) > 0 ? w : 0; SFBUF(f); \ | ^~~~~~~ sfvprintf.c:929:13: note: in expansion of macro 'SFnputc' 929 | SFnputc(f, v, n); | ^~~~~~~ sfvscanf.c:105:38: warning: conversion from 'long int' to 'int' may change value [-Wconversion] 105 | #define SFEND(f) ((n_input += d-data), \ | ^ sfvscanf.c:107:46: note: in expansion of macro 'SFEND' 107 | #define SFGETC(f,c) ((c) = (d < endd || (SFEND(f), SFBUF(f), d < endd)) ? \ | ^~~~~ sfvscanf.c:519:41: note: in expansion of macro 'SFGETC' 519 | if (--width <= 0 || SFGETC(f, inp) < 0 || | ^~~~~~ sfvscanf.c:106:58: warning: conversion to 'size_t' {aka 'long unsigned int'} from 'long int' may change the sign of the result [-Wsign-conversion] 106 | (rs > 0 ? SFREAD(f,(void*)data,d-data) : ((f->next = d), 0)) ) | ~^~~~~ ../../lib/sfio/sfhdr.h:353:49: note: in definition of macro 'SFREAD' 353 | #define SFREAD(f,s,n) (SETLOCAL(f),sfread(f,s,n)) | ^ sfvscanf.c:107:46: note: in expansion of macro 'SFEND' 107 | #define SFGETC(f,c) ((c) = (d < endd || (SFEND(f), SFBUF(f), d < endd)) ? \ | ^~~~~ sfvscanf.c:519:41: note: in expansion of macro 'SFGETC' 519 | if (--width <= 0 || SFGETC(f, inp) < 0 || | ^~~~~~ sfvprintf.c:64:39: warning: conversion from 'long int' to 'int' may change value [-Wconversion] 64 | #define SFEND(f) ((n_output += d - f->next), (f->next = d)) | ^ sfvprintf.c:75:13: note: in expansion of macro 'SFEND' 75 | { SFEND(f); n_output += (w = SFNPUTC(f,c,n)) > 0 ? w : 0; SFBUF(f); \ | ^~~~~ sfvprintf.c:933:13: note: in expansion of macro 'SFnputc' 933 | SFnputc(f, '0', n); | ^~~~~~~ sfvscanf.c:522:30: warning: conversion from 'int' to 'char' may change value [-Wconversion] 522 | *val++ = inp; | ^~~ sfvprintf.c:933:29: warning: conversion to 'size_t' {aka 'long unsigned int'} from 'int' may change the sign of the result [-Wsign-conversion] 933 | SFnputc(f, '0', n); | ^ ../../lib/sfio/sfhdr.h:354:50: note: in definition of macro 'SFNPUTC' 354 | #define SFNPUTC(f,c,n) (SETLOCAL(f),sfnputc(f,c,n)) | ^ sfvprintf.c:933:13: note: in expansion of macro 'SFnputc' 933 | SFnputc(f, '0', n); | ^~~~~~~ sfvscanf.c:526:30: warning: conversion from 'int' to 'char' may change value [-Wconversion] 526 | *val++ = inp; | ^~~ ../../lib/sfio/sfhdr.h:354:25: warning: conversion from 'ssize_t' {aka 'long int'} to 'int' may change value [-Wconversion] 354 | #define SFNPUTC(f,c,n) (SETLOCAL(f),sfnputc(f,c,n)) | ^ sfvprintf.c:75:40: note: in expansion of macro 'SFNPUTC' 75 | { SFEND(f); n_output += (w = SFNPUTC(f,c,n)) > 0 ? w : 0; SFBUF(f); \ | ^~~~~~~ sfvprintf.c:933:13: note: in expansion of macro 'SFnputc' 933 | SFnputc(f, '0', n); | ^~~~~~~ sfvscanf.c:105:38: warning: conversion from 'long int' to 'int' may change value [-Wconversion] 105 | #define SFEND(f) ((n_input += d-data), \ | ^ sfvscanf.c:107:46: note: in expansion of macro 'SFEND' 107 | #define SFGETC(f,c) ((c) = (d < endd || (SFEND(f), SFBUF(f), d < endd)) ? \ | ^~~~~ sfvscanf.c:530:37: note: in expansion of macro 'SFGETC' 530 | } while (--width > 0 && SFGETC(f, inp) >= 0); | ^~~~~~ sfvprintf.c:938:18: warning: conversion from 'long int' to 'int' may change value [-Wconversion] 938 | if ((n = endsp - sp) > 0) | ^~~~~ sfvscanf.c:106:58: warning: conversion to 'size_t' {aka 'long unsigned int'} from 'long int' may change the sign of the result [-Wsign-conversion] 106 | (rs > 0 ? SFREAD(f,(void*)data,d-data) : ((f->next = d), 0)) ) | ~^~~~~ ../../lib/sfio/sfhdr.h:353:49: note: in definition of macro 'SFREAD' 353 | #define SFREAD(f,s,n) (SETLOCAL(f),sfread(f,s,n)) | ^ sfvscanf.c:107:46: note: in expansion of macro 'SFEND' 107 | #define SFGETC(f,c) ((c) = (d < endd || (SFEND(f), SFBUF(f), d < endd)) ? \ | ^~~~~ sfvscanf.c:530:37: note: in expansion of macro 'SFGETC' 530 | } while (--width > 0 && SFGETC(f, inp) >= 0); | ^~~~~~ sfvprintf.c:939:28: warning: conversion to 'size_t' {aka 'long unsigned int'} from 'int' may change the sign of the result [-Wsign-conversion] 939 | SFwrite(f, sp, n); | ^ ../../lib/sfio/sfhdr.h:540:41: note: in definition of macro 'MEMCPY' 540 | do { memcpy((void*)to,(void*)fr,n); to += n; fr += n; } while (0) | ^ sfvprintf.c:939:13: note: in expansion of macro 'SFwrite' 939 | SFwrite(f, sp, n); | ^~~~~~~ sfvscanf.c:105:38: warning: conversion from 'long int' to 'int' may change value [-Wconversion] 105 | #define SFEND(f) ((n_input += d-data), \ | ^ sfvscanf.c:107:46: note: in expansion of macro 'SFEND' 107 | #define SFGETC(f,c) ((c) = (d < endd || (SFEND(f), SFBUF(f), d < endd)) ? \ | ^~~~~ sfvscanf.c:555:39: note: in expansion of macro 'SFGETC' 555 | while (--width > 0 && SFGETC(f, inp) >= 0) | ^~~~~~ sfvprintf.c:64:39: warning: conversion from 'long int' to 'int' may change value [-Wconversion] 64 | #define SFEND(f) ((n_output += d - f->next), (f->next = d)) | ^ sfvprintf.c:83:13: note: in expansion of macro 'SFEND' 83 | { SFEND(f); n_output += (w = SFWRITE(f,(void*)s,n)) > 0 ? w : 0; SFBUF(f); \ | ^~~~~ sfvprintf.c:939:13: note: in expansion of macro 'SFwrite' 939 | SFwrite(f, sp, n); | ^~~~~~~ sfvscanf.c:106:58: warning: conversion to 'size_t' {aka 'long unsigned int'} from 'long int' may change the sign of the result [-Wsign-conversion] 106 | (rs > 0 ? SFREAD(f,(void*)data,d-data) : ((f->next = d), 0)) ) | ~^~~~~ ../../lib/sfio/sfhdr.h:353:49: note: in definition of macro 'SFREAD' 353 | #define SFREAD(f,s,n) (SETLOCAL(f),sfread(f,s,n)) | ^ sfvscanf.c:107:46: note: in expansion of macro 'SFEND' 107 | #define SFGETC(f,c) ((c) = (d < endd || (SFEND(f), SFBUF(f), d < endd)) ? \ | ^~~~~ sfvscanf.c:555:39: note: in expansion of macro 'SFGETC' 555 | while (--width > 0 && SFGETC(f, inp) >= 0) | ^~~~~~ sfvprintf.c:939:28: warning: conversion to 'size_t' {aka 'long unsigned int'} from 'int' may change the sign of the result [-Wsign-conversion] 939 | SFwrite(f, sp, n); | ^ ../../lib/sfio/sfhdr.h:352:50: note: in definition of macro 'SFWRITE' 352 | #define SFWRITE(f,s,n) (SETLOCAL(f),sfwrite(f,s,n)) | ^ sfvprintf.c:939:13: note: in expansion of macro 'SFwrite' 939 | SFwrite(f, sp, n); | ^~~~~~~ ../../lib/sfio/sfhdr.h:352:25: warning: conversion from 'ssize_t' {aka 'long int'} to 'int' may change value [-Wconversion] 352 | #define SFWRITE(f,s,n) (SETLOCAL(f),sfwrite(f,s,n)) | ^ sfvprintf.c:83:40: note: in expansion of macro 'SFWRITE' 83 | { SFEND(f); n_output += (w = SFWRITE(f,(void*)s,n)) > 0 ? w : 0; SFBUF(f); \ | ^~~~~~~ sfvprintf.c:939:13: note: in expansion of macro 'SFwrite' 939 | SFwrite(f, sp, n); | ^~~~~~~ sfvscanf.c:105:38: warning: conversion from 'long int' to 'int' may change value [-Wconversion] 105 | #define SFEND(f) ((n_input += d-data), \ | ^ sfvscanf.c:107:46: note: in expansion of macro 'SFEND' 107 | #define SFGETC(f,c) ((c) = (d < endd || (SFEND(f), SFBUF(f), d < endd)) ? \ | ^~~~~ sfvscanf.c:569:25: note: in expansion of macro 'SFGETC' 569 | if (SFGETC(f, inp) >= 0) { | ^~~~~~ sfvscanf.c:106:58: warning: conversion to 'size_t' {aka 'long unsigned int'} from 'long int' may change the sign of the result [-Wsign-conversion] 106 | (rs > 0 ? SFREAD(f,(void*)data,d-data) : ((f->next = d), 0)) ) | ~^~~~~ ../../lib/sfio/sfhdr.h:353:49: note: in definition of macro 'SFREAD' 353 | #define SFREAD(f,s,n) (SETLOCAL(f),sfread(f,s,n)) | ^ sfvscanf.c:107:46: note: in expansion of macro 'SFEND' 107 | #define SFGETC(f,c) ((c) = (d < endd || (SFEND(f), SFBUF(f), d < endd)) ? \ | ^~~~~ sfvscanf.c:569:25: note: in expansion of macro 'SFGETC' 569 | if (SFGETC(f, inp) >= 0) { | ^~~~~~ sfvprintf.c:64:39: warning: conversion from 'long int' to 'int' may change value [-Wconversion] 64 | #define SFEND(f) ((n_output += d - f->next), (f->next = d)) | ^ sfvprintf.c:75:13: note: in expansion of macro 'SFEND' 75 | { SFEND(f); n_output += (w = SFNPUTC(f,c,n)) > 0 ? w : 0; SFBUF(f); \ | ^~~~~ sfvprintf.c:943:17: note: in expansion of macro 'SFnputc' 943 | SFnputc(f, '0', n); | ^~~~~~~ sfvprintf.c:943:33: warning: conversion to 'size_t' {aka 'long unsigned int'} from 'int' may change the sign of the result [-Wsign-conversion] 943 | SFnputc(f, '0', n); | ^ ../../lib/sfio/sfhdr.h:354:50: note: in definition of macro 'SFNPUTC' 354 | #define SFNPUTC(f,c,n) (SETLOCAL(f),sfnputc(f,c,n)) | ^ sfvprintf.c:943:17: note: in expansion of macro 'SFnputc' 943 | SFnputc(f, '0', n); | ^~~~~~~ sfvscanf.c:105:38: warning: conversion from 'long int' to 'int' may change value [-Wconversion] 105 | #define SFEND(f) ((n_input += d-data), \ | ^ sfvscanf.c:107:46: note: in expansion of macro 'SFEND' 107 | #define SFGETC(f,c) ((c) = (d < endd || (SFEND(f), SFBUF(f), d < endd)) ? \ | ^~~~~ sfvscanf.c:588:25: note: in expansion of macro 'SFGETC' 588 | if (SFGETC(f, inp) >= 0 && | ^~~~~~ ../../lib/sfio/sfhdr.h:354:25: warning: conversion from 'ssize_t' {aka 'long int'} to 'int' may change value [-Wconversion] 354 | #define SFNPUTC(f,c,n) (SETLOCAL(f),sfnputc(f,c,n)) | ^ sfvprintf.c:75:40: note: in expansion of macro 'SFNPUTC' 75 | { SFEND(f); n_output += (w = SFNPUTC(f,c,n)) > 0 ? w : 0; SFBUF(f); \ | ^~~~~~~ sfvprintf.c:943:17: note: in expansion of macro 'SFnputc' 943 | SFnputc(f, '0', n); | ^~~~~~~ sfvscanf.c:106:58: warning: conversion to 'size_t' {aka 'long unsigned int'} from 'long int' may change the sign of the result [-Wsign-conversion] 106 | (rs > 0 ? SFREAD(f,(void*)data,d-data) : ((f->next = d), 0)) ) | ~^~~~~ ../../lib/sfio/sfhdr.h:353:49: note: in definition of macro 'SFREAD' 353 | #define SFREAD(f,s,n) (SETLOCAL(f),sfread(f,s,n)) | ^ sfvscanf.c:107:46: note: in expansion of macro 'SFEND' 107 | #define SFGETC(f,c) ((c) = (d < endd || (SFEND(f), SFBUF(f), d < endd)) ? \ | ^~~~~ sfvscanf.c:588:25: note: in expansion of macro 'SFGETC' 588 | if (SFGETC(f, inp) >= 0 && | ^~~~~~ sfvprintf.c:946:22: warning: conversion from 'long int' to 'int' may change value [-Wconversion] 946 | if ((n = endep - (sp = ep)) > 0) | ^~~~~ sfvscanf.c:105:38: warning: conversion from 'long int' to 'int' may change value [-Wconversion] 105 | #define SFEND(f) ((n_input += d-data), \ | ^ sfvscanf.c:107:46: note: in expansion of macro 'SFEND' 107 | #define SFGETC(f,c) ((c) = (d < endd || (SFEND(f), SFBUF(f), d < endd)) ? \ | ^~~~~ sfvscanf.c:590:25: note: in expansion of macro 'SFGETC' 590 | SFGETC(f, inp); | ^~~~~~ sfvscanf.c:106:58: warning: conversion to 'size_t' {aka 'long unsigned int'} from 'long int' may change the sign of the result [-Wsign-conversion] 106 | (rs > 0 ? SFREAD(f,(void*)data,d-data) : ((f->next = d), 0)) ) | ~^~~~~ ../../lib/sfio/sfhdr.h:353:49: note: in definition of macro 'SFREAD' 353 | #define SFREAD(f,s,n) (SETLOCAL(f),sfread(f,s,n)) | ^ sfvscanf.c:107:46: note: in expansion of macro 'SFEND' 107 | #define SFGETC(f,c) ((c) = (d < endd || (SFEND(f), SFBUF(f), d < endd)) ? \ | ^~~~~ sfvscanf.c:590:25: note: in expansion of macro 'SFGETC' 590 | SFGETC(f, inp); | ^~~~~~ sfvprintf.c:947:32: warning: conversion to 'size_t' {aka 'long unsigned int'} from 'int' may change the sign of the result [-Wsign-conversion] 947 | SFwrite(f, sp, n); | ^ ../../lib/sfio/sfhdr.h:540:41: note: in definition of macro 'MEMCPY' 540 | do { memcpy((void*)to,(void*)fr,n); to += n; fr += n; } while (0) | ^ sfvprintf.c:947:17: note: in expansion of macro 'SFwrite' 947 | SFwrite(f, sp, n); | ^~~~~~~ sfvprintf.c:64:39: warning: conversion from 'long int' to 'int' may change value [-Wconversion] 64 | #define SFEND(f) ((n_output += d - f->next), (f->next = d)) | ^ sfvprintf.c:83:13: note: in expansion of macro 'SFEND' 83 | { SFEND(f); n_output += (w = SFWRITE(f,(void*)s,n)) > 0 ? w : 0; SFBUF(f); \ | ^~~~~ sfvprintf.c:947:17: note: in expansion of macro 'SFwrite' 947 | SFwrite(f, sp, n); | ^~~~~~~ sfvscanf.c:602:57: warning: conversion to 'long long unsigned int' from 'int' may change the sign of the result [-Wsign-conversion] 602 | (argv.lu << 3) + (argv.lu << 1) + (inp - '0'); | ^ sfvscanf.c:105:38: warning: conversion from 'long int' to 'int' may change value [-Wconversion] 105 | #define SFEND(f) ((n_input += d-data), \ | ^ sfvscanf.c:107:46: note: in expansion of macro 'SFEND' 107 | #define SFGETC(f,c) ((c) = (d < endd || (SFEND(f), SFBUF(f), d < endd)) ? \ | ^~~~~ sfvscanf.c:603:41: note: in expansion of macro 'SFGETC' 603 | } while (--width > 0 && SFGETC(f, inp) >= '0' | ^~~~~~ sfvprintf.c:947:32: warning: conversion to 'size_t' {aka 'long unsigned int'} from 'int' may change the sign of the result [-Wsign-conversion] 947 | SFwrite(f, sp, n); | ^ ../../lib/sfio/sfhdr.h:352:50: note: in definition of macro 'SFWRITE' 352 | #define SFWRITE(f,s,n) (SETLOCAL(f),sfwrite(f,s,n)) | ^ sfvprintf.c:947:17: note: in expansion of macro 'SFwrite' 947 | SFwrite(f, sp, n); | ^~~~~~~ sfvscanf.c:106:58: warning: conversion to 'size_t' {aka 'long unsigned int'} from 'long int' may change the sign of the result [-Wsign-conversion] 106 | (rs > 0 ? SFREAD(f,(void*)data,d-data) : ((f->next = d), 0)) ) | ~^~~~~ ../../lib/sfio/sfhdr.h:353:49: note: in definition of macro 'SFREAD' 353 | #define SFREAD(f,s,n) (SETLOCAL(f),sfread(f,s,n)) | ^ sfvscanf.c:107:46: note: in expansion of macro 'SFEND' 107 | #define SFGETC(f,c) ((c) = (d < endd || (SFEND(f), SFBUF(f), d < endd)) ? \ | ^~~~~ sfvscanf.c:603:41: note: in expansion of macro 'SFGETC' 603 | } while (--width > 0 && SFGETC(f, inp) >= '0' | ^~~~~~ ../../lib/sfio/sfhdr.h:352:25: warning: conversion from 'ssize_t' {aka 'long int'} to 'int' may change value [-Wconversion] 352 | #define SFWRITE(f,s,n) (SETLOCAL(f),sfwrite(f,s,n)) | ^ sfvprintf.c:83:40: note: in expansion of macro 'SFWRITE' 83 | { SFEND(f); n_output += (w = SFWRITE(f,(void*)s,n)) > 0 ? w : 0; SFBUF(f); \ | ^~~~~~~ sfvprintf.c:947:17: note: in expansion of macro 'SFwrite' 947 | SFwrite(f, sp, n); | ^~~~~~~ sfvprintf.c:64:39: warning: conversion from 'long int' to 'int' may change value [-Wconversion] 64 | #define SFEND(f) ((n_output += d - f->next), (f->next = d)) | ^ sfvprintf.c:75:13: note: in expansion of macro 'SFEND' 75 | { SFEND(f); n_output += (w = SFNPUTC(f,c,n)) > 0 ? w : 0; SFBUF(f); \ | ^~~~~ sfvprintf.c:951:17: note: in expansion of macro 'SFnputc' 951 | SFnputc(f, ' ', n); | ^~~~~~~ sfvscanf.c:105:38: warning: conversion from 'long int' to 'int' may change value [-Wconversion] 105 | #define SFEND(f) ((n_input += d-data), \ | ^ sfvscanf.c:107:46: note: in expansion of macro 'SFEND' 107 | #define SFGETC(f,c) ((c) = (d < endd || (SFEND(f), SFBUF(f), d < endd)) ? \ | ^~~~~ sfvscanf.c:613:25: note: in expansion of macro 'SFGETC' 613 | SFGETC(f, inp) >= 0 && sp[inp] < base) | ^~~~~~ sfvscanf.c:106:58: warning: conversion to 'size_t' {aka 'long unsigned int'} from 'long int' may change the sign of the result [-Wsign-conversion] 106 | (rs > 0 ? SFREAD(f,(void*)data,d-data) : ((f->next = d), 0)) ) | ~^~~~~ ../../lib/sfio/sfhdr.h:353:49: note: in definition of macro 'SFREAD' 353 | #define SFREAD(f,s,n) (SETLOCAL(f),sfread(f,s,n)) | ^ sfvscanf.c:107:46: note: in expansion of macro 'SFEND' 107 | #define SFGETC(f,c) ((c) = (d < endd || (SFEND(f), SFBUF(f), d < endd)) ? \ | ^~~~~ sfvscanf.c:613:25: note: in expansion of macro 'SFGETC' 613 | SFGETC(f, inp) >= 0 && sp[inp] < base) | ^~~~~~ sfvprintf.c:951:33: warning: conversion to 'size_t' {aka 'long unsigned int'} from 'int' may change the sign of the result [-Wsign-conversion] 951 | SFnputc(f, ' ', n); | ^ ../../lib/sfio/sfhdr.h:354:50: note: in definition of macro 'SFNPUTC' 354 | #define SFNPUTC(f,c,n) (SETLOCAL(f),sfnputc(f,c,n)) | ^ sfvprintf.c:951:17: note: in expansion of macro 'SFnputc' 951 | SFnputc(f, ' ', n); | ^~~~~~~ ../../lib/sfio/sfhdr.h:354:25: warning: conversion from 'ssize_t' {aka 'long int'} to 'int' may change value [-Wconversion] 354 | #define SFNPUTC(f,c,n) (SETLOCAL(f),sfnputc(f,c,n)) | ^ sfvprintf.c:75:40: note: in expansion of macro 'SFNPUTC' 75 | { SFEND(f); n_output += (w = SFNPUTC(f,c,n)) > 0 ? w : 0; SFBUF(f); \ | ^~~~~~~ sfvprintf.c:951:17: note: in expansion of macro 'SFnputc' 951 | SFnputc(f, ' ', n); | ^~~~~~~ sfvprintf.c:962:45: warning: cast discards 'const' qualifier from pointer target type [-Wcast-qual] 962 | else if (fm->eventf(f, SF_DPOP, (void *) form, ft) < 0) | ^ sfvscanf.c:105:38: warning: conversion from 'long int' to 'int' may change value [-Wconversion] 105 | #define SFEND(f) ((n_input += d-data), \ | ^ sfvscanf.c:107:46: note: in expansion of macro 'SFEND' 107 | #define SFGETC(f,c) ((c) = (d < endd || (SFEND(f), SFBUF(f), d < endd)) ? \ | ^~~~~ sfvscanf.c:635:30: note: in expansion of macro 'SFGETC' 635 | SFGETC(f, inp) >= 0 && sp[inp] < base); | ^~~~~~ sfvscanf.c:106:58: warning: conversion to 'size_t' {aka 'long unsigned int'} from 'long int' may change the sign of the result [-Wsign-conversion] 106 | (rs > 0 ? SFREAD(f,(void*)data,d-data) : ((f->next = d), 0)) ) | ~^~~~~ ../../lib/sfio/sfhdr.h:353:49: note: in definition of macro 'SFREAD' 353 | #define SFREAD(f,s,n) (SETLOCAL(f),sfread(f,s,n)) | ^ sfvscanf.c:107:46: note: in expansion of macro 'SFEND' 107 | #define SFGETC(f,c) ((c) = (d < endd || (SFEND(f), SFBUF(f), d < endd)) ? \ | ^~~~~ sfvscanf.c:635:30: note: in expansion of macro 'SFGETC' 635 | SFGETC(f, inp) >= 0 && sp[inp] < base); | ^~~~~~ sfvprintf.c:64:39: warning: conversion from 'long int' to 'int' may change value [-Wconversion] 64 | #define SFEND(f) ((n_output += d - f->next), (f->next = d)) | ^ sfvprintf.c:989:5: note: in expansion of macro 'SFEND' 989 | SFEND(f); | ^~~~~ sfvscanf.c:638:44: warning: conversion to 'long long unsigned int' from 'int' may change the sign of the result [-Wsign-conversion] 638 | argv.lu = (argv.lu * base) + sp[inp]; | ^ sfvprintf.c:991:9: warning: conversion from 'long int' to 'int' may change value [-Wconversion] 991 | n = f->next - f->data; | ^ sfvscanf.c:105:38: warning: conversion from 'long int' to 'int' may change value [-Wconversion] 105 | #define SFEND(f) ((n_input += d-data), \ | ^ sfvscanf.c:107:46: note: in expansion of macro 'SFEND' 107 | #define SFGETC(f,c) ((c) = (d < endd || (SFEND(f), SFBUF(f), d < endd)) ? \ | ^~~~~ sfvscanf.c:640:30: note: in expansion of macro 'SFGETC' 640 | SFGETC(f, inp) >= 0 && sp[inp] < base); | ^~~~~~ sfvscanf.c:106:58: warning: conversion to 'size_t' {aka 'long unsigned int'} from 'long int' may change the sign of the result [-Wsign-conversion] 106 | (rs > 0 ? SFREAD(f,(void*)data,d-data) : ((f->next = d), 0)) ) | ~^~~~~ ../../lib/sfio/sfhdr.h:353:49: note: in definition of macro 'SFREAD' 353 | #define SFREAD(f,s,n) (SETLOCAL(f),sfread(f,s,n)) | ^ sfvscanf.c:107:46: note: in expansion of macro 'SFEND' 107 | #define SFGETC(f,c) ((c) = (d < endd || (SFEND(f), SFBUF(f), d < endd)) ? \ | ^~~~~ sfvscanf.c:640:30: note: in expansion of macro 'SFGETC' 640 | SFGETC(f, inp) >= 0 && sp[inp] < base); | ^~~~~~ sfvprintf.c:998:30: warning: conversion to 'size_t' {aka 'long unsigned int'} from 'int' may change the sign of the result [-Wsign-conversion] 998 | (void) SFWRITE(f, d, n); | ^ ../../lib/sfio/sfhdr.h:352:50: note: in definition of macro 'SFWRITE' 352 | #define SFWRITE(f,s,n) (SETLOCAL(f),sfwrite(f,s,n)) | ^ sfvscanf.c:692:37: warning: conversion from 'int' to 'char' may change value [-Wconversion] 692 | *argv.s++ = inp; | ^~~ sfvscanf.c:105:38: warning: conversion from 'long int' to 'int' may change value [-Wconversion] 105 | #define SFEND(f) ((n_input += d-data), \ | ^ sfvscanf.c:107:46: note: in expansion of macro 'SFEND' 107 | #define SFGETC(f,c) ((c) = (d < endd || (SFEND(f), SFBUF(f), d < endd)) ? \ | ^~~~~ sfvscanf.c:693:41: note: in expansion of macro 'SFGETC' 693 | } while (--width > 0 && SFGETC(f, inp) >= 0); | ^~~~~~ sfvscanf.c:106:58: warning: conversion to 'size_t' {aka 'long unsigned int'} from 'long int' may change the sign of the result [-Wsign-conversion] 106 | (rs > 0 ? SFREAD(f,(void*)data,d-data) : ((f->next = d), 0)) ) | ~^~~~~ ../../lib/sfio/sfhdr.h:353:49: note: in definition of macro 'SFREAD' 353 | #define SFREAD(f,s,n) (SETLOCAL(f),sfread(f,s,n)) | ^ sfvscanf.c:107:46: note: in expansion of macro 'SFEND' 107 | #define SFGETC(f,c) ((c) = (d < endd || (SFEND(f), SFBUF(f), d < endd)) ? \ | ^~~~~ sfvscanf.c:693:41: note: in expansion of macro 'SFGETC' 693 | } while (--width > 0 && SFGETC(f, inp) >= 0); | ^~~~~~ sfvscanf.c:697:37: warning: conversion from 'int' to 'char' may change value [-Wconversion] 697 | *argv.s++ = inp; | ^~~ sfvscanf.c:105:38: warning: conversion from 'long int' to 'int' may change value [-Wconversion] 105 | #define SFEND(f) ((n_input += d-data), \ | ^ sfvscanf.c:107:46: note: in expansion of macro 'SFEND' 107 | #define SFGETC(f,c) ((c) = (d < endd || (SFEND(f), SFBUF(f), d < endd)) ? \ | ^~~~~ sfvscanf.c:698:41: note: in expansion of macro 'SFGETC' 698 | } while (--width > 0 && SFGETC(f, inp) >= 0); | ^~~~~~ sfvscanf.c:106:58: warning: conversion to 'size_t' {aka 'long unsigned int'} from 'long int' may change the sign of the result [-Wsign-conversion] 106 | (rs > 0 ? SFREAD(f,(void*)data,d-data) : ((f->next = d), 0)) ) | ~^~~~~ ../../lib/sfio/sfhdr.h:353:49: note: in definition of macro 'SFREAD' 353 | #define SFREAD(f,s,n) (SETLOCAL(f),sfread(f,s,n)) | ^ sfvscanf.c:107:46: note: in expansion of macro 'SFEND' 107 | #define SFGETC(f,c) ((c) = (d < endd || (SFEND(f), SFBUF(f), d < endd)) ? \ | ^~~~~ sfvscanf.c:698:41: note: in expansion of macro 'SFGETC' 698 | } while (--width > 0 && SFGETC(f, inp) >= 0); | ^~~~~~ sfvscanf.c:700:33: warning: cast discards 'const' qualifier from pointer target type [-Wcast-qual] 700 | form = setclass((char *) form, accept); | ^ sfvscanf.c:711:37: warning: conversion from 'int' to 'char' may change value [-Wconversion] 711 | *argv.s++ = inp; | ^~~ sfvscanf.c:105:38: warning: conversion from 'long int' to 'int' may change value [-Wconversion] 105 | #define SFEND(f) ((n_input += d-data), \ | ^ sfvscanf.c:107:46: note: in expansion of macro 'SFEND' 107 | #define SFGETC(f,c) ((c) = (d < endd || (SFEND(f), SFBUF(f), d < endd)) ? \ | ^~~~~ sfvscanf.c:712:41: note: in expansion of macro 'SFGETC' 712 | } while (--width > 0 && SFGETC(f, inp) >= 0); | ^~~~~~ sfvscanf.c:106:58: warning: conversion to 'size_t' {aka 'long unsigned int'} from 'long int' may change the sign of the result [-Wsign-conversion] 106 | (rs > 0 ? SFREAD(f,(void*)data,d-data) : ((f->next = d), 0)) ) | ~^~~~~ ../../lib/sfio/sfhdr.h:353:49: note: in definition of macro 'SFREAD' 353 | #define SFREAD(f,s,n) (SETLOCAL(f),sfread(f,s,n)) | ^ sfvscanf.c:107:46: note: in expansion of macro 'SFEND' 107 | #define SFGETC(f,c) ((c) = (d < endd || (SFEND(f), SFBUF(f), d < endd)) ? \ | ^~~~~ sfvscanf.c:712:41: note: in expansion of macro 'SFGETC' 712 | } while (--width > 0 && SFGETC(f, inp) >= 0); | ^~~~~~ sfvscanf.c:733:45: warning: cast discards 'const' qualifier from pointer target type [-Wcast-qual] 733 | else if (fm->eventf(f, SF_DPOP, (void *) form, ft) < 0) | ^ sfvscanf.c:105:38: warning: conversion from 'long int' to 'int' may change value [-Wconversion] 105 | #define SFEND(f) ((n_input += d-data), \ | ^ sfvscanf.c:760:5: note: in expansion of macro 'SFEND' 760 | SFEND(f); | ^~~~~ sfvscanf.c:106:58: warning: conversion to 'size_t' {aka 'long unsigned int'} from 'long int' may change the sign of the result [-Wsign-conversion] 106 | (rs > 0 ? SFREAD(f,(void*)data,d-data) : ((f->next = d), 0)) ) | ~^~~~~ ../../lib/sfio/sfhdr.h:353:49: note: in definition of macro 'SFREAD' 353 | #define SFREAD(f,s,n) (SETLOCAL(f),sfread(f,s,n)) | ^ sfvscanf.c:760:5: note: in expansion of macro 'SFEND' 760 | SFEND(f); | ^~~~~ sfvprintf.c:590:17: warning: this statement may fall through [-Wimplicit-fallthrough=] 590 | ssp = "0123456789ABCDEF"; | ~~~~^~~~~~~~~~~~~~~~~~~~ sfvprintf.c:591:9: note: here 591 | case 'x': | ^~~~ sfvprintf.c:601:19: warning: this statement may fall through [-Wimplicit-fallthrough=] 601 | flags &= ~(SFFMT_SIGN | SFFMT_BLANK); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ sfvprintf.c:602:9: note: here 602 | case 'd': | ^~~~ CCLD libsfio_C.la make[4]: Leaving directory '/build/graphviz/src/graphviz-4.0.0/lib/sfio' make[3]: Leaving directory '/build/graphviz/src/graphviz-4.0.0/lib/sfio' Making all in vmalloc make[3]: Entering directory '/build/graphviz/src/graphviz-4.0.0/lib/vmalloc' CC vmalloc.lo CC vmclear.lo CC vmclose.lo CC vmopen.lo CC vmstrdup.lo CCLD libvmalloc_C.la make[3]: Leaving directory '/build/graphviz/src/graphviz-4.0.0/lib/vmalloc' Making all in ast make[3]: Entering directory '/build/graphviz/src/graphviz-4.0.0/lib/ast' CC chresc.lo CC error.lo CC fmtbuf.lo CC fmtesc.lo CC pathaccess.lo CC pathcanon.lo CC pathcat.lo CC pathfind.lo CC pathpath.lo CC chrtoi.lo CC stresc.lo CC strcopy.lo CC strmatch.lo chrtoi.c: In function 'chrtoi': chrtoi.c:29:19: warning: comparison of integer expressions of different signedness: 'int' and 'long unsigned int' [-Wsign-compare] 29 | for (n = 0; n < sizeof(int) * CHAR_BIT; n += CHAR_BIT) { | ^ pathcanon.c:26:7: warning: no previous prototype for 'pathcanon' [-Wmissing-prototypes] 26 | char *pathcanon(char *path) { | ^~~~~~~~~ chrtoi.c:30:9: warning: switch missing default case [-Wswitch-default] 30 | switch (x = *((const unsigned char *) s++)) { | ^~~~~~ fmtbuf.c: In function 'fmtbuf': fmtbuf.c:26:11: warning: comparison of integer expressions of different signedness: 'size_t' {aka 'long unsigned int'} and 'long int' [-Wsign-compare] 26 | if (n > (&buf[elementsof(buf)] - nxt)) | ^ strmatch.c:80:5: warning: "_lib_mbtowc" is not defined, evaluates to 0 [-Wundef] 80 | #if _lib_mbtowc && MB_LEN_MAX > 1 | ^~~~~~~~~~~ strmatch.c: In function 'gobble': strmatch.c:103:9: warning: switch missing default case [-Wswitch-default] 103 | switch (mbgetchar(s)) { | ^~~~~~ strmatch.c: In function 'onematch': strmatch.c:208:46: warning: conversion from 'int' to 'short int' may change value [-Wconversion] 208 | mp->current.groups = oldg; | ^~~~ strmatch.c:254:38: warning: conversion from 'int' to 'short int' may change value [-Wconversion] 254 | mp->current.groups = oldg; | ^~~~ strmatch.c:282:42: warning: conversion from 'int' to 'short int' may change value [-Wconversion] 282 | mp->current.groups = g; | ^ pathpath.c: In function 'pathpath': strmatch.c:342:38: warning: conversion from 'int' to 'short int' may change value [-Wconversion] 342 | mp->current.groups = g; | ^ pathpath.c:66:19: warning: cast discards 'const' qualifier from pointer target type [-Wcast-qual] 66 | else if ((s = (char *) a)) { | ^ strmatch.c:351:35: warning: conversion from 'int' to 'short int' may change value [-Wconversion] 351 | mp->best.groups = g; | ^ strmatch.c:393:29: warning: switch missing default case [-Wswitch-default] 393 | switch (HASHNKEY5 | ^~~~~~ strmatch.c:469:5: warning: "_lib_mbtowc" is not defined, evaluates to 0 [-Wundef] 469 | #if _lib_mbtowc | ^~~~~~~~~~~ strmatch.c: In function 'strgrpmatch': strmatch.c:593:9: warning: cast discards 'const' qualifier from pointer target type [-Wcast-qual] 593 | s = (char *) b; | ^ strmatch.c:599:41: warning: cast discards 'const' qualifier from pointer target type [-Wcast-qual] 599 | if ((i = grpmatch(&match, 0, s, (char *) p, e, flags)) || match.best.next_s) { | ^ strmatch.c:621:9: warning: cast discards 'const' qualifier from pointer target type [-Wcast-qual] 621 | s = (char *) b; | ^ strmatch.c:625:22: warning: conversion from 'long int' to 'int' may change value [-Wconversion] 625 | sub[i * 2] = match.current.end[i] ? match.current.beg[i] - s : 0; | ^~~~~ strmatch.c:626:26: warning: conversion from 'long int' to 'int' may change value [-Wconversion] 626 | sub[i * 2 + 1] = match.current.end[i] ? match.current.end[i] - s : 0; | ^~~~~ chresc.c: In function 'chresc': chresc.c:32:9: warning: switch missing default case [-Wswitch-default] 32 | switch (c = *s++) { | ^~~~~~ chresc.c:27:5: warning: switch missing default case [-Wswitch-default] 27 | switch (c = *s++) { | ^~~~~~ chresc.c:132:14: warning: cast discards 'const' qualifier from pointer target type [-Wcast-qual] 132 | *p = (char *) s; | ^ stresc.c: In function 'stresc': stresc.c:37:23: warning: conversion from 'long int' to 'int' may change value [-Wconversion] 37 | return (t - b); | ~~~^~~~ stresc.c:30:9: warning: switch missing default case [-Wswitch-default] 30 | switch (c = *s++) { | ^~~~~~ stresc.c:39:16: warning: conversion from 'int' to 'char' may change value [-Wconversion] 39 | *t++ = c; | ^ CCLD libast_C.la make[3]: Leaving directory '/build/graphviz/src/graphviz-4.0.0/lib/ast' Making all in vpsc make[3]: Entering directory '/build/graphviz/src/graphviz-4.0.0/lib/vpsc' CXX block.lo CXX blocks.lo CXX constraint.lo CXX generate-constraints.lo CXX solve_VPSC.lo CXX csolve_VPSC.lo CXX variable.lo CXX pairingheap/PairingHeap.lo CXXLD libvpsc_C.la make[3]: Leaving directory '/build/graphviz/src/graphviz-4.0.0/lib/vpsc' Making all in rbtree make[3]: Entering directory '/build/graphviz/src/graphviz-4.0.0/lib/rbtree' CC misc.lo CC red_black_tree.lo CC stack.lo CCLD librbtree_C.la make[3]: Leaving directory '/build/graphviz/src/graphviz-4.0.0/lib/rbtree' Making all in ortho make[3]: Entering directory '/build/graphviz/src/graphviz-4.0.0/lib/ortho' CC fPQ.lo CC maze.lo CC ortho.lo CC partition.lo CC rawgraph.lo CC sgraph.lo CC trapezoid.lo In file included from rawgraph.c:16: rawgraph.c: In function 'make_graph': ../../lib/common/memory.h:20:38: warning: conversion to 'size_t' {aka 'long unsigned int'} from 'int' may change the sign of the result [-Wsign-conversion] 20 | #define N_NEW(n,t) (t*)gcalloc((n),sizeof(t)) | ^~~ rawgraph.c:30:19: note: in expansion of macro 'N_NEW' 30 | g->vertices = N_NEW(n, vertex); | ^~~~~ rawgraph.c: In function 'mkStack': ../../lib/common/memory.h:20:38: warning: conversion to 'size_t' {aka 'long unsigned int'} from 'int' may change the sign of the result [-Wsign-conversion] 20 | #define N_NEW(n,t) (t*)gcalloc((n),sizeof(t)) | ^~~ rawgraph.c:82:16: note: in expansion of macro 'N_NEW' 82 | sp->vals = N_NEW(i,int); | ^~~~~ maze.c: In function 'psdump': maze.c:65:18: warning: conversion from 'double' to 'int' may change value [-Wfloat-conversion] 65 | absbb.UR.x = absbb.LL.x + BB.UR.x - BB.LL.x; | ^~~~~ maze.c:66:18: warning: conversion from 'double' to 'int' may change value [-Wfloat-conversion] 66 | absbb.UR.y = absbb.LL.y + BB.UR.y - BB.LL.y; | ^~~~~ maze.c: In function 'updateWts': maze.c:152:19: warning: conversion from 'double' to 'int' may change value [-Wfloat-conversion] 152 | #define CHANSZ(w) (((w)-3)/2) | ^ maze.c:188:15: note: in expansion of macro 'CHANSZ' 188 | int hsz = CHANSZ (cp->bb.UR.y - cp->bb.LL.y); | ^~~~~~ maze.c:152:19: warning: conversion from 'double' to 'int' may change value [-Wfloat-conversion] 152 | #define CHANSZ(w) (((w)-3)/2) | ^ maze.c:189:15: note: in expansion of macro 'CHANSZ' 189 | int vsz = CHANSZ (cp->bb.UR.x - cp->bb.LL.x); | ^~~~~~ partition.c: In function 'generateRandomOrdering': partition.c:160:13: warning: conversion from 'double' to 'int' may change value [-Wfloat-conversion] 160 | j = i + drand48() * (n + 1 - i); | ^ In file included from sgraph.c:15: sgraph.c: In function 'initSEdges': In file included from maze.c:21: maze.c: In function 'mkMazeGraph': sgraph.c:45:35: warning: conversion to 'size_t' {aka 'long unsigned int'} from 'int' may change the sign of the result [-Wsign-conversion] 45 | int* adj = N_NEW (6*g->nnodes + 2*maxdeg, int); ../../lib/common/memory.h:20:39: note: in definition of macro 'N_NEW' 20 | #define N_NEW(n,t) (t*)gcalloc((n),sizeof(t)) | ^ ../../lib/common/memory.h:20:38: warning: conversion to 'size_t' {aka 'long unsigned int'} from 'int' may change the sign of the result [-Wsign-conversion] 20 | #define N_NEW(n,t) (t*)gcalloc((n),sizeof(t)) | ^~~ maze.c:351:25: note: in expansion of macro 'N_NEW' 351 | snodeitem* ditems = N_NEW(bound, snodeitem); | ^~~~~ sgraph.c:46:35: warning: conversion to 'size_t' {aka 'long unsigned int'} from 'int' may change the sign of the result [-Wsign-conversion] 46 | g->edges = N_NEW (3*g->nnodes + maxdeg, sedge); ../../lib/common/memory.h:20:39: note: in definition of macro 'N_NEW' 20 | #define N_NEW(n,t) (t*)gcalloc((n),sizeof(t)) | ^ maze.c:358:20: warning: conversion to 'size_t' {aka 'long unsigned int'} from 'int' may change the sign of the result [-Wsign-conversion] 358 | sides = N_NEW(4*mp->ncells, snode*); ../../lib/common/memory.h:20:39: note: in definition of macro 'N_NEW' 20 | #define N_NEW(n,t) (t*)gcalloc((n),sizeof(t)) | ^ sgraph.c: In function 'createSGraph': ../../lib/common/memory.h:20:38: warning: conversion to 'size_t' {aka 'long unsigned int'} from 'int' may change the sign of the result [-Wsign-conversion] 20 | #define N_NEW(n,t) (t*)gcalloc((n),sizeof(t)) | ^~~ sgraph.c:64:16: note: in expansion of macro 'N_NEW' 64 | g->nodes = N_NEW(nnodes, snode); | ^~~~~ maze.c:396:20: warning: conversion to 'size_t' {aka 'long unsigned int'} from 'int' may change the sign of the result [-Wsign-conversion] 396 | sides = N_NEW(g->nnodes, snode*); ../../lib/common/memory.h:20:39: note: in definition of macro 'N_NEW' 20 | #define N_NEW(n,t) (t*)gcalloc((n),sizeof(t)) | ^ In file included from fPQ.c:14: fPQ.c: In function 'PQgen': sgraph.c: In function 'shortPath': sgraph.c:172:21: warning: conversion from 'double' to 'int' may change value [-Wfloat-conversion] 172 | d = -(N_VAL(n) + E_WT(e)); | ^ fPQ.c:28:18: warning: conversion to 'size_t' {aka 'long unsigned int'} from 'int' may change the sign of the result [-Wsign-conversion] 28 | pq = N_NEW(sz+1,snode*); ../../lib/common/memory.h:20:39: note: in definition of macro 'N_NEW' 20 | #define N_NEW(n,t) (t*)gcalloc((n),sizeof(t)) | ^ maze.c: In function 'mkMaze': maze.c:478:31: warning: conversion to 'size_t' {aka 'long unsigned int'} from 'int' may change the sign of the result [-Wsign-conversion] 478 | cp = mp->gcells = N_NEW(mp->ngcells, cell); ../../lib/common/memory.h:20:39: note: in definition of macro 'N_NEW' 20 | #define N_NEW(n,t) (t*)gcalloc((n),sizeof(t)) | ^ partition.c: In function 'traverse_polygon': partition.c:332:46: warning: comparing floating-point with '==' or '!=' is unsafe [-Wfloat-equal] 332 | if (t->hi.y > t->lo.y && seg[t->lseg].v0.x == seg[t->lseg].v1.x && | ^~ partition.c:333:25: warning: comparing floating-point with '==' or '!=' is unsafe [-Wfloat-equal] 333 | seg[t->rseg].v0.x == seg[t->rseg].v1.x) { | ^~ ../../lib/common/memory.h:20:38: warning: conversion to 'size_t' {aka 'long unsigned int'} from 'int' may change the sign of the result [-Wsign-conversion] 20 | #define N_NEW(n,t) (t*)gcalloc((n),sizeof(t)) | ^~~ maze.c:508:17: note: in expansion of macro 'N_NEW' 508 | mp->cells = N_NEW(nrect, cell); | ^~~~~ In file included from partition.c:15: partition.c: In function 'monotonate_trapezoids': ../../lib/common/memory.h:20:38: warning: conversion to 'size_t' {aka 'long unsigned int'} from 'int' may change the sign of the result [-Wsign-conversion] 20 | #define N_NEW(n,t) (t*)gcalloc((n),sizeof(t)) | ^~~ partition.c:602:20: note: in expansion of macro 'N_NEW' 602 | int* visited = N_NEW(tr_size,int); | ^~~~~ ../../lib/common/memory.h:20:38: warning: conversion to 'size_t' {aka 'long unsigned int'} from 'int' may change the sign of the result [-Wsign-conversion] 20 | #define N_NEW(n,t) (t*)gcalloc((n),sizeof(t)) | ^~~ partition.c:604:14: note: in expansion of macro 'N_NEW' 604 | mchain = N_NEW(tr_size, monchain_t); | ^~~~~ partition.c:605:23: warning: conversion to 'size_t' {aka 'long unsigned int'} from 'int' may change the sign of the result [-Wsign-conversion] 605 | vert = N_NEW(nsegs+1,vertexchain_t); ../../lib/common/memory.h:20:39: note: in definition of macro 'N_NEW' 20 | #define N_NEW(n,t) (t*)gcalloc((n),sizeof(t)) | ^ ../../lib/common/memory.h:20:38: warning: conversion to 'size_t' {aka 'long unsigned int'} from 'int' may change the sign of the result [-Wsign-conversion] 20 | #define N_NEW(n,t) (t*)gcalloc((n),sizeof(t)) | ^~~ partition.c:606:11: note: in expansion of macro 'N_NEW' 606 | mon = N_NEW(nsegs, int); | ^~~~~ partition.c: In function 'partition': partition.c:697:35: warning: conversion to 'size_t' {aka 'long unsigned int'} from 'int' may change the sign of the result [-Wsign-conversion] 697 | segment_t* segs = N_GNEW(nsegs+1, segment_t); ../../lib/common/memory.h:23:39: note: in definition of macro 'N_GNEW' 23 | #define N_GNEW(n,t) (t*)gcalloc((n),sizeof(t)) | ^ partition.c:698:31: warning: conversion to 'size_t' {aka 'long unsigned int'} from 'int' may change the sign of the result [-Wsign-conversion] 698 | int* permute = N_NEW(nsegs+1, int); ../../lib/common/memory.h:20:39: note: in definition of macro 'N_NEW' 20 | #define N_NEW(n,t) (t*)gcalloc((n),sizeof(t)) | ^ ../../lib/common/memory.h:23:38: warning: conversion to 'size_t' {aka 'long unsigned int'} from 'int' may change the sign of the result [-Wsign-conversion] 23 | #define N_GNEW(n,t) (t*)gcalloc((n),sizeof(t)) | ^~~ partition.c:703:19: note: in expansion of macro 'N_GNEW' 703 | trap_t* trs = N_GNEW(ntraps, trap_t); | ^~~~~~ ../../lib/common/memory.h:20:38: warning: conversion to 'size_t' {aka 'long unsigned int'} from 'int' may change the sign of the result [-Wsign-conversion] 20 | #define N_NEW(n,t) (t*)gcalloc((n),sizeof(t)) | ^~~ partition.c:704:24: note: in expansion of macro 'N_NEW' 704 | boxf* hor_decomp = N_NEW(ntraps, boxf); | ^~~~~ ../../lib/common/memory.h:20:38: warning: conversion to 'size_t' {aka 'long unsigned int'} from 'int' may change the sign of the result [-Wsign-conversion] 20 | #define N_NEW(n,t) (t*)gcalloc((n),sizeof(t)) | ^~~ partition.c:705:25: note: in expansion of macro 'N_NEW' 705 | boxf* vert_decomp = N_NEW(ntraps, boxf); | ^~~~~ partition.c:736:24: warning: conversion to 'size_t' {aka 'long unsigned int'} from 'int' may change the sign of the result [-Wsign-conversion] 736 | rs = N_NEW (hd_size*vd_size, boxf); ../../lib/common/memory.h:20:39: note: in definition of macro 'N_NEW' 20 | #define N_NEW(n,t) (t*)gcalloc((n),sizeof(t)) | ^ trapezoid.c: In function 'math_N': ../../lib/common/memory.h:26:58: warning: conversion to 'long unsigned int' from 'int' may change the sign of the result [-Wsign-conversion] 26 | #define RALLOC(size,ptr,type) ((type*)grealloc(ptr,(size)*sizeof(type))) | ^ partition.c:742:10: note: in expansion of macro 'RALLOC' 742 | rs = RALLOC (cnt, rs, boxf); | ^~~~~~ trapezoid.c:1017:10: warning: cast from function call of type 'double' to non-matching type 'int' [-Wbad-function-cast] 1017 | return (int) ceil((double) 1.0*n/v); | ^ In file included from trapezoid.c:29: trapezoid.c: In function 'construct_trapezoids': trapezoid.c:1032:18: warning: conversion to 'size_t' {aka 'long unsigned int'} from 'int' may change the sign of the result [-Wsign-conversion] 1032 | qs = N_NEW (2*ntraps, qnode_t); ../../lib/common/memory.h:20:39: note: in definition of macro 'N_NEW' 20 | #define N_NEW(n,t) (t*)gcalloc((n),sizeof(t)) | ^ trapezoid.c:1034:25: warning: conversion to 'long unsigned int' from 'int' may change the sign of the result [-Wsign-conversion] 1034 | memset(tr, 0, ntraps*sizeof(trap_t)); | ^ In file included from ../../lib/common/render.h:33, from ../../lib/ortho/ortho.h:13, from ortho.c:30: ortho.c: In function 'insertChan': ../../lib/common/memory.h:25:62: warning: conversion to 'long unsigned int' from 'int' may change the sign of the result [-Wsign-conversion] 25 | #define ALLOC(size,ptr,type) (ptr? (type*)grealloc(ptr,(size)*sizeof(type)):(type*)gmalloc((size)*sizeof(type))) | ^ ortho.c:423:22: note: in expansion of macro 'ALLOC' 423 | chan->seg_list = ALLOC(chan->cnt, chan->seg_list, segment*); | ^~~~~ ../../lib/common/memory.h:25:98: warning: conversion to 'long unsigned int' from 'int' may change the sign of the result [-Wsign-conversion] 25 | #define ALLOC(size,ptr,type) (ptr? (type*)grealloc(ptr,(size)*sizeof(type)):(type*)gmalloc((size)*sizeof(type))) | ^ ortho.c:423:22: note: in expansion of macro 'ALLOC' 423 | chan->seg_list = ALLOC(chan->cnt, chan->seg_list, segment*); | ^~~~~ ortho.c: In function 'assignTrackNo': ortho.c:579:62: warning: conversion from 'double' to 'int' may change value [-Wfloat-conversion] 579 | if (odb_flags & ODB_CHANG) dumpChanG (cp, ((chanItem*)l1)->v); | ~~~~~~~~~~~~~~~^~~ ortho.c: In function 'segCmp': ortho.c:653:18: warning: comparing floating-point with '==' or '!=' is unsafe [-Wfloat-equal] 653 | if (S1->p.p1 == S2->p.p1) { | ^~ ortho.c:654:20: warning: comparing floating-point with '==' or '!=' is unsafe [-Wfloat-equal] 654 | if(S1->p.p2==S2->p.p2) { | ^~ ortho.c:696:18: warning: comparing floating-point with '==' or '!=' is unsafe [-Wfloat-equal] 696 | if (S1->p.p2 == S2->p.p1) { | ^~ ortho.c: In function 'seg_cmp': ortho.c:725:46: warning: comparing floating-point with '==' or '!=' is unsafe [-Wfloat-equal] 725 | if(S1->isVert!=S2->isVert||S1->comm_coord!=S2->comm_coord) { | ^~ ortho.c: In function 'propagate_prec': ortho.c:806:32: warning: comparing floating-point with '==' or '!=' is unsafe [-Wfloat-equal] 806 | if(next->comm_coord==current->p.p1) { | ^~ ortho.c:814:32: warning: comparing floating-point with '==' or '!=' is unsafe [-Wfloat-equal] 814 | if(next->comm_coord==current->p.p1) { | ^~ In file included from ../../lib/cgraph/alloc.h:16, from ../../lib/cgraph/agxbuf.h:13, from ../../lib/common/render.h:36: ortho.c: In function 'is_parallel': ortho.c:829:27: warning: comparing floating-point with '==' or '!=' is unsafe [-Wfloat-equal] 829 | assert (s1->comm_coord==s2->comm_coord); | ^~ ortho.c:829:27: warning: comparing floating-point with '==' or '!=' is unsafe [-Wfloat-equal] 829 | assert (s1->comm_coord==s2->comm_coord); | ^~ ortho.c:830:21: warning: comparing floating-point with '==' or '!=' is unsafe [-Wfloat-equal] 830 | return s1->p.p1 == s2->p.p1 && | ^~ ortho.c:831:21: warning: comparing floating-point with '==' or '!=' is unsafe [-Wfloat-equal] 831 | s1->p.p2 == s2->p.p2 && | ^~ ortho.c: In function 'set_parallel_edges': ortho.c:896:33: warning: comparing floating-point with '==' or '!=' is unsafe [-Wfloat-equal] 896 | if(prev1->comm_coord==seg1->p.p1) { | ^~ ortho.c:927:33: warning: comparing floating-point with '==' or '!=' is unsafe [-Wfloat-equal] 927 | if(prev1->comm_coord==seg1->p.p1) { | ^~ ortho.c: In function 'addPEdges': ortho.c:1017:53: warning: comparing floating-point with '==' or '!=' is unsafe [-Wfloat-equal] 1017 | if(segs[i]->prev->comm_coord==segs[j]->prev->comm_coord) | ^~ ortho.c: In function 'htrack': ortho.c:1130:13: warning: conversion from 'double' to 'int' may change value [-Wfloat-conversion] 1130 | return lo + f*(hi-lo); | ~~~^~~~~~~~~~~ ortho.c: In function 'attachOrthoEdges': ortho.c:1199:49: warning: conversion from 'size_t' {aka 'long unsigned int'} to 'int' may change value [-Wconversion] 1199 | clip_and_install(e, aghead(e), ispline, npts, sinfo); | ^~~~ ortho.c: In function 'orthoEdges': ortho.c:1249:26: warning: conversion to 'size_t' {aka 'long unsigned int'} from 'int' may change the sign of the result [-Wsign-conversion] 1249 | epair_t* es = N_GNEW(agnedges(g), epair_t); ../../lib/common/memory.h:23:39: note: in definition of macro 'N_GNEW' 23 | #define N_GNEW(n,t) (t*)gcalloc((n),sizeof(t)) | ^ ortho.c:1265:17: warning: switch missing default case [-Wswitch-default] 1265 | switch (c) { | ^~~~~~ ortho.c: In function 'coordOf': ortho.c:1419:15: warning: conversion from 'double' to 'int' may change value [-Wfloat-conversion] 1419 | p.x = (cp->bb.LL.x + cp->bb.UR.x)/2; | ^ ortho.c:1420:15: warning: conversion from 'double' to 'int' may change value [-Wfloat-conversion] 1420 | p.y = cp->bb.UR.y; | ^~ ortho.c:1423:15: warning: conversion from 'double' to 'int' may change value [-Wfloat-conversion] 1423 | p.x = (cp->bb.LL.x + cp->bb.UR.x)/2; | ^ ortho.c:1424:15: warning: conversion from 'double' to 'int' may change value [-Wfloat-conversion] 1424 | p.y = cp->bb.LL.y; | ^~ ortho.c:1427:15: warning: conversion from 'double' to 'int' may change value [-Wfloat-conversion] 1427 | p.y = (cp->bb.LL.y + cp->bb.UR.y)/2; | ^ ortho.c:1428:15: warning: conversion from 'double' to 'int' may change value [-Wfloat-conversion] 1428 | p.x = cp->bb.LL.x; | ^~ ortho.c:1431:15: warning: conversion from 'double' to 'int' may change value [-Wfloat-conversion] 1431 | p.y = (cp->bb.LL.y + cp->bb.UR.y)/2; | ^ ortho.c:1432:15: warning: conversion from 'double' to 'int' may change value [-Wfloat-conversion] 1432 | p.x = cp->bb.UR.x; | ^~ ortho.c: In function 'emitEdge': ortho.c:1448:13: warning: conversion from 'double' to 'int' may change value [-Wfloat-conversion] 1448 | x = vtrack(seg, m); | ^~~~~~ ortho.c:1449:13: warning: conversion from 'double' to 'int' may change value [-Wfloat-conversion] 1449 | y = (n.UR.y + n.LL.y)/2; | ^ ortho.c:1453:13: warning: conversion from 'double' to 'int' may change value [-Wfloat-conversion] 1453 | x = (n.UR.x + n.LL.x)/2; | ^ ortho.c:1464:17: warning: conversion from 'double' to 'int' may change value [-Wfloat-conversion] 1464 | x = vtrack(seg, m); | ^~~~~~ ortho.c:1478:13: warning: conversion from 'double' to 'int' may change value [-Wfloat-conversion] 1478 | x = vtrack(seg, m); | ^~~~~~ ortho.c:1479:13: warning: conversion from 'double' to 'int' may change value [-Wfloat-conversion] 1479 | y = (n.UR.y + n.LL.y)/2; | ^ ortho.c:1483:13: warning: conversion from 'double' to 'int' may change value [-Wfloat-conversion] 1483 | x = (n.LL.x + n.UR.x)/2; | ^ ortho.c: In function 'emitSearchGraph': ortho.c:1520:19: warning: conversion from 'double' to 'int' may change value [-Wfloat-conversion] 1520 | p.x = pf.x; | ^~ ortho.c:1521:19: warning: conversion from 'double' to 'int' may change value [-Wfloat-conversion] 1521 | p.y = pf.y; | ^~ ortho.c: In function 'emitGraph': ortho.c:1568:17: warning: conversion from 'double' to 'int' may change value [-Wfloat-conversion] 1568 | bbox.LL.x = absbb.LL.x + TRANS; | ^~~~~ ortho.c:1569:17: warning: conversion from 'double' to 'int' may change value [-Wfloat-conversion] 1569 | bbox.LL.y = absbb.LL.y + TRANS; | ^~~~~ ortho.c:1570:17: warning: conversion from 'double' to 'int' may change value [-Wfloat-conversion] 1570 | bbox.UR.x = absbb.UR.x + TRANS; | ^~~~~ ortho.c:1571:17: warning: conversion from 'double' to 'int' may change value [-Wfloat-conversion] 1571 | bbox.UR.y = absbb.UR.y + TRANS; | ^~~~~ CCLD libortho_C.la make[3]: Leaving directory '/build/graphviz/src/graphviz-4.0.0/lib/ortho' Making all in sparse make[3]: Entering directory '/build/graphviz/src/graphviz-4.0.0/lib/sparse' CC SparseMatrix.lo CC general.lo CC BinaryHeap.lo CC IntStack.lo CC LinkedList.lo CC colorutil.lo CC color_palette.lo CC mq.lo CC clustering.lo CC DotIO.lo CC QuadTree.lo general.c: In function 'random_permutation': general.c:35:25: warning: conversion to 'long unsigned int' from 'int' may change the sign of the result [-Wsign-conversion] 35 | p = MALLOC(sizeof(int)*n); | ^ general.c: In function 'vector_float_take': general.c:91:37: warning: conversion to 'long unsigned int' from 'int' may change the sign of the result [-Wsign-conversion] 91 | if (!*u) *u = MALLOC(sizeof(float)*m); | ^ general.c: In function 'vector_ordering': general.c:132:35: warning: conversion to 'long unsigned int' from 'int' may change the sign of the result [-Wsign-conversion] 132 | if (!*p) *p = MALLOC(sizeof(int)*n); | ^ general.c:133:30: warning: conversion to 'long unsigned int' from 'int' may change the sign of the result [-Wsign-conversion] 133 | u = MALLOC(sizeof(double)*2*n); | ^ general.c:140:12: warning: conversion to 'size_t' {aka 'long unsigned int'} from 'int' may change the sign of the result [-Wsign-conversion] 140 | qsort(u, n, sizeof(double)*2, comp_ascend); | ^ general.c: In function 'vector_sort_int': general.c:147:12: warning: conversion to 'size_t' {aka 'long unsigned int'} from 'int' may change the sign of the result [-Wsign-conversion] 147 | qsort(v, n, sizeof(int), comp_ascend_int); | ^ clustering.c: In function 'Multilevel_Modularity_Clustering_init': mq.c: In function 'get_mq': clustering.c:36:41: warning: conversion to 'long unsigned int' from 'int' may change the sign of the result [-Wsign-conversion] 36 | grid->matching = MALLOC(sizeof(double)*(n)); | ^ mq.c:87:19: warning: conversion to 'size_t' {aka 'long unsigned int'} from 'int' may change the sign of the result [-Wsign-conversion] 87 | counts = CALLOC(n, sizeof(int)); | ^ clustering.c:42:35: warning: declaration of 'n' shadows a previous local [-Wshadow] 42 | int *ia = A->ia, *ja = A->ja, n = A->n; | ^ clustering.c:20:7: note: shadowed declaration is here 20 | int n = A->n, i, j; | ^ clustering.c:48:38: warning: conversion to 'long unsigned int' from 'int' may change the sign of the result [-Wsign-conversion] 48 | grid->deg = MALLOC(sizeof(double)*(n)); | ^ clustering.c:51:34: warning: conversion to 'long unsigned int' from 'int' may change the sign of the result [-Wsign-conversion] 51 | indeg = MALLOC(sizeof(double)*n); | ^ clustering.c:61:19: warning: comparing floating-point with '==' or '!=' is unsafe [-Wfloat-equal] 61 | if (deg_total == 0) deg_total = 1; | ^~ general.c: In function 'scale_to_box': general.c:206:23: warning: comparing floating-point with '==' or '!=' is unsafe [-Wfloat-equal] 206 | if (max[0] - min[0] != 0) { | ^~ general.c:209:23: warning: comparing floating-point with '==' or '!=' is unsafe [-Wfloat-equal] 209 | if (max[1] - min[1] != 0) { | ^~ mq.c:125:31: warning: conversion to 'long unsigned int' from 'int' may change the sign of the result [-Wsign-conversion] 125 | dout = MALLOC(sizeof(double)*n); | ^ clustering.c: In function 'Multilevel_Modularity_Clustering_establish': clustering.c:110:34: warning: conversion to 'long unsigned int' from 'int' may change the sign of the result [-Wsign-conversion] 110 | deg_new = MALLOC(sizeof(double)*n); | ^ clustering.c:111:36: warning: conversion to 'long unsigned int' from 'int' may change the sign of the result [-Wsign-conversion] 111 | deg_inter = MALLOC(sizeof(double)*n); | ^ clustering.c:112:28: warning: conversion to 'long unsigned int' from 'int' may change the sign of the result [-Wsign-conversion] 112 | mask = MALLOC(sizeof(int)*n); | ^ mq.c: In function 'Multilevel_MQ_Clustering_init': mq.c:171:52: warning: conversion to 'long unsigned int' from 'int' may change the sign of the result [-Wsign-conversion] 171 | matching = grid->matching = MALLOC(sizeof(double)*(n)); | ^ mq.c:178:9: warning: declaration of 'n' shadows a previous local [-Wshadow] 178 | int n = A->n, ncluster; | ^ mq.c:154:7: note: shadowed declaration is here 154 | int n = A->n, i; | ^ mq.c:181:44: warning: conversion to 'long unsigned int' from 'int' may change the sign of the result [-Wsign-conversion] 181 | grid->deg_intra = MALLOC(sizeof(double)*(n)); | ^ mq.c:184:38: warning: conversion to 'long unsigned int' from 'int' may change the sign of the result [-Wsign-conversion] 184 | grid->wgt = MALLOC(sizeof(double)*n); | ^ mq.c: In function 'Multilevel_MQ_Clustering_establish': mq.c:242:46: warning: conversion to 'long unsigned int' from 'int' may change the sign of the result [-Wsign-conversion] 242 | neighbors = MALLOC(sizeof(SingleLinkedList)*n); | ^ mq.c:249:40: warning: conversion to 'long unsigned int' from 'int' may change the sign of the result [-Wsign-conversion] 249 | deg_intra_new = MALLOC(sizeof(double)*n); | ^ mq.c:250:34: warning: conversion to 'long unsigned int' from 'int' may change the sign of the result [-Wsign-conversion] 250 | wgt_new = MALLOC(sizeof(double)*n); | ^ mq.c:251:36: warning: conversion to 'long unsigned int' from 'int' may change the sign of the result [-Wsign-conversion] 251 | deg_inter = MALLOC(sizeof(double)*n); | ^ mq.c:252:28: warning: conversion to 'long unsigned int' from 'int' may change the sign of the result [-Wsign-conversion] 252 | mask = MALLOC(sizeof(int)*n); | ^ mq.c:253:35: warning: conversion to 'long unsigned int' from 'int' may change the sign of the result [-Wsign-conversion] 253 | dout_new = MALLOC(sizeof(double)*n); | ^ clustering.c:237:34: warning: conversion to 'long unsigned int' from 'int' may change the sign of the result [-Wsign-conversion] 237 | deg_new = REALLOC(deg_new, nc*sizeof(double)); | ^ clustering.c: In function 'hierachical_modularity_clustering': clustering.c:324:29: warning: conversion to 'long unsigned int' from 'int' may change the sign of the result [-Wsign-conversion] 324 | u = MALLOC(sizeof(double)*cgrid->n); | ^ clustering.c:341:34: warning: conversion to 'long unsigned int' from 'int' may change the sign of the result [-Wsign-conversion] 341 | matching = MALLOC(sizeof(int)*(grid->n)); | ^ mq.c:488:46: warning: conversion to 'long unsigned int' from 'int' may change the sign of the result [-Wsign-conversion] 488 | deg_intra_new = REALLOC(deg_intra_new, nc*sizeof(double)); | ^ mq.c:489:34: warning: conversion to 'long unsigned int' from 'int' may change the sign of the result [-Wsign-conversion] 489 | wgt_new = REALLOC(wgt_new, nc*sizeof(double)); | ^ mq.c:493:37: warning: conversion to 'long unsigned int' from 'int' may change the sign of the result [-Wsign-conversion] 493 | dout_new = REALLOC(dout_new, nc*sizeof(double)); | ^ mq.c: In function 'hierachical_mq_clustering': QuadTree.c: In function 'node_data_new': mq.c:566:29: warning: conversion to 'long unsigned int' from 'int' may change the sign of the result [-Wsign-conversion] 566 | u = MALLOC(sizeof(double)*cgrid->n); | ^ DotIO.c: In function 'SparseMatrix_import_dot': mq.c:583:34: warning: conversion to 'long unsigned int' from 'int' may change the sign of the result [-Wsign-conversion] 583 | matching = MALLOC(sizeof(int)*(grid->n)); | ^ QuadTree.c:35:36: warning: conversion to 'long unsigned int' from 'int' may change the sign of the result [-Wsign-conversion] 35 | nd->coord = MALLOC(sizeof(double)*dim); | ^ DotIO.c:111:16: warning: conversion to 'unsigned int' from 'int' may change the sign of the result [-Wsign-conversion] 111 | ND_id(n) = i++; | ^ In file included from DotIO.c:13: ../../lib/sparse/general.h:44:33: warning: conversion to 'size_t' {aka 'long unsigned int'} from 'int' may change the sign of the result [-Wsign-conversion] 44 | #define N_NEW(n,t) (t*)calloc((n),sizeof(t)) | ^~~ DotIO.c:120:9: note: in expansion of macro 'N_NEW' 120 | I = N_NEW(nedges, int); | ^~~~~ QuadTree.c: In function 'node_data_get_id': QuadTree.c:61:12: warning: conversion from 'double' to 'int' may change value [-Wfloat-conversion] 61 | return nd->id; | ~~^~~~ ../../lib/sparse/general.h:44:33: warning: conversion to 'size_t' {aka 'long unsigned int'} from 'int' may change the sign of the result [-Wsign-conversion] 44 | #define N_NEW(n,t) (t*)calloc((n),sizeof(t)) | ^~~ DotIO.c:121:9: note: in expansion of macro 'N_NEW' 121 | J = N_NEW(nedges, int); | ^~~~~ ../../lib/sparse/general.h:44:33: warning: conversion to 'size_t' {aka 'long unsigned int'} from 'int' may change the sign of the result [-Wsign-conversion] 44 | #define N_NEW(n,t) (t*)calloc((n),sizeof(t)) | ^~~ DotIO.c:122:11: note: in expansion of macro 'N_NEW' 122 | val = N_NEW(nedges, double); | ^~~~~ DotIO.c:28:19: warning: conversion to 'int' from 'unsigned int' may change the sign of the result [-Wsign-conversion] 28 | #define ND_id(n) (((Agnodeinfo_t*)((n)->base.data))->id) | ^ DotIO.c:129:11: note: in expansion of macro 'ND_id' 129 | row = ND_id(n); | ^~~~~ DotIO.c:28:19: warning: conversion to 'int' from 'unsigned int' may change the sign of the result [-Wsign-conversion] 28 | #define ND_id(n) (((Agnodeinfo_t*)((n)->base.data))->id) | ^ DotIO.c:132:14: note: in expansion of macro 'ND_id' 132 | J[i] = ND_id(aghead(e)); | ^~~~~ QuadTree.c: In function 'check_or_realloc_arrays': QuadTree.c:71:46: warning: conversion to 'long unsigned int' from 'int' may change the sign of the result [-Wsign-conversion] 71 | *center = REALLOC(*center, sizeof(double)*(*nsupermax)*dim); | ^ QuadTree.c:71:59: warning: conversion to 'long unsigned int' from 'int' may change the sign of the result [-Wsign-conversion] 71 | *center = REALLOC(*center, sizeof(double)*(*nsupermax)*dim); | ^ DotIO.c:147:43: warning: conversion to 'long unsigned int' from 'int' may change the sign of the result [-Wsign-conversion] 147 | *edge_label_nodes = MALLOC(sizeof(int)*nedge_nodes); | ^ QuadTree.c:72:62: warning: conversion to 'long unsigned int' from 'int' may change the sign of the result [-Wsign-conversion] 72 | *supernode_wgts = REALLOC(*supernode_wgts, sizeof(double)*(*nsupermax)); | ^ DotIO.c:152:58: warning: conversion to 'long unsigned int' from 'int' may change the sign of the result [-Wsign-conversion] 152 | if (label_sizes) *label_sizes = MALLOC(sizeof(double)*2*nnodes); | ^ QuadTree.c:73:52: warning: conversion to 'long unsigned int' from 'int' may change the sign of the result [-Wsign-conversion] 73 | *distances = REALLOC(*distances, sizeof(double)*(*nsupermax)); | ^ DotIO.c:28:19: warning: conversion to 'int' from 'unsigned int' may change the sign of the result [-Wsign-conversion] 28 | #define ND_id(n) (((Agnodeinfo_t*)((n)->base.data))->id) | ^ DotIO.c:155:9: note: in expansion of macro 'ND_id' 155 | i = ND_id(n); | ^~~~~ QuadTree.c: In function 'QuadTree_get_supernodes_internal': QuadTree.c:77:78: warning: declaration of 'point' shadows a global declaration [-Wshadow] 77 | static void QuadTree_get_supernodes_internal(QuadTree qt, double bh, double *point, int nodeid, int *nsuper, int *nsupermax, double **center, double **supernode_wgts, double **distances, double *counts, int *flag){ | ~~~~~~~~^~~~~ In file included from QuadTree.c:12: ../../lib/common/geom.h:22:30: note: shadowed declaration is here 22 | typedef struct { int x, y; } point; | ^~~~~ QuadTree.c: In function 'QuadTree_get_supernodes': QuadTree.c:123:62: warning: declaration of 'point' shadows a global declaration [-Wshadow] 123 | void QuadTree_get_supernodes(QuadTree qt, double bh, double *point, int nodeid, int *nsuper, | ~~~~~~~~^~~~~ ../../lib/common/geom.h:22:30: note: shadowed declaration is here 22 | typedef struct { int x, y; } point; | ^~~~~ QuadTree.c:133:48: warning: conversion to 'long unsigned int' from 'int' may change the sign of the result [-Wsign-conversion] 133 | if (!*center) *center = MALLOC(sizeof(double)*(*nsupermax)*dim); | ^ QuadTree.c:133:61: warning: conversion to 'long unsigned int' from 'int' may change the sign of the result [-Wsign-conversion] 133 | if (!*center) *center = MALLOC(sizeof(double)*(*nsupermax)*dim); | ^ QuadTree.c:134:64: warning: conversion to 'long unsigned int' from 'int' may change the sign of the result [-Wsign-conversion] 134 | if (!*supernode_wgts) *supernode_wgts = MALLOC(sizeof(double)*(*nsupermax)); | ^ QuadTree.c:135:54: warning: conversion to 'long unsigned int' from 'int' may change the sign of the result [-Wsign-conversion] 135 | if (!*distances) *distances = MALLOC(sizeof(double)*(*nsupermax)); | ^ DotIO.c:176:33: warning: conversion to 'long unsigned int' from 'int' may change the sign of the result [-Wsign-conversion] 176 | *x = MALLOC(sizeof(double)*dim*nnodes); | ^ QuadTree.c: In function 'get_or_alloc_force_qt': DotIO.c:176:37: warning: conversion to 'long unsigned int' from 'int' may change the sign of the result [-Wsign-conversion] 176 | *x = MALLOC(sizeof(double)*dim*nnodes); | ^ QuadTree.c:155:37: warning: conversion to 'long unsigned int' from 'int' may change the sign of the result [-Wsign-conversion] 155 | qt->data = MALLOC(sizeof(double)*dim); | ^ DotIO.c:28:19: warning: conversion to 'int' from 'unsigned int' may change the sign of the result [-Wsign-conversion] 28 | #define ND_id(n) (((Agnodeinfo_t*)((n)->base.data))->id) | ^ DotIO.c:182:11: note: in expansion of macro 'ND_id' 182 | i = ND_id(n); | ^~~~~ QuadTree.c: In function 'QuadTree_repulsive_force_interact': QuadTree.c:190:13: warning: comparing floating-point with '==' or '!=' is unsafe [-Wfloat-equal] 190 | if (p == -1){ | ^~ DotIO.c: In function 'Import_dot_splines': DotIO.c:275:53: warning: conversion to 'long unsigned int' from 'int' may change the sign of the result [-Wsign-conversion] 275 | if (!(*xsplines)) *xsplines = malloc(sizeof(char*)*nedges); | ^ QuadTree.c:222:17: warning: comparing floating-point with '==' or '!=' is unsafe [-Wfloat-equal] 222 | if (p == -1){ | ^~ DotIO.c: In function 'hexcol2rgb': DotIO.c:300:44: warning: conversion from 'double' to 'float' may change value [-Wfloat-conversion] 300 | return (hex2int(h[0])*16 + hex2int(h[1]))/255.; | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~ QuadTree.c: In function 'QuadTree_new_from_point_list': QuadTree.c:352:31: warning: conversion to 'long unsigned int' from 'int' may change the sign of the result [-Wsign-conversion] 352 | xmin = MALLOC(sizeof(double)*dim); | ^ QuadTree.c:353:31: warning: conversion to 'long unsigned int' from 'int' may change the sign of the result [-Wsign-conversion] 353 | xmax = MALLOC(sizeof(double)*dim); | ^ DotIO.c: In function 'Import_coord_clusters_from_dot': QuadTree.c:354:33: warning: conversion to 'long unsigned int' from 'int' may change the sign of the result [-Wsign-conversion] 354 | center = MALLOC(sizeof(double)*dim); | ^ LinkedList.c:115:6: warning: no previous prototype for 'DoubleLinkedList_print' [-Wmissing-prototypes] 115 | void DoubleLinkedList_print(DoubleLinkedList head, void (*linkedlist_print)(void*)){ | ^~~~~~~~~~~~~~~~~~~~~~ DotIO.c:394:16: warning: conversion to 'unsigned int' from 'int' may change the sign of the result [-Wsign-conversion] 394 | ND_id(n) = i++; | ^ ../../lib/sparse/general.h:44:33: warning: conversion to 'size_t' {aka 'long unsigned int'} from 'int' may change the sign of the result [-Wsign-conversion] 44 | #define N_NEW(n,t) (t*)calloc((n),sizeof(t)) | ^~~ DotIO.c:397:7: note: in expansion of macro 'N_NEW' 397 | I = N_NEW(nedges, int); | ^~~~~ ../../lib/sparse/general.h:44:33: warning: conversion to 'size_t' {aka 'long unsigned int'} from 'int' may change the sign of the result [-Wsign-conversion] 44 | #define N_NEW(n,t) (t*)calloc((n),sizeof(t)) | ^~~ DotIO.c:398:7: note: in expansion of macro 'N_NEW' 398 | J = N_NEW(nedges, int); | ^~~~~ ../../lib/sparse/general.h:44:33: warning: conversion to 'size_t' {aka 'long unsigned int'} from 'int' may change the sign of the result [-Wsign-conversion] 44 | #define N_NEW(n,t) (t*)calloc((n),sizeof(t)) | ^~~ DotIO.c:399:9: note: in expansion of macro 'N_NEW' 399 | val = N_NEW(nedges, double); | ^~~~~ QuadTree.c:377:13: warning: comparing floating-point with '==' or '!=' is unsafe [-Wfloat-equal] 377 | if (width == 0) width = 0.00001;/* if we only have one point, width = 0! */ | ^~ DotIO.c:28:19: warning: conversion to 'int' from 'unsigned int' may change the sign of the result [-Wsign-conversion] 28 | #define ND_id(n) (((Agnodeinfo_t*)((n)->base.data))->id) | ^ DotIO.c:406:11: note: in expansion of macro 'ND_id' 406 | row = ND_id(n); | ^~~~~ DotIO.c:28:19: warning: conversion to 'int' from 'unsigned int' may change the sign of the result [-Wsign-conversion] 28 | #define ND_id(n) (((Agnodeinfo_t*)((n)->base.data))->id) | ^ DotIO.c:409:14: note: in expansion of macro 'ND_id' 409 | J[i] = ND_id(aghead(e)); | ^~~~~ QuadTree.c: In function 'QuadTree_new': QuadTree.c:398:36: warning: conversion to 'long unsigned int' from 'int' may change the sign of the result [-Wsign-conversion] 398 | q->center = MALLOC(sizeof(double)*dim); | ^ DotIO.c:424:33: warning: conversion to 'long unsigned int' from 'int' may change the sign of the result [-Wsign-conversion] 424 | *clusters = MALLOC(sizeof(int)*nnodes); | ^ DotIO.c:433:38: warning: conversion to 'long unsigned int' from 'int' may change the sign of the result [-Wsign-conversion] 433 | memset (*clusters, 0, sizeof(int)*nnodes); | ^ DotIO.c:28:19: warning: conversion to 'int' from 'unsigned int' may change the sign of the result [-Wsign-conversion] 28 | #define ND_id(n) (((Agnodeinfo_t*)((n)->base.data))->id) | ^ DotIO.c:438:13: note: in expansion of macro 'ND_id' 438 | i = ND_id(n); | ^~~~~ DotIO.c:28:19: warning: conversion to 'int' from 'unsigned int' may change the sign of the result [-Wsign-conversion] 28 | #define ND_id(n) (((Agnodeinfo_t*)((n)->base.data))->id) | ^ DotIO.c:446:11: note: in expansion of macro 'ND_id' 446 | i = ND_id(n); | ^~~~~ DotIO.c:28:19: warning: conversion to 'int' from 'unsigned int' may change the sign of the result [-Wsign-conversion] 28 | #define ND_id(n) (((Agnodeinfo_t*)((n)->base.data))->id) | ^ DotIO.c:455:11: note: in expansion of macro 'ND_id' 455 | i = ND_id(n); | ^~~~~ QuadTree.c: In function 'QuadTree_add_internal': QuadTree.c:489:39: warning: conversion to 'long unsigned int' from 'int' may change the sign of the result [-Wsign-conversion] 489 | q->average = MALLOC(sizeof(double)*dim); | ^ DotIO.c:28:19: warning: conversion to 'int' from 'unsigned int' may change the sign of the result [-Wsign-conversion] 28 | #define ND_id(n) (((Agnodeinfo_t*)((n)->base.data))->id) | ^ DotIO.c:491:11: note: in expansion of macro 'ND_id' 491 | i = ND_id(n); | ^~~~~ DotIO.c:502:39: warning: conversion to 'long unsigned int' from 'int' may change the sign of the result [-Wsign-conversion] 502 | *label_sizes = MALLOC(sizeof(double)*dim*nnodes); | ^ DotIO.c:502:43: warning: conversion to 'long unsigned int' from 'int' may change the sign of the result [-Wsign-conversion] 502 | *label_sizes = MALLOC(sizeof(double)*dim*nnodes); | ^ DotIO.c:504:34: warning: conversion to 'long unsigned int' from 'int' may change the sign of the result [-Wsign-conversion] 504 | *rgb_r = MALLOC(sizeof(float)*(1+MAX_GRPS)); | ^ DotIO.c:505:34: warning: conversion to 'long unsigned int' from 'int' may change the sign of the result [-Wsign-conversion] 505 | *rgb_g = MALLOC(sizeof(float)*(1+MAX_GRPS)); | ^ DotIO.c:506:34: warning: conversion to 'long unsigned int' from 'int' may change the sign of the result [-Wsign-conversion] 506 | *rgb_b = MALLOC(sizeof(float)*(1+MAX_GRPS)); | ^ DotIO.c:512:30: warning: conversion to 'long unsigned int' from 'int' may change the sign of the result [-Wsign-conversion] 512 | *fsz = MALLOC(sizeof(float)*nnodes); | ^ DotIO.c:513:33: warning: conversion to 'long unsigned int' from 'int' may change the sign of the result [-Wsign-conversion] 513 | *labels = MALLOC(sizeof(char*)*nnodes); | ^ DotIO.c:28:19: warning: conversion to 'int' from 'unsigned int' may change the sign of the result [-Wsign-conversion] 28 | #define ND_id(n) (((Agnodeinfo_t*)((n)->base.data))->id) | ^ DotIO.c:518:9: note: in expansion of macro 'ND_id' 518 | i = ND_id(n); | ^~~~~ DotIO.c:559:33: warning: conversion from 'double' to 'float' may change value [-Wfloat-conversion] 559 | (*rgb_r)[(*clusters)[i]] = color.u.RGBA[0]; | ^~~~~ DotIO.c:560:33: warning: conversion from 'double' to 'float' may change value [-Wfloat-conversion] 560 | (*rgb_g)[(*clusters)[i]] = color.u.RGBA[1]; | ^~~~~ DotIO.c:561:33: warning: conversion from 'double' to 'float' may change value [-Wfloat-conversion] 561 | (*rgb_b)[(*clusters)[i]] = color.u.RGBA[2]; | ^~~~~ DotIO.c:577:31: warning: conversion to 'long unsigned int' from 'int' may change the sign of the result [-Wsign-conversion] 577 | *x = MALLOC(sizeof(double)*dim*nnodes); | ^ DotIO.c:577:35: warning: conversion to 'long unsigned int' from 'int' may change the sign of the result [-Wsign-conversion] 577 | *x = MALLOC(sizeof(double)*dim*nnodes); | ^ QuadTree.c: In function 'QuadTree_get_nearest_internal': DotIO.c:28:19: warning: conversion to 'int' from 'unsigned int' may change the sign of the result [-Wsign-conversion] 28 | #define ND_id(n) (((Agnodeinfo_t*)((n)->base.data))->id) | ^ DotIO.c:580:11: note: in expansion of macro 'ND_id' 580 | i = ND_id(n); | ^~~~~ QuadTree.c:670:11: warning: declaration of 'point' shadows a global declaration [-Wshadow] 670 | double *point = x; | ^~~~~ ../../lib/common/geom.h:22:30: note: shadowed declaration is here 22 | typedef struct { int x, y; } point; | ^~~~~ DotIO.c: In function 'attached_clustering': DotIO.c:632:16: warning: conversion to 'unsigned int' from 'int' may change the sign of the result [-Wsign-conversion] 632 | ND_id(n) = i++; | ^ ../../lib/sparse/general.h:44:33: warning: conversion to 'size_t' {aka 'long unsigned int'} from 'int' may change the sign of the result [-Wsign-conversion] 44 | #define N_NEW(n,t) (t*)calloc((n),sizeof(t)) | ^~~ DotIO.c:635:7: note: in expansion of macro 'N_NEW' 635 | I = N_NEW(nedges, int); | ^~~~~ ../../lib/sparse/general.h:44:33: warning: conversion to 'size_t' {aka 'long unsigned int'} from 'int' may change the sign of the result [-Wsign-conversion] 44 | #define N_NEW(n,t) (t*)calloc((n),sizeof(t)) | ^~~ DotIO.c:636:7: note: in expansion of macro 'N_NEW' 636 | J = N_NEW(nedges, int); | ^~~~~ ../../lib/sparse/general.h:44:33: warning: conversion to 'size_t' {aka 'long unsigned int'} from 'int' may change the sign of the result [-Wsign-conversion] 44 | #define N_NEW(n,t) (t*)calloc((n),sizeof(t)) | ^~~ DotIO.c:637:9: note: in expansion of macro 'N_NEW' 637 | val = N_NEW(nedges, double); | ^~~~~ DotIO.c:28:19: warning: conversion to 'int' from 'unsigned int' may change the sign of the result [-Wsign-conversion] 28 | #define ND_id(n) (((Agnodeinfo_t*)((n)->base.data))->id) | ^ DotIO.c:644:11: note: in expansion of macro 'ND_id' 644 | row = ND_id(n); | ^~~~~ DotIO.c:28:19: warning: conversion to 'int' from 'unsigned int' may change the sign of the result [-Wsign-conversion] 28 | #define ND_id(n) (((Agnodeinfo_t*)((n)->base.data))->id) | ^ DotIO.c:647:14: note: in expansion of macro 'ND_id' 647 | J[i] = ND_id(aghead(e)); | ^~~~~ DotIO.c:660:32: warning: conversion to 'long unsigned int' from 'int' may change the sign of the result [-Wsign-conversion] 660 | clusters = MALLOC(sizeof(int)*nnodes); | ^ DotIO.c:28:19: warning: conversion to 'int' from 'unsigned int' may change the sign of the result [-Wsign-conversion] 28 | #define ND_id(n) (((Agnodeinfo_t*)((n)->base.data))->id) | ^ DotIO.c:678:11: note: in expansion of macro 'ND_id' 678 | i = ND_id(n); | ^~~~~ DotIO.c: In function 'setDotNodeID': DotIO.c:706:16: warning: conversion to 'unsigned int' from 'int' may change the sign of the result [-Wsign-conversion] 706 | ND_id(n) = v; | ^ DotIO.c: In function 'getDotNodeID': DotIO.c:28:53: warning: conversion to 'int' from 'unsigned int' may change the sign of the result [-Wsign-conversion] 28 | #define ND_id(n) (((Agnodeinfo_t*)((n)->base.data))->id) | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~ DotIO.c:711:12: note: in expansion of macro 'ND_id' 711 | return ND_id(n); | ^~~~~ SparseMatrix.c: In function 'SparseMatrix_init': SparseMatrix.c:303:13: warning: conversion from 'size_t' {aka 'long unsigned int'} to 'int' may change value [-Wconversion] 303 | A->size = sz; | ^~ SparseMatrix.c: In function 'SparseMatrix_alloc': SparseMatrix.c:333:26: warning: conversion to 'size_t' {aka 'long unsigned int'} from 'int' may change the sign of the result [-Wsign-conversion] 333 | A->a = MALLOC(A->size*nz_t); | ^ SparseMatrix.c:340:28: warning: conversion to 'size_t' {aka 'long unsigned int'} from 'int' may change the sign of the result [-Wsign-conversion] 340 | A->a = MALLOC(A->size*nz_t); | ^ SparseMatrix.c: In function 'SparseMatrix_realloc': SparseMatrix.c:358:37: warning: conversion to 'size_t' {aka 'long unsigned int'} from 'int' may change the sign of the result [-Wsign-conversion] 358 | A->a = REALLOC(A->a, A->size*nz_t); | ^ SparseMatrix.c:360:30: warning: conversion to 'size_t' {aka 'long unsigned int'} from 'int' may change the sign of the result [-Wsign-conversion] 360 | A->a = MALLOC(A->size*nz_t); | ^ SparseMatrix.c:370:37: warning: conversion to 'size_t' {aka 'long unsigned int'} from 'int' may change the sign of the result [-Wsign-conversion] 370 | A->a = REALLOC(A->a, A->size*nz_t); | ^ SparseMatrix.c:372:30: warning: conversion to 'size_t' {aka 'long unsigned int'} from 'int' may change the sign of the result [-Wsign-conversion] 372 | A->a = MALLOC(A->size*nz_t); | ^ SparseMatrix.c: In function 'SparseMatrix_from_coordinate_format': SparseMatrix.c:714:88: warning: conversion to 'size_t' {aka 'long unsigned int'} from 'int' may change the sign of the result [-Wsign-conversion] 714 | return SparseMatrix_from_coordinate_arrays(A->nz, A->m, A->n, irn, jcn, a, A->type, A->size); | ~^~~~~~ SparseMatrix.c: In function 'SparseMatrix_from_coordinate_format_not_compacted': SparseMatrix.c:729:102: warning: conversion to 'size_t' {aka 'long unsigned int'} from 'int' may change the sign of the result [-Wsign-conversion] 729 | return SparseMatrix_from_coordinate_arrays_not_compacted(A->nz, A->m, A->n, irn, jcn, a, A->type, A->size); | ~^~~~~~ SparseMatrix.c: In function 'SparseMatrix_from_coordinate_arrays_internal': SparseMatrix.c:840:31: warning: conversion to 'long unsigned int' from 'int' may change the sign of the result [-Wsign-conversion] 840 | memcpy(A->a, val0, A->size*((size_t)nz)); | ^ SparseMatrix.c: In function 'SparseMatrix_coordinate_form_add_entry': SparseMatrix.c:1612:50: warning: conversion to 'long unsigned int' from 'int' may change the sign of the result [-Wsign-conversion] 1612 | if (A->size) memcpy((char*) A->a + ((size_t)nz)*A->size/sizeof(char), val, A->size*((size_t)nentries)); | ^ SparseMatrix.c:1612:85: warning: conversion to 'long unsigned int' from 'int' may change the sign of the result [-Wsign-conversion] 1612 | if (A->size) memcpy((char*) A->a + ((size_t)nz)*A->size/sizeof(char), val, A->size*((size_t)nentries)); | ^ SparseMatrix.c: In function 'SparseMatrix_copy': SparseMatrix.c:1894:61: warning: conversion to 'size_t' {aka 'long unsigned int'} from 'int' may change the sign of the result [-Wsign-conversion] 1894 | B = SparseMatrix_general_new(A->m, A->n, A->nz, A->type, A->size, A->format); | ~^~~~~~ SparseMatrix.c:1899:39: warning: conversion to 'long unsigned int' from 'int' may change the sign of the result [-Wsign-conversion] 1899 | if (A->a) memcpy(B->a, A->a, A->size*((size_t)A->nz)); | ^ SparseMatrix.c: In function 'SparseMatrix_get_augmented': SparseMatrix.c:2267:27: warning: conversion to 'long unsigned int' from 'int' may change the sign of the result [-Wsign-conversion] 2267 | val = MALLOC(A->size*2*((size_t)nz)); | ^ SparseMatrix.c:2268:30: warning: conversion to 'long unsigned int' from 'int' may change the sign of the result [-Wsign-conversion] 2268 | memcpy(val, A->a, A->size*((size_t)nz)); | ^ SparseMatrix.c:2269:40: warning: conversion to 'long unsigned int' from 'int' may change the sign of the result [-Wsign-conversion] 2269 | memcpy(((char*) val) + ((size_t)nz)*A->size, A->a, A->size*((size_t)nz)); | ^ SparseMatrix.c:2269:63: warning: conversion to 'long unsigned int' from 'int' may change the sign of the result [-Wsign-conversion] 2269 | memcpy(((char*) val) + ((size_t)nz)*A->size, A->a, A->size*((size_t)nz)); | ^ SparseMatrix.c:2286:83: warning: conversion to 'size_t' {aka 'long unsigned int'} from 'int' may change the sign of the result [-Wsign-conversion] 2286 | B = SparseMatrix_from_coordinate_arrays(nz, m + n, m + n, irn, jcn, val, type, A->size); | ~^~~~~~ SparseMatrix.c: In function 'SparseMatrix_get_submatrix': SparseMatrix.c:2460:82: warning: conversion to 'size_t' {aka 'long unsigned int'} from 'int' may change the sign of the result [-Wsign-conversion] 2460 | B = SparseMatrix_from_coordinate_arrays(nz, nrow, ncol, irn, jcn, v, A->type, A->size); | ~^~~~~~ SparseMatrix.c: In function 'SparseMatrix_distance_matrix': SparseMatrix.c:2533:48: warning: conversion to 'long unsigned int' from 'int' may change the sign of the result [-Wsign-conversion] 2533 | if (!(*dist0)) *dist0 = MALLOC(sizeof(double)*n*n); | ^ SparseMatrix.c:2533:50: warning: conversion to 'long unsigned int' from 'int' may change the sign of the result [-Wsign-conversion] 2533 | if (!(*dist0)) *dist0 = MALLOC(sizeof(double)*n*n); | ^ SparseMatrix.c:2547:30: warning: conversion to 'long unsigned int' from 'int' may change the sign of the result [-Wsign-conversion] 2547 | list = MALLOC(sizeof(int)*n); | ^ SparseMatrix.c: In function 'SparseMatrix_distance_matrix_khops': SparseMatrix.c:2600:30: warning: conversion to 'long unsigned int' from 'int' may change the sign of the result [-Wsign-conversion] 2600 | list = MALLOC(sizeof(int)*n); | ^ SparseMatrix.c:2601:33: warning: conversion to 'long unsigned int' from 'int' may change the sign of the result [-Wsign-conversion] 2601 | dist = MALLOC(sizeof(double)*n); | ^ CCLD libsparse_C.la make[3]: Leaving directory '/build/graphviz/src/graphviz-4.0.0/lib/sparse' Making all in patchwork make[3]: Entering directory '/build/graphviz/src/graphviz-4.0.0/lib/patchwork' CC patchwork.lo CC patchworkinit.lo CC tree_map.lo patchwork.c: In function 'getArea': patchwork.c:62:14: warning: comparing floating-point with '==' or '!=' is unsafe [-Wfloat-equal] 62 | if (area == 0) area = DFLT_SZ; | ^~ In file included from ../../lib/common/render.h:33, from tree_map.c:11: tree_map.c: In function 'tree_map': ../../lib/common/memory.h:20:38: warning: conversion to 'size_t' {aka 'long unsigned int'} from 'int' may change the sign of the result [-Wsign-conversion] 20 | #define N_NEW(n,t) (t*)gcalloc((n),sizeof(t)) | ^~~ tree_map.c:110:10: note: in expansion of macro 'N_NEW' 110 | recs = N_NEW(n,rectangle); | ^~~~~ In file included from ../../lib/common/render.h:33, from ../../lib/patchwork/patchwork.h:13, from patchwork.c:13: patchwork.c: In function 'layoutTree': ../../lib/common/memory.h:20:38: warning: conversion to 'size_t' {aka 'long unsigned int'} from 'int' may change the sign of the result [-Wsign-conversion] 20 | #define N_NEW(n,t) (t*)gcalloc((n),sizeof(t)) | ^~~ patchwork.c:152:13: note: in expansion of macro 'N_NEW' 152 | nodes = N_NEW(nc, treenode_t*); | ^~~~~ patchwork.c:159:19: warning: conversion to 'size_t' {aka 'long unsigned int'} from 'int' may change the sign of the result [-Wsign-conversion] 159 | qsort (nodes, nc, sizeof(treenode_t*), (qsort_cmpf)nodecmp); | ^~ ../../lib/common/memory.h:20:38: warning: conversion to 'size_t' {aka 'long unsigned int'} from 'int' may change the sign of the result [-Wsign-conversion] 20 | #define N_NEW(n,t) (t*)gcalloc((n),sizeof(t)) | ^~~ patchwork.c:160:20: note: in expansion of macro 'N_NEW' 160 | areas_sorted = N_NEW(nc,double); | ^~~~~ patchwork.c:164:20: warning: comparing floating-point with '==' or '!=' is unsafe [-Wfloat-equal] 164 | if (tree->area == tree->child_area) | ^~ In file included from ../../lib/common/render.h:33, from ../../lib/patchwork/patchwork.h:13, from patchworkinit.c:11: patchworkinit.c: In function 'addCluster': ../../lib/common/memory.h:26:58: warning: conversion to 'long unsigned int' from 'int' may change the sign of the result [-Wsign-conversion] 26 | #define RALLOC(size,ptr,type) ((type*)grealloc(ptr,(size)*sizeof(type))) | ^ patchworkinit.c:46:21: note: in expansion of macro 'RALLOC' 46 | clist->cl = RALLOC(clist->sz, clist->cl, graph_t *); | ^~~~~~ patchworkinit.c: In function 'mkClusters': ../../lib/common/memory.h:26:58: warning: conversion to 'long unsigned int' from 'int' may change the sign of the result [-Wsign-conversion] 26 | #define RALLOC(size,ptr,type) ((type*)grealloc(ptr,(size)*sizeof(type))) | ^ patchworkinit.c:91:27: note: in expansion of macro 'RALLOC' 91 | GD_clust(g) = RALLOC(list.cnt + 1, list.cl, graph_t*); | ^~~~~~ patchworkinit.c: In function 'patchwork_init_node_edge': patchworkinit.c:112:24: warning: conversion to 'size_t' {aka 'long unsigned int'} from 'int' may change the sign of the result [-Wsign-conversion] 112 | rdata* alg = N_NEW(agnnodes(g), rdata); ../../lib/common/memory.h:20:39: note: in definition of macro 'N_NEW' 20 | #define N_NEW(n,t) (t*)gcalloc((n),sizeof(t)) | ^ patchworkinit.c:114:43: warning: conversion to 'size_t' {aka 'long unsigned int'} from 'int' may change the sign of the result [-Wsign-conversion] 114 | GD_neato_nlist(g) = N_NEW(agnnodes(g) + 1, node_t *); ../../lib/common/memory.h:20:39: note: in definition of macro 'N_NEW' 20 | #define N_NEW(n,t) (t*)gcalloc((n),sizeof(t)) | ^ CCLD libpatchwork_C.la make[3]: Leaving directory '/build/graphviz/src/graphviz-4.0.0/lib/patchwork' Making all in expr make[3]: Entering directory '/build/graphviz/src/graphviz-4.0.0/lib/expr' bison -y -Wno-yacc -dtv ../../lib/expr/exparse.y -o y.tab.c rm -f expr.3.pdf; pdffile=expr.3.pdf; psfile=${pdffile%pdf}ps; \ groff -Tps -man expr.3 > $psfile || { rm -f $psfile; exit 1; }; \ ps2pdf $psfile && rm -f $psfile || { rm -f $psfile; exit 1; } ../../lib/expr/exparse.y: warning: 4 shift/reduce conflicts [-Wconflicts-sr] ../../lib/expr/exparse.y: note: rerun with option '-Wcounterexamples' to generate conflict counterexamples /usr/bin/sed "s/fprintf/sfprintf/g" exparse.c CC excc.lo CC exdata.lo CC exeval.lo CC exexpr.lo CC extoken.lo CC extype.lo CC exzero.lo CC excontext.lo CC exerror.lo CC exopen.lo CC exnospace.lo CC exparse.lo CC exstash.lo excontext.c: In function 'excontext': excontext.c:41:51: warning: conversion to 'long unsigned int' from 'long int' may change the sign of the result [-Wsign-conversion] 41 | if ((n = (sizeof(p->line) - (t - (p->linep + 1))) - (e - s)) > 0) | ^ excontext.c:41:75: warning: conversion to 'long unsigned int' from 'long int' may change the sign of the result [-Wsign-conversion] 41 | if ((n = (sizeof(p->line) - (t - (p->linep + 1))) - (e - s)) > 0) | ^ excontext.c:41:34: warning: conversion from 'long unsigned int' to 'int' may change value [-Wconversion] 41 | if ((n = (sizeof(p->line) - (t - (p->linep + 1))) - (e - s)) > 0) | ^ excontext.c:55:26: warning: conversion from 'long int' to 'int' may change value [-Wconversion] 55 | if ((n = (p->linep - t) - (e - s)) > 0) | ^ excc.c: In function 'exopname': extoken.c:25:28: warning: "_BLD_DEBUG" is not defined, evaluates to 0 [-Wundef] 25 | #if !defined(TRACE_lex) && _BLD_DEBUG | ^~~~~~~~~~ extoken.c:29:5: warning: "TRACE_lex" is not defined, evaluates to 0 [-Wundef] 29 | #if TRACE_lex | ^~~~~~~~~ excc.c:45:9: warning: switch missing default case [-Wswitch-default] 45 | switch (op) | ^~~~~~ excc.c: In function 'print': excc.c:107:29: warning: declaration of 'expr' shadows a global declaration [-Wshadow] 107 | print(Excc_t* cc, Exnode_t* expr) | ~~~~~~~~~~^~~~ In file included from excc.c:25: ../../lib/expr/exlib.h:177:25: note: shadowed declaration is here 177 | extern Exstate_t expr; | ^~~~ In file included from ../../lib/expr/expr.h:33, from ../../lib/expr/exlib.h:126, from exexpr.c:18: exexpr.c: In function 'exexpr': In file included from extoken.c:20: extoken.c: In function 'lex': ../../lib/expr/exlib.h:134:123: warning: conversion from 'int' to 'char' may change value [-Wconversion] 134 | #define putcontext(p,c) (((p)->linep>=&(p)->line[sizeof((p)->line)]?(p)->linep=(p)->line,(p)->linewrap=1:0),*(p)->linep++=(c)) | ^ extoken.c:311:25: note: in expansion of macro 'putcontext' 311 | putcontext(ex, c); | ^~~~~~~~~~ ../../lib/cdt/cdt.h:264:50: warning: cast discards 'const' qualifier from pointer target type [-Wcast-qual] 264 | #define dtmatch(d,o) (*(_DT(d)->searchf))((d),(void*)(o),DT_MATCH) | ^ exexpr.c:31:38: note: in expansion of macro 'dtmatch' 31 | sym = name ? dtmatch(ex->symbols, name) : &ex->main; | ^~~~~~~ excc.c: In function 'scan': excc.c:141:28: warning: declaration of 'expr' shadows a global declaration [-Wshadow] 141 | scan(Excc_t* cc, Exnode_t* expr) | ~~~~~~~~~~^~~~ ../../lib/expr/exlib.h:177:25: note: shadowed declaration is here 177 | extern Exstate_t expr; | ^~~~ excc.c: In function 'gen': excc.c:175:27: warning: declaration of 'expr' shadows a global declaration [-Wshadow] 175 | gen(Excc_t* cc, Exnode_t* expr) | ~~~~~~~~~~^~~~ ../../lib/expr/exlib.h:177:25: note: shadowed declaration is here 177 | extern Exstate_t expr; | ^~~~ extoken.c: In function 'extoken_fn': extoken.c:351:41: warning: switch missing default case [-Wswitch-default] 351 | switch (lex(ex)) | ^~~~~~ extoken.c:343:42: warning: switch missing default case [-Wswitch-default] 343 | for (;;) switch (lex(ex)) | ^~~~~~ extoken.c:445:39: warning: switch missing default case [-Wswitch-default] 445 | if (q == '=') switch (c) | ^~~~~~ exeval.c: In function 'getdyn': exeval.c:168:79: warning: conversion from 'long int' to 'int' may change value [-Wconversion] 168 | b->value = exzero(exnode->data.variable.symbol->type); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~ exeval.c:171:56: warning: conversion from 'long int' to 'int' may change value [-Wconversion] 171 | v = exzero(exnode->data.variable.symbol->type); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~ excc.c:196:9: warning: switch missing default case [-Wswitch-default] 196 | switch (expr->op) | ^~~~~~ excc.c:538:17: warning: switch missing default case [-Wswitch-default] 538 | switch (expr->op) | ^~~~~~ extoken.c:553:41: warning: switch missing default case [-Wswitch-default] 553 | switch (c = lex(ex)) | ^~~~~~ excc.c: In function 'global': excc.c:631:75: warning: conversion from 'long int' to 'int' may change value [-Wconversion] 631 | sfprintf(cc->ccdisc->text, "static %s %s;\n", extype(sym->type), sym->name); | ~~~^~~~~~ excc.c: In function 'exccopen': excc.c:640:18: warning: declaration of 'expr' shadows a global declaration [-Wshadow] 640 | exccopen(Expr_t* expr, Exccdisc_t* disc) | ~~~~~~~~^~~~ ../../lib/expr/exlib.h:177:25: note: shadowed declaration is here 177 | extern Exstate_t expr; | ^~~~ extoken.c:618:59: warning: conversion to 'long long int' from 'long long unsigned int' may change the sign of the result [-Wsign-conversion] 618 | ex_lval.integer = strtoull(s, &e, b); | ^~~~~~~~ excc.c: In function 'exdump': excc.c:695:16: warning: declaration of 'expr' shadows a global declaration [-Wshadow] 695 | exdump(Expr_t* expr, Exnode_t* node, Sfio_t* sp) | ~~~~~~~~^~~~ ../../lib/expr/exlib.h:177:25: note: shadowed declaration is here 177 | extern Exstate_t expr; | ^~~~ exeval.c: In function 'prformat': exeval.c:289:9: warning: switch missing default case [-Wswitch-default] 289 | switch (dp->fmt) | ^~~~~~ exeval.c: In function 'print': exeval.c:398:81: warning: conversion from 'long long int' to 'int' may change value [-Wconversion] 398 | !(sp = ex->file[v.integer] = sfnew(NULL, NULL, SF_UNBOUND, v.integer, SF_READ|SF_WRITE)))) | ~^~~~~~~~ extoken.c:653:57: warning: conversion from 'long int' to 'int' may change value [-Wconversion] 653 | expr.statics += ex_lval.id->isstatic = expr.instatic; | ^~~~~~~ extoken.c:703:57: warning: declaration of 'b' shadows a previous local [-Wshadow] 703 | int b; | ^ extoken.c:327:25: note: shadowed declaration is here 327 | int b; | ^ extoken.c:726:49: warning: switch missing default case [-Wswitch-default] 726 | switch (lex(ex)) | ^~~~~~ extype.c: In function 'extype': exeval.c: In function 'scan': exeval.c:507:28: warning: declaration of 'expr' shadows a global declaration [-Wshadow] 507 | scan(Expr_t* ex, Exnode_t* expr, void* env, Sfio_t* sp) | ~~~~~~~~~~^~~~ In file included from exeval.c:25: ../../lib/expr/exlib.h:177:25: note: shadowed declaration is here 177 | extern Exstate_t expr; | ^~~~ extype.c:30:9: warning: switch missing default case [-Wswitch-default] 30 | switch (type) | ^~~~~~ exeval.c:524:48: warning: comparison of integer expressions of different signedness: 'long long int' and 'long unsigned int' [-Wsign-compare] 524 | if (v.integer < 0 || v.integer >= elementsof(ex->file) || (!(sp = ex->file[v.integer]) && !(sp = ex->file[v.integer] = sfnew(NULL, NULL, SF_UNBOUND, v.integer, SF_READ|SF_WRITE)))) | ^~ exeval.c:524:167: warning: conversion from 'long long int' to 'int' may change value [-Wconversion] 524 | if (v.integer < 0 || v.integer >= elementsof(ex->file) || (!(sp = ex->file[v.integer]) && !(sp = ex->file[v.integer] = sfnew(NULL, NULL, SF_UNBOUND, v.integer, SF_READ|SF_WRITE)))) | ~^~~~~~~~ extoken.c:795:41: warning: switch missing default case [-Wswitch-default] 795 | switch (po = c) | ^~~~~~ extoken.c:669:33: warning: switch missing default case [-Wswitch-default] 669 | switch (ex_lval.id->lex) | ^~~~~~ extoken.c:877:50: warning: conversion from 'long int' to 'int' may change value [-Wconversion] 877 | return ex_lval.id->lex; | ~~~~~~~~~~^~~~~ In file included from ../../lib/expr/exparse.y:181: ../../lib/expr/exgram.h: In function 'exstringOf': exeval.c: In function 'exsplit': exeval.c:855:33: warning: declaration of 'expr' shadows a global declaration [-Wshadow] 855 | exsplit(Expr_t * ex, Exnode_t * expr, void *env) | ~~~~~~~~~~~^~~~ ../../lib/expr/exlib.h:177:25: note: shadowed declaration is here 177 | extern Exstate_t expr; | ^~~~ ../../lib/expr/exgram.h:313:17: warning: switch missing default case [-Wswitch-default] 313 | switch (type) { | ^~~~~~ exeval.c: In function 'extokens': exeval.c:910:34: warning: declaration of 'expr' shadows a global declaration [-Wshadow] 910 | extokens(Expr_t * ex, Exnode_t * expr, void *env) | ~~~~~~~~~~~^~~~ ../../lib/expr/exlib.h:177:25: note: shadowed declaration is here 177 | extern Exstate_t expr; | ^~~~ ../../lib/expr/exgram.h: In function 'exprint': ../../lib/expr/exgram.h:357:29: warning: conversion from 'long int' to 'int' may change value [-Wconversion] 357 | pr = exnewnode(p, ex->index, 1, ex->type, args, NULL); | ~~^~~~~~~ ../../lib/expr/exgram.h:357:43: warning: conversion from 'long int' to 'int' may change value [-Wconversion] 357 | pr = exnewnode(p, ex->index, 1, ex->type, args, NULL); | ~~^~~~~~ ../../lib/expr/exgram.h: In function 'makeVar': ../../lib/expr/exgram.h:388:20: warning: conversion from 'long int' to 'int' may change value [-Wconversion] 388 | kind = sym->type; | ^~~ exeval.c: In function 'exsub': exeval.c:953:31: warning: declaration of 'expr' shadows a global declaration [-Wshadow] 953 | exsub(Expr_t * ex, Exnode_t * expr, void *env, bool global) | ~~~~~~~~~~~^~~~ ../../lib/expr/exlib.h:177:25: note: shadowed declaration is here 177 | extern Exstate_t expr; | ^~~~ exeval.c: In function 'exsubstr': exeval.c:1051:50: warning: declaration of 'expr' shadows a global declaration [-Wshadow] 1051 | static Extype_t exsubstr(Expr_t * ex, Exnode_t * expr, void *env) | ~~~~~~~~~~~^~~~ ../../lib/expr/exlib.h:177:25: note: shadowed declaration is here 177 | extern Exstate_t expr; | ^~~~ ../../lib/expr/exgram.h: In function 'excast': ../../lib/expr/exgram.h:506:58: warning: conversion from 'double' to 'long long int' may change value [-Wfloat-conversion] 506 | x->data.constant.value.integer = x->data.constant.value.floating; | ^ exeval.c:1060:15: warning: conversion from 'size_t' {aka 'long unsigned int'} to 'int' may change value [-Wconversion] 1060 | len = strlen(s.string); | ^~~~~~ ../../lib/expr/exgram.h:513:59: warning: conversion from 'long long int' to 'double' may change value [-Wconversion] 513 | x->data.constant.value.floating = x->data.constant.value.integer; | ^ ../../lib/expr/exgram.h:521:58: warning: conversion from 'double' to 'long long int' may change value [-Wfloat-conversion] 521 | x->data.constant.value.integer = strtod(s, &e); | ^~~~~~ exeval.c:1073:46: warning: conversion to 'size_t' {aka 'long unsigned int'} from 'long long int' may change the sign of the result [-Wsign-conversion] 1073 | v.string = vmalloc(ex->ve, l.integer + 1); | ~~~~~~~~~~^~~ exeval.c:1075:58: warning: conversion to 'size_t' {aka 'long unsigned int'} from 'long long int' may change the sign of the result [-Wsign-conversion] 1075 | strncpy(v.string, s.string + i.integer, l.integer); | ~^~~~~~~~ exeval.c: In function 'xConvert': exeval.c:1086:34: warning: declaration of 'expr' shadows a global declaration [-Wshadow] 1086 | xConvert(Expr_t * ex, Exnode_t * expr, int type, Extype_t v, | ~~~~~~~~~~~^~~~ ../../lib/expr/exlib.h:177:25: note: shadowed declaration is here 177 | extern Exstate_t expr; | ^~~~ ../../lib/expr/exgram.h: In function 'call': exeval.c: In function 'xPrint': ../../lib/expr/exgram.h:590:13: warning: conversion from 'long int' to 'int' may change value [-Wconversion] 590 | t = fun->type; | ^~~ exeval.c:1105:32: warning: declaration of 'expr' shadows a global declaration [-Wshadow] 1105 | xPrint(Expr_t * ex, Exnode_t * expr, Extype_t v, Exnode_t * tmp) | ~~~~~~~~~~~^~~~ ../../lib/expr/exlib.h:177:25: note: shadowed declaration is here 177 | extern Exstate_t expr; | ^~~~ exeval.c: In function 'eval': exeval.c:1122:28: warning: declaration of 'expr' shadows a global declaration [-Wshadow] 1122 | eval(Expr_t* ex, Exnode_t* expr, void* env) | ~~~~~~~~~~^~~~ ../../lib/expr/exlib.h:177:25: note: shadowed declaration is here 177 | extern Exstate_t expr; | ^~~~ exeval.c:1150:33: warning: conversion from 'long long int' to 'int' may change value [-Wconversion] 1150 | ex->loopcount = v.integer; | ^ ../../lib/expr/exgram.h: In function 'preprint': ../../lib/expr/exgram.h:677:47: warning: comparison of integer expressions of different signedness: 'int' and 'long unsigned int' [-Wsign-compare] 677 | if (i >= elementsof(x->param)) | ^~ In file included from ../../lib/expr/exlib.h:129, from exopen.c:24: exopen.c: In function 'exopen': exeval.c:1314:68: warning: comparing floating-point with '==' or '!=' is unsafe [-Wfloat-equal] 1314 | if ((*t)->floating == v.floating) | ^~ ../../lib/ast/sfstr.h:23:51: warning: unsigned conversion from 'int' to 'size_t' {aka 'long unsigned int'} changes value from '-1' to '18446744073709551615' [-Wsign-conversion] 23 | #define sfstropen() sfnew((Sfio_t*)0,(char*)0,-1,-1,SF_WRITE|SF_STRING) | ^~ exopen.c:41:30: note: in expansion of macro 'sfstropen' 41 | !(program->tmp = sfstropen()) || | ^~~~~~~~~ exeval.c:1299:41: warning: switch missing default case [-Wswitch-default] 1299 | switch ((int)i.integer) | ^~~~~~ ../../lib/expr/exgram.h:773:25: warning: switch missing default case [-Wswitch-default] 773 | switch (t) | ^~~~~~ ../../lib/expr/exgram.h: In function 'expush': ../../lib/expr/exgram.h:833:33: warning: cast discards 'const' qualifier from pointer target type [-Wcast-qual] 833 | if (!(in->bp = in->sp = (char*)sp)) | ^ ../../lib/expr/exgram.h:870:35: warning: cast discards 'const' qualifier from pointer target type [-Wcast-qual] 870 | error_info.file = (char*)name; | ^ exeval.c:1434:31: warning: comparison of integer expressions of different signedness: 'int' and 'long unsigned int' [-Wsign-compare] 1434 | if (n < elementsof(args)) | ^ exeval.c:1443:95: warning: comparison of integer expressions of different signedness: 'int' and 'long unsigned int' [-Wsign-compare] 1443 | for (n = 0, a = expr->data.call.procedure->value->data.procedure.args; a && n < elementsof(save); a = a->data.operand.right) | ^ exeval.c:1450:95: warning: comparison of integer expressions of different signedness: 'int' and 'long unsigned int' [-Wsign-compare] 1450 | for (n = 0, a = expr->data.call.procedure->value->data.procedure.args; a && n < elementsof(save); a = a->data.operand.right) | ^ exeval.c:1455:59: warning: comparison of integer expressions of different signedness: 'int' and 'long unsigned int' [-Wsign-compare] 1455 | for (x = expr->data.operand.right; x && n < elementsof(args); x = x->data.operand.right) | ^ exeval.c:1464:59: warning: comparison of integer expressions of different signedness: 'int' and 'long unsigned int' [-Wsign-compare] 1464 | for (x = expr->data.operand.right; x && n < elementsof(args); x = x->data.operand.right) | ^ In file included from ../../lib/expr/exlib.h:129: ../../lib/ast/sfstr.h:23:51: warning: unsigned conversion from 'int' to 'size_t' {aka 'long unsigned int'} changes value from '-1' to '18446744073709551615' [-Wsign-conversion] 23 | #define sfstropen() sfnew((Sfio_t*)0,(char*)0,-1,-1,SF_WRITE|SF_STRING) | ^~ exeval.c:1502:34: note: in expansion of macro 'sfstropen' 1502 | Sfio_t *buffer = sfstropen(); | ^~~~~~~~~ exeval.c:1549:56: warning: comparing floating-point with '==' or '!=' is unsafe [-Wfloat-equal] 1549 | if (r.floating == 0.0) | ^~ exeval.c:1555:58: warning: conversion from 'double' to 'long long int' may change value [-Wfloat-conversion] 1555 | if ((r.integer = r.floating) == 0) | ^ exeval.c:1558:62: warning: conversion from 'long long int' to 'double' may change value [-Wconversion] 1558 | v.floating = (Sflong_t)v.floating % r.integer; | ^ exeval.c:1570:54: warning: conversion from 'long long int' to 'double' may change value [-Wconversion] 1570 | v.floating = (Sflong_t)v.floating << (Sflong_t)r.floating; | ^ exeval.c:1576:54: warning: conversion from 'long long unsigned int' to 'double' may change value [-Wconversion] 1576 | v.floating = (Sfulong_t)v.floating >> (Sflong_t)r.floating; | ^ exeval.c:1621:53: warning: conversion to 'long long int' from 'long long unsigned int' may change the sign of the result [-Wsign-conversion] 1621 | v.integer = (Sfulong_t)v.integer >> r.integer; | ^ exeval.c:1145:9: warning: switch missing default case [-Wswitch-default] 1145 | switch (expr->op) | ^~~~~~ exeval.c:1700:37: warning: conversion from 'double' to 'long long int' may change value [-Wfloat-conversion] 1700 | v.integer = v.floating; | ^ exeval.c:1729:38: warning: conversion from 'long long int' to 'double' may change value [-Wconversion] 1729 | v.floating = ~(Sflong_t)v.floating; | ^ exeval.c:1753:40: warning: comparing floating-point with '==' or '!=' is unsafe [-Wfloat-equal] 1753 | if (r.floating == 0.0) | ^~ exeval.c:1759:42: warning: conversion from 'double' to 'long long int' may change value [-Wfloat-conversion] 1759 | if ((r.integer = r.floating) == 0) | ^ exeval.c:1762:46: warning: conversion from 'long long int' to 'double' may change value [-Wconversion] 1762 | v.floating = (Sflong_t)v.floating % r.integer; | ^ exeval.c:1771:48: warning: comparing floating-point with '==' or '!=' is unsafe [-Wfloat-equal] 1771 | v.integer = v.floating == r.floating; | ^~ exeval.c:1774:48: warning: comparing floating-point with '==' or '!=' is unsafe [-Wfloat-equal] 1774 | v.integer = v.floating != r.floating; | ^~ exeval.c:1697:17: warning: switch missing default case [-Wswitch-default] 1697 | switch (expr->op) | ^~~~~~ ../../lib/expr/exparse.y: In function 'ex_parse': ../../lib/expr/exparse.y:220:126: warning: conversion from 'long int' to 'int' may change value [-Wconversion] 220 | expr.procedure = $1->value = exnewnode(expr.program, PROCEDURE, 1, $1->type, NULL, NULL); | ~~~~~~~~~~ ^ exeval.c:1822:17: warning: switch missing default case [-Wswitch-default] 1822 | switch (expr->op) | ^~~~~~ ../../lib/expr/exparse.y:249:121: warning: conversion from 'long int' to 'int' may change value [-Wconversion] 249 | $1->value->data.operand.right = excast(expr.program, $4, $1->type, NULL, 0); | ^ ../../lib/expr/exparse.y:280:67: warning: conversion from 'long long int' to 'int' may change value [-Wconversion] 280 | | static {expr.instatic=$1;} DECLARE {expr.declare=$3->type;} dcl_list ';' | ^ ../../lib/expr/exparse.y:280:94: warning: conversion from 'long int' to 'int' may change value [-Wconversion] 280 | | static {expr.instatic=$1;} DECLARE {expr.declare=$3->type;} dcl_list ';' | ^ exeval.c:1847:46: warning: conversion from 'long long unsigned int' to 'double' may change value [-Wconversion] 1847 | v.floating = (Sfulong_t)v.integer; | ^ ../../lib/expr/exparse.y:293:78: warning: conversion from 'long int' to 'int' may change value [-Wconversion] 293 | $$ = exnewnode(expr.program, $1->index, 1, INTEGER, $3, exnewnode(expr.program, ':', 1, $5 ? $5->type : 0, $5, $6)); | ~~~~~~~~~~~~~~^~~~~~~ exeval.c:1849:46: warning: conversion from 'long long int' to 'double' may change value [-Wconversion] 1849 | v.floating = v.integer; | ^ ../../lib/expr/exparse.y:319:78: warning: conversion from 'long int' to 'int' may change value [-Wconversion] 319 | $$ = exnewnode(expr.program, $1->index, 1, INTEGER, $5, exnewnode(expr.program, ';', 1, 0, $7, $9)); | ~~~~~~~~~~~~~~^~~~~~~ ../../lib/expr/exparse.y:350:94: warning: conversion from 'long int' to 'int' may change value [-Wconversion] 350 | $3->name, extypename(expr.program, $3->index_type),extypename(expr.program, $5->type)); | ~~~~~~~~~~~~~~^~~~~~~~~~~~ exeval.c:1934:37: warning: conversion to 'long long int' from 'long long unsigned int' may change the sign of the result [-Wsign-conversion] 1934 | v.integer = (Sfulong_t)v.integer >> (Sflong_t)r.integer; | ^ ../../lib/expr/exparse.y:363:78: warning: conversion from 'long int' to 'int' may change value [-Wconversion] 363 | $$ = exnewnode(expr.program, $1->index, 1, INTEGER, $3, exnewnode(expr.program, ';', 1, 0, NULL, $5)); | ~~~~~~~~~~~~~~^~~~~~~ ../../lib/expr/exparse.y:369:78: warning: conversion from 'long int' to 'int' may change value [-Wconversion] 369 | $$ = exnewnode(expr.program, $1->index, 1, INTEGER, $3, exnewnode(expr.program, DEFAULT, 1, 0, sw->defcase, sw->firstcase)); | ~~~~~~~~~~~~~~^~~~~~~ exeval.c:1840:17: warning: switch missing default case [-Wswitch-default] 1840 | switch (expr->op) | ^~~~~~ ../../lib/expr/exparse.y:386:78: warning: conversion from 'long int' to 'int' may change value [-Wconversion] 386 | $$ = exnewnode(expr.program, $1->index, 1, INTEGER, $2, NULL); | ~~~~~~~~~~~~~~^~~~~~~ In file included from ../../lib/expr/exparse.y:42: ../../lib/ast/ast.h:54:94: warning: conversion to 'long unsigned int' from 'int' may change the sign of the result [-Wsign-conversion] 54 | #define newof(p,t,n,x) ((p)?(t*)realloc((char*)(p),sizeof(t)*(n)+(x)):(t*)calloc(1,sizeof(t)*(n)+(x))) | ^ ../../lib/expr/exparse.y:427:42: note: in expansion of macro 'newof' 427 | if (!(sw->base = newof(0, Extype_t*, n, 0))) | ^~~~~ ../../lib/expr/exparse.y:451:37: warning: conversion from 'long int' to 'int' may change value [-Wconversion] 451 | n = sw->cur - sw->base; | ^~ exeval.c:1951:17: warning: switch missing default case [-Wswitch-default] 1951 | switch (expr->op) | ^~~~~~ In file included from ../../lib/expr/exlib.h:126, from ../../lib/expr/exgram.h:30: ../../lib/expr/exparse.y:453:100: warning: conversion to 'long unsigned int' from 'int' may change the sign of the result [-Wsign-conversion] 453 | $$->data.select.constant = exalloc(expr.program, (n + 1) * sizeof(Extype_t*)); | ^ ../../lib/expr/expr.h:91:51: note: in definition of macro 'exalloc' 91 | #define exalloc(p,n) vmalloc((p)->vm, (n)) | ^ ../../lib/expr/exparse.y:454:88: warning: conversion to 'long unsigned int' from 'int' may change the sign of the result [-Wsign-conversion] 454 | memcpy($$->data.select.constant, sw->base, n * sizeof(Extype_t*)); | ^ ../../lib/expr/exparse.y:480:37: warning: conversion from 'long int' to 'int' may change value [-Wconversion] 480 | n = expr.swstate->cur - expr.swstate->base; | ^~~~ exeval.c:2025:17: warning: switch missing default case [-Wswitch-default] 2025 | switch (expr->op) | ^~~~~~ ../../lib/ast/ast.h:54:62: warning: conversion to 'long unsigned int' from 'int' may change the sign of the result [-Wsign-conversion] 54 | #define newof(p,t,n,x) ((p)?(t*)realloc((char*)(p),sizeof(t)*(n)+(x)):(t*)calloc(1,sizeof(t)*(n)+(x))) | ^ ../../lib/expr/exparse.y:481:60: note: in expansion of macro 'newof' 481 | if (!(expr.swstate->base = newof(expr.swstate->base, Extype_t*, 2 * n, 0))) | ^~~~~ ../../lib/ast/ast.h:54:94: warning: conversion to 'long unsigned int' from 'int' may change the sign of the result [-Wsign-conversion] 54 | #define newof(p,t,n,x) ((p)?(t*)realloc((char*)(p),sizeof(t)*(n)+(x)):(t*)calloc(1,sizeof(t)*(n)+(x))) | ^ ../../lib/expr/exparse.y:481:60: note: in expansion of macro 'newof' 481 | if (!(expr.swstate->base = newof(expr.swstate->base, Extype_t*, 2 * n, 0))) | ^~~~~ exeval.c: In function 'exeval': exeval.c:2055:30: warning: declaration of 'expr' shadows a global declaration [-Wshadow] 2055 | exeval(Expr_t* ex, Exnode_t* expr, void* env) | ~~~~~~~~~~^~~~ ../../lib/expr/exlib.h:177:25: note: shadowed declaration is here 177 | extern Exstate_t expr; | ^~~~ ../../lib/expr/exparse.y:555:73: warning: conversion from 'long int' to 'int' may change value [-Wconversion] 555 | $4->type = $1->type; | ^ ../../lib/expr/exparse.y:556:159: warning: conversion from 'long int' to 'int' may change value [-Wconversion] 556 | $4->data.operand.right = excast(expr.program, $4->data.operand.right, $1->type, NULL, 0); | ^ ../../lib/expr/exparse.y:558:128: warning: conversion from 'long int' to 'int' may change value [-Wconversion] 558 | $4->data.operand.left = exnewnode(expr.program, DYNAMIC, 0, $1->type, NULL, NULL); | ~~~~~~~~~ ^ ../../lib/expr/exparse.y:563:98: warning: conversion from 'long int' to 'int' may change value [-Wconversion] 563 | $1->value->data.value = exzero($1->type); | ^ ../../lib/expr/exparse.y:601:160: warning: conversion from 'long int' to 'int' may change value [-Wconversion] 601 | $$ = ($4->type == $2->type) ? $4 : excast(expr.program, $4, $2->type, NULL, 0); | ^ exzero.c: In function 'exzero': exzero.c:29:9: warning: switch missing default case [-Wswitch-default] 29 | switch (type) | ^~~~~~ ../../lib/expr/exparse.y:829:90: warning: conversion from 'long int' to 'int' may change value [-Wconversion] 829 | $$ = exnewnode(expr.program, ARRAY, 1, T($1->type), call(0, $1, $3), $3); | ~~~~~~~~~~~~~~^~~~~~ ../../lib/expr/exparse.y:833:93: warning: conversion from 'long int' to 'int' may change value [-Wconversion] 833 | $$ = exnewnode(expr.program, FUNCTION, 1, T($1->type), call(0, $1, $3), $3); | ~~~~~~~~~~~~~~^~~~~~ ../../lib/expr/exparse.y:849:80: warning: conversion from 'long int' to 'int' may change value [-Wconversion] 849 | $$ = exnewsplit (expr.program, $1->index, $5, $3, NULL); | ~~~~~~~~~~~~~~^ ../../lib/expr/exparse.y:853:80: warning: conversion from 'long int' to 'int' may change value [-Wconversion] 853 | $$ = exnewsplit (expr.program, $1->index, $5, $3, $7); | ~~~~~~~~~~~~~ ^ ../../lib/expr/exparse.y:877:87: warning: conversion from 'long int' to 'int' may change value [-Wconversion] 877 | $$ = exnewnode(expr.program, CALL, 1, $1->type, NULL, $3); | ~~~~~~~~~~ ^ ../../lib/expr/exparse.y:886:78: warning: conversion from 'long int' to 'int' may change value [-Wconversion] 886 | $$ = exnewnode(expr.program, $1->index, 0, $1->type, NULL, NULL); | ~~~~~~~~~~~~~~^~~~~~~ ../../lib/expr/exparse.y:886:104: warning: conversion from 'long int' to 'int' may change value [-Wconversion] 886 | $$ = exnewnode(expr.program, $1->index, 0, $1->type, NULL, NULL); | ^ ../../lib/expr/exparse.y:893:33: warning: switch missing default case [-Wswitch-default] 893 | switch ($1->index) | ^~~~~~ ../../lib/expr/exparse.y:913:78: warning: conversion from 'long int' to 'int' may change value [-Wconversion] 913 | $$ = exnewnode(expr.program, $1->index, 0, $1->type, NULL, NULL); | ~~~~~~~~~~~~~~^~~~~~~ ../../lib/expr/exparse.y:913:104: warning: conversion from 'long int' to 'int' may change value [-Wconversion] 913 | $$ = exnewnode(expr.program, $1->index, 0, $1->type, NULL, NULL); | ^ ../../lib/expr/exparse.y:920:33: warning: switch missing default case [-Wswitch-default] 920 | switch ($1->index) | ^~~~~~ ../../lib/expr/exparse.y:987:92: warning: conversion from 'long int' to 'int' may change value [-Wconversion] 987 | $3->name, extypename(expr.program, $3->index_type),extypename(expr.program, $1->type)); | ~~~~~~~~~~~~~^~~~~~~~~~~~ ../../lib/expr/exparse.y:1008:90: warning: conversion from 'long int' to 'int' may change value [-Wconversion] 1008 | $$ = exnewnode(expr.program, CONSTANT, 0, $1->type, NULL, NULL); | ~~~~~~~~~~~~ ^ ../../lib/expr/exparse.y:1053:79: warning: conversion from 'long int' to 'int' may change value [-Wconversion] 1053 | n = exnewnode(expr.program, DYNAMIC, 0, $1->type, NULL, NULL); | ~~~~~~~~~~~~~~^~~~~~ ../../lib/expr/exparse.y:1061:110: warning: conversion from 'long int' to 'int' may change value [-Wconversion] 1061 | $1->name, extypename(expr.program, $1->index_type),extypename(expr.program, $2->type)); | ~~~~~~~~~~~~~~^~~~~~~~~~~~ ../../lib/expr/exparse.y:1163:57: warning: conversion from 'long int' to 'int' may change value [-Wconversion] 1163 | formal_item : DECLARE {expr.declare=$1->type;} name | ^ ../../lib/expr/exparse.y:1165:85: warning: conversion from 'long int' to 'int' may change value [-Wconversion] 1165 | $$ = exnewnode(expr.program, ID, 0, $1->type, NULL, NULL); | ~~~~~~~~~~~~ ^ exnospace.c: In function 'exnospace': exnospace.c:30:16: warning: cast discards 'const' qualifier from pointer target type [-Wcast-qual] 30 | return (char*)null; | ^ CCLD libexpr_C.la make[3]: Leaving directory '/build/graphviz/src/graphviz-4.0.0/lib/expr' Making all in common make[3]: Entering directory '/build/graphviz/src/graphviz-4.0.0/lib/common' python3 ../../lib/common/make_brewer_lib.py "../../lib/common/brewer_colors" "brewer_lib" python3 ../../lib/common/make_svgcolor_lib.py "../../lib/common/svgcolor_names" "svgcolor_lib" bison -y -Wno-yacc -dv ../../lib/common/htmlparse.y -o htmlparse.c ../../lib/common/htmlparse.y: warning: 2 shift/reduce conflicts [-Wconflicts-sr] ../../lib/common/htmlparse.y: note: rerun with option '-Wcounterexamples' to generate conflict counterexamples python3 ../../lib/common/make_colortbl.py brewer_lib svgcolor_lib \ ../../lib/common/color_names colortbl.h make all-am make[4]: Entering directory '/build/graphviz/src/graphviz-4.0.0/lib/common' CC colxlate.lo CC textspan.lo CC textspan_lut.lo CC globals.lo CC htmllex.lo CC htmlparse.lo CC arrows.lo CC ellipse.lo CC memory.lo CC args.lo CC input.lo CC htmltable.lo CC postproc.lo CC intset.lo CC pointset.lo CC routespl.lo In file included from ../../lib/common/render.h:33, from pointset.c:12: pointset.c: In function 'pointsOf': ../../lib/common/memory.h:20:38: warning: conversion to 'size_t' {aka 'long unsigned int'} from 'int' may change the sign of the result [-Wsign-conversion] 20 | #define N_NEW(n,t) (t*)gcalloc((n),sizeof(t)) | ^~~ pointset.c:120:18: note: in expansion of macro 'N_NEW' 120 | point *pts = N_NEW(n, point); | ^~~~~ In file included from ../../lib/common/render.h:33, from routespl.c:13: routespl.c: In function 'simpleSplineRoute': In file included from ../../lib/common/render.h:33, from ellipse.c:74: ellipse.c: In function 'moveTo': ../../lib/common/memory.h:25:62: warning: conversion to 'long unsigned int' from 'int' may change the sign of the result [-Wsign-conversion] 25 | #define ALLOC(size,ptr,type) (ptr? (type*)grealloc(ptr,(size)*sizeof(type)):(type*)gmalloc((size)*sizeof(type))) | ^ routespl.c:234:21: note: in expansion of macro 'ALLOC' 234 | edges = ALLOC(poly.pn, edges, Pedge_t); | ^~~~~ ../../lib/common/memory.h:25:98: warning: conversion to 'long unsigned int' from 'int' may change the sign of the result [-Wsign-conversion] 25 | #define ALLOC(size,ptr,type) (ptr? (type*)grealloc(ptr,(size)*sizeof(type)):(type*)gmalloc((size)*sizeof(type))) | ^ routespl.c:234:21: note: in expansion of macro 'ALLOC' 234 | edges = ALLOC(poly.pn, edges, Pedge_t); | ^~~~~ ../../lib/common/memory.h:20:38: warning: conversion to 'size_t' {aka 'long unsigned int'} from 'int' may change the sign of the result [-Wsign-conversion] 20 | #define N_NEW(n,t) (t*)gcalloc((n),sizeof(t)) | ^~~ ellipse.c:406:20: note: in expansion of macro 'N_NEW' 406 | polypath->ps = N_NEW(bufsize, pointf); | ^~~~~ routespl.c:247:28: warning: conversion to 'size_t' {aka 'long unsigned int'} from 'int' may change the sign of the result [-Wsign-conversion] 247 | pointf *ps = calloc(spl.pn, sizeof(ps[0])); | ~~~^~~ ellipse.c: In function 'curveTo': ellipse.c:418:54: warning: conversion to 'long unsigned int' from 'int' may change the sign of the result [-Wsign-conversion] 418 | polypath->ps = realloc(polypath->ps, bufsize * sizeof(pointf)); | ^ ellipse.c: In function 'endPath': ellipse.c:439:55: warning: conversion to 'long unsigned int' from 'int' may change the sign of the result [-Wsign-conversion] 439 | polypath->ps = realloc(polypath->ps, polypath->pn * sizeof(pointf)); | ^ routespl.c: In function '_routesplines': ../../lib/common/memory.h:25:62: warning: conversion to 'long unsigned int' from 'int' may change the sign of the result [-Wsign-conversion] 25 | #define ALLOC(size,ptr,type) (ptr? (type*)grealloc(ptr,(size)*sizeof(type)):(type*)gmalloc((size)*sizeof(type))) | ^ routespl.c:398:22: note: in expansion of macro 'ALLOC' 398 | polypoints = ALLOC(boxn * 8, polypoints, Ppoint_t); | ^~~~~ ../../lib/common/memory.h:25:98: warning: conversion to 'long unsigned int' from 'int' may change the sign of the result [-Wsign-conversion] 25 | #define ALLOC(size,ptr,type) (ptr? (type*)grealloc(ptr,(size)*sizeof(type)):(type*)gmalloc((size)*sizeof(type))) | ^ routespl.c:398:22: note: in expansion of macro 'ALLOC' 398 | polypoints = ALLOC(boxn * 8, polypoints, Ppoint_t); | ^~~~~ ../../lib/common/memory.h:25:62: warning: conversion to 'long unsigned int' from 'int' may change the sign of the result [-Wsign-conversion] 25 | #define ALLOC(size,ptr,type) (ptr? (type*)grealloc(ptr,(size)*sizeof(type)):(type*)gmalloc((size)*sizeof(type))) | ^ routespl.c:525:21: note: in expansion of macro 'ALLOC' 525 | edges = ALLOC(poly.pn, edges, Pedge_t); | ^~~~~ ../../lib/common/memory.h:25:98: warning: conversion to 'long unsigned int' from 'int' may change the sign of the result [-Wsign-conversion] 25 | #define ALLOC(size,ptr,type) (ptr? (type*)grealloc(ptr,(size)*sizeof(type)):(type*)gmalloc((size)*sizeof(type))) | ^ routespl.c:525:21: note: in expansion of macro 'ALLOC' 525 | edges = ALLOC(poly.pn, edges, Pedge_t); | ^~~~~ routespl.c:554:28: warning: conversion to 'size_t' {aka 'long unsigned int'} from 'int' may change the sign of the result [-Wsign-conversion] 554 | pointf *ps = calloc(spl.pn, sizeof(ps[0])); | ~~~^~~ routespl.c:580:32: warning: comparing floating-point with '==' or '!=' is unsafe [-Wfloat-equal] 580 | if (boxes[bi].LL.x == INT_MAX || boxes[bi].UR.x == INT_MIN) { | ^~ routespl.c:580:61: warning: comparing floating-point with '==' or '!=' is unsafe [-Wfloat-equal] 580 | if (boxes[bi].LL.x == INT_MAX || boxes[bi].UR.x == INT_MIN) { | ^~ routespl.c: In function 'checkpath': routespl.c:695:22: warning: conversion from 'double' to 'int' may change value [-Wfloat-conversion] 695 | xy = ba->UR.x, ba->UR.x = bb->LL.x, bb->LL.x = xy, l = 0; | ^~ routespl.c:697:22: warning: conversion from 'double' to 'int' may change value [-Wfloat-conversion] 697 | xy = ba->LL.x, ba->LL.x = bb->UR.x, bb->UR.x = xy, r = 0; | ^~ routespl.c:699:22: warning: conversion from 'double' to 'int' may change value [-Wfloat-conversion] 699 | xy = ba->UR.y, ba->UR.y = bb->LL.y, bb->LL.y = xy, d = 0; | ^~ routespl.c:701:22: warning: conversion from 'double' to 'int' may change value [-Wfloat-conversion] 701 | xy = ba->LL.y, ba->LL.y = bb->UR.y, bb->UR.y = xy, u = 0; | ^~ routespl.c:704:26: warning: conversion from 'double' to 'int' may change value [-Wfloat-conversion] 704 | xy = (ba->UR.x + bb->LL.x) / 2.0 + 0.5, ba->UR.x = | ^ routespl.c:707:26: warning: conversion from 'double' to 'int' may change value [-Wfloat-conversion] 707 | xy = (ba->LL.x + bb->UR.x) / 2.0 + 0.5, ba->LL.x = | ^ routespl.c:710:26: warning: conversion from 'double' to 'int' may change value [-Wfloat-conversion] 710 | xy = (ba->UR.y + bb->LL.y) / 2.0 + 0.5, ba->UR.y = | ^ routespl.c:713:26: warning: conversion from 'double' to 'int' may change value [-Wfloat-conversion] 713 | xy = (ba->LL.y + bb->UR.y) / 2.0 + 0.5, ba->LL.y = | ^ routespl.c:718:34: warning: conversion from 'double' to 'int' may change value [-Wfloat-conversion] 718 | xoverlap = overlap(ba->LL.x, ba->UR.x, bb->LL.x, bb->UR.x); | ~~~~~~^~ routespl.c:718:44: warning: conversion from 'double' to 'int' may change value [-Wfloat-conversion] 718 | xoverlap = overlap(ba->LL.x, ba->UR.x, bb->LL.x, bb->UR.x); | ~~~~~~^~ routespl.c:718:54: warning: conversion from 'double' to 'int' may change value [-Wfloat-conversion] 718 | xoverlap = overlap(ba->LL.x, ba->UR.x, bb->LL.x, bb->UR.x); | ~~~~~~^~ routespl.c:718:64: warning: conversion from 'double' to 'int' may change value [-Wfloat-conversion] 718 | xoverlap = overlap(ba->LL.x, ba->UR.x, bb->LL.x, bb->UR.x); | ~~~~~~^~ routespl.c:719:34: warning: conversion from 'double' to 'int' may change value [-Wfloat-conversion] 719 | yoverlap = overlap(ba->LL.y, ba->UR.y, bb->LL.y, bb->UR.y); | ~~~~~~^~ routespl.c:719:44: warning: conversion from 'double' to 'int' may change value [-Wfloat-conversion] 719 | yoverlap = overlap(ba->LL.y, ba->UR.y, bb->LL.y, bb->UR.y); | ~~~~~~^~ routespl.c:719:54: warning: conversion from 'double' to 'int' may change value [-Wfloat-conversion] 719 | yoverlap = overlap(ba->LL.y, ba->UR.y, bb->LL.y, bb->UR.y); | ~~~~~~^~ routespl.c:719:64: warning: conversion from 'double' to 'int' may change value [-Wfloat-conversion] 719 | yoverlap = overlap(ba->LL.y, ba->UR.y, bb->LL.y, bb->UR.y); | ~~~~~~^~ routespl.c: In function 'get_cycle_centroid': routespl.c:1044:15: warning: conversion from 'size_t' {aka 'long unsigned int'} to 'double' may change value [-Wconversion] 1044 | sum.x /= cnt; | ^~ routespl.c:1045:11: warning: conversion from 'size_t' {aka 'long unsigned int'} to 'double' may change value [-Wconversion] 1045 | sum.y /= cnt; | ^~ routespl.c: In function 'bend': routespl.c:1065:18: warning: comparing floating-point with '==' or '!=' is unsafe [-Wfloat-equal] 1065 | if (magV == 0) return; /* if midpoint == centroid, don't divide by zero */ | ^~ routespl.c: In function 'makeStraightEdge': routespl.c:1088:14: warning: declaration of 'edges' shadows a global declaration [-Wshadow] 1088 | edge_t **edges = N_NEW(e_cnt, edge_t*); | ^~~~~ routespl.c:26:17: note: shadowed declaration is here 26 | static Pedge_t *edges; /* polygon edges passed to Proutespline */ | ^~~~~ ../../lib/common/memory.h:20:38: warning: conversion to 'size_t' {aka 'long unsigned int'} from 'int' may change the sign of the result [-Wsign-conversion] 20 | #define N_NEW(n,t) (t*)gcalloc((n),sizeof(t)) | ^~~ routespl.c:1088:22: note: in expansion of macro 'N_NEW' 1088 | edge_t **edges = N_NEW(e_cnt, edge_t*); | ^~~~~ routespl.c: In function 'makeStraightEdges': routespl.c:1099:41: warning: declaration of 'edges' shadows a global declaration [-Wshadow] 1099 | makeStraightEdges(graph_t * g, edge_t** edges, int e_cnt, int et, splineInfo* sinfo) | ~~~~~~~~~^~~~~ routespl.c:26:17: note: shadowed declaration is here 26 | static Pedge_t *edges; /* polygon edges passed to Proutespline */ | ^~~~~ input.c: In function 'dotneato_basename': input.c:131:39: warning: declaration of 'path' shadows a global declaration [-Wshadow] 131 | static char* dotneato_basename (char* path) | ~~~~~~^~~~ In file included from ../../lib/common/render.h:29, from input.c:12: ../../lib/common/types.h:99:7: note: shadowed declaration is here 99 | } path; | ^~~~ In file included from ../../lib/common/render.h:33: input.c: In function 'use_library': ../../lib/common/memory.h:25:62: warning: conversion to 'long unsigned int' from 'int' may change the sign of the result [-Wsign-conversion] 25 | #define ALLOC(size,ptr,type) (ptr? (type*)grealloc(ptr,(size)*sizeof(type)):(type*)gmalloc((size)*sizeof(type))) | ^ input.c:173:15: note: in expansion of macro 'ALLOC' 173 | Lib = ALLOC(cnt + 2, Lib, const char *); | ^~~~~ ../../lib/common/memory.h:25:98: warning: conversion to 'long unsigned int' from 'int' may change the sign of the result [-Wsign-conversion] 25 | #define ALLOC(size,ptr,type) (ptr? (type*)grealloc(ptr,(size)*sizeof(type)):(type*)gmalloc((size)*sizeof(type))) | ^ input.c:173:15: note: in expansion of macro 'ALLOC' 173 | Lib = ALLOC(cnt + 2, Lib, const char *); | ^~~~~ input.c: In function 'global_def': input.c:186:30: warning: conversion to 'size_t' {aka 'long unsigned int'} from 'long int' may change the sign of the result [-Wsign-conversion] 186 | agxbput_n (xb, dcl, p-dcl); | ~^~~~ input.c: In function 'dotneato_args_initialize': input.c:256:15: warning: conversion from 'int' to 'unsigned char' may change value [-Wconversion] 256 | Verbose = gvc->common.verbose; | ^~~ input.c:263:41: warning: conversion to 'size_t' {aka 'long unsigned int'} from 'int' may change the sign of the result [-Wsign-conversion] 263 | gvc->input_filenames = N_NEW(nfiles + 1, char *); ../../lib/common/memory.h:20:39: note: in definition of macro 'N_NEW' 20 | #define N_NEW(n,t) (t*)gcalloc((n),sizeof(t)) | ^ input.c:394:43: warning: comparing floating-point with '==' or '!=' is unsafe [-Wfloat-equal] 394 | else if (PSinputscale == 0) | ^~ input.c: In function 'graph_init': input.c:656:21: warning: conversion from 'int' to 'unsigned char' may change value [-Wconversion] 656 | GD_charset(g) = findCharset (g); | ^~~~~~~~~~~ input.c:706:23: warning: conversion from 'int' to 'unsigned char' may change value [-Wconversion] 706 | GD_showboxes(g) = late_int(g, agfindgraphattr(g, "showboxes"), 0, 0); | ^~~~~~~~ CC splines.lo colxlate.c: In function 'rgb2hsv': colxlate.c:102:15: warning: comparing floating-point with '==' or '!=' is unsafe [-Wfloat-equal] 102 | if (r == rgbmax) | ^~ colxlate.c:104:20: warning: comparing floating-point with '==' or '!=' is unsafe [-Wfloat-equal] 104 | else if (g == rgbmax) | ^~ colxlate.c:106:20: warning: comparing floating-point with '==' or '!=' is unsafe [-Wfloat-equal] 106 | else if (b == rgbmax) | ^~ colxlate.c: In function 'colorxlate': colxlate.c:287:32: warning: conversion from 'int' to 'unsigned char' may change value [-Wconversion] 287 | color->u.cmyk[0] = (int) C *255; | ^ colxlate.c:288:32: warning: conversion from 'int' to 'unsigned char' may change value [-Wconversion] 288 | color->u.cmyk[1] = (int) M *255; | ^ colxlate.c:289:32: warning: conversion from 'int' to 'unsigned char' may change value [-Wconversion] 289 | color->u.cmyk[2] = (int) Y *255; | ^ colxlate.c:290:32: warning: conversion from 'int' to 'unsigned char' may change value [-Wconversion] 290 | color->u.cmyk[3] = (int) K *255; | ^ colxlate.c:343:36: warning: conversion from 'int' to 'unsigned char' may change value [-Wconversion] 343 | color->u.rgba[0] = (int) (R * 255); | ^ colxlate.c:344:36: warning: conversion from 'int' to 'unsigned char' may change value [-Wconversion] 344 | color->u.rgba[1] = (int) (G * 255); | ^ colxlate.c:345:36: warning: conversion from 'int' to 'unsigned char' may change value [-Wconversion] 345 | color->u.rgba[2] = (int) (B * 255); | ^ colxlate.c:351:36: warning: conversion from 'int' to 'unsigned char' may change value [-Wconversion] 351 | color->u.cmyk[0] = (int) C *255; | ^ colxlate.c:352:36: warning: conversion from 'int' to 'unsigned char' may change value [-Wconversion] 352 | color->u.cmyk[1] = (int) M *255; | ^ colxlate.c:353:36: warning: conversion from 'int' to 'unsigned char' may change value [-Wconversion] 353 | color->u.cmyk[2] = (int) Y *255; | ^ colxlate.c:354:36: warning: conversion from 'int' to 'unsigned char' may change value [-Wconversion] 354 | color->u.cmyk[3] = (int) K *255; | ^ colxlate.c:408:32: warning: conversion from 'int' to 'unsigned char' may change value [-Wconversion] 408 | color->u.cmyk[0] = (int) C * 255; | ^ colxlate.c:409:32: warning: conversion from 'int' to 'unsigned char' may change value [-Wconversion] 409 | color->u.cmyk[1] = (int) M * 255; | ^ colxlate.c:410:32: warning: conversion from 'int' to 'unsigned char' may change value [-Wconversion] 410 | color->u.cmyk[2] = (int) Y * 255; | ^ colxlate.c:411:32: warning: conversion from 'int' to 'unsigned char' may change value [-Wconversion] 411 | color->u.cmyk[3] = (int) K * 255; | ^ htmltable.c: In function 'doBorder': ../../lib/common/htmlparse.y: In function 'appendFLineList': htmltable.c:269:9: warning: switch missing default case [-Wswitch-default] 269 | switch (sides) { | ^~~~~~ ../../lib/common/htmlparse.y:192:19: warning: conversion from 'int' to 'char' may change value [-Wconversion] 192 | ln->lp.just = v; | ^ ../../lib/common/htmlparse.y:195:25: warning: conversion from 'int' to 'short int' may change value [-Wconversion] 195 | ln->lp.nitems = cnt; | ^~~ In file included from ../../lib/common/render.h:33, from ../../lib/common/htmlparse.y:21: ../../lib/common/memory.h:20:38: warning: conversion to 'size_t' {aka 'long unsigned int'} from 'int' may change the sign of the result [-Wsign-conversion] 20 | #define N_NEW(n,t) (t*)gcalloc((n),sizeof(t)) | ^~~ ../../lib/common/htmlparse.y:196:24: note: in expansion of macro 'N_NEW' 196 | ln->lp.items = N_NEW(cnt, textspan_t); | ^~~~~ ../../lib/common/htmlparse.y: In function 'mkText': ../../lib/common/htmlparse.y:231:19: warning: conversion from 'int' to 'short int' may change value [-Wconversion] 231 | hft->nspans = cnt; | ^~~ ../../lib/common/memory.h:20:38: warning: conversion to 'size_t' {aka 'long unsigned int'} from 'int' may change the sign of the result [-Wsign-conversion] 20 | #define N_NEW(n,t) (t*)gcalloc((n),sizeof(t)) | ^~~ ../../lib/common/htmlparse.y:235:22: note: in expansion of macro 'N_NEW' 235 | hft->spans = N_NEW(cnt,htextspan_t); | ^~~~~ htmltable.c: In function 'emit_html_rules': htmltable.c:476:20: warning: conversion from 'int' to 'unsigned char' may change value [-Wconversion] 476 | base = cp->parent->data.border + cp->parent->data.space / 2; | ^~ htmltable.c:480:20: warning: conversion from 'int' to 'unsigned char' may change value [-Wconversion] 480 | base = cp->parent->data.border + cp->parent->data.space / 2; | ^~ htmltable.c:494:20: warning: conversion from 'int' to 'unsigned char' may change value [-Wconversion] 494 | base = cp->parent->data.border + cp->parent->data.space / 2; | ^~ htmltable.c:500:25: warning: conversion from 'double' to 'unsigned char' may change value [-Wfloat-conversion] 500 | base += (cp->parent->data.box.UR.x + pos.x) - (pts.UR.x + cp->parent->data.space / 2); | ^ htmltable.c:504:20: warning: conversion from 'int' to 'unsigned char' may change value [-Wconversion] 504 | base = cp->parent->data.border + cp->parent->data.space / 2; | ^~ htmltable.c:511:25: warning: conversion from 'double' to 'unsigned char' may change value [-Wfloat-conversion] 511 | base += (cp->parent->data.box.UR.x + pos.x) - (pts.UR.x + cp->parent->data.space / 2); | ^ htmllex.c: In function 'doAttrs': htmllex.c:558:35: warning: conversion to 'size_t' {aka 'long unsigned int'} from 'int' may change the sign of the result [-Wsign-conversion] 558 | ip = bsearch(&key, items, nel, ISIZE, (bcmpfn) icmp); | ^~~ htmltable.c: In function 'allocObj': htmltable.c:694:5: warning: switch missing default case [-Wswitch-default] 694 | switch (obj->type) { | ^~~~~~ htmltable.c: In function 'heightOfLbl': htmltable.c:730:5: warning: switch missing default case [-Wswitch-default] 730 | switch (lp->kind) { | ^~~~~~ htmllex.c: In function 'htmllineno': htmllex.c:903:12: warning: conversion from 'XML_Size' {aka 'long unsigned int'} to 'int' may change value [-Wconversion] 903 | return XML_GetCurrentLineNumber(state.parser); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ htmltable.c: In function 'size_html_txt': htmltable.c:983:24: warning: comparing floating-point with '==' or '!=' is unsafe [-Wfloat-equal] 983 | if (prev_fsize == -1) | ^~ htmltable.c:985:26: warning: comparing floating-point with '==' or '!=' is unsafe [-Wfloat-equal] 985 | else if (tf.size != prev_fsize) { | ^~ arrows.c: In function 'arrowOrthoClip': postproc.c: In function 'translate_drawing': arrows.c:349:17: warning: comparing floating-point with '==' or '!=' is unsafe [-Wfloat-equal] 349 | if (p.y == q.y) { /* horz segment */ | ^~ postproc.c:149:18: warning: comparing floating-point with '==' or '!=' is unsafe [-Wfloat-equal] 149 | bool shift = Offset.x || Offset.y; | ^~~~~~ postproc.c:149:27: warning: comparing floating-point with '==' or '!=' is unsafe [-Wfloat-equal] 149 | bool shift = Offset.x || Offset.y; | ^~ htmltable.c: In function 'size_html_cell': arrows.c:386:17: warning: comparing floating-point with '==' or '!=' is unsafe [-Wfloat-equal] 386 | if (p.y == q.y) { /* horz segment */ | ^~ htmltable.c:1125:31: warning: conversion to 'unsigned char' from 'signed char' may change the sign of the result [-Wsign-conversion] 1125 | cp->data.border = parent->cb; | ^~~~~~ arrows.c:410:17: warning: comparing floating-point with '==' or '!=' is unsafe [-Wfloat-equal] 410 | if (p.y == q.y) { /* horz segment */ | ^~ htmltable.c: In function 'processTbl': htmltable.c:1241:17: warning: conversion from 'int' to 'short unsigned int' may change value [-Wconversion] 1241 | c = findCol(ps, r, c, cellp); | ^~~~~~~ In file included from ../../lib/common/render.h:33, from htmltable.c:32: htmltable.c: In function 'sizeLinearArray': htmltable.c:1280:34: warning: conversion to 'size_t' {aka 'long unsigned int'} from 'int' may change the sign of the result [-Wsign-conversion] 1280 | tbl->heights = N_NEW(tbl->rc + 1, int); ../../lib/common/memory.h:20:39: note: in definition of macro 'N_NEW' 20 | #define N_NEW(n,t) (t*)gcalloc((n),sizeof(t)) | ^ htmltable.c:1281:33: warning: conversion to 'size_t' {aka 'long unsigned int'} from 'int' may change the sign of the result [-Wsign-conversion] 1281 | tbl->widths = N_NEW(tbl->cc + 1, int); ../../lib/common/memory.h:20:39: note: in definition of macro 'N_NEW' 20 | #define N_NEW(n,t) (t*)gcalloc((n),sizeof(t)) | ^ htmltable.c:1286:18: warning: conversion from 'double' to 'int' may change value [-Wfloat-conversion] 1286 | ht = cp->data.box.UR.y; | ^~ htmltable.c:1266:22: warning: conversion from 'double' to 'int' may change value [-Wfloat-conversion] 1266 | #define SPLIT(x,n,s) (((x) - ((s)-1)*((n)-1)) / (n)) | ^ htmltable.c:1288:18: note: in expansion of macro 'SPLIT' 1288 | ht = SPLIT(cp->data.box.UR.y, cp->rspan, tbl->data.space); | ^~~~~ htmltable.c:1292:18: warning: conversion from 'double' to 'int' may change value [-Wfloat-conversion] 1292 | wd = cp->data.box.UR.x; | ^~ htmltable.c:1266:22: warning: conversion from 'double' to 'int' may change value [-Wfloat-conversion] 1266 | #define SPLIT(x,n,s) (((x) - ((s)-1)*((n)-1)) / (n)) | ^ htmltable.c:1294:18: note: in expansion of macro 'SPLIT' 1294 | wd = SPLIT(cp->data.box.UR.x, cp->cspan, tbl->data.space); | ^~~~~ htmltable.c: In function 'checkChain': ../../lib/common/memory.h:25:62: warning: conversion to 'long unsigned int' from 'int' may change the sign of the result [-Wsign-conversion] 25 | #define ALLOC(size,ptr,type) (ptr? (type*)grealloc(ptr,(size)*sizeof(type)):(type*)gmalloc((size)*sizeof(type))) | ^ ../../lib/common/types.h:258:44: note: in expansion of macro 'ALLOC' 258 | #define elist_append(item,L) do {L.list = ALLOC(L.size + 2,L.list,edge_t*); L.list[L.size++] = item; L.list[L.size] = NULL;} while(0) | ^~~~~ htmltable.c:1338:13: note: in expansion of macro 'elist_append' 1338 | elist_append(e, ND_out(t)); | ^~~~~~~~~~~~ ../../lib/common/memory.h:25:98: warning: conversion to 'long unsigned int' from 'int' may change the sign of the result [-Wsign-conversion] 25 | #define ALLOC(size,ptr,type) (ptr? (type*)grealloc(ptr,(size)*sizeof(type)):(type*)gmalloc((size)*sizeof(type))) | ^ ../../lib/common/types.h:258:44: note: in expansion of macro 'ALLOC' 258 | #define elist_append(item,L) do {L.list = ALLOC(L.size + 2,L.list,edge_t*); L.list[L.size++] = item; L.list[L.size] = NULL;} while(0) | ^~~~~ htmltable.c:1338:13: note: in expansion of macro 'elist_append' 1338 | elist_append(e, ND_out(t)); | ^~~~~~~~~~~~ ../../lib/common/memory.h:25:62: warning: conversion to 'long unsigned int' from 'int' may change the sign of the result [-Wsign-conversion] 25 | #define ALLOC(size,ptr,type) (ptr? (type*)grealloc(ptr,(size)*sizeof(type)):(type*)gmalloc((size)*sizeof(type))) | ^ ../../lib/common/types.h:258:44: note: in expansion of macro 'ALLOC' 258 | #define elist_append(item,L) do {L.list = ALLOC(L.size + 2,L.list,edge_t*); L.list[L.size++] = item; L.list[L.size] = NULL;} while(0) | ^~~~~ htmltable.c:1339:13: note: in expansion of macro 'elist_append' 1339 | elist_append(e, ND_in(h)); | ^~~~~~~~~~~~ ../../lib/common/memory.h:25:98: warning: conversion to 'long unsigned int' from 'int' may change the sign of the result [-Wsign-conversion] 25 | #define ALLOC(size,ptr,type) (ptr? (type*)grealloc(ptr,(size)*sizeof(type)):(type*)gmalloc((size)*sizeof(type))) | ^ ../../lib/common/types.h:258:44: note: in expansion of macro 'ALLOC' 258 | #define elist_append(item,L) do {L.list = ALLOC(L.size + 2,L.list,edge_t*); L.list[L.size++] = item; L.list[L.size] = NULL;} while(0) | ^~~~~ htmltable.c:1339:13: note: in expansion of macro 'elist_append' 1339 | elist_append(e, ND_in(h)); | ^~~~~~~~~~~~ In file included from ../../lib/common/render.h:33, from postproc.c:12: postproc.c: In function 'addXLabels': In file included from ../../lib/common/geom.h:16, from ../../lib/common/types.h:28, from ../../lib/common/render.h:29: htmltable.c: In function 'checkEdge': ../../lib/common/memory.h:20:38: warning: conversion to 'size_t' {aka 'long unsigned int'} from 'int' may change the sign of the result [-Wsign-conversion] 20 | #define N_NEW(n,t) (t*)gcalloc((n),sizeof(t)) | ^~~ postproc.c:476:19: note: in expansion of macro 'N_NEW' 476 | objp = objs = N_NEW(n_objs, object_t); | ^~~~~ ../../lib/common/arith.h:36:25: warning: conversion from 'int' to 'short unsigned int' may change value [-Wconversion] 36 | #define MAX(a,b) ((a)>(b)?(a):(b)) | ^ htmltable.c:1356:24: note: in expansion of macro 'MAX' 1356 | ED_minlen(e) = MAX(ED_minlen(e), sz); | ^~~ ../../lib/common/memory.h:20:38: warning: conversion to 'size_t' {aka 'long unsigned int'} from 'int' may change the sign of the result [-Wsign-conversion] 20 | #define N_NEW(n,t) (t*)gcalloc((n),sizeof(t)) | ^~~ postproc.c:477:18: note: in expansion of macro 'N_NEW' 477 | xlp = lbls = N_NEW(n_lbls, xlabel_t); | ^~~~~ htmltable.c:1360:24: warning: conversion from 'int' to 'short unsigned int' may change value [-Wconversion] 1360 | ED_minlen(e) = sz; | ^~ CC psusershape.lo ../../lib/common/memory.h:25:62: warning: conversion to 'long unsigned int' from 'int' may change the sign of the result [-Wsign-conversion] 25 | #define ALLOC(size,ptr,type) (ptr? (type*)grealloc(ptr,(size)*sizeof(type)):(type*)gmalloc((size)*sizeof(type))) | ^ ../../lib/common/types.h:258:44: note: in expansion of macro 'ALLOC' 258 | #define elist_append(item,L) do {L.list = ALLOC(L.size + 2,L.list,edge_t*); L.list[L.size++] = item; L.list[L.size] = NULL;} while(0) | ^~~~~ htmltable.c:1361:9: note: in expansion of macro 'elist_append' 1361 | elist_append(e, ND_out(t)); | ^~~~~~~~~~~~ ../../lib/common/memory.h:25:98: warning: conversion to 'long unsigned int' from 'int' may change the sign of the result [-Wsign-conversion] 25 | #define ALLOC(size,ptr,type) (ptr? (type*)grealloc(ptr,(size)*sizeof(type)):(type*)gmalloc((size)*sizeof(type))) | ^ ../../lib/common/types.h:258:44: note: in expansion of macro 'ALLOC' 258 | #define elist_append(item,L) do {L.list = ALLOC(L.size + 2,L.list,edge_t*); L.list[L.size++] = item; L.list[L.size] = NULL;} while(0) | ^~~~~ htmltable.c:1361:9: note: in expansion of macro 'elist_append' 1361 | elist_append(e, ND_out(t)); | ^~~~~~~~~~~~ ../../lib/common/memory.h:25:62: warning: conversion to 'long unsigned int' from 'int' may change the sign of the result [-Wsign-conversion] 25 | #define ALLOC(size,ptr,type) (ptr? (type*)grealloc(ptr,(size)*sizeof(type)):(type*)gmalloc((size)*sizeof(type))) | ^ ../../lib/common/types.h:258:44: note: in expansion of macro 'ALLOC' 258 | #define elist_append(item,L) do {L.list = ALLOC(L.size + 2,L.list,edge_t*); L.list[L.size++] = item; L.list[L.size] = NULL;} while(0) | ^~~~~ htmltable.c:1362:9: note: in expansion of macro 'elist_append' 1362 | elist_append(e, ND_in(h)); | ^~~~~~~~~~~~ ../../lib/common/memory.h:25:98: warning: conversion to 'long unsigned int' from 'int' may change the sign of the result [-Wsign-conversion] 25 | #define ALLOC(size,ptr,type) (ptr? (type*)grealloc(ptr,(size)*sizeof(type)):(type*)gmalloc((size)*sizeof(type))) | ^ ../../lib/common/types.h:258:44: note: in expansion of macro 'ALLOC' 258 | #define elist_append(item,L) do {L.list = ALLOC(L.size + 2,L.list,edge_t*); L.list[L.size++] = item; L.list[L.size] = NULL;} while(0) | ^~~~~ htmltable.c:1362:9: note: in expansion of macro 'elist_append' 1362 | elist_append(e, ND_in(h)); | ^~~~~~~~~~~~ htmltable.c: In function 'makeGraphs': ../../lib/common/types.h:259:64: warning: conversion to 'size_t' {aka 'long unsigned int'} from 'int' may change the sign of the result [-Wsign-conversion] 259 | #define alloc_elist(n,L) do {L.size = 0; L.list = N_NEW(n + 1,edge_t*); } while (0) ../../lib/common/memory.h:20:39: note: in definition of macro 'N_NEW' 20 | #define N_NEW(n,t) (t*)gcalloc((n),sizeof(t)) | ^ htmltable.c:1390:9: note: in expansion of macro 'alloc_elist' 1390 | alloc_elist(tbl->rc, ND_in(t)); | ^~~~~~~~~~~ ../../lib/common/types.h:259:64: warning: conversion to 'size_t' {aka 'long unsigned int'} from 'int' may change the sign of the result [-Wsign-conversion] 259 | #define alloc_elist(n,L) do {L.size = 0; L.list = N_NEW(n + 1,edge_t*); } while (0) ../../lib/common/memory.h:20:39: note: in definition of macro 'N_NEW' 20 | #define N_NEW(n,t) (t*)gcalloc((n),sizeof(t)) | ^ htmltable.c:1391:9: note: in expansion of macro 'alloc_elist' 1391 | alloc_elist(tbl->rc, ND_out(t)); | ^~~~~~~~~~~ ../../lib/common/types.h:259:64: warning: conversion to 'size_t' {aka 'long unsigned int'} from 'int' may change the sign of the result [-Wsign-conversion] 259 | #define alloc_elist(n,L) do {L.size = 0; L.list = N_NEW(n + 1,edge_t*); } while (0) ../../lib/common/memory.h:20:39: note: in definition of macro 'N_NEW' 20 | #define N_NEW(n,t) (t*)gcalloc((n),sizeof(t)) | ^ htmltable.c:1404:9: note: in expansion of macro 'alloc_elist' 1404 | alloc_elist(tbl->cc, ND_in(t)); | ^~~~~~~~~~~ ../../lib/common/types.h:259:64: warning: conversion to 'size_t' {aka 'long unsigned int'} from 'int' may change the sign of the result [-Wsign-conversion] 259 | #define alloc_elist(n,L) do {L.size = 0; L.list = N_NEW(n + 1,edge_t*); } while (0) ../../lib/common/memory.h:20:39: note: in definition of macro 'N_NEW' 20 | #define N_NEW(n,t) (t*)gcalloc((n),sizeof(t)) | ^ htmltable.c:1405:9: note: in expansion of macro 'alloc_elist' 1405 | alloc_elist(tbl->cc, ND_out(t)); | ^~~~~~~~~~~ htmltable.c:1420:47: warning: conversion from 'double' to 'int' may change value [-Wfloat-conversion] 1420 | checkEdge (colg, t, h, cp->data.box.UR.x); | ~~~~~~~~~~~~~~~^~ htmltable.c:1426:47: warning: conversion from 'double' to 'int' may change value [-Wfloat-conversion] 1426 | checkEdge (rowg, t, h, cp->data.box.UR.y); | ~~~~~~~~~~~~~~~^~ htmltable.c: In function 'sizeArray': htmltable.c:1483:34: warning: conversion to 'size_t' {aka 'long unsigned int'} from 'int' may change the sign of the result [-Wsign-conversion] 1483 | tbl->heights = N_NEW(tbl->rc + 1, int); ../../lib/common/memory.h:20:39: note: in definition of macro 'N_NEW' 20 | #define N_NEW(n,t) (t*)gcalloc((n),sizeof(t)) | ^ htmltable.c:1484:33: warning: conversion to 'size_t' {aka 'long unsigned int'} from 'int' may change the sign of the result [-Wsign-conversion] 1484 | tbl->widths = N_NEW(tbl->cc + 1, int); ../../lib/common/memory.h:20:39: note: in definition of macro 'N_NEW' 20 | #define N_NEW(n,t) (t*)gcalloc((n),sizeof(t)) | ^ htmltable.c: In function 'pos_html_cell': htmltable.c:1571:22: warning: conversion from 'int' to 'unsigned char' may change value [-Wconversion] 1571 | cp->data.sides = sides; | ^~~~~ htmltable.c:1586:13: warning: switch missing default case [-Wswitch-default] 1586 | switch (cp->data.flags & HALIGN_MASK) { | ^~~~~~ htmltable.c:1598:13: warning: switch missing default case [-Wswitch-default] 1598 | switch (cp->data.flags & VALIGN_MASK) { | ^~~~~~ htmltable.c: In function 'pos_html_tbl': htmltable.c:1685:13: warning: conversion from 'double' to 'int' may change value [-Wfloat-conversion] 1685 | oldsz = tbl->data.box.UR.x; | ^~~ htmltable.c:1686:12: warning: conversion from 'double' to 'int' may change value [-Wfloat-conversion] 1686 | delx = (pos.UR.x - pos.LL.x) - oldsz; | ^ htmltable.c:1688:13: warning: conversion from 'double' to 'int' may change value [-Wfloat-conversion] 1688 | oldsz = tbl->data.box.UR.y; | ^~~ htmltable.c:1689:12: warning: conversion from 'double' to 'int' may change value [-Wfloat-conversion] 1689 | dely = (pos.UR.y - pos.LL.y) - oldsz; | ^ htmltable.c:1729:9: warning: conversion from 'double' to 'int' may change value [-Wfloat-conversion] 1729 | x = pos.LL.x + tbl->data.border + tbl->data.space; | ^~~ htmltable.c:1737:9: warning: conversion from 'double' to 'int' may change value [-Wfloat-conversion] 1737 | y = pos.UR.y - tbl->data.border - tbl->data.space; | ^~~ htmltable.c:1765:23: warning: conversion from 'int' to 'unsigned char' may change value [-Wconversion] 1765 | tbl->data.sides = sides; | ^~~~~ htmltable.c: In function 'nameOf': htmltable.c:1827:5: warning: switch missing default case [-Wswitch-default] 1827 | switch (agobjkind(obj)) { | ^~~~~~ htmltable.c: In function 'make_html_label': htmltable.c:1987:10: warning: declaration of 'box' shadows a global declaration [-Wshadow] 1987 | boxf box; | ^~~ ../../lib/common/geom.h:29:34: note: shadowed declaration is here 29 | typedef struct { point LL, UR; } box; | ^~~ htmltable.c:1994:5: warning: switch missing default case [-Wswitch-default] 1994 | switch (agobjkind(obj)) { | ^~~~~~ CC labels.lo CC timing.lo CC ns.lo CC shapes.lo CC utils.lo CC geom.lo CC taper.lo CC output.lo CC emit.lo CC xml.lo In file included from ../../lib/common/render.h:33, from splines.c:17: splines.c: In function 'new_spline': ../../lib/common/memory.h:25:62: warning: conversion to 'long unsigned int' from 'int' may change the sign of the result [-Wsign-conversion] 25 | #define ALLOC(size,ptr,type) (ptr? (type*)grealloc(ptr,(size)*sizeof(type)):(type*)gmalloc((size)*sizeof(type))) | ^ splines.c:223:23: note: in expansion of macro 'ALLOC' 223 | ED_spl(e)->list = ALLOC(ED_spl(e)->size + 1, ED_spl(e)->list, bezier); | ^~~~~ ../../lib/common/memory.h:25:98: warning: conversion to 'long unsigned int' from 'int' may change the sign of the result [-Wsign-conversion] 25 | #define ALLOC(size,ptr,type) (ptr? (type*)grealloc(ptr,(size)*sizeof(type)):(type*)gmalloc((size)*sizeof(type))) | ^ splines.c:223:23: note: in expansion of macro 'ALLOC' 223 | ED_spl(e)->list = ALLOC(ED_spl(e)->size + 1, ED_spl(e)->list, bezier); | ^~~~~ ../../lib/common/memory.h:20:38: warning: conversion to 'size_t' {aka 'long unsigned int'} from 'int' may change the sign of the result [-Wsign-conversion] 20 | #define N_NEW(n,t) (t*)gcalloc((n),sizeof(t)) | ^~~ splines.c:225:16: note: in expansion of macro 'N_NEW' 225 | rv->list = N_NEW(sz, pointf); | ^~~~~ splines.c: In function 'beginpath': splines.c:562:9: warning: switch missing default case [-Wswitch-default] 562 | switch (et) { | ^~~~~~ splines.c: In function 'endpath': splines.c:758:9: warning: switch missing default case [-Wswitch-default] 758 | switch (et) { | ^~~~~~ splines.c: In function 'selfRight': splines.c:1032:25: warning: comparing floating-point with '==' or '!=' is unsafe [-Wfloat-equal] 1032 | case 65: if(tp.y == hp.y) | ^~ splines.c: In function 'selfLeft': splines.c:1109:25: warning: comparing floating-point with '==' or '!=' is unsafe [-Wfloat-equal] 1109 | if(tp.y == hp.y) | ^~ timing.c: In function 'elapsed_sec': timing.c:24:83: warning: conversion from 'clock_t' {aka 'long int'} to 'double' may change value [-Wconversion] 24 | #define DIFF_IN_SECS(S,T) ((S.tms_utime + S.tms_stime - T.tms_utime - T.tms_stime)/(double)HZ) | ^ timing.c:52:10: note: in expansion of macro 'DIFF_IN_SECS' 52 | rv = DIFF_IN_SECS(S, T); | ^~~~~~~~~~~~ In file included from ../../lib/cgraph/cgraph.h:14, from ../../lib/common/types.h:32, from ../../lib/common/render.h:29, from psusershape.c:13: psusershape.c: In function 'user_init': ../../lib/cdt/cdt.h:264:50: warning: cast discards 'const' qualifier from pointer target type [-Wcast-qual] 264 | #define dtmatch(d,o) (*(_DT(d)->searchf))((d),(void*)(o),DT_MATCH) | ^ psusershape.c:47:10: note: in expansion of macro 'dtmatch' 47 | us = dtmatch(EPSF_contents, str); | ^~~~~~~ In file included from ../../lib/common/render.h:33, from labels.c:12: labels.c: In function 'storeline': labels.c:26:35: warning: conversion to 'size_t' {aka 'long unsigned int'} from 'int' may change the sign of the result [-Wsign-conversion] 26 | lp->u.txt.span = ZALLOC(oldsz + 1, lp->u.txt.span, textspan_t, oldsz); | ~~~~~~^~~ ../../lib/common/memory.h:27:63: note: in definition of macro 'ZALLOC' 27 | #define ZALLOC(size,ptr,type,osize) (ptr? (type*)zrealloc(ptr,size,sizeof(type),osize):(type*)zmalloc((size)*sizeof(type))) | ^~~~ labels.c:26:68: warning: conversion to 'size_t' {aka 'long unsigned int'} from 'int' may change the sign of the result [-Wsign-conversion] 26 | lp->u.txt.span = ZALLOC(oldsz + 1, lp->u.txt.span, textspan_t, oldsz); | ^~~~~ ../../lib/common/memory.h:27:81: note: in definition of macro 'ZALLOC' 27 | #define ZALLOC(size,ptr,type,osize) (ptr? (type*)zrealloc(ptr,size,sizeof(type),osize):(type*)zmalloc((size)*sizeof(type))) | ^~~~~ ../../lib/common/memory.h:27:109: warning: conversion to 'long unsigned int' from 'int' may change the sign of the result [-Wsign-conversion] 27 | #define ZALLOC(size,ptr,type,osize) (ptr? (type*)zrealloc(ptr,size,sizeof(type),osize):(type*)zmalloc((size)*sizeof(type))) | ^ labels.c:26:22: note: in expansion of macro 'ZALLOC' 26 | lp->u.txt.span = ZALLOC(oldsz + 1, lp->u.txt.span, textspan_t, oldsz); | ^~~~~~ labels.c: In function 'make_label': labels.c:121:5: warning: switch missing default case [-Wswitch-default] 121 | switch (agobjkind(obj)) { | ^~~~~~ labels.c:149:13: warning: switch missing default case [-Wswitch-default] 149 | switch (agobjkind(obj)) { | ^~~~~~ labels.c: In function 'strdup_and_subst_obj0': labels.c:301:5: warning: switch missing default case [-Wswitch-default] 301 | switch (agobjkind(obj)) { | ^~~~~~ shapes.c: In function 'quant': shapes.c:342:9: warning: conversion from 'double' to 'int' may change value [-Wfloat-conversion] 342 | i = val / q; | ^~~ shapes.c: In function 'isBox': shapes.c:404:82: warning: comparing floating-point with '==' or '!=' is unsafe [-Wfloat-equal] 404 | return p->sides == 4 && ROUND(p->orientation) % 90 == 0 && p->distortion == 0. && p->skew == 0.; | ^~ shapes.c:404:99: warning: comparing floating-point with '==' or '!=' is unsafe [-Wfloat-equal] 404 | return p->sides == 4 && ROUND(p->orientation) % 90 == 0 && p->distortion == 0. && p->skew == 0.; | ^~ In file included from ../../lib/common/render.h:33, from shapes.c:12: shapes.c: In function 'round_corners': shapes.c:552:25: warning: conversion to 'size_t' {aka 'long unsigned int'} from 'int' may change the sign of the result [-Wsign-conversion] 552 | B = N_NEW(4 * sides + 4, pointf); ../../lib/common/memory.h:20:39: note: in definition of macro 'N_NEW' 20 | #define N_NEW(n,t) (t*)gcalloc((n),sizeof(t)) | ^ In file included from ../../lib/common/render.h:33, from ns.c:16: ns.c: In function 'feasible_tree': ../../lib/common/memory.h:20:38: warning: conversion to 'size_t' {aka 'long unsigned int'} from 'int' may change the sign of the result [-Wsign-conversion] 20 | #define N_NEW(n,t) (t*)gcalloc((n),sizeof(t)) | ^~~ ns.c:508:10: note: in expansion of macro 'N_NEW' 508 | tree = N_NEW(N_nodes,subtree_t*); | ^~~~~ shapes.c:599:32: warning: conversion to 'size_t' {aka 'long unsigned int'} from 'int' may change the sign of the result [-Wsign-conversion] 599 | pts = N_GNEW(6 * sides + 2, pointf); ../../lib/common/memory.h:23:39: note: in definition of macro 'N_GNEW' 23 | #define N_GNEW(n,t) (t*)gcalloc((n),sizeof(t)) | ^ shapes.c:627:25: warning: conversion to 'size_t' {aka 'long unsigned int'} from 'int' may change the sign of the result [-Wsign-conversion] 627 | D = N_NEW(sides + 1, pointf); ../../lib/common/memory.h:20:39: note: in definition of macro 'N_NEW' 20 | #define N_NEW(n,t) (t*)gcalloc((n),sizeof(t)) | ^ geom.c: In function 'lineToBox': shapes.c:660:25: warning: conversion to 'size_t' {aka 'long unsigned int'} from 'int' may change the sign of the result [-Wsign-conversion] 660 | D = N_NEW(sides + 2, pointf); ../../lib/common/memory.h:20:39: note: in definition of macro 'N_NEW' 20 | #define N_NEW(n,t) (t*)gcalloc((n),sizeof(t)) | ^ shapes.c:693:25: warning: conversion to 'size_t' {aka 'long unsigned int'} from 'int' may change the sign of the result [-Wsign-conversion] 693 | D = N_NEW(sides + 3, pointf); ../../lib/common/memory.h:20:39: note: in definition of macro 'N_NEW' 20 | #define N_NEW(n,t) (t*)gcalloc((n),sizeof(t)) | ^ geom.c:68:13: warning: comparing floating-point with '==' or '!=' is unsafe [-Wfloat-equal] 68 | if (p.x == q.x) { | ^~ shapes.c:711:25: warning: conversion to 'size_t' {aka 'long unsigned int'} from 'int' may change the sign of the result [-Wsign-conversion] 711 | D = N_NEW(sides + 2, pointf); ../../lib/common/memory.h:20:39: note: in definition of macro 'N_NEW' 20 | #define N_NEW(n,t) (t*)gcalloc((n),sizeof(t)) | ^ geom.c:78:20: warning: comparing floating-point with '==' or '!=' is unsafe [-Wfloat-equal] 78 | } else if (p.y == q.y) { | ^~ shapes.c:749:25: warning: conversion to 'size_t' {aka 'long unsigned int'} from 'int' may change the sign of the result [-Wsign-conversion] 749 | D = N_NEW(sides + 8, pointf); ../../lib/common/memory.h:20:39: note: in definition of macro 'N_NEW' 20 | #define N_NEW(n,t) (t*)gcalloc((n),sizeof(t)) | ^ shapes.c:814:25: warning: conversion to 'size_t' {aka 'long unsigned int'} from 'int' may change the sign of the result [-Wsign-conversion] 814 | D = N_NEW(sides + 5, pointf); ../../lib/common/memory.h:20:39: note: in definition of macro 'N_NEW' 20 | #define N_NEW(n,t) (t*)gcalloc((n),sizeof(t)) | ^ ns.c: In function 'TB_balance': ns.c:701:27: warning: conversion to 'size_t' {aka 'long unsigned int'} from 'int' may change the sign of the result [-Wsign-conversion] 701 | nrank = N_NEW(Maxrank + 1, int); ../../lib/common/memory.h:20:39: note: in definition of macro 'N_NEW' 20 | #define N_NEW(n,t) (t*)gcalloc((n),sizeof(t)) | ^ shapes.c:860:25: warning: conversion to 'size_t' {aka 'long unsigned int'} from 'int' may change the sign of the result [-Wsign-conversion] 860 | D = N_NEW(sides + 1, pointf); ../../lib/common/memory.h:20:39: note: in definition of macro 'N_NEW' 20 | #define N_NEW(n,t) (t*)gcalloc((n),sizeof(t)) | ^ ns.c:721:36: warning: conversion to 'size_t' {aka 'long unsigned int'} from 'int' may change the sign of the result [-Wsign-conversion] 721 | qsort(Tree_node.list, Tree_node.size, sizeof(Tree_node.list[0]), | ~~~~~~~~~^~~~~ shapes.c:895:25: warning: conversion to 'size_t' {aka 'long unsigned int'} from 'int' may change the sign of the result [-Wsign-conversion] 895 | D = N_NEW(sides + 4, pointf); ../../lib/common/memory.h:20:39: note: in definition of macro 'N_NEW' 20 | #define N_NEW(n,t) (t*)gcalloc((n),sizeof(t)) | ^ shapes.c:942:25: warning: conversion to 'size_t' {aka 'long unsigned int'} from 'int' may change the sign of the result [-Wsign-conversion] 942 | D = N_NEW(sides + 2, pointf); ../../lib/common/memory.h:20:39: note: in definition of macro 'N_NEW' 20 | #define N_NEW(n,t) (t*)gcalloc((n),sizeof(t)) | ^ ns.c: In function 'init_graph': shapes.c:984:25: warning: conversion to 'size_t' {aka 'long unsigned int'} from 'int' may change the sign of the result [-Wsign-conversion] 984 | D = N_NEW(sides + 1, pointf); ../../lib/common/memory.h:20:39: note: in definition of macro 'N_NEW' 20 | #define N_NEW(n,t) (t*)gcalloc((n),sizeof(t)) | ^ ../../lib/common/memory.h:25:62: warning: conversion to 'long unsigned int' from 'int' may change the sign of the result [-Wsign-conversion] 25 | #define ALLOC(size,ptr,type) (ptr? (type*)grealloc(ptr,(size)*sizeof(type)):(type*)gmalloc((size)*sizeof(type))) | ^ ns.c:783:22: note: in expansion of macro 'ALLOC' 783 | Tree_node.list = ALLOC(N_nodes, Tree_node.list, node_t *); | ^~~~~ ../../lib/common/memory.h:25:98: warning: conversion to 'long unsigned int' from 'int' may change the sign of the result [-Wsign-conversion] 25 | #define ALLOC(size,ptr,type) (ptr? (type*)grealloc(ptr,(size)*sizeof(type)):(type*)gmalloc((size)*sizeof(type))) | ^ ns.c:783:22: note: in expansion of macro 'ALLOC' 783 | Tree_node.list = ALLOC(N_nodes, Tree_node.list, node_t *); | ^~~~~ shapes.c:1024:25: warning: conversion to 'size_t' {aka 'long unsigned int'} from 'int' may change the sign of the result [-Wsign-conversion] 1024 | D = N_NEW(sides + 4, pointf); ../../lib/common/memory.h:20:39: note: in definition of macro 'N_NEW' 20 | #define N_NEW(n,t) (t*)gcalloc((n),sizeof(t)) | ^ ../../lib/common/memory.h:25:62: warning: conversion to 'long unsigned int' from 'int' may change the sign of the result [-Wsign-conversion] 25 | #define ALLOC(size,ptr,type) (ptr? (type*)grealloc(ptr,(size)*sizeof(type)):(type*)gmalloc((size)*sizeof(type))) | ^ ns.c:785:22: note: in expansion of macro 'ALLOC' 785 | Tree_edge.list = ALLOC(N_nodes, Tree_edge.list, edge_t *); | ^~~~~ ../../lib/common/memory.h:25:98: warning: conversion to 'long unsigned int' from 'int' may change the sign of the result [-Wsign-conversion] 25 | #define ALLOC(size,ptr,type) (ptr? (type*)grealloc(ptr,(size)*sizeof(type)):(type*)gmalloc((size)*sizeof(type))) | ^ ns.c:785:22: note: in expansion of macro 'ALLOC' 785 | Tree_edge.list = ALLOC(N_nodes, Tree_edge.list, edge_t *); | ^~~~~ ns.c:799:38: warning: conversion to 'size_t' {aka 'long unsigned int'} from 'int' may change the sign of the result [-Wsign-conversion] 799 | ND_tree_in(n).list = N_NEW(i + 1, edge_t *); ../../lib/common/memory.h:20:39: note: in definition of macro 'N_NEW' 20 | #define N_NEW(n,t) (t*)gcalloc((n),sizeof(t)) | ^ ../../lib/common/memory.h:20:38: warning: conversion to 'size_t' {aka 'long unsigned int'} from 'int' may change the sign of the result [-Wsign-conversion] 20 | #define N_NEW(n,t) (t*)gcalloc((n),sizeof(t)) | ^~~ shapes.c:1077:13: note: in expansion of macro 'N_NEW' 1077 | D = N_NEW(sides, pointf); | ^~~~~ ns.c:802:39: warning: conversion to 'size_t' {aka 'long unsigned int'} from 'int' may change the sign of the result [-Wsign-conversion] 802 | ND_tree_out(n).list = N_NEW(i + 1, edge_t *); ../../lib/common/memory.h:20:39: note: in definition of macro 'N_NEW' 20 | #define N_NEW(n,t) (t*)gcalloc((n),sizeof(t)) | ^ ../../lib/common/memory.h:20:38: warning: conversion to 'size_t' {aka 'long unsigned int'} from 'int' may change the sign of the result [-Wsign-conversion] 20 | #define N_NEW(n,t) (t*)gcalloc((n),sizeof(t)) | ^~~ shapes.c:1090:13: note: in expansion of macro 'N_NEW' 1090 | D = N_NEW(sides, pointf); | ^~~~~ ../../lib/common/memory.h:20:38: warning: conversion to 'size_t' {aka 'long unsigned int'} from 'int' may change the sign of the result [-Wsign-conversion] 20 | #define N_NEW(n,t) (t*)gcalloc((n),sizeof(t)) | ^~~ shapes.c:1128:13: note: in expansion of macro 'N_NEW' 1128 | D = N_NEW(sides, pointf); | ^~~~~ ../../lib/common/memory.h:20:38: warning: conversion to 'size_t' {aka 'long unsigned int'} from 'int' may change the sign of the result [-Wsign-conversion] 20 | #define N_NEW(n,t) (t*)gcalloc((n),sizeof(t)) | ^~~ shapes.c:1141:13: note: in expansion of macro 'N_NEW' 1141 | D = N_NEW(sides, pointf); | ^~~~~ ../../lib/common/memory.h:20:38: warning: conversion to 'size_t' {aka 'long unsigned int'} from 'int' may change the sign of the result [-Wsign-conversion] 20 | #define N_NEW(n,t) (t*)gcalloc((n),sizeof(t)) | ^~~ shapes.c:1181:13: note: in expansion of macro 'N_NEW' 1181 | D = N_NEW(sides, pointf); | ^~~~~ ../../lib/common/memory.h:20:38: warning: conversion to 'size_t' {aka 'long unsigned int'} from 'int' may change the sign of the result [-Wsign-conversion] 20 | #define N_NEW(n,t) (t*)gcalloc((n),sizeof(t)) | ^~~ shapes.c:1194:13: note: in expansion of macro 'N_NEW' 1194 | D = N_NEW(sides, pointf); | ^~~~~ ../../lib/common/memory.h:20:38: warning: conversion to 'size_t' {aka 'long unsigned int'} from 'int' may change the sign of the result [-Wsign-conversion] 20 | #define N_NEW(n,t) (t*)gcalloc((n),sizeof(t)) | ^~~ shapes.c:1207:13: note: in expansion of macro 'N_NEW' 1207 | D = N_NEW(sides, pointf); | ^~~~~ ../../lib/common/memory.h:20:38: warning: conversion to 'size_t' {aka 'long unsigned int'} from 'int' may change the sign of the result [-Wsign-conversion] 20 | #define N_NEW(n,t) (t*)gcalloc((n),sizeof(t)) | ^~~ shapes.c:1220:13: note: in expansion of macro 'N_NEW' 1220 | D = N_NEW(sides, pointf); | ^~~~~ ../../lib/common/memory.h:20:38: warning: conversion to 'size_t' {aka 'long unsigned int'} from 'int' may change the sign of the result [-Wsign-conversion] 20 | #define N_NEW(n,t) (t*)gcalloc((n),sizeof(t)) | ^~~ shapes.c:1264:13: note: in expansion of macro 'N_NEW' 1264 | D = N_NEW(sides, pointf); | ^~~~~ ../../lib/common/memory.h:20:38: warning: conversion to 'size_t' {aka 'long unsigned int'} from 'int' may change the sign of the result [-Wsign-conversion] 20 | #define N_NEW(n,t) (t*)gcalloc((n),sizeof(t)) | ^~~ shapes.c:1277:13: note: in expansion of macro 'N_NEW' 1277 | D = N_NEW(sides, pointf); | ^~~~~ ../../lib/common/memory.h:20:38: warning: conversion to 'size_t' {aka 'long unsigned int'} from 'int' may change the sign of the result [-Wsign-conversion] 20 | #define N_NEW(n,t) (t*)gcalloc((n),sizeof(t)) | ^~~ shapes.c:1318:13: note: in expansion of macro 'N_NEW' 1318 | D = N_NEW(sides, pointf); | ^~~~~ ../../lib/common/memory.h:20:38: warning: conversion to 'size_t' {aka 'long unsigned int'} from 'int' may change the sign of the result [-Wsign-conversion] 20 | #define N_NEW(n,t) (t*)gcalloc((n),sizeof(t)) | ^~~ shapes.c:1365:13: note: in expansion of macro 'N_NEW' 1365 | D = N_NEW(sides, pointf); | ^~~~~ shapes.c:1417:25: warning: conversion to 'size_t' {aka 'long unsigned int'} from 'int' may change the sign of the result [-Wsign-conversion] 1417 | D = N_NEW(sides + 12, pointf); //12-sided x ../../lib/common/memory.h:20:39: note: in definition of macro 'N_NEW' 20 | #define N_NEW(n,t) (t*)gcalloc((n),sizeof(t)) | ^ shapes.c:1490:25: warning: conversion to 'size_t' {aka 'long unsigned int'} from 'int' may change the sign of the result [-Wsign-conversion] 1490 | D = N_NEW(sides + 4, pointf); //12-sided x ../../lib/common/memory.h:20:39: note: in definition of macro 'N_NEW' 20 | #define N_NEW(n,t) (t*)gcalloc((n),sizeof(t)) | ^ shapes.c:1548:25: warning: conversion to 'size_t' {aka 'long unsigned int'} from 'int' may change the sign of the result [-Wsign-conversion] 1548 | D = N_NEW(sides + 12, pointf); //12-sided x ../../lib/common/memory.h:20:39: note: in definition of macro 'N_NEW' 20 | #define N_NEW(n,t) (t*)gcalloc((n),sizeof(t)) | ^ shapes.c:1612:25: warning: conversion to 'size_t' {aka 'long unsigned int'} from 'int' may change the sign of the result [-Wsign-conversion] 1612 | D = N_NEW(sides + 4, pointf); //12-sided x ../../lib/common/memory.h:20:39: note: in definition of macro 'N_NEW' 20 | #define N_NEW(n,t) (t*)gcalloc((n),sizeof(t)) | ^ shapes.c:1664:25: warning: conversion to 'size_t' {aka 'long unsigned int'} from 'int' may change the sign of the result [-Wsign-conversion] 1664 | D = N_NEW(sides + 5, pointf); /*5 new points*/ ../../lib/common/memory.h:20:39: note: in definition of macro 'N_NEW' 20 | #define N_NEW(n,t) (t*)gcalloc((n),sizeof(t)) | ^ shapes.c:1704:25: warning: conversion to 'size_t' {aka 'long unsigned int'} from 'int' may change the sign of the result [-Wsign-conversion] 1704 | D = N_NEW(sides + 3, pointf); /*3 new points*/ ../../lib/common/memory.h:20:39: note: in definition of macro 'N_NEW' 20 | #define N_NEW(n,t) (t*)gcalloc((n),sizeof(t)) | ^ shapes.c:1738:25: warning: conversion to 'size_t' {aka 'long unsigned int'} from 'int' may change the sign of the result [-Wsign-conversion] 1738 | D = N_NEW(sides + 3, pointf); /*3 new points*/ ../../lib/common/memory.h:20:39: note: in definition of macro 'N_NEW' 20 | #define N_NEW(n,t) (t*)gcalloc((n),sizeof(t)) | ^ shapes.c:1774:25: warning: conversion to 'size_t' {aka 'long unsigned int'} from 'int' may change the sign of the result [-Wsign-conversion] 1774 | D = N_NEW(sides + 5, pointf); /*3 new points*/ ../../lib/common/memory.h:20:39: note: in definition of macro 'N_NEW' 20 | #define N_NEW(n,t) (t*)gcalloc((n),sizeof(t)) | ^ shapes.c:597:5: warning: switch missing default case [-Wswitch-default] 597 | switch (mode) { | ^~~~~~ shapes.c: In function 'poly_init': shapes.c:1969:35: warning: comparing floating-point with '==' or '!=' is unsafe [-Wfloat-equal] 1969 | if (sides <= 2 && (distortion != 0. || skew != 0.)) { | ^~ shapes.c:1969:49: warning: comparing floating-point with '==' or '!=' is unsafe [-Wfloat-equal] 1969 | if (sides <= 2 && (distortion != 0. || skew != 0.)) { | ^~ shapes.c:1981:28: warning: comparing floating-point with '==' or '!=' is unsafe [-Wfloat-equal] 1981 | && distortion == 0. && skew == 0.; | ^~ shapes.c:1981:42: warning: comparing floating-point with '==' or '!=' is unsafe [-Wfloat-equal] 1981 | && distortion == 0. && skew == 0.; | ^~ shapes.c:2069:31: warning: conversion to 'size_t' {aka 'long unsigned int'} from 'int' may change the sign of the result [-Wsign-conversion] 2069 | vertices = N_NEW(outp * sides, pointf); ../../lib/common/memory.h:20:39: note: in definition of macro 'N_NEW' 20 | #define N_NEW(n,t) (t*)gcalloc((n),sizeof(t)) | ^ shapes.c:2105:31: warning: conversion to 'size_t' {aka 'long unsigned int'} from 'int' may change the sign of the result [-Wsign-conversion] 2105 | vertices = N_NEW(outp * sides, pointf); ../../lib/common/memory.h:20:39: note: in definition of macro 'N_NEW' 20 | #define N_NEW(n,t) (t*)gcalloc((n),sizeof(t)) | ^ In file included from taper.c:21: taper.c: In function 'addto': ../../lib/common/memory.h:26:58: warning: conversion to 'long unsigned int' from 'int' may change the sign of the result [-Wsign-conversion] 26 | #define RALLOC(size,ptr,type) ((type*)grealloc(ptr,(size)*sizeof(type))) | ^ taper.c:50:23: note: in expansion of macro 'RALLOC' 50 | p->vertices = RALLOC(p->flags,p->vertices,pointf); | ^~~~~~ taper.c: In function 'arcn': taper.c:63:11: warning: comparing floating-point with '==' or '!=' is unsafe [-Wfloat-equal] 63 | if (r == 0) return; | ^~ taper.c: In function 'myatan': taper.c:78:12: warning: comparing floating-point with '==' or '!=' is unsafe [-Wfloat-equal] 78 | if ((x == 0) && (y == 0)) | ^~ taper.c:78:24: warning: comparing floating-point with '==' or '!=' is unsafe [-Wfloat-equal] 78 | if ((x == 0) && (y == 0)) | ^~ shapes.c: In function 'poly_inside': taper.c: In function 'insertArr': ../../lib/common/memory.h:26:58: warning: conversion to 'long unsigned int' from 'int' may change the sign of the result [-Wsign-conversion] 26 | #define RALLOC(size,ptr,type) ((type*)grealloc(ptr,(size)*sizeof(type))) | ^ taper.c:135:20: note: in expansion of macro 'RALLOC' 135 | arr->pts = RALLOC(arr->sz,arr->pts,pathpoint); | ^~~~~~ shapes.c:2316:19: warning: comparing floating-point with '==' or '!=' is unsafe [-Wfloat-equal] 2316 | if (xsize == 0.0) | ^~ taper.c: In function 'fixArr': ../../lib/common/memory.h:26:58: warning: conversion to 'long unsigned int' from 'int' may change the sign of the result [-Wsign-conversion] 26 | #define RALLOC(size,ptr,type) ((type*)grealloc(ptr,(size)*sizeof(type))) | ^ taper.c:162:20: note: in expansion of macro 'RALLOC' 162 | arr->pts = RALLOC(arr->cnt,arr->pts,pathpoint); | ^~~~~~ shapes.c:2318:19: warning: comparing floating-point with '==' or '!=' is unsafe [-Wfloat-equal] 2318 | if (ysize == 0.0) | ^~ taper.c: At top level: taper.c:257:11: warning: no previous prototype for 'taper' [-Wmissing-prototypes] 257 | stroke_t* taper (bezier* bez, radfunc_t radfunc, double initwid, int linejoin, int linecap) | ^~~~~ taper.c: In function 'taper': taper.c:278:13: warning: conversion from 'double' to 'int' may change value [-Wfloat-conversion] 278 | l = mymod(i-1,pathcount); | ^~~~~ taper.c:279:13: warning: conversion from 'double' to 'int' may change value [-Wfloat-conversion] 279 | n = mymod(i+1,pathcount); | ^~~~~ shapes.c: In function 'invflip_side': taper.c:325:26: warning: comparing floating-point with '==' or '!=' is unsafe [-Wfloat-equal] 325 | if (cos(phi) == 0) { | ^~ shapes.c:2406:9: warning: switch missing default case [-Wswitch-default] 2406 | switch (side) { | ^~~~~~ shapes.c:2422:9: warning: switch missing default case [-Wswitch-default] 2422 | switch (side) { | ^~~~~~ shapes.c: In function 'invflip_angle': shapes.c:2457:19: warning: comparing floating-point with '==' or '!=' is unsafe [-Wfloat-equal] 2457 | if (angle == M_PI) | ^~ shapes.c:2459:24: warning: comparing floating-point with '==' or '!=' is unsafe [-Wfloat-equal] 2459 | else if (angle == M_PI * 0.75) | ^~ shapes.c:2461:24: warning: comparing floating-point with '==' or '!=' is unsafe [-Wfloat-equal] 2461 | else if (angle == M_PI * 0.5) | ^~ shapes.c:2463:24: warning: comparing floating-point with '==' or '!=' is unsafe [-Wfloat-equal] 2463 | else if (angle == 0) | ^~ shapes.c:2465:24: warning: comparing floating-point with '==' or '!=' is unsafe [-Wfloat-equal] 2465 | else if (angle == M_PI * -0.25) | ^~ shapes.c:2467:24: warning: comparing floating-point with '==' or '!=' is unsafe [-Wfloat-equal] 2467 | else if (angle == M_PI * -0.5) | ^~ shapes.c:2447:5: warning: switch missing default case [-Wswitch-default] 2447 | switch (rankdir) { | ^~~~~~ shapes.c: In function 'compassPort': shapes.c:2697:20: warning: conversion from 'int' to 'unsigned char' may change value [-Wconversion] 2697 | pp->side = side; | ^~~~ shapes.c:2699:20: warning: conversion from 'int' to 'unsigned char' may change value [-Wconversion] 2699 | pp->side = invflip_side(side, GD_rankdir(agraphof(n))); | ^~~~~~~~~~~~ shapes.c:2703:13: warning: comparing floating-point with '==' or '!=' is unsafe [-Wfloat-equal] 2703 | if (p.x == 0 && p.y == 0) | ^~ shapes.c:2703:25: warning: comparing floating-point with '==' or '!=' is unsafe [-Wfloat-equal] 2703 | if (p.x == 0 && p.y == 0) | ^~ In file included from ../../lib/common/render.h:33, from utils.c:11: utils.c: In function 'new_queue': shapes.c:2710:21: warning: conversion from 'int' to 'unsigned char' may change value [-Wconversion] 2710 | pp->order = (int) (MC_SCALE * angle / (2 * M_PI)); | ^ ../../lib/common/memory.h:20:38: warning: conversion to 'size_t' {aka 'long unsigned int'} from 'int' may change the sign of the result [-Wsign-conversion] 20 | #define N_NEW(n,t) (t*)gcalloc((n),sizeof(t)) | ^~~ utils.c:34:36: note: in expansion of macro 'N_NEW' 34 | q->head = q->tail = q->store = N_NEW(sz, node_t *); | ^~~~~ shapes.c: In function 'poly_gencode': utils.c: In function 'late_int': utils.c:75:10: warning: conversion from 'long int' to 'int' may change value [-Wconversion] 75 | rv = strtol (p, &endp, 10); | ^~~~~~ ../../lib/common/memory.h:25:62: warning: conversion to 'long unsigned int' from 'int' may change the sign of the result [-Wsign-conversion] 25 | #define ALLOC(size,ptr,type) (ptr? (type*)grealloc(ptr,(size)*sizeof(type)):(type*)gmalloc((size)*sizeof(type))) | ^ shapes.c:2788:14: note: in expansion of macro 'ALLOC' 2788 | AF = ALLOC(A_size, AF, pointf); | ^~~~~ utils.c: In function 'get_inputscale': utils.c:112:11: warning: comparing floating-point with '==' or '!=' is unsafe [-Wfloat-equal] 112 | if (d == 0) return POINTS_PER_INCH; | ^~ ../../lib/common/memory.h:25:98: warning: conversion to 'long unsigned int' from 'int' may change the sign of the result [-Wsign-conversion] 25 | #define ALLOC(size,ptr,type) (ptr? (type*)grealloc(ptr,(size)*sizeof(type)):(type*)gmalloc((size)*sizeof(type))) | ^ shapes.c:2788:14: note: in expansion of macro 'ALLOC' 2788 | AF = ALLOC(A_size, AF, pointf); | ^~~~~ shapes.c: In function 'point_init': utils.c: In function 'mkDirlist': shapes.c:2994:11: warning: comparing floating-point with '==' or '!=' is unsafe [-Wfloat-equal] 2994 | if (w == MAXDOUBLE && h == MAXDOUBLE) /* neither defined */ | ^~ ../../lib/common/memory.h:25:62: warning: conversion to 'long unsigned int' from 'int' may change the sign of the result [-Wsign-conversion] 25 | #define ALLOC(size,ptr,type) (ptr? (type*)grealloc(ptr,(size)*sizeof(type)):(type*)gmalloc((size)*sizeof(type))) | ^ utils.c:332:16: note: in expansion of macro 'ALLOC' 332 | dirs = ALLOC (cnt+2,dirs,char*); | ^~~~~ ../../lib/common/memory.h:25:98: warning: conversion to 'long unsigned int' from 'int' may change the sign of the result [-Wsign-conversion] 25 | #define ALLOC(size,ptr,type) (ptr? (type*)grealloc(ptr,(size)*sizeof(type)):(type*)gmalloc((size)*sizeof(type))) | ^ utils.c:332:16: note: in expansion of macro 'ALLOC' 332 | dirs = ALLOC (cnt+2,dirs,char*); | ^~~~~ shapes.c:2994:29: warning: comparing floating-point with '==' or '!=' is unsafe [-Wfloat-equal] 2994 | if (w == MAXDOUBLE && h == MAXDOUBLE) /* neither defined */ | ^~ shapes.c:3013:27: warning: conversion to 'size_t' {aka 'long unsigned int'} from 'int' may change the sign of the result [-Wsign-conversion] 3013 | vertices = N_NEW(outp * sides, pointf); ../../lib/common/memory.h:20:39: note: in definition of macro 'N_NEW' 20 | #define N_NEW(n,t) (t*)gcalloc((n),sizeof(t)) | ^ shapes.c: In function 'point_gencode': ../../lib/common/memory.h:25:62: warning: conversion to 'long unsigned int' from 'int' may change the sign of the result [-Wsign-conversion] 25 | #define ALLOC(size,ptr,type) (ptr? (type*)grealloc(ptr,(size)*sizeof(type)):(type*)gmalloc((size)*sizeof(type))) | ^ shapes.c:3101:14: note: in expansion of macro 'ALLOC' 3101 | AF = ALLOC(A_size, AF, pointf); | ^~~~~ ../../lib/common/memory.h:25:98: warning: conversion to 'long unsigned int' from 'int' may change the sign of the result [-Wsign-conversion] 25 | #define ALLOC(size,ptr,type) (ptr? (type*)grealloc(ptr,(size)*sizeof(type)):(type*)gmalloc((size)*sizeof(type))) | ^ shapes.c:3101:14: note: in expansion of macro 'ALLOC' 3101 | AF = ALLOC(A_size, AF, pointf); | ^~~~~ shapes.c: In function 'parse_error': shapes.c:3203:49: warning: declaration of 'port' shadows a global declaration [-Wshadow] 3203 | static field_t *parse_error(field_t * rv, char *port) | ~~~~~~^~~~ In file included from ../../lib/common/render.h:29: ../../lib/common/types.h:76:7: note: shadowed declaration is here 76 | } port; | ^~~~ utils.c: In function 'gvToggle': utils.c:578:19: warning: unused parameter 's' [-Wunused-parameter] 578 | void gvToggle(int s) | ~~~~^ shapes.c: In function 'parse_reclbl': ../../lib/common/memory.h:20:38: warning: conversion to 'size_t' {aka 'long unsigned int'} from 'int' may change the sign of the result [-Wsign-conversion] 20 | #define N_NEW(n,t) (t*)gcalloc((n),sizeof(t)) | ^~~ shapes.c:3236:15: note: in expansion of macro 'N_NEW' 3236 | rv->fld = N_NEW(maxf, field_t *); | ^~~~~ utils.c: In function 'common_init_node': utils.c:620:23: warning: conversion from 'int' to 'unsigned char' may change value [-Wconversion] 620 | ND_showboxes(n) = late_int(n, N_showboxes, 0, 0); | ^~~~~~~~ shapes.c: In function 'pos_reclbl': shapes.c:3450:16: warning: conversion from 'int' to 'unsigned char' may change value [-Wconversion] 3450 | f->sides = sides; | ^~~~~ utils.c: In function 'setAttr': utils.c:897:9: warning: switch missing default case [-Wswitch-default] 897 | switch (agobjkind(obj)) { | ^~~~~~ shapes.c: In function 'record_path': shapes.c:3659:18: warning: conversion from 'double' to 'int' may change value [-Wfloat-conversion] 3659 | ls = info->fld[i]->b.LL.x; | ^~~~ shapes.c:3660:18: warning: conversion from 'double' to 'int' may change value [-Wfloat-conversion] 3660 | rs = info->fld[i]->b.UR.x; | ^~~~ shapes.c:3662:18: warning: conversion from 'double' to 'int' may change value [-Wfloat-conversion] 3662 | ls = info->fld[i]->b.LL.y; | ^~~~ shapes.c:3663:18: warning: conversion from 'double' to 'int' may change value [-Wfloat-conversion] 3663 | rs = info->fld[i]->b.UR.y; | ^~~~ utils.c: In function 'undoClusterEdges': utils.c:1262:14: warning: declaration of 'elist' shadows a global declaration [-Wshadow] 1262 | edge_t **elist; | ^~~~~ In file included from ../../lib/common/render.h:29: ../../lib/common/types.h:250:7: note: shadowed declaration is here 250 | } elist; | ^~~~~ ../../lib/common/memory.h:20:38: warning: conversion to 'size_t' {aka 'long unsigned int'} from 'int' may change the sign of the result [-Wsign-conversion] 20 | #define N_NEW(n,t) (t*)gcalloc((n),sizeof(t)) | ^~~ utils.c:1269:13: note: in expansion of macro 'N_NEW' 1269 | elist = N_NEW(ecnt, edge_t*); | ^~~~~ shapes.c: In function 'user_shape': utils.c: In function 'scanEntity': utils.c:1322:17: warning: conversion from 'long int' to 'int' may change value [-Wconversion] 1322 | if (((len = endp-t) > MAXENTLEN) || (len < 2)) return t; | ^~~~ ../../lib/common/memory.h:25:62: warning: conversion to 'long unsigned int' from 'int' may change the sign of the result [-Wsign-conversion] 25 | #define ALLOC(size,ptr,type) (ptr? (type*)grealloc(ptr,(size)*sizeof(type)):(type*)gmalloc((size)*sizeof(type))) | ^ shapes.c:3810:17: note: in expansion of macro 'ALLOC' 3810 | UserShape = ALLOC(N_UserShape, UserShape, shape_desc *); | ^~~~~ utils.c:1323:22: warning: conversion to 'size_t' {aka 'long unsigned int'} from 'int' may change the sign of the result [-Wsign-conversion] 1323 | strncpy (buf, t, len); | ^~~ ../../lib/common/memory.h:25:98: warning: conversion to 'long unsigned int' from 'int' may change the sign of the result [-Wsign-conversion] 25 | #define ALLOC(size,ptr,type) (ptr? (type*)grealloc(ptr,(size)*sizeof(type)):(type*)gmalloc((size)*sizeof(type))) | ^ shapes.c:3810:17: note: in expansion of macro 'ALLOC' 3810 | UserShape = ALLOC(N_UserShape, UserShape, shape_desc *); | ^~~~~ utils.c: In function 'cvtAndAppend': utils.c:1418:11: warning: conversion from 'size_t' {aka 'long unsigned int'} to 'int' may change value [-Wconversion] 1418 | len = strlen(s); | ^~~~~~ utils.c: In function 'htmlEntityUTF8': utils.c:1477:21: warning: conversion to 'unsigned int' from 'int' may change the sign of the result [-Wsign-conversion] 1477 | v = htmlEntity (&s); | ^~~~~~~~~~ utils.c:1480:29: warning: conversion from 'unsigned int' to 'unsigned char' may change value [-Wconversion] 1480 | c = v; | ^ utils.c: In function 'latin1ToUTF8': utils.c:1531:17: warning: conversion to 'unsigned int' from 'int' may change the sign of the result [-Wsign-conversion] 1531 | v = htmlEntity (&s); | ^~~~~~~~~~ shapes.c: In function 'closestSide': shapes.c:4143:19: warning: conversion from 'double' to 'int' may change value [-Wfloat-conversion] 4143 | p.y = b.LL.y; | ^ shapes.c:4144:19: warning: conversion from 'double' to 'int' may change value [-Wfloat-conversion] 4144 | p.x = (b.LL.x + b.UR.x) / 2; | ^ shapes.c:4147:19: warning: conversion from 'double' to 'int' may change value [-Wfloat-conversion] 4147 | p.x = b.UR.x; | ^ shapes.c:4148:19: warning: conversion from 'double' to 'int' may change value [-Wfloat-conversion] 4148 | p.y = (b.LL.y + b.UR.y) / 2; | ^ utils.c: In function 'setEdgeType': shapes.c:4151:19: warning: conversion from 'double' to 'int' may change value [-Wfloat-conversion] 4151 | p.y = b.UR.y; | ^ utils.c:1727:20: warning: conversion from 'int' to 'short unsigned int' may change value [-Wconversion] 1727 | GD_flags(g) |= et; | ^~ output.c: In function 'writenodeandport': output.c:61:61: warning: declaration of 'port' shadows a global declaration [-Wshadow] 61 | static void writenodeandport(FILE * f, node_t * node, char *port) | ~~~~~~^~~~ In file included from ../../lib/common/render.h:29, from output.c:11: ../../lib/common/types.h:76:7: note: shadowed declaration is here 76 | } port; | ^~~~ shapes.c:4152:19: warning: conversion from 'double' to 'int' may change value [-Wfloat-conversion] 4152 | p.x = (b.LL.x + b.UR.x) / 2; | ^ shapes.c:4155:19: warning: conversion from 'double' to 'int' may change value [-Wfloat-conversion] 4155 | p.x = b.LL.x; | ^ shapes.c:4156:19: warning: conversion from 'double' to 'int' may change value [-Wfloat-conversion] 4156 | p.y = (b.LL.y + b.UR.y) / 2; | ^ shapes.c: At top level: shapes.c:4194:6: warning: no previous prototype for 'gv_initShapes' [-Wmissing-prototypes] 4194 | void gv_initShapes(void) | ^~~~~~~~~~~~~ output.c: In function 'attach_attrs_and_arrows': output.c:256:17: warning: declaration of 'i' shadows a previous local [-Wshadow] 256 | int i; | ^ output.c:189:9: note: shadowed declaration is here 189 | int i, j, sides; | ^ emit.c: In function 'getObjId': emit.c:214:5: warning: switch missing default case [-Wswitch-default] 214 | switch (agobjkind(obj)) { | ^~~~~~ In file included from ../../lib/common/render.h:33, from emit.c:22: emit.c: In function 'map_point': emit.c:349:39: warning: conversion to 'size_t' {aka 'long unsigned int'} from 'int' may change the sign of the result [-Wsign-conversion] 349 | obj->url_map_p = p = N_NEW(obj->url_map_n, pointf); ../../lib/common/memory.h:20:39: note: in definition of macro 'N_NEW' 20 | #define N_NEW(n,t) (t*)gcalloc((n),sizeof(t)) | ^ emit.c: In function 'parseSegs': emit.c:490:32: warning: conversion to 'size_t' {aka 'long unsigned int'} from 'int' may change the sign of the result [-Wsign-conversion] 490 | segs->segs = s = N_NEW(nseg+1,colorseg_t); ../../lib/common/memory.h:20:39: note: in definition of macro 'N_NEW' 20 | #define N_NEW(n,t) (t*)gcalloc((n),sizeof(t)) | ^ emit.c:505:27: warning: conversion from 'double' to 'float' may change value [-Wfloat-conversion] 505 | s[cnum++].t = v; | ^ emit.c:529:24: warning: comparing floating-point with '==' or '!=' is unsafe [-Wfloat-equal] 529 | if (s[i].t == 0) nseg++; | ^~ emit.c:534:28: warning: comparing floating-point with '==' or '!=' is unsafe [-Wfloat-equal] 534 | if (s[i].t == 0) s[i].t = delta; | ^~ emit.c:534:43: warning: conversion from 'double' to 'float' may change value [-Wfloat-conversion] 534 | if (s[i].t == 0) s[i].t = delta; | ^~~~~ emit.c:538:28: warning: conversion from 'double' to 'float' may change value [-Wfloat-conversion] 538 | s[cnum-1].t += left; | ^~~~ emit.c: In function 'wedgedEllipse': emit.c:587:18: warning: comparing floating-point with '==' or '!=' is unsafe [-Wfloat-equal] 587 | if (s->t == 0) continue; | ^~ emit.c: In function 'stripedBox': emit.c:647:18: warning: comparing floating-point with '==' or '!=' is unsafe [-Wfloat-equal] 647 | if (s->t == 0) continue; | ^~ emit.c: In function 'emit_map_rect': emit.c:679:39: warning: conversion to 'size_t' {aka 'long unsigned int'} from 'int' may change the sign of the result [-Wsign-conversion] 679 | obj->url_map_p = p = N_NEW(obj->url_map_n, pointf); ../../lib/common/memory.h:20:39: note: in definition of macro 'N_NEW' 20 | #define N_NEW(n,t) (t*)gcalloc((n),sizeof(t)) | ^ emit.c: In function 'map_label': emit.c:705:39: warning: conversion to 'size_t' {aka 'long unsigned int'} from 'int' may change the sign of the result [-Wsign-conversion] 705 | obj->url_map_p = p = N_NEW(obj->url_map_n, pointf); ../../lib/common/memory.h:20:39: note: in definition of macro 'N_NEW' 20 | #define N_NEW(n,t) (t*)gcalloc((n),sizeof(t)) | ^ emit.c: In function 'isRect': emit.c:722:30: warning: comparing floating-point with '==' or '!=' is unsafe [-Wfloat-equal] 722 | && p->distortion == 0.0 && p->skew == 0.0; | ^~ emit.c:722:48: warning: comparing floating-point with '==' or '!=' is unsafe [-Wfloat-equal] 722 | && p->distortion == 0.0 && p->skew == 0.0; | ^~ emit.c: In function 'pEllipse': ../../lib/common/memory.h:20:38: warning: conversion to 'size_t' {aka 'long unsigned int'} from 'int' may change the sign of the result [-Wsign-conversion] 20 | #define N_NEW(n,t) (t*)gcalloc((n),sizeof(t)) | ^~~ emit.c:758:10: note: in expansion of macro 'N_NEW' 758 | ps = N_NEW(np, pointf); | ^~~~~ emit.c: At top level: emit.c:820:6: warning: "DEBUG" is not defined, evaluates to 0 [-Wundef] 820 | #if (DEBUG==2) | ^~~~~ emit.c: In function 'map_bspline_poly': emit.c:860:45: warning: conversion to 'long unsigned int' from 'int' may change the sign of the result [-Wsign-conversion] 860 | *pbs_n = grealloc(*pbs_n, (*pbs_poly_n) * sizeof(int)); | ^ emit.c:862:44: warning: conversion to 'long unsigned int' from 'int' may change the sign of the result [-Wsign-conversion] 862 | *pbs_p = grealloc(*pbs_p, (nump + 2*n) * sizeof(pointf)); | ^ emit.c:868:6: warning: "DEBUG" is not defined, evaluates to 0 [-Wundef] 868 | #if (DEBUG==2) | ^~~~~ emit.c: In function 'selectedLayer': emit.c:1054:9: warning: switch missing default case [-Wswitch-default] 1054 | switch ((w0 != NULL) + (w1 != NULL)) { | ^~~~~~ emit.c: In function 'parse_layerselect': emit.c:1103:41: warning: conversion to 'size_t' {aka 'long unsigned int'} from 'int' may change the sign of the result [-Wsign-conversion] 1103 | int* laylist = N_GNEW(gvc->numLayers+2,int); ../../lib/common/memory.h:23:39: note: in definition of macro 'N_GNEW' 23 | #define N_GNEW(n,t) (t*)gcalloc((n),sizeof(t)) | ^ emit.c: In function 'parse_layers': ../../lib/common/memory.h:25:62: warning: conversion to 'long unsigned int' from 'int' may change the sign of the result [-Wsign-conversion] 25 | #define ALLOC(size,ptr,type) (ptr? (type*)grealloc(ptr,(size)*sizeof(type)):(type*)gmalloc((size)*sizeof(type))) | ^ emit.c:1156:29: note: in expansion of macro 'ALLOC' 1156 | gvc->layerIDs = ALLOC(sz, gvc->layerIDs, char *); | ^~~~~ ../../lib/common/memory.h:25:98: warning: conversion to 'long unsigned int' from 'int' may change the sign of the result [-Wsign-conversion] 25 | #define ALLOC(size,ptr,type) (ptr? (type*)grealloc(ptr,(size)*sizeof(type)):(type*)gmalloc((size)*sizeof(type))) | ^ emit.c:1156:29: note: in expansion of macro 'ALLOC' 1156 | gvc->layerIDs = ALLOC(sz, gvc->layerIDs, char *); | ^~~~~ ../../lib/common/memory.h:26:58: warning: conversion to 'long unsigned int' from 'int' may change the sign of the result [-Wsign-conversion] 26 | #define RALLOC(size,ptr,type) ((type*)grealloc(ptr,(size)*sizeof(type))) | ^ emit.c:1161:25: note: in expansion of macro 'RALLOC' 1161 | gvc->layerIDs = RALLOC(ntok + 2, gvc->layerIDs, char *); /* shrink to minimum size */ | ^~~~~~ emit.c: In function 'pagecode': emit.c:1265:5: warning: switch missing default case [-Wswitch-default] 1265 | switch (c) { | ^~~~~~ In file included from ../../lib/common/geom.h:16, from ../../lib/common/types.h:28, from ../../lib/common/render.h:29: emit.c: In function 'init_job_pagination': ../../lib/common/arith.h:59:25: warning: conversion to 'unsigned int' from 'int' may change the sign of the result [-Wsign-conversion] 59 | #define ROUND(f) ((f>=0)?(int)(f + .5):(int)(f - .5)) | ^ emit.c:1347:18: note: in expansion of macro 'ROUND' 1347 | job->width = ROUND((pageSize.x + 2*margin.x) * job->dpi.x / POINTS_PER_INCH); | ^~~~~ ../../lib/common/arith.h:59:25: warning: conversion to 'unsigned int' from 'int' may change the sign of the result [-Wsign-conversion] 59 | #define ROUND(f) ((f>=0)?(int)(f + .5):(int)(f - .5)) | ^ emit.c:1348:19: note: in expansion of macro 'ROUND' 1348 | job->height = ROUND((pageSize.y + 2*margin.y) * job->dpi.y / POINTS_PER_INCH); | ^~~~~ emit.c: In function 'copyPts': ../../lib/common/memory.h:26:58: warning: conversion to 'long unsigned int' from 'int' may change the sign of the result [-Wsign-conversion] 26 | #define RALLOC(size,ptr,type) ((type*)grealloc(ptr,(size)*sizeof(type))) | ^ emit.c:1462:15: note: in expansion of macro 'RALLOC' 1462 | pts = RALLOC(sz, pts, pointf); | ^~~~~~ emit.c: In function 'emit_xdot': emit.c:1544:31: warning: comparing floating-point with '==' or '!=' is unsafe [-Wfloat-equal] 1544 | if (p->x1 == p->x0 && p->y1 == p->y0) | ^~ emit.c:1544:49: warning: comparing floating-point with '==' or '!=' is unsafe [-Wfloat-equal] 1544 | if (p->x1 == p->x0 && p->y1 == p->y0) | ^~ emit.c:1486:9: warning: switch missing default case [-Wswitch-default] 1486 | switch (op->op.kind) { | ^~~~~~ emit.c: In function 'emit_begin_node': ../../lib/common/memory.h:20:38: warning: conversion to 'size_t' {aka 'long unsigned int'} from 'int' may change the sign of the result [-Wsign-conversion] 20 | #define N_NEW(n,t) (t*)gcalloc((n),sizeof(t)) | ^~~ emit.c:1836:21: note: in expansion of macro 'N_NEW' 1836 | p = N_NEW(nump, pointf); | ^~~~~ emit.c:1840:52: warning: comparing floating-point with '==' or '!=' is unsafe [-Wfloat-equal] 1840 | else if (poly->sides < 3 && poly->skew == 0.0 && poly->distortion == 0.0) { | ^~ emit.c:1840:79: warning: comparing floating-point with '==' or '!=' is unsafe [-Wfloat-equal] 1840 | else if (poly->sides < 3 && poly->skew == 0.0 && poly->distortion == 0.0) { | ^~ ../../lib/common/memory.h:20:38: warning: conversion to 'size_t' {aka 'long unsigned int'} from 'int' may change the sign of the result [-Wsign-conversion] 20 | #define N_NEW(n,t) (t*)gcalloc((n),sizeof(t)) | ^~~ emit.c:1844:25: note: in expansion of macro 'N_NEW' 1844 | p = N_NEW(nump, pointf); | ^~~~~ ../../lib/common/memory.h:20:38: warning: conversion to 'size_t' {aka 'long unsigned int'} from 'int' may change the sign of the result [-Wsign-conversion] 20 | #define N_NEW(n,t) (t*)gcalloc((n),sizeof(t)) | ^~~ emit.c:1871:25: note: in expansion of macro 'N_NEW' 1871 | p = N_NEW(nump, pointf); | ^~~~~ ../../lib/common/memory.h:20:38: warning: conversion to 'size_t' {aka 'long unsigned int'} from 'int' may change the sign of the result [-Wsign-conversion] 20 | #define N_NEW(n,t) (t*)gcalloc((n),sizeof(t)) | ^~~ emit.c:1878:25: note: in expansion of macro 'N_NEW' 1878 | p = N_NEW(nump, pointf); | ^~~~~ ../../lib/common/memory.h:20:38: warning: conversion to 'size_t' {aka 'long unsigned int'} from 'int' may change the sign of the result [-Wsign-conversion] 20 | #define N_NEW(n,t) (t*)gcalloc((n),sizeof(t)) | ^~~ emit.c:1892:17: note: in expansion of macro 'N_NEW' 1892 | p = N_NEW(nump, pointf); | ^~~~~ emit.c: In function 'emit_node': emit.c:1930:23: warning: conversion from 'int' to 'char' may change value [-Wconversion] 1930 | ND_state(n) = gvc->common.viewNum; /* mark node as drawn */ | ^~~ emit.c: In function 'default_pencolor': emit.c:2029:16: warning: conversion to 'size_t' {aka 'long unsigned int'} from 'int' may change the sign of the result [-Wsign-conversion] 2029 | len = ncol * (strlen(deflt) + 1); | ^ emit.c:2029:11: warning: conversion from 'size_t' {aka 'long unsigned int'} to 'int' may change value [-Wconversion] 2029 | len = ncol * (strlen(deflt) + 1); | ^~~~ emit.c:2032:28: warning: conversion to 'size_t' {aka 'long unsigned int'} from 'int' may change the sign of the result [-Wsign-conversion] 2032 | buf = realloc(buf, bufsz); | ^~~~~ emit.c: In function 'splitBSpline': ../../lib/common/memory.h:20:38: warning: conversion to 'size_t' {aka 'long unsigned int'} from 'int' may change the sign of the result [-Wsign-conversion] 20 | #define N_NEW(n,t) (t*)gcalloc((n),sizeof(t)) | ^~~ emit.c:2078:12: note: in expansion of macro 'N_NEW' 2078 | lens = N_NEW(cnt, double); | ^~~~~ emit.c:2095:28: warning: conversion to 'size_t' {aka 'long unsigned int'} from 'int' may change the sign of the result [-Wsign-conversion] 2095 | left->list = N_NEW(left->size,pointf); ../../lib/common/memory.h:20:39: note: in definition of macro 'N_NEW' 20 | #define N_NEW(n,t) (t*)gcalloc((n),sizeof(t)) | ^ emit.c:2097:30: warning: conversion to 'size_t' {aka 'long unsigned int'} from 'int' may change the sign of the result [-Wsign-conversion] 2097 | right->list = N_NEW(right->size,pointf); ../../lib/common/memory.h:20:39: note: in definition of macro 'N_NEW' 20 | #define N_NEW(n,t) (t*)gcalloc((n),sizeof(t)) | ^ emit.c:2105:9: warning: conversion from 'double' to 'float' may change value [-Wfloat-conversion] 2105 | r = (len - (sum - last))/last; | ^ emit.c: In function 'multicolor': emit.c:2166:41: warning: conversion from 'double' to 'float' may change value [-Wfloat-conversion] 2166 | splitBSpline(&bz0, s->t / (left + s->t), &bz_l, &bz_r); | ~~~~~^~~~~~~~~~~~~~~ emit.c: In function 'emit_edge_graphics': emit.c:2341:49: warning: conversion to 'long unsigned int' from 'int' may change the sign of the result [-Wsign-conversion] 2341 | offspl.list = malloc(sizeof(bezier) * offspl.size); | ^ emit.c:2342:49: warning: conversion to 'long unsigned int' from 'int' may change the sign of the result [-Wsign-conversion] 2342 | tmpspl.list = malloc(sizeof(bezier) * tmpspl.size); | ^ emit.c:2347:71: warning: conversion to 'long unsigned int' from 'int' may change the sign of the result [-Wsign-conversion] 2347 | offlist = offspl.list[i].list = malloc(sizeof(pointf) * bz.size); | ^ emit.c:2348:71: warning: conversion to 'long unsigned int' from 'int' may change the sign of the result [-Wsign-conversion] 2348 | tmplist = tmpspl.list[i].list = malloc(sizeof(pointf) * bz.size); | ^ emit.c: In function 'textBB': emit.c:2906:5: warning: switch missing default case [-Wswitch-default] 2906 | switch (span->just) { | ^~~~~~ emit.c: In function 'xdotBB': emit.c:2949:17: warning: comparing floating-point with '==' or '!=' is unsafe [-Wfloat-equal] 2949 | if (bb.LL.x == bb.UR.x && bb.LL.y == bb.UR.y) { | ^~ emit.c:2949:39: warning: comparing floating-point with '==' or '!=' is unsafe [-Wfloat-equal] 2949 | if (bb.LL.x == bb.UR.x && bb.LL.y == bb.UR.y) { | ^~ emit.c:2986:24: warning: conversion from 'int' to 'unsigned char:7' may change value [-Wconversion] 2986 | tf.flags = fontflags; | ^~~~~~~~~ emit.c:3001:25: warning: conversion to 'int' from 'unsigned int' may change the sign of the result [-Wsign-conversion] 3001 | fontflags = op->op.u.fontchar; | ^~ emit.c: In function 'init_job_dpi': emit.c:3127:28: warning: comparing floating-point with '==' or '!=' is unsafe [-Wfloat-equal] 3127 | if (GD_drawing(g)->dpi != 0) { | ^~ emit.c: In function 'init_job_viewport': emit.c:3171:18: warning: comparing floating-point with '==' or '!=' is unsafe [-Wfloat-equal] 3171 | if (sz.x == 0) sz.x = size.x; | ^~ emit.c:3172:18: warning: comparing floating-point with '==' or '!=' is unsafe [-Wfloat-equal] 3172 | if (sz.y == 0) sz.y = size.y; | ^~ emit.c: In function 'emit_page': ../../lib/common/memory.h:20:38: warning: conversion to 'size_t' {aka 'long unsigned int'} from 'int' may change the sign of the result [-Wsign-conversion] 20 | #define N_NEW(n,t) (t*)gcalloc((n),sizeof(t)) | ^~~ emit.c:3430:17: note: in expansion of macro 'N_NEW' 3430 | p = N_NEW(nump, pointf); | ^~~~~ emit.c: At top level: emit.c:3544:6: warning: no previous prototype for 'emit_once_reset' [-Wmissing-prototypes] 3544 | void emit_once_reset(void) | ^~~~~~~~~~~~~~~ CCLD libcommon_C.la make[4]: Leaving directory '/build/graphviz/src/graphviz-4.0.0/lib/common' make[3]: Leaving directory '/build/graphviz/src/graphviz-4.0.0/lib/common' Making all in pack make[3]: Entering directory '/build/graphviz/src/graphviz-4.0.0/lib/pack' rm -f pack.3.pdf; pdffile=pack.3.pdf; psfile=${pdffile%pdf}ps; \ groff -Tps -man pack.3 > $psfile || { rm -f $psfile; exit 1; }; \ ps2pdf $psfile && rm -f $psfile || { rm -f $psfile; exit 1; } CC ccomps.lo CC pack.lo pack.c: In function 'genBox': In file included from ../../lib/common/render.h:29, from ccomps.c:17: ccomps.c: In function 'markFn': pack.c:234:21: warning: conversion to 'unsigned int' from 'int' may change the sign of the result [-Wsign-conversion] 234 | LL.x = center.x - margin; | ^ pack.c:234:12: warning: conversion to 'int' from 'unsigned int' may change the sign of the result [-Wsign-conversion] 234 | LL.x = center.x - margin; | ^~~~~~ pack.c:235:21: warning: conversion to 'unsigned int' from 'int' may change the sign of the result [-Wsign-conversion] 235 | LL.y = center.y - margin; | ^ pack.c:235:12: warning: conversion to 'int' from 'unsigned int' may change the sign of the result [-Wsign-conversion] 235 | LL.y = center.y - margin; | ^~~~~~ pack.c:236:41: warning: conversion to 'unsigned int' from 'int' may change the sign of the result [-Wsign-conversion] 236 | UR.x = center.x + bb.UR.x - bb.LL.x + margin; | ^ ../../lib/common/types.h:500:47: warning: conversion from 'size_t' {aka 'long unsigned int'} to 'int' may change value [-Wconversion] 500 | #define ND_mark(n) (((Agnodeinfo_t*)AGDATA(n))->mark) | ~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~ ccomps.c:108:23: note: in expansion of macro 'ND_mark' 108 | if (v < 0) return ND_mark(n); | ^~~~~~~ pack.c:236:12: warning: conversion to 'int' from 'unsigned int' may change the sign of the result [-Wsign-conversion] 236 | UR.x = center.x + bb.UR.x - bb.LL.x + margin; | ^~~~~~ ../../lib/common/types.h:500:20: warning: conversion from 'size_t' {aka 'long unsigned int'} to 'int' may change value [-Wconversion] 500 | #define ND_mark(n) (((Agnodeinfo_t*)AGDATA(n))->mark) | ^ ccomps.c:109:11: note: in expansion of macro 'ND_mark' 109 | ret = ND_mark(n); | ^~~~~~~ pack.c:237:41: warning: conversion to 'unsigned int' from 'int' may change the sign of the result [-Wsign-conversion] 237 | UR.y = center.y + bb.UR.y - bb.LL.y + margin; | ^ pack.c:237:12: warning: conversion to 'int' from 'unsigned int' may change the sign of the result [-Wsign-conversion] 237 | UR.y = center.y + bb.UR.y - bb.LL.y + margin; | ^~~~~~ pack.c:29:20: warning: cast from function call of type 'double' to non-matching type 'int' [-Wbad-function-cast] 29 | #define GRID(x,s) ((int)ceil((x)/(s))) | ^ pack.c:247:9: note: in expansion of macro 'GRID' 247 | W = GRID(bb0.UR.x - bb0.LL.x + 2 * margin, ssize); | ^~~~ pack.c:29:20: warning: cast from function call of type 'double' to non-matching type 'int' [-Wbad-function-cast] 29 | #define GRID(x,s) ((int)ceil((x)/(s))) | ^ pack.c:248:9: note: in expansion of macro 'GRID' 248 | H = GRID(bb0.UR.y - bb0.LL.y + 2 * margin, ssize); | ^~~~ In file included from ../../lib/common/render.h:33, from pack.c:19: pack.c: In function 'genPoly': pack.c:306:22: warning: conversion to 'size_t' {aka 'long unsigned int'} from 'int' may change the sign of the result [-Wsign-conversion] 306 | alg = N_GNEW(agnnodes(g), void *); ../../lib/common/memory.h:23:39: note: in definition of macro 'N_GNEW' 23 | #define N_GNEW(n,t) (t*)gcalloc((n),sizeof(t)) | ^ pack.c:319:25: warning: conversion to 'unsigned int' from 'int' may change the sign of the result [-Wsign-conversion] 319 | bb.LL.x -= margin; | ^~ pack.c:319:28: warning: conversion to 'int' from 'unsigned int' may change the sign of the result [-Wsign-conversion] 319 | bb.LL.x -= margin; | ^~~~~~ pack.c:320:25: warning: conversion to 'unsigned int' from 'int' may change the sign of the result [-Wsign-conversion] 320 | bb.LL.y -= margin; | ^~ pack.c:320:28: warning: conversion to 'int' from 'unsigned int' may change the sign of the result [-Wsign-conversion] 320 | bb.LL.y -= margin; | ^~~~~~ pack.c:321:25: warning: conversion to 'unsigned int' from 'int' may change the sign of the result [-Wsign-conversion] 321 | bb.UR.x += margin; | ^~ pack.c:321:28: warning: conversion to 'int' from 'unsigned int' may change the sign of the result [-Wsign-conversion] 321 | bb.UR.x += margin; | ^~~~~~ pack.c:322:25: warning: conversion to 'unsigned int' from 'int' may change the sign of the result [-Wsign-conversion] 322 | bb.UR.y += margin; | ^~ pack.c:322:28: warning: conversion to 'int' from 'unsigned int' may change the sign of the result [-Wsign-conversion] 322 | bb.UR.y += margin; | ^~~~~~ pack.c:342:24: warning: conversion from 'double' to 'int' may change value [-Wfloat-conversion] 342 | s2.x = margin + ND_xsize(n) / 2; | ^~~~~~ pack.c:343:24: warning: conversion from 'double' to 'int' may change value [-Wfloat-conversion] 343 | s2.y = margin + ND_ysize(n) / 2; | ^~~~~~ pack.c:378:20: warning: conversion from 'double' to 'int' may change value [-Wfloat-conversion] 378 | s2.x = margin + ND_xsize(n) / 2; | ^~~~~~ pack.c:379:20: warning: conversion from 'double' to 'int' may change value [-Wfloat-conversion] 379 | s2.y = margin + ND_ysize(n) / 2; | ^~~~~~ pack.c:29:20: warning: cast from function call of type 'double' to non-matching type 'int' [-Wbad-function-cast] 29 | #define GRID(x,s) ((int)ceil((x)/(s))) | ^ pack.c:397:9: note: in expansion of macro 'GRID' 397 | W = GRID(GD_bb(g).UR.x - GD_bb(g).LL.x + 2 * margin, ssize); | ^~~~ pack.c:29:20: warning: cast from function call of type 'double' to non-matching type 'int' [-Wbad-function-cast] 29 | #define GRID(x,s) ((int)ceil((x)/(s))) | ^ pack.c:398:9: note: in expansion of macro 'GRID' 398 | H = GRID(GD_bb(g).UR.y - GD_bb(g).LL.y + 2 * margin, ssize); | ^~~~ pack.c: In function 'placeGraph': pack.c:29:20: warning: cast from function call of type 'double' to non-matching type 'int' [-Wbad-function-cast] 29 | #define GRID(x,s) ((int)ceil((x)/(s))) | ^ pack.c:495:13: note: in expansion of macro 'GRID' 495 | W = GRID(bb.UR.x - bb.LL.x + 2 * margin, step); | ^~~~ pack.c:29:20: warning: cast from function call of type 'double' to non-matching type 'int' [-Wbad-function-cast] 29 | #define GRID(x,s) ((int)ceil((x)/(s))) | ^ pack.c:496:13: note: in expansion of macro 'GRID' 496 | H = GRID(bb.UR.y - bb.LL.y + 2 * margin, step); | ^~~~ pack.c:503:9: warning: conversion from 'double' to 'int' may change value [-Wfloat-conversion] 503 | W = ceil(bb.UR.x - bb.LL.x); | ^~~~ pack.c:504:9: warning: conversion from 'double' to 'int' may change value [-Wfloat-conversion] 504 | H = ceil(bb.UR.y - bb.LL.y); | ^~~~ pack.c: In function 'ucmpf': pack.c:571:14: warning: conversion to 'int' from 'packval_t' {aka 'unsigned int'} may change the sign of the result [-Wsign-conversion] 571 | int dX = userVals[x->index]; | ^~~~~~~~ pack.c:572:14: warning: conversion to 'int' from 'packval_t' {aka 'unsigned int'} may change the sign of the result [-Wsign-conversion] 572 | int dY = userVals[y->index]; | ^~~~~~~~ pack.c: In function 'arrayRects': ../../lib/common/memory.h:20:38: warning: conversion to 'size_t' {aka 'long unsigned int'} from 'int' may change the sign of the result [-Wsign-conversion] 20 | #define N_NEW(n,t) (t*)gcalloc((n),sizeof(t)) | ^~~ pack.c:610:21: note: in expansion of macro 'N_NEW' 610 | point* places = N_NEW(ng, point); | ^~~~~ pack.c:623:18: warning: conversion from 'double' to 'int' may change value [-Wfloat-conversion] 623 | nr = ceil(sqrt(ng)); | ^~~~ pack.c:634:18: warning: conversion from 'double' to 'int' may change value [-Wfloat-conversion] 634 | nc = ceil(sqrt(ng)); | ^~~~ pack.c:640:22: warning: conversion to 'size_t' {aka 'long unsigned int'} from 'int' may change the sign of the result [-Wsign-conversion] 640 | widths = N_NEW(nc+1, double); ../../lib/common/memory.h:20:39: note: in definition of macro 'N_NEW' 20 | #define N_NEW(n,t) (t*)gcalloc((n),sizeof(t)) | ^ pack.c:641:23: warning: conversion to 'size_t' {aka 'long unsigned int'} from 'int' may change the sign of the result [-Wsign-conversion] 641 | heights = N_NEW(nr+1, double); ../../lib/common/memory.h:20:39: note: in definition of macro 'N_NEW' 20 | #define N_NEW(n,t) (t*)gcalloc((n),sizeof(t)) | ^ ../../lib/common/memory.h:20:38: warning: conversion to 'size_t' {aka 'long unsigned int'} from 'int' may change the sign of the result [-Wsign-conversion] 20 | #define N_NEW(n,t) (t*)gcalloc((n),sizeof(t)) | ^~~ pack.c:643:17: note: in expansion of macro 'N_NEW' 643 | ip = info = N_NEW(ng, ainfo); | ^~~~~ ../../lib/common/memory.h:20:38: warning: conversion to 'size_t' {aka 'long unsigned int'} from 'int' may change the sign of the result [-Wsign-conversion] 20 | #define N_NEW(n,t) (t*)gcalloc((n),sizeof(t)) | ^~~ pack.c:651:13: note: in expansion of macro 'N_NEW' 651 | sinfo = N_NEW(ng, ainfo*); | ^~~~~ pack.c:658:22: warning: conversion to 'size_t' {aka 'long unsigned int'} from 'int' may change the sign of the result [-Wsign-conversion] 658 | qsort(sinfo, ng, sizeof(ainfo *), ucmpf); | ^~ pack.c:661:22: warning: conversion to 'size_t' {aka 'long unsigned int'} from 'int' may change the sign of the result [-Wsign-conversion] 661 | qsort(sinfo, ng, sizeof(ainfo *), acmpf); | ^~ pack.c:697:29: warning: conversion from 'double' to 'int' may change value [-Wfloat-conversion] 697 | places[idx].x = widths[c]; | ^~~~~~ pack.c:699:29: warning: conversion from 'double' to 'int' may change value [-Wfloat-conversion] 699 | places[idx].x = widths[c+1] - (bb.UR.x - bb.LL.x); | ^~~~~~ pack.c:701:29: warning: conversion from 'double' to 'int' may change value [-Wfloat-conversion] 701 | places[idx].x = (widths[c] + widths[c+1] - bb.UR.x - bb.LL.x)/2.0; | ^ pack.c:703:29: warning: conversion from 'double' to 'int' may change value [-Wfloat-conversion] 703 | places[idx].y = heights[r] - (bb.UR.y - bb.LL.y); | ^~~~~~~ pack.c:705:29: warning: conversion from 'double' to 'int' may change value [-Wfloat-conversion] 705 | places[idx].y = heights[r+1]; | ^~~~~~~ pack.c:707:29: warning: conversion from 'double' to 'int' may change value [-Wfloat-conversion] 707 | places[idx].y = (heights[r] + heights[r+1] - bb.UR.y - bb.LL.y)/2.0; | ^ pack.c: In function 'polyRects': ../../lib/common/memory.h:20:38: warning: conversion to 'size_t' {aka 'long unsigned int'} from 'int' may change the sign of the result [-Wsign-conversion] 20 | #define N_NEW(n,t) (t*)gcalloc((n),sizeof(t)) | ^~~ pack.c:738:12: note: in expansion of macro 'N_NEW' 738 | info = N_NEW(ng, ginfo); | ^~~~~ ../../lib/common/memory.h:20:38: warning: conversion to 'size_t' {aka 'long unsigned int'} from 'int' may change the sign of the result [-Wsign-conversion] 20 | #define N_NEW(n,t) (t*)gcalloc((n),sizeof(t)) | ^~~ pack.c:745:13: note: in expansion of macro 'N_NEW' 745 | sinfo = N_NEW(ng, ginfo *); | ^~~~~ pack.c:749:18: warning: conversion to 'size_t' {aka 'long unsigned int'} from 'int' may change the sign of the result [-Wsign-conversion] 749 | qsort(sinfo, ng, sizeof(ginfo *), cmpf); | ^~ ../../lib/common/memory.h:20:38: warning: conversion to 'size_t' {aka 'long unsigned int'} from 'int' may change the sign of the result [-Wsign-conversion] 20 | #define N_NEW(n,t) (t*)gcalloc((n),sizeof(t)) | ^~~ pack.c:752:14: note: in expansion of macro 'N_NEW' 752 | places = N_NEW(ng, point); | ^~~~~ pack.c: In function 'polyGraphs': ../../lib/common/memory.h:23:38: warning: conversion to 'size_t' {aka 'long unsigned int'} from 'int' may change the sign of the result [-Wsign-conversion] 23 | #define N_GNEW(n,t) (t*)gcalloc((n),sizeof(t)) | ^~~ pack.c:838:11: note: in expansion of macro 'N_GNEW' 838 | bbs = N_GNEW(ng, boxf); | ^~~~~~ ../../lib/common/memory.h:20:38: warning: conversion to 'size_t' {aka 'long unsigned int'} from 'int' may change the sign of the result [-Wsign-conversion] 20 | #define N_NEW(n,t) (t*)gcalloc((n),sizeof(t)) | ^~~ pack.c:853:12: note: in expansion of macro 'N_NEW' 853 | info = N_NEW(ng, ginfo); | ^~~~~ ../../lib/common/memory.h:20:38: warning: conversion to 'size_t' {aka 'long unsigned int'} from 'int' may change the sign of the result [-Wsign-conversion] 20 | #define N_NEW(n,t) (t*)gcalloc((n),sizeof(t)) | ^~~ pack.c:865:13: note: in expansion of macro 'N_NEW' 865 | sinfo = N_NEW(ng, ginfo *); | ^~~~~ pack.c:869:18: warning: conversion to 'size_t' {aka 'long unsigned int'} from 'int' may change the sign of the result [-Wsign-conversion] 869 | qsort(sinfo, ng, sizeof(ginfo *), cmpf); | ^~ ../../lib/common/memory.h:20:38: warning: conversion to 'size_t' {aka 'long unsigned int'} from 'int' may change the sign of the result [-Wsign-conversion] 20 | #define N_NEW(n,t) (t*)gcalloc((n),sizeof(t)) | ^~~ pack.c:872:14: note: in expansion of macro 'N_NEW' 872 | places = N_NEW(ng, point); | ^~~~~ pack.c: In function 'putGraphs': ../../lib/common/memory.h:23:38: warning: conversion to 'size_t' {aka 'long unsigned int'} from 'int' may change the sign of the result [-Wsign-conversion] 23 | #define N_GNEW(n,t) (t*)gcalloc((n),sizeof(t)) | ^~~ pack.c:918:11: note: in expansion of macro 'N_GNEW' 918 | bbs = N_GNEW(ng, boxf); | ^~~~~~ ../../lib/common/memory.h:20:38: warning: conversion to 'size_t' {aka 'long unsigned int'} from 'int' may change the sign of the result [-Wsign-conversion] 20 | #define N_NEW(n,t) (t*)gcalloc((n),sizeof(t)) | ^~~ pack.c:928:27: note: in expansion of macro 'N_NEW' 928 | pinfo->vals = N_NEW(ng, packval_t); | ^~~~~ pack.c:932:38: warning: conversion to 'packval_t' {aka 'unsigned int'} from 'int' may change the sign of the result [-Wsign-conversion] 932 | pinfo->vals[i] = v; | ^ pack.c: In function 'parsePackModeInfo': pack.c:1284:9: warning: switch missing default case [-Wswitch-default] 1284 | switch (*p) { | ^~~~~~ pack.c: In function 'getPackInfo': pack.c:1370:21: warning: conversion to 'unsigned int' from 'int' may change the sign of the result [-Wsign-conversion] 1370 | pinfo->margin = getPack(g, dfltMargin, dfltMargin); | ^~~~~~~ CCLD libpack_C.la make[3]: Leaving directory '/build/graphviz/src/graphviz-4.0.0/lib/pack' Making all in label make[3]: Entering directory '/build/graphviz/src/graphviz-4.0.0/lib/label' CC xlabels.lo CC index.lo CC node.lo CC rectangle.lo CC split.q.lo split.q.c: In function 'SplitNode': split.q.c:70:16: warning: conversion to 'int' from 'unsigned int' may change the sign of the result [-Wsign-conversion] 70 | int area = RectArea(&p->cover[0]) + RectArea(&p->cover[1]); | ^~~~~~~~ split.q.c:74:65: warning: conversion from 'int' to 'float' may change value [-Wconversion] 74 | rtp->SplitMeritSum += (float) rtp->split.CoverSplitArea / area; | ^ split.q.c: In function 'MethodZero': split.q.c:153:37: warning: conversion to 'unsigned int' from 'int' may change the sign of the result [-Wsign-conversion] 153 | RectArea(&rect) - rtp->split.Partitions[0].area[0]; | ^ split.q.c:153:21: warning: conversion to 'int' from 'unsigned int' may change the sign of the result [-Wsign-conversion] 153 | RectArea(&rect) - rtp->split.Partitions[0].area[0]; | ^~~~~~~~ split.q.c:156:37: warning: conversion to 'unsigned int' from 'int' may change the sign of the result [-Wsign-conversion] 156 | RectArea(&rect) - rtp->split.Partitions[0].area[1]; | ^ split.q.c:156:21: warning: conversion to 'int' from 'unsigned int' may change the sign of the result [-Wsign-conversion] 156 | RectArea(&rect) - rtp->split.Partitions[0].area[1]; | ^~~~~~~~ split.q.c: In function 'Classify': split.q.c:248:9: warning: conversion to 'int' from 'unsigned int' may change the sign of the result [-Wsign-conversion] 248 | RectArea(&rtp->split.Partitions[0].cover[group]); | ^~~~~~~~ node.c: In function 'PickBranch': node.c:126:20: warning: conversion to 'int' from 'unsigned int' may change the sign of the result [-Wsign-conversion] 126 | area = RectArea(rr); | ^~~~~~~~ node.c:129:40: warning: conversion to 'unsigned int' from 'int' may change the sign of the result [-Wsign-conversion] 129 | increase = RectArea(&rect) - area; | ^ node.c:129:24: warning: conversion to 'int' from 'unsigned int' may change the sign of the result [-Wsign-conversion] 129 | increase = RectArea(&rect) - area; | ^~~~~~~~ rectangle.c: In function 'RectArea': rectangle.c:74:26: warning: conversion to 'unsigned int' from 'int' may change the sign of the result [-Wsign-conversion] 74 | unsigned int dim = r->boundary[i + NUMDIMS] - r->boundary[i]; | ^ xlabels.c: In function 'xlhorder': xlabels.c:88:12: warning: cast from function call of type 'double' to non-matching type 'unsigned int' [-Wbad-function-cast] 88 | return (unsigned)floor(log2(round(fmax(maxx, maxy)))) + 1; | ^ xlabels.c: In function 'hd_hil_s_from_xy': xlabels.c:131:19: warning: conversion to 'unsigned int' from 'int' may change the sign of the result [-Wsign-conversion] 131 | s = 4 * s + 2 * xi + (xi ^ yi); /* Append two bits to s. */ | ^ xlabels.c:131:28: warning: conversion to 'unsigned int' from 'int' may change the sign of the result [-Wsign-conversion] 131 | s = 4 * s + 2 * xi + (xi ^ yi); /* Append two bits to s. */ | ^ In file included from xlabels.c:11: xlabels.c: In function 'lblenclosing': xlabels.c:180:22: warning: comparing floating-point with '==' or '!=' is unsafe [-Wfloat-equal] 180 | assert(objp1->sz.x == 0 && objp1->sz.y == 0); | ^~ xlabels.c:180:42: warning: comparing floating-point with '==' or '!=' is unsafe [-Wfloat-equal] 180 | assert(objp1->sz.x == 0 && objp1->sz.y == 0); | ^~ xlabels.c:180:22: warning: comparing floating-point with '==' or '!=' is unsafe [-Wfloat-equal] 180 | assert(objp1->sz.x == 0 && objp1->sz.y == 0); | ^~ xlabels.c:180:42: warning: comparing floating-point with '==' or '!=' is unsafe [-Wfloat-equal] 180 | assert(objp1->sz.x == 0 && objp1->sz.y == 0); | ^~ xlabels.c: In function 'objp2rect': xlabels.c:193:22: warning: conversion from 'double' to 'int' may change value [-Wfloat-conversion] 193 | r->boundary[0] = op->pos.x; | ^~ xlabels.c:194:22: warning: conversion from 'double' to 'int' may change value [-Wfloat-conversion] 194 | r->boundary[1] = op->pos.y; | ^~ xlabels.c:195:22: warning: conversion from 'double' to 'int' may change value [-Wfloat-conversion] 195 | r->boundary[2] = op->pos.x + op->sz.x; | ^~ xlabels.c:196:22: warning: conversion from 'double' to 'int' may change value [-Wfloat-conversion] 196 | r->boundary[3] = op->pos.y + op->sz.y; | ^~ xlabels.c: In function 'objplp2rect': xlabels.c:204:22: warning: conversion from 'double' to 'int' may change value [-Wfloat-conversion] 204 | r->boundary[0] = lp->pos.x; | ^~ xlabels.c:205:22: warning: conversion from 'double' to 'int' may change value [-Wfloat-conversion] 205 | r->boundary[1] = lp->pos.y; | ^~ xlabels.c:206:22: warning: conversion from 'double' to 'int' may change value [-Wfloat-conversion] 206 | r->boundary[2] = lp->pos.x + lp->sz.x; | ^~ xlabels.c:207:22: warning: conversion from 'double' to 'int' may change value [-Wfloat-conversion] 207 | r->boundary[3] = lp->pos.y + lp->sz.y; | ^~ xlabels.c: In function 'objplpmks': xlabels.c:221:24: warning: cast from function call of type 'double' to non-matching type 'int' [-Wbad-function-cast] 221 | rect.boundary[0] = (int) floor(objp->pos.x - p.x); | ^ xlabels.c:222:24: warning: cast from function call of type 'double' to non-matching type 'int' [-Wbad-function-cast] 222 | rect.boundary[1] = (int) floor(objp->pos.y - p.y); | ^ xlabels.c:224:24: warning: cast from function call of type 'double' to non-matching type 'int' [-Wbad-function-cast] 224 | rect.boundary[2] = (int) ceil(objp->pos.x + objp->sz.x + p.x); | ^ xlabels.c:226:24: warning: cast from function call of type 'double' to non-matching type 'int' [-Wbad-function-cast] 226 | rect.boundary[3] = (int) ceil(objp->pos.y + objp->sz.y + p.y); | ^ xlabels.c: In function 'getintrsxi': xlabels.c:241:20: warning: comparing floating-point with '==' or '!=' is unsafe [-Wfloat-equal] 241 | if ((op->pos.x == 0.0 && op->pos.y == 0.0) || | ^~ xlabels.c:241:40: warning: comparing floating-point with '==' or '!=' is unsafe [-Wfloat-equal] 241 | if ((op->pos.x == 0.0 && op->pos.y == 0.0) || | ^~ xlabels.c:242:20: warning: comparing floating-point with '==' or '!=' is unsafe [-Wfloat-equal] 242 | (cp->pos.x == 0.0 && cp->pos.y == 0.0)) | ^~ xlabels.c:242:40: warning: comparing floating-point with '==' or '!=' is unsafe [-Wfloat-equal] 242 | (cp->pos.x == 0.0 && cp->pos.y == 0.0)) | ^~ xlabels.c: In function 'recordointrsx': xlabels.c:270:27: warning: unused parameter 'xlp' [-Wunused-parameter] 270 | recordointrsx(XLabels_t * xlp, object_t * op, object_t * cp, Rect_t * rp, | ~~~~~~~~~~~~^~~ xlabels.c: In function 'recordlintrsx': xlabels.c:303:27: warning: unused parameter 'xlp' [-Wunused-parameter] 303 | recordlintrsx(XLabels_t * xlp, object_t * op, object_t * cp, Rect_t * rp, | ~~~~~~~~~~~~^~~ xlabels.c: In function 'xlhdxload': xlabels.c:537:17: warning: conversion to 'int' from 'unsigned int' may change the sign of the result [-Wsign-conversion] 537 | int order = xlhorder(xlp); | ^~~~~~~~ xlabels.c:553:19: warning: conversion to 'int' from 'unsigned int' may change the sign of the result [-Wsign-conversion] 553 | hp->key = hd_hil_s_from_xy(pi, order); | ^~~~~~~~~~~~~~~~ xlabels.c: In function 'placeLabels': xlabels.c:628:27: warning: comparing floating-point with '==' or '!=' is unsafe [-Wfloat-equal] 628 | } else if(bp.area == 0) { | ^~ CCLD liblabel_C.la make[3]: Leaving directory '/build/graphviz/src/graphviz-4.0.0/lib/label' Making all in gvc make[3]: Entering directory '/build/graphviz/src/graphviz-4.0.0/lib/gvc' rm -f gvc.3.pdf; pdffile=gvc.3.pdf; psfile=${pdffile%pdf}ps; \ groff -Tps -man gvc.3 > $psfile || { rm -f $psfile; exit 1; }; \ ps2pdf $psfile && rm -f $psfile || { rm -f $psfile; exit 1; } CC gvloadimage.lo CC gvjobs.lo CC gvevent.lo CC gvplugin.lo CC gvtool_tred.lo CC gvconfig.lo CC gvrender.lo CC gvdevice.lo CC gvlayout.lo CC gvcontext.lo CC gvc.lo CC gvtextlayout.lo CC gvusershape.lo gvevent.c: In function 'gvevent_leave_obj': gvevent.c:224:9: warning: switch missing default case [-Wswitch-default] 224 | switch (agobjkind(obj)) { | ^~~~~~ gvevent.c: In function 'gvevent_enter_obj': gvevent.c:251:9: warning: switch missing default case [-Wswitch-default] 251 | switch (agobjkind(obj)) { | ^~~~~~ gvevent.c: In function 'gvevent_select_current_obj': gvevent.c:328:9: warning: switch missing default case [-Wswitch-default] 328 | switch (agobjkind(obj)) { | ^~~~~~ gvplugin.c: In function 'gvplugin_install': gvevent.c:349:9: warning: switch missing default case [-Wswitch-default] 349 | switch (agobjkind(obj)) { | ^~~~~~ gvevent.c: In function 'gvevent_button_press': gvevent.c:373:23: warning: conversion from 'int' to 'unsigned char' may change value [-Wconversion] 373 | job->button = button; | ^~~~~~ gvevent.c:378:23: warning: conversion from 'int' to 'unsigned char' may change value [-Wconversion] 378 | job->button = button; | ^~~~~~ gvevent.c:384:23: warning: conversion from 'int' to 'unsigned char' may change value [-Wconversion] 384 | job->button = button; | ^~~~~~ gvplugin.c:84:21: warning: conversion to 'size_t' {aka 'long unsigned int'} from 'long int' may change the sign of the result [-Wsign-conversion] 84 | size_t length = end - typestr; | ^~~ gvplugin.c:98:30: warning: conversion to 'size_t' {aka 'long unsigned int'} from 'long int' may change the sign of the result [-Wsign-conversion] 98 | size_t next_length = next_end - next_typestr; | ^~~~~~~~ gvrender.c: In function 'gvrender_resolve_color': gvplugin.c:117:30: warning: conversion to 'size_t' {aka 'long unsigned int'} from 'long int' may change the sign of the result [-Wsign-conversion] 117 | size_t next_length = next_end - next_typestr; | ^~~~~~~~ gvrender.c:201:48: warning: conversion to 'size_t' {aka 'long unsigned int'} from 'int' may change the sign of the result [-Wsign-conversion] 201 | (&tok, features->knowncolors, features->sz_knowncolors, | ~~~~~~~~^~~~~~~~~~~~~~~~ gvplugin.c: In function 'gvplugin_library_load': gvplugin.c:166:62: warning: declaration of 'path' shadows a global declaration [-Wshadow] 166 | gvplugin_library_t *gvplugin_library_load(GVC_t * gvc, char *path) | ~~~~~~^~~~ In file included from gvplugin.c:25: ../../lib/common/types.h:99:7: note: shadowed declaration is here 99 | } path; | ^~~~ gvevent.c:368:5: warning: switch missing default case [-Wswitch-default] 368 | switch (button) { | ^~~~~~ gvevent.c: In function 'gvevent_button_release': gvevent.c:427:52: warning: unused parameter 'button' [-Wunused-parameter] 427 | static void gvevent_button_release(GVJ_t *job, int button, pointf pointer) | ~~~~^~~~~~ gvevent.c:427:67: warning: unused parameter 'pointer' [-Wunused-parameter] 427 | static void gvevent_button_release(GVJ_t *job, int button, pointf pointer) | ~~~~~~~^~~~~~~ gvrender.c: In function 'gvrender_begin_graph': gvrender.c:219:50: warning: unused parameter 'g' [-Wunused-parameter] 219 | void gvrender_begin_graph(GVJ_t * job, graph_t * g) | ~~~~~~~~~~^ gvrender.c: In function 'gvrender_begin_cluster': gvevent.c: In function 'gvevent_motion': gvrender.c:284:52: warning: unused parameter 'sg' [-Wunused-parameter] 284 | void gvrender_begin_cluster(GVJ_t * job, graph_t * sg) | ~~~~~~~~~~^~ gvrender.c: In function 'gvrender_end_cluster': gvevent.c:442:5: warning: switch missing default case [-Wswitch-default] 442 | switch (job->button) { | ^~~~~~ gvrender.c:294:50: warning: unused parameter 'g' [-Wunused-parameter] 294 | void gvrender_end_cluster(GVJ_t * job, graph_t * g) | ~~~~~~~~~~^ gvevent.c: In function 'quit_cb': gvevent.c:466:28: warning: unused parameter 'job' [-Wunused-parameter] 466 | static int quit_cb(GVJ_t * job) | ~~~~~~~~^~~ gvrender.c: In function 'gvrender_begin_node': gvrender.c:344:48: warning: unused parameter 'n' [-Wunused-parameter] 344 | void gvrender_begin_node(GVJ_t * job, node_t * n) | ~~~~~~~~~^ gvrender.c: In function 'gvrender_begin_edge': gvrender.c:364:48: warning: unused parameter 'e' [-Wunused-parameter] 364 | void gvrender_begin_edge(GVJ_t * job, edge_t * e) | ~~~~~~~~~^ gvevent.c: In function 'toggle_fit_cb': gvevent.c:531:22: warning: conversion to 'int' from 'unsigned int' may change the sign of the result [-Wsign-conversion] 531 | dflt_width = job->width; | ^~~ gvevent.c:532:23: warning: conversion to 'int' from 'unsigned int' may change the sign of the result [-Wsign-conversion] 532 | dflt_height = job->height; | ^~~ gvevent.c: In function 'gvevent_modify': gvevent.c:543:37: warning: unused parameter 'job' [-Wunused-parameter] 543 | static void gvevent_modify (GVJ_t * job, const char *name, const char *value) | ~~~~~~~~^~~ gvevent.c:543:54: warning: unused parameter 'name' [-Wunused-parameter] 543 | static void gvevent_modify (GVJ_t * job, const char *name, const char *value) | ~~~~~~~~~~~~^~~~ gvevent.c:543:72: warning: unused parameter 'value' [-Wunused-parameter] 543 | static void gvevent_modify (GVJ_t * job, const char *name, const char *value) | ~~~~~~~~~~~~^~~~~ gvevent.c: In function 'gvevent_delete': gvevent.c:548:37: warning: unused parameter 'job' [-Wunused-parameter] 548 | static void gvevent_delete (GVJ_t * job) | ~~~~~~~~^~~ gvplugin.c: At top level: gvplugin.c:441:8: warning: no previous prototype for 'gvPluginList' [-Wmissing-prototypes] 441 | char **gvPluginList(GVC_t * gvc, const char *kind, int *sz, const char *str) | ^~~~~~~~~~~~ gvplugin.c: In function 'gvPluginList': gvplugin.c:451:23: warning: comparison of integer expressions of different signedness: 'int' and 'long unsigned int' [-Wsign-compare] 451 | for (api = 0; api < ARRAY_SIZE(api_names); api++) { | ^ gvrender.c: In function 'gvrender_ellipse': gvrender.c:531:53: warning: unused parameter 'n' [-Wunused-parameter] 531 | void gvrender_ellipse(GVJ_t * job, pointf * pf, int n, int filled) | ~~~~^ In file included from gvplugin.c:24: ../../lib/common/memory.h:26:58: warning: conversion to 'long unsigned int' from 'int' may change the sign of the result [-Wsign-conversion] 26 | #define RALLOC(size,ptr,type) ((type*)grealloc(ptr,(size)*sizeof(type))) | ^ gvplugin.c:469:20: note: in expansion of macro 'RALLOC' 469 | list = RALLOC(cnt + 1, list, char *); | ^~~~~~ gvplugin.c:441:73: warning: unused parameter 'str' [-Wunused-parameter] 441 | char **gvPluginList(GVC_t * gvc, const char *kind, int *sz, const char *str) | ~~~~~~~~~~~~^~~ gvplugin.c: In function 'gvplugin_write_status': gvplugin.c:495:23: warning: comparison of integer expressions of different signedness: 'int' and 'long unsigned int' [-Wsign-compare] 495 | for (api = 0; api < ARRAY_SIZE(api_names); api++) { | ^ gvplugin.c: In function 'gvplugin_graph': gvplugin.c:546:27: warning: comparison of integer expressions of different signedness: 'int' and 'long unsigned int' [-Wsign-compare] 546 | for (api = 0; api < ARRAY_SIZE(api_names); api++) { | ^ gvplugin.c:725:27: warning: comparison of integer expressions of different signedness: 'int' and 'long unsigned int' [-Wsign-compare] 725 | for (api = 0; api < ARRAY_SIZE(api_names); api++) { | ^ gvjobs.c: In function 'gv_argvlist_set_item': gvjobs.c:112:56: warning: conversion to 'long unsigned int' from 'int' may change the sign of the result [-Wsign-conversion] 112 | list->argv = grealloc(list->argv, (list->alloc)*(sizeof(char*))); | ^ gvusershape.c: In function 'imagetype': gvusershape.c:90:71: warning: conversion to 'size_t' {aka 'long unsigned int'} from 'int' may change the sign of the result [-Wsign-conversion] 90 | if (!memcmp (header, knowntypes[i].template, knowntypes[i].size)) { | ~~~~~~~~~~~~~^~~~~ In file included from ../../lib/common/geom.h:16, from ../../lib/common/types.h:28, from gvusershape.c:28: gvusershape.c: In function 'svg_units_convert': ../../lib/common/arith.h:59:46: warning: conversion to 'unsigned int' from 'int' may change the sign of the result [-Wsign-conversion] 59 | #define ROUND(f) ((f>=0)?(int)(f + .5):(int)(f - .5)) | ~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~ gvusershape.c:150:16: note: in expansion of macro 'ROUND' 150 | return ROUND(n * POINTS_PER_INCH); | ^~~~~ ../../lib/common/arith.h:59:46: warning: conversion to 'unsigned int' from 'int' may change the sign of the result [-Wsign-conversion] 59 | #define ROUND(f) ((f>=0)?(int)(f + .5):(int)(f - .5)) | ~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~ gvusershape.c:152:16: note: in expansion of macro 'ROUND' 152 | return ROUND(n * POINTS_PER_INCH / 96); | ^~~~~ ../../lib/common/arith.h:59:46: warning: conversion to 'unsigned int' from 'int' may change the sign of the result [-Wsign-conversion] 59 | #define ROUND(f) ((f>=0)?(int)(f + .5):(int)(f - .5)) | ~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~ gvusershape.c:154:16: note: in expansion of macro 'ROUND' 154 | return ROUND(n * POINTS_PER_INCH / 6); | ^~~~~ ../../lib/common/arith.h:59:46: warning: conversion to 'unsigned int' from 'int' may change the sign of the result [-Wsign-conversion] 59 | #define ROUND(f) ((f>=0)?(int)(f + .5):(int)(f - .5)) | ~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~ gvusershape.c:156:16: note: in expansion of macro 'ROUND' 156 | return ROUND(n); | ^~~~~ ../../lib/common/arith.h:59:46: warning: conversion to 'unsigned int' from 'int' may change the sign of the result [-Wsign-conversion] 59 | #define ROUND(f) ((f>=0)?(int)(f + .5):(int)(f - .5)) | ~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~ gvusershape.c:158:16: note: in expansion of macro 'ROUND' 158 | return ROUND(n * POINTS_PER_CM); | ^~~~~ ../../lib/common/arith.h:59:46: warning: conversion to 'unsigned int' from 'int' may change the sign of the result [-Wsign-conversion] 59 | #define ROUND(f) ((f>=0)?(int)(f + .5):(int)(f - .5)) | ~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~ gvusershape.c:160:16: note: in expansion of macro 'ROUND' 160 | return ROUND(n * POINTS_PER_MM); | ^~~~~ gvusershape.c: In function 'svg_size': gvusershape.c:253:21: warning: conversion from 'double' to 'unsigned int' may change value [-Wfloat-conversion] 253 | w = x1 - x0 + 1; | ^~ gvusershape.c:254:21: warning: conversion from 'double' to 'unsigned int' may change value [-Wfloat-conversion] 254 | h = y1 - y0 + 1; | ^~ gvusershape.c:262:13: warning: conversion to 'int' from 'unsigned int' may change the sign of the result [-Wsign-conversion] 262 | us->w = w; | ^ gvusershape.c:263:13: warning: conversion to 'int' from 'unsigned int' may change the sign of the result [-Wsign-conversion] 263 | us->h = h; | ^ gvusershape.c: In function 'png_size': gvusershape.c:273:17: warning: conversion to 'int' from 'unsigned int' may change the sign of the result [-Wsign-conversion] 273 | us->w = w; | ^ gvusershape.c:274:17: warning: conversion to 'int' from 'unsigned int' may change the sign of the result [-Wsign-conversion] 274 | us->h = h; | ^ gvusershape.c: In function 'ico_size': gvusershape.c:285:17: warning: conversion to 'int' from 'unsigned int' may change the sign of the result [-Wsign-conversion] 285 | us->w = w; | ^ gvusershape.c:286:17: warning: conversion to 'int' from 'unsigned int' may change the sign of the result [-Wsign-conversion] 286 | us->h = h; | ^ gvusershape.c: In function 'webp_size': gvusershape.c:299:21: warning: conversion to 'int' from 'unsigned int' may change the sign of the result [-Wsign-conversion] 299 | us->w = w; | ^ gvusershape.c:300:21: warning: conversion to 'int' from 'unsigned int' may change the sign of the result [-Wsign-conversion] 300 | us->h = h; | ^ gvusershape.c:306:21: warning: conversion to 'int' from 'unsigned int' may change the sign of the result [-Wsign-conversion] 306 | us->w = w; | ^ gvusershape.c:307:21: warning: conversion to 'int' from 'unsigned int' may change the sign of the result [-Wsign-conversion] 307 | us->h = h; | ^ gvusershape.c: In function 'gif_size': gvusershape.c:319:17: warning: conversion to 'int' from 'unsigned int' may change the sign of the result [-Wsign-conversion] 319 | us->w = w; | ^ gvusershape.c:320:17: warning: conversion to 'int' from 'unsigned int' may change the sign of the result [-Wsign-conversion] 320 | us->h = h; | ^ gvusershape.c: In function 'bmp_size': gvusershape.c:333:17: warning: conversion to 'int' from 'unsigned int' may change the sign of the result [-Wsign-conversion] 333 | us->w = size_x_msw << 16 | size_x_lsw; | ^~~~~~~~~~ gvusershape.c:334:17: warning: conversion to 'int' from 'unsigned int' may change the sign of the result [-Wsign-conversion] 334 | us->h = size_y_msw << 16 | size_y_lsw; | ^~~~~~~~~~ gvusershape.c: In function 'jpeg_size': gvusershape.c:383:25: warning: conversion to 'int' from 'unsigned int' may change the sign of the result [-Wsign-conversion] 383 | us->h = size_x; | ^~~~~~ gvusershape.c:384:25: warning: conversion to 'int' from 'unsigned int' may change the sign of the result [-Wsign-conversion] 384 | us->w = size_y; | ^~~~~~ gvusershape.c:398:25: warning: conversion to 'int' from 'unsigned int' may change the sign of the result [-Wsign-conversion] 398 | us->h = size_x; | ^~~~~~ gvusershape.c:399:25: warning: conversion to 'int' from 'unsigned int' may change the sign of the result [-Wsign-conversion] 399 | us->w = size_y; | ^~~~~~ gvusershape.c: In function 'pdf_size': gvusershape.c:547:17: warning: conversion from 'double' to 'int' may change value [-Wfloat-conversion] 547 | us->x = bb.LL.x; | ^~ gvusershape.c:548:17: warning: conversion from 'double' to 'int' may change value [-Wfloat-conversion] 548 | us->y = bb.LL.y; | ^~ gvusershape.c:549:17: warning: conversion from 'double' to 'int' may change value [-Wfloat-conversion] 549 | us->w = bb.UR.x - bb.LL.x; | ^~ gvusershape.c:550:17: warning: conversion from 'double' to 'int' may change value [-Wfloat-conversion] 550 | us->h = bb.UR.y - bb.LL.y; | ^~ In file included from ../../lib/cgraph/cgraph.h:14, from ../../lib/common/types.h:32: gvusershape.c: In function 'gvusershape_find': ../../lib/cdt/cdt.h:264:50: warning: cast discards 'const' qualifier from pointer target type [-Wcast-qual] 264 | #define dtmatch(d,o) (*(_DT(d)->searchf))((d),(void*)(o),DT_MATCH) | ^ gvusershape.c:584:10: note: in expansion of macro 'dtmatch' 584 | us = dtmatch(ImageDict, name); | ^~~~~~~ gvusershape.c: In function 'gvusershape_size_dpi': gvusershape.c:717:16: warning: conversion from 'double' to 'int' may change value [-Wfloat-conversion] 717 | rv.x = us->w * POINTS_PER_INCH / dpi.x; | ^~ gvusershape.c:718:16: warning: conversion from 'double' to 'int' may change value [-Wfloat-conversion] 718 | rv.y = us->h * POINTS_PER_INCH / dpi.y; | ^~ gvdevice.c: In function 'gvwrite_no_z': gvdevice.c:66:79: warning: conversion to 'size_t' {aka 'long unsigned int'} from 'int' may change the sign of the result [-Wsign-conversion] 66 | job->output_data_allocated = (job->output_data_position + len + 1 + PAGE_ALIGN) & ~PAGE_ALIGN; | ^ gvdevice.c:66:93: warning: conversion to 'size_t' {aka 'long unsigned int'} from 'int' may change the sign of the result [-Wsign-conversion] 66 | job->output_data_allocated = (job->output_data_position + len + 1 + PAGE_ALIGN) & ~PAGE_ALIGN; | ^ gvdevice.c:66:42: warning: conversion from 'size_t' {aka 'long unsigned int'} to 'unsigned int' may change value [-Wconversion] 66 | job->output_data_allocated = (job->output_data_position + len + 1 + PAGE_ALIGN) & ~PAGE_ALIGN; | ^ gvdevice.c:74:38: warning: conversion from 'size_t' {aka 'long unsigned int'} to 'unsigned int' may change value [-Wconversion] 74 | job->output_data_position += len; | ^~~ gvdevice.c: In function 'gvwrite': gvdevice.c:209:38: warning: conversion to 'size_t' {aka 'long unsigned int'} from 'int' may change the sign of the result [-Wsign-conversion] 209 | dfallocated = (dflen + 1 + PAGE_ALIGN) & ~PAGE_ALIGN; | ^ gvdevice.c:209:52: warning: conversion to 'size_t' {aka 'long unsigned int'} from 'int' may change the sign of the result [-Wsign-conversion] 209 | dfallocated = (dflen + 1 + PAGE_ALIGN) & ~PAGE_ALIGN; | ^ gvdevice.c:209:27: warning: conversion from 'size_t' {aka 'long unsigned int'} to 'unsigned int' may change value [-Wconversion] 209 | dfallocated = (dflen + 1 + PAGE_ALIGN) & ~PAGE_ALIGN; | ^ gvdevice.c:217:51: warning: conversion from 'size_t' {aka 'long unsigned int'} to 'uInt' {aka 'unsigned int'} may change value [-Wconversion] 217 | crc = crc32(crc, (const unsigned char*)s, len); | ^~~ gvdevice.c:219:22: warning: cast discards 'const' qualifier from pointer target type [-Wcast-qual] 219 | z->next_in = (unsigned char*)s; | ^ gvdevice.c:220:23: warning: conversion from 'size_t' {aka 'long unsigned int'} to 'uInt' {aka 'unsigned int'} may change value [-Wconversion] 220 | z->avail_in = len; | ^~~ gvdevice.c:230:25: warning: conversion to 'size_t' {aka 'long unsigned int'} from 'long int' may change the sign of the result [-Wsign-conversion] 230 | if ((olen = z->next_out - df)) { | ^ gvdevice.c: In function 'gvputc': gvdevice.c:294:21: warning: conversion from 'int' to 'char' may change value [-Wconversion] 294 | const char cc = c; | ^ gvdevice.c: In function 'gvdevice_finalize': gvdevice.c:352:47: warning: conversion to 'size_t' {aka 'long unsigned int'} from 'long int' may change the sign of the result [-Wsign-conversion] 352 | gvwrite_no_z(job, df, z->next_out - df); | ~~~~~~~~~~~~^~~~ gvdevice.c:360:43: warning: conversion to 'size_t' {aka 'long unsigned int'} from 'long int' may change the sign of the result [-Wsign-conversion] 360 | gvwrite_no_z(job, df, z->next_out - df); | ~~~~~~~~~~~~^~~~ gvdevice.c: In function 'gvprintnum': gvdevice.c:471:13: warning: conversion from 'double' to 'long int' may change value [-Wfloat-conversion] 471 | N = number - 0.5; | ^~~~~~ gvdevice.c:473:13: warning: conversion from 'double' to 'long int' may change value [-Wfloat-conversion] 473 | N = number + 0.5; | ^~~~~~ gvdevice.c:504:12: warning: conversion to 'size_t' {aka 'long unsigned int'} from 'long int' may change the sign of the result [-Wsign-conversion] 504 | *len = tmpbuf+sizeof(maxnegnumstr) - result; | ^~~~~~ CCLD libgvc.la CCLD libgvc_C.la make[3]: Leaving directory '/build/graphviz/src/graphviz-4.0.0/lib/gvc' Making all in ingraphs make[3]: Entering directory '/build/graphviz/src/graphviz-4.0.0/lib/ingraphs' CC ingraphs.lo CCLD libingraphs_C.la make[3]: Leaving directory '/build/graphviz/src/graphviz-4.0.0/lib/ingraphs' Making all in topfish make[3]: Entering directory '/build/graphviz/src/graphviz-4.0.0/lib/topfish' make[3]: Nothing to be done for 'all'. make[3]: Leaving directory '/build/graphviz/src/graphviz-4.0.0/lib/topfish' Making all in glcomp make[3]: Entering directory '/build/graphviz/src/graphviz-4.0.0/lib/glcomp' make[3]: Nothing to be done for 'all'. make[3]: Leaving directory '/build/graphviz/src/graphviz-4.0.0/lib/glcomp' Making all in mingle make[3]: Entering directory '/build/graphviz/src/graphviz-4.0.0/lib/mingle' make[3]: Nothing to be done for 'all'. make[3]: Leaving directory '/build/graphviz/src/graphviz-4.0.0/lib/mingle' Making all in edgepaint make[3]: Entering directory '/build/graphviz/src/graphviz-4.0.0/lib/edgepaint' CC lab_gamut.lo CC edge_distinct_coloring.lo CC furtherest_point.lo CC intersection.lo CC lab.lo CC node_distinct_coloring.lo edge_distinct_coloring.c: In function 'splines_intersect': edge_distinct_coloring.c:39:29: warning: conversion to 'long unsigned int' from 'int' may change the sign of the result [-Wsign-conversion] 39 | x1 = MALLOC(sizeof(double)*len1); | ^ edge_distinct_coloring.c:40:29: warning: conversion to 'long unsigned int' from 'int' may change the sign of the result [-Wsign-conversion] 40 | x2 = MALLOC(sizeof(double)*len2); | ^ intersection.c:112:8: warning: no previous prototype for 'intersection_angle' [-Wmissing-prototypes] 112 | double intersection_angle(double *p1, double *p2, double *q1, double *q2){ | ^~~~~~~~~~~~~~~~~~ edge_distinct_coloring.c:78:38: warning: conversion to 'long unsigned int' from 'int' may change the sign of the result [-Wsign-conversion] 78 | x1 = REALLOC(x1, sizeof(double)*len1); | ^ edge_distinct_coloring.c:85:38: warning: conversion to 'long unsigned int' from 'int' may change the sign of the result [-Wsign-conversion] 85 | x1 = REALLOC(x1, sizeof(double)*len1); | ^ intersection.c: In function 'intersection_angle': intersection.c:166:15: warning: comparing floating-point with '==' or '!=' is unsafe [-Wfloat-equal] 166 | if (p1[0] == q1[0] && p1[1] == q1[1]){ | ^~ intersection.c:166:33: warning: comparing floating-point with '==' or '!=' is unsafe [-Wfloat-equal] 166 | if (p1[0] == q1[0] && p1[1] == q1[1]){ | ^~ intersection.c:168:22: warning: comparing floating-point with '==' or '!=' is unsafe [-Wfloat-equal] 168 | } else if (p1[0] == q2[0] && p1[1] == q2[1]){ | ^~ intersection.c:168:40: warning: comparing floating-point with '==' or '!=' is unsafe [-Wfloat-equal] 168 | } else if (p1[0] == q2[0] && p1[1] == q2[1]){ | ^~ intersection.c:170:22: warning: comparing floating-point with '==' or '!=' is unsafe [-Wfloat-equal] 170 | } else if (p2[0] == q1[0] && p2[1] == q1[1]){ | ^~ intersection.c:170:40: warning: comparing floating-point with '==' or '!=' is unsafe [-Wfloat-equal] 170 | } else if (p2[0] == q1[0] && p2[1] == q1[1]){ | ^~ edge_distinct_coloring.c:116:38: warning: conversion to 'long unsigned int' from 'int' may change the sign of the result [-Wsign-conversion] 116 | x2 = REALLOC(x2, sizeof(double)*len2); | ^ intersection.c:172:22: warning: comparing floating-point with '==' or '!=' is unsafe [-Wfloat-equal] 172 | } else if (p2[0] == q2[0] && p2[1] == q2[1]){ | ^~ intersection.c:172:40: warning: comparing floating-point with '==' or '!=' is unsafe [-Wfloat-equal] 172 | } else if (p2[0] == q2[0] && p2[1] == q2[1]){ | ^~ edge_distinct_coloring.c:123:38: warning: conversion to 'long unsigned int' from 'int' may change the sign of the result [-Wsign-conversion] 123 | x2 = REALLOC(x2, sizeof(double)*len2); | ^ edge_distinct_coloring.c: At top level: edge_distinct_coloring.c:145:11: warning: no previous prototype for 'edge_distinct_coloring' [-Wmissing-prototypes] 145 | Agraph_t* edge_distinct_coloring(char *color_scheme, char *lightness, Agraph_t* g, double angle, double accuracy, int check_edges_with_same_endpoint, int seed){ | ^~~~~~~~~~~~~~~~~~~~~~ lab.c: In function 'color_lab_init': furtherest_point.c: In function 'furtherest_point': lab.c:35:11: warning: conversion from 'double' to 'signed char' may change value [-Wfloat-conversion] 35 | lab.l = l; lab.a = a; lab.b = b; | ^ lab.c:35:22: warning: conversion from 'double' to 'signed char' may change value [-Wfloat-conversion] 35 | lab.l = l; lab.a = a; lab.b = b; | ^ lab.c:35:33: warning: conversion from 'double' to 'signed char' may change value [-Wfloat-conversion] 35 | lab.l = l; lab.a = a; lab.b = b; | ^ In file included from ../../lib/sparse/general.h:27, from node_distinct_coloring.c:10: node_distinct_coloring.c: In function 'node_distinct_coloring_internal2': furtherest_point.c:88:50: warning: conversion to 'long unsigned int' from 'int' may change the sign of the result [-Wsign-conversion] 88 | if (!(*argmax)) *argmax = MALLOC(sizeof(double)*dim); | ^ furtherest_point.c:89:41: warning: conversion to 'long unsigned int' from 'int' may change the sign of the result [-Wsign-conversion] 89 | memcpy(*argmax, center, sizeof(double)*dim); | ^ furtherest_point.c:91:33: warning: conversion to 'long unsigned int' from 'int' may change the sign of the result [-Wsign-conversion] 91 | candidates = MALLOC(sizeof(qt)*ncandidates_max); | ^ furtherest_point.c:92:34: warning: conversion to 'long unsigned int' from 'int' may change the sign of the result [-Wsign-conversion] 92 | candidates2 = MALLOC(sizeof(qt)*ncandidates2_max); | ^ ../../lib/common/arith.h:36:25: warning: conversion from 'double' to 'int' may change value [-Wfloat-conversion] 36 | #define MAX(a,b) ((a)>(b)?(a):(b)) | ^ node_distinct_coloring.c:44:15: note: in expansion of macro 'MAX' 44 | max_level = MAX(1, -log(accuracy)/log(2.)); | ^~~ lab.c: In function 'LAB2RGB_real_01': lab.c:76:11: warning: conversion from 'double' to 'signed char' may change value [-Wfloat-conversion] 76 | lab.l = color[0]; | ^~~~~ furtherest_point.c:130:62: warning: conversion to 'long unsigned int' from 'int' may change the sign of the result [-Wsign-conversion] 130 | memcpy(*argmax, qt->qts[ii]->center, sizeof(double)*dim); | ^ lab.c:77:11: warning: conversion from 'double' to 'signed char' may change value [-Wfloat-conversion] 77 | lab.a = color[1]; | ^~~~~ lab.c:78:11: warning: conversion from 'double' to 'signed char' may change value [-Wfloat-conversion] 78 | lab.b = color[2]; | ^~~~~ node_distinct_coloring.c:98:9: warning: conversion to 'unsigned int' from 'int' may change the sign of the result [-Wsign-conversion] 98 | srand(seed); | ^~~~ node_distinct_coloring.c:101:28: warning: conversion to 'long unsigned int' from 'int' may change the sign of the result [-Wsign-conversion] 101 | x = MALLOC(sizeof(double)*cdim*n); | ^ node_distinct_coloring.c:101:33: warning: conversion to 'long unsigned int' from 'int' may change the sign of the result [-Wsign-conversion] 101 | x = MALLOC(sizeof(double)*cdim*n); | ^ node_distinct_coloring.c:102:45: warning: conversion to 'long unsigned int' from 'int' may change the sign of the result [-Wsign-conversion] 102 | if (weightedQ) wgt = MALLOC(sizeof(double)*n); | ^ furtherest_point.c:137:64: warning: conversion to 'long unsigned int' from 'int' may change the sign of the result [-Wsign-conversion] 137 | candidates2 = REALLOC(candidates2, sizeof(QuadTree)*ncandidates2_max); | ^ node_distinct_coloring.c:107:75: warning: comparing floating-point with '==' or '!=' is unsafe [-Wfloat-equal] 107 | while (iter++ < iter_max && (color_diff > color_diff_old || (color_diff == color_diff_old && color_diff_sum > color_diff_sum_old))){ | ^~ furtherest_point.c: In function 'furtherest_point_in_list': node_distinct_coloring.c:114:67: warning: conversion to 'long unsigned int' from 'int' may change the sign of the result [-Wsign-conversion] 114 | memcpy(&(x[k*cdim]), &(colors[ja[j]*cdim]), sizeof(double)*cdim); | ^ furtherest_point.c:216:50: warning: conversion to 'long unsigned int' from 'int' may change the sign of the result [-Wsign-conversion] 216 | if (!(*argmax)) *argmax = MALLOC(sizeof(double)*dim); | ^ furtherest_point.c:217:42: warning: conversion to 'long unsigned int' from 'int' may change the sign of the result [-Wsign-conversion] 217 | memcpy(*argmax, average, sizeof(double)*dim); | ^ furtherest_point.c:219:33: warning: conversion to 'long unsigned int' from 'int' may change the sign of the result [-Wsign-conversion] 219 | candidates = MALLOC(sizeof(qt)*ncandidates_max); | ^ furtherest_point.c:220:34: warning: conversion to 'long unsigned int' from 'int' may change the sign of the result [-Wsign-conversion] 220 | candidates2 = MALLOC(sizeof(qt)*ncandidates2_max); | ^ furtherest_point.c:258:63: warning: conversion to 'long unsigned int' from 'int' may change the sign of the result [-Wsign-conversion] 258 | memcpy(*argmax, qt->qts[ii]->average, sizeof(double)*dim); | ^ furtherest_point.c:265:64: warning: conversion to 'long unsigned int' from 'int' may change the sign of the result [-Wsign-conversion] 265 | candidates2 = REALLOC(candidates2, sizeof(QuadTree)*ncandidates2_max); | ^ node_distinct_coloring.c: In function 'node_distinct_coloring': node_distinct_coloring.c:229:13: warning: declaration of 'colors' shadows a parameter [-Wshadow] 229 | double *colors = NULL; | ^~~~~~ node_distinct_coloring.c:183:49: note: shadowed declaration is here 183 | int *cdim0, double **colors) { | ~~~~~~~~~^~~~~~ lab.c: In function 'color_blend_rgb2lab': lab.c:240:33: warning: conversion to 'long unsigned int' from 'int' may change the sign of the result [-Wsign-conversion] 240 | lab = malloc(sizeof(color_lab)*MAX(nc,1)); | ^ node_distinct_coloring.c:248:36: warning: conversion to 'long unsigned int' from 'int' may change the sign of the result [-Wsign-conversion] 248 | *colors = MALLOC(sizeof(double)*cdim*n); | ^ node_distinct_coloring.c:248:41: warning: conversion to 'long unsigned int' from 'int' may change the sign of the result [-Wsign-conversion] 248 | *colors = MALLOC(sizeof(double)*cdim*n); | ^ lab.c:251:32: warning: conversion to 'long unsigned int' from 'int' may change the sign of the result [-Wsign-conversion] 251 | dists = malloc(sizeof(double)*MAX(1, nc)); | ^ node_distinct_coloring.c:250:31: warning: conversion to 'long unsigned int' from 'int' may change the sign of the result [-Wsign-conversion] 250 | ctmp = MALLOC(sizeof(double)*cdim*n); | ^ node_distinct_coloring.c:250:36: warning: conversion to 'long unsigned int' from 'int' may change the sign of the result [-Wsign-conversion] 250 | ctmp = MALLOC(sizeof(double)*cdim*n); | ^ node_distinct_coloring.c:264:65: warning: conversion to 'long unsigned int' from 'int' may change the sign of the result [-Wsign-conversion] 264 | memcpy(&((*colors)[comps[j]*cdim]), &(ctmp[jj*cdim]), cdim*sizeof(double)); | ^ lab.c:264:37: warning: conversion to 'long unsigned int' from 'int' may change the sign of the result [-Wsign-conversion] 264 | *colors0 = malloc(sizeof(double)*maxpoints*cdim); | ^ lab.c:264:47: warning: conversion to 'long unsigned int' from 'int' may change the sign of the result [-Wsign-conversion] 264 | *colors0 = malloc(sizeof(double)*maxpoints*cdim); | ^ CCLD liblab_gamut.la CCLD libedgepaint_C.la make[3]: Leaving directory '/build/graphviz/src/graphviz-4.0.0/lib/edgepaint' Making all in circogen make[3]: Entering directory '/build/graphviz/src/graphviz-4.0.0/lib/circogen' CC circularinit.lo CC nodelist.lo CC block.lo CC edgelist.lo CC circular.lo CC deglist.lo CC blocktree.lo CC blockpath.lo CC circpos.lo circpos.c: In function 'getRotation': deglist.c: In function 'mkItem': circpos.c:47:38: warning: unused parameter 'g' [-Wunused-parameter] 47 | getRotation(block_t * sn, Agraph_t * g, double x, double y, double theta) | ~~~~~~~~~~~^ circpos.c: In function 'applyDelta': circpos.c:134:20: warning: comparing floating-point with '==' or '!=' is unsafe [-Wfloat-equal] 134 | if (rotate != 0) { | ^~ deglist.c:23:31: warning: unused parameter 'd' [-Wunused-parameter] 23 | static degitem *mkItem(Dt_t * d, degitem * obj, Dtdisc_t * disc) | ~~~~~~~^ deglist.c:23:60: warning: unused parameter 'disc' [-Wunused-parameter] 23 | static degitem *mkItem(Dt_t * d, degitem * obj, Dtdisc_t * disc) | ~~~~~~~~~~~^~~~ deglist.c: In function 'freeItem': deglist.c:32:29: warning: unused parameter 'd' [-Wunused-parameter] 32 | static void freeItem(Dt_t * d, degitem * obj, Dtdisc_t * disc) | ~~~~~~~^ deglist.c:32:58: warning: unused parameter 'disc' [-Wunused-parameter] 32 | static void freeItem(Dt_t * d, degitem * obj, Dtdisc_t * disc) | ~~~~~~~~~~~^~~~ deglist.c: In function 'cmpDegree': deglist.c:37:29: warning: unused parameter 'd' [-Wunused-parameter] 37 | static int cmpDegree(Dt_t * d, int *key1, int *key2, Dtdisc_t * disc) | ~~~~~~~^ deglist.c:37:65: warning: unused parameter 'disc' [-Wunused-parameter] 37 | static int cmpDegree(Dt_t * d, int *key1, int *key2, Dtdisc_t * disc) | ~~~~~~~~~~~^~~~ circpos.c: In function 'positionChildren': circpos.c:277:28: warning: comparing floating-point with '==' or '!=' is unsafe [-Wfloat-equal] 277 | if (childAngle != 0) { | ^~ nodelist.c: In function 'node_position': circpos.c: In function 'position': circpos.c:336:65: warning: declaration of 'path' shadows a global declaration [-Wshadow] 336 | position(Agraph_t * g, int childCount, int length, nodelist_t * path, | ~~~~~~~~~~~~~^~~~ In file included from ../../lib/common/render.h:29, from ../../lib/circogen/circular.h:13, from ../../lib/circogen/blockpath.h:17, from circpos.c:19: ../../lib/common/types.h:99:7: note: shadowed declaration is here 99 | } path; | ^~~~ nodelist.c:208:32: warning: unused parameter 'list' [-Wunused-parameter] 208 | int node_position(nodelist_t * list, Agnode_t * n) | ~~~~~~~~~~~~~^~~~ In file included from ../../lib/common/render.h:33: ../../lib/common/memory.h:20:38: warning: conversion to 'size_t' {aka 'long unsigned int'} from 'int' may change the sign of the result [-Wsign-conversion] 20 | #define N_NEW(n,t) (t*)gcalloc((n),sizeof(t)) | ^~~ circpos.c:346:26: note: in expansion of macro 'N_NEW' 346 | posinfo_t* parents = N_NEW(childCount, posinfo_t); | ^~~~~ In file included from ../../lib/common/render.h:33, from ../../lib/circogen/circular.h:13, from ../../lib/circogen/blockpath.h:17, from blockpath.c:12: blockpath.c: In function 'find_pair_edges': ../../lib/common/memory.h:23:38: warning: conversion to 'size_t' {aka 'long unsigned int'} from 'int' may change the sign of the result [-Wsign-conversion] 23 | #define N_GNEW(n,t) (t*)gcalloc((n),sizeof(t)) | ^~~ blockpath.c:103:22: note: in expansion of macro 'N_GNEW' 103 | neighbors_with = N_GNEW(node_degree, Agnode_t *); | ^~~~~~ ../../lib/common/memory.h:23:38: warning: conversion to 'size_t' {aka 'long unsigned int'} from 'int' may change the sign of the result [-Wsign-conversion] 23 | #define N_GNEW(n,t) (t*)gcalloc((n),sizeof(t)) | ^~~ blockpath.c:104:25: note: in expansion of macro 'N_GNEW' 104 | neighbors_without = N_GNEW(node_degree, Agnode_t *); | ^~~~~~ In file included from ../../lib/common/render.h:33, from ../../lib/circogen/circular.h:13, from circularinit.c:25: circularinit.c: In function 'circular_init_node_edge': circpos.c: At top level: circpos.c:457:6: warning: no previous prototype for 'circPos' [-Wmissing-prototypes] 457 | void circPos(Agraph_t * g, block_t * sn, circ_state * state) | ^~~~~~~ circularinit.c:47:24: warning: conversion to 'size_t' {aka 'long unsigned int'} from 'int' may change the sign of the result [-Wsign-conversion] 47 | ndata* alg = N_NEW(agnnodes(g), ndata); ../../lib/common/memory.h:20:39: note: in definition of macro 'N_NEW' 20 | #define N_NEW(n,t) (t*)gcalloc((n),sizeof(t)) | ^ circularinit.c:49:43: warning: conversion to 'size_t' {aka 'long unsigned int'} from 'int' may change the sign of the result [-Wsign-conversion] 49 | GD_neato_nlist(g) = N_NEW(agnnodes(g) + 1, node_t *); ../../lib/common/memory.h:20:39: note: in definition of macro 'N_NEW' 20 | #define N_NEW(n,t) (t*)gcalloc((n),sizeof(t)) | ^ circularinit.c: In function 'makeDerivedNode': ../../lib/common/memory.h:20:38: warning: conversion to 'size_t' {aka 'long unsigned int'} from 'int' may change the sign of the result [-Wsign-conversion] 20 | #define N_NEW(n,t) (t*)gcalloc((n),sizeof(t)) | ^~~ circularinit.c:84:21: note: in expansion of macro 'N_NEW' 84 | ND_pos(n) = N_NEW(Ndim, double); | ^~~~~ blockpath.c: In function 'find_longest_path': blockpath.c:279:17: warning: declaration of 'path' shadows a global declaration [-Wshadow] 279 | nodelist_t *path; | ^~~~ In file included from ../../lib/common/render.h:29: ../../lib/common/types.h:99:7: note: shadowed declaration is here 99 | } path; | ^~~~ edgelist.c: In function 'mkItem': edgelist.c:15:36: warning: unused parameter 'd' [-Wunused-parameter] 15 | static edgelistitem *mkItem(Dt_t * d, edgelistitem * obj, Dtdisc_t * disc) | ~~~~~~~^ edgelist.c:15:70: warning: unused parameter 'disc' [-Wunused-parameter] 15 | static edgelistitem *mkItem(Dt_t * d, edgelistitem * obj, Dtdisc_t * disc) | ~~~~~~~~~~~^~~~ edgelist.c: In function 'freeItem': edgelist.c:23:29: warning: unused parameter 'd' [-Wunused-parameter] 23 | static void freeItem(Dt_t * d, edgelistitem * obj, Dtdisc_t * disc) | ~~~~~~~^ edgelist.c:23:63: warning: unused parameter 'disc' [-Wunused-parameter] 23 | static void freeItem(Dt_t * d, edgelistitem * obj, Dtdisc_t * disc) | ~~~~~~~~~~~^~~~ edgelist.c: In function 'cmpItem': edgelist.c:29:16: warning: unused parameter 'd' [-Wunused-parameter] 29 | cmpItem(Dt_t * d, Agedge_t ** key1, Agedge_t ** key2, Dtdisc_t * disc) | ~~~~~~~^ edgelist.c:29:66: warning: unused parameter 'disc' [-Wunused-parameter] 29 | cmpItem(Dt_t * d, Agedge_t ** key1, Agedge_t ** key2, Dtdisc_t * disc) | ~~~~~~~~~~~^~~~ CCLD libcircogen_C.la make[3]: Leaving directory '/build/graphviz/src/graphviz-4.0.0/lib/circogen' Making all in dotgen make[3]: Entering directory '/build/graphviz/src/graphviz-4.0.0/lib/dotgen' CC class1.lo CC cluster.lo CC compound.lo CC conc.lo CC decomp.lo CC fastgr.lo CC dotinit.lo CC acyclic.lo CC class2.lo CC flat.lo CC position.lo CC dotsplines.lo CC sameport.lo CC mincross.lo CC rank.lo CC aspect.lo class2.c: In function 'plain_vnode': class2.c:48:35: warning: unused parameter 'orig' [-Wunused-parameter] 48 | plain_vnode(graph_t * g, edge_t * orig) | ~~~~~~~~~^~~~ class2.c: In function 'leader_of': class2.c:57:21: warning: unused parameter 'g' [-Wunused-parameter] 57 | leader_of(graph_t * g, node_t * v) | ~~~~~~~~~~^ dotinit.c: In function 'dot_init_edge': dotinit.c:68:23: warning: conversion from 'int' to 'unsigned char' may change value [-Wconversion] 68 | ED_showboxes(e) = late_int(e, E_showboxes, 0, 0); | ^~~~~~~~ dotinit.c:69:20: warning: conversion from 'int' to 'short unsigned int' may change value [-Wconversion] 69 | ED_minlen(e) = late_int(e, E_minlen, 1, 0); | ^~~~~~~~ In file included from dotsplines.c:17: dotsplines.c: In function 'swap_bezier': ../../lib/common/memory.h:23:38: warning: conversion to 'size_t' {aka 'long unsigned int'} from 'int' may change the sign of the result [-Wsign-conversion] 23 | #define N_GNEW(n,t) (t*)gcalloc((n),sizeof(t)) | ^~~ dotsplines.c:199:12: note: in expansion of macro 'N_GNEW' 199 | list = N_GNEW(sz, pointf); | ^~~~~~ dotsplines.c: In function 'swap_spline': ../../lib/common/memory.h:23:38: warning: conversion to 'size_t' {aka 'long unsigned int'} from 'int' may change the sign of the result [-Wsign-conversion] 23 | #define N_GNEW(n,t) (t*)gcalloc((n),sizeof(t)) | ^~~ dotsplines.c:224:12: note: in expansion of macro 'N_GNEW' 224 | list = N_GNEW(sz, bezier); | ^~~~~~ In file included from ../../lib/common/geom.h:16, from ../../lib/common/types.h:28, from ../../lib/common/render.h:29, from ../../lib/dotgen/dot.h:13, from dotsplines.c:18: dotsplines.c: In function '_dot_splines': ../../lib/common/arith.h:31:25: warning: conversion from 'double' to 'int' may change value [-Wfloat-conversion] 31 | #define MIN(a,b) ((a)<(b)?(a):(b)) | ^ dotsplines.c:363:28: note: in expansion of macro 'MIN' 363 | sd.LeftBound = MIN(sd.LeftBound, (ND_coord(n).x - ND_lw(n))); | ^~~ In file included from ../../lib/common/render.h:33, from ../../lib/dotgen/dot.h:13, from sameport.c:17: sameport.c: In function 'sameedge': ../../lib/common/arith.h:36:25: warning: conversion from 'double' to 'int' may change value [-Wfloat-conversion] 36 | #define MAX(a,b) ((a)>(b)?(a):(b)) | ^ dotsplines.c:365:29: note: in expansion of macro 'MAX' 365 | sd.RightBound = MAX(sd.RightBound, (ND_coord(n).x + ND_rw(n))); | ^~~ In file included from ../../lib/common/render.h:33, from ../../lib/dotgen/dot.h:13, from dotinit.c:13: dotinit.c: In function 'attachPos': ../../lib/common/memory.h:25:62: warning: conversion to 'long unsigned int' from 'int' may change the sign of the result [-Wsign-conversion] 25 | #define ALLOC(size,ptr,type) (ptr? (type*)grealloc(ptr,(size)*sizeof(type)):(type*)gmalloc((size)*sizeof(type))) | ^ ../../lib/common/types.h:258:44: note: in expansion of macro 'ALLOC' 258 | #define elist_append(item,L) do {L.list = ALLOC(L.size + 2,L.list,edge_t*); L.list[L.size++] = item; L.list[L.size] = NULL;} while(0) | ^~~~~ sameport.c:80:13: note: in expansion of macro 'elist_append' 80 | elist_append(e, same[i].l); | ^~~~~~~~~~~~ dotinit.c:348:25: warning: conversion to 'size_t' {aka 'long unsigned int'} from 'int' may change the sign of the result [-Wsign-conversion] 348 | double* ps = N_NEW(2*agnnodes(g), double); ../../lib/common/memory.h:20:39: note: in definition of macro 'N_NEW' 20 | #define N_NEW(n,t) (t*)gcalloc((n),sizeof(t)) | ^ ../../lib/common/memory.h:25:98: warning: conversion to 'long unsigned int' from 'int' may change the sign of the result [-Wsign-conversion] 25 | #define ALLOC(size,ptr,type) (ptr? (type*)grealloc(ptr,(size)*sizeof(type)):(type*)gmalloc((size)*sizeof(type))) | ^ ../../lib/common/types.h:258:44: note: in expansion of macro 'ALLOC' 258 | #define elist_append(item,L) do {L.list = ALLOC(L.size + 2,L.list,edge_t*); L.list[L.size++] = item; L.list[L.size] = NULL;} while(0) | ^~~~~ sameport.c:80:13: note: in expansion of macro 'elist_append' 80 | elist_append(e, same[i].l); | ^~~~~~~~~~~~ ../../lib/common/memory.h:25:62: warning: conversion to 'long unsigned int' from 'int' may change the sign of the result [-Wsign-conversion] 25 | #define ALLOC(size,ptr,type) (ptr? (type*)grealloc(ptr,(size)*sizeof(type)):(type*)gmalloc((size)*sizeof(type))) | ^ dotsplines.c:137:28: note: in expansion of macro 'ALLOC' 137 | #define GROWEDGES (edges = ALLOC (n_edges + CHUNK, edges, edge_t*)) | ^~~~~ dotsplines.c:388:21: note: in expansion of macro 'GROWEDGES' 388 | GROWEDGES; | ^~~~~~~~~ dotinit.c: In function 'copyCluster': ../../lib/common/memory.h:25:98: warning: conversion to 'long unsigned int' from 'int' may change the sign of the result [-Wsign-conversion] 25 | #define ALLOC(size,ptr,type) (ptr? (type*)grealloc(ptr,(size)*sizeof(type)):(type*)gmalloc((size)*sizeof(type))) | ^ dotsplines.c:137:28: note: in expansion of macro 'ALLOC' 137 | #define GROWEDGES (edges = ALLOC (n_edges + CHUNK, edges, edge_t*)) | ^~~~~ dotsplines.c:388:21: note: in expansion of macro 'GROWEDGES' 388 | GROWEDGES; | ^~~~~~~~~ dotinit.c:391:32: warning: conversion to 'size_t' {aka 'long unsigned int'} from 'int' may change the sign of the result [-Wsign-conversion] 391 | GD_clust(cl) = N_NEW(nclust+1,Agraph_t*); ../../lib/common/memory.h:20:39: note: in definition of macro 'N_NEW' 20 | #define N_NEW(n,t) (t*)gcalloc((n),sizeof(t)) | ^ ../../lib/common/memory.h:25:62: warning: conversion to 'long unsigned int' from 'int' may change the sign of the result [-Wsign-conversion] 25 | #define ALLOC(size,ptr,type) (ptr? (type*)grealloc(ptr,(size)*sizeof(type)):(type*)gmalloc((size)*sizeof(type))) | ^ dotsplines.c:137:28: note: in expansion of macro 'ALLOC' 137 | #define GROWEDGES (edges = ALLOC (n_edges + CHUNK, edges, edge_t*)) | ^~~~~ dotsplines.c:395:25: note: in expansion of macro 'GROWEDGES' 395 | GROWEDGES; | ^~~~~~~~~ dotinit.c: In function 'copyClusterInfo': ../../lib/common/memory.h:25:98: warning: conversion to 'long unsigned int' from 'int' may change the sign of the result [-Wsign-conversion] 25 | #define ALLOC(size,ptr,type) (ptr? (type*)grealloc(ptr,(size)*sizeof(type)):(type*)gmalloc((size)*sizeof(type))) | ^ dotsplines.c:137:28: note: in expansion of macro 'ALLOC' 137 | #define GROWEDGES (edges = ALLOC (n_edges + CHUNK, edges, edge_t*)) | ^~~~~ dotsplines.c:395:25: note: in expansion of macro 'GROWEDGES' 395 | GROWEDGES; | ^~~~~~~~~ dotinit.c:417:34: warning: conversion to 'size_t' {aka 'long unsigned int'} from 'int' may change the sign of the result [-Wsign-conversion] 417 | GD_clust(root) = N_NEW(nclust+1,Agraph_t*); ../../lib/common/memory.h:20:39: note: in definition of macro 'N_NEW' 20 | #define N_NEW(n,t) (t*)gcalloc((n),sizeof(t)) | ^ ../../lib/common/memory.h:25:62: warning: conversion to 'long unsigned int' from 'int' may change the sign of the result [-Wsign-conversion] 25 | #define ALLOC(size,ptr,type) (ptr? (type*)grealloc(ptr,(size)*sizeof(type)):(type*)gmalloc((size)*sizeof(type))) | ^ dotsplines.c:137:28: note: in expansion of macro 'ALLOC' 137 | #define GROWEDGES (edges = ALLOC (n_edges + CHUNK, edges, edge_t*)) | ^~~~~ dotsplines.c:412:25: note: in expansion of macro 'GROWEDGES' 412 | GROWEDGES; | ^~~~~~~~~ ../../lib/common/memory.h:25:98: warning: conversion to 'long unsigned int' from 'int' may change the sign of the result [-Wsign-conversion] 25 | #define ALLOC(size,ptr,type) (ptr? (type*)grealloc(ptr,(size)*sizeof(type)):(type*)gmalloc((size)*sizeof(type))) | ^ dotsplines.c:137:28: note: in expansion of macro 'ALLOC' 137 | #define GROWEDGES (edges = ALLOC (n_edges + CHUNK, edges, edge_t*)) | ^~~~~ dotsplines.c:412:25: note: in expansion of macro 'GROWEDGES' 412 | GROWEDGES; | ^~~~~~~~~ dotsplines.c:424:18: warning: conversion to 'size_t' {aka 'long unsigned int'} from 'int' may change the sign of the result [-Wsign-conversion] 424 | qsort(edges, n_edges, sizeof(edges[0]), (qsort_cmpf)edgecmp); | ^~~~~~~ dotsplines.c:427:30: warning: conversion to 'size_t' {aka 'long unsigned int'} from 'int' may change the sign of the result [-Wsign-conversion] 427 | P->boxes = N_NEW(n_nodes + 20 * 2 * NSUB, boxf); ../../lib/common/memory.h:20:39: note: in definition of macro 'N_NEW' 20 | #define N_NEW(n,t) (t*)gcalloc((n),sizeof(t)) | ^ sameport.c: In function 'sameport': sameport.c:158:9: warning: conversion from 'double' to 'unsigned char' may change value [-Wfloat-conversion] 158 | (MC_SCALE * (ND_lw(u) + prt.p.x)) / (ND_lw(u) + ND_rw(u)); | ^ ../../lib/common/memory.h:20:38: warning: conversion to 'size_t' {aka 'long unsigned int'} from 'int' may change the sign of the result [-Wsign-conversion] 20 | #define N_NEW(n,t) (t*)gcalloc((n),sizeof(t)) | ^~~ dotsplines.c:428:19: note: in expansion of macro 'N_NEW' 428 | sd.Rank_box = N_NEW(i, boxf); | ^~~~~ In file included from ../../lib/common/render.h:33, from ../../lib/dotgen/dot.h:13, from flat.c:12: flat.c: In function 'make_vn_slot': ../../lib/common/memory.h:25:62: warning: conversion to 'long unsigned int' from 'int' may change the sign of the result [-Wsign-conversion] 25 | #define ALLOC(size,ptr,type) (ptr? (type*)grealloc(ptr,(size)*sizeof(type)):(type*)gmalloc((size)*sizeof(type))) | ^ flat.c:21:9: note: in expansion of macro 'ALLOC' 21 | ALLOC(GD_rank(g)[r].n + 2, GD_rank(g)[r].v, node_t *); | ^~~~~ ../../lib/common/memory.h:25:98: warning: conversion to 'long unsigned int' from 'int' may change the sign of the result [-Wsign-conversion] 25 | #define ALLOC(size,ptr,type) (ptr? (type*)grealloc(ptr,(size)*sizeof(type)):(type*)gmalloc((size)*sizeof(type))) | ^ flat.c:21:9: note: in expansion of macro 'ALLOC' 21 | ALLOC(GD_rank(g)[r].n + 2, GD_rank(g)[r].v, node_t *); | ^~~~~ dotsplines.c:477:21: warning: declaration of 'e0' shadows a previous local [-Wshadow] 477 | edge_t* e0; | ^~ dotsplines.c:320:17: note: shadowed declaration is here 320 | edge_t *e, *e0, *e1, *ea, *eb, *le0, *le1, **edges = NULL; | ^~ ../../lib/common/memory.h:20:38: warning: conversion to 'size_t' {aka 'long unsigned int'} from 'int' may change the sign of the result [-Wsign-conversion] 20 | #define N_NEW(n,t) (t*)gcalloc((n),sizeof(t)) | ^~~ dotsplines.c:482:28: note: in expansion of macro 'N_NEW' 482 | edgelist = N_NEW(cnt, edge_t*); | ^~~~~ ../../lib/common/types.h:482:21: warning: conversion from 'double' to 'int' may change value [-Wfloat-conversion] 482 | #define ND_coord(n) (((Agnodeinfo_t*)AGDATA(n))->coord) | ^ dotsplines.c:496:29: note: in expansion of macro 'ND_coord' 496 | sizey = ND_coord(GD_rank(g)[r-1].v[0]).y - ND_coord(n).y; | ^~~~~~~~ ../../lib/common/types.h:492:18: warning: conversion from 'double' to 'int' may change value [-Wfloat-conversion] 492 | #define ND_ht(n) (((Agnodeinfo_t*)AGDATA(n))->ht) | ^ dotsplines.c:498:29: note: in expansion of macro 'ND_ht' 498 | sizey = ND_ht(n); | ^~~~~ ../../lib/common/types.h:482:21: warning: conversion from 'double' to 'int' may change value [-Wfloat-conversion] 482 | #define ND_coord(n) (((Agnodeinfo_t*)AGDATA(n))->coord) | ^ dotsplines.c:501:25: note: in expansion of macro 'ND_coord' 501 | sizey = ND_coord(n).y - ND_coord(GD_rank(g)[r+1].v[0]).y; | ^~~~~~~~ ../../lib/common/types.h:482:21: warning: conversion from 'double' to 'int' may change value [-Wfloat-conversion] 482 | #define ND_coord(n) (((Agnodeinfo_t*)AGDATA(n))->coord) | ^ dotsplines.c:504:27: note: in expansion of macro 'ND_coord' 504 | int upy = ND_coord(GD_rank(g)[r-1].v[0]).y - ND_coord(n).y; | ^~~~~~~~ ../../lib/common/types.h:482:21: warning: conversion from 'double' to 'int' may change value [-Wfloat-conversion] 482 | #define ND_coord(n) (((Agnodeinfo_t*)AGDATA(n))->coord) | ^ dotsplines.c:505:28: note: in expansion of macro 'ND_coord' 505 | int dwny = ND_coord(n).y - ND_coord(GD_rank(g)[r+1].v[0]).y; | ^~~~~~~~ In file included from ../../lib/common/render.h:29: flat.c: In function 'flat_node': ../../lib/common/types.h:482:21: warning: conversion from 'double' to 'int' may change value [-Wfloat-conversion] 482 | #define ND_coord(n) (((Agnodeinfo_t*)AGDATA(n))->coord) | ^ flat.c:149:16: note: in expansion of macro 'ND_coord' 149 | ypos = ND_coord(n).y - GD_rank(g)[r - 1].ht1; | ^~~~~~~~ ../../lib/common/types.h:482:21: warning: conversion from 'double' to 'int' may change value [-Wfloat-conversion] 482 | #define ND_coord(n) (((Agnodeinfo_t*)AGDATA(n))->coord) | ^ flat.c:152:16: note: in expansion of macro 'ND_coord' 152 | ypos = ND_coord(n).y + GD_rank(g)[r].ht2 + GD_ranksep(g); | ^~~~~~~~ ../../lib/common/types.h:492:18: warning: conversion from 'double' to 'int' may change value [-Wfloat-conversion] 492 | #define ND_ht(n) (((Agnodeinfo_t*)AGDATA(n))->ht) | ^ flat.c:162:10: note: in expansion of macro 'ND_ht' 162 | h2 = ND_ht(vn) / 2; | ^~~~~ flat.c: In function 'abomination': ../../lib/common/memory.h:25:62: warning: conversion to 'long unsigned int' from 'int' may change the sign of the result [-Wsign-conversion] 25 | #define ALLOC(size,ptr,type) (ptr? (type*)grealloc(ptr,(size)*sizeof(type)):(type*)gmalloc((size)*sizeof(type))) | ^ flat.c:190:12: note: in expansion of macro 'ALLOC' 190 | rptr = ALLOC(r, GD_rank(g), rank_t); | ^~~~~ ../../lib/common/memory.h:25:98: warning: conversion to 'long unsigned int' from 'int' may change the sign of the result [-Wsign-conversion] 25 | #define ALLOC(size,ptr,type) (ptr? (type*)grealloc(ptr,(size)*sizeof(type)):(type*)gmalloc((size)*sizeof(type))) | ^ flat.c:190:12: note: in expansion of macro 'ALLOC' 190 | rptr = ALLOC(r, GD_rank(g), rank_t); | ^~~~~ In file included from ../../lib/common/render.h:33, from ../../lib/dotgen/dot.h:13, from decomp.c:21: decomp.c: In function 'end_component': ../../lib/common/memory.h:25:62: warning: conversion to 'long unsigned int' from 'int' may change the sign of the result [-Wsign-conversion] 25 | #define ALLOC(size,ptr,type) (ptr? (type*)grealloc(ptr,(size)*sizeof(type)):(type*)gmalloc((size)*sizeof(type))) | ^ decomp.c:54:23: note: in expansion of macro 'ALLOC' 54 | GD_comp(g).list = ALLOC(GD_comp(g).size, GD_comp(g).list, node_t *); | ^~~~~ ../../lib/common/memory.h:25:98: warning: conversion to 'long unsigned int' from 'int' may change the sign of the result [-Wsign-conversion] 25 | #define ALLOC(size,ptr,type) (ptr? (type*)grealloc(ptr,(size)*sizeof(type)):(type*)gmalloc((size)*sizeof(type))) | ^ decomp.c:54:23: note: in expansion of macro 'ALLOC' 54 | GD_comp(g).list = ALLOC(GD_comp(g).size, GD_comp(g).list, node_t *); | ^~~~~ rank.c: In function 'collapse_rankset': rank.c:110:26: warning: conversion from 'int' to 'char' may change value [-Wconversion] 110 | ND_ranktype(u) = kind; | ^~~~ dotsplines.c: In function 'cloneNode': rank.c:115:9: warning: switch missing default case [-Wswitch-default] 115 | switch (kind) { | ^~~~~~ dotsplines.c:956:22: warning: conversion from 'size_t' {aka 'long unsigned int'} to 'int' may change value [-Wconversion] 956 | int lbllen = strlen(ND_label(orign)->text); | ^~~~~~ rank.c:133:41: warning: conversion from 'int' to 'char' may change value [-Wconversion] 133 | ND_ranktype(GD_minset(g)) = kind; | ^~~~ dotsplines.c:957:34: warning: conversion to 'size_t' {aka 'long unsigned int'} from 'int' may change the sign of the result [-Wsign-conversion] 957 | char* buf = N_GNEW(lbllen+3,char); ../../lib/common/memory.h:23:39: note: in definition of macro 'N_GNEW' 23 | #define N_GNEW(n,t) (t*)gcalloc((n),sizeof(t)) | ^ rank.c:136:41: warning: conversion from 'int' to 'char' may change value [-Wconversion] 136 | ND_ranktype(GD_maxset(g)) = kind; | ^~~~ rank.c:131:9: warning: switch missing default case [-Wswitch-default] 131 | switch (kind) { | ^~~~~~ dotsplines.c:950:43: warning: unused parameter 'flipped' [-Wunused-parameter] 950 | cloneNode (graph_t* g, node_t* orign, int flipped) | ~~~~^~~~~~~ rank.c: In function 'rank_set_class': rank.c:153:22: warning: conversion from 'int' to 'char' may change value [-Wconversion] 153 | GD_set_type(g) = val; | ^~~ dotsplines.c: In function 'makeSimpleFlatLabels': In file included from ../../lib/common/render.h:33, from ../../lib/dotgen/dot.h:13, from rank.c:26: rank.c: In function 'make_new_cluster': rank.c:162:30: warning: conversion to 'size_t' {aka 'long unsigned int'} from 'int' may change the sign of the result [-Wsign-conversion] 162 | GD_clust(g) = ZALLOC(cno + 1, GD_clust(g), graph_t *, GD_n_cluster(g)); | ~~~~^~~ ../../lib/common/memory.h:27:63: note: in definition of macro 'ZALLOC' 27 | #define ZALLOC(size,ptr,type,osize) (ptr? (type*)zrealloc(ptr,size,sizeof(type),osize):(type*)zmalloc((size)*sizeof(type))) | ^~~~ ../../lib/common/memory.h:20:38: warning: conversion to 'size_t' {aka 'long unsigned int'} from 'int' may change the sign of the result [-Wsign-conversion] 20 | #define N_NEW(n,t) (t*)gcalloc((n),sizeof(t)) | ^~~ dotsplines.c:1045:23: note: in expansion of macro 'N_NEW' 1045 | edge_t** earray = N_NEW(cnt, edge_t*); | ^~~~~ ../../lib/common/types.h:382:52: warning: conversion to 'size_t' {aka 'long unsigned int'} from 'int' may change the sign of the result [-Wsign-conversion] 382 | #define GD_n_cluster(g) (((Agraphinfo_t*)AGDATA(g))->n_cluster) | ~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~ ../../lib/common/memory.h:27:81: note: in definition of macro 'ZALLOC' 27 | #define ZALLOC(size,ptr,type,osize) (ptr? (type*)zrealloc(ptr,size,sizeof(type),osize):(type*)zmalloc((size)*sizeof(type))) | ^~~~~ rank.c:162:59: note: in expansion of macro 'GD_n_cluster' 162 | GD_clust(g) = ZALLOC(cno + 1, GD_clust(g), graph_t *, GD_n_cluster(g)); | ^~~~~~~~~~~~ ../../lib/common/memory.h:27:109: warning: conversion to 'long unsigned int' from 'int' may change the sign of the result [-Wsign-conversion] 27 | #define ZALLOC(size,ptr,type,osize) (ptr? (type*)zrealloc(ptr,size,sizeof(type),osize):(type*)zmalloc((size)*sizeof(type))) | ^ rank.c:162:19: note: in expansion of macro 'ZALLOC' 162 | GD_clust(g) = ZALLOC(cno + 1, GD_clust(g), graph_t *, GD_n_cluster(g)); | ^~~~~~ dotsplines.c:1051:20: warning: conversion to 'size_t' {aka 'long unsigned int'} from 'int' may change the sign of the result [-Wsign-conversion] 1051 | qsort (earray, cnt, sizeof(edge_t*), (qsort_cmpf) edgelblcmpfn); | ^~~ dotsplines.c: In function 'make_flat_adj_edges': ../../lib/common/types.h:482:21: warning: conversion from 'double' to 'int' may change value [-Wfloat-conversion] 482 | #define ND_coord(n) (((Agnodeinfo_t*)AGDATA(n))->coord) | ^ dotsplines.c:1293:14: note: in expansion of macro 'ND_coord' 1293 | rightx = ND_coord(hn).x; | ^~~~~~~~ rank.c: In function 'minmax_edges2': rank.c:367:32: warning: conversion from 'int' to 'short unsigned int' may change value [-Wconversion] 367 | ED_minlen(e) = slen.y; | ^~~~ ../../lib/common/types.h:482:21: warning: conversion from 'double' to 'int' may change value [-Wfloat-conversion] 482 | #define ND_coord(n) (((Agnodeinfo_t*)AGDATA(n))->coord) | ^ dotsplines.c:1294:13: note: in expansion of macro 'ND_coord' 1294 | leftx = ND_coord(tn).x; | ^~~~~~~~ rank.c:372:32: warning: conversion from 'int' to 'short unsigned int' may change value [-Wconversion] 372 | ED_minlen(e) = slen.x; | ^~~~ dotsplines.c:1296:17: warning: declaration of 'n' shadows a previous local [-Wshadow] 1296 | node_t* n; | ^ rank.c: In function 'rank1': rank.c:388:19: warning: conversion from 'double' to 'int' may change value [-Wfloat-conversion] 388 | maxiter = atof(s) * agnnodes(g); | ^~~~ dotsplines.c:1245:13: note: shadowed declaration is here 1245 | node_t* n; | ^ dotsplines.c:1330:12: warning: conversion from 'double' to 'int' may change value [-Wfloat-conversion] 1330 | midx = (ND_coord(tn).x - ND_rw(tn) + ND_coord(hn).x + ND_lw(hn))/2; | ^ dotsplines.c:1331:12: warning: conversion from 'double' to 'int' may change value [-Wfloat-conversion] 1331 | midy = (ND_coord(auxt).x + ND_coord(auxh).x)/2; | ^ dotsplines.c:1242:39: warning: unused parameter 'P' [-Wunused-parameter] 1242 | make_flat_adj_edges(graph_t* g, path* P, edge_t** edges, int ind, int cnt, edge_t* e0, | ~~~~~~^ In file included from ../../lib/common/geom.h:16, from ../../lib/common/types.h:28, from ../../lib/common/render.h:29: rank.c: In function 'merge': dotsplines.c: In function 'make_flat_labeled_edge': ../../lib/common/arith.h:36:25: warning: conversion from 'int' to 'short unsigned int' may change value [-Wconversion] 36 | #define MAX(a,b) ((a)>(b)?(a):(b)) | ^ rank.c:811:20: note: in expansion of macro 'MAX' 811 | ED_minlen(e) = MAX(ED_minlen(e), minlen); | ^~~ ../../lib/common/types.h:482:21: warning: conversion from 'double' to 'int' may change value [-Wfloat-conversion] 482 | #define ND_coord(n) (((Agnodeinfo_t*)AGDATA(n))->coord) | ^ dotsplines.c:1471:18: note: in expansion of macro 'ND_coord' 1471 | ydelta = ND_coord(ln).y - GD_rank(g)[ND_rank(tn)].ht1 - | ^~~~~~~~ dotsplines.c: In function 'make_flat_bottom_edges': dotsplines.c:1511:38: warning: declaration of 'splines' shadows a global declaration [-Wshadow] 1511 | ind, int cnt, edge_t* e, int splines) | ~~~~^~~~~~~ ../../lib/common/types.h:114:7: note: shadowed declaration is here 114 | } splines; | ^~~~~~~ In file included from ../../lib/common/render.h:33, from ../../lib/dotgen/dot.h:13, from mincross.c:22: mincross.c: In function 'fixLabelOrder': mincross.c:262:17: warning: conversion to 'size_t' {aka 'long unsigned int'} from 'int' may change the sign of the result [-Wsign-conversion] 262 | arr = N_NEW(agnnodes(g), Agnode_t*); ../../lib/common/memory.h:20:39: note: in definition of macro 'N_NEW' 20 | #define N_NEW(n,t) (t*)gcalloc((n),sizeof(t)) | ^ mincross.c:263:21: warning: conversion to 'size_t' {aka 'long unsigned int'} from 'int' may change the sign of the result [-Wsign-conversion] 263 | indices = N_NEW(agnnodes(g), int); ../../lib/common/memory.h:20:39: note: in definition of macro 'N_NEW' 20 | #define N_NEW(n,t) (t*)gcalloc((n),sizeof(t)) | ^ mincross.c:271:28: warning: conversion to 'size_t' {aka 'long unsigned int'} from 'int' may change the sign of the result [-Wsign-conversion] 271 | qsort(indices, cnt, sizeof(int), (qsort_cmpf)ordercmpf); | ^~~ rank.c: In function 'readout_levels': rank.c:1016:26: warning: conversion to 'size_t' {aka 'long unsigned int'} from 'int' may change the sign of the result [-Wsign-conversion] 1016 | minrk = N_NEW(ncc+1,int); ../../lib/common/memory.h:20:39: note: in definition of macro 'N_NEW' 20 | #define N_NEW(n,t) (t*)gcalloc((n),sizeof(t)) | ^ mincross.c: In function 'new_matrix': mincross.c:394:24: warning: conversion to 'size_t' {aka 'long unsigned int'} from 'int' may change the sign of the result [-Wsign-conversion] 394 | rv->data = N_NEW(i * j, char); ../../lib/common/memory.h:20:39: note: in definition of macro 'N_NEW' 20 | #define N_NEW(n,t) (t*)gcalloc((n),sizeof(t)) | ^ dotsplines.c: In function 'leftOf': rank.c: In function 'add_fast_edges': dotsplines.c:1713:9: warning: conversion from 'double' to 'int' may change value [-Wfloat-conversion] 1713 | d = (p1.y - p2.y) * (p3.x - p2.x) - (p3.y - p2.y) * (p1.x - p2.x); | ^ mincross.c: In function 'do_ordering_node': ../../lib/common/memory.h:25:62: warning: conversion to 'long unsigned int' from 'int' may change the sign of the result [-Wsign-conversion] 25 | #define ALLOC(size,ptr,type) (ptr? (type*)grealloc(ptr,(size)*sizeof(type)):(type*)gmalloc((size)*sizeof(type))) | ^ ../../lib/common/types.h:258:44: note: in expansion of macro 'ALLOC' 258 | #define elist_append(item,L) do {L.list = ALLOC(L.size + 2,L.list,edge_t*); L.list[L.size++] = item; L.list[L.size] = NULL;} while(0) | ^~~~~ rank.c:1103:13: note: in expansion of macro 'elist_append' 1103 | elist_append(e, ND_out(n)); | ^~~~~~~~~~~~ mincross.c:451:21: warning: conversion to 'size_t' {aka 'long unsigned int'} from 'int' may change the sign of the result [-Wsign-conversion] 451 | qsort(sortlist, ne, sizeof(sortlist[0]), (qsort_cmpf) edgeidcmpf); | ^~ ../../lib/common/memory.h:25:98: warning: conversion to 'long unsigned int' from 'int' may change the sign of the result [-Wsign-conversion] 25 | #define ALLOC(size,ptr,type) (ptr? (type*)grealloc(ptr,(size)*sizeof(type)):(type*)gmalloc((size)*sizeof(type))) | ^ ../../lib/common/types.h:258:44: note: in expansion of macro 'ALLOC' 258 | #define elist_append(item,L) do {L.list = ALLOC(L.size + 2,L.list,edge_t*); L.list[L.size++] = item; L.list[L.size] = NULL;} while(0) | ^~~~~ rank.c:1103:13: note: in expansion of macro 'elist_append' 1103 | elist_append(e, ND_out(n)); | ^~~~~~~~~~~~ ../../lib/common/memory.h:25:62: warning: conversion to 'long unsigned int' from 'int' may change the sign of the result [-Wsign-conversion] 25 | #define ALLOC(size,ptr,type) (ptr? (type*)grealloc(ptr,(size)*sizeof(type)):(type*)gmalloc((size)*sizeof(type))) | ^ ../../lib/common/types.h:258:44: note: in expansion of macro 'ALLOC' 258 | #define elist_append(item,L) do {L.list = ALLOC(L.size + 2,L.list,edge_t*); L.list[L.size++] = item; L.list[L.size] = NULL;} while(0) | ^~~~~ rank.c:1104:13: note: in expansion of macro 'elist_append' 1104 | elist_append(e, ND_in(aghead(e))); | ^~~~~~~~~~~~ ../../lib/common/memory.h:25:98: warning: conversion to 'long unsigned int' from 'int' may change the sign of the result [-Wsign-conversion] 25 | #define ALLOC(size,ptr,type) (ptr? (type*)grealloc(ptr,(size)*sizeof(type)):(type*)gmalloc((size)*sizeof(type))) | ^ ../../lib/common/types.h:258:44: note: in expansion of macro 'ALLOC' 258 | #define elist_append(item,L) do {L.list = ALLOC(L.size + 2,L.list,edge_t*); L.list[L.size++] = item; L.list[L.size] = NULL;} while(0) | ^~~~~ rank.c:1104:13: note: in expansion of macro 'elist_append' 1104 | elist_append(e, ND_in(aghead(e))); | ^~~~~~~~~~~~ compound.c: In function 'getCluster': rank.c: In function 'my_init_graph': rank.c:1110:63: warning: conversion to 'unsigned int' from 'int' may change the sign of the result [-Wsign-conversion] 1110 | { int *sz = arg; (void)g; agbindrec(graph,"level graph rec",sz[0],true); } | ~~^~~ rank.c: In function 'my_init_node': compound.c:93:38: warning: unused parameter 'g' [-Wunused-parameter] 93 | static graph_t *getCluster(graph_t * g, char *cluster_name, Dt_t* map) | ~~~~~~~~~~^ rank.c:1112:61: warning: conversion to 'unsigned int' from 'int' may change the sign of the result [-Wsign-conversion] 1112 | { int *sz = arg; (void)g; agbindrec(node,"level node rec",sz[1],true); } | ~~^~~ rank.c: In function 'my_init_edge': rank.c:1114:61: warning: conversion to 'unsigned int' from 'int' may change the sign of the result [-Wsign-conversion] 1114 | { int *sz = arg; (void)g; agbindrec(edge,"level edge rec",sz[2],true); } | ~~^~~ rank.c: In function 'dot2_rank': compound.c: In function 'findVertical': compound.c:176:14: warning: comparing floating-point with '==' or '!=' is unsafe [-Wfloat-equal] 176 | if (tmin == tmax) | ^~ rank.c:1138:19: warning: conversion from 'double' to 'int' may change value [-Wfloat-conversion] 1138 | maxiter = atof(s) * agnnodes(g); | ^~~~ compound.c: In function 'findHorizontal': dotsplines.c: In function 'make_regular_edge': compound.c:218:14: warning: comparing floating-point with '==' or '!=' is unsafe [-Wfloat-equal] 218 | if (tmin == tmax) | ^~ ../../lib/common/memory.h:26:58: warning: conversion to 'long unsigned int' from 'int' may change the sign of the result [-Wsign-conversion] 26 | #define RALLOC(size,ptr,type) ((type*)grealloc(ptr,(size)*sizeof(type))) | ^ dotsplines.c:1933:27: note: in expansion of macro 'RALLOC' 1933 | pointfs = RALLOC(numpts, pointfs, pointf); | ^~~~~~ ../../lib/common/memory.h:26:58: warning: conversion to 'long unsigned int' from 'int' may change the sign of the result [-Wsign-conversion] 26 | #define RALLOC(size,ptr,type) ((type*)grealloc(ptr,(size)*sizeof(type))) | ^ dotsplines.c:1987:23: note: in expansion of macro 'RALLOC' 1987 | pointfs = RALLOC(numpts, pointfs, pointf); | ^~~~~~ mincross.c: In function 'restore_best': mincross.c:30:25: warning: conversion from 'double' to 'int' may change value [-Wfloat-conversion] 30 | #define saveorder(v) (ND_coord(v)).x | ^ mincross.c:886:27: note: in expansion of macro 'saveorder' 886 | ND_order(n) = saveorder(n); | ^~~~~~~~~ mincross.c:891:45: warning: conversion to 'size_t' {aka 'long unsigned int'} from 'int' may change the sign of the result [-Wsign-conversion] 891 | qsort(GD_rank(g)[r].v, GD_rank(g)[r].n, sizeof(GD_rank(g)[0].v[0]), ../../lib/common/memory.h:26:58: warning: conversion to 'long unsigned int' from 'int' may change the sign of the result [-Wsign-conversion] 26 | #define RALLOC(size,ptr,type) ((type*)grealloc(ptr,(size)*sizeof(type))) | ^ dotsplines.c:2009:20: note: in expansion of macro 'RALLOC' 2009 | pointfs2 = RALLOC(numpts2, pointfs2, pointf); | ^~~~~~ dotsplines.c: In function 'makeregularend': dotsplines.c:2148:5: warning: switch missing default case [-Wswitch-default] 2148 | switch (side) { | ^~~~~~ dotsplines.c: In function 'adjustregularpath': In file included from ../../lib/common/render.h:33, from ../../lib/dotgen/dot.h:13, from compound.c:15: compound.c: In function 'makeCompoundEdge': compound.c:471:29: warning: conversion to 'size_t' {aka 'long unsigned int'} from 'int' may change the sign of the result [-Wsign-conversion] 471 | nbez->list = N_GNEW(nbez->size, pointf); ../../lib/common/memory.h:23:39: note: in definition of macro 'N_GNEW' 23 | #define N_GNEW(n,t) (t*)gcalloc((n),sizeof(t)) | ^ dotsplines.c:2274:21: warning: conversion from 'double' to 'int' may change value [-Wfloat-conversion] 2274 | x = (bp1->LL.x + bp1->UR.x) / 2; | ^ mincross.c: In function 'realFillRanks': dotsplines.c:2279:21: warning: conversion from 'double' to 'int' may change value [-Wfloat-conversion] 2279 | x = (bp1->LL.x + bp1->UR.x) / 2; | ^ mincross.c:1123:33: warning: conversion to 'long unsigned int' from 'int' may change the sign of the result [-Wsign-conversion] 1123 | memset (rnks, 0, sizeof(int)*rnks_sz); | ^ dotsplines.c: In function 'rank_box': dotsplines.c:2306:16: warning: comparing floating-point with '==' or '!=' is unsafe [-Wfloat-equal] 2306 | if (b.LL.x == b.UR.x) { | ^~ mincross.c: In function 'fillRanks': ../../lib/common/memory.h:20:38: warning: conversion to 'size_t' {aka 'long unsigned int'} from 'int' may change the sign of the result [-Wsign-conversion] 20 | #define N_NEW(n,t) (t*)gcalloc((n),sizeof(t)) | ^~~ mincross.c:1154:17: note: in expansion of macro 'N_NEW' 1154 | int* rnks = N_NEW(rnks_sz, int); | ^~~~~ dotsplines.c: In function 'straight_len': mincross.c: In function 'init_mincross': dotsplines.c:2331:27: warning: comparing floating-point with '==' or '!=' is unsafe [-Wfloat-equal] 2331 | if (ND_coord(v).x != ND_coord(n).x) | ^~ ../../lib/common/memory.h:20:38: warning: conversion to 'size_t' {aka 'long unsigned int'} from 'int' may change the sign of the result [-Wsign-conversion] 20 | #define N_NEW(n,t) (t*)gcalloc((n),sizeof(t)) | ^~~ mincross.c:1170:15: note: in expansion of macro 'N_NEW' 1170 | TE_list = N_NEW(size, edge_t *); | ^~~~~ ../../lib/common/memory.h:20:38: warning: conversion to 'size_t' {aka 'long unsigned int'} from 'int' may change the sign of the result [-Wsign-conversion] 20 | #define N_NEW(n,t) (t*)gcalloc((n),sizeof(t)) | ^~~ mincross.c:1171:15: note: in expansion of macro 'N_NEW' 1171 | TI_list = N_NEW(size, int); | ^~~~~ In file included from ../../lib/common/render.h:33, from ../../lib/dotgen/dot.h:13, from fastgr.c:12: fastgr.c: In function 'safe_list_append': dotsplines.c: In function 'recover_slack': dotsplines.c:2368:41: warning: conversion from 'double' to 'int' may change value [-Wfloat-conversion] 2368 | resize_vn(vn, p->boxes[b].LL.x, p->boxes[b].UR.x, | ~~~~~~~~~~~~~~^~ mincross.c: In function 'flat_rev': ../../lib/common/memory.h:25:62: warning: conversion to 'long unsigned int' from 'int' may change the sign of the result [-Wsign-conversion] 25 | #define ALLOC(size,ptr,type) (ptr? (type*)grealloc(ptr,(size)*sizeof(type)):(type*)gmalloc((size)*sizeof(type))) | ^ ../../lib/common/types.h:258:44: note: in expansion of macro 'ALLOC' 258 | #define elist_append(item,L) do {L.list = ALLOC(L.size + 2,L.list,edge_t*); L.list[L.size++] = item; L.list[L.size] = NULL;} while(0) | ^~~~~ fastgr.c:68:5: note: in expansion of macro 'elist_append' 68 | elist_append(e, (*L)); | ^~~~~~~~~~~~ ../../lib/common/memory.h:25:98: warning: conversion to 'long unsigned int' from 'int' may change the sign of the result [-Wsign-conversion] 25 | #define ALLOC(size,ptr,type) (ptr? (type*)grealloc(ptr,(size)*sizeof(type)):(type*)gmalloc((size)*sizeof(type))) | ^ ../../lib/common/types.h:258:44: note: in expansion of macro 'ALLOC' 258 | #define elist_append(item,L) do {L.list = ALLOC(L.size + 2,L.list,edge_t*); L.list[L.size++] = item; L.list[L.size] = NULL;} while(0) | ^~~~~ fastgr.c:68:5: note: in expansion of macro 'elist_append' 68 | elist_append(e, (*L)); | ^~~~~~~~~~~~ ../../lib/common/memory.h:25:62: warning: conversion to 'long unsigned int' from 'int' may change the sign of the result [-Wsign-conversion] 25 | #define ALLOC(size,ptr,type) (ptr? (type*)grealloc(ptr,(size)*sizeof(type)):(type*)gmalloc((size)*sizeof(type))) | ^ ../../lib/common/types.h:258:44: note: in expansion of macro 'ALLOC' 258 | #define elist_append(item,L) do {L.list = ALLOC(L.size + 2,L.list,edge_t*); L.list[L.size++] = item; L.list[L.size] = NULL;} while(0) | ^~~~~ mincross.c:1198:9: note: in expansion of macro 'elist_append' 1198 | elist_append(e, ND_other(agtail(e))); | ^~~~~~~~~~~~ ../../lib/common/memory.h:25:98: warning: conversion to 'long unsigned int' from 'int' may change the sign of the result [-Wsign-conversion] 25 | #define ALLOC(size,ptr,type) (ptr? (type*)grealloc(ptr,(size)*sizeof(type)):(type*)gmalloc((size)*sizeof(type))) | ^ ../../lib/common/types.h:258:44: note: in expansion of macro 'ALLOC' 258 | #define elist_append(item,L) do {L.list = ALLOC(L.size + 2,L.list,edge_t*); L.list[L.size++] = item; L.list[L.size] = NULL;} while(0) | ^~~~~ mincross.c:1198:9: note: in expansion of macro 'elist_append' 1198 | elist_append(e, ND_other(agtail(e))); | ^~~~~~~~~~~~ fastgr.c: In function 'fast_edge': dotsplines.c:2368:59: warning: conversion from 'double' to 'int' may change value [-Wfloat-conversion] 2368 | resize_vn(vn, p->boxes[b].LL.x, p->boxes[b].UR.x, | ~~~~~~~~~~~~~~^~ ../../lib/common/memory.h:25:62: warning: conversion to 'long unsigned int' from 'int' may change the sign of the result [-Wsign-conversion] 25 | #define ALLOC(size,ptr,type) (ptr? (type*)grealloc(ptr,(size)*sizeof(type)):(type*)gmalloc((size)*sizeof(type))) | ^ ../../lib/common/types.h:258:44: note: in expansion of macro 'ALLOC' 258 | #define elist_append(item,L) do {L.list = ALLOC(L.size + 2,L.list,edge_t*); L.list[L.size++] = item; L.list[L.size] = NULL;} while(0) | ^~~~~ fastgr.c:91:5: note: in expansion of macro 'elist_append' 91 | elist_append(e, ND_out(agtail(e))); | ^~~~~~~~~~~~ position.c:35:5: warning: "DEBUG" is not defined, evaluates to 0 [-Wundef] 35 | #if DEBUG > 1 | ^~~~~ ../../lib/common/memory.h:25:98: warning: conversion to 'long unsigned int' from 'int' may change the sign of the result [-Wsign-conversion] 25 | #define ALLOC(size,ptr,type) (ptr? (type*)grealloc(ptr,(size)*sizeof(type)):(type*)gmalloc((size)*sizeof(type))) | ^ ../../lib/common/types.h:258:44: note: in expansion of macro 'ALLOC' 258 | #define elist_append(item,L) do {L.list = ALLOC(L.size + 2,L.list,edge_t*); L.list[L.size++] = item; L.list[L.size] = NULL;} while(0) | ^~~~~ fastgr.c:91:5: note: in expansion of macro 'elist_append' 91 | elist_append(e, ND_out(agtail(e))); | ^~~~~~~~~~~~ dotsplines.c:2369:40: warning: conversion from 'double' to 'int' may change value [-Wfloat-conversion] 2369 | p->boxes[b].UR.x + ND_rw(vn)); dotsplines.c:2371:41: warning: conversion from 'double' to 'int' may change value [-Wfloat-conversion] 2371 | resize_vn(vn, p->boxes[b].LL.x, (p->boxes[b].LL.x + | ~~~~~~~~~~~~~~^~ ../../lib/common/memory.h:25:62: warning: conversion to 'long unsigned int' from 'int' may change the sign of the result [-Wsign-conversion] 25 | #define ALLOC(size,ptr,type) (ptr? (type*)grealloc(ptr,(size)*sizeof(type)):(type*)gmalloc((size)*sizeof(type))) | ^ ../../lib/common/types.h:258:44: note: in expansion of macro 'ALLOC' 258 | #define elist_append(item,L) do {L.list = ALLOC(L.size + 2,L.list,edge_t*); L.list[L.size++] = item; L.list[L.size] = NULL;} while(0) | ^~~~~ fastgr.c:92:5: note: in expansion of macro 'elist_append' 92 | elist_append(e, ND_in(aghead(e))); | ^~~~~~~~~~~~ ../../lib/common/memory.h:25:98: warning: conversion to 'long unsigned int' from 'int' may change the sign of the result [-Wsign-conversion] 25 | #define ALLOC(size,ptr,type) (ptr? (type*)grealloc(ptr,(size)*sizeof(type)):(type*)gmalloc((size)*sizeof(type))) | ^ ../../lib/common/types.h:258:44: note: in expansion of macro 'ALLOC' 258 | #define elist_append(item,L) do {L.list = ALLOC(L.size + 2,L.list,edge_t*); L.list[L.size++] = item; L.list[L.size] = NULL;} while(0) | ^~~~~ fastgr.c:92:5: note: in expansion of macro 'elist_append' 92 | elist_append(e, ND_in(aghead(e))); | ^~~~~~~~~~~~ dotsplines.c:2372:64: warning: conversion from 'double' to 'int' may change value [-Wfloat-conversion] 2371 | resize_vn(vn, p->boxes[b].LL.x, (p->boxes[b].LL.x + | ~~~~~~~~~~~~~~~~~~~ 2372 | p->boxes[b].UR.x) / 2, | ~~~~~~~~~~~~~~~~~~^~~ dotsplines.c:2373:37: warning: conversion from 'double' to 'int' may change value [-Wfloat-conversion] 2373 | p->boxes[b].UR.x); | ~~~~~~~~~~~~~~^~ mincross.c: In function 'allocate_ranks': mincross.c:1284:30: warning: conversion to 'size_t' {aka 'long unsigned int'} from 'int' may change the sign of the result [-Wsign-conversion] 1284 | cn = N_NEW(GD_maxrank(g) + 2, int); /* must be 0 based, not GD_minrank */ ../../lib/common/memory.h:20:39: note: in definition of macro 'N_NEW' 20 | #define N_NEW(n,t) (t*)gcalloc((n),sizeof(t)) | ^ mincross.c:1299:38: warning: conversion to 'size_t' {aka 'long unsigned int'} from 'int' may change the sign of the result [-Wsign-conversion] 1299 | GD_rank(g) = N_NEW(GD_maxrank(g) + 2, rank_t); ../../lib/common/memory.h:20:39: note: in definition of macro 'N_NEW' 20 | #define N_NEW(n,t) (t*)gcalloc((n),sizeof(t)) | ^ fastgr.c: In function 'other_edge': ../../lib/common/memory.h:25:62: warning: conversion to 'long unsigned int' from 'int' may change the sign of the result [-Wsign-conversion] 25 | #define ALLOC(size,ptr,type) (ptr? (type*)grealloc(ptr,(size)*sizeof(type)):(type*)gmalloc((size)*sizeof(type))) | ^ ../../lib/common/types.h:258:44: note: in expansion of macro 'ALLOC' 258 | #define elist_append(item,L) do {L.list = ALLOC(L.size + 2,L.list,edge_t*); L.list[L.size++] = item; L.list[L.size] = NULL;} while(0) | ^~~~~ fastgr.c:136:5: note: in expansion of macro 'elist_append' 136 | elist_append(e, ND_other(agtail(e))); | ^~~~~~~~~~~~ mincross.c:1302:58: warning: conversion to 'size_t' {aka 'long unsigned int'} from 'int' may change the sign of the result [-Wsign-conversion] 1302 | GD_rank(g)[r].av = GD_rank(g)[r].v = N_NEW(cn[r] + 1, node_t *); ../../lib/common/memory.h:20:39: note: in definition of macro 'N_NEW' 20 | #define N_NEW(n,t) (t*)gcalloc((n),sizeof(t)) | ^ ../../lib/common/memory.h:25:98: warning: conversion to 'long unsigned int' from 'int' may change the sign of the result [-Wsign-conversion] 25 | #define ALLOC(size,ptr,type) (ptr? (type*)grealloc(ptr,(size)*sizeof(type)):(type*)gmalloc((size)*sizeof(type))) | ^ ../../lib/common/types.h:258:44: note: in expansion of macro 'ALLOC' 258 | #define elist_append(item,L) do {L.list = ALLOC(L.size + 2,L.list,edge_t*); L.list[L.size++] = item; L.list[L.size] = NULL;} while(0) | ^~~~~ fastgr.c:136:5: note: in expansion of macro 'elist_append' 136 | elist_append(e, ND_other(agtail(e))); | ^~~~~~~~~~~~ position.c: In function 'nsiter2': position.c:148:19: warning: conversion from 'double' to 'int' may change value [-Wfloat-conversion] 148 | maxiter = atof(s) * agnnodes(g); | ^~~~ In file included from ../../lib/common/render.h:29: mincross.c: In function 'build_ranks': ../../lib/common/types.h:383:50: warning: conversion from 'long int' to 'int' may change value [-Wconversion] 383 | #define GD_n_nodes(g) (((Agraphinfo_t*)AGDATA(g))->n_nodes) | ~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~ mincross.c:1363:19: note: in expansion of macro 'GD_n_nodes' 1363 | q = new_queue(GD_n_nodes(g)); | ^~~~~~~~~~ In file included from ../../lib/common/geom.h:16, from ../../lib/common/types.h:28, from ../../lib/common/render.h:29, from ../../lib/dotgen/dot.h:13, from position.c:20: position.c: In function 'make_aux_edge': In file included from ../../lib/common/render.h:29: fastgr.c: In function 'new_virtual_edge': ../../lib/common/arith.h:59:25: warning: conversion from 'int' to 'short unsigned int' may change value [-Wconversion] 59 | #define ROUND(f) ((f>=0)?(int)(f + .5):(int)(f - .5)) | ^ position.c:185:20: note: in expansion of macro 'ROUND' 185 | ED_minlen(e) = ROUND(len); | ^~~~~ ../../lib/common/types.h:592:22: warning: conversion from 'int' to 'short int' may change value [-Wconversion] 592 | #define ED_weight(e) (((Agedgeinfo_t*)AGDATA(e))->weight) | ^ fastgr.c:192:55: note: in expansion of macro 'ED_weight' 192 | ED_minlen(e) = ED_count(e) = ED_xpenalty(e) = ED_weight(e) = 1; | ^~~~~~~~~ ../../lib/common/types.h:569:21: warning: conversion to 'short unsigned int' from 'short int' may change the sign of the result [-Wsign-conversion] 569 | #define ED_count(e) (((Agedgeinfo_t*)AGDATA(e))->count) | ^ fastgr.c:192:24: note: in expansion of macro 'ED_count' 192 | ED_minlen(e) = ED_count(e) = ED_xpenalty(e) = ED_weight(e) = 1; | ^~~~~~~~ mincross.c: In function 'constraining_flat_edge': In file included from ../../lib/common/render.h:33: position.c: In function 'allocate_aux_edges': ../../lib/common/types.h:259:64: warning: conversion to 'size_t' {aka 'long unsigned int'} from 'int' may change the sign of the result [-Wsign-conversion] 259 | #define alloc_elist(n,L) do {L.size = 0; L.list = N_NEW(n + 1,edge_t*); } while (0) ../../lib/common/memory.h:20:39: note: in definition of macro 'N_NEW' 20 | #define N_NEW(n,t) (t*)gcalloc((n),sizeof(t)) | ^ position.c:203:9: note: in expansion of macro 'alloc_elist' 203 | alloc_elist(n_in + 3, ND_in(n)); | ^~~~~~~~~~~ mincross.c:1441:58: warning: unused parameter 'v' [-Wunused-parameter] 1441 | static int constraining_flat_edge(Agraph_t *g, Agnode_t *v, Agedge_t *e) | ~~~~~~~~~~^ mincross.c: In function 'flat_reorder': ../../lib/common/memory.h:25:62: warning: conversion to 'long unsigned int' from 'int' may change the sign of the result [-Wsign-conversion] 25 | #define ALLOC(size,ptr,type) (ptr? (type*)grealloc(ptr,(size)*sizeof(type)):(type*)gmalloc((size)*sizeof(type))) | ^ mincross.c:1485:20: note: in expansion of macro 'ALLOC' 1485 | temprank = ALLOC(i + 1, temprank, node_t *); | ^~~~~ ../../lib/common/memory.h:25:98: warning: conversion to 'long unsigned int' from 'int' may change the sign of the result [-Wsign-conversion] 25 | #define ALLOC(size,ptr,type) (ptr? (type*)grealloc(ptr,(size)*sizeof(type)):(type*)gmalloc((size)*sizeof(type))) | ^ mincross.c:1485:20: note: in expansion of macro 'ALLOC' 1485 | temprank = ALLOC(i + 1, temprank, node_t *); | ^~~~~ position.c: In function 'make_LR_constraints': fastgr.c: In function 'flat_edge': position.c:259:38: warning: conversion from 'double' to 'int' may change value [-Wfloat-conversion] 259 | last = (ND_rank(v) = last + width); | ^~~~ ../../lib/common/memory.h:25:62: warning: conversion to 'long unsigned int' from 'int' may change the sign of the result [-Wsign-conversion] 25 | #define ALLOC(size,ptr,type) (ptr? (type*)grealloc(ptr,(size)*sizeof(type)):(type*)gmalloc((size)*sizeof(type))) | ^ ../../lib/common/types.h:258:44: note: in expansion of macro 'ALLOC' 258 | #define elist_append(item,L) do {L.list = ALLOC(L.size + 2,L.list,edge_t*); L.list[L.size++] = item; L.list[L.size] = NULL;} while(0) | ^~~~~ fastgr.c:264:5: note: in expansion of macro 'elist_append' 264 | elist_append(e, ND_flat_out(agtail(e))); | ^~~~~~~~~~~~ ../../lib/common/memory.h:25:98: warning: conversion to 'long unsigned int' from 'int' may change the sign of the result [-Wsign-conversion] 25 | #define ALLOC(size,ptr,type) (ptr? (type*)grealloc(ptr,(size)*sizeof(type)):(type*)gmalloc((size)*sizeof(type))) | ^ ../../lib/common/types.h:258:44: note: in expansion of macro 'ALLOC' 258 | #define elist_append(item,L) do {L.list = ALLOC(L.size + 2,L.list,edge_t*); L.list[L.size++] = item; L.list[L.size] = NULL;} while(0) | ^~~~~ fastgr.c:264:5: note: in expansion of macro 'elist_append' 264 | elist_append(e, ND_flat_out(agtail(e))); | ^~~~~~~~~~~~ position.c:272:22: warning: conversion from 'double' to 'int' may change value [-Wfloat-conversion] 272 | m1 = m0 + ND_rw(aghead(e0)) + ND_lw(agtail(e0)); | ^~ ../../lib/common/memory.h:25:62: warning: conversion to 'long unsigned int' from 'int' may change the sign of the result [-Wsign-conversion] 25 | #define ALLOC(size,ptr,type) (ptr? (type*)grealloc(ptr,(size)*sizeof(type)):(type*)gmalloc((size)*sizeof(type))) | ^ ../../lib/common/types.h:258:44: note: in expansion of macro 'ALLOC' 258 | #define elist_append(item,L) do {L.list = ALLOC(L.size + 2,L.list,edge_t*); L.list[L.size++] = item; L.list[L.size] = NULL;} while(0) | ^~~~~ fastgr.c:265:5: note: in expansion of macro 'elist_append' 265 | elist_append(e, ND_flat_in(aghead(e))); | ^~~~~~~~~~~~ position.c:278:22: warning: conversion from 'double' to 'int' may change value [-Wfloat-conversion] 278 | m1 = m0 + ND_rw(agtail(e1)) + ND_lw(aghead(e1)); | ^~ ../../lib/common/memory.h:25:98: warning: conversion to 'long unsigned int' from 'int' may change the sign of the result [-Wsign-conversion] 25 | #define ALLOC(size,ptr,type) (ptr? (type*)grealloc(ptr,(size)*sizeof(type)):(type*)gmalloc((size)*sizeof(type))) | ^ ../../lib/common/types.h:258:44: note: in expansion of macro 'ALLOC' 258 | #define elist_append(item,L) do {L.list = ALLOC(L.size + 2,L.list,edge_t*); L.list[L.size++] = item; L.list[L.size] = NULL;} while(0) | ^~~~~ fastgr.c:265:5: note: in expansion of macro 'elist_append' 265 | elist_append(e, ND_flat_in(aghead(e))); | ^~~~~~~~~~~~ mincross.c: In function 'reorder': ../../lib/common/types.h:501:20: warning: conversion from 'double' to 'int' may change value [-Wfloat-conversion] 501 | #define ND_mval(n) (((Agnodeinfo_t*)AGDATA(n))->mval) | ^ mincross.c:1586:26: note: in expansion of macro 'ND_mval' 1586 | int p1 = ND_mval(*lp); | ^~~~~~~ ../../lib/common/types.h:501:20: warning: conversion from 'double' to 'int' may change value [-Wfloat-conversion] 501 | #define ND_mval(n) (((Agnodeinfo_t*)AGDATA(n))->mval) | ^ mincross.c:1587:26: note: in expansion of macro 'ND_mval' 1587 | int p2 = ND_mval(*rp); | ^~~~~~~ ../../lib/common/types.h:581:22: warning: conversion from 'double' to 'int' may change value [-Wfloat-conversion] 581 | #define ED_minlen(e) (((Agedgeinfo_t*)AGDATA(e))->minlen) | ^ position.c:296:22: note: in expansion of macro 'ED_minlen' 296 | m0 = ED_minlen(e) * GD_nodesep(g) + width; | ^~~~~~~~~ cluster.c: In function 'map_path': ../../lib/common/arith.h:36:25: warning: conversion from 'double' to 'int' may change value [-Wfloat-conversion] 36 | #define MAX(a,b) ((a)>(b)?(a):(b)) | ^ position.c:302:26: note: in expansion of macro 'MAX' 302 | m0 = MAX(m0, width + GD_nodesep(g) + ROUND(ED_dist(e))); | ^~~ position.c:304:30: warning: conversion from 'double' to 'int' may change value [-Wfloat-conversion] 304 | m0 = largeMinlen (m0); | ^~~~~~~~~~~ cluster.c:102:31: warning: conversion from 'int' to 'char' may change value [-Wconversion] 102 | ED_edge_type(e) = type; | ^~~~ ../../lib/common/arith.h:36:25: warning: conversion from 'int' to 'short unsigned int' may change value [-Wconversion] 36 | #define MAX(a,b) ((a)>(b)?(a):(b)) | ^ position.c:305:37: note: in expansion of macro 'MAX' 305 | ED_minlen(e0) = MAX(ED_minlen(e0), m0); | ^~~ cluster.c:112:36: warning: conversion from 'int' to 'char' may change value [-Wconversion] 112 | ED_edge_type(ve) = type; | ^~~~ mincross.c: In function 'rcross': position.c: In function 'make_edge_pairs': cluster.c:120:36: warning: conversion from 'int' to 'char' may change value [-Wconversion] 120 | ED_edge_type(ve) = type; | ^~~~ position.c:335:22: warning: conversion from 'double' to 'int' may change value [-Wfloat-conversion] 335 | m0 = (ED_head_port(e).p.x - ED_tail_port(e).p.x); | ^ ../../lib/common/memory.h:25:62: warning: conversion to 'long unsigned int' from 'int' may change the sign of the result [-Wsign-conversion] 25 | #define ALLOC(size,ptr,type) (ptr? (type*)grealloc(ptr,(size)*sizeof(type)):(type*)gmalloc((size)*sizeof(type))) | ^ mincross.c:1671:17: note: in expansion of macro 'ALLOC' 1671 | Count = ALLOC(C, Count, int); | ^~~~~ ../../lib/common/memory.h:25:98: warning: conversion to 'long unsigned int' from 'int' may change the sign of the result [-Wsign-conversion] 25 | #define ALLOC(size,ptr,type) (ptr? (type*)grealloc(ptr,(size)*sizeof(type)):(type*)gmalloc((size)*sizeof(type))) | ^ mincross.c:1671:17: note: in expansion of macro 'ALLOC' 1671 | Count = ALLOC(C, Count, int); | ^~~~~ cluster.c:135:35: warning: conversion from 'int' to 'char' may change value [-Wconversion] 135 | ED_edge_type(e) = type; | ^~~~ cluster.c: In function 'make_interclust_chain': cluster.c:143:33: warning: unused parameter 'g' [-Wunused-parameter] 143 | make_interclust_chain(graph_t * g, node_t * from, node_t * to, edge_t * orig) | ~~~~~~~~~~^ In file included from ../../lib/common/render.h:33, from ../../lib/dotgen/dot.h:13, from aspect.c:11: aspect.c: In function 'computeNodeGroups': aspect.c:55:25: warning: conversion to 'size_t' {aka 'long unsigned int'} from 'int' may change the sign of the result [-Wsign-conversion] 55 | nodeGroups = N_GNEW(agnnodes(g), nodeGroup_t); ../../lib/common/memory.h:23:39: note: in definition of macro 'N_GNEW' 23 | #define N_GNEW(n,t) (t*)gcalloc((n),sizeof(t)) | ^ mincross.c: In function 'medians': mincross.c:1802:25: warning: conversion to 'size_t' {aka 'long unsigned int'} from 'int' may change the sign of the result [-Wsign-conversion] 1802 | qsort(list, j, sizeof(int), (qsort_cmpf) ordercmpf); | ^ ../../lib/common/types.h:479:50: warning: conversion to 'size_t' {aka 'long unsigned int'} from 'int' may change the sign of the result [-Wsign-conversion] 479 | #define ND_UF_size(n) (((Agnodeinfo_t*)AGDATA(n))->UF_size) ../../lib/common/memory.h:20:39: note: in definition of macro 'N_NEW' 20 | #define N_NEW(n,t) (t*)gcalloc((n),sizeof(t)) | ^ aspect.c:91:27: note: in expansion of macro 'ND_UF_size' 91 | N_NEW(ND_UF_size(l), node_t *); | ^~~~~~~~~~ In file included from ../../lib/common/geom.h:16, from ../../lib/common/types.h:28: mincross.c: In function 'mincross_options': position.c: In function 'adjustSimple': ../../lib/common/types.h:363:19: warning: conversion from 'double' to 'int' may change value [-Wfloat-conversion] 363 | #define GD_ht1(g) (((Agraphinfo_t*)AGDATA(g))->ht1) | ^ position.c:609:17: note: in expansion of macro 'GD_ht1' 609 | delbottom = GD_ht1(g) + bottom - (rank[maxr].ht1 - margin_total); | ^~~~~~ ../../lib/common/arith.h:36:25: warning: conversion from 'double' to 'int' may change value [-Wfloat-conversion] 36 | #define MAX(a,b) ((a)>(b)?(a):(b)) | ^ mincross.c:1934:19: note: in expansion of macro 'MAX' 1934 | MinQuit = MAX(1, MinQuit * f); | ^~~ ../../lib/common/types.h:364:19: warning: conversion from 'double' to 'int' may change value [-Wfloat-conversion] 364 | #define GD_ht2(g) (((Agraphinfo_t*)AGDATA(g))->ht2) | ^ position.c:615:18: note: in expansion of macro 'GD_ht2' 615 | deltop = GD_ht2(g) + (delta-bottom) + delbottom - (rank[minr].ht2 - margin_total); | ^~~~~~ ../../lib/common/arith.h:36:25: warning: conversion from 'double' to 'int' may change value [-Wfloat-conversion] 36 | #define MAX(a,b) ((a)>(b)?(a):(b)) | ^ mincross.c:1935:19: note: in expansion of macro 'MAX' 1935 | MaxIter = MAX(1, MaxIter * f); | ^~~ aspect.c: In function 'computeLayerWidths': In file included from ../../lib/common/render.h:33, from ../../lib/dotgen/dot.h:13, from cluster.c:12: cluster.c: In function 'build_skeleton': ../../lib/common/memory.h:20:38: warning: conversion to 'size_t' {aka 'long unsigned int'} from 'int' may change the sign of the result [-Wsign-conversion] 20 | #define N_NEW(n,t) (t*)gcalloc((n),sizeof(t)) | ^~~ aspect.c:195:22: note: in expansion of macro 'N_NEW' 195 | layerWidthInfo = N_NEW(nNodeGroups, layerWidthInfo_t); | ^~~~~ ../../lib/common/types.h:364:19: warning: conversion from 'double' to 'int' may change value [-Wfloat-conversion] 364 | #define GD_ht2(g) (((Agraphinfo_t*)AGDATA(g))->ht2) | ^ position.c:618:18: note: in expansion of macro 'GD_ht2' 618 | deltop = GD_ht2(g) + (delta-bottom) - (rank[minr].ht2 - margin_total); | ^~~~~~ cluster.c:348:50: warning: conversion to 'size_t' {aka 'long unsigned int'} from 'int' may change the sign of the result [-Wsign-conversion] 348 | GD_rankleader(subg) = N_NEW(GD_maxrank(subg) + 2, node_t *); ../../lib/common/memory.h:20:39: note: in definition of macro 'N_NEW' 20 | #define N_NEW(n,t) (t*)gcalloc((n),sizeof(t)) | ^ ../../lib/common/memory.h:20:38: warning: conversion to 'size_t' {aka 'long unsigned int'} from 'int' may change the sign of the result [-Wsign-conversion] 20 | #define N_NEW(n,t) (t*)gcalloc((n),sizeof(t)) | ^~~ aspect.c:199:13: note: in expansion of macro 'N_NEW' 199 | N_NEW(nNodeGroups, nodeGroup_t *); | ^~~~~ ../../lib/common/memory.h:20:38: warning: conversion to 'size_t' {aka 'long unsigned int'} from 'int' may change the sign of the result [-Wsign-conversion] 20 | #define N_NEW(n,t) (t*)gcalloc((n),sizeof(t)) | ^~~ aspect.c:201:37: note: in expansion of macro 'N_NEW' 201 | layerWidthInfo[i].removed = N_NEW(nNodeGroups, int); | ^~~~~ cluster.c: In function 'install_cluster': position.c: In function 'adjustRanks': cluster.c:389:31: warning: conversion from 'int' to 'char' may change value [-Wconversion] 389 | GD_installed(clust) = pass + 1; | ^~~~ position.c:671:29: warning: conversion from 'double' to 'int' may change value [-Wfloat-conversion] 671 | adjustSimple(g, delta, margin_total); | ^~~~~ aspect.c: In function 'sortLayers': aspect.c:267:29: warning: conversion to 'size_t' {aka 'long unsigned int'} from 'int' may change the sign of the result [-Wsign-conversion] 267 | qsort(sortedLayerIndex, agnnodes(g), sizeof(int), compFunction); | ^~~~~~~~~~~ aspect.c: In function 'compFunction2': aspect.c:296:26: warning: cast discards 'const' qualifier from pointer target type [-Wcast-qual] 296 | nodeGroup_t **ind1 = (nodeGroup_t **) a, **ind2 = (nodeGroup_t **) b; | ^ aspect.c:296:55: warning: cast discards 'const' qualifier from pointer target type [-Wcast-qual] 296 | nodeGroup_t **ind1 = (nodeGroup_t **) a, **ind2 = (nodeGroup_t **) b; | ^ aspect.c: In function 'reduceMaxWidth2': aspect.c:349:40: warning: conversion to 'size_t' {aka 'long unsigned int'} from 'int' may change the sign of the result [-Wsign-conversion] 349 | layerWidthInfo[maxLayerIndex].nNodeGroupsInLayer, | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~ aspect.c: In function 'applyPacking2': aspect.c:430:30: warning: conversion to 'size_t' {aka 'long unsigned int'} from 'int' may change the sign of the result [-Wsign-conversion] 430 | sortedLayerIndex = N_NEW(agnnodes(g), int); ../../lib/common/memory.h:20:39: note: in definition of macro 'N_NEW' 20 | #define N_NEW(n,t) (t*)gcalloc((n),sizeof(t)) | ^ position.c: In function 'set_aspect': ../../lib/common/types.h:343:18: warning: conversion from 'double' to 'int' may change value [-Wfloat-conversion] 343 | #define GD_bb(g) (((Agraphinfo_t*)AGDATA(g))->bb) | ^ position.c:954:16: note: in expansion of macro 'GD_bb' 954 | sz.x = GD_bb(g).UR.x - GD_bb(g).LL.x; | ^~~~~ ../../lib/common/types.h:343:18: warning: conversion from 'double' to 'int' may change value [-Wfloat-conversion] 343 | #define GD_bb(g) (((Agraphinfo_t*)AGDATA(g))->bb) | ^ position.c:955:16: note: in expansion of macro 'GD_bb' 955 | sz.y = GD_bb(g).UR.y - GD_bb(g).LL.y; /* normalize */ | ^~~~~ position.c: In function 'resize_leaf': position.c:1031:16: warning: conversion from 'double' to 'int' may change value [-Wfloat-conversion] 1031 | lbound.x = lbound.x + ND_lw(leaf) + ND_rw(leaf) + GD_nodesep(agraphof(leaf)); | ^~~~~~ position.c: In function 'make_leafslots': ../../lib/common/memory.h:25:62: warning: conversion to 'long unsigned int' from 'int' may change the sign of the result [-Wsign-conversion] 25 | #define ALLOC(size,ptr,type) (ptr? (type*)grealloc(ptr,(size)*sizeof(type)):(type*)gmalloc((size)*sizeof(type))) | ^ position.c:1067:27: note: in expansion of macro 'ALLOC' 1067 | GD_rank(g)[r].v = ALLOC(j + 1, GD_rank(g)[r].v, node_t *); | ^~~~~ ../../lib/common/memory.h:25:98: warning: conversion to 'long unsigned int' from 'int' may change the sign of the result [-Wsign-conversion] 25 | #define ALLOC(size,ptr,type) (ptr? (type*)grealloc(ptr,(size)*sizeof(type)):(type*)gmalloc((size)*sizeof(type))) | ^ position.c:1067:27: note: in expansion of macro 'ALLOC' 1067 | GD_rank(g)[r].v = ALLOC(j + 1, GD_rank(g)[r].v, node_t *); | ^~~~~ position.c: In function 'do_leaves': ../../lib/common/types.h:482:21: warning: conversion from 'double' to 'int' may change value [-Wfloat-conversion] 482 | #define ND_coord(n) (((Agnodeinfo_t*)AGDATA(n))->coord) | ^ position.c:1086:16: note: in expansion of macro 'ND_coord' 1086 | lbound.x = ND_coord(leader).x - ND_lw(leader); | ^~~~~~~~ ../../lib/common/types.h:482:21: warning: conversion from 'double' to 'int' may change value [-Wfloat-conversion] 482 | #define ND_coord(n) (((Agnodeinfo_t*)AGDATA(n))->coord) | ^ position.c:1087:16: note: in expansion of macro 'ND_coord' 1087 | lbound.y = ND_coord(leader).y; | ^~~~~~~~ ../../lib/common/memory.h:25:62: warning: conversion to 'long unsigned int' from 'int' may change the sign of the result [-Wsign-conversion] 25 | #define ALLOC(size,ptr,type) (ptr? (type*)grealloc(ptr,(size)*sizeof(type)):(type*)gmalloc((size)*sizeof(type))) | ^ ../../lib/common/types.h:258:44: note: in expansion of macro 'ALLOC' 258 | #define elist_append(item,L) do {L.list = ALLOC(L.size + 2,L.list,edge_t*); L.list[L.size++] = item; L.list[L.size] = NULL;} while(0) | ^~~~~ position.c:1097:17: note: in expansion of macro 'elist_append' 1097 | elist_append(e1, ND_in(aghead(e1))); | ^~~~~~~~~~~~ ../../lib/common/memory.h:25:98: warning: conversion to 'long unsigned int' from 'int' may change the sign of the result [-Wsign-conversion] 25 | #define ALLOC(size,ptr,type) (ptr? (type*)grealloc(ptr,(size)*sizeof(type)):(type*)gmalloc((size)*sizeof(type))) | ^ ../../lib/common/types.h:258:44: note: in expansion of macro 'ALLOC' 258 | #define elist_append(item,L) do {L.list = ALLOC(L.size + 2,L.list,edge_t*); L.list[L.size++] = item; L.list[L.size] = NULL;} while(0) | ^~~~~ position.c:1097:17: note: in expansion of macro 'elist_append' 1097 | elist_append(e1, ND_in(aghead(e1))); | ^~~~~~~~~~~~ ../../lib/common/memory.h:25:62: warning: conversion to 'long unsigned int' from 'int' may change the sign of the result [-Wsign-conversion] 25 | #define ALLOC(size,ptr,type) (ptr? (type*)grealloc(ptr,(size)*sizeof(type)):(type*)gmalloc((size)*sizeof(type))) | ^ ../../lib/common/types.h:258:44: note: in expansion of macro 'ALLOC' 258 | #define elist_append(item,L) do {L.list = ALLOC(L.size + 2,L.list,edge_t*); L.list[L.size++] = item; L.list[L.size] = NULL;} while(0) | ^~~~~ position.c:1107:17: note: in expansion of macro 'elist_append' 1107 | elist_append(e, ND_out(agtail(e))); | ^~~~~~~~~~~~ ../../lib/common/memory.h:25:98: warning: conversion to 'long unsigned int' from 'int' may change the sign of the result [-Wsign-conversion] 25 | #define ALLOC(size,ptr,type) (ptr? (type*)grealloc(ptr,(size)*sizeof(type)):(type*)gmalloc((size)*sizeof(type))) | ^ ../../lib/common/types.h:258:44: note: in expansion of macro 'ALLOC' 258 | #define elist_append(item,L) do {L.list = ALLOC(L.size + 2,L.list,edge_t*); L.list[L.size++] = item; L.list[L.size] = NULL;} while(0) | ^~~~~ position.c:1107:17: note: in expansion of macro 'elist_append' 1107 | elist_append(e, ND_out(agtail(e))); | ^~~~~~~~~~~~ position.c: In function 'ports_eq': position.c:1116:39: warning: comparing floating-point with '==' or '!=' is unsafe [-Wfloat-equal] 1116 | && (((ED_head_port(e).p.x == ED_head_port(f).p.x) && | ^~ position.c:1117:39: warning: comparing floating-point with '==' or '!=' is unsafe [-Wfloat-equal] 1117 | (ED_head_port(e).p.y == ED_head_port(f).p.y)) | ^~ position.c:1119:39: warning: comparing floating-point with '==' or '!=' is unsafe [-Wfloat-equal] 1119 | && (((ED_tail_port(e).p.x == ED_tail_port(f).p.x) && | ^~ position.c:1120:39: warning: comparing floating-point with '==' or '!=' is unsafe [-Wfloat-equal] 1120 | (ED_tail_port(e).p.y == ED_tail_port(f).p.y)) | ^~ position.c: In function 'make_lrvn': ../../lib/common/arith.h:36:25: warning: conversion from 'double' to 'int' may change value [-Wfloat-conversion] 36 | #define MAX(a,b) ((a)>(b)?(a):(b)) | ^ position.c:1179:17: note: in expansion of macro 'MAX' 1179 | int w = MAX(GD_border(g)[BOTTOM_IX].x, GD_border(g)[TOP_IX].x); | ^~~ CCLD libdotgen_C.la make[3]: Leaving directory '/build/graphviz/src/graphviz-4.0.0/lib/dotgen' Making all in fdpgen make[3]: Entering directory '/build/graphviz/src/graphviz-4.0.0/lib/fdpgen' CC comp.lo CC dbg.lo CC grid.lo CC fdpinit.lo CC layout.lo CC tlayout.lo CC xlayout.lo CC clusteredges.lo clusteredges.c:41:5: warning: "DEBUG" is not defined, evaluates to 0 [-Wundef] 41 | #if DEBUG > 1 | ^~~~~ In file included from ../../lib/common/render.h:33, from ../../lib/fdpgen/clusteredges.h:17, from clusteredges.c:23: clusteredges.c: In function 'addObj': ../../lib/common/memory.h:26:58: warning: conversion to 'long unsigned int' from 'int' may change the sign of the result [-Wsign-conversion] 26 | #define RALLOC(size,ptr,type) ((type*)grealloc(ptr,(size)*sizeof(type))) | ^ clusteredges.c:67:22: note: in expansion of macro 'RALLOC' 67 | l->obs = RALLOC(l->sz, l->obs, Ppoly_t *); | ^~~~~~ clusteredges.c: In function 'compoundEdges': clusteredges.c:271:50: warning: conversion to 'size_t' {aka 'long unsigned int'} from 'int' may change the sign of the result [-Wsign-conversion] 271 | P->boxes = N_NEW(agnnodes(g) + 20 * 2 * 9, boxf); ../../lib/common/memory.h:20:39: note: in definition of macro 'N_NEW' 20 | #define N_NEW(n,t) (t*)gcalloc((n),sizeof(t)) | ^ In file included from ../../lib/common/render.h:33, from ../../lib/fdpgen/fdp.h:13, from comp.c:23: comp.c: In function 'findCComp': comp.c:71:19: warning: conversion to 'size_t' {aka 'long unsigned int'} from 'int' may change the sign of the result [-Wsign-conversion] 71 | marks = N_NEW(agnnodes(g), char); /* freed below */ ../../lib/common/memory.h:20:39: note: in definition of macro 'N_NEW' 20 | #define N_NEW(n,t) (t*)gcalloc((n),sizeof(t)) | ^ xlayout.c: In function 'xinit_params': comp.c:127:30: warning: conversion to 'size_t' {aka 'long unsigned int'} from 'int' may change the sign of the result [-Wsign-conversion] 127 | comps = cp = N_NEW(c_cnt + 1, graph_t *); ../../lib/common/memory.h:20:39: note: in definition of macro 'N_NEW' 20 | #define N_NEW(n,t) (t*)gcalloc((n),sizeof(t)) | ^ xlayout.c:86:20: warning: comparing floating-point with '==' or '!=' is unsafe [-Wfloat-equal] 86 | if (xParams.T0 == 0.0) | ^~ xlayout.c: In function 'doRep': xlayout.c:262:18: warning: comparing floating-point with '==' or '!=' is unsafe [-Wfloat-equal] 262 | while (dist2 == 0.0) { | ^~ In file included from ../../lib/common/render.h:33, from ../../lib/fdpgen/fdp.h:13, from ../../lib/fdpgen/tlayout.h:17, from fdpinit.c:21: fdpinit.c: In function 'fdp_init_node_edge': fdpinit.c:96:34: warning: conversion to 'size_t' {aka 'long unsigned int'} from 'int' may change the sign of the result [-Wsign-conversion] 96 | GD_neato_nlist(g) = N_NEW(nn + 1, node_t *); ../../lib/common/memory.h:20:39: note: in definition of macro 'N_NEW' 20 | #define N_NEW(n,t) (t*)gcalloc((n),sizeof(t)) | ^ In file included from ../../lib/common/types.h:28, from ../../lib/common/render.h:29, from ../../lib/fdpgen/fdp.h:13, from ../../lib/fdpgen/xlayout.h:17, from xlayout.c:27: xlayout.c: In function 'x_layout': ../../lib/common/geom.h:62:33: warning: conversion from 'double' to 'float' may change value [-Wfloat-conversion] 62 | #define PS2INCH(a_points) ((a_points)/(double)POINTS_PER_INCH) | ^ xlayout.c:459:20: note: in expansion of macro 'PS2INCH' 459 | X_marg.x = PS2INCH(X_marg.x); /* sepFactor is in points */ | ^~~~~~~ ../../lib/common/geom.h:62:33: warning: conversion from 'double' to 'float' may change value [-Wfloat-conversion] 62 | #define PS2INCH(a_points) ((a_points)/(double)POINTS_PER_INCH) | ^ xlayout.c:460:20: note: in expansion of macro 'PS2INCH' 460 | X_marg.y = PS2INCH(X_marg.y); | ^~~~~~~ tlayout.c: In function 'init_params': tlayout.c:139:14: warning: comparing floating-point with '==' or '!=' is unsafe [-Wfloat-equal] 139 | if (T_T0 == -1.0) { | ^~ In file included from ../../lib/common/render.h:33, from ../../lib/fdpgen/fdp.h:13, from grid.c:24: grid.c: In function 'newBlock': ../../lib/common/memory.h:23:38: warning: conversion to 'size_t' {aka 'long unsigned int'} from 'int' may change the sign of the result [-Wsign-conversion] 23 | #define N_GNEW(n,t) (t*)gcalloc((n),sizeof(t)) | ^~~ grid.c:46:17: note: in expansion of macro 'N_GNEW' 46 | newb->mem = N_GNEW(size, cell); | ^~~~~~ tlayout.c: In function 'fdp_initParams': tlayout.c:187:14: warning: comparing floating-point with '==' or '!=' is unsafe [-Wfloat-equal] 187 | if (D_T0 == -1.0) { | ^~ grid.c: In function 'getCell': grid.c:86:35: warning: conversion from 'long int' to 'int' may change value [-Wconversion] 86 | bp->next = newBlock(2 * (bp->endp - bp->mem)); | ~~^~~~~~~~~~~~~~~~~~~~~~ tlayout.c: In function 'doRep': tlayout.c:223:18: warning: comparing floating-point with '==' or '!=' is unsafe [-Wfloat-equal] 223 | while (dist2 == 0.0) { | ^~ grid.c: In function 'adjustGrid': ../../lib/common/memory.h:23:38: warning: conversion to 'size_t' {aka 'long unsigned int'} from 'int' may change the sign of the result [-Wsign-conversion] 23 | #define N_GNEW(n,t) (t*)gcalloc((n),sizeof(t)) | ^~~ grid.c:189:22: note: in expansion of macro 'N_GNEW' 189 | g->listMem = N_GNEW(nsize, node_list); | ^~~~~~ tlayout.c: In function 'applyAttr': tlayout.c:333:18: warning: comparing floating-point with '==' or '!=' is unsafe [-Wfloat-equal] 333 | while (dist2 == 0.0) { | ^~ tlayout.c: In function 'gAdjust': tlayout.c:395:19: warning: cast from function call of type 'double' to non-matching type 'int' [-Wbad-function-cast] 395 | #define FLOOR(d) ((int)floor(d)) | ^ tlayout.c:411:23: note: in expansion of macro 'FLOOR' 411 | addGrid(grid, FLOOR((ND_pos(n))[0] / T_Cell), FLOOR((ND_pos(n))[1] / T_Cell), | ^~~~~ tlayout.c:395:19: warning: cast from function call of type 'double' to non-matching type 'int' [-Wbad-function-cast] 395 | #define FLOOR(d) ((int)floor(d)) | ^ tlayout.c:411:55: note: in expansion of macro 'FLOOR' 411 | addGrid(grid, FLOOR((ND_pos(n))[0] / T_Cell), FLOOR((ND_pos(n))[1] / T_Cell), | ^~~~~ layout.c: In function 'finalCC': layout.c:138:12: warning: conversion from 'double' to 'int' may change value [-Wfloat-conversion] 138 | pt.y = -bb.LL.y + margin + GD_border(rg)[BOTTOM_IX].y; | ^ layout.c:142:16: warning: conversion from 'double' to 'int' may change value [-Wfloat-conversion] 142 | bb.UR.y += pt.y + margin + GD_border(rg)[TOP_IX].y; | ^~ In file included from ../../lib/common/render.h:33, from ../../lib/fdpgen/fdp.h:13, from ../../lib/fdpgen/tlayout.h:17, from layout.c:35: layout.c: In function 'addCluster': ../../lib/common/memory.h:26:58: warning: conversion to 'long unsigned int' from 'int' may change the sign of the result [-Wsign-conversion] 26 | #define RALLOC(size,ptr,type) ((type*)grealloc(ptr,(size)*sizeof(type))) | ^ layout.c:301:21: note: in expansion of macro 'RALLOC' 301 | clist->cl = RALLOC(clist->sz, clist->cl, graph_t *); | ^~~~~~ tlayout.c: At top level: layout.c: In function 'addEdge': tlayout.c:628:6: warning: no previous prototype for 'dumpstat' [-Wmissing-prototypes] 628 | void dumpstat(graph_t * g) | ^~~~~~~~ ../../lib/common/memory.h:25:62: warning: conversion to 'long unsigned int' from 'int' may change the sign of the result [-Wsign-conversion] 25 | #define ALLOC(size,ptr,type) (ptr? (type*)grealloc(ptr,(size)*sizeof(type)):(type*)gmalloc((size)*sizeof(type))) | ^ layout.c:384:10: note: in expansion of macro 'ALLOC' 384 | el = ALLOC(cnt + 1, el, edge_t *); | ^~~~~ ../../lib/common/memory.h:25:98: warning: conversion to 'long unsigned int' from 'int' may change the sign of the result [-Wsign-conversion] 25 | #define ALLOC(size,ptr,type) (ptr? (type*)grealloc(ptr,(size)*sizeof(type)):(type*)gmalloc((size)*sizeof(type))) | ^ layout.c:384:10: note: in expansion of macro 'ALLOC' 384 | el = ALLOC(cnt + 1, el, edge_t *); | ^~~~~ tlayout.c: In function 'fdp_tLayout': tlayout.c:689:15: warning: comparing floating-point with '==' or '!=' is unsafe [-Wfloat-equal] 689 | if (ctr.x != 0.0 || ctr.y != 0.0) { | ^~ tlayout.c:689:31: warning: comparing floating-point with '==' or '!=' is unsafe [-Wfloat-equal] 689 | if (ctr.x != 0.0 || ctr.y != 0.0) { | ^~ layout.c: In function 'deriveGraph': layout.c:527:35: warning: conversion to 'size_t' {aka 'long unsigned int'} from 'int' may change the sign of the result [-Wsign-conversion] 527 | PORTS(dg) = pq = N_NEW(sz + 1, bport_t); ../../lib/common/memory.h:20:39: note: in definition of macro 'N_NEW' 20 | #define N_NEW(n,t) (t*)gcalloc((n),sizeof(t)) | ^ layout.c: In function 'getEdgeList': layout.c:597:23: warning: conversion to 'size_t' {aka 'long unsigned int'} from 'int' may change the sign of the result [-Wsign-conversion] 597 | erecs = N_NEW(deg + 1, erec); ../../lib/common/memory.h:20:39: note: in definition of macro 'N_NEW' 20 | #define N_NEW(n,t) (t*)gcalloc((n),sizeof(t)) | ^ layout.c:612:18: warning: conversion to 'size_t' {aka 'long unsigned int'} from 'int' may change the sign of the result [-Wsign-conversion] 612 | qsort(erecs, deg, sizeof(erec), ecmp); | ^~~ layout.c:623:46: warning: comparing floating-point with '==' or '!=' is unsafe [-Wfloat-equal] 623 | while (j < deg && erecs[j].alpha == a) | ^~ layout.c: In function 'expandCluster': layout.c:716:23: warning: conversion to 'size_t' {aka 'long unsigned int'} from 'int' may change the sign of the result [-Wsign-conversion] 716 | pp = N_NEW(sz + 1, bport_t); ../../lib/common/memory.h:20:39: note: in definition of macro 'N_NEW' 20 | #define N_NEW(n,t) (t*)gcalloc((n),sizeof(t)) | ^ layout.c: In function 'layout': ../../lib/common/memory.h:20:38: warning: conversion to 'size_t' {aka 'long unsigned int'} from 'int' may change the sign of the result [-Wsign-conversion] 20 | #define N_NEW(n,t) (t*)gcalloc((n),sizeof(t)) | ^~~ layout.c:904:18: note: in expansion of macro 'N_NEW' 904 | bp = N_NEW(c_cnt, bool); | ^~~~~ layout.c: In function 'mkClusters': ../../lib/common/memory.h:26:58: warning: conversion to 'long unsigned int' from 'int' may change the sign of the result [-Wsign-conversion] 26 | #define RALLOC(size,ptr,type) ((type*)grealloc(ptr,(size)*sizeof(type))) | ^ layout.c:1028:27: note: in expansion of macro 'RALLOC' 1028 | GD_clust(g) = RALLOC(list.cnt + 1, list.cl, graph_t*); | ^~~~~~ layout.c: In function 'fdp_init_graph': layout.c:1036:18: warning: conversion from 'int' to 'short unsigned int' may change value [-Wconversion] 1036 | GD_ndim(g) = late_int(g, agattr(g,AGRAPH, "dim", NULL), 2, 2); | ^~~~~~~~ CCLD libfdpgen_C.la make[3]: Leaving directory '/build/graphviz/src/graphviz-4.0.0/lib/fdpgen' Making all in neatogen make[3]: Entering directory '/build/graphviz/src/graphviz-4.0.0/lib/neatogen' CC edges.lo CC geometry.lo CC heap.lo CC info.lo CC neatoinit.lo CC legal.lo CC lu.lo CC adjust.lo CC circuit.lo CC hedges.lo CC poly.lo CC matinv.lo CC printvis.lo CC memory.lo CC site.lo CC solve.lo geometry.c: In function 'geominit': geometry.c:29:19: warning: cast from function call of type 'double' to non-matching type 'int' [-Wbad-function-cast] 29 | sqrt_nsites = (int) sqrt(sn); | ^ geometry.c: In function 'intersection': geometry.c:75:15: warning: comparing floating-point with '==' or '!=' is unsafe [-Wfloat-equal] 75 | if (denom == 0.0) | ^~ printvis.c:16:6: warning: no previous prototype for 'printvis' [-Wmissing-prototypes] 16 | void printvis(vconfig_t * cp) | ^~~~~~~~ heap.c: In function 'PQbucket': heap.c:37:18: warning: conversion from 'double' to 'int' may change value [-Wfloat-conversion] 37 | bucket = b; | ^ heap.c: In function 'PQinsert': heap.c:53:24: warning: comparing floating-point with '==' or '!=' is unsafe [-Wfloat-equal] 53 | (he->ystar == next->ystar | ^~ In file included from ../../lib/common/render.h:33, from heap.c:12: heap.c: In function 'PQinitialize': ../../lib/common/memory.h:23:38: warning: conversion to 'size_t' {aka 'long unsigned int'} from 'int' may change the sign of the result [-Wsign-conversion] 23 | #define N_GNEW(n,t) (t*)gcalloc((n),sizeof(t)) | ^~~ heap.c:120:18: note: in expansion of macro 'N_GNEW' 120 | PQhash = N_GNEW(PQhashsize, Halfedge); | ^~~~~~ heap.c: At top level: heap.c:133:6: warning: no previous prototype for 'PQdump' [-Wmissing-prototypes] 133 | void PQdump(void) | ^~~~~~ In file included from ../../lib/common/render.h:33, from hedges.c:13: hedges.c: In function 'ELinitialize': ../../lib/common/memory.h:23:38: warning: conversion to 'size_t' {aka 'long unsigned int'} from 'int' may change the sign of the result [-Wsign-conversion] 23 | #define N_GNEW(n,t) (t*)gcalloc((n),sizeof(t)) | ^~~ hedges.c:39:18: note: in expansion of macro 'N_GNEW' 39 | ELhash = N_GNEW(ELhashsize, Halfedge *); | ^~~~~~ hedges.c: In function 'hintersect': hedges.c:76:30: warning: comparing floating-point with '==' or '!=' is unsafe [-Wfloat-equal] 76 | (e1->reg[1]->coord.y == e2->reg[1]->coord.y && | ^~ hedges.c: In function 'right_of': hedges.c:111:14: warning: comparing floating-point with '==' or '!=' is unsafe [-Wfloat-equal] 111 | if (e->a == 1.0) { | ^~ hedges.c: In function 'ELleftbnd': hedges.c:187:14: warning: conversion from 'double' to 'int' may change value [-Wfloat-conversion] 187 | bucket = (p->x - xmin) / deltax * ELhashsize; | ^ In file included from ../../lib/common/render.h:33, from solve.c:16: solve.c: In function 'solve': ../../lib/common/memory.h:23:38: warning: conversion to 'size_t' {aka 'long unsigned int'} from 'int' may change the sign of the result [-Wsign-conversion] 23 | #define N_GNEW(n,t) (t*)gcalloc((n),sizeof(t)) | ^~~ solve.c:32:13: note: in expansion of macro 'N_GNEW' 32 | asave = N_GNEW(nsq, double); | ^~~~~~ ../../lib/common/memory.h:23:38: warning: conversion to 'size_t' {aka 'long unsigned int'} from 'int' may change the sign of the result [-Wsign-conversion] 23 | #define N_GNEW(n,t) (t*)gcalloc((n),sizeof(t)) | ^~~ solve.c:33:13: note: in expansion of macro 'N_GNEW' 33 | csave = N_GNEW(n, double); | ^~~~~~ poly.c: In function 'bbox': poly.c:50:12: warning: declaration of 'xmin' shadows a global declaration [-Wshadow] 50 | double xmin, ymin, xmax, ymax; | ^~~~ In file included from ../../lib/neatogen/poly.h:17, from poly.c:18: ../../lib/neatogen/geometry.h:27:19: note: shadowed declaration is here 27 | extern double xmin, xmax, ymin, ymax; /* extreme x,y values of sites */ | ^~~~ poly.c:50:18: warning: declaration of 'ymin' shadows a global declaration [-Wshadow] 50 | double xmin, ymin, xmax, ymax; | ^~~~ ../../lib/neatogen/geometry.h:27:31: note: shadowed declaration is here 27 | extern double xmin, xmax, ymin, ymax; /* extreme x,y values of sites */ | ^~~~ poly.c:50:24: warning: declaration of 'xmax' shadows a global declaration [-Wshadow] 50 | double xmin, ymin, xmax, ymax; | ^~~~ ../../lib/neatogen/geometry.h:27:25: note: shadowed declaration is here 27 | extern double xmin, xmax, ymin, ymax; /* extreme x,y values of sites */ | ^~~~ poly.c:50:30: warning: declaration of 'ymax' shadows a global declaration [-Wshadow] 50 | double xmin, ymin, xmax, ymax; | ^~~~ ../../lib/neatogen/geometry.h:27:37: note: shadowed declaration is here 27 | extern double xmin, xmax, ymin, ymax; /* extreme x,y values of sites */ | ^~~~ poly.c: In function 'isBox': poly.c:90:20: warning: comparing floating-point with '==' or '!=' is unsafe [-Wfloat-equal] 90 | if (verts[0].y == verts[1].y) | ^~ poly.c:91:29: warning: comparing floating-point with '==' or '!=' is unsafe [-Wfloat-equal] 91 | return ((verts[2].y == verts[3].y) && | ^~ poly.c:92:29: warning: comparing floating-point with '==' or '!=' is unsafe [-Wfloat-equal] 92 | (verts[0].x == verts[3].x) && (verts[1].x == verts[2].x)); | ^~ poly.c:92:59: warning: comparing floating-point with '==' or '!=' is unsafe [-Wfloat-equal] 92 | (verts[0].x == verts[3].x) && (verts[1].x == verts[2].x)); | ^~ poly.c:94:29: warning: comparing floating-point with '==' or '!=' is unsafe [-Wfloat-equal] 94 | return ((verts[0].x == verts[1].x) && | ^~ poly.c:95:29: warning: comparing floating-point with '==' or '!=' is unsafe [-Wfloat-equal] 95 | (verts[2].x == verts[3].x) && | ^~ poly.c:96:29: warning: comparing floating-point with '==' or '!=' is unsafe [-Wfloat-equal] 96 | (verts[0].y == verts[3].y) && (verts[1].y == verts[2].y)); | ^~ poly.c:96:59: warning: comparing floating-point with '==' or '!=' is unsafe [-Wfloat-equal] 96 | (verts[0].y == verts[3].y) && (verts[1].y == verts[2].y)); | ^~ In file included from ../../lib/common/render.h:33, from ../../lib/neatogen/neato.h:31, from adjust.c:16: adjust.c: In function 'makeInfo': In file included from ../../lib/common/render.h:33, from ../../lib/neatogen/neato.h:31, from poly.c:14: poly.c: In function 'genRound': ../../lib/common/memory.h:23:38: warning: conversion to 'size_t' {aka 'long unsigned int'} from 'int' may change the sign of the result [-Wsign-conversion] 23 | #define N_GNEW(n,t) (t*)gcalloc((n),sizeof(t)) | ^~~ poly.c:126:13: note: in expansion of macro 'N_GNEW' 126 | verts = N_GNEW(sides, Point); | ^~~~~~ ../../lib/common/memory.h:23:38: warning: conversion to 'size_t' {aka 'long unsigned int'} from 'int' may change the sign of the result [-Wsign-conversion] 23 | #define N_GNEW(n,t) (t*)gcalloc((n),sizeof(t)) | ^~~ adjust.c:145:16: note: in expansion of macro 'N_GNEW' 145 | nodeInfo = N_GNEW(nsites, Info_t); | ^~~~~~ In file included from ../../lib/common/types.h:28, from ../../lib/common/render.h:29: ../../lib/common/geom.h:62:33: warning: conversion from 'double' to 'float' may change value [-Wfloat-conversion] 62 | #define PS2INCH(a_points) ((a_points)/(double)POINTS_PER_INCH) | ^ adjust.c:155:21: note: in expansion of macro 'PS2INCH' 155 | pmargin.x = PS2INCH(pmargin.x); | ^~~~~~~ poly.c: In function 'makeAddPoly': ../../lib/common/geom.h:62:33: warning: conversion from 'double' to 'float' may change value [-Wfloat-conversion] 62 | #define PS2INCH(a_points) ((a_points)/(double)POINTS_PER_INCH) | ^ adjust.c:156:21: note: in expansion of macro 'PS2INCH' 156 | pmargin.y = PS2INCH(pmargin.y); | ^~~~~~~ poly.c:148:15: warning: declaration of 'b' shadows a previous local [-Wshadow] 148 | Point b; | ^ poly.c:145:10: note: shadowed declaration is here 145 | boxf b; | ^ ../../lib/common/memory.h:23:38: warning: conversion to 'size_t' {aka 'long unsigned int'} from 'int' may change the sign of the result [-Wsign-conversion] 23 | #define N_GNEW(n,t) (t*)gcalloc((n),sizeof(t)) | ^~~ poly.c:153:17: note: in expansion of macro 'N_GNEW' 153 | verts = N_GNEW(sides, Point); | ^~~~~~ adjust.c: In function 'sortSites': ../../lib/common/memory.h:23:38: warning: conversion to 'size_t' {aka 'long unsigned int'} from 'int' may change the sign of the result [-Wsign-conversion] 23 | #define N_GNEW(n,t) (t*)gcalloc((n),sizeof(t)) | ^~~ adjust.c:208:17: note: in expansion of macro 'N_GNEW' 208 | sites = N_GNEW(nsites, Site *); | ^~~~~~ adjust.c:222:18: warning: conversion to 'size_t' {aka 'long unsigned int'} from 'int' may change the sign of the result [-Wsign-conversion] 222 | qsort(sites, nsites, sizeof(Site *), scomp); | ^~~~~~ ../../lib/common/memory.h:23:38: warning: conversion to 'size_t' {aka 'long unsigned int'} from 'int' may change the sign of the result [-Wsign-conversion] 23 | #define N_GNEW(n,t) (t*)gcalloc((n),sizeof(t)) | ^~~ poly.c:175:25: note: in expansion of macro 'N_GNEW' 175 | verts = N_GNEW(sides, Point); | ^~~~~~ adjust.c: In function 'rmEquality': adjust.c:276:28: warning: comparing floating-point with '==' or '!=' is unsafe [-Wfloat-equal] 276 | (*jp)->coord.x != (*ip)->coord.x || | ^~ adjust.c:277:28: warning: comparing floating-point with '==' or '!=' is unsafe [-Wfloat-equal] 277 | (*jp)->coord.y != (*ip)->coord.y) { | ^~ adjust.c:286:31: warning: comparing floating-point with '==' or '!=' is unsafe [-Wfloat-equal] 286 | (*kp)->coord.x == (*ip)->coord.x && | ^~ adjust.c:287:31: warning: comparing floating-point with '==' or '!=' is unsafe [-Wfloat-equal] 287 | (*kp)->coord.y == (*ip)->coord.y) { | ^~ ../../lib/common/memory.h:23:38: warning: conversion to 'size_t' {aka 'long unsigned int'} from 'int' may change the sign of the result [-Wsign-conversion] 23 | #define N_GNEW(n,t) (t*)gcalloc((n),sizeof(t)) | ^~~ poly.c:204:21: note: in expansion of macro 'N_GNEW' 204 | verts = N_GNEW(sides, Point); | ^~~~~~ adjust.c:294:44: warning: comparing floating-point with '==' or '!=' is unsafe [-Wfloat-equal] 294 | if (kp < endSite && (*kp)->coord.y == (*ip)->coord.y) { | ^~ poly.c:206:49: warning: conversion from 'double' to 'int' may change value [-Wfloat-conversion] 206 | verts[0] = makeScaledTransPoint(b.LL.x, b.LL.y, -xmargin, -ymargin); | ~~~~^~ poly.c:206:57: warning: conversion from 'double' to 'int' may change value [-Wfloat-conversion] 206 | verts[0] = makeScaledTransPoint(b.LL.x, b.LL.y, -xmargin, -ymargin); | ~~~~^~ poly.c:207:49: warning: conversion from 'double' to 'int' may change value [-Wfloat-conversion] 207 | verts[1] = makeScaledTransPoint(b.UR.x, b.LL.y, xmargin, -ymargin); | ~~~~^~ poly.c:207:57: warning: conversion from 'double' to 'int' may change value [-Wfloat-conversion] 207 | verts[1] = makeScaledTransPoint(b.UR.x, b.LL.y, xmargin, -ymargin); | ~~~~^~ poly.c:208:49: warning: conversion from 'double' to 'int' may change value [-Wfloat-conversion] 208 | verts[2] = makeScaledTransPoint(b.UR.x, b.UR.y, xmargin, ymargin); | ~~~~^~ poly.c:208:57: warning: conversion from 'double' to 'int' may change value [-Wfloat-conversion] 208 | verts[2] = makeScaledTransPoint(b.UR.x, b.UR.y, xmargin, ymargin); | ~~~~^~ poly.c:209:49: warning: conversion from 'double' to 'int' may change value [-Wfloat-conversion] 209 | verts[3] = makeScaledTransPoint(b.LL.x, b.UR.y, -xmargin, ymargin); | ~~~~^~ poly.c:209:57: warning: conversion from 'double' to 'int' may change value [-Wfloat-conversion] 209 | verts[3] = makeScaledTransPoint(b.LL.x, b.UR.y, -xmargin, ymargin); | ~~~~^~ poly.c: In function 'makePoly': poly.c:240:15: warning: declaration of 'b' shadows a previous local [-Wshadow] 240 | Point b; | ^ poly.c:237:10: note: shadowed declaration is here 237 | boxf b; | ^ ../../lib/common/memory.h:23:38: warning: conversion to 'size_t' {aka 'long unsigned int'} from 'int' may change the sign of the result [-Wsign-conversion] 23 | #define N_GNEW(n,t) (t*)gcalloc((n),sizeof(t)) | ^~~ poly.c:245:17: note: in expansion of macro 'N_GNEW' 245 | verts = N_GNEW(sides, Point); | ^~~~~~ ../../lib/common/memory.h:23:38: warning: conversion to 'size_t' {aka 'long unsigned int'} from 'int' may change the sign of the result [-Wsign-conversion] 23 | #define N_GNEW(n,t) (t*)gcalloc((n),sizeof(t)) | ^~~ poly.c:256:25: note: in expansion of macro 'N_GNEW' 256 | verts = N_GNEW(sides, Point); | ^~~~~~ ../../lib/common/memory.h:23:38: warning: conversion to 'size_t' {aka 'long unsigned int'} from 'int' may change the sign of the result [-Wsign-conversion] 23 | #define N_GNEW(n,t) (t*)gcalloc((n),sizeof(t)) | ^~~ poly.c:277:21: note: in expansion of macro 'N_GNEW' 277 | verts = N_GNEW(sides, Point); | ^~~~~~ poly.c:295:18: warning: comparing floating-point with '==' or '!=' is unsafe [-Wfloat-equal] 295 | if ((xmargin != 1.0) || (ymargin != 1.0)) | ^~ poly.c:295:38: warning: comparing floating-point with '==' or '!=' is unsafe [-Wfloat-equal] 295 | if ((xmargin != 1.0) || (ymargin != 1.0)) | ^~ adjust.c: In function 'getSizes': adjust.c:631:33: warning: conversion to 'size_t' {aka 'long unsigned int'} from 'int' may change the sign of the result [-Wsign-conversion] 631 | double *sizes = N_GNEW(Ndim * agnnodes(g), double); ../../lib/common/memory.h:23:39: note: in definition of macro 'N_GNEW' 23 | #define N_GNEW(n,t) (t*)gcalloc((n),sizeof(t)) | ^ poly.c: In function 'edgesIntersect': poly.c:351:20: warning: comparing floating-point with '==' or '!=' is unsafe [-Wfloat-equal] 351 | if ((cross == 0) && !bHA && !aHB) { | ^~ ../../lib/common/memory.h:23:38: warning: conversion to 'size_t' {aka 'long unsigned int'} from 'int' may change the sign of the result [-Wsign-conversion] 23 | #define N_GNEW(n,t) (t*)gcalloc((n),sizeof(t)) | ^~~ adjust.c:644:17: note: in expansion of macro 'N_GNEW' 644 | elabs = N_GNEW(nedge_nodes, int); | ^~~~~~ poly.c: In function 'inPoly': ../../lib/common/memory.h:23:38: warning: conversion to 'size_t' {aka 'long unsigned int'} from 'int' may change the sign of the result [-Wsign-conversion] 23 | #define N_GNEW(n,t) (t*)gcalloc((n),sizeof(t)) | ^~~ poly.c:386:15: note: in expansion of macro 'N_GNEW' 386 | tp3 = N_GNEW(maxcnt, Point); | ^~~~~~ adjust.c: In function 'makeMatrix': ../../lib/common/memory.h:23:38: warning: conversion to 'size_t' {aka 'long unsigned int'} from 'int' may change the sign of the result [-Wsign-conversion] 23 | #define N_GNEW(n,t) (t*)gcalloc((n),sizeof(t)) | ^~~ adjust.c:688:9: note: in expansion of macro 'N_GNEW' 688 | I = N_GNEW(nedges, int); | ^~~~~~ poly.c:399:23: warning: comparing floating-point with '==' or '!=' is unsafe [-Wfloat-equal] 399 | if ((tp3[i].y == 0) && (tp3[i1].y == 0)) { | ^~ poly.c:399:43: warning: comparing floating-point with '==' or '!=' is unsafe [-Wfloat-equal] 399 | if ((tp3[i].y == 0) && (tp3[i1].y == 0)) { | ^~ ../../lib/common/memory.h:23:38: warning: conversion to 'size_t' {aka 'long unsigned int'} from 'int' may change the sign of the result [-Wsign-conversion] 23 | #define N_GNEW(n,t) (t*)gcalloc((n),sizeof(t)) | ^~~ adjust.c:689:9: note: in expansion of macro 'N_GNEW' 689 | J = N_GNEW(nedges, int); | ^~~~~~ ../../lib/common/memory.h:23:38: warning: conversion to 'size_t' {aka 'long unsigned int'} from 'int' may change the sign of the result [-Wsign-conversion] 23 | #define N_GNEW(n,t) (t*)gcalloc((n),sizeof(t)) | ^~~ adjust.c:690:11: note: in expansion of macro 'N_GNEW' 690 | val = N_GNEW(nedges, double); | ^~~~~~ poly.c:415:19: warning: comparing floating-point with '==' or '!=' is unsafe [-Wfloat-equal] 415 | if (x == 0) | ^~ ../../lib/common/memory.h:20:38: warning: conversion to 'size_t' {aka 'long unsigned int'} from 'int' may change the sign of the result [-Wsign-conversion] 20 | #define N_NEW(n,t) (t*)gcalloc((n),sizeof(t)) | ^~~ adjust.c:695:16: note: in expansion of macro 'N_NEW' 695 | valD = N_NEW(nedges, double); | ^~~~~ poly.c:420:31: warning: comparing floating-point with '==' or '!=' is unsafe [-Wfloat-equal] 420 | if ((tp3[i].y == 0) || (tp3[i1].y == 0)) { | ^~ poly.c:420:51: warning: comparing floating-point with '==' or '!=' is unsafe [-Wfloat-equal] 420 | if ((tp3[i].y == 0) || (tp3[i1].y == 0)) { | ^~ poly.c: In function 'inBox': poly.c:436:33: warning: declaration of 'origin' shadows a global declaration [-Wshadow] 436 | static int inBox(Point p, Point origin, Point corner) | ~~~~~~^~~~~~ ../../lib/neatogen/geometry.h:25:18: note: shadowed declaration is here 25 | extern Point origin; | ^~~~~~ adjust.c: In function 'fdpAdjust': adjust.c:736:30: warning: conversion to 'size_t' {aka 'long unsigned int'} from 'int' may change the sign of the result [-Wsign-conversion] 736 | double *pos = N_NEW(Ndim * agnnodes(g), double); ../../lib/common/memory.h:20:39: note: in definition of macro 'N_NEW' 20 | #define N_NEW(n,t) (t*)gcalloc((n),sizeof(t)) | ^ poly.c: In function 'polyOverlap': ../../lib/common/memory.h:23:38: warning: conversion to 'size_t' {aka 'long unsigned int'} from 'int' may change the sign of the result [-Wsign-conversion] 23 | #define N_GNEW(n,t) (t*)gcalloc((n),sizeof(t)) | ^~~ poly.c:484:15: note: in expansion of macro 'N_GNEW' 484 | tp1 = N_GNEW(maxcnt, Point); | ^~~~~~ ../../lib/common/memory.h:23:38: warning: conversion to 'size_t' {aka 'long unsigned int'} from 'int' may change the sign of the result [-Wsign-conversion] 23 | #define N_GNEW(n,t) (t*)gcalloc((n),sizeof(t)) | ^~~ poly.c:485:15: note: in expansion of macro 'N_GNEW' 485 | tp2 = N_GNEW(maxcnt, Point); | ^~~~~~ adjust.c: In function 'vpscAdjust': ../../lib/common/memory.h:23:38: warning: conversion to 'size_t' {aka 'long unsigned int'} from 'int' may change the sign of the result [-Wsign-conversion] 23 | #define N_GNEW(n,t) (t*)gcalloc((n),sizeof(t)) | ^~~ adjust.c:792:21: note: in expansion of macro 'N_GNEW' 792 | pointf* nsize = N_GNEW(nnodes, pointf); | ^~~~~~ adjust.c:794:35: warning: conversion to 'size_t' {aka 'long unsigned int'} from 'int' may change the sign of the result [-Wsign-conversion] 794 | float* f_storage = N_GNEW(dim * nnodes, float); ../../lib/common/memory.h:23:39: note: in definition of macro 'N_GNEW' 23 | #define N_GNEW(n,t) (t*)gcalloc((n),sizeof(t)) | ^ adjust.c: In function 'normalize': adjust.c:898:9: warning: comparing floating-point with '==' or '!=' is unsafe [-Wfloat-equal] 898 | if (p.x || p.y) ret = 1; | ^ adjust.c:898:13: warning: comparing floating-point with '==' or '!=' is unsafe [-Wfloat-equal] 898 | if (p.x || p.y) ret = 1; | ^~ In file included from ../../lib/common/render.h:33, from ../../lib/neatogen/neato.h:31, from lu.c:46: lu.c: In function 'lu_decompose': adjust.c:912:9: warning: comparing floating-point with '==' or '!=' is unsafe [-Wfloat-equal] 912 | if (phi) { | ^~~ ../../lib/common/memory.h:20:38: warning: conversion to 'size_t' {aka 'long unsigned int'} from 'int' may change the sign of the result [-Wsign-conversion] 20 | #define N_NEW(n,t) (t*)gcalloc((n),sizeof(t)) | ^~~ lu.c:74:10: note: in expansion of macro 'N_NEW' 74 | ps = N_NEW(n, int); | ^~~~~ ../../lib/common/memory.h:20:38: warning: conversion to 'size_t' {aka 'long unsigned int'} from 'int' may change the sign of the result [-Wsign-conversion] 20 | #define N_NEW(n,t) (t*)gcalloc((n),sizeof(t)) | ^~~ lu.c:76:14: note: in expansion of macro 'N_NEW' 76 | scales = N_NEW(n, double); | ^~~~~ lu.c:118:30: warning: comparing floating-point with '==' or '!=' is unsafe [-Wfloat-equal] 118 | if (lu[ps[n - 1]][n - 1] == 0.0) | ^~ adjust.c: In function 'getAdjustMode': adjust.c:997:47: warning: conversion to 'size_t' {aka 'long unsigned int'} from 'int' may change the sign of the result [-Wsign-conversion] 997 | if (!strncasecmp(s, ap->attrib, ap->len)) { | ~~^~~~~ adjust.c: In function 'simpleScale': adjust.c:1057:22: warning: comparing floating-point with '==' or '!=' is unsafe [-Wfloat-equal] 1057 | if (sc.y == 1 && sc.x == 1) return 0; | ^~ adjust.c:1057:35: warning: comparing floating-point with '==' or '!=' is unsafe [-Wfloat-equal] 1057 | if (sc.y == 1 && sc.x == 1) return 0; | ^~ CC neatosplines.lo CC stuff.lo CC voronoi.lo info.c: In function 'compare': info.c:44:16: warning: comparing floating-point with '==' or '!=' is unsafe [-Wfloat-equal] 44 | if (p->p.x == q->p.x && p->p.y == q->p.y) | ^~ info.c:44:36: warning: comparing floating-point with '==' or '!=' is unsafe [-Wfloat-equal] 44 | if (p->p.x == q->p.x && p->p.y == q->p.y) | ^~ info.c: In function 'addVertex': info.c:116:12: warning: declaration of 'origin' shadows a global declaration [-Wshadow] 116 | Point *origin = &s->coord; | ^~~~~~ In file included from ../../lib/neatogen/site.h:17, from ../../lib/neatogen/voronoi.h:17, from ../../lib/neatogen/info.h:17, from info.c:14: ../../lib/neatogen/geometry.h:25:18: note: shadowed declaration is here 25 | extern Point origin; | ^~~~~~ In file included from ../../lib/common/render.h:33, from matinv.c:35: matinv.c: In function 'matinv': ../../lib/common/memory.h:20:38: warning: conversion to 'size_t' {aka 'long unsigned int'} from 'int' may change the sign of the result [-Wsign-conversion] 20 | #define N_NEW(n,t) (t*)gcalloc((n),sizeof(t)) | ^~~ matinv.c:48:9: note: in expansion of macro 'N_NEW' 48 | b = N_NEW(n, double); | ^~~~~ edges.c: In function 'clip_line': edges.c:81:14: warning: comparing floating-point with '==' or '!=' is unsafe [-Wfloat-equal] 81 | if (e->a == 1.0 && e->b >= 0.0) { | ^~ legal.c: In function 'online': edges.c:89:14: warning: comparing floating-point with '==' or '!=' is unsafe [-Wfloat-equal] 89 | if (e->a == 1.0) { | ^~ legal.c:130:16: warning: comparing floating-point with '==' or '!=' is unsafe [-Wfloat-equal] 130 | return a.x == b.x | ^~ memory.c: In function 'freeinit': legal.c:131:14: warning: comparing floating-point with '==' or '!=' is unsafe [-Wfloat-equal] 131 | ? (a.x == c.x && -1 != between(a.y, c.y, b.y)) | ^~ legal.c: In function 'intpoint': legal.c:151:18: warning: comparing floating-point with '==' or '!=' is unsafe [-Wfloat-equal] 151 | if (ls.x == le.x) { | ^~ memory.c:38:22: warning: conversion to 'long unsigned int' from 'int' may change the sign of the result [-Wsign-conversion] 38 | #define LCM(x,y) ((x)%(y) == 0 ? (x) : (y)%(x) == 0 ? (y) : x*(y/gcd(x,y))) | ^ memory.c:44:20: note: in expansion of macro 'LCM' 44 | fl->nodesize = LCM(size, sizeof(Freenode)); | ^~~ legal.c:154:25: warning: comparing floating-point with '==' or '!=' is unsafe [-Wfloat-equal] 154 | } else if (ms.x == me.x) { | ^~ memory.c:38:43: warning: conversion to 'long unsigned int' from 'int' may change the sign of the result [-Wsign-conversion] 38 | #define LCM(x,y) ((x)%(y) == 0 ? (x) : (y)%(x) == 0 ? (y) : x*(y/gcd(x,y))) | ^ memory.c:44:20: note: in expansion of macro 'LCM' 44 | fl->nodesize = LCM(size, sizeof(Freenode)); | ^~~ memory.c:38:65: warning: conversion to 'long unsigned int' from 'int' may change the sign of the result [-Wsign-conversion] 38 | #define LCM(x,y) ((x)%(y) == 0 ? (x) : (y)%(x) == 0 ? (y) : x*(y/gcd(x,y))) | ^ memory.c:44:20: note: in expansion of macro 'LCM' 44 | fl->nodesize = LCM(size, sizeof(Freenode)); | ^~~ memory.c:38:62: warning: conversion to 'long unsigned int' from 'int' may change the sign of the result [-Wsign-conversion] 38 | #define LCM(x,y) ((x)%(y) == 0 ? (x) : (y)%(x) == 0 ? (y) : x*(y/gcd(x,y))) | ^ memory.c:44:20: note: in expansion of macro 'LCM' 44 | fl->nodesize = LCM(size, sizeof(Freenode)); | ^~~ memory.c:38:34: warning: operand of '?:' changes signedness from 'int' to 'long unsigned int' due to unsignedness of other operand [-Wsign-compare] 38 | #define LCM(x,y) ((x)%(y) == 0 ? (x) : (y)%(x) == 0 ? (y) : x*(y/gcd(x,y))) | ^~~ memory.c:44:20: note: in expansion of macro 'LCM' 44 | fl->nodesize = LCM(size, sizeof(Freenode)); | ^~~ memory.c:38:38: warning: conversion to 'long unsigned int' from 'int' may change the sign of the result [-Wsign-conversion] 38 | #define LCM(x,y) ((x)%(y) == 0 ? (x) : (y)%(x) == 0 ? (y) : x*(y/gcd(x,y))) | ^ memory.c:44:20: note: in expansion of macro 'LCM' 44 | fl->nodesize = LCM(size, sizeof(Freenode)); | ^~~ legal.c:189:43: warning: comparing floating-point with '==' or '!=' is unsafe [-Wfloat-equal] 189 | if ((ls.x - le.x) * (ms.y - ls.y) == (ls.y - le.y) * (ms.x - ls.x)) { | ^~ legal.c:148:5: warning: switch missing default case [-Wswitch-default] 148 | switch (cond) { | ^~~~~~ memory.c:38:18: warning: conversion from 'long unsigned int' to 'int' may change value [-Wconversion] 38 | #define LCM(x,y) ((x)%(y) == 0 ? (x) : (y)%(x) == 0 ? (y) : x*(y/gcd(x,y))) | ^ memory.c:44:20: note: in expansion of macro 'LCM' 44 | fl->nodesize = LCM(size, sizeof(Freenode)); | ^~~ memory.c: In function 'getfree': memory.c:70:42: warning: conversion to 'size_t' {aka 'long unsigned int'} from 'int' may change the sign of the result [-Wsign-conversion] 70 | mem->nodes = gmalloc(sqrt_nsites * size); | ~~~~~~~~~~~~^~~~~~ legal.c: In function 'realIntersect': legal.c:220:16: warning: comparing floating-point with '==' or '!=' is unsafe [-Wfloat-equal] 220 | if ((vft.x != avft.x && vsd.x != avsd.x) || | ^~ legal.c:220:35: warning: comparing floating-point with '==' or '!=' is unsafe [-Wfloat-equal] 220 | if ((vft.x != avft.x && vsd.x != avsd.x) || | ^~ legal.c:221:16: warning: comparing floating-point with '==' or '!=' is unsafe [-Wfloat-equal] 221 | (vft.x == avft.x && !EQ_PT(vft, p) && !EQ_PT(avft, p)) || | ^~ legal.c:21:28: warning: comparing floating-point with '==' or '!=' is unsafe [-Wfloat-equal] 21 | #define EQ_PT(v,w) (((v).x == (w).x) && ((v).y == (w).y)) | ^~ legal.c:221:30: note: in expansion of macro 'EQ_PT' 221 | (vft.x == avft.x && !EQ_PT(vft, p) && !EQ_PT(avft, p)) || | ^~~~~ legal.c:21:48: warning: comparing floating-point with '==' or '!=' is unsafe [-Wfloat-equal] 21 | #define EQ_PT(v,w) (((v).x == (w).x) && ((v).y == (w).y)) | ^~ legal.c:221:30: note: in expansion of macro 'EQ_PT' 221 | (vft.x == avft.x && !EQ_PT(vft, p) && !EQ_PT(avft, p)) || | ^~~~~ legal.c:21:28: warning: comparing floating-point with '==' or '!=' is unsafe [-Wfloat-equal] 21 | #define EQ_PT(v,w) (((v).x == (w).x) && ((v).y == (w).y)) | ^~ legal.c:221:48: note: in expansion of macro 'EQ_PT' 221 | (vft.x == avft.x && !EQ_PT(vft, p) && !EQ_PT(avft, p)) || | ^~~~~ legal.c:21:48: warning: comparing floating-point with '==' or '!=' is unsafe [-Wfloat-equal] 21 | #define EQ_PT(v,w) (((v).x == (w).x) && ((v).y == (w).y)) | ^~ legal.c:221:48: note: in expansion of macro 'EQ_PT' 221 | (vft.x == avft.x && !EQ_PT(vft, p) && !EQ_PT(avft, p)) || | ^~~~~ legal.c:222:16: warning: comparing floating-point with '==' or '!=' is unsafe [-Wfloat-equal] 222 | (vsd.x == avsd.x && !EQ_PT(vsd, p) && !EQ_PT(avsd, p))) | ^~ legal.c:21:28: warning: comparing floating-point with '==' or '!=' is unsafe [-Wfloat-equal] 21 | #define EQ_PT(v,w) (((v).x == (w).x) && ((v).y == (w).y)) | ^~ legal.c:222:30: note: in expansion of macro 'EQ_PT' 222 | (vsd.x == avsd.x && !EQ_PT(vsd, p) && !EQ_PT(avsd, p))) | ^~~~~ legal.c:21:48: warning: comparing floating-point with '==' or '!=' is unsafe [-Wfloat-equal] 21 | #define EQ_PT(v,w) (((v).x == (w).x) && ((v).y == (w).y)) | ^~ legal.c:222:30: note: in expansion of macro 'EQ_PT' 222 | (vsd.x == avsd.x && !EQ_PT(vsd, p) && !EQ_PT(avsd, p))) | ^~~~~ legal.c:21:28: warning: comparing floating-point with '==' or '!=' is unsafe [-Wfloat-equal] 21 | #define EQ_PT(v,w) (((v).x == (w).x) && ((v).y == (w).y)) | ^~ legal.c:222:48: note: in expansion of macro 'EQ_PT' 222 | (vsd.x == avsd.x && !EQ_PT(vsd, p) && !EQ_PT(avsd, p))) | ^~~~~ legal.c:21:48: warning: comparing floating-point with '==' or '!=' is unsafe [-Wfloat-equal] 21 | #define EQ_PT(v,w) (((v).x == (w).x) && ((v).y == (w).y)) | ^~ legal.c:222:48: note: in expansion of macro 'EQ_PT' 222 | (vsd.x == avsd.x && !EQ_PT(vsd, p) && !EQ_PT(avsd, p))) | ^~~~~ In file included from ../../lib/common/render.h:33, from ../../lib/neatogen/neato.h:31, from legal.c:13: legal.c: In function 'find_ints': legal.c:319:27: warning: conversion to 'size_t' {aka 'long unsigned int'} from 'int' may change the sign of the result [-Wsign-conversion] 319 | pvertex = N_GNEW(input->nvertices, vertex *); ../../lib/common/memory.h:23:39: note: in definition of macro 'N_GNEW' 23 | #define N_GNEW(n,t) (t*)gcalloc((n),sizeof(t)) | ^ legal.c:325:25: warning: conversion to 'size_t' {aka 'long unsigned int'} from 'int' may change the sign of the result [-Wsign-conversion] 325 | qsort(pvertex, input->nvertices, sizeof(vertex *), gt); | ~~~~~^~~~~~~~~~~ legal.c: In function 'Plegal_arrangement': ../../lib/common/memory.h:23:38: warning: conversion to 'size_t' {aka 'long unsigned int'} from 'int' may change the sign of the result [-Wsign-conversion] 23 | #define N_GNEW(n,t) (t*)gcalloc((n),sizeof(t)) | ^~~ legal.c:451:20: note: in expansion of macro 'N_GNEW' 451 | polygon_list = N_GNEW(n_polys, polygon); | ^~~~~~ ../../lib/common/memory.h:23:38: warning: conversion to 'size_t' {aka 'long unsigned int'} from 'int' may change the sign of the result [-Wsign-conversion] 23 | #define N_GNEW(n,t) (t*)gcalloc((n),sizeof(t)) | ^~~ legal.c:456:19: note: in expansion of macro 'N_GNEW' 456 | vertex_list = N_GNEW(nverts, vertex); | ^~~~~~ neatoinit.c: In function 'cluster_map': neatoinit.c:192:48: warning: conversion to 'size_t' {aka 'long unsigned int'} from 'int' may change the sign of the result [-Wsign-conversion] 192 | bitarray_t assigned = bitarray_new_or_exit(agnnodes(g)); | ^~~~~~~~~~~ In file included from ../../lib/common/render.h:33, from ../../lib/neatogen/neato.h:31, from neatoinit.c:20: ../../lib/common/memory.h:23:38: warning: conversion to 'size_t' {aka 'long unsigned int'} from 'int' may change the sign of the result [-Wsign-conversion] 23 | #define N_GNEW(n,t) (t*)gcalloc((n),sizeof(t)) | ^~~ neatoinit.c:203:28: note: in expansion of macro 'N_GNEW' 203 | cs = cdata->clusters = N_GNEW(nclusters,int*); | ^~~~~~ ../../lib/common/memory.h:23:38: warning: conversion to 'size_t' {aka 'long unsigned int'} from 'int' may change the sign of the result [-Wsign-conversion] 23 | #define N_GNEW(n,t) (t*)gcalloc((n),sizeof(t)) | ^~~ neatoinit.c:204:32: note: in expansion of macro 'N_GNEW' 204 | cn = cdata->clustersizes = N_GNEW(nclusters,int); | ^~~~~~ neatoinit.c:212:32: warning: conversion to 'size_t' {aka 'long unsigned int'} from 'int' may change the sign of the result [-Wsign-conversion] 212 | c = *cs++ = N_GNEW(*cn++,int); ../../lib/common/memory.h:23:39: note: in definition of macro 'N_GNEW' 23 | #define N_GNEW(n,t) (t*)gcalloc((n),sizeof(t)) | ^ neatoinit.c:221:41: warning: conversion to 'size_t' {aka 'long unsigned int'} from 'int' may change the sign of the result [-Wsign-conversion] 221 | bitarray_set(&assigned, ind, true); | ^~~ neatoinit.c:226:27: warning: conversion to 'size_t' {aka 'long unsigned int'} from 'int' may change the sign of the result [-Wsign-conversion] 226 | cdata->bb=N_GNEW(cdata->nclusters,boxf); ../../lib/common/memory.h:23:39: note: in definition of macro 'N_GNEW' 23 | #define N_GNEW(n,t) (t*)gcalloc((n),sizeof(t)) | ^ neatoinit.c:227:33: warning: conversion to 'size_t' {aka 'long unsigned int'} from 'int' may change the sign of the result [-Wsign-conversion] 227 | cdata->toplevel=N_GNEW(cdata->ntoplevel,int); ../../lib/common/memory.h:23:39: note: in definition of macro 'N_GNEW' 23 | #define N_GNEW(n,t) (t*)gcalloc((n),sizeof(t)) | ^ neatoinit.c:229:36: warning: conversion to 'size_t' {aka 'long unsigned int'} from 'int' may change the sign of the result [-Wsign-conversion] 229 | if(!bitarray_get(assigned, i)) { | ^ CC stress.lo neatoinit.c: In function 'user_spline': ../../lib/common/memory.h:25:98: warning: conversion to 'long unsigned int' from 'int' may change the sign of the result [-Wsign-conversion] 25 | #define ALLOC(size,ptr,type) (ptr? (type*)grealloc(ptr,(size)*sizeof(type)):(type*)gmalloc((size)*sizeof(type))) | ^ neatoinit.c:303:14: note: in expansion of macro 'ALLOC' 303 | ps = ALLOC(n, 0, pointf); | ^~~~~ neatoinit.c: In function 'add_cluster': neatoinit.c:451:30: warning: conversion to 'size_t' {aka 'long unsigned int'} from 'int' may change the sign of the result [-Wsign-conversion] 451 | GD_clust(g) = ZALLOC(cno + 1, GD_clust(g), graph_t *, GD_n_cluster(g)); | ~~~~^~~ ../../lib/common/memory.h:27:63: note: in definition of macro 'ZALLOC' 27 | #define ZALLOC(size,ptr,type,osize) (ptr? (type*)zrealloc(ptr,size,sizeof(type),osize):(type*)zmalloc((size)*sizeof(type))) | ^~~~ ../../lib/common/types.h:382:52: warning: conversion to 'size_t' {aka 'long unsigned int'} from 'int' may change the sign of the result [-Wsign-conversion] 382 | #define GD_n_cluster(g) (((Agraphinfo_t*)AGDATA(g))->n_cluster) | ~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~ ../../lib/common/memory.h:27:81: note: in definition of macro 'ZALLOC' 27 | #define ZALLOC(size,ptr,type,osize) (ptr? (type*)zrealloc(ptr,size,sizeof(type),osize):(type*)zmalloc((size)*sizeof(type))) | ^~~~~ neatoinit.c:451:59: note: in expansion of macro 'GD_n_cluster' 451 | GD_clust(g) = ZALLOC(cno + 1, GD_clust(g), graph_t *, GD_n_cluster(g)); | ^~~~~~~~~~~~ ../../lib/common/memory.h:27:109: warning: conversion to 'long unsigned int' from 'int' may change the sign of the result [-Wsign-conversion] 27 | #define ZALLOC(size,ptr,type,osize) (ptr? (type*)zrealloc(ptr,size,sizeof(type),osize):(type*)zmalloc((size)*sizeof(type))) | ^ neatoinit.c:451:19: note: in expansion of macro 'ZALLOC' 451 | GD_clust(g) = ZALLOC(cno + 1, GD_clust(g), graph_t *, GD_n_cluster(g)); | ^~~~~~ neatoinit.c: In function 'init_nop': neatoinit.c:590:60: warning: comparing floating-point with '==' or '!=' is unsafe [-Wfloat-equal] 590 | if (translate && !haveBackground && (GD_bb(g).LL.x != 0||GD_bb(g).LL.y != 0)) | ^~ neatoinit.c:590:80: warning: comparing floating-point with '==' or '!=' is unsafe [-Wfloat-equal] 590 | if (translate && !haveBackground && (GD_bb(g).LL.x != 0||GD_bb(g).LL.y != 0)) | ^~ neatoinit.c: In function 'neato_init_graph': neatoinit.c:613:26: warning: conversion from 'int' to 'short unsigned int' may change value [-Wconversion] 613 | GD_ndim(agroot(g)) = late_int(g, agfindgraphattr(g, "dim"), outdim, 2); | ^~~~~~~~ In file included from ../../lib/common/geom.h:16, from ../../lib/common/types.h:28, from ../../lib/common/render.h:29: ../../lib/common/arith.h:31:25: warning: conversion from 'int' to 'short unsigned int' may change value [-Wconversion] 31 | #define MIN(a,b) ((a)<(b)?(a):(b)) | ^ neatoinit.c:615:24: note: in expansion of macro 'MIN' 615 | GD_odim(g->root) = MIN(outdim, Ndim); | ^~~ neatoinit.c: In function 'dfsCycle': neatoinit.c:714:32: warning: comparing floating-point with '==' or '!=' is unsafe [-Wfloat-equal] 714 | if (graph[i].edists[e] == 1.0) continue; /* in edge */ | ^~ neatoinit.c:718:34: warning: conversion from 'double' to 'float' may change value [-Wfloat-conversion] 718 | graph[i].edists[e] = x; | ^ CC kkutils.lo neatoinit.c: In function 'makeGraphData': ../../lib/common/memory.h:23:38: warning: conversion to 'size_t' {aka 'long unsigned int'} from 'int' may change the sign of the result [-Wsign-conversion] 23 | #define N_GNEW(n,t) (t*)gcalloc((n),sizeof(t)) | ^~~ neatoinit.c:801:13: note: in expansion of macro 'N_GNEW' 801 | graph = N_GNEW(nv, vtx_data); | ^~~~~~ ../../lib/common/memory.h:23:38: warning: conversion to 'size_t' {aka 'long unsigned int'} from 'int' may change the sign of the result [-Wsign-conversion] 23 | #define N_GNEW(n,t) (t*)gcalloc((n),sizeof(t)) | ^~~ neatoinit.c:802:13: note: in expansion of macro 'N_GNEW' 802 | nodes = N_GNEW(nv, node_t*); | ^~~~~~ neatoinit.c:803:27: warning: conversion to 'size_t' {aka 'long unsigned int'} from 'int' may change the sign of the result [-Wsign-conversion] 803 | edges = N_GNEW(2 * ne + nv, int); /* reserve space for self loops */ ../../lib/common/memory.h:23:39: note: in definition of macro 'N_GNEW' 23 | #define N_GNEW(n,t) (t*)gcalloc((n),sizeof(t)) | ^ neatoinit.c:805:31: warning: conversion to 'size_t' {aka 'long unsigned int'} from 'int' may change the sign of the result [-Wsign-conversion] 805 | ewgts = N_GNEW(2 * ne + nv, float); ../../lib/common/memory.h:23:39: note: in definition of macro 'N_GNEW' 23 | #define N_GNEW(n,t) (t*)gcalloc((n),sizeof(t)) | ^ neatoinit.c:807:34: warning: conversion to 'size_t' {aka 'long unsigned int'} from 'int' may change the sign of the result [-Wsign-conversion] 807 | eweights = N_GNEW(2 * ne + nv, float); ../../lib/common/memory.h:23:39: note: in definition of macro 'N_GNEW' 23 | #define N_GNEW(n,t) (t*)gcalloc((n),sizeof(t)) | ^ CC matrix_ops.lo neatoinit.c:810:29: warning: conversion to 'size_t' {aka 'long unsigned int'} from 'int' may change the sign of the result [-Wsign-conversion] 810 | edists = N_GNEW(2*ne+nv,float); ../../lib/common/memory.h:23:39: note: in definition of macro 'N_GNEW' 23 | #define N_GNEW(n,t) (t*)gcalloc((n),sizeof(t)) | ^ ../../lib/common/types.h:574:22: warning: conversion from 'double' to 'float' may change value [-Wfloat-conversion] 574 | #define ED_factor(e) (((Agedgeinfo_t*)AGDATA(e))->factor) | ^ neatoinit.c:844:47: note: in expansion of macro 'ED_factor' 844 | graph[i].eweights[idx] += ED_factor(ep); | ^~~~~~~~~ neatoinit.c:846:34: warning: conversion from 'float' to 'int' may change value [-Wfloat-conversion] 846 | int curlen = graph[i].ewgts[idx]; | ^~~~~ ../../lib/common/arith.h:36:25: warning: conversion from 'double' to 'float' may change value [-Wfloat-conversion] 36 | #define MAX(a,b) ((a)>(b)?(a):(b)) | ^ neatoinit.c:847:43: note: in expansion of macro 'MAX' 847 | graph[i].ewgts[idx] = MAX(ED_dist(ep), curlen); | ^~~ ../../lib/common/types.h:574:22: warning: conversion from 'double' to 'float' may change value [-Wfloat-conversion] 574 | #define ED_factor(e) (((Agedgeinfo_t*)AGDATA(e))->factor) | ^ neatoinit.c:856:35: note: in expansion of macro 'ED_factor' 856 | *eweights++ = ED_factor(ep); | ^~~~~~~~~ ../../lib/common/types.h:591:20: warning: conversion from 'double' to 'float' may change value [-Wfloat-conversion] 591 | #define ED_dist(e) (((Agedgeinfo_t*)AGDATA(e))->dist) | ^ neatoinit.c:858:32: note: in expansion of macro 'ED_dist' 858 | *ewgts++ = ED_dist(ep); | ^~~~~~~ ../../lib/common/memory.h:26:58: warning: conversion to 'long unsigned int' from 'int' may change the sign of the result [-Wsign-conversion] 26 | #define RALLOC(size,ptr,type) ((type*)grealloc(ptr,(size)*sizeof(type))) | ^ neatoinit.c:893:17: note: in expansion of macro 'RALLOC' 893 | edges = RALLOC(2 * ne + nv, graph[0].edges, int); | ^~~~~~ ../../lib/common/memory.h:26:58: warning: conversion to 'long unsigned int' from 'int' may change the sign of the result [-Wsign-conversion] 26 | #define RALLOC(size,ptr,type) ((type*)grealloc(ptr,(size)*sizeof(type))) | ^ neatoinit.c:895:21: note: in expansion of macro 'RALLOC' 895 | ewgts = RALLOC(2 * ne + nv, graph[0].ewgts, float); | ^~~~~~ ../../lib/common/memory.h:26:58: warning: conversion to 'long unsigned int' from 'int' may change the sign of the result [-Wsign-conversion] 26 | #define RALLOC(size,ptr,type) ((type*)grealloc(ptr,(size)*sizeof(type))) | ^ neatoinit.c:897:24: note: in expansion of macro 'RALLOC' 897 | eweights = RALLOC(2 * ne + nv, graph[0].eweights, float); | ^~~~~~ CC embed_graph.lo neatoinit.c: In function 'majorization': ../../lib/common/memory.h:23:38: warning: conversion to 'size_t' {aka 'long unsigned int'} from 'int' may change the sign of the result [-Wsign-conversion] 23 | #define N_GNEW(n,t) (t*)gcalloc((n),sizeof(t)) | ^~~ neatoinit.c:1142:14: note: in expansion of macro 'N_GNEW' 1142 | coords = N_GNEW(dim, double *); | ^~~~~~ neatoinit.c:1143:27: warning: conversion to 'size_t' {aka 'long unsigned int'} from 'int' may change the sign of the result [-Wsign-conversion] 1143 | coords[0] = N_GNEW(nv * dim, double); ../../lib/common/memory.h:23:39: note: in definition of macro 'N_GNEW' 23 | #define N_GNEW(n,t) (t*)gcalloc((n),sizeof(t)) | ^ ../../lib/common/memory.h:23:38: warning: conversion to 'size_t' {aka 'long unsigned int'} from 'int' may change the sign of the result [-Wsign-conversion] 23 | #define N_GNEW(n,t) (t*)gcalloc((n),sizeof(t)) | ^~~ neatoinit.c:1173:21: note: in expansion of macro 'N_GNEW' 1173 | nsize = N_GNEW(nv, pointf); | ^~~~~~ neatoinit.c: In function 'neato_layout': ../../lib/common/memory.h:20:38: warning: conversion to 'size_t' {aka 'long unsigned int'} from 'int' may change the sign of the result [-Wsign-conversion] 20 | #define N_NEW(n,t) (t*)gcalloc((n),sizeof(t)) | ^~~ neatoinit.c:1469:26: note: in expansion of macro 'N_NEW' 1469 | bp = N_NEW(n_cc, bool); | ^~~~~ CC dijkstra.lo CC conjgrad.lo CC pca.lo CC closest.lo CC bfs.lo CC constraint.lo CC quad_prog_solve.lo voronoi.c: In function 'voronoi': voronoi.c:44:26: warning: comparing floating-point with '==' or '!=' is unsafe [-Wfloat-equal] 44 | (newsite->coord.y ==newintstar.y && newsite->coord.x < newintstar.x))) { | ^~ voronoi.c:19:18: warning: unused parameter 'triangulate' [-Wunused-parameter] 19 | void voronoi(int triangulate, Site * (*nextsite) (void)) | ~~~~^~~~~~~~~~~ CC smart_ini_x.lo In file included from ../../lib/common/render.h:33, from ../../lib/neatogen/neato.h:31, from stuff.c:14: stuff.c: In function 'new_array': ../../lib/common/memory.h:20:38: warning: conversion to 'size_t' {aka 'long unsigned int'} from 'int' may change the sign of the result [-Wsign-conversion] 20 | #define N_NEW(n,t) (t*)gcalloc((n),sizeof(t)) | ^~~ stuff.c:51:10: note: in expansion of macro 'N_NEW' 51 | rv = N_NEW(m, double *); | ^~~~~ stuff.c:52:19: warning: conversion to 'size_t' {aka 'long unsigned int'} from 'int' may change the sign of the result [-Wsign-conversion] 52 | mem = N_NEW(m * n, double); ../../lib/common/memory.h:20:39: note: in definition of macro 'N_NEW' 20 | #define N_NEW(n,t) (t*)gcalloc((n),sizeof(t)) | ^ stuff.c: In function 'new_3array': stuff.c:76:18: warning: conversion to 'size_t' {aka 'long unsigned int'} from 'int' may change the sign of the result [-Wsign-conversion] 76 | rv = N_NEW(m + 1, double **); ../../lib/common/memory.h:20:39: note: in definition of macro 'N_NEW' 20 | #define N_NEW(n,t) (t*)gcalloc((n),sizeof(t)) | ^ stuff.c:78:25: warning: conversion to 'size_t' {aka 'long unsigned int'} from 'int' may change the sign of the result [-Wsign-conversion] 78 | rv[i] = N_NEW(n + 1, double *); ../../lib/common/memory.h:20:39: note: in definition of macro 'N_NEW' 20 | #define N_NEW(n,t) (t*)gcalloc((n),sizeof(t)) | ^ ../../lib/common/memory.h:20:38: warning: conversion to 'size_t' {aka 'long unsigned int'} from 'int' may change the sign of the result [-Wsign-conversion] 20 | #define N_NEW(n,t) (t*)gcalloc((n),sizeof(t)) | ^~~ stuff.c:80:24: note: in expansion of macro 'N_NEW' 80 | rv[i][j] = N_NEW(p, double); | ^~~~~ stuff.c: In function 'lenattr': stuff.c:119:61: warning: comparing floating-point with '==' or '!=' is unsafe [-Wfloat-equal] 119 | if ((sscanf(s, "%lf", val) < 1) || (*val < 0) || ((*val == 0) && !Nop)) { | ^~ stuff.c: In function 'scan_graph_mode': stuff.c:256:38: warning: conversion to 'size_t' {aka 'long unsigned int'} from 'int' may change the sign of the result [-Wsign-conversion] 256 | GD_neato_nlist(G) = N_NEW(nV + 1, node_t *); ../../lib/common/memory.h:20:39: note: in definition of macro 'N_NEW' 20 | #define N_NEW(n,t) (t*)gcalloc((n),sizeof(t)) | ^ stuff.c:266:38: warning: conversion to 'size_t' {aka 'long unsigned int'} from 'int' may change the sign of the result [-Wsign-conversion] 266 | GD_neato_nlist(G) = N_NEW(nV + 1, node_t *); // not sure why but sometimes needs the + 1 ../../lib/common/memory.h:20:39: note: in definition of macro 'N_NEW' 20 | #define N_NEW(n,t) (t*)gcalloc((n),sizeof(t)) | ^ stuff.c: In function 'move_node': ../../lib/common/memory.h:25:62: warning: conversion to 'long unsigned int' from 'int' may change the sign of the result [-Wsign-conversion] 25 | #define ALLOC(size,ptr,type) (ptr? (type*)grealloc(ptr,(size)*sizeof(type)):(type*)gmalloc((size)*sizeof(type))) | ^ stuff.c:557:9: note: in expansion of macro 'ALLOC' 557 | a = ALLOC(Ndim * Ndim, a, double); | ^~~~~ ../../lib/common/memory.h:25:98: warning: conversion to 'long unsigned int' from 'int' may change the sign of the result [-Wsign-conversion] 25 | #define ALLOC(size,ptr,type) (ptr? (type*)grealloc(ptr,(size)*sizeof(type)):(type*)gmalloc((size)*sizeof(type))) | ^ stuff.c:557:9: note: in expansion of macro 'ALLOC' 557 | a = ALLOC(Ndim * Ndim, a, double); | ^~~~~ stuff.c: In function 'shortest_path': stuff.c:657:21: warning: conversion to 'size_t' {aka 'long unsigned int'} from 'int' may change the sign of the result [-Wsign-conversion] 657 | Heap = N_NEW(nG + 1, node_t *); ../../lib/common/memory.h:20:39: note: in definition of macro 'N_NEW' 20 | #define N_NEW(n,t) (t*)gcalloc((n),sizeof(t)) | ^ In file included from ../../lib/common/render.h:33, from ../../lib/neatogen/neato.h:31, from neatosplines.c:15: neatosplines.c: In function 'make_barriers': ../../lib/common/memory.h:23:38: warning: conversion to 'size_t' {aka 'long unsigned int'} from 'int' may change the sign of the result [-Wsign-conversion] 23 | #define N_GNEW(n,t) (t*)gcalloc((n),sizeof(t)) | ^~~ neatosplines.c:57:11: note: in expansion of macro 'N_GNEW' 57 | bar = N_GNEW(n, Pedge_t); | ^~~~~~ neatosplines.c: In function 'makeSelfArcs': ../../lib/common/memory.h:23:38: warning: conversion to 'size_t' {aka 'long unsigned int'} from 'int' may change the sign of the result [-Wsign-conversion] 23 | #define N_GNEW(n,t) (t*)gcalloc((n),sizeof(t)) | ^~~ neatosplines.c:249:26: note: in expansion of macro 'N_GNEW' 249 | edge_t **edges = N_GNEW(cnt, edge_t *); | ^~~~~~ neatosplines.c: In function 'makeObstacle': ../../lib/common/memory.h:20:38: warning: conversion to 'size_t' {aka 'long unsigned int'} from 'int' may change the sign of the result [-Wsign-conversion] 20 | #define N_NEW(n,t) (t*)gcalloc((n),sizeof(t)) | ^~~ neatosplines.c:338:19: note: in expansion of macro 'N_NEW' 338 | obs->ps = N_NEW(sides, Ppoint_t); | ^~~~~ neatosplines.c: In function 'getPath': neatosplines.c:452:65: warning: unused parameter 'obs' [-Wunused-parameter] 452 | getPath(edge_t * e, vconfig_t * vconfig, int chkPts, Ppoly_t ** obs, | ~~~~~~~~~~~^~~ neatosplines.c:453:13: warning: unused parameter 'npoly' [-Wunused-parameter] 453 | int npoly) | ~~~~^~~~~ CC constrained_majorization.lo neatosplines.c: In function '_spline_edges': neatosplines.c:563:21: warning: conversion to 'size_t' {aka 'long unsigned int'} from 'int' may change the sign of the result [-Wsign-conversion] 563 | obs = N_NEW(agnnodes(g), Ppoly_t *); ../../lib/common/memory.h:20:39: note: in definition of macro 'N_NEW' 20 | #define N_NEW(n,t) (t*)gcalloc((n),sizeof(t)) | ^ neatosplines.c:624:50: warning: conversion to 'size_t' {aka 'long unsigned int'} from 'int' may change the sign of the result [-Wsign-conversion] 624 | P->boxes = N_NEW(agnnodes(g) + 20 * 2 * 9, boxf); ../../lib/common/memory.h:20:39: note: in definition of macro 'N_NEW' 20 | #define N_NEW(n,t) (t*)gcalloc((n),sizeof(t)) | ^ In file included from ../../lib/common/render.h:29: neatosplines.c: In function '_neato_set_aspect': ../../lib/common/types.h:343:18: warning: comparing floating-point with '==' or '!=' is unsafe [-Wfloat-equal] 343 | #define GD_bb(g) (((Agraphinfo_t*)AGDATA(g))->bb) | ^ neatosplines.c:1007:13: note: in expansion of macro 'GD_bb' 1007 | if (GD_bb(g).LL.x || GD_bb(g).LL.y) { | ^~~~~ neatosplines.c:1007:27: warning: comparing floating-point with '==' or '!=' is unsafe [-Wfloat-equal] 1007 | if (GD_bb(g).LL.x || GD_bb(g).LL.y) { | ^~ In file included from matrix_ops.c:13: matrix_ops.c: In function 'power_iteration': ../../lib/common/memory.h:23:38: warning: conversion to 'size_t' {aka 'long unsigned int'} from 'int' may change the sign of the result [-Wsign-conversion] 23 | #define N_GNEW(n,t) (t*)gcalloc((n),sizeof(t)) | ^~~ matrix_ops.c:27:23: note: in expansion of macro 'N_GNEW' 27 | double *tmp_vec = N_GNEW(n, double); | ^~~~~~ ../../lib/common/memory.h:23:38: warning: conversion to 'size_t' {aka 'long unsigned int'} from 'int' may change the sign of the result [-Wsign-conversion] 23 | #define N_GNEW(n,t) (t*)gcalloc((n),sizeof(t)) | ^~~ matrix_ops.c:28:24: note: in expansion of macro 'N_GNEW' 28 | double *last_vec = N_GNEW(n, double); | ^~~~~~ matrix_ops.c: In function 'mult_dense_mat': matrix_ops.c:151:45: warning: conversion to 'long unsigned int' from 'int' may change the sign of the result [-Wsign-conversion] 151 | storage = realloc(C[0], dim1 * dim3 * sizeof(A[0])); | ^ matrix_ops.c:152:35: warning: conversion to 'long unsigned int' from 'int' may change the sign of the result [-Wsign-conversion] 152 | *CC = C = realloc(C, dim1 * sizeof(A)); | ^ matrix_ops.c:154:38: warning: conversion to 'long unsigned int' from 'int' may change the sign of the result [-Wsign-conversion] 154 | storage = malloc(dim1 * dim3 * sizeof(A[0])); | ^ matrix_ops.c:155:31: warning: conversion to 'long unsigned int' from 'int' may change the sign of the result [-Wsign-conversion] 155 | *CC = C = malloc(dim1 * sizeof(A)); | ^ matrix_ops.c: In function 'mult_dense_mat_d': matrix_ops.c:187:45: warning: conversion to 'long unsigned int' from 'int' may change the sign of the result [-Wsign-conversion] 187 | storage = realloc(C[0], dim1 * dim3 * sizeof(double)); | ^ matrix_ops.c:188:35: warning: conversion to 'long unsigned int' from 'int' may change the sign of the result [-Wsign-conversion] 188 | *CC = C = realloc(C, dim1 * sizeof(double *)); | ^ matrix_ops.c:190:38: warning: conversion to 'long unsigned int' from 'int' may change the sign of the result [-Wsign-conversion] 190 | storage = malloc(dim1 * dim3 * sizeof(double)); | ^ matrix_ops.c:191:31: warning: conversion to 'long unsigned int' from 'int' may change the sign of the result [-Wsign-conversion] 191 | *CC = C = malloc(dim1 * sizeof(double *)); | ^ matrix_ops.c: In function 'mult_sparse_dense_mat_transpose': matrix_ops.c:226:45: warning: conversion to 'long unsigned int' from 'int' may change the sign of the result [-Wsign-conversion] 226 | storage = realloc(C[0], dim1 * dim2 * sizeof(A[0])); | ^ matrix_ops.c:227:35: warning: conversion to 'long unsigned int' from 'int' may change the sign of the result [-Wsign-conversion] 227 | *CC = C = realloc(C, dim1 * sizeof(A)); | ^ matrix_ops.c:229:38: warning: conversion to 'long unsigned int' from 'int' may change the sign of the result [-Wsign-conversion] 229 | storage = malloc(dim1 * dim2 * sizeof(A[0])); | ^ matrix_ops.c:230:31: warning: conversion to 'long unsigned int' from 'int' may change the sign of the result [-Wsign-conversion] 230 | *CC = C = malloc(dim1 * sizeof(A)); | ^ matrix_ops.c: In function 'orthog1f': matrix_ops.c:483:9: warning: conversion from 'int' to 'float' may change value [-Wconversion] 483 | sum /= n; | ^~ matrix_ops.c: In function 'invert_vec': matrix_ops.c:603:20: warning: comparing floating-point with '==' or '!=' is unsafe [-Wfloat-equal] 603 | if (vec[i] != 0.0) { | ^~ stress.c: In function 'initLayout': stress.c:142:23: warning: unused parameter 'graph' [-Wunused-parameter] 142 | initLayout(vtx_data * graph, int n, int dim, double **coords, | ~~~~~~~~~~~^~~~~ In file included from ../../lib/common/render.h:33, from ../../lib/neatogen/neato.h:31, from stress.c:12: stress.c: In function 'circuitModel': stress.c:185:38: warning: conversion to 'size_t' {aka 'long unsigned int'} from 'int' may change the sign of the result [-Wsign-conversion] 185 | float *Dij = N_NEW(nG * (nG + 1) / 2, float); ../../lib/common/memory.h:20:39: note: in definition of macro 'N_NEW' 20 | #define N_NEW(n,t) (t*)gcalloc((n),sizeof(t)) | ^ stress.c: In function 'sparse_stress_subspace_majorization_kD': ../../lib/common/memory.h:23:38: warning: conversion to 'size_t' {aka 'long unsigned int'} from 'int' may change the sign of the result [-Wsign-conversion] 23 | #define N_GNEW(n,t) (t*)gcalloc((n),sizeof(t)) | ^~~ stress.c:273:25: note: in expansion of macro 'N_GNEW' 273 | double **subspace = N_GNEW(subspace_dim, double *); | ^~~~~~ stress.c:274:45: warning: conversion to 'size_t' {aka 'long unsigned int'} from 'int' may change the sign of the result [-Wsign-conversion] 274 | double *d_storage = N_GNEW(subspace_dim * n, double); ../../lib/common/memory.h:23:39: note: in definition of macro 'N_GNEW' 23 | #define N_GNEW(n,t) (t*)gcalloc((n),sizeof(t)) | ^ ../../lib/common/memory.h:23:38: warning: conversion to 'size_t' {aka 'long unsigned int'} from 'int' may change the sign of the result [-Wsign-conversion] 23 | #define N_GNEW(n,t) (t*)gcalloc((n),sizeof(t)) | ^~~ stress.c:333:19: note: in expansion of macro 'N_GNEW' 333 | CenterIndex = N_GNEW(n, int); | ^~~~~~ ../../lib/common/memory.h:23:38: warning: conversion to 'size_t' {aka 'long unsigned int'} from 'int' may change the sign of the result [-Wsign-conversion] 23 | #define N_GNEW(n,t) (t*)gcalloc((n),sizeof(t)) | ^~~ stress.c:353:12: note: in expansion of macro 'N_GNEW' 353 | dist = N_GNEW(n, DistType); | ^~~~~~ ../../lib/common/memory.h:23:38: warning: conversion to 'size_t' {aka 'long unsigned int'} from 'int' may change the sign of the result [-Wsign-conversion] 23 | #define N_GNEW(n,t) (t*)gcalloc((n),sizeof(t)) | ^~~ stress.c:358:22: note: in expansion of macro 'N_GNEW' 358 | invCenterIndex = N_GNEW(num_centers, int); | ^~~~~~ stress.c:360:24: warning: conversion to 'size_t' {aka 'long unsigned int'} from 'int' may change the sign of the result [-Wsign-conversion] 360 | storage = N_GNEW(n * num_centers, DistType); ../../lib/common/memory.h:23:39: note: in definition of macro 'N_GNEW' 23 | #define N_GNEW(n,t) (t*)gcalloc((n),sizeof(t)) | ^ ../../lib/common/memory.h:23:38: warning: conversion to 'size_t' {aka 'long unsigned int'} from 'int' may change the sign of the result [-Wsign-conversion] 23 | #define N_GNEW(n,t) (t*)gcalloc((n),sizeof(t)) | ^~~ stress.c:361:11: note: in expansion of macro 'N_GNEW' 361 | Dij = N_GNEW(num_centers, DistType *); | ^~~~~~ ../../lib/common/memory.h:23:38: warning: conversion to 'size_t' {aka 'long unsigned int'} from 'int' may change the sign of the result [-Wsign-conversion] 23 | #define N_GNEW(n,t) (t*)gcalloc((n),sizeof(t)) | ^~~ stress.c:416:21: note: in expansion of macro 'N_GNEW' 416 | visited_nodes = N_GNEW(n, int); | ^~~~~~ ../../lib/common/memory.h:23:38: warning: conversion to 'size_t' {aka 'long unsigned int'} from 'int' may change the sign of the result [-Wsign-conversion] 23 | #define N_GNEW(n,t) (t*)gcalloc((n),sizeof(t)) | ^~~ stress.c:417:17: note: in expansion of macro 'N_GNEW' 417 | distances = N_GNEW(n, dist_data); | ^~~~~~ stress.c:422:43: warning: conversion to 'size_t' {aka 'long unsigned int'} from 'int' may change the sign of the result [-Wsign-conversion] 422 | distances[i].edges = N_GNEW(n - 1, int); ../../lib/common/memory.h:23:39: note: in definition of macro 'N_GNEW' 23 | #define N_GNEW(n,t) (t*)gcalloc((n),sizeof(t)) | ^ stress.c:423:43: warning: conversion to 'size_t' {aka 'long unsigned int'} from 'int' may change the sign of the result [-Wsign-conversion] 423 | distances[i].edist = N_GNEW(n - 1, DistType); ../../lib/common/memory.h:23:39: note: in definition of macro 'N_GNEW' 23 | #define N_GNEW(n,t) (t*)gcalloc((n),sizeof(t)) | ^ ../../lib/common/memory.h:23:38: warning: conversion to 'size_t' {aka 'long unsigned int'} from 'int' may change the sign of the result [-Wsign-conversion] 23 | #define N_GNEW(n,t) (t*)gcalloc((n),sizeof(t)) | ^~~ stress.c:468:24: note: in expansion of macro 'N_GNEW' 468 | storage1 = N_GNEW(available_space, int); | ^~~~~~ ../../lib/common/memory.h:23:38: warning: conversion to 'size_t' {aka 'long unsigned int'} from 'int' may change the sign of the result [-Wsign-conversion] 23 | #define N_GNEW(n,t) (t*)gcalloc((n),sizeof(t)) | ^~~ stress.c:469:24: note: in expansion of macro 'N_GNEW' 469 | storage2 = N_GNEW(available_space, DistType); | ^~~~~~ ../../lib/common/memory.h:23:38: warning: conversion to 'size_t' {aka 'long unsigned int'} from 'int' may change the sign of the result [-Wsign-conversion] 23 | #define N_GNEW(n,t) (t*)gcalloc((n),sizeof(t)) | ^~~ stress.c:507:11: note: in expansion of macro 'N_GNEW' 507 | lap = N_GNEW(n, vtx_data); | ^~~~~~ stress.c:508:27: warning: conversion to 'size_t' {aka 'long unsigned int'} from 'int' may change the sign of the result [-Wsign-conversion] 508 | edges = N_GNEW(nedges + n, int); ../../lib/common/memory.h:23:39: note: in definition of macro 'N_GNEW' 23 | #define N_GNEW(n,t) (t*)gcalloc((n),sizeof(t)) | ^ stress.c:509:27: warning: conversion to 'size_t' {aka 'long unsigned int'} from 'int' may change the sign of the result [-Wsign-conversion] 509 | ewgts = N_GNEW(nedges + n, float); ../../lib/common/memory.h:23:39: note: in definition of macro 'N_GNEW' 23 | #define N_GNEW(n,t) (t*)gcalloc((n),sizeof(t)) | ^ ../../lib/common/memory.h:23:38: warning: conversion to 'size_t' {aka 'long unsigned int'} from 'int' may change the sign of the result [-Wsign-conversion] 23 | #define N_GNEW(n,t) (t*)gcalloc((n),sizeof(t)) | ^~~ stress.c:545:18: note: in expansion of macro 'N_GNEW' 545 | directions = N_GNEW(dim, double *); | ^~~~~~ stress.c:546:32: warning: conversion to 'size_t' {aka 'long unsigned int'} from 'int' may change the sign of the result [-Wsign-conversion] 546 | directions[0] = N_GNEW(dim * subspace_dim, double); ../../lib/common/memory.h:23:39: note: in definition of macro 'N_GNEW' 23 | #define N_GNEW(n,t) (t*)gcalloc((n),sizeof(t)) | ^ stress.c:582:36: warning: cast from function call of type 'int' to non-matching type 'double' [-Wbad-function-cast] 582 | directions[k][i] = (double) rand() / RAND_MAX; | ^ ../../lib/common/memory.h:23:38: warning: conversion to 'size_t' {aka 'long unsigned int'} from 'int' may change the sign of the result [-Wsign-conversion] 23 | #define N_GNEW(n,t) (t*)gcalloc((n),sizeof(t)) | ^~~ stress.c:611:9: note: in expansion of macro 'N_GNEW' 611 | b = N_GNEW(n, double); | ^~~~~~ ../../lib/common/memory.h:23:38: warning: conversion to 'size_t' {aka 'long unsigned int'} from 'int' may change the sign of the result [-Wsign-conversion] 23 | #define N_GNEW(n,t) (t*)gcalloc((n),sizeof(t)) | ^~~ stress.c:612:20: note: in expansion of macro 'N_GNEW' 612 | b_restricted = N_GNEW(subspace_dim, double); | ^~~~~~ stress.c:632:42: warning: conversion from 'DistType' {aka 'int'} to 'float' may change value [-Wconversion] 632 | L_ij = -ewgts[j] * dist_list[j] / dist_ij; /* L_ij=w_{ij}*d_{ij}/dist_{ij} */ | ^ stress.c:245:55: warning: unused parameter 'nedges_graph' [-Wunused-parameter] 245 | int nedges_graph, /* Number of edges */ | ~~~~^~~~~~~~~~~~ stress.c: In function 'compute_weighted_apsp_packed': stress.c:697:36: warning: conversion to 'size_t' {aka 'long unsigned int'} from 'int' may change the sign of the result [-Wsign-conversion] 697 | float *Dij = N_NEW(n * (n + 1) / 2, float); ../../lib/common/memory.h:20:39: note: in definition of macro 'N_NEW' 20 | #define N_NEW(n,t) (t*)gcalloc((n),sizeof(t)) | ^ ../../lib/common/memory.h:20:38: warning: conversion to 'size_t' {aka 'long unsigned int'} from 'int' may change the sign of the result [-Wsign-conversion] 20 | #define N_NEW(n,t) (t*)gcalloc((n),sizeof(t)) | ^~~ stress.c:699:17: note: in expansion of macro 'N_NEW' 699 | float *Di = N_NEW(n, float); | ^~~~~ stress.c: In function 'compute_apsp_packed': stress.c:756:36: warning: conversion to 'size_t' {aka 'long unsigned int'} from 'int' may change the sign of the result [-Wsign-conversion] 756 | float *Dij = N_NEW(n * (n + 1) / 2, float); ../../lib/common/memory.h:20:39: note: in definition of macro 'N_NEW' 20 | #define N_NEW(n,t) (t*)gcalloc((n),sizeof(t)) | ^ ../../lib/common/memory.h:20:38: warning: conversion to 'size_t' {aka 'long unsigned int'} from 'int' may change the sign of the result [-Wsign-conversion] 20 | #define N_NEW(n,t) (t*)gcalloc((n),sizeof(t)) | ^~~ stress.c:758:20: note: in expansion of macro 'N_NEW' 758 | DistType *Di = N_NEW(n, DistType); | ^~~~~ stress.c: In function 'compute_apsp_artifical_weights_packed': ../../lib/common/memory.h:20:38: warning: conversion to 'size_t' {aka 'long unsigned int'} from 'int' may change the sign of the result [-Wsign-conversion] 20 | #define N_NEW(n,t) (t*)gcalloc((n),sizeof(t)) | ^~~ stress.c:792:15: note: in expansion of macro 'N_NEW' 792 | weights = N_NEW(nedges, float); | ^~~~~ ../../lib/common/memory.h:20:38: warning: conversion to 'size_t' {aka 'long unsigned int'} from 'int' may change the sign of the result [-Wsign-conversion] 20 | #define N_NEW(n,t) (t*)gcalloc((n),sizeof(t)) | ^~~ stress.c:793:15: note: in expansion of macro 'N_NEW' 793 | vtx_vec = N_NEW(n, int); | ^~~~~ stress.c:822:36: warning: conversion from 'int' to 'float' may change value [-Wconversion] 822 | ((float) deg_i + deg_j - | ^ kkutils.c: In function 'common_neighbors': stress.c:822:44: warning: conversion from 'int' to 'float' may change value [-Wconversion] 822 | ((float) deg_i + deg_j - | ^ stress.c: At top level: stress.c:843:5: warning: "DEBUG" is not defined, evaluates to 0 [-Wundef] 843 | #if DEBUG > 1 | ^~~~~ kkutils.c:18:44: warning: unused parameter 'v' [-Wunused-parameter] 18 | int common_neighbors(vtx_data * graph, int v, int u, int *v_vector) | ~~~~^ In file included from ../../lib/common/render.h:33, from ../../lib/neatogen/neato.h:31, from ../../lib/neatogen/defs.h:17, from ../../lib/neatogen/bfs.h:19, from kkutils.c:12: kkutils.c: In function 'compute_apsp_dijkstra': kkutils.c:62:24: warning: conversion to 'size_t' {aka 'long unsigned int'} from 'int' may change the sign of the result [-Wsign-conversion] 62 | storage = N_GNEW(n * n, DistType); ../../lib/common/memory.h:23:39: note: in definition of macro 'N_GNEW' 23 | #define N_GNEW(n,t) (t*)gcalloc((n),sizeof(t)) | ^ ../../lib/common/memory.h:23:38: warning: conversion to 'size_t' {aka 'long unsigned int'} from 'int' may change the sign of the result [-Wsign-conversion] 23 | #define N_GNEW(n,t) (t*)gcalloc((n),sizeof(t)) | ^~~ kkutils.c:63:11: note: in expansion of macro 'N_GNEW' 63 | dij = N_GNEW(n, DistType *); | ^~~~~~ stress.c: In function 'stress_majorization_kD_mkernel': kkutils.c: In function 'compute_apsp_simple': ../../lib/common/memory.h:20:38: warning: conversion to 'size_t' {aka 'long unsigned int'} from 'int' may change the sign of the result [-Wsign-conversion] 20 | #define N_NEW(n,t) (t*)gcalloc((n),sizeof(t)) | ^~~ stress.c:1001:14: note: in expansion of macro 'N_NEW' 1001 | coords = N_NEW(dim, float *); | ^~~~~ kkutils.c:78:34: warning: conversion to 'size_t' {aka 'long unsigned int'} from 'int' may change the sign of the result [-Wsign-conversion] 78 | DistType *storage = N_GNEW(n * n, int); ../../lib/common/memory.h:23:39: note: in definition of macro 'N_GNEW' 23 | #define N_GNEW(n,t) (t*)gcalloc((n),sizeof(t)) | ^ ../../lib/common/memory.h:23:38: warning: conversion to 'size_t' {aka 'long unsigned int'} from 'int' may change the sign of the result [-Wsign-conversion] 23 | #define N_GNEW(n,t) (t*)gcalloc((n),sizeof(t)) | ^~~ kkutils.c:82:11: note: in expansion of macro 'N_GNEW' 82 | dij = N_GNEW(n, DistType *); | ^~~~~~ stress.c:1002:27: warning: conversion to 'size_t' {aka 'long unsigned int'} from 'int' may change the sign of the result [-Wsign-conversion] 1002 | f_storage = N_NEW(dim * n, float); ../../lib/common/memory.h:20:39: note: in definition of macro 'N_NEW' 20 | #define N_NEW(n,t) (t*)gcalloc((n),sizeof(t)) | ^ stress.c:1014:34: warning: conversion from 'int' to 'float' may change value [-Wconversion] 1014 | constant_term = (float)n * (n - 1) / 2; | ^ ../../lib/common/memory.h:20:38: warning: conversion to 'size_t' {aka 'long unsigned int'} from 'int' may change the sign of the result [-Wsign-conversion] 20 | #define N_NEW(n,t) (t*)gcalloc((n),sizeof(t)) | ^~~ stress.c:1050:15: note: in expansion of macro 'N_NEW' 1050 | degrees = N_NEW(n, DegType); | ^~~~~ stress.c:1052:26: warning: conversion to 'long unsigned int' from 'int' may change the sign of the result [-Wsign-conversion] 1052 | memset(degrees, 0, n * sizeof(DegType)); | ^ kkutils.c: In function 'quicksort_placef': kkutils.c:195:41: warning: conversion to 'size_t' {aka 'long unsigned int'} from 'int' may change the sign of the result [-Wsign-conversion] 195 | qsort(ordering+first, last-first+1, sizeof(ordering[0]), (qsort_cmpf)fcmpf); | ~~~~~~~~~~^~ stress.c:1064:23: warning: conversion from 'long double' to 'float' may change value [-Wfloat-conversion] 1064 | lap2[count] = degrees[i]; | ^~~~~~~ kkutils.c: In function 'compute_new_weights': ../../lib/common/memory.h:20:38: warning: conversion to 'size_t' {aka 'long unsigned int'} from 'int' may change the sign of the result [-Wsign-conversion] 20 | #define N_NEW(n,t) (t*)gcalloc((n),sizeof(t)) | ^~~ stress.c:1071:9: note: in expansion of macro 'N_NEW' 1071 | b = N_NEW(dim, float *); | ^~~~~ ../../lib/common/memory.h:23:38: warning: conversion to 'size_t' {aka 'long unsigned int'} from 'int' may change the sign of the result [-Wsign-conversion] 23 | #define N_GNEW(n,t) (t*)gcalloc((n),sizeof(t)) | ^~~ kkutils.c:242:20: note: in expansion of macro 'N_GNEW' 242 | int *vtx_vec = N_GNEW(n, int); | ^~~~~~ stress.c:1072:22: warning: conversion to 'size_t' {aka 'long unsigned int'} from 'int' may change the sign of the result [-Wsign-conversion] 1072 | b[0] = N_NEW(dim * n, float); ../../lib/common/memory.h:20:39: note: in definition of macro 'N_NEW' 20 | #define N_NEW(n,t) (t*)gcalloc((n),sizeof(t)) | ^ ../../lib/common/memory.h:23:38: warning: conversion to 'size_t' {aka 'long unsigned int'} from 'int' may change the sign of the result [-Wsign-conversion] 23 | #define N_GNEW(n,t) (t*)gcalloc((n),sizeof(t)) | ^~~ kkutils.c:248:15: note: in expansion of macro 'N_GNEW' 248 | weights = N_GNEW(nedges, float); | ^~~~~~ ../../lib/common/memory.h:20:38: warning: conversion to 'size_t' {aka 'long unsigned int'} from 'int' may change the sign of the result [-Wsign-conversion] 20 | #define N_NEW(n,t) (t*)gcalloc((n),sizeof(t)) | ^~~ stress.c:1077:18: note: in expansion of macro 'N_NEW' 1077 | tmp_coords = N_NEW(n, float); | ^~~~~ ../../lib/common/memory.h:20:38: warning: conversion to 'size_t' {aka 'long unsigned int'} from 'int' may change the sign of the result [-Wsign-conversion] 20 | #define N_NEW(n,t) (t*)gcalloc((n),sizeof(t)) | ^~~ stress.c:1078:24: note: in expansion of macro 'N_NEW' 1078 | dist_accumulator = N_NEW(n, float); | ^~~~~ ../../lib/common/memory.h:20:38: warning: conversion to 'size_t' {aka 'long unsigned int'} from 'int' may change the sign of the result [-Wsign-conversion] 20 | #define N_NEW(n,t) (t*)gcalloc((n),sizeof(t)) | ^~~ stress.c:1079:12: note: in expansion of macro 'N_NEW' 1079 | lap1 = N_NEW(lap_length, float); | ^~~~~ stress.c:1094:30: warning: conversion to 'long unsigned int' from 'int' may change the sign of the result [-Wsign-conversion] 1094 | memset(degrees, 0, n * sizeof(DegType)); | ^ stress.c:1145:27: warning: conversion from 'long double' to 'float' may change value [-Wfloat-conversion] 1145 | lap1[count] = degrees[i]; | ^~~~~~~ In file included from ../../lib/common/render.h:33, from ../../lib/neatogen/neato.h:31, from ../../lib/neatogen/defs.h:17, from ../../lib/neatogen/dijkstra.h:17, from embed_graph.c:20: embed_graph.c: In function 'embed_graph': embed_graph.c:40:34: warning: conversion to 'size_t' {aka 'long unsigned int'} from 'int' may change the sign of the result [-Wsign-conversion] 40 | DistType *storage = N_GNEW(n * dim, DistType); ../../lib/common/memory.h:23:39: note: in definition of macro 'N_GNEW' 23 | #define N_GNEW(n,t) (t*)gcalloc((n),sizeof(t)) | ^ ../../lib/common/memory.h:23:38: warning: conversion to 'size_t' {aka 'long unsigned int'} from 'int' may change the sign of the result [-Wsign-conversion] 23 | #define N_GNEW(n,t) (t*)gcalloc((n),sizeof(t)) | ^~~ embed_graph.c:42:22: note: in expansion of macro 'N_GNEW' 42 | DistType *dist = N_GNEW(n, DistType); /* this vector stores the distances of | ^~~~~~ ../../lib/common/memory.h:23:38: warning: conversion to 'size_t' {aka 'long unsigned int'} from 'int' may change the sign of the result [-Wsign-conversion] 23 | #define N_GNEW(n,t) (t*)gcalloc((n),sizeof(t)) | ^~~ embed_graph.c:54:24: note: in expansion of macro 'N_GNEW' 54 | *Coords = coords = N_GNEW(dim, DistType *); | ^~~~~~ In file included from dijkstra.c:22: dijkstra.c: In function 'initHeap': dijkstra.c:89:29: warning: conversion to 'size_t' {aka 'long unsigned int'} from 'int' may change the sign of the result [-Wsign-conversion] 89 | else h->data = N_GNEW(n - 1, int); ../../lib/common/memory.h:23:39: note: in definition of macro 'N_GNEW' 23 | #define N_GNEW(n,t) (t*)gcalloc((n),sizeof(t)) | ^ dijkstra.c: In function 'dijkstra': dijkstra.c:147:26: warning: conversion to 'size_t' {aka 'long unsigned int'} from 'int' may change the sign of the result [-Wsign-conversion] 147 | int *index = gcalloc(n, sizeof(int)); | ^ dijkstra.c: In function 'dijkstra_bounded': dijkstra.c:202:60: warning: conversion to 'size_t' {aka 'long unsigned int'} from 'int' may change the sign of the result [-Wsign-conversion] 202 | bitarray_t node_in_neighborhood = bitarray_new_or_exit(n); | ^ dijkstra.c:204:58: warning: conversion to 'size_t' {aka 'long unsigned int'} from 'int' may change the sign of the result [-Wsign-conversion] 204 | bitarray_set(&node_in_neighborhood, visited_nodes[i], true); | ~~~~~~~~~~~~~^~~ dijkstra.c:207:26: warning: conversion to 'size_t' {aka 'long unsigned int'} from 'int' may change the sign of the result [-Wsign-conversion] 207 | int *index = gcalloc(n, sizeof(int)); | ^ dijkstra.c:221:48: warning: conversion to 'size_t' {aka 'long unsigned int'} from 'int' may change the sign of the result [-Wsign-conversion] 221 | if (bitarray_get(node_in_neighborhood, closestVertex)) { | ^~~~~~~~~~~~~ dijkstra.c: In function 'initHeap_f': dijkstra.c:267:24: warning: conversion to 'size_t' {aka 'long unsigned int'} from 'int' may change the sign of the result [-Wsign-conversion] 267 | h->data = N_GNEW(n - 1, int); ../../lib/common/memory.h:23:39: note: in definition of macro 'N_GNEW' 23 | #define N_GNEW(n,t) (t*)gcalloc((n),sizeof(t)) | ^ dijkstra.c: In function 'dijkstra_f': ../../lib/common/memory.h:23:38: warning: conversion to 'size_t' {aka 'long unsigned int'} from 'int' may change the sign of the result [-Wsign-conversion] 23 | #define N_GNEW(n,t) (t*)gcalloc((n),sizeof(t)) | ^~~ dijkstra.c:330:13: note: in expansion of macro 'N_GNEW' 330 | index = N_GNEW(n, int); | ^~~~~~ In file included from ../../lib/common/render.h:33, from ../../lib/neatogen/neato.h:31, from ../../lib/neatogen/defs.h:17, from ../../lib/neatogen/conjgrad.h:17, from conjgrad.c:13: conjgrad.c: In function 'conjugate_gradient': ../../lib/common/memory.h:23:38: warning: conversion to 'size_t' {aka 'long unsigned int'} from 'int' may change the sign of the result [-Wsign-conversion] 23 | #define N_GNEW(n,t) (t*)gcalloc((n),sizeof(t)) | ^~~ conjgrad.c:31:17: note: in expansion of macro 'N_GNEW' 31 | double *r = N_GNEW(n, double); | ^~~~~~ ../../lib/common/memory.h:23:38: warning: conversion to 'size_t' {aka 'long unsigned int'} from 'int' may change the sign of the result [-Wsign-conversion] 23 | #define N_GNEW(n,t) (t*)gcalloc((n),sizeof(t)) | ^~~ conjgrad.c:32:17: note: in expansion of macro 'N_GNEW' 32 | double *p = N_GNEW(n, double); | ^~~~~~ ../../lib/common/memory.h:23:38: warning: conversion to 'size_t' {aka 'long unsigned int'} from 'int' may change the sign of the result [-Wsign-conversion] 23 | #define N_GNEW(n,t) (t*)gcalloc((n),sizeof(t)) | ^~~ conjgrad.c:33:18: note: in expansion of macro 'N_GNEW' 33 | double *Ap = N_GNEW(n, double); | ^~~~~~ ../../lib/common/memory.h:23:38: warning: conversion to 'size_t' {aka 'long unsigned int'} from 'int' may change the sign of the result [-Wsign-conversion] 23 | #define N_GNEW(n,t) (t*)gcalloc((n),sizeof(t)) | ^~~ conjgrad.c:34:18: note: in expansion of macro 'N_GNEW' 34 | double *Ax = N_GNEW(n, double); | ^~~~~~ ../../lib/common/memory.h:23:38: warning: conversion to 'size_t' {aka 'long unsigned int'} from 'int' may change the sign of the result [-Wsign-conversion] 23 | #define N_GNEW(n,t) (t*)gcalloc((n),sizeof(t)) | ^~~ conjgrad.c:35:22: note: in expansion of macro 'N_GNEW' 35 | double *alphap = N_GNEW(n, double); | ^~~~~~ ../../lib/common/memory.h:23:38: warning: conversion to 'size_t' {aka 'long unsigned int'} from 'int' may change the sign of the result [-Wsign-conversion] 23 | #define N_GNEW(n,t) (t*)gcalloc((n),sizeof(t)) | ^~~ conjgrad.c:37:22: note: in expansion of macro 'N_GNEW' 37 | double *orth_b = N_GNEW(n, double); | ^~~~~~ dijkstra.c:343:25: warning: comparing floating-point with '==' or '!=' is unsafe [-Wfloat-equal] 343 | if (closestDist == FLT_MAX) | ^~ conjgrad.c:49:18: warning: comparing floating-point with '==' or '!=' is unsafe [-Wfloat-equal] 49 | if (p_Ap == 0) | ^~ conjgrad.c:67:21: warning: comparing floating-point with '==' or '!=' is unsafe [-Wfloat-equal] 67 | if (r_r == 0) { | ^~ conjgrad.c: In function 'conjugate_gradient_f': ../../lib/common/memory.h:23:38: warning: conversion to 'size_t' {aka 'long unsigned int'} from 'int' may change the sign of the result [-Wsign-conversion] 23 | #define N_GNEW(n,t) (t*)gcalloc((n),sizeof(t)) | ^~~ conjgrad.c:104:17: note: in expansion of macro 'N_GNEW' 104 | double *r = N_GNEW(n, double); | ^~~~~~ ../../lib/common/memory.h:23:38: warning: conversion to 'size_t' {aka 'long unsigned int'} from 'int' may change the sign of the result [-Wsign-conversion] 23 | #define N_GNEW(n,t) (t*)gcalloc((n),sizeof(t)) | ^~~ conjgrad.c:105:17: note: in expansion of macro 'N_GNEW' 105 | double *p = N_GNEW(n, double); | ^~~~~~ ../../lib/common/memory.h:23:38: warning: conversion to 'size_t' {aka 'long unsigned int'} from 'int' may change the sign of the result [-Wsign-conversion] 23 | #define N_GNEW(n,t) (t*)gcalloc((n),sizeof(t)) | ^~~ conjgrad.c:106:18: note: in expansion of macro 'N_GNEW' 106 | double *Ap = N_GNEW(n, double); | ^~~~~~ ../../lib/common/memory.h:23:38: warning: conversion to 'size_t' {aka 'long unsigned int'} from 'int' may change the sign of the result [-Wsign-conversion] 23 | #define N_GNEW(n,t) (t*)gcalloc((n),sizeof(t)) | ^~~ conjgrad.c:107:18: note: in expansion of macro 'N_GNEW' 107 | double *Ax = N_GNEW(n, double); | ^~~~~~ ../../lib/common/memory.h:23:38: warning: conversion to 'size_t' {aka 'long unsigned int'} from 'int' may change the sign of the result [-Wsign-conversion] 23 | #define N_GNEW(n,t) (t*)gcalloc((n),sizeof(t)) | ^~~ conjgrad.c:108:22: note: in expansion of macro 'N_GNEW' 108 | double *alphap = N_GNEW(n, double); | ^~~~~~ ../../lib/common/memory.h:23:38: warning: conversion to 'size_t' {aka 'long unsigned int'} from 'int' may change the sign of the result [-Wsign-conversion] 23 | #define N_GNEW(n,t) (t*)gcalloc((n),sizeof(t)) | ^~~ conjgrad.c:110:22: note: in expansion of macro 'N_GNEW' 110 | double *orth_b = N_GNEW(n, double); | ^~~~~~ dijkstra.c: In function 'dijkstra_sgd': dijkstra.c:378:15: warning: comparing floating-point with '==' or '!=' is unsafe [-Wfloat-equal] 378 | if (d == FLT_MAX) { | ^~ conjgrad.c:124:18: warning: comparing floating-point with '==' or '!=' is unsafe [-Wfloat-equal] 124 | if (p_Ap == 0) | ^~ conjgrad.c:142:21: warning: comparing floating-point with '==' or '!=' is unsafe [-Wfloat-equal] 142 | if (r_r == 0) { | ^~ dijkstra.c:383:42: warning: conversion to 'size_t' {aka 'long unsigned int'} from 'int' may change the sign of the result [-Wsign-conversion] 383 | if (bitarray_get(graph->pinneds, closest) || closest 1 | ^~~~~ constraint.c: In function 'mkNConstraintG': constraint.c:244:32: warning: conversion from 'double' to 'short unsigned int' may change value [-Wfloat-conversion] 244 | ED_minlen(e) = delta; | ^~~~~ ../../lib/common/memory.h:25:62: warning: conversion to 'long unsigned int' from 'int' may change the sign of the result [-Wsign-conversion] 25 | #define ALLOC(size,ptr,type) (ptr? (type*)grealloc(ptr,(size)*sizeof(type)):(type*)gmalloc((size)*sizeof(type))) | ^ ../../lib/common/types.h:258:44: note: in expansion of macro 'ALLOC' 258 | #define elist_append(item,L) do {L.list = ALLOC(L.size + 2,L.list,edge_t*); L.list[L.size++] = item; L.list[L.size] = NULL;} while(0) | ^~~~~ constraint.c:257:13: note: in expansion of macro 'elist_append' 257 | elist_append(e, ND_out(n)); | ^~~~~~~~~~~~ ../../lib/common/memory.h:25:98: warning: conversion to 'long unsigned int' from 'int' may change the sign of the result [-Wsign-conversion] 25 | #define ALLOC(size,ptr,type) (ptr? (type*)grealloc(ptr,(size)*sizeof(type)):(type*)gmalloc((size)*sizeof(type))) | ^ ../../lib/common/types.h:258:44: note: in expansion of macro 'ALLOC' 258 | #define elist_append(item,L) do {L.list = ALLOC(L.size + 2,L.list,edge_t*); L.list[L.size++] = item; L.list[L.size] = NULL;} while(0) | ^~~~~ constraint.c:257:13: note: in expansion of macro 'elist_append' 257 | elist_append(e, ND_out(n)); | ^~~~~~~~~~~~ ../../lib/common/memory.h:25:62: warning: conversion to 'long unsigned int' from 'int' may change the sign of the result [-Wsign-conversion] 25 | #define ALLOC(size,ptr,type) (ptr? (type*)grealloc(ptr,(size)*sizeof(type)):(type*)gmalloc((size)*sizeof(type))) | ^ ../../lib/common/types.h:258:44: note: in expansion of macro 'ALLOC' 258 | #define elist_append(item,L) do {L.list = ALLOC(L.size + 2,L.list,edge_t*); L.list[L.size++] = item; L.list[L.size] = NULL;} while(0) | ^~~~~ constraint.c:258:13: note: in expansion of macro 'elist_append' 258 | elist_append(e, ND_in(aghead(e))); | ^~~~~~~~~~~~ ../../lib/common/memory.h:25:98: warning: conversion to 'long unsigned int' from 'int' may change the sign of the result [-Wsign-conversion] 25 | #define ALLOC(size,ptr,type) (ptr? (type*)grealloc(ptr,(size)*sizeof(type)):(type*)gmalloc((size)*sizeof(type))) | ^ ../../lib/common/types.h:258:44: note: in expansion of macro 'ALLOC' 258 | #define elist_append(item,L) do {L.list = ALLOC(L.size + 2,L.list,edge_t*); L.list[L.size++] = item; L.list[L.size] = NULL;} while(0) | ^~~~~ constraint.c:258:13: note: in expansion of macro 'elist_append' 258 | elist_append(e, ND_in(aghead(e))); | ^~~~~~~~~~~~ constraint.c: In function 'mkConstraintG': ../../lib/common/types.h:259:64: warning: conversion to 'size_t' {aka 'long unsigned int'} from 'int' may change the sign of the result [-Wsign-conversion] 259 | #define alloc_elist(n,L) do {L.size = 0; L.list = N_NEW(n + 1,edge_t*); } while (0) ../../lib/common/memory.h:20:39: note: in definition of macro 'N_NEW' 20 | #define N_NEW(n,t) (t*)gcalloc((n),sizeof(t)) | ^ constraint.c:316:13: note: in expansion of macro 'alloc_elist' 316 | alloc_elist(lcnt, ND_in(n)); | ^~~~~~~~~~~ ../../lib/common/types.h:259:64: warning: conversion to 'size_t' {aka 'long unsigned int'} from 'int' may change the sign of the result [-Wsign-conversion] 259 | #define alloc_elist(n,L) do {L.size = 0; L.list = N_NEW(n + 1,edge_t*); } while (0) ../../lib/common/memory.h:20:39: note: in definition of macro 'N_NEW' 20 | #define N_NEW(n,t) (t*)gcalloc((n),sizeof(t)) | ^ constraint.c:319:21: note: in expansion of macro 'alloc_elist' 319 | alloc_elist(2 * (cnt - 1), ND_out(prev)); | ^~~~~~~~~~~ ../../lib/common/types.h:259:64: warning: conversion to 'size_t' {aka 'long unsigned int'} from 'int' may change the sign of the result [-Wsign-conversion] 259 | #define alloc_elist(n,L) do {L.size = 0; L.list = N_NEW(n + 1,edge_t*); } while (0) ../../lib/common/memory.h:20:39: note: in definition of macro 'N_NEW' 20 | #define N_NEW(n,t) (t*)gcalloc((n),sizeof(t)) | ^ constraint.c:321:21: note: in expansion of macro 'alloc_elist' 321 | alloc_elist(cnt - lcnt - 1, ND_out(prev)); | ^~~~~~~~~~~ ../../lib/common/memory.h:25:62: warning: conversion to 'long unsigned int' from 'int' may change the sign of the result [-Wsign-conversion] 25 | #define ALLOC(size,ptr,type) (ptr? (type*)grealloc(ptr,(size)*sizeof(type)):(type*)gmalloc((size)*sizeof(type))) | ^ ../../lib/common/types.h:258:44: note: in expansion of macro 'ALLOC' 258 | #define elist_append(item,L) do {L.list = ALLOC(L.size + 2,L.list,edge_t*); L.list[L.size++] = item; L.list[L.size] = NULL;} while(0) | ^~~~~ constraint.c:326:17: note: in expansion of macro 'elist_append' 326 | elist_append(e, ND_out(prev)); | ^~~~~~~~~~~~ ../../lib/common/memory.h:25:98: warning: conversion to 'long unsigned int' from 'int' may change the sign of the result [-Wsign-conversion] 25 | #define ALLOC(size,ptr,type) (ptr? (type*)grealloc(ptr,(size)*sizeof(type)):(type*)gmalloc((size)*sizeof(type))) | ^ ../../lib/common/types.h:258:44: note: in expansion of macro 'ALLOC' 258 | #define elist_append(item,L) do {L.list = ALLOC(L.size + 2,L.list,edge_t*); L.list[L.size++] = item; L.list[L.size] = NULL;} while(0) | ^~~~~ constraint.c:326:17: note: in expansion of macro 'elist_append' 326 | elist_append(e, ND_out(prev)); | ^~~~~~~~~~~~ ../../lib/common/memory.h:25:62: warning: conversion to 'long unsigned int' from 'int' may change the sign of the result [-Wsign-conversion] 25 | #define ALLOC(size,ptr,type) (ptr? (type*)grealloc(ptr,(size)*sizeof(type)):(type*)gmalloc((size)*sizeof(type))) | ^ ../../lib/common/types.h:258:44: note: in expansion of macro 'ALLOC' 258 | #define elist_append(item,L) do {L.list = ALLOC(L.size + 2,L.list,edge_t*); L.list[L.size++] = item; L.list[L.size] = NULL;} while(0) | ^~~~~ constraint.c:327:17: note: in expansion of macro 'elist_append' 327 | elist_append(e, ND_in(n)); | ^~~~~~~~~~~~ ../../lib/common/memory.h:25:98: warning: conversion to 'long unsigned int' from 'int' may change the sign of the result [-Wsign-conversion] 25 | #define ALLOC(size,ptr,type) (ptr? (type*)grealloc(ptr,(size)*sizeof(type)):(type*)gmalloc((size)*sizeof(type))) | ^ ../../lib/common/types.h:258:44: note: in expansion of macro 'ALLOC' 258 | #define elist_append(item,L) do {L.list = ALLOC(L.size + 2,L.list,edge_t*); L.list[L.size++] = item; L.list[L.size] = NULL;} while(0) | ^~~~~ constraint.c:327:17: note: in expansion of macro 'elist_append' 327 | elist_append(e, ND_in(n)); | ^~~~~~~~~~~~ constraint.c:271:41: warning: unused parameter 'g' [-Wunused-parameter] 271 | static graph_t *mkConstraintG(graph_t * g, Dt_t * list, | ~~~~~~~~~~^ constraint.c: In function 'initItem': constraint.c:518:47: warning: conversion from 'int' to 'float' may change value [-Wconversion] 518 | w2 = SCALE * (POINTS(ND_width(n)/2.0) + margin.x); | ^ constraint.c:20:15: warning: conversion from 'float' to 'int' may change value [-Wfloat-conversion] 20 | #define SCALE 10 | ^~ constraint.c:518:14: note: in expansion of macro 'SCALE' 518 | w2 = SCALE * (POINTS(ND_width(n)/2.0) + margin.x); | ^~~~~ constraint.c:519:48: warning: conversion from 'int' to 'float' may change value [-Wconversion] 519 | h2 = SCALE * (POINTS(ND_height(n)/2.0) + margin.y); | ^ constraint.c:20:15: warning: conversion from 'float' to 'int' may change value [-Wfloat-conversion] 20 | #define SCALE 10 | ^~ constraint.c:519:14: note: in expansion of macro 'SCALE' 519 | h2 = SCALE * (POINTS(ND_height(n)/2.0) + margin.y); | ^~~~~ constraint.c: In function 'cAdjust': ../../lib/common/memory.h:23:38: warning: conversion to 'size_t' {aka 'long unsigned int'} from 'int' may change the sign of the result [-Wsign-conversion] 23 | #define N_GNEW(n,t) (t*)gcalloc((n),sizeof(t)) | ^~~ constraint.c:574:20: note: in expansion of macro 'N_GNEW' 574 | nitem *nlist = N_GNEW(nnodes, nitem); | ^~~~~~ constraint.c: In function 'compress': constraint.c:673:26: warning: comparing floating-point with '==' or '!=' is unsafe [-Wfloat-equal] 673 | if (p->pos.x == q->pos.x) | ^~ constraint.c:678:26: warning: comparing floating-point with '==' or '!=' is unsafe [-Wfloat-equal] 678 | if (p->pos.y == q->pos.y) | ^~ constraint.c: In function 'mkOverlapSet': constraint.c:701:27: warning: conversion to 'size_t' {aka 'long unsigned int'} from 'int' may change the sign of the result [-Wsign-conversion] 701 | pointf *S = N_GNEW(sz + 1, pointf); ../../lib/common/memory.h:23:39: note: in definition of macro 'N_GNEW' 23 | #define N_GNEW(n,t) (t*)gcalloc((n),sizeof(t)) | ^ ../../lib/common/memory.h:26:58: warning: conversion to 'long unsigned int' from 'int' may change the sign of the result [-Wsign-conversion] 26 | #define RALLOC(size,ptr,type) ((type*)grealloc(ptr,(size)*sizeof(type))) | ^ constraint.c:712:25: note: in expansion of macro 'RALLOC' 712 | S = RALLOC(sz + 1, S, pointf); | ^~~~~~ constraint.c:714:30: warning: comparing floating-point with '==' or '!=' is unsafe [-Wfloat-equal] 714 | if (p->pos.x == q->pos.x) | ^~ constraint.c:721:30: warning: comparing floating-point with '==' or '!=' is unsafe [-Wfloat-equal] 721 | if (p->pos.y == q->pos.y) | ^~ CC compute_hierarchy.lo ../../lib/common/memory.h:26:58: warning: conversion to 'long unsigned int' from 'int' may change the sign of the result [-Wsign-conversion] 26 | #define RALLOC(size,ptr,type) ((type*)grealloc(ptr,(size)*sizeof(type))) | ^ constraint.c:735:9: note: in expansion of macro 'RALLOC' 735 | S = RALLOC(cnt + 1, S, pointf); | ^~~~~~ constraint.c: In function 'computeScaleXY': constraint.c:749:21: warning: conversion to 'size_t' {aka 'long unsigned int'} from 'int' may change the sign of the result [-Wsign-conversion] 749 | qsort(aarr + 1, m, sizeof(pointf), (sortfn_t) sortf); | ^ constraint.c:751:21: warning: conversion to 'size_t' {aka 'long unsigned int'} from 'int' may change the sign of the result [-Wsign-conversion] 751 | barr = N_GNEW(m + 1, pointf); ../../lib/common/memory.h:23:39: note: in definition of macro 'N_GNEW' 23 | #define N_GNEW(n,t) (t*)gcalloc((n),sizeof(t)) | ^ CC call_tri.lo constraint.c: In function 'scAdjust': ../../lib/common/memory.h:23:38: warning: conversion to 'size_t' {aka 'long unsigned int'} from 'int' may change the sign of the result [-Wsign-conversion] 23 | #define N_GNEW(n,t) (t*)gcalloc((n),sizeof(t)) | ^~~ constraint.c:808:19: note: in expansion of macro 'N_GNEW' 808 | info *nlist = N_GNEW(nnodes, info); | ^~~~~~ In file included from ../../lib/common/types.h:28, from ../../lib/common/render.h:29: ../../lib/common/geom.h:62:33: warning: conversion from 'double' to 'float' may change value [-Wfloat-conversion] 62 | #define PS2INCH(a_points) ((a_points)/(double)POINTS_PER_INCH) | ^ constraint.c:820:20: note: in expansion of macro 'PS2INCH' 820 | margin.x = PS2INCH(margin.x); | ^~~~~~~ ../../lib/common/geom.h:62:33: warning: conversion from 'double' to 'float' may change value [-Wfloat-conversion] 62 | #define PS2INCH(a_points) ((a_points)/(double)POINTS_PER_INCH) | ^ constraint.c:821:20: note: in expansion of macro 'PS2INCH' 821 | margin.y = PS2INCH(margin.y); | ^~~~~~~ constraint.c:848:17: warning: comparing floating-point with '==' or '!=' is unsafe [-Wfloat-equal] 848 | if (s.x == 0) { /* overlaps exist */ | ^~ constraint.c: In function 'cAdjust': constraint.c:599:13: warning: this statement may fall through [-Wimplicit-fallthrough=] 599 | constrainY(g, nlist, nnodes, intersectX, 1); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ bfs.c: In function 'bfs_bounded': constraint.c:600:9: note: here 600 | case AM_ORTHO_YX : | ^~~~ constraint.c:602:13: warning: this statement may fall through [-Wimplicit-fallthrough=] 602 | constrainX(g, nlist, nnodes, intersectY, 1); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ constraint.c:603:9: note: here 603 | case AM_PORTHOXY: | ^~~~ bfs.c:71:47: warning: unused parameter 'n' [-Wunused-parameter] 71 | bfs_bounded(int vertex, vtx_data * graph, int n, DistType * dist, | ~~~~^ In file included from ../../lib/common/render.h:33, from ../../lib/neatogen/neato.h:31, from ../../lib/neatogen/defs.h:17, from ../../lib/neatogen/bfs.h:19, from bfs.c:20: bfs.c: In function 'mkQueue': ../../lib/common/memory.h:23:38: warning: conversion to 'size_t' {aka 'long unsigned int'} from 'int' may change the sign of the result [-Wsign-conversion] 23 | #define N_GNEW(n,t) (t*)gcalloc((n),sizeof(t)) | ^~~ bfs.c:116:16: note: in expansion of macro 'N_GNEW' 116 | qp->data = N_GNEW(size, int); | ^~~~~~ CC delaunay.lo closest.c: In function 'heapify': closest.c:33:27: warning: comparing floating-point with '==' or '!=' is unsafe [-Wfloat-equal] 33 | #define EQ(p,q) ((p).dist == (q).dist) | ^~ closest.c:77:35: note: in expansion of macro 'EQ' 77 | (LT(h->data[i],h->data[j]) || ((EQ(h->data[i],h->data[j])) && (rand()%2))) | ^~ closest.c:92:33: note: in expansion of macro 'greaterPriority' 92 | if (insideHeap(h, l) && greaterPriority(h, l, i)) | ^~~~~~~~~~~~~~~ closest.c:33:27: warning: comparing floating-point with '==' or '!=' is unsafe [-Wfloat-equal] 33 | #define EQ(p,q) ((p).dist == (q).dist) | ^~ closest.c:77:35: note: in expansion of macro 'EQ' 77 | (LT(h->data[i],h->data[j]) || ((EQ(h->data[i],h->data[j])) && (rand()%2))) | ^~ closest.c:96:33: note: in expansion of macro 'greaterPriority' 96 | if (insideHeap(h, r) && greaterPriority(h, r, largest)) | ^~~~~~~~~~~~~~~ In file included from ../../lib/common/render.h:33, from ../../lib/neatogen/neato.h:31, from ../../lib/neatogen/defs.h:17, from ../../lib/neatogen/kkutils.h:17, from closest.c:13: closest.c: In function 'initHeap': closest.c:125:23: warning: conversion to 'size_t' {aka 'long unsigned int'} from 'int' may change the sign of the result [-Wsign-conversion] 125 | h->data = N_GNEW(h->maxSize, Pair); ../../lib/common/memory.h:23:39: note: in definition of macro 'N_GNEW' 23 | #define N_GNEW(n,t) (t*)gcalloc((n),sizeof(t)) | ^ closest.c: In function 'insert': closest.c:156:47: warning: conversion to 'long unsigned int' from 'int' may change the sign of the result [-Wsign-conversion] 156 | h->data = realloc(h->data, h->maxSize * sizeof(Pair)); | ^ CC multispline.lo closest.c:33:27: warning: comparing floating-point with '==' or '!=' is unsafe [-Wfloat-equal] 33 | #define EQ(p,q) ((p).dist == (q).dist) | ^~ closest.c:77:35: note: in expansion of macro 'EQ' 77 | (LT(h->data[i],h->data[j]) || ((EQ(h->data[i],h->data[j])) && (rand()%2))) | ^~ closest.c:160:21: note: in expansion of macro 'greaterPriority' 160 | while (i > 0 && greaterPriority(h, i, parent(i))) { | ^~~~~~~~~~~~~~~ closest.c: In function 'find_closest_pairs': ../../lib/common/memory.h:23:38: warning: conversion to 'size_t' {aka 'long unsigned int'} from 'int' may change the sign of the result [-Wsign-conversion] 23 | #define N_GNEW(n,t) (t*)gcalloc((n),sizeof(t)) | ^~~ closest.c:171:17: note: in expansion of macro 'N_GNEW' 171 | int *left = N_GNEW(n, int); | ^~~~~~ ../../lib/common/memory.h:23:38: warning: conversion to 'size_t' {aka 'long unsigned int'} from 'int' may change the sign of the result [-Wsign-conversion] 23 | #define N_GNEW(n,t) (t*)gcalloc((n),sizeof(t)) | ^~~ closest.c:172:18: note: in expansion of macro 'N_GNEW' 172 | int *right = N_GNEW(n, int); | ^~~~~~ ../../lib/common/memory.h:23:38: warning: conversion to 'size_t' {aka 'long unsigned int'} from 'int' may change the sign of the result [-Wsign-conversion] 23 | #define N_GNEW(n,t) (t*)gcalloc((n),sizeof(t)) | ^~~ closest.c:176:21: note: in expansion of macro 'N_GNEW' 176 | int *ordering = N_GNEW(n, int); | ^~~~~~ ../../lib/common/memory.h:23:38: warning: conversion to 'size_t' {aka 'long unsigned int'} from 'int' may change the sign of the result [-Wsign-conversion] 23 | #define N_GNEW(n,t) (t*)gcalloc((n),sizeof(t)) | ^~~ closest.c:177:25: note: in expansion of macro 'N_GNEW' 177 | int *inv_ordering = N_GNEW(n, int); | ^~~~~~ closest.c: In function 'construct_graph': ../../lib/common/memory.h:23:38: warning: conversion to 'size_t' {aka 'long unsigned int'} from 'int' may change the sign of the result [-Wsign-conversion] 23 | #define N_GNEW(n,t) (t*)gcalloc((n),sizeof(t)) | ^~~ closest.c:267:20: note: in expansion of macro 'N_GNEW' 267 | int *degrees = N_GNEW(n, int); | ^~~~~~ closest.c:269:33: warning: conversion to 'size_t' {aka 'long unsigned int'} from 'int' may change the sign of the result [-Wsign-conversion] 269 | size_t new_nedges = 2 * top + n; | ^ ../../lib/common/memory.h:23:38: warning: conversion to 'size_t' {aka 'long unsigned int'} from 'int' may change the sign of the result [-Wsign-conversion] 23 | #define N_GNEW(n,t) (t*)gcalloc((n),sizeof(t)) | ^~~ closest.c:288:30: note: in expansion of macro 'N_GNEW' 288 | *New_graph = new_graph = N_GNEW(n, vtx_data); | ^~~~~~ CC constrained_majorization_ipsep.lo In file included from ../../lib/common/render.h:33, from ../../lib/neatogen/neato.h:31, from ../../lib/neatogen/defs.h:17, from ../../lib/neatogen/digcola.h:17, from quad_prog_solve.c:11: quad_prog_solve.c: In function 'unpackMatrix': ../../lib/common/memory.h:23:38: warning: conversion to 'size_t' {aka 'long unsigned int'} from 'int' may change the sign of the result [-Wsign-conversion] 23 | #define N_GNEW(n,t) (t*)gcalloc((n),sizeof(t)) | ^~~ quad_prog_solve.c:31:11: note: in expansion of macro 'N_GNEW' 31 | mat = N_GNEW(n, float *); | ^~~~~~ quad_prog_solve.c:32:23: warning: conversion to 'size_t' {aka 'long unsigned int'} from 'int' may change the sign of the result [-Wsign-conversion] 32 | mat[0] = N_GNEW(n * n, float); ../../lib/common/memory.h:23:39: note: in definition of macro 'N_GNEW' 23 | #define N_GNEW(n,t) (t*)gcalloc((n),sizeof(t)) | ^ quad_prog_solve.c: In function 'computeHierarchyBoundaries': quad_prog_solve.c:99:46: warning: unused parameter 'n' [-Wunused-parameter] 99 | computeHierarchyBoundaries(float *place, int n, int *ordering, int *levels, | ~~~~^ quad_prog_solve.c: In function 'constrained_majorization_new': quad_prog_solve.c:144:20: warning: comparing floating-point with '==' or '!=' is unsafe [-Wfloat-equal] 144 | if (levels_gap != 0) { | ^~ quad_prog_solve.c:195:44: warning: comparing floating-point with '==' or '!=' is unsafe [-Wfloat-equal] 195 | if (place[ordering[right]] != cur_place) { | ^~ quad_prog_solve.c:235:45: warning: comparing floating-point with '==' or '!=' is unsafe [-Wfloat-equal] 235 | if (desired_place[node] == cur_place) { | ^~ CC mosek_quad_solve.lo In file included from ../../lib/common/render.h:33, from ../../lib/neatogen/neato.h:31, from ../../lib/neatogen/defs.h:17, from ../../lib/neatogen/digcola.h:17, from smart_ini_x.c:11: smart_ini_x.c: In function 'power_iteration_orthog': ../../lib/common/memory.h:23:38: warning: conversion to 'size_t' {aka 'long unsigned int'} from 'int' may change the sign of the result [-Wsign-conversion] 23 | #define N_GNEW(n,t) (t*)gcalloc((n),sizeof(t)) | ^~~ smart_ini_x.c:66:27: note: in expansion of macro 'N_GNEW' 66 | double *tmp_vec = N_GNEW(n, double); | ^~~~~~ ../../lib/common/memory.h:23:38: warning: conversion to 'size_t' {aka 'long unsigned int'} from 'int' may change the sign of the result [-Wsign-conversion] 23 | #define N_GNEW(n,t) (t*)gcalloc((n),sizeof(t)) | ^~~ smart_ini_x.c:67:28: note: in expansion of macro 'N_GNEW' 67 | double *last_vec = N_GNEW(n, double); | ^~~~~~ CC quad_prog_vpsc.lo quad_prog_solve.c: In function 'constrained_majorization_gradient_projection': quad_prog_solve.c:474:39: warning: conversion to 'long unsigned int' from 'int' may change the sign of the result [-Wsign-conversion] 474 | (size_t) endOfLevel - levels[i], sizeof(int), | ^ quad_prog_solve.c:481:54: warning: conversion from 'int' to 'float' may change value [-Wconversion] 481 | place[l] + place[u] - levels_gap * (e->lev[l] + | ^ quad_prog_solve.c:490:53: warning: conversion from 'int' to 'float' may change value [-Wconversion] 490 | pos = place[u] - levels_gap * e->lev[u]; | ^ smart_ini_x.c: In function 'compute_avgs': ../../lib/common/memory.h:23:38: warning: conversion to 'size_t' {aka 'long unsigned int'} from 'int' may change the sign of the result [-Wsign-conversion] 23 | #define N_GNEW(n,t) (t*)gcalloc((n),sizeof(t)) | ^~~ smart_ini_x.c:182:26: note: in expansion of macro 'N_GNEW' 182 | float* row_avg = N_GNEW(n, float); | ^~~~~~ smart_ini_x.c:192:42: warning: conversion from 'int' to 'float' may change value [-Wconversion] 192 | row_avg[i]=(float)sum_row/n; | ^ quad_prog_solve.c:502:53: warning: conversion from 'int' to 'float' may change value [-Wconversion] 502 | pos = place[l] - levels_gap * e->lev[l]; | ^ smart_ini_x.c:194:28: warning: conversion from 'int' to 'float' may change value [-Wconversion] 194 | *all_avg=(float)sum/(n*n); | ^ smart_ini_x.c: In function 'compute_Bij': smart_ini_x.c:202:34: warning: conversion to 'size_t' {aka 'long unsigned int'} from 'int' may change the sign of the result [-Wsign-conversion] 202 | float* storage = N_GNEW(n*n,float); ../../lib/common/memory.h:23:39: note: in definition of macro 'N_GNEW' 23 | #define N_GNEW(n,t) (t*)gcalloc((n),sizeof(t)) | ^ ../../lib/common/memory.h:23:38: warning: conversion to 'size_t' {aka 'long unsigned int'} from 'int' may change the sign of the result [-Wsign-conversion] 23 | #define N_GNEW(n,t) (t*)gcalloc((n),sizeof(t)) | ^~~ smart_ini_x.c:203:23: note: in expansion of macro 'N_GNEW' 203 | float** Bij = N_GNEW(n, float*); | ^~~~~~ quad_prog_solve.c:514:45: warning: conversion from 'int' to 'float' may change value [-Wconversion] 514 | avgPos + levels_gap * e->lev[ordering[j]]; | ^ smart_ini_x.c:213:52: warning: conversion from 'DistType' {aka 'int'} to 'float' may change value [-Wconversion] 213 | Bij[i][j]=-(float)Dij[i][j]*Dij[i][j]+row_avg[i]+row_avg[j]-all_avg; | ^ smart_ini_x.c: In function 'CMDS_orthog': ../../lib/common/memory.h:23:38: warning: conversion to 'size_t' {aka 'long unsigned int'} from 'int' may change the sign of the result [-Wsign-conversion] 23 | #define N_GNEW(n,t) (t*)gcalloc((n),sizeof(t)) | ^~~ smart_ini_x.c:227:24: note: in expansion of macro 'N_GNEW' 227 | double* evals= N_GNEW(dim, double); | ^~~~~~ ../../lib/common/memory.h:23:38: warning: conversion to 'size_t' {aka 'long unsigned int'} from 'int' may change the sign of the result [-Wsign-conversion] 23 | #define N_GNEW(n,t) (t*)gcalloc((n),sizeof(t)) | ^~~ smart_ini_x.c:231:30: note: in expansion of macro 'N_GNEW' 231 | orthog_aux = N_GNEW(n, double); | ^~~~~~ smart_ini_x.c:222:23: warning: unused parameter 'graph' [-Wunused-parameter] 222 | CMDS_orthog(vtx_data* graph, int n, int dim, double** eigs, double tol, | ~~~~~~~~~~^~~~~ quad_prog_solve.c:538:23: warning: conversion from 'double' to 'float' may change value [-Wfloat-conversion] 538 | tmptest = fabs(place[i] - old_place[i]); | ^~~~ smart_ini_x.c: In function 'IMDS_given_dim': ../../lib/common/memory.h:23:38: warning: conversion to 'size_t' {aka 'long unsigned int'} from 'int' may change the sign of the result [-Wsign-conversion] 23 | #define N_GNEW(n,t) (t*)gcalloc((n),sizeof(t)) | ^~~ smart_ini_x.c:261:23: note: in expansion of macro 'N_GNEW' 261 | float** lap = N_GNEW(n, float*); | ^~~~~~ ../../lib/common/memory.h:23:38: warning: conversion to 'size_t' {aka 'long unsigned int'} from 'int' may change the sign of the result [-Wsign-conversion] 23 | #define N_GNEW(n,t) (t*)gcalloc((n),sizeof(t)) | ^~~ smart_ini_x.c:264:27: note: in expansion of macro 'N_GNEW' 264 | double* balance = N_GNEW(n, double); | ^~~~~~ quad_prog_solve.c:403:54: warning: unused parameter 'ndims' [-Wunused-parameter] 403 | int ndims, int cur_axis, | ~~~~^~~~~ quad_prog_solve.c: In function 'constrained_majorization_new_with_gaps': quad_prog_solve.c:575:12: warning: declaration of 'place' shadows a global declaration [-Wshadow] 575 | float *place = coords[cur_axis]; | ^~~~~ ../../lib/common/memory.h:23:38: warning: conversion to 'size_t' {aka 'long unsigned int'} from 'int' may change the sign of the result [-Wsign-conversion] 23 | #define N_GNEW(n,t) (t*)gcalloc((n),sizeof(t)) | ^~~ smart_ini_x.c:281:30: note: in expansion of macro 'N_GNEW' 281 | orthog_aux = N_GNEW(n, double); | ^~~~~~ quad_prog_solve.c:386:15: note: shadowed declaration is here 386 | static float *place; | ^~~~~ smart_ini_x.c:302:29: warning: conversion to 'size_t' {aka 'long unsigned int'} from 'int' may change the sign of the result [-Wsign-conversion] 302 | f_storage = N_GNEW(n*n, float); ../../lib/common/memory.h:23:39: note: in definition of macro 'N_GNEW' 23 | #define N_GNEW(n,t) (t*)gcalloc((n),sizeof(t)) | ^ smart_ini_x.c:325:62: warning: cast from function call of type 'double' to non-matching type 'int' [-Wbad-function-cast] 325 | Dij[i][j]=Dij[j][i]=diff>0 ? (DistType)sqrt(diff) : 0; | ^ quad_prog_solve.c:714:45: warning: comparing floating-point with '==' or '!=' is unsafe [-Wfloat-equal] 714 | if (desired_place[node] == cur_place) { | ^~ smart_ini_x.c:338:54: warning: conversion from 'DistType' {aka 'int'} to 'float' may change value [-Wconversion] 338 | balance[i]+=Dij[i][j]*(-lap[i][j]); // w_{ij}*delta_{ij} | ^ smart_ini_x.c:341:54: warning: conversion from 'DistType' {aka 'int'} to 'float' may change value [-Wconversion] 341 | balance[i]-=Dij[i][j]*(-lap[i][j]); // w_{ij}*delta_{ij} | ^ smart_ini_x.c:359:53: warning: conversion from 'DistType' {aka 'int'} to 'float' may change value [-Wconversion] 359 | b+=Dij[i][j]*(-lap[i][j]); | ^ smart_ini_x.c:363:53: warning: conversion from 'DistType' {aka 'int'} to 'float' may change value [-Wconversion] 363 | b-=Dij[i][j]*(-lap[i][j]); | ^ smart_ini_x.c:367:32: warning: comparing floating-point with '==' or '!=' is unsafe [-Wfloat-equal] 367 | if ((b != balance[i]) && (fabs(1-b/balance[i])>1e-5)) { | ^~ quad_prog_solve.c:570:60: warning: unused parameter 'ndims' [-Wunused-parameter] 570 | float **coords, int ndims, | ~~~~^~~~~ quad_prog_solve.c: In function 'initConstrainedMajorization': ../../lib/common/memory.h:23:38: warning: conversion to 'size_t' {aka 'long unsigned int'} from 'int' may change the sign of the result [-Wsign-conversion] 23 | #define N_GNEW(n,t) (t*)gcalloc((n),sizeof(t)) | ^~~ quad_prog_solve.c:930:14: note: in expansion of macro 'N_GNEW' 930 | e->lev = N_GNEW(n, int); | ^~~~~~ ../../lib/common/memory.h:23:38: warning: conversion to 'size_t' {aka 'long unsigned int'} from 'int' may change the sign of the result [-Wsign-conversion] 23 | #define N_GNEW(n,t) (t*)gcalloc((n),sizeof(t)) | ^~~ quad_prog_solve.c:939:18: note: in expansion of macro 'N_GNEW' 939 | e->fArray1 = N_GNEW(n, float); | ^~~~~~ ../../lib/common/memory.h:23:38: warning: conversion to 'size_t' {aka 'long unsigned int'} from 'int' may change the sign of the result [-Wsign-conversion] 23 | #define N_GNEW(n,t) (t*)gcalloc((n),sizeof(t)) | ^~~ quad_prog_solve.c:940:18: note: in expansion of macro 'N_GNEW' 940 | e->fArray2 = N_GNEW(n, float); | ^~~~~~ ../../lib/common/memory.h:23:38: warning: conversion to 'size_t' {aka 'long unsigned int'} from 'int' may change the sign of the result [-Wsign-conversion] 23 | #define N_GNEW(n,t) (t*)gcalloc((n),sizeof(t)) | ^~~ quad_prog_solve.c:941:18: note: in expansion of macro 'N_GNEW' 941 | e->fArray3 = N_GNEW(n, float); | ^~~~~~ ../../lib/common/memory.h:23:38: warning: conversion to 'size_t' {aka 'long unsigned int'} from 'int' may change the sign of the result [-Wsign-conversion] 23 | #define N_GNEW(n,t) (t*)gcalloc((n),sizeof(t)) | ^~~ quad_prog_solve.c:942:18: note: in expansion of macro 'N_GNEW' 942 | e->fArray4 = N_GNEW(n, float); | ^~~~~~ ../../lib/common/memory.h:23:38: warning: conversion to 'size_t' {aka 'long unsigned int'} from 'int' may change the sign of the result [-Wsign-conversion] 23 | #define N_GNEW(n,t) (t*)gcalloc((n),sizeof(t)) | ^~~ quad_prog_solve.c:943:18: note: in expansion of macro 'N_GNEW' 943 | e->iArray1 = N_GNEW(n, int); | ^~~~~~ ../../lib/common/memory.h:23:38: warning: conversion to 'size_t' {aka 'long unsigned int'} from 'int' may change the sign of the result [-Wsign-conversion] 23 | #define N_GNEW(n,t) (t*)gcalloc((n),sizeof(t)) | ^~~ quad_prog_solve.c:944:18: note: in expansion of macro 'N_GNEW' 944 | e->iArray2 = N_GNEW(n, int); | ^~~~~~ ../../lib/common/memory.h:23:38: warning: conversion to 'size_t' {aka 'long unsigned int'} from 'int' may change the sign of the result [-Wsign-conversion] 23 | #define N_GNEW(n,t) (t*)gcalloc((n),sizeof(t)) | ^~~ quad_prog_solve.c:945:18: note: in expansion of macro 'N_GNEW' 945 | e->iArray3 = N_GNEW(n, int); | ^~~~~~ ../../lib/common/memory.h:23:38: warning: conversion to 'size_t' {aka 'long unsigned int'} from 'int' may change the sign of the result [-Wsign-conversion] 23 | #define N_GNEW(n,t) (t*)gcalloc((n),sizeof(t)) | ^~~ quad_prog_solve.c:946:18: note: in expansion of macro 'N_GNEW' 946 | e->iArray4 = N_GNEW(n, int); | ^~~~~~ constrained_majorization.c: In function 'stress_majorization_with_hierarchy': constrained_majorization.c:89:59: warning: comparing floating-point with '==' or '!=' is unsafe [-Wfloat-equal] 89 | directionalityExist |= graph[i].edists[j] != 0; | ^~ CC sgd.lo In file included from ../../lib/common/render.h:33, from ../../lib/neatogen/neato.h:31, from ../../lib/neatogen/defs.h:17, from ../../lib/neatogen/digcola.h:17, from constrained_majorization.c:11: ../../lib/common/memory.h:23:38: warning: conversion to 'size_t' {aka 'long unsigned int'} from 'int' may change the sign of the result [-Wsign-conversion] 23 | #define N_GNEW(n,t) (t*)gcalloc((n),sizeof(t)) | ^~~ constrained_majorization.c:169:28: note: in expansion of macro 'N_GNEW' 169 | hierarchy_boundaries = N_GNEW(num_levels, float); | ^~~~~~ constrained_majorization.c:238:13: warning: declaration of 'length' shadows a previous local [-Wshadow] 238 | int length = n + n * (n - 1) / 2; | ^~~~~~ constrained_majorization.c:66:9: note: shadowed declaration is here 66 | int length; | ^~~~~~ constrained_majorization.c:240:13: warning: declaration of 'count' shadows a previous local [-Wshadow] 240 | int count; | ^~~~~ constrained_majorization.c:76:9: note: shadowed declaration is here 76 | int count; | ^~~~~ ../../lib/common/memory.h:23:38: warning: conversion to 'size_t' {aka 'long unsigned int'} from 'int' may change the sign of the result [-Wsign-conversion] 23 | #define N_GNEW(n,t) (t*)gcalloc((n),sizeof(t)) | ^~~ constrained_majorization.c:270:14: note: in expansion of macro 'N_GNEW' 270 | coords = N_GNEW(dim, float *); | ^~~~~~ constrained_majorization.c:271:28: warning: conversion to 'size_t' {aka 'long unsigned int'} from 'int' may change the sign of the result [-Wsign-conversion] 271 | f_storage = N_GNEW(dim * n, float); ../../lib/common/memory.h:23:39: note: in definition of macro 'N_GNEW' 23 | #define N_GNEW(n,t) (t*)gcalloc((n),sizeof(t)) | ^ ../../lib/common/memory.h:23:38: warning: conversion to 'size_t' {aka 'long unsigned int'} from 'int' may change the sign of the result [-Wsign-conversion] 23 | #define N_GNEW(n,t) (t*)gcalloc((n),sizeof(t)) | ^~~ constrained_majorization.c:299:15: note: in expansion of macro 'N_GNEW' 299 | degrees = N_GNEW(n, double); | ^~~~~~ ../../lib/common/memory.h:23:38: warning: conversion to 'size_t' {aka 'long unsigned int'} from 'int' may change the sign of the result [-Wsign-conversion] 23 | #define N_GNEW(n,t) (t*)gcalloc((n),sizeof(t)) | ^~~ constrained_majorization.c:319:9: note: in expansion of macro 'N_GNEW' 319 | b = N_GNEW(dim, float *); | ^~~~~~ constrained_majorization.c:320:23: warning: conversion to 'size_t' {aka 'long unsigned int'} from 'int' may change the sign of the result [-Wsign-conversion] 320 | b[0] = N_GNEW(dim * n, float); ../../lib/common/memory.h:23:39: note: in definition of macro 'N_GNEW' 23 | #define N_GNEW(n,t) (t*)gcalloc((n),sizeof(t)) | ^ ../../lib/common/memory.h:23:38: warning: conversion to 'size_t' {aka 'long unsigned int'} from 'int' may change the sign of the result [-Wsign-conversion] 23 | #define N_GNEW(n,t) (t*)gcalloc((n),sizeof(t)) | ^~~ constrained_majorization.c:325:18: note: in expansion of macro 'N_GNEW' 325 | tmp_coords = N_GNEW(n, float); | ^~~~~~ ../../lib/common/memory.h:23:38: warning: conversion to 'size_t' {aka 'long unsigned int'} from 'int' may change the sign of the result [-Wsign-conversion] 23 | #define N_GNEW(n,t) (t*)gcalloc((n),sizeof(t)) | ^~~ constrained_majorization.c:326:24: note: in expansion of macro 'N_GNEW' 326 | dist_accumulator = N_GNEW(n, float); | ^~~~~~ ../../lib/common/memory.h:23:38: warning: conversion to 'size_t' {aka 'long unsigned int'} from 'int' may change the sign of the result [-Wsign-conversion] 23 | #define N_GNEW(n,t) (t*)gcalloc((n),sizeof(t)) | ^~~ constrained_majorization.c:327:12: note: in expansion of macro 'N_GNEW' 327 | lap1 = N_GNEW(lap_length, float); | ^~~~~~ constrained_majorization.c:442:56: warning: conversion from 'double' to 'float' may change value [-Wfloat-conversion] 442 | levels_gap); | ^~~~~~~~~~ CC randomkit.lo In file included from ../../lib/common/render.h:33, from ../../lib/neatogen/neato.h:31, from ../../lib/neatogen/defs.h:17, from ../../lib/neatogen/digcola.h:17, from opt_arrangement.c:11: opt_arrangement.c: In function 'compute_y_coords': ../../lib/common/memory.h:20:38: warning: conversion to 'size_t' {aka 'long unsigned int'} from 'int' may change the sign of the result [-Wsign-conversion] 20 | #define N_NEW(n,t) (t*)gcalloc((n),sizeof(t)) | ^~~ opt_arrangement.c:48:17: note: in expansion of macro 'N_NEW' 48 | double *b = N_NEW(n, double); | ^~~~~ ../../lib/common/memory.h:23:38: warning: conversion to 'size_t' {aka 'long unsigned int'} from 'int' may change the sign of the result [-Wsign-conversion] 23 | #define N_GNEW(n,t) (t*)gcalloc((n),sizeof(t)) | ^~~ opt_arrangement.c:64:23: note: in expansion of macro 'N_GNEW' 64 | uniform_weights = N_GNEW(nedges, float); | ^~~~~~ overlap.c: In function 'NodeDest': overlap.c:106:28: warning: unused parameter 'a' [-Wunused-parameter] 106 | static void NodeDest(void* a) { | ~~~~~~^ overlap.c: In function 'InfoPrint': overlap.c:120:29: warning: unused parameter 'a' [-Wunused-parameter] 120 | static void InfoPrint(void* a) { | ~~~~~~^ overlap.c: In function 'InfoDest': overlap.c:123:28: warning: unused parameter 'a' [-Wunused-parameter] 123 | static void InfoDest(void *a){ | ~~~~~~^ In file included from ../../lib/sparse/general.h:28, from ../../lib/sparse/SparseMatrix.h:13, from ../../lib/sfdpgen/spring_electrical.h:13, from ../../lib/sfdpgen/post_process.h:13, from ../../lib/neatogen/overlap.h:13, from overlap.c:12: overlap.c: In function 'get_overlap_graph': overlap.c:137:25: warning: conversion to 'size_t' {aka 'long unsigned int'} from 'int' may change the sign of the result [-Wsign-conversion] 137 | scanpointsx = N_GNEW(2*n,scan_point); ../../lib/common/memory.h:23:39: note: in definition of macro 'N_GNEW' 23 | #define N_GNEW(n,t) (t*)gcalloc((n),sizeof(t)) | ^ overlap.c:146:23: warning: conversion to 'size_t' {aka 'long unsigned int'} from 'int' may change the sign of the result [-Wsign-conversion] 146 | qsort(scanpointsx, 2*n, sizeof(scan_point), comp_scan_points); | ~^~ overlap.c:148:25: warning: conversion to 'size_t' {aka 'long unsigned int'} from 'int' may change the sign of the result [-Wsign-conversion] 148 | scanpointsy = N_GNEW(2*n,scan_point); ../../lib/common/memory.h:23:39: note: in definition of macro 'N_GNEW' 23 | #define N_GNEW(n,t) (t*)gcalloc((n),sizeof(t)) | ^ overlap.c: In function 'overlap_scaling': overlap.c:326:19: warning: comparing floating-point with '==' or '!=' is unsafe [-Wfloat-equal] 326 | if (scale_sta == 0) { | ^~ overlap.c: In function 'OverlapSmoother_new': overlap.c:388:18: warning: conversion from 'double' to 'int' may change value [-Wfloat-conversion] 388 | sm->maxit_cg = sqrt((double) A->m); | ^~~~ ../../lib/common/memory.h:23:38: warning: conversion to 'size_t' {aka 'long unsigned int'} from 'int' may change the sign of the result [-Wsign-conversion] 23 | #define N_GNEW(n,t) (t*)gcalloc((n),sizeof(t)) | ^~~ overlap.c:390:25: note: in expansion of macro 'N_GNEW' 390 | lambda = sm->lambda = N_GNEW(m,double); | ^~~~~~ overlap.c: In function 'print_bounding_box': ../../lib/common/memory.h:23:38: warning: conversion to 'size_t' {aka 'long unsigned int'} from 'int' may change the sign of the result [-Wsign-conversion] 23 | #define N_GNEW(n,t) (t*)gcalloc((n),sizeof(t)) | ^~~ overlap.c:515:10: note: in expansion of macro 'N_GNEW' 515 | xmin = N_GNEW(dim,double); | ^~~~~~ ../../lib/common/memory.h:23:38: warning: conversion to 'size_t' {aka 'long unsigned int'} from 'int' may change the sign of the result [-Wsign-conversion] 23 | #define N_GNEW(n,t) (t*)gcalloc((n),sizeof(t)) | ^~~ overlap.c:516:10: note: in expansion of macro 'N_GNEW' 516 | xmax = N_GNEW(dim,double); | ^~~~~~ call_tri.c:20:14: warning: no previous prototype for 'call_tri' [-Wmissing-prototypes] 20 | SparseMatrix call_tri(int n, int dim, double * x) | ^~~~~~~~ In file included from ../../lib/sparse/general.h:28, from ../../lib/sparse/SparseMatrix.h:13, from call_tri.c:13: call_tri.c: In function 'call_tri': ../../lib/common/memory.h:23:38: warning: conversion to 'size_t' {aka 'long unsigned int'} from 'int' may change the sign of the result [-Wsign-conversion] 23 | #define N_GNEW(n,t) (t*)gcalloc((n),sizeof(t)) | ^~~ call_tri.c:27:18: note: in expansion of macro 'N_GNEW' 27 | double* xv = N_GNEW(n, double); | ^~~~~~ ../../lib/common/memory.h:23:38: warning: conversion to 'size_t' {aka 'long unsigned int'} from 'int' may change the sign of the result [-Wsign-conversion] 23 | #define N_GNEW(n,t) (t*)gcalloc((n),sizeof(t)) | ^~~ call_tri.c:28:18: note: in expansion of macro 'N_GNEW' 28 | double* yv = N_GNEW(n, double); | ^~~~~~ call_tri.c:20:34: warning: unused parameter 'dim' [-Wunused-parameter] 20 | SparseMatrix call_tri(int n, int dim, double * x) | ~~~~^~~ call_tri.c: At top level: call_tri.c:66:14: warning: no previous prototype for 'call_tri2' [-Wmissing-prototypes] 66 | SparseMatrix call_tri2(int n, int dim, double * xx) | ^~~~~~~~~ call_tri.c: In function 'call_tri2': ../../lib/common/memory.h:23:38: warning: conversion to 'size_t' {aka 'long unsigned int'} from 'int' may change the sign of the result [-Wsign-conversion] 23 | #define N_GNEW(n,t) (t*)gcalloc((n),sizeof(t)) | ^~~ call_tri.c:74:9: note: in expansion of macro 'N_GNEW' 74 | x = N_GNEW(n, double); | ^~~~~~ ../../lib/common/memory.h:23:38: warning: conversion to 'size_t' {aka 'long unsigned int'} from 'int' may change the sign of the result [-Wsign-conversion] 23 | #define N_GNEW(n,t) (t*)gcalloc((n),sizeof(t)) | ^~~ call_tri.c:75:9: note: in expansion of macro 'N_GNEW' 75 | y = N_GNEW(n, double); | ^~~~~~ In file included from ../../lib/common/render.h:33, from ../../lib/neatogen/neato.h:31, from ../../lib/neatogen/defs.h:17, from ../../lib/neatogen/digcola.h:17, from compute_hierarchy.c:11: compute_hierarchy.c: In function 'compute_hierarchy': ../../lib/common/memory.h:23:38: warning: conversion to 'size_t' {aka 'long unsigned int'} from 'int' may change the sign of the result [-Wsign-conversion] 23 | #define N_GNEW(n,t) (t*)gcalloc((n),sizeof(t)) | ^~~ compute_hierarchy.c:64:13: note: in expansion of macro 'N_GNEW' 64 | y = N_GNEW(n, double); | ^~~~~~ ../../lib/common/memory.h:20:38: warning: conversion to 'size_t' {aka 'long unsigned int'} from 'int' may change the sign of the result [-Wsign-conversion] 20 | #define N_NEW(n,t) (t*)gcalloc((n),sizeof(t)) | ^~~ compute_hierarchy.c:72:29: note: in expansion of macro 'N_NEW' 72 | *orderingp = ordering = N_NEW(n, int); | ^~~~~ ../../lib/common/memory.h:23:38: warning: conversion to 'size_t' {aka 'long unsigned int'} from 'int' may change the sign of the result [-Wsign-conversion] 23 | #define N_GNEW(n,t) (t*)gcalloc((n),sizeof(t)) | ^~~ compute_hierarchy.c:116:29: note: in expansion of macro 'N_GNEW' 116 | *levelsp = levels = N_GNEW(num_levels, int); | ^~~~~~ multispline.c: In function 'ctrlPtIdx': multispline.c:313:18: warning: comparing floating-point with '==' or '!=' is unsafe [-Wfloat-equal] 313 | if ((w.x == v.x) && (w.y == v.y)) | ^~ multispline.c:313:34: warning: comparing floating-point with '==' or '!=' is unsafe [-Wfloat-equal] 313 | if ((w.x == v.x) && (w.y == v.y)) | ^~ In file included from ../../lib/common/render.h:33, from ../../lib/neatogen/multispline.h:13, from multispline.c:12: multispline.c: In function 'mkCtrlPts': ../../lib/common/memory.h:23:38: warning: conversion to 'size_t' {aka 'long unsigned int'} from 'int' may change the sign of the result [-Wsign-conversion] 23 | #define N_GNEW(n,t) (t*)gcalloc((n),sizeof(t)) | ^~~ multispline.c:343:10: note: in expansion of macro 'N_GNEW' 343 | ps = N_GNEW(mult, pointf); | ^~~~~~ multispline.c: In function 'mkTriIndices': multispline.c:478:26: warning: conversion to 'size_t' {aka 'long unsigned int'} from 'int' may change the sign of the result [-Wsign-conversion] 478 | int *tris = N_GNEW(3 * sf->nfaces, int); ../../lib/common/memory.h:23:39: note: in definition of macro 'N_GNEW' 23 | #define N_GNEW(n,t) (t*)gcalloc((n),sizeof(t)) | ^ multispline.c:479:44: warning: conversion to 'long unsigned int' from 'int' may change the sign of the result [-Wsign-conversion] 479 | memcpy(tris, sf->faces, 3 * sf->nfaces * sizeof(int)); | ^ multispline.c: In function 'addTriEdge': multispline.c:538:57: warning: unused parameter 'd' [-Wunused-parameter] 538 | static void addTriEdge(tgraph * g, int t, int h, double d, ipair seg) | ~~~~~~~^ multispline.c: In function 'mkTriGraph': multispline.c:583:34: warning: conversion to 'size_t' {aka 'long unsigned int'} from 'int' may change the sign of the result [-Wsign-conversion] 583 | g->nodes = N_GNEW(sf->nfaces + 2, tnode); ../../lib/common/memory.h:23:39: note: in definition of macro 'N_GNEW' 23 | #define N_GNEW(n,t) (t*)gcalloc((n),sizeof(t)) | ^ multispline.c:588:36: warning: conversion to 'size_t' {aka 'long unsigned int'} from 'int' may change the sign of the result [-Wsign-conversion] 588 | edgei = N_GNEW(sf->nfaces + ne + 2 * maxv, int); ../../lib/common/memory.h:23:39: note: in definition of macro 'N_GNEW' 23 | #define N_GNEW(n,t) (t*)gcalloc((n),sizeof(t)) | ^ multispline.c:589:28: warning: conversion to 'size_t' {aka 'long unsigned int'} from 'int' may change the sign of the result [-Wsign-conversion] 589 | g->edges = N_GNEW(ne/2 + 2 * maxv, tedge); ../../lib/common/memory.h:23:39: note: in definition of macro 'N_GNEW' 23 | #define N_GNEW(n,t) (t*)gcalloc((n),sizeof(t)) | ^ multispline.c: In function 'mkRouter': multispline.c:649:29: warning: conversion to 'size_t' {aka 'long unsigned int'} from 'int' may change the sign of the result [-Wsign-conversion] 649 | int *obsi = N_NEW(npoly + 1, int); ../../lib/common/memory.h:20:39: note: in definition of macro 'N_NEW' 20 | #define N_NEW(n,t) (t*)gcalloc((n),sizeof(t)) | ^ ../../lib/common/memory.h:23:38: warning: conversion to 'size_t' {aka 'long unsigned int'} from 'int' may change the sign of the result [-Wsign-conversion] 23 | #define N_GNEW(n,t) (t*)gcalloc((n),sizeof(t)) | ^~~ multispline.c:654:11: note: in expansion of macro 'N_GNEW' 654 | pts = N_GNEW(npts, pointf); /* all points are stored in pts */ | ^~~~~~ multispline.c:655:21: warning: conversion to 'size_t' {aka 'long unsigned int'} from 'int' may change the sign of the result [-Wsign-conversion] 655 | segs = N_GNEW(2 * npts, int); /* indices of points forming segments */ ../../lib/common/memory.h:23:39: note: in definition of macro 'N_GNEW' 23 | #define N_GNEW(n,t) (t*)gcalloc((n),sizeof(t)) | ^ ../../lib/common/memory.h:23:38: warning: conversion to 'size_t' {aka 'long unsigned int'} from 'int' may change the sign of the result [-Wsign-conversion] 23 | #define N_GNEW(n,t) (t*)gcalloc((n),sizeof(t)) | ^~~ multispline.c:690:9: note: in expansion of macro 'N_GNEW' 690 | x = N_GNEW(npts, double); | ^~~~~~ ../../lib/common/memory.h:23:38: warning: conversion to 'size_t' {aka 'long unsigned int'} from 'int' may change the sign of the result [-Wsign-conversion] 23 | #define N_GNEW(n,t) (t*)gcalloc((n),sizeof(t)) | ^~~ multispline.c:691:9: note: in expansion of macro 'N_GNEW' 691 | y = N_GNEW(npts, double); | ^~~~~~ multispline.c: In function 'finishEdge': multispline.c:719:32: warning: conversion to 'size_t' {aka 'long unsigned int'} from 'int' may change the sign of the result [-Wsign-conversion] 719 | pointf *spline = N_GNEW(spl.pn, pointf); ../../lib/common/memory.h:23:39: note: in definition of macro 'N_GNEW' 23 | #define N_GNEW(n,t) (t*)gcalloc((n),sizeof(t)) | ^ multispline.c: In function 'tweakEnd': multispline.c:739:26: warning: comparing floating-point with '==' or '!=' is unsafe [-Wfloat-equal] 739 | #define EQPT(p,q) (((p).x==(q).x)&&((p).y==(q).y)) | ^~ multispline.c:766:9: note: in expansion of macro 'EQPT' 766 | if (EQPT(q, nxt) || EQPT(q, prv) ){ | ^~~~ multispline.c:739:42: warning: comparing floating-point with '==' or '!=' is unsafe [-Wfloat-equal] 739 | #define EQPT(p,q) (((p).x==(q).x)&&((p).y==(q).y)) | ^~ multispline.c:766:9: note: in expansion of macro 'EQPT' 766 | if (EQPT(q, nxt) || EQPT(q, prv) ){ | ^~~~ multispline.c:739:26: warning: comparing floating-point with '==' or '!=' is unsafe [-Wfloat-equal] 739 | #define EQPT(p,q) (((p).x==(q).x)&&((p).y==(q).y)) | ^~ multispline.c:766:25: note: in expansion of macro 'EQPT' 766 | if (EQPT(q, nxt) || EQPT(q, prv) ){ | ^~~~ multispline.c:739:42: warning: comparing floating-point with '==' or '!=' is unsafe [-Wfloat-equal] 739 | #define EQPT(p,q) (((p).x==(q).x)&&((p).y==(q).y)) | ^~ multispline.c:766:25: note: in expansion of macro 'EQPT' 766 | if (EQPT(q, nxt) || EQPT(q, prv) ){ | ^~~~ multispline.c:756:44: warning: unused parameter 'pl' [-Wunused-parameter] 756 | tweakEnd (Ppoly_t poly, int s, Ppolyline_t pl, Ppoint_t q) | ~~~~~~~~~~~~^~ multispline.c: In function 'genroute': multispline.c:800:40: warning: conversion to 'size_t' {aka 'long unsigned int'} from 'int' may change the sign of the result [-Wsign-conversion] 800 | Pedge_t *medges = N_GNEW(trip->poly.pn, Pedge_t); ../../lib/common/memory.h:23:39: note: in definition of macro 'N_GNEW' 23 | #define N_GNEW(n,t) (t*)gcalloc((n),sizeof(t)) | ^ multispline.c:844:24: warning: conversion to 'size_t' {aka 'long unsigned int'} from 'int' may change the sign of the result [-Wsign-conversion] 844 | cpts = N_NEW(pl.pn - 2, pointf *); ../../lib/common/memory.h:20:39: note: in definition of macro 'N_NEW' 20 | #define N_NEW(n,t) (t*)gcalloc((n),sizeof(t)) | ^ ../../lib/common/memory.h:23:38: warning: conversion to 'size_t' {aka 'long unsigned int'} from 'int' may change the sign of the result [-Wsign-conversion] 23 | #define N_GNEW(n,t) (t*)gcalloc((n),sizeof(t)) | ^~~ multispline.c:855:15: note: in expansion of macro 'N_GNEW' 855 | poly.ps = N_GNEW(pn, pointf); | ^~~~~~ multispline.c: In function 'mkPoly': multispline.c:1089:22: warning: conversion to 'size_t' {aka 'long unsigned int'} from 'int' may change the sign of the result [-Wsign-conversion] 1089 | side1 = N_NEW(nt + 4, side_t); ../../lib/common/memory.h:20:39: note: in definition of macro 'N_NEW' 20 | #define N_NEW(n,t) (t*)gcalloc((n),sizeof(t)) | ^ multispline.c:1090:22: warning: conversion to 'size_t' {aka 'long unsigned int'} from 'int' may change the sign of the result [-Wsign-conversion] 1090 | side2 = N_NEW(nt + 4, side_t); ../../lib/common/memory.h:20:39: note: in definition of macro 'N_NEW' 20 | #define N_NEW(n,t) (t*)gcalloc((n),sizeof(t)) | ^ multispline.c:1146:27: warning: conversion to 'size_t' {aka 'long unsigned int'} from 'int' may change the sign of the result [-Wsign-conversion] 1146 | pps = pts = N_GNEW(nt + 4, pointf); ../../lib/common/memory.h:23:39: note: in definition of macro 'N_GNEW' 23 | #define N_GNEW(n,t) (t*)gcalloc((n),sizeof(t)) | ^ multispline.c:1147:21: warning: conversion to 'size_t' {aka 'long unsigned int'} from 'int' may change the sign of the result [-Wsign-conversion] 1147 | trim = N_NEW(nt + 4, tri *); ../../lib/common/memory.h:20:39: note: in definition of macro 'N_NEW' 20 | #define N_NEW(n,t) (t*)gcalloc((n),sizeof(t)) | ^ ../../lib/neatogen/fPQ.h: In function 'PQgen': ../../lib/neatogen/fPQ.h:39:22: warning: conversion to 'size_t' {aka 'long unsigned int'} from 'int' may change the sign of the result [-Wsign-conversion] 39 | pq->pq = N_NEW(sz+1,PQTYPE); ../../lib/common/memory.h:20:39: note: in definition of macro 'N_NEW' 20 | #define N_NEW(n,t) (t*)gcalloc((n),sizeof(t)) | ^ In file included from multispline.c:1211: ../../lib/neatogen/fPQ.h: At top level: ../../lib/neatogen/fPQ.h:164:5: warning: "DEBUG" is not defined, evaluates to 0 [-Wundef] 164 | #if DEBUG > 1 | ^~~~~ multispline.c: In function 'triPath': ../../lib/common/memory.h:20:38: warning: conversion to 'size_t' {aka 'long unsigned int'} from 'int' may change the sign of the result [-Wsign-conversion] 20 | #define N_NEW(n,t) (t*)gcalloc((n),sizeof(t)) | ^~~ multispline.c:1231:16: note: in expansion of macro 'N_NEW' 1231 | int *dad = N_NEW(n, int); | ^~~~~ multispline.c:1255:37: warning: comparing floating-point with '==' or '!=' is unsafe [-Wfloat-equal] 1255 | if (N_VAL(pq, adjn) == UNSEEN) { | ^~ In file included from ../../lib/common/render.h:33, from ../../lib/neatogen/neato.h:31, from ../../lib/neatogen/defs.h:17, from ../../lib/neatogen/digcola.h:17, from constrained_majorization_ipsep.c:34: constrained_majorization_ipsep.c: In function 'stress_majorization_cola': multispline.c:1256:39: warning: conversion from 'double' to 'float' may change value [-Wfloat-conversion] 1256 | N_VAL(pq, adjn) = d; | ^ ../../lib/common/memory.h:23:38: warning: conversion to 'size_t' {aka 'long unsigned int'} from 'int' may change the sign of the result [-Wsign-conversion] 23 | #define N_GNEW(n,t) (t*)gcalloc((n),sizeof(t)) | ^~~ constrained_majorization_ipsep.c:205:23: note: in expansion of macro 'N_GNEW' 205 | float *clap = N_GNEW(clap_length, float); | ^~~~~~ multispline.c:1260:40: warning: conversion from 'double' to 'float' may change value [-Wfloat-conversion] 1260 | PQupdate(pq, adjn, d); | ^ multispline.c: In function 'makeMultiSpline': multispline.c:1297:32: warning: conversion to 'size_t' {aka 'long unsigned int'} from 'int' may change the sign of the result [-Wsign-conversion] 1297 | idxs = N_GNEW(pq.pq.PQsize + 1, PQTYPE); ../../lib/common/memory.h:23:39: note: in definition of macro 'N_GNEW' 23 | #define N_GNEW(n,t) (t*)gcalloc((n),sizeof(t)) | ^ ../../lib/common/memory.h:23:38: warning: conversion to 'size_t' {aka 'long unsigned int'} from 'int' may change the sign of the result [-Wsign-conversion] 23 | #define N_GNEW(n,t) (t*)gcalloc((n),sizeof(t)) | ^~~ constrained_majorization_ipsep.c:234:15: note: in expansion of macro 'N_GNEW' 234 | degrees = N_GNEW(n, double); | ^~~~~~ multispline.c:1298:32: warning: conversion to 'size_t' {aka 'long unsigned int'} from 'int' may change the sign of the result [-Wsign-conversion] 1298 | vals = N_GNEW(pq.pq.PQsize + 1, PQVTYPE); ../../lib/common/memory.h:23:39: note: in definition of macro 'N_GNEW' 23 | #define N_GNEW(n,t) (t*)gcalloc((n),sizeof(t)) | ^ ../../lib/common/memory.h:23:38: warning: conversion to 'size_t' {aka 'long unsigned int'} from 'int' may change the sign of the result [-Wsign-conversion] 23 | #define N_GNEW(n,t) (t*)gcalloc((n),sizeof(t)) | ^~~ constrained_majorization_ipsep.c:250:14: note: in expansion of macro 'N_GNEW' 250 | coords = N_GNEW(dim, float *); | ^~~~~~ constrained_majorization_ipsep.c:251:28: warning: conversion to 'size_t' {aka 'long unsigned int'} from 'int' may change the sign of the result [-Wsign-conversion] 251 | f_storage = N_GNEW(dim * n, float); ../../lib/common/memory.h:23:39: note: in definition of macro 'N_GNEW' 23 | #define N_GNEW(n,t) (t*)gcalloc((n),sizeof(t)) | ^ ../../lib/common/memory.h:23:38: warning: conversion to 'size_t' {aka 'long unsigned int'} from 'int' may change the sign of the result [-Wsign-conversion] 23 | #define N_GNEW(n,t) (t*)gcalloc((n),sizeof(t)) | ^~~ constrained_majorization_ipsep.c:268:9: note: in expansion of macro 'N_GNEW' 268 | b = N_GNEW(dim, float *); | ^~~~~~ constrained_majorization_ipsep.c:269:23: warning: conversion to 'size_t' {aka 'long unsigned int'} from 'int' may change the sign of the result [-Wsign-conversion] 269 | b[0] = N_GNEW(dim * n, float); ../../lib/common/memory.h:23:39: note: in definition of macro 'N_GNEW' 23 | #define N_GNEW(n,t) (t*)gcalloc((n),sizeof(t)) | ^ ../../lib/common/memory.h:23:38: warning: conversion to 'size_t' {aka 'long unsigned int'} from 'int' may change the sign of the result [-Wsign-conversion] 23 | #define N_GNEW(n,t) (t*)gcalloc((n),sizeof(t)) | ^~~ constrained_majorization_ipsep.c:274:18: note: in expansion of macro 'N_GNEW' 274 | tmp_coords = N_GNEW(n, float); | ^~~~~~ ../../lib/common/memory.h:23:38: warning: conversion to 'size_t' {aka 'long unsigned int'} from 'int' may change the sign of the result [-Wsign-conversion] 23 | #define N_GNEW(n,t) (t*)gcalloc((n),sizeof(t)) | ^~~ constrained_majorization_ipsep.c:275:24: note: in expansion of macro 'N_GNEW' 275 | dist_accumulator = N_GNEW(n, float); | ^~~~~~ ../../lib/common/memory.h:23:38: warning: conversion to 'size_t' {aka 'long unsigned int'} from 'int' may change the sign of the result [-Wsign-conversion] 23 | #define N_GNEW(n,t) (t*)gcalloc((n),sizeof(t)) | ^~~ constrained_majorization_ipsep.c:288:12: note: in expansion of macro 'N_GNEW' 288 | lap1 = N_GNEW(lap_length, float); | ^~~~~~ constrained_majorization_ipsep.c:410:55: warning: conversion from 'double' to 'float' may change value [-Wfloat-conversion] 410 | generateNonoverlapConstraints(cMajEnvHor, nsizeScale, coords, | ^~~~~~~~~~ constrained_majorization_ipsep.c:435:55: warning: conversion from 'double' to 'float' may change value [-Wfloat-conversion] 435 | generateNonoverlapConstraints(cMajEnvVrt, nsizeScale, coords, | ^~~~~~~~~~ constrained_majorization_ipsep.c:57:34: warning: unused parameter 'nedges_graph' [-Wunused-parameter] 57 | int nedges_graph, /* Number of edges */ | ~~~~^~~~~~~~~~~~ In file included from delaunay.c:20: delaunay.c: In function 'tri': ../../lib/common/memory.h:23:38: warning: conversion to 'size_t' {aka 'long unsigned int'} from 'int' may change the sign of the result [-Wsign-conversion] 23 | #define N_GNEW(n,t) (t*)gcalloc((n),sizeof(t)) | ^~~ delaunay.c:148:26: note: in expansion of macro 'N_GNEW' 148 | GVertex **vertices = N_GNEW(npt, GVertex *); | ^~~~~~ ../../lib/common/memory.h:23:38: warning: conversion to 'size_t' {aka 'long unsigned int'} from 'int' may change the sign of the result [-Wsign-conversion] 23 | #define N_GNEW(n,t) (t*)gcalloc((n),sizeof(t)) | ^~~ delaunay.c:149:23: note: in expansion of macro 'N_GNEW' 149 | GtsEdge **edges = N_GNEW(nsegs, GtsEdge*); | ^~~~~~ delaunay.c: In function 'delaunay_triangulation': ../../lib/common/memory.h:23:38: warning: conversion to 'size_t' {aka 'long unsigned int'} from 'int' may change the sign of the result [-Wsign-conversion] 23 | #define N_GNEW(n,t) (t*)gcalloc((n),sizeof(t)) | ^~~ delaunay.c:274:16: note: in expansion of macro 'N_GNEW' 274 | delaunay = N_GNEW(n, v_data); | ^~~~~~ delaunay.c:285:31: warning: conversion to 'size_t' {aka 'long unsigned int'} from 'int' may change the sign of the result [-Wsign-conversion] 285 | edges = N_GNEW(2 * nedges + n, int); ../../lib/common/memory.h:23:39: note: in definition of macro 'N_GNEW' 23 | #define N_GNEW(n,t) (t*)gcalloc((n),sizeof(t)) | ^ delaunay.c: In function 'delaunay_tri': delaunay.c:363:26: warning: conversion to 'size_t' {aka 'long unsigned int'} from 'int' may change the sign of the result [-Wsign-conversion] 363 | edges = N_GNEW(2 * nedges, int); ../../lib/common/memory.h:23:39: note: in definition of macro 'N_GNEW' 23 | #define N_GNEW(n,t) (t*)gcalloc((n),sizeof(t)) | ^ ../../lib/common/memory.h:23:38: warning: conversion to 'size_t' {aka 'long unsigned int'} from 'int' may change the sign of the result [-Wsign-conversion] 23 | #define N_GNEW(n,t) (t*)gcalloc((n),sizeof(t)) | ^~~ delaunay.c:369:19: note: in expansion of macro 'N_GNEW' 369 | int* vs = N_GNEW(n, int); | ^~~~~~ delaunay.c:374:31: warning: conversion to 'size_t' {aka 'long unsigned int'} from 'int' may change the sign of the result [-Wsign-conversion] 374 | ip = edges = N_GNEW(2 * nedges, int); ../../lib/common/memory.h:23:39: note: in definition of macro 'N_GNEW' 23 | #define N_GNEW(n,t) (t*)gcalloc((n),sizeof(t)) | ^ delaunay.c:379:18: warning: comparing floating-point with '==' or '!=' is unsafe [-Wfloat-equal] 379 | if (x[0] == x[1]) /* vertical line */ | ^~ delaunay.c:383:20: warning: conversion to 'size_t' {aka 'long unsigned int'} from 'int' may change the sign of the result [-Wsign-conversion] 383 | qsort (vs, n, sizeof(int), (qsort_cmpf)vcmp); | ^ delaunay.c: In function 'mkSurface': delaunay.c:498:21: warning: conversion to 'size_t' {aka 'long unsigned int'} from 'int' may change the sign of the result [-Wsign-conversion] 498 | segs = N_GNEW(2 * nsegs, int); ../../lib/common/memory.h:23:39: note: in definition of macro 'N_GNEW' 23 | #define N_GNEW(n,t) (t*)gcalloc((n),sizeof(t)) | ^ delaunay.c:506:22: warning: conversion to 'size_t' {aka 'long unsigned int'} from 'int' may change the sign of the result [-Wsign-conversion] 506 | faces = N_GNEW(3 * nfaces, int); ../../lib/common/memory.h:23:39: note: in definition of macro 'N_GNEW' 23 | #define N_GNEW(n,t) (t*)gcalloc((n),sizeof(t)) | ^ delaunay.c:507:22: warning: conversion to 'size_t' {aka 'long unsigned int'} from 'int' may change the sign of the result [-Wsign-conversion] 507 | neigh = N_GNEW(3 * nfaces, int); ../../lib/common/memory.h:23:39: note: in definition of macro 'N_GNEW' 23 | #define N_GNEW(n,t) (t*)gcalloc((n),sizeof(t)) | ^ delaunay.c: In function 'get_triangles': delaunay.c:544:28: warning: conversion to 'size_t' {aka 'long unsigned int'} from 'int' may change the sign of the result [-Wsign-conversion] 544 | statf.faces = N_GNEW(3 * nfaces, int); ../../lib/common/memory.h:23:39: note: in definition of macro 'N_GNEW' 23 | #define N_GNEW(n,t) (t*)gcalloc((n),sizeof(t)) | ^ delaunay.c: In function 'UG_graph': ../../lib/common/memory.h:23:38: warning: conversion to 'size_t' {aka 'long unsigned int'} from 'int' may change the sign of the result [-Wsign-conversion] 23 | #define N_GNEW(n,t) (t*)gcalloc((n),sizeof(t)) | ^~~ delaunay.c:809:20: note: in expansion of macro 'N_GNEW' 809 | delaunay = N_GNEW(n, v_data); | ^~~~~~ ../../lib/common/memory.h:23:38: warning: conversion to 'size_t' {aka 'long unsigned int'} from 'int' may change the sign of the result [-Wsign-conversion] 23 | #define N_GNEW(n,t) (t*)gcalloc((n),sizeof(t)) | ^~~ delaunay.c:823:20: note: in expansion of macro 'N_GNEW' 823 | delaunay = N_GNEW(n, v_data); | ^~~~~~ quad_prog_vpsc.c: In function 'constrained_majorization_vpsc': quad_prog_vpsc.c:74:24: warning: conversion from 'double' to 'float' may change value [-Wfloat-conversion] 74 | place[i] = getVariablePos(e->vs[i]); | ^~~~~~~~~~~~~~ randomkit.c: In function 'rk_seed': quad_prog_vpsc.c:114:25: warning: comparing floating-point with '==' or '!=' is unsafe [-Wfloat-equal] 114 | if (denominator != 0) | ^~ quad_prog_vpsc.c:128:28: warning: conversion from 'double' to 'float' may change value [-Wfloat-conversion] 128 | place[i] = getVariablePos(e->vs[i]); | ^~~~~~~~~~~~~~ randomkit.c:91:54: warning: conversion to 'long unsigned int' from 'int' may change the sign of the result [-Wsign-conversion] 91 | seed = (1812433253UL * (seed ^ (seed >> 30)) + pos + 1) & 0xffffffffUL; | ^ quad_prog_vpsc.c:147:25: warning: comparing floating-point with '==' or '!=' is unsafe [-Wfloat-equal] 147 | if (denominator != 0.0) | ^~ quad_prog_vpsc.c:159:21: warning: conversion from 'double' to 'float' may change value [-Wfloat-conversion] 159 | test += fabs(place[i] - old_place[i]); | ^~~~ In file included from ../../lib/common/render.h:33, from ../../lib/neatogen/neato.h:31, from ../../lib/neatogen/defs.h:17, from ../../lib/neatogen/digcola.h:17, from quad_prog_vpsc.c:25: quad_prog_vpsc.c: In function 'initCMajVPSC': ../../lib/common/memory.h:23:38: warning: conversion to 'size_t' {aka 'long unsigned int'} from 'int' may change the sign of the result [-Wsign-conversion] 23 | #define N_GNEW(n,t) (t*)gcalloc((n),sizeof(t)) | ^~~ quad_prog_vpsc.c:209:13: note: in expansion of macro 'N_GNEW' 209 | e->vs = N_GNEW(n, Variable *); | ^~~~~~ sgd.c: In function 'fisheryates_shuffle': sgd.c:31:29: warning: conversion to 'long unsigned int' from 'int' may change the sign of the result [-Wsign-conversion] 31 | int j = rk_interval(i, &rstate); | ^ sgd.c:31:17: warning: conversion from 'long unsigned int' to 'int' may change value [-Wconversion] 31 | int j = rk_interval(i, &rstate); | ^~~~~~~~~~~ quad_prog_vpsc.c:251:26: warning: conversion to 'size_t' {aka 'long unsigned int'} from 'int' may change the sign of the result [-Wsign-conversion] 251 | e->vs = N_GNEW(n + e->ndv, Variable *); ../../lib/common/memory.h:23:39: note: in definition of macro 'N_GNEW' 23 | #define N_GNEW(n,t) (t*)gcalloc((n),sizeof(t)) | ^ In file included from ../../lib/sparse/general.h:17, from ../../lib/sparse/SparseMatrix.h:13, from ../../lib/neatogen/adjust.h:18, from ../../lib/neatogen/neatoprocs.h:18, from ../../lib/neatogen/neato.h:33, from sgd.c:4: sgd.c: In function 'extract_adjacency': sgd.c:45:26: warning: comparison of integer expressions of different signedness: 'int' and 'size_t' {aka 'long unsigned int'} [-Wsign-compare] 45 | assert(ND_id(np) == n_nodes); | ^~ ../../lib/common/memory.h:23:38: warning: conversion to 'size_t' {aka 'long unsigned int'} from 'int' may change the sign of the result [-Wsign-conversion] 23 | #define N_GNEW(n,t) (t*)gcalloc((n),sizeof(t)) | ^~~ quad_prog_vpsc.c:325:18: note: in expansion of macro 'N_GNEW' 325 | e->fArray1 = N_GNEW(n, float); | ^~~~~~ ../../lib/common/memory.h:23:38: warning: conversion to 'size_t' {aka 'long unsigned int'} from 'int' may change the sign of the result [-Wsign-conversion] 23 | #define N_GNEW(n,t) (t*)gcalloc((n),sizeof(t)) | ^~~ quad_prog_vpsc.c:326:18: note: in expansion of macro 'N_GNEW' 326 | e->fArray2 = N_GNEW(n, float); | ^~~~~~ ../../lib/common/memory.h:23:38: warning: conversion to 'size_t' {aka 'long unsigned int'} from 'int' may change the sign of the result [-Wsign-conversion] 23 | #define N_GNEW(n,t) (t*)gcalloc((n),sizeof(t)) | ^~~ quad_prog_vpsc.c:327:18: note: in expansion of macro 'N_GNEW' 327 | e->fArray3 = N_GNEW(n, float); | ^~~~~~ In file included from ../../lib/common/render.h:29, from ../../lib/neatogen/neato.h:31: ../../lib/common/types.h:591:20: warning: conversion from 'double' to 'float' may change value [-Wfloat-conversion] 591 | #define ED_dist(e) (((Agedgeinfo_t*)AGDATA(e))->dist) | ^ sgd.c:74:39: note: in expansion of macro 'ED_dist' 74 | graph->weights[n_edges] = ED_dist(ep); | ^~~~~~~ quad_prog_vpsc.c: In function 'generateNonoverlapConstraints': ../../lib/common/memory.h:23:38: warning: conversion to 'size_t' {aka 'long unsigned int'} from 'int' may change the sign of the result [-Wsign-conversion] 23 | #define N_GNEW(n,t) (t*)gcalloc((n),sizeof(t)) | ^~~ quad_prog_vpsc.c:384:16: note: in expansion of macro 'N_GNEW' 384 | boxf* bb = N_GNEW (n, boxf); | ^~~~~~ quad_prog_vpsc.c:411:62: warning: conversion to 'size_t' {aka 'long unsigned int'} from 'int' may change the sign of the result [-Wsign-conversion] 411 | Constraint ***cscl = N_GNEW(opt->clusters->nclusters + 1, Constraint**); ../../lib/common/memory.h:23:39: note: in definition of macro 'N_GNEW' 23 | #define N_GNEW(n,t) (t*)gcalloc((n),sizeof(t)) | ^ sgd.c:116:37: warning: conversion from 'int' to 'float' may change value [-Wconversion] 116 | graph->weights[x] = deg_i + deg_j - (2*intersect); | ^~~~~ quad_prog_vpsc.c:412:51: warning: conversion to 'size_t' {aka 'long unsigned int'} from 'int' may change the sign of the result [-Wsign-conversion] 412 | int* cm = N_GNEW(opt->clusters->nclusters + 1, int); ../../lib/common/memory.h:23:39: note: in definition of macro 'N_GNEW' 23 | #define N_GNEW(n,t) (t*)gcalloc((n),sizeof(t)) | ^ quad_prog_vpsc.c:415:40: warning: conversion to 'size_t' {aka 'long unsigned int'} from 'int' may change the sign of the result [-Wsign-conversion] 415 | Variable** cvs = N_GNEW(cn + 2, Variable*); ../../lib/common/memory.h:23:39: note: in definition of macro 'N_GNEW' 23 | #define N_GNEW(n,t) (t*)gcalloc((n),sizeof(t)) | ^ quad_prog_vpsc.c:416:35: warning: conversion to 'size_t' {aka 'long unsigned int'} from 'int' may change the sign of the result [-Wsign-conversion] 416 | boxf* cbb = N_GNEW(cn + 2, boxf); ../../lib/common/memory.h:23:39: note: in definition of macro 'N_GNEW' 23 | #define N_GNEW(n,t) (t*)gcalloc((n),sizeof(t)) | ^ In file included from ../../lib/common/render.h:33: sgd.c: In function 'sgd': ../../lib/common/memory.h:20:38: warning: conversion to 'size_t' {aka 'long unsigned int'} from 'int' may change the sign of the result [-Wsign-conversion] 20 | #define N_NEW(n,t) (t*)gcalloc((n),sizeof(t)) | ^~~ sgd.c:171:23: note: in expansion of macro 'N_NEW' 171 | term_sgd *terms = N_NEW(n_terms, term_sgd); | ^~~~~ sgd.c:198:21: warning: conversion from 'double' to 'float' may change value [-Wfloat-conversion] 198 | float eta_min = Epsilon / w_max; | ^~~~~~~ ../../lib/common/memory.h:23:38: warning: conversion to 'size_t' {aka 'long unsigned int'} from 'int' may change the sign of the result [-Wsign-conversion] 23 | #define N_GNEW(n,t) (t*)gcalloc((n),sizeof(t)) | ^~~ quad_prog_vpsc.c:450:30: note: in expansion of macro 'N_GNEW' 450 | Variable** cvs = N_GNEW(cn,Variable*); | ^~~~~~ sgd.c:199:20: warning: conversion from 'double' to 'float' may change value [-Wfloat-conversion] 199 | float lambda = log(eta_max/eta_min) / (MaxIter-1); | ^~~ sgd.c:204:25: warning: conversion to 'size_t' {aka 'long unsigned int'} from 'int' may change the sign of the result [-Wsign-conversion] 204 | float *pos = N_NEW(2*n, float); ../../lib/common/memory.h:20:39: note: in definition of macro 'N_NEW' 20 | #define N_NEW(n,t) (t*)gcalloc((n),sizeof(t)) | ^ ../../lib/common/memory.h:23:38: warning: conversion to 'size_t' {aka 'long unsigned int'} from 'int' may change the sign of the result [-Wsign-conversion] 23 | #define N_GNEW(n,t) (t*)gcalloc((n),sizeof(t)) | ^~~ quad_prog_vpsc.c:451:25: note: in expansion of macro 'N_GNEW' 451 | boxf* cbb = N_GNEW(cn, boxf); | ^~~~~~ ../../lib/common/memory.h:20:38: warning: conversion to 'size_t' {aka 'long unsigned int'} from 'int' may change the sign of the result [-Wsign-conversion] 20 | #define N_NEW(n,t) (t*)gcalloc((n),sizeof(t)) | ^~~ sgd.c:205:21: note: in expansion of macro 'N_NEW' 205 | bool *unfixed = N_NEW(n, bool); | ^~~~~ ../../lib/common/types.h:512:19: warning: conversion from 'double' to 'float' may change value [-Wfloat-conversion] 512 | #define ND_pos(n) (((Agnodeinfo_t*)AGDATA(n))->pos) | ^ sgd.c:208:20: note: in expansion of macro 'ND_pos' 208 | pos[2*i] = ND_pos(node)[0]; | ^~~~~~ ../../lib/common/types.h:512:19: warning: conversion from 'double' to 'float' may change value [-Wfloat-conversion] 512 | #define ND_pos(n) (((Agnodeinfo_t*)AGDATA(n))->pos) | ^ sgd.c:209:22: note: in expansion of macro 'ND_pos' 209 | pos[2*i+1] = ND_pos(node)[1]; | ^~~~~~ sgd.c:222:43: warning: conversion from 'int' to 'float' may change value [-Wconversion] 222 | float eta = eta_max * exp(-lambda * t); | ^ sgd.c:222:21: warning: conversion from 'double' to 'float' may change value [-Wfloat-conversion] 222 | float eta = eta_max * exp(-lambda * t); | ^~~~~~~ quad_prog_vpsc.c: In function 'removeoverlaps': quad_prog_vpsc.c:593:24: warning: conversion from 'double' to 'float' may change value [-Wfloat-conversion] 593 | coords[0][i] = getVariablePos(e->vs[i]); | ^~~~~~~~~~~~~~ quad_prog_vpsc.c:598:24: warning: conversion from 'double' to 'float' may change value [-Wfloat-conversion] 598 | coords[1][i] = getVariablePos(e->vs[i]); | ^~~~~~~~~~~~~~ quad_prog_vpsc.c: In function 'assign_digcola_levels': quad_prog_vpsc.c:610:44: warning: conversion to 'size_t' {aka 'long unsigned int'} from 'int' may change the sign of the result [-Wsign-conversion] 610 | DigColaLevel *l = N_GNEW(num_divisions + 1, DigColaLevel); ../../lib/common/memory.h:23:39: note: in definition of macro 'N_GNEW' 23 | #define N_GNEW(n,t) (t*)gcalloc((n),sizeof(t)) | ^ quad_prog_vpsc.c:613:29: warning: conversion to 'size_t' {aka 'long unsigned int'} from 'int' may change the sign of the result [-Wsign-conversion] 613 | l[0].nodes = N_GNEW(l[0].num_nodes, int); ../../lib/common/memory.h:23:39: note: in definition of macro 'N_GNEW' 23 | #define N_GNEW(n,t) (t*)gcalloc((n),sizeof(t)) | ^ quad_prog_vpsc.c:620:33: warning: conversion to 'size_t' {aka 'long unsigned int'} from 'int' may change the sign of the result [-Wsign-conversion] 620 | l[i].nodes = N_GNEW(l[i].num_nodes, int); ../../lib/common/memory.h:23:39: note: in definition of macro 'N_GNEW' 23 | #define N_GNEW(n,t) (t*)gcalloc((n),sizeof(t)) | ^ quad_prog_vpsc.c:628:57: warning: conversion to 'size_t' {aka 'long unsigned int'} from 'int' may change the sign of the result [-Wsign-conversion] 628 | l[num_divisions].nodes = N_GNEW(l[num_divisions].num_nodes, int); ../../lib/common/memory.h:23:39: note: in definition of macro 'N_GNEW' 23 | #define N_GNEW(n,t) (t*)gcalloc((n),sizeof(t)) | ^ CCLD libneatogen_C.la make[3]: Leaving directory '/build/graphviz/src/graphviz-4.0.0/lib/neatogen' Making all in twopigen make[3]: Entering directory '/build/graphviz/src/graphviz-4.0.0/lib/twopigen' CC twopiinit.lo CC circle.lo In file included from ../../lib/common/render.h:33, from ../../lib/twopigen/circle.h:13, from twopiinit.c:17: twopiinit.c: In function 'twopi_init_node_edge': ../../lib/common/memory.h:20:38: warning: conversion to 'size_t' {aka 'long unsigned int'} from 'int' may change the sign of the result [-Wsign-conversion] 20 | #define N_NEW(n,t) (t*)gcalloc((n),sizeof(t)) | ^~~ twopiinit.c:38:11: note: in expansion of macro 'N_NEW' 38 | alg = N_NEW(n_nodes, rdata); | ^~~~~ twopiinit.c:39:39: warning: conversion to 'size_t' {aka 'long unsigned int'} from 'int' may change the sign of the result [-Wsign-conversion] 39 | GD_neato_nlist(g) = N_NEW(n_nodes + 1, node_t *); ../../lib/common/memory.h:20:39: note: in definition of macro 'N_NEW' 20 | #define N_NEW(n,t) (t*)gcalloc((n),sizeof(t)) | ^ circle.c: In function 'initLayout': circle.c:74:22: warning: conversion to 'uint64_t' {aka 'long unsigned int'} from 'int' may change the sign of the result [-Wsign-conversion] 74 | SCENTER(n) = INF; | ^~~ circle.c:79:24: warning: conversion to 'uint64_t' {aka 'long unsigned int'} from 'int' may change the sign of the result [-Wsign-conversion] 79 | SLEAF(n) = INF; | ^~~ circle.c: In function 'setChildSubtreeSpans': circle.c:218:28: warning: conversion from 'uint64_t' {aka 'long unsigned int'} to 'double' may change value [-Wconversion] 218 | double ratio = SPAN(n) / STSIZE(n); | ^ circle.c:225:24: warning: comparing floating-point with '==' or '!=' is unsafe [-Wfloat-equal] 225 | if (SPAN(next) != 0.0) | ^~ circle.c:227:28: warning: conversion from 'uint64_t' {aka 'long unsigned int'} to 'double' may change value [-Wconversion] 227 | SPAN(next) = ratio * STSIZE(next); | ^ circle.c: In function 'setChildPositions': circle.c:257:25: warning: comparing floating-point with '==' or '!=' is unsafe [-Wfloat-equal] 257 | if (THETA(next) != UNSET) | ^~ CCLD libtwopigen_C.la make[3]: Leaving directory '/build/graphviz/src/graphviz-4.0.0/lib/twopigen' Making all in sfdpgen make[3]: Entering directory '/build/graphviz/src/graphviz-4.0.0/lib/sfdpgen' CC sfdpinit.lo CC spring_electrical.lo CC sparse_solve.lo CC post_process.lo CC stress_model.lo CC uniform_stress.lo CC Multilevel.lo CC PriorityQueue.lo In file included from PriorityQueue.c:13: PriorityQueue.c: In function 'PriorityQueue_new': PriorityQueue.c:27:29: warning: conversion to 'size_t' {aka 'long unsigned int'} from 'int' may change the sign of the result [-Wsign-conversion] 27 | q->buckets = N_GNEW((ngain+1),DoubleLinkedList); ../../lib/common/memory.h:23:39: note: in definition of macro 'N_GNEW' 23 | #define N_GNEW(n,t) (t*)gcalloc((n),sizeof(t)) | ^ PriorityQueue.c:30:23: warning: conversion to 'size_t' {aka 'long unsigned int'} from 'int' may change the sign of the result [-Wsign-conversion] 30 | q->where = N_GNEW((n+1),DoubleLinkedList); ../../lib/common/memory.h:23:39: note: in definition of macro 'N_GNEW' 23 | #define N_GNEW(n,t) (t*)gcalloc((n),sizeof(t)) | ^ PriorityQueue.c:33:22: warning: conversion to 'size_t' {aka 'long unsigned int'} from 'int' may change the sign of the result [-Wsign-conversion] 33 | q->gain = N_GNEW((n+1),int); ../../lib/common/memory.h:23:39: note: in definition of macro 'N_GNEW' 23 | #define N_GNEW(n,t) (t*)gcalloc((n),sizeof(t)) | ^ In file included from ../../lib/sparse/general.h:28, from ../../lib/sparse/SparseMatrix.h:13, from ../../lib/sfdpgen/Multilevel.h:13, from Multilevel.c:11: Multilevel.c: In function 'maximal_independent_vertex_set': ../../lib/common/memory.h:23:38: warning: conversion to 'size_t' {aka 'long unsigned int'} from 'int' may change the sign of the result [-Wsign-conversion] 23 | #define N_GNEW(n,t) (t*)gcalloc((n),sizeof(t)) | ^~~ Multilevel.c:94:11: note: in expansion of macro 'N_GNEW' 94 | *vset = N_GNEW(m,int); | ^~~~~~ Multilevel.c: In function 'maximal_independent_vertex_set_RS': ../../lib/common/memory.h:23:38: warning: conversion to 'size_t' {aka 'long unsigned int'} from 'int' may change the sign of the result [-Wsign-conversion] 23 | #define N_GNEW(n,t) (t*)gcalloc((n),sizeof(t)) | ^~~ Multilevel.c:149:11: note: in expansion of macro 'N_GNEW' 149 | *vset = N_GNEW(m,int); | ^~~~~~ stress_model.c: In function 'stress_model_core': stress_model.c:28:31: warning: conversion to 'long unsigned int' from 'int' may change the sign of the result [-Wsign-conversion] 28 | *x = MALLOC(sizeof(double)*m*dim); | ^ stress_model.c:28:33: warning: conversion to 'long unsigned int' from 'int' may change the sign of the result [-Wsign-conversion] 28 | *x = MALLOC(sizeof(double)*m*dim); | ^ Multilevel.c: In function 'maximal_independent_edge_set': ../../lib/common/memory.h:23:38: warning: conversion to 'size_t' {aka 'long unsigned int'} from 'int' may change the sign of the result [-Wsign-conversion] 23 | #define N_GNEW(n,t) (t*)gcalloc((n),sizeof(t)) | ^~~ Multilevel.c:212:15: note: in expansion of macro 'N_GNEW' 212 | *matching = N_GNEW(m,int); | ^~~~~~ stress_model.c: In function 'stress_model': stress_model.c:57:41: warning: unused parameter 'A' [-Wunused-parameter] 57 | void stress_model(int dim, SparseMatrix A, SparseMatrix D, double **x, int edge_len_weighted, int maxit_sm, double tol, int *flag){ | ~~~~~~~~~~~~~^ Multilevel.c: In function 'maximal_independent_edge_set_heavest_edge_pernode': ../../lib/common/memory.h:23:38: warning: conversion to 'size_t' {aka 'long unsigned int'} from 'int' may change the sign of the result [-Wsign-conversion] 23 | #define N_GNEW(n,t) (t*)gcalloc((n),sizeof(t)) | ^~~ Multilevel.c:258:15: note: in expansion of macro 'N_GNEW' 258 | *matching = N_GNEW(m,int); | ^~~~~~ Multilevel.c: In function 'maximal_independent_edge_set_heavest_edge_pernode_leaves_first': Multilevel.c:333:9: warning: declaration of 'UNMATCHED' shadows a global declaration [-Wshadow] 333 | enum {UNMATCHED = -2, MATCHED = -1}; | ^~~~~~~~~ ../../lib/sparse/general.h:110:7: note: shadowed declaration is here 110 | enum {UNMATCHED = -1}; | ^~~~~~~~~ ../../lib/common/memory.h:23:38: warning: conversion to 'size_t' {aka 'long unsigned int'} from 'int' may change the sign of the result [-Wsign-conversion] 23 | #define N_GNEW(n,t) (t*)gcalloc((n),sizeof(t)) | ^~~ Multilevel.c:342:14: note: in expansion of macro 'N_GNEW' 342 | *cluster = N_GNEW(m,int); | ^~~~~~ Multilevel.c:343:24: warning: conversion to 'size_t' {aka 'long unsigned int'} from 'int' may change the sign of the result [-Wsign-conversion] 343 | *clusterp = N_GNEW((m+1),int); ../../lib/common/memory.h:23:39: note: in definition of macro 'N_GNEW' 23 | #define N_GNEW(n,t) (t*)gcalloc((n),sizeof(t)) | ^ ../../lib/common/memory.h:23:38: warning: conversion to 'size_t' {aka 'long unsigned int'} from 'int' may change the sign of the result [-Wsign-conversion] 23 | #define N_GNEW(n,t) (t*)gcalloc((n),sizeof(t)) | ^~~ Multilevel.c:344:13: note: in expansion of macro 'N_GNEW' 344 | matched = N_GNEW(m,int); | ^~~~~~ Multilevel.c: In function 'maximal_independent_edge_set_heavest_edge_pernode_supernodes_first': Multilevel.c:509:9: warning: declaration of 'UNMATCHED' shadows a global declaration [-Wshadow] 509 | enum {UNMATCHED = -2, MATCHED = -1}; | ^~~~~~~~~ ../../lib/sparse/general.h:110:7: note: shadowed declaration is here 110 | enum {UNMATCHED = -1}; | ^~~~~~~~~ uniform_stress.c: In function 'UniformStressSmoother_new': ../../lib/common/memory.h:23:38: warning: conversion to 'size_t' {aka 'long unsigned int'} from 'int' may change the sign of the result [-Wsign-conversion] 23 | #define N_GNEW(n,t) (t*)gcalloc((n),sizeof(t)) | ^~~ Multilevel.c:519:14: note: in expansion of macro 'N_GNEW' 519 | *cluster = N_GNEW(m,int); | ^~~~~~ Multilevel.c:520:24: warning: conversion to 'size_t' {aka 'long unsigned int'} from 'int' may change the sign of the result [-Wsign-conversion] 520 | *clusterp = N_GNEW((m+1),int); ../../lib/common/memory.h:23:39: note: in definition of macro 'N_GNEW' 23 | #define N_GNEW(n,t) (t*)gcalloc((n),sizeof(t)) | ^ ../../lib/common/memory.h:23:38: warning: conversion to 'size_t' {aka 'long unsigned int'} from 'int' may change the sign of the result [-Wsign-conversion] 23 | #define N_GNEW(n,t) (t*)gcalloc((n),sizeof(t)) | ^~~ Multilevel.c:521:13: note: in expansion of macro 'N_GNEW' 521 | matched = N_GNEW(m,int); | ^~~~~~ uniform_stress.c:47:18: warning: cast from function call of type 'double' to non-matching type 'int' [-Wbad-function-cast] 47 | sm->maxit_cg = (int)sqrt((double) A->m); | ^ spring_electrical.c: In function 'check_real_array_size': uniform_stress.c:29:53: warning: unused parameter 'dim' [-Wunused-parameter] 29 | UniformStressSmoother UniformStressSmoother_new(int dim, SparseMatrix A, double *x, double alpha, double M, int *flag){ | ~~~~^~~ spring_electrical.c:320:36: warning: conversion to 'long unsigned int' from 'int' may change the sign of the result [-Wsign-conversion] 320 | *a = REALLOC(*a, sizeof(double)*(*lenmax)); | ^ uniform_stress.c:29:82: warning: unused parameter 'x' [-Wunused-parameter] 29 | UniformStressSmoother UniformStressSmoother_new(int dim, SparseMatrix A, double *x, double alpha, double M, int *flag){ | ~~~~~~~~^ uniform_stress.c:29:114: warning: unused parameter 'flag' [-Wunused-parameter] 29 | UniformStressSmoother UniformStressSmoother_new(int dim, SparseMatrix A, double *x, double alpha, double M, int *flag){ | ~~~~~^~~~ Multilevel.c: In function 'maximal_independent_edge_set_heavest_cluster_pernode_leaves_first': spring_electrical.c: In function 'check_int_array_size': spring_electrical.c:327:33: warning: conversion to 'long unsigned int' from 'int' may change the sign of the result [-Wsign-conversion] 327 | *a = REALLOC(*a, sizeof(int)*(*lenmax)); | ^ Multilevel.c:652:9: warning: declaration of 'UNMATCHED' shadows a global declaration [-Wshadow] 652 | enum {UNMATCHED = -2, MATCHED = -1}; | ^~~~~~~~~ ../../lib/sparse/general.h:110:7: note: shadowed declaration is here 110 | enum {UNMATCHED = -1}; | ^~~~~~~~~ uniform_stress.c: In function 'get_distance_matrix': uniform_stress.c:122:15: warning: comparing floating-point with '==' or '!=' is unsafe [-Wfloat-equal] 122 | if (scaling != 1) for (i = 0; i < B->nz; i++) val[i] *= scaling; | ^~ ../../lib/common/memory.h:23:38: warning: conversion to 'size_t' {aka 'long unsigned int'} from 'int' may change the sign of the result [-Wsign-conversion] 23 | #define N_GNEW(n,t) (t*)gcalloc((n),sizeof(t)) | ^~~ Multilevel.c:662:14: note: in expansion of macro 'N_GNEW' 662 | *cluster = N_GNEW(m,int); | ^~~~~~ spring_electrical.c: In function 'sort_real': Multilevel.c:663:24: warning: conversion to 'size_t' {aka 'long unsigned int'} from 'int' may change the sign of the result [-Wsign-conversion] 663 | *clusterp = N_GNEW((m+1),int); ../../lib/common/memory.h:23:39: note: in definition of macro 'N_GNEW' 23 | #define N_GNEW(n,t) (t*)gcalloc((n),sizeof(t)) | ^ spring_electrical.c:365:12: warning: conversion to 'size_t' {aka 'long unsigned int'} from 'int' may change the sign of the result [-Wsign-conversion] 365 | qsort(a, n, sizeof(double), comp_real); | ^ ../../lib/common/memory.h:23:38: warning: conversion to 'size_t' {aka 'long unsigned int'} from 'int' may change the sign of the result [-Wsign-conversion] 23 | #define N_GNEW(n,t) (t*)gcalloc((n),sizeof(t)) | ^~~ Multilevel.c:664:13: note: in expansion of macro 'N_GNEW' 664 | matched = N_GNEW(m,int); | ^~~~~~ Multilevel.c:665:19: warning: conversion to 'size_t' {aka 'long unsigned int'} from 'int' may change the sign of the result [-Wsign-conversion] 665 | vlist = N_GNEW(2*m,double); ../../lib/common/memory.h:23:39: note: in definition of macro 'N_GNEW' 23 | #define N_GNEW(n,t) (t*)gcalloc((n),sizeof(t)) | ^ spring_electrical.c: In function 'beautify_leaves': spring_electrical.c:384:41: warning: conversion to 'size_t' {aka 'long unsigned int'} from 'int' may change the sign of the result [-Wsign-conversion] 384 | bool *checked = gcalloc(sizeof(bool), m); | ^ spring_electrical.c:385:33: warning: conversion to 'long unsigned int' from 'int' may change the sign of the result [-Wsign-conversion] 385 | angles = MALLOC(sizeof(double)*nangles_max); | ^ spring_electrical.c:386:30: warning: conversion to 'long unsigned int' from 'int' may change the sign of the result [-Wsign-conversion] 386 | leaves = MALLOC(sizeof(int)*nleaves_max); | ^ Multilevel.c:719:20: warning: conversion to 'size_t' {aka 'long unsigned int'} from 'int' may change the sign of the result [-Wsign-conversion] 719 | qsort(vlist, nv, sizeof(double)*2, scomp); | ^~ Multilevel.c:647:83: warning: unused parameter 'randomize' [-Wunused-parameter] 647 | int randomize, int **cluster, int **clusterp, int *ncluster){ | ~~~~^~~~~~~~~ Multilevel.c: In function 'maximal_independent_edge_set_heavest_edge_pernode_scaled': ../../lib/common/memory.h:23:38: warning: conversion to 'size_t' {aka 'long unsigned int'} from 'int' may change the sign of the result [-Wsign-conversion] 23 | #define N_GNEW(n,t) (t*)gcalloc((n),sizeof(t)) | ^~~ Multilevel.c:755:15: note: in expansion of macro 'N_GNEW' 755 | *matching = N_GNEW(m,int); | ^~~~~~ spring_electrical.c: In function 'spring_electrical_embedding_fast': spring_electrical.c:524:15: warning: conversion to 'unsigned int' from 'int' may change the sign of the result [-Wsign-conversion] 524 | srand(ctrl->random_seed); | ~~~~^~~~~~~~~~~~~ sfdpinit.c: In function 'sfdp_init_graph': spring_electrical.c:535:31: warning: conversion to 'long unsigned int' from 'int' may change the sign of the result [-Wsign-conversion] 535 | xold = MALLOC(sizeof(double)*dim*n); | ^ spring_electrical.c:535:35: warning: conversion to 'long unsigned int' from 'int' may change the sign of the result [-Wsign-conversion] 535 | xold = MALLOC(sizeof(double)*dim*n); | ^ spring_electrical.c:536:32: warning: conversion to 'long unsigned int' from 'int' may change the sign of the result [-Wsign-conversion] 536 | force = MALLOC(sizeof(double)*dim*n); | ^ sfdpinit.c:53:26: warning: conversion from 'int' to 'short unsigned int' may change value [-Wconversion] 53 | GD_ndim(agroot(g)) = late_int(g, agfindgraphattr(g, "dim"), outdim, 2); | ^~~~~~~~ spring_electrical.c:536:36: warning: conversion to 'long unsigned int' from 'int' may change the sign of the result [-Wsign-conversion] 536 | force = MALLOC(sizeof(double)*dim*n); | ^ Multilevel.c: In function 'DistanceMatrix_restrict_filtering': spring_electrical.c:544:35: warning: conversion to 'long unsigned int' from 'int' may change the sign of the result [-Wsign-conversion] 544 | memcpy(xold, x, sizeof(double)*dim*n); | ^ Multilevel.c:818:60: warning: unused parameter 'mask' [-Wunused-parameter] 818 | static SparseMatrix DistanceMatrix_restrict_filtering(int *mask, int is_C, int is_F, SparseMatrix D){ | ~~~~~^~~~ spring_electrical.c:544:39: warning: conversion to 'long unsigned int' from 'int' may change the sign of the result [-Wsign-conversion] 544 | memcpy(xold, x, sizeof(double)*dim*n); | ^ Multilevel.c:818:70: warning: unused parameter 'is_C' [-Wunused-parameter] 818 | static SparseMatrix DistanceMatrix_restrict_filtering(int *mask, int is_C, int is_F, SparseMatrix D){ | ~~~~^~~~ In file included from ../../lib/common/geom.h:16, from ../../lib/common/types.h:28, from ../../lib/common/render.h:29, from ../../lib/sfdpgen/sfdp.h:15, from sfdpinit.c:14: ../../lib/common/arith.h:31:25: warning: conversion from 'int' to 'short unsigned int' may change value [-Wconversion] 31 | #define MIN(a,b) ((a)<(b)?(a):(b)) | ^ sfdpinit.c:55:26: note: in expansion of macro 'MIN' 55 | GD_odim(agroot(g)) = MIN(outdim, Ndim); | ^~~ Multilevel.c:818:80: warning: unused parameter 'is_F' [-Wunused-parameter] 818 | static SparseMatrix DistanceMatrix_restrict_filtering(int *mask, int is_C, int is_F, SparseMatrix D){ | ~~~~^~~~ In file included from ../../lib/common/render.h:33: sfdpinit.c: In function 'getPos': sfdpinit.c:64:30: warning: conversion to 'size_t' {aka 'long unsigned int'} from 'int' may change the sign of the result [-Wsign-conversion] 64 | double *pos = N_NEW(Ndim * agnnodes(g), double); ../../lib/common/memory.h:20:39: note: in definition of macro 'N_NEW' 20 | #define N_NEW(n,t) (t*)gcalloc((n),sizeof(t)) | ^ sparse_solve.c: In function 'Operator_uniform_stress_diag_precon_new': Multilevel.c: In function 'Multilevel_coarsen_internal': sparse_solve.c:103:34: warning: conversion to 'long unsigned int' from 'int' may change the sign of the result [-Wsign-conversion] 103 | o->data = MALLOC(sizeof(double)*(m + 1)); | ^ spring_electrical.c: In function 'spring_electrical_embedding_slow': spring_electrical.c:693:32: warning: conversion to 'long unsigned int' from 'int' may change the sign of the result [-Wsign-conversion] 693 | force = MALLOC(sizeof(double)*n*dim); | ^ ../../lib/common/memory.h:23:38: warning: conversion to 'size_t' {aka 'long unsigned int'} from 'int' may change the sign of the result [-Wsign-conversion] 23 | #define N_GNEW(n,t) (t*)gcalloc((n),sizeof(t)) | ^~~ Multilevel.c:910:11: note: in expansion of macro 'N_GNEW' 910 | irn = N_GNEW(n,int); | ^~~~~~ spring_electrical.c:693:34: warning: conversion to 'long unsigned int' from 'int' may change the sign of the result [-Wsign-conversion] 693 | force = MALLOC(sizeof(double)*n*dim); | ^ sfdpinit.c: In function 'sfdpLayout': sfdpinit.c:108:5: warning: switch missing default case [-Wswitch-default] 108 | switch (ctrl->method) { | ^~~~~~ ../../lib/common/memory.h:23:38: warning: conversion to 'size_t' {aka 'long unsigned int'} from 'int' may change the sign of the result [-Wsign-conversion] 23 | #define N_GNEW(n,t) (t*)gcalloc((n),sizeof(t)) | ^~~ Multilevel.c:911:11: note: in expansion of macro 'N_GNEW' 911 | jcn = N_GNEW(n,int); | ^~~~~~ spring_electrical.c:698:35: warning: conversion to 'long unsigned int' from 'int' may change the sign of the result [-Wsign-conversion] 698 | center = MALLOC(sizeof(double)*nsupermax*dim); | ^ spring_electrical.c:698:45: warning: conversion to 'long unsigned int' from 'int' may change the sign of the result [-Wsign-conversion] 698 | center = MALLOC(sizeof(double)*nsupermax*dim); | ^ ../../lib/common/memory.h:23:38: warning: conversion to 'size_t' {aka 'long unsigned int'} from 'int' may change the sign of the result [-Wsign-conversion] 23 | #define N_GNEW(n,t) (t*)gcalloc((n),sizeof(t)) | ^~~ Multilevel.c:912:11: note: in expansion of macro 'N_GNEW' 912 | val = N_GNEW(n,double); | ^~~~~~ spring_electrical.c:699:43: warning: conversion to 'long unsigned int' from 'int' may change the sign of the result [-Wsign-conversion] 699 | supernode_wgts = MALLOC(sizeof(double)*nsupermax); | ^ In file included from ../../lib/sparse/general.h:28, from ../../lib/sparse/SparseMatrix.h:13, from ../../lib/sfdpgen/sparse_solve.h:13, from sparse_solve.c:13: sparse_solve.c: In function 'Operator_diag_precon_new': spring_electrical.c:700:38: warning: conversion to 'long unsigned int' from 'int' may change the sign of the result [-Wsign-conversion] 700 | distances = MALLOC(sizeof(double)*nsupermax); | ^ sparse_solve.c:132:26: warning: conversion to 'size_t' {aka 'long unsigned int'} from 'int' may change the sign of the result [-Wsign-conversion] 132 | o->data = N_GNEW((A->m + 1),double); ../../lib/common/memory.h:23:39: note: in definition of macro 'N_GNEW' 23 | #define N_GNEW(n,t) (t*)gcalloc((n),sizeof(t)) | ^ spring_electrical.c:714:15: warning: conversion to 'unsigned int' from 'int' may change the sign of the result [-Wsign-conversion] 714 | srand(ctrl->random_seed); | ~~~~^~~~~~~~~~~~~ sparse_solve.c: In function 'conjugate_gradient': spring_electrical.c:737:28: warning: conversion to 'long unsigned int' from 'int' may change the sign of the result [-Wsign-conversion] 737 | f = MALLOC(sizeof(double)*dim); | ^ ../../lib/common/memory.h:23:38: warning: conversion to 'size_t' {aka 'long unsigned int'} from 'int' may change the sign of the result [-Wsign-conversion] 23 | #define N_GNEW(n,t) (t*)gcalloc((n),sizeof(t)) | ^~~ sparse_solve.c:161:7: note: in expansion of macro 'N_GNEW' 161 | z = N_GNEW(n,double); | ^~~~~~ ../../lib/common/memory.h:23:38: warning: conversion to 'size_t' {aka 'long unsigned int'} from 'int' may change the sign of the result [-Wsign-conversion] 23 | #define N_GNEW(n,t) (t*)gcalloc((n),sizeof(t)) | ^~~ Multilevel.c:963:11: note: in expansion of macro 'N_GNEW' 963 | irn = N_GNEW(n,int); | ^~~~~~ sfdpinit.c: In function 'tuneControl': ../../lib/common/memory.h:23:38: warning: conversion to 'size_t' {aka 'long unsigned int'} from 'int' may change the sign of the result [-Wsign-conversion] 23 | #define N_GNEW(n,t) (t*)gcalloc((n),sizeof(t)) | ^~~ sparse_solve.c:162:7: note: in expansion of macro 'N_GNEW' 162 | r = N_GNEW(n,double); | ^~~~~~ sfdpinit.c:250:25: warning: conversion from 'long int' to 'int' may change value [-Wconversion] 250 | ctrl->random_seed = seed; | ^~~~ spring_electrical.c:738:31: warning: conversion to 'long unsigned int' from 'int' may change the sign of the result [-Wsign-conversion] 738 | xold = MALLOC(sizeof(double)*dim*n); | ^ ../../lib/common/memory.h:23:38: warning: conversion to 'size_t' {aka 'long unsigned int'} from 'int' may change the sign of the result [-Wsign-conversion] 23 | #define N_GNEW(n,t) (t*)gcalloc((n),sizeof(t)) | ^~~ sparse_solve.c:163:7: note: in expansion of macro 'N_GNEW' 163 | p = N_GNEW(n,double); | ^~~~~~ ../../lib/common/memory.h:23:38: warning: conversion to 'size_t' {aka 'long unsigned int'} from 'int' may change the sign of the result [-Wsign-conversion] 23 | #define N_GNEW(n,t) (t*)gcalloc((n),sizeof(t)) | ^~~ sparse_solve.c:164:7: note: in expansion of macro 'N_GNEW' 164 | q = N_GNEW(n,double); | ^~~~~~ ../../lib/common/memory.h:23:38: warning: conversion to 'size_t' {aka 'long unsigned int'} from 'int' may change the sign of the result [-Wsign-conversion] 23 | #define N_GNEW(n,t) (t*)gcalloc((n),sizeof(t)) | ^~~ Multilevel.c:964:11: note: in expansion of macro 'N_GNEW' 964 | jcn = N_GNEW(n,int); | ^~~~~~ spring_electrical.c:738:35: warning: conversion to 'long unsigned int' from 'int' may change the sign of the result [-Wsign-conversion] 738 | xold = MALLOC(sizeof(double)*dim*n); | ^ sparse_solve.c:184:34: warning: conversion to 'long unsigned int' from 'int' may change the sign of the result [-Wsign-conversion] 184 | memcpy(p, z, sizeof(double)*n); | ^ spring_electrical.c:743:35: warning: conversion to 'long unsigned int' from 'int' may change the sign of the result [-Wsign-conversion] 743 | memcpy(xold, x, sizeof(double)*dim*n); | ^ ../../lib/common/memory.h:23:38: warning: conversion to 'size_t' {aka 'long unsigned int'} from 'int' may change the sign of the result [-Wsign-conversion] 23 | #define N_GNEW(n,t) (t*)gcalloc((n),sizeof(t)) | ^~~ Multilevel.c:965:11: note: in expansion of macro 'N_GNEW' 965 | val = N_GNEW(n,double); | ^~~~~~ sparse_solve.c: In function 'cg': spring_electrical.c:743:39: warning: conversion to 'long unsigned int' from 'int' may change the sign of the result [-Wsign-conversion] 743 | memcpy(xold, x, sizeof(double)*dim*n); | ^ ../../lib/common/memory.h:23:38: warning: conversion to 'size_t' {aka 'long unsigned int'} from 'int' may change the sign of the result [-Wsign-conversion] 23 | #define N_GNEW(n,t) (t*)gcalloc((n),sizeof(t)) | ^~~ sparse_solve.c:222:7: note: in expansion of macro 'N_GNEW' 222 | x = N_GNEW(n, double); | ^~~~~~ ../../lib/common/memory.h:23:38: warning: conversion to 'size_t' {aka 'long unsigned int'} from 'int' may change the sign of the result [-Wsign-conversion] 23 | #define N_GNEW(n,t) (t*)gcalloc((n),sizeof(t)) | ^~~ sparse_solve.c:223:7: note: in expansion of macro 'N_GNEW' 223 | b = N_GNEW(n, double); | ^~~~~~ sparse_solve.c: In function 'jacobi': sparse_solve.c:244:28: warning: conversion to 'long unsigned int' from 'int' may change the sign of the result [-Wsign-conversion] 244 | x = MALLOC(sizeof(double)*n); | ^ sparse_solve.c:245:28: warning: conversion to 'long unsigned int' from 'int' may change the sign of the result [-Wsign-conversion] 245 | y = MALLOC(sizeof(double)*n); | ^ sparse_solve.c:246:28: warning: conversion to 'long unsigned int' from 'int' may change the sign of the result [-Wsign-conversion] 246 | b = MALLOC(sizeof(double)*n); | ^ ../../lib/common/memory.h:23:38: warning: conversion to 'size_t' {aka 'long unsigned int'} from 'int' may change the sign of the result [-Wsign-conversion] 23 | #define N_GNEW(n,t) (t*)gcalloc((n),sizeof(t)) | ^~~ Multilevel.c:1025:11: note: in expansion of macro 'N_GNEW' 1025 | irn = N_GNEW(nzc,int); | ^~~~~~ In file included from post_process.c:21: post_process.c: In function 'ideal_distance_matrix': ../../lib/common/memory.h:23:38: warning: conversion to 'size_t' {aka 'long unsigned int'} from 'int' may change the sign of the result [-Wsign-conversion] 23 | #define N_GNEW(n,t) (t*)gcalloc((n),sizeof(t)) | ^~~ Multilevel.c:1026:11: note: in expansion of macro 'N_GNEW' 1026 | jcn = N_GNEW(nzc,int); | ^~~~~~ sparse_solve.c:268:17: warning: comparing floating-point with '==' or '!=' is unsafe [-Wfloat-equal] 268 | if (sum == 0) fprintf(stderr,"neighb=%d\n",ia[i+1]-ia[i]); | ^~ ../../lib/common/memory.h:23:38: warning: conversion to 'size_t' {aka 'long unsigned int'} from 'int' may change the sign of the result [-Wsign-conversion] 23 | #define N_GNEW(n,t) (t*)gcalloc((n),sizeof(t)) | ^~~ Multilevel.c:1027:11: note: in expansion of macro 'N_GNEW' 1027 | val = N_GNEW(nzc,double); | ^~~~~~ In file included from ../../lib/cgraph/alloc.h:16, from ../../lib/cgraph/agxbuf.h:13, from ../../lib/common/render.h:36, from ../../lib/sfdpgen/sfdp.h:15, from ../../lib/sfdpgen/sfdpinternal.h:13, from sparse_solve.c:14: sparse_solve.c:269:21: warning: comparing floating-point with '==' or '!=' is unsafe [-Wfloat-equal] 269 | assert(diag != 0); | ^~ sparse_solve.c:269:21: warning: comparing floating-point with '==' or '!=' is unsafe [-Wfloat-equal] 269 | assert(diag != 0); | ^~ post_process.c:50:20: warning: conversion to 'size_t' {aka 'long unsigned int'} from 'int' may change the sign of the result [-Wsign-conversion] 50 | D->a = N_GNEW(D->nz,double); ../../lib/common/memory.h:23:39: note: in definition of macro 'N_GNEW' 23 | #define N_GNEW(n,t) (t*)gcalloc((n),sizeof(t)) | ^ post_process.c:54:18: warning: conversion to 'size_t' {aka 'long unsigned int'} from 'int' may change the sign of the result [-Wsign-conversion] 54 | mask = N_GNEW(D->m,int); ../../lib/common/memory.h:23:39: note: in definition of macro 'N_GNEW' 23 | #define N_GNEW(n,t) (t*)gcalloc((n),sizeof(t)) | ^ sparse_solve.c:273:34: warning: conversion to 'long unsigned int' from 'int' may change the sign of the result [-Wsign-conversion] 273 | memcpy(x, y, sizeof(double)*n); | ^ sparse_solve.c:240:89: warning: unused parameter 'flag' [-Wunused-parameter] 240 | static double* jacobi(SparseMatrix A, int dim, double *x0, double *rhs, int maxit, int *flag){ | ~~~~~^~~~ spring_electrical.c: In function 'spring_electrical_embedding': spring_electrical.c:929:35: warning: conversion to 'long unsigned int' from 'int' may change the sign of the result [-Wsign-conversion] 929 | center = MALLOC(sizeof(double)*nsupermax*dim); | ^ spring_electrical.c:929:45: warning: conversion to 'long unsigned int' from 'int' may change the sign of the result [-Wsign-conversion] 929 | center = MALLOC(sizeof(double)*nsupermax*dim); | ^ spring_electrical.c:930:43: warning: conversion to 'long unsigned int' from 'int' may change the sign of the result [-Wsign-conversion] 930 | supernode_wgts = MALLOC(sizeof(double)*nsupermax); | ^ spring_electrical.c:931:38: warning: conversion to 'long unsigned int' from 'int' may change the sign of the result [-Wsign-conversion] 931 | distances = MALLOC(sizeof(double)*nsupermax); | ^ spring_electrical.c:944:15: warning: conversion to 'unsigned int' from 'int' may change the sign of the result [-Wsign-conversion] 944 | srand(ctrl->random_seed); | ~~~~^~~~~~~~~~~~~ post_process.c: In function 'StressMajorizationSmoother2_new': post_process.c:123:18: warning: cast from function call of type 'double' to non-matching type 'int' [-Wbad-function-cast] 123 | sm->maxit_cg = (int)sqrt((double) A->m); | ^ ../../lib/common/memory.h:23:38: warning: conversion to 'size_t' {aka 'long unsigned int'} from 'int' may change the sign of the result [-Wsign-conversion] 23 | #define N_GNEW(n,t) (t*)gcalloc((n),sizeof(t)) | ^~~ post_process.c:125:25: note: in expansion of macro 'N_GNEW' 125 | lambda = sm->lambda = N_GNEW(m,double); | ^~~~~~ ../../lib/common/memory.h:23:38: warning: conversion to 'size_t' {aka 'long unsigned int'} from 'int' may change the sign of the result [-Wsign-conversion] 23 | #define N_GNEW(n,t) (t*)gcalloc((n),sizeof(t)) | ^~~ post_process.c:127:10: note: in expansion of macro 'N_GNEW' 127 | mask = N_GNEW(m,int); | ^~~~~~ ../../lib/common/memory.h:23:38: warning: conversion to 'size_t' {aka 'long unsigned int'} from 'int' may change the sign of the result [-Wsign-conversion] 23 | #define N_GNEW(n,t) (t*)gcalloc((n),sizeof(t)) | ^~~ post_process.c:129:14: note: in expansion of macro 'N_GNEW' 129 | avg_dist = N_GNEW(m,double); | ^~~~~~ spring_electrical.c:967:28: warning: conversion to 'long unsigned int' from 'int' may change the sign of the result [-Wsign-conversion] 967 | f = MALLOC(sizeof(double)*dim); | ^ spring_electrical.c:968:31: warning: conversion to 'long unsigned int' from 'int' may change the sign of the result [-Wsign-conversion] 968 | xold = MALLOC(sizeof(double)*dim*n); | ^ spring_electrical.c:968:35: warning: conversion to 'long unsigned int' from 'int' may change the sign of the result [-Wsign-conversion] 968 | xold = MALLOC(sizeof(double)*dim*n); | ^ spring_electrical.c:985:35: warning: conversion to 'long unsigned int' from 'int' may change the sign of the result [-Wsign-conversion] 985 | memcpy(xold, x, sizeof(double)*dim*n); | ^ spring_electrical.c:985:39: warning: conversion to 'long unsigned int' from 'int' may change the sign of the result [-Wsign-conversion] 985 | memcpy(xold, x, sizeof(double)*dim*n); | ^ post_process.c: In function 'SparseStressMajorizationSmoother_new': post_process.c:311:12: warning: comparing floating-point with '==' or '!=' is unsafe [-Wfloat-equal] 311 | if (xdot == 0){ | ^~ post_process.c:326:18: warning: cast from function call of type 'double' to non-matching type 'int' [-Wbad-function-cast] 326 | sm->maxit_cg = (int)sqrt((double) A->m); | ^ spring_electrical.c: In function 'scale_coord': post_process.c:328:46: warning: conversion to 'long unsigned int' from 'int' may change the sign of the result [-Wsign-conversion] 328 | lambda = sm->lambda = MALLOC(sizeof(double)*m); | ^ spring_electrical.c:1131:10: warning: comparing floating-point with '==' or '!=' is unsafe [-Wfloat-equal] 1131 | if (dj == 0.) return; | ^~ post_process.c:357:25: warning: comparing floating-point with '==' or '!=' is unsafe [-Wfloat-equal] 357 | if (dist*dist == 0){ | ^~ post_process.c:364:25: warning: comparing floating-point with '==' or '!=' is unsafe [-Wfloat-equal] 364 | if (dist*dist == 0){ | ^~ post_process.c:405:9: warning: comparing floating-point with '==' or '!=' is unsafe [-Wfloat-equal] 405 | if (s == 0) { | ^~ spring_electrical.c: In function 'spring_maxent_embedding': spring_electrical.c:1213:35: warning: conversion to 'long unsigned int' from 'int' may change the sign of the result [-Wsign-conversion] 1213 | center = MALLOC(sizeof(double)*nsupermax*dim); | ^ spring_electrical.c:1213:45: warning: conversion to 'long unsigned int' from 'int' may change the sign of the result [-Wsign-conversion] 1213 | center = MALLOC(sizeof(double)*nsupermax*dim); | ^ post_process.c: In function 'get_edge_label_matrix': spring_electrical.c:1214:43: warning: conversion to 'long unsigned int' from 'int' may change the sign of the result [-Wsign-conversion] 1214 | supernode_wgts = MALLOC(sizeof(double)*nsupermax); | ^ post_process.c:483:43: warning: conversion to 'long unsigned int' from 'int' may change the sign of the result [-Wsign-conversion] 483 | irn = data->irn = MALLOC(sizeof(int)*nz); | ^ post_process.c:484:43: warning: conversion to 'long unsigned int' from 'int' may change the sign of the result [-Wsign-conversion] 484 | jcn = data->jcn = MALLOC(sizeof(int)*nz); | ^ spring_electrical.c:1215:38: warning: conversion to 'long unsigned int' from 'int' may change the sign of the result [-Wsign-conversion] 1215 | distances = MALLOC(sizeof(double)*nsupermax); | ^ post_process.c:485:46: warning: conversion to 'long unsigned int' from 'int' may change the sign of the result [-Wsign-conversion] 485 | val = data->val = MALLOC(sizeof(double)*nz); | ^ spring_electrical.c:1244:15: warning: conversion to 'unsigned int' from 'int' may change the sign of the result [-Wsign-conversion] 1244 | srand(ctrl->random_seed); | ~~~~^~~~~~~~~~~~~ post_process.c:519:43: warning: conversion to 'long unsigned int' from 'int' may change the sign of the result [-Wsign-conversion] 519 | irn = data->irn = MALLOC(sizeof(int)*nz); | ^ post_process.c:520:43: warning: conversion to 'long unsigned int' from 'int' may change the sign of the result [-Wsign-conversion] 520 | jcn = data->jcn = MALLOC(sizeof(int)*nz); | ^ post_process.c:521:46: warning: conversion to 'long unsigned int' from 'int' may change the sign of the result [-Wsign-conversion] 521 | val = data->val = MALLOC(sizeof(double)*nz); | ^ post_process.c:523:32: warning: conversion to 'long unsigned int' from 'int' may change the sign of the result [-Wsign-conversion] 523 | x00 = MALLOC(sizeof(double)*m*dim); | ^ spring_electrical.c:1272:28: warning: conversion to 'long unsigned int' from 'int' may change the sign of the result [-Wsign-conversion] 1272 | f = MALLOC(sizeof(double)*dim); | ^ post_process.c:523:34: warning: conversion to 'long unsigned int' from 'int' may change the sign of the result [-Wsign-conversion] 523 | x00 = MALLOC(sizeof(double)*m*dim); | ^ spring_electrical.c:1273:31: warning: conversion to 'long unsigned int' from 'int' may change the sign of the result [-Wsign-conversion] 1273 | xold = MALLOC(sizeof(double)*dim*n); | ^ spring_electrical.c:1273:35: warning: conversion to 'long unsigned int' from 'int' may change the sign of the result [-Wsign-conversion] 1273 | xold = MALLOC(sizeof(double)*dim*n); | ^ post_process.c: In function 'get_stress': spring_electrical.c:1276:35: warning: conversion to 'long unsigned int' from 'int' may change the sign of the result [-Wsign-conversion] 1276 | memcpy(xold, x, sizeof(double)*dim*n); | ^ post_process.c:548:108: warning: unused parameter 'data' [-Wunused-parameter] 548 | double get_stress(int m, int dim, int *iw, int *jw, double *w, double *d, double *x, double scaling, void *data, int weighted){ | ~~~~~~^~~~ spring_electrical.c:1276:39: warning: conversion to 'long unsigned int' from 'int' may change the sign of the result [-Wsign-conversion] 1276 | memcpy(xold, x, sizeof(double)*dim*n); | ^ post_process.c: In function 'StressMajorizationSmoother_smooth': post_process.c:605:18: warning: conversion to 'size_t' {aka 'long unsigned int'} from 'int' may change the sign of the result [-Wsign-conversion] 605 | x0 = calloc(dim*m, sizeof(double)); | ~~~^~ post_process.c:608:31: warning: conversion to 'long unsigned int' from 'int' may change the sign of the result [-Wsign-conversion] 608 | memcpy(x0, x, sizeof(double)*dim*m); | ^ post_process.c:608:35: warning: conversion to 'long unsigned int' from 'int' may change the sign of the result [-Wsign-conversion] 608 | memcpy(x0, x, sizeof(double)*dim*m); | ^ post_process.c:609:17: warning: conversion to 'size_t' {aka 'long unsigned int'} from 'int' may change the sign of the result [-Wsign-conversion] 609 | y = calloc(dim*m, sizeof(double)); | ~~~^~ Multilevel.c:948:5: warning: this statement may fall through [-Wimplicit-fallthrough=] 948 | maximal_independent_edge_set(A, ctrl->randomize, &matching, &nmatch); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ Multilevel.c:949:3: note: here 949 | case COARSEN_INDEPENDENT_EDGE_SET_HEAVEST_EDGE_PERNODE: | ^~~~ Multilevel.c:950:8: warning: this statement may fall through [-Wimplicit-fallthrough=] 950 | if (ctrl->coarsen_scheme == COARSEN_INDEPENDENT_EDGE_SET_HEAVEST_EDGE_PERNODE) | ^ post_process.c:646:20: warning: comparing floating-point with '==' or '!=' is unsafe [-Wfloat-equal] 646 | if (d[j] == 0){ | ^~ Multilevel.c:952:3: note: here 952 | case COARSEN_INDEPENDENT_EDGE_SET_HEAVEST_EDGE_PERNODE_DEGREE_SCALED: | ^~~~ post_process.c:649:22: warning: comparing floating-point with '==' or '!=' is unsafe [-Wfloat-equal] 649 | if (dist == 0){ | ^~ spring_electrical.c: In function 'spring_electrical_spring_embedding': spring_electrical.c:1419:35: warning: conversion to 'long unsigned int' from 'int' may change the sign of the result [-Wsign-conversion] 1419 | center = MALLOC(sizeof(double)*nsupermax*dim); | ^ spring_electrical.c:1419:45: warning: conversion to 'long unsigned int' from 'int' may change the sign of the result [-Wsign-conversion] 1419 | center = MALLOC(sizeof(double)*nsupermax*dim); | ^ post_process.c:725:32: warning: conversion to 'long unsigned int' from 'int' may change the sign of the result [-Wsign-conversion] 725 | memcpy(x, y, sizeof(double)*m*dim); | ^ post_process.c:725:34: warning: conversion to 'long unsigned int' from 'int' may change the sign of the result [-Wsign-conversion] 725 | memcpy(x, y, sizeof(double)*m*dim); | ^ spring_electrical.c:1420:43: warning: conversion to 'long unsigned int' from 'int' may change the sign of the result [-Wsign-conversion] 1420 | supernode_wgts = MALLOC(sizeof(double)*nsupermax); | ^ spring_electrical.c:1421:38: warning: conversion to 'long unsigned int' from 'int' may change the sign of the result [-Wsign-conversion] 1421 | distances = MALLOC(sizeof(double)*nsupermax); | ^ post_process.c: In function 'TriangleSmoother_new': ../../lib/common/memory.h:23:38: warning: conversion to 'size_t' {aka 'long unsigned int'} from 'int' may change the sign of the result [-Wsign-conversion] 23 | #define N_GNEW(n,t) (t*)gcalloc((n),sizeof(t)) | ^~~ post_process.c:769:14: note: in expansion of macro 'N_GNEW' 769 | avg_dist = N_GNEW(m,double); | ^~~~~~ spring_electrical.c:1437:15: warning: conversion to 'unsigned int' from 'int' may change the sign of the result [-Wsign-conversion] 1437 | srand(ctrl->random_seed); | ~~~~^~~~~~~~~~~~~ post_process.c:788:18: warning: cast from function call of type 'double' to non-matching type 'int' [-Wbad-function-cast] 788 | sm->maxit_cg = (int)sqrt((double) A->m); | ^ spring_electrical.c:1460:28: warning: conversion to 'long unsigned int' from 'int' may change the sign of the result [-Wsign-conversion] 1460 | f = MALLOC(sizeof(double)*dim); | ^ ../../lib/common/memory.h:23:38: warning: conversion to 'size_t' {aka 'long unsigned int'} from 'int' may change the sign of the result [-Wsign-conversion] 23 | #define N_GNEW(n,t) (t*)gcalloc((n),sizeof(t)) | ^~~ post_process.c:790:25: note: in expansion of macro 'N_GNEW' 790 | lambda = sm->lambda = N_GNEW(m,double); | ^~~~~~ spring_electrical.c:1461:31: warning: conversion to 'long unsigned int' from 'int' may change the sign of the result [-Wsign-conversion] 1461 | xold = MALLOC(sizeof(double)*dim*n); | ^ spring_electrical.c:1461:35: warning: conversion to 'long unsigned int' from 'int' may change the sign of the result [-Wsign-conversion] 1461 | xold = MALLOC(sizeof(double)*dim*n); | ^ spring_electrical.c:1464:35: warning: conversion to 'long unsigned int' from 'int' may change the sign of the result [-Wsign-conversion] 1464 | memcpy(xold, x, sizeof(double)*dim*n); | ^ post_process.c: In function 'SpringSmoother_new': ../../lib/common/memory.h:23:38: warning: conversion to 'size_t' {aka 'long unsigned int'} from 'int' may change the sign of the result [-Wsign-conversion] 23 | #define N_GNEW(n,t) (t*)gcalloc((n),sizeof(t)) | ^~~ post_process.c:889:10: note: in expansion of macro 'N_GNEW' 889 | mask = N_GNEW(m,int); | ^~~~~~ spring_electrical.c:1464:39: warning: conversion to 'long unsigned int' from 'int' may change the sign of the result [-Wsign-conversion] 1464 | memcpy(xold, x, sizeof(double)*dim*n); | ^ ../../lib/common/memory.h:23:38: warning: conversion to 'size_t' {aka 'long unsigned int'} from 'int' may change the sign of the result [-Wsign-conversion] 23 | #define N_GNEW(n,t) (t*)gcalloc((n),sizeof(t)) | ^~~ post_process.c:891:14: note: in expansion of macro 'N_GNEW' 891 | avg_dist = N_GNEW(m,double); | ^~~~~~ post_process.c: In function 'post_process_smoothing': post_process.c:1012:3: warning: switch missing default case [-Wswitch-default] 1012 | switch (ctrl->smoothing){ | ^~~~~~ spring_electrical.c: In function 'interpolate_coord': spring_electrical.c:1597:28: warning: conversion to 'long unsigned int' from 'int' may change the sign of the result [-Wsign-conversion] 1597 | y = MALLOC(sizeof(double)*dim); | ^ spring_electrical.c: In function 'power_law_graph': spring_electrical.c:1642:28: warning: conversion to 'long unsigned int' from 'int' may change the sign of the result [-Wsign-conversion] 1642 | mask = MALLOC(sizeof(int)*(m+1)); | ^ spring_electrical.c: In function 'pcp_rotate': spring_electrical.c:1688:12: warning: comparing floating-point with '==' or '!=' is unsafe [-Wfloat-equal] 1688 | if (y[1] == 0) { | ^~ spring_electrical.c: In function 'attach_edge_label_coordinates': spring_electrical.c:1750:28: warning: conversion to 'long unsigned int' from 'int' may change the sign of the result [-Wsign-conversion] 1750 | mask = MALLOC(sizeof(int)*A->m); | ^ spring_electrical.c: In function 'shorting_edge_label_nodes': spring_electrical.c:1795:28: warning: conversion to 'long unsigned int' from 'int' may change the sign of the result [-Wsign-conversion] 1795 | mask = MALLOC(sizeof(int)*A->m); | ^ spring_electrical.c:1823:29: warning: conversion to 'long unsigned int' from 'int' may change the sign of the result [-Wsign-conversion] 1823 | irn = MALLOC(sizeof(int)*nz); | ^ spring_electrical.c:1824:29: warning: conversion to 'long unsigned int' from 'int' may change the sign of the result [-Wsign-conversion] 1824 | jcn = MALLOC(sizeof(int)*nz); | ^ spring_electrical.c: In function 'multilevel_spring_electrical_embedding_core': spring_electrical.c:1905:39: warning: conversion to 'long unsigned int' from 'int' may change the sign of the result [-Wsign-conversion] 1905 | double *x2 = MALLOC(sizeof(double)*(A->m)*dim); | ^ spring_electrical.c:1905:46: warning: conversion to 'long unsigned int' from 'int' may change the sign of the result [-Wsign-conversion] 1905 | double *x2 = MALLOC(sizeof(double)*(A->m)*dim); | ^ spring_electrical.c:1928:31: warning: conversion to 'long unsigned int' from 'int' may change the sign of the result [-Wsign-conversion] 1928 | xc = MALLOC(sizeof(double)*grid->n*dim); | ^ spring_electrical.c:1928:39: warning: conversion to 'long unsigned int' from 'int' may change the sign of the result [-Wsign-conversion] 1928 | xc = MALLOC(sizeof(double)*grid->n*dim); | ^ spring_electrical.c:1932:15: warning: comparing floating-point with '==' or '!=' is unsafe [-Wfloat-equal] 1932 | if (ctrl->p == AUTOP){ | ^~ spring_electrical.c:1996:33: warning: conversion to 'long unsigned int' from 'int' may change the sign of the result [-Wsign-conversion] 1996 | xf = MALLOC(sizeof(double)*grid->n*dim); | ^ spring_electrical.c:1996:41: warning: conversion to 'long unsigned int' from 'int' may change the sign of the result [-Wsign-conversion] 1996 | xf = MALLOC(sizeof(double)*grid->n*dim); | ^ spring_electrical.c:2026:22: warning: comparing floating-point with '==' or '!=' is unsafe [-Wfloat-equal] 2026 | if (ctrl->rotation != 0) rotate(n, dim, x, ctrl->rotation); | ^~ CCLD libsfdpgen_C.la make[3]: Leaving directory '/build/graphviz/src/graphviz-4.0.0/lib/sfdpgen' Making all in osage make[3]: Entering directory '/build/graphviz/src/graphviz-4.0.0/lib/osage' CC osageinit.lo In file included from ../../lib/common/render.h:33, from ../../lib/osage/osage.h:13, from osageinit.c:17: osageinit.c: In function 'addCluster': ../../lib/common/memory.h:26:58: warning: conversion to 'long unsigned int' from 'int' may change the sign of the result [-Wsign-conversion] 26 | #define RALLOC(size,ptr,type) ((type*)grealloc(ptr,(size)*sizeof(type))) | ^ osageinit.c:57:21: note: in expansion of macro 'RALLOC' 57 | clist->cl = RALLOC(clist->sz, clist->cl, graph_t *); | ^~~~~~ osageinit.c: In function 'layout': ../../lib/common/memory.h:20:38: warning: conversion to 'size_t' {aka 'long unsigned int'} from 'int' may change the sign of the result [-Wsign-conversion] 20 | #define N_NEW(n,t) (t*)gcalloc((n),sizeof(t)) | ^~~ osageinit.c:131:26: note: in expansion of macro 'N_NEW' 131 | pinfo.vals = N_NEW(total, packval_t); | ^~~~~ ../../lib/common/memory.h:20:38: warning: conversion to 'size_t' {aka 'long unsigned int'} from 'int' may change the sign of the result [-Wsign-conversion] 20 | #define N_NEW(n,t) (t*)gcalloc((n),sizeof(t)) | ^~~ osageinit.c:137:10: note: in expansion of macro 'N_NEW' 137 | gs = N_NEW(total, boxf); | ^~~~~ ../../lib/common/memory.h:20:38: warning: conversion to 'size_t' {aka 'long unsigned int'} from 'int' may change the sign of the result [-Wsign-conversion] 20 | #define N_NEW(n,t) (t*)gcalloc((n),sizeof(t)) | ^~~ osageinit.c:138:16: note: in expansion of macro 'N_NEW' 138 | children = N_NEW(total, void*); | ^~~~~ osageinit.c:144:29: warning: conversion to 'packval_t' {aka 'unsigned int'} from 'int' may change the sign of the result [-Wsign-conversion] 144 | pinfo.vals[j] = late_int (subg, cattr, 0, 0); | ^~~~~~~~ osageinit.c:158:33: warning: conversion to 'packval_t' {aka 'unsigned int'} from 'int' may change the sign of the result [-Wsign-conversion] 158 | pinfo.vals[j] = late_int (n, vattr, 0, 0); | ^~~~~~~~ osageinit.c:199:16: warning: declaration of 'p' shadows a previous local [-Wshadow] 199 | pointf p; | ^ osageinit.c:93:12: note: shadowed declaration is here 93 | pointf p; | ^ osageinit.c: In function 'mkClusters': ../../lib/common/memory.h:26:58: warning: conversion to 'long unsigned int' from 'int' may change the sign of the result [-Wsign-conversion] 26 | #define RALLOC(size,ptr,type) ((type*)grealloc(ptr,(size)*sizeof(type))) | ^ osageinit.c:347:27: note: in expansion of macro 'RALLOC' 347 | GD_clust(g) = RALLOC(list.cnt + 1, list.cl, graph_t*); | ^~~~~~ CCLD libosage_C.la make[3]: Leaving directory '/build/graphviz/src/graphviz-4.0.0/lib/osage' Making all in gvpr make[3]: Entering directory '/build/graphviz/src/graphviz-4.0.0/lib/gvpr' rm -f gvpr.3.pdf; pdffile=gvpr.3.pdf; psfile=${pdffile%pdf}ps; \ groff -Tps -man gvpr.3 > $psfile || { rm -f $psfile; exit 1; }; \ ps2pdf $psfile && rm -f $psfile || { rm -f $psfile; exit 1; } CC actions.lo CC compile.lo CC gvpr.lo CC gprstate.lo CC parse.lo CC queue.lo queue.c: In function 'makef': queue.c:25:27: warning: unused parameter 'd' [-Wunused-parameter] 25 | static void *makef(Dt_t * d, nsitem * obj, Dtdisc_t * disc) | ~~~~~~~^ queue.c:25:55: warning: unused parameter 'disc' [-Wunused-parameter] 25 | static void *makef(Dt_t * d, nsitem * obj, Dtdisc_t * disc) | ~~~~~~~~~~~^~~~ queue.c: In function 'freef': queue.c:34:26: warning: unused parameter 'd' [-Wunused-parameter] 34 | static void freef(Dt_t * d, nsitem * obj, Dtdisc_t * disc) | ~~~~~~~^ queue.c:34:54: warning: unused parameter 'disc' [-Wunused-parameter] 34 | static void freef(Dt_t * d, nsitem * obj, Dtdisc_t * disc) | ~~~~~~~~~~~^~~~ In file included from gprstate.c:19: gprstate.c: In function 'openGPRState': ../../lib/ast/sfstr.h:23:51: warning: unsigned conversion from 'int' to 'size_t' {aka 'long unsigned int'} changes value from '-1' to '18446744073709551615' [-Wsign-conversion] 23 | #define sfstropen() sfnew((Sfio_t*)0,(char*)0,-1,-1,SF_WRITE|SF_STRING) | ^~ gprstate.c:42:24: note: in expansion of macro 'sfstropen' 42 | if (!(state->tmp = sfstropen())) { | ^~~~~~~~~ gprstate.c: In function 'findBinding': gprstate.c:87:46: warning: conversion to 'size_t' {aka 'long unsigned int'} from 'int' may change the sign of the result [-Wsign-conversion] 87 | bp = bsearch(&key, state->bindings, state->n_bindings, sizeof(gvprbinding), bindingcmpf); | ~~~~~^~~~~~~~~~~~ In file included from ../../lib/gvpr/gprstate.h:19, from gprstate.c:17: gprstate.c: In function 'addBindings': ../../lib/ast/ast.h:54:94: warning: conversion to 'long unsigned int' from 'int' may change the sign of the result [-Wsign-conversion] 54 | #define newof(p,t,n,x) ((p)?(t*)realloc((char*)(p),sizeof(t)*(n)+(x)):(t*)calloc(1,sizeof(t)*(n)+(x))) | ^ gprstate.c:109:18: note: in expansion of macro 'newof' 109 | bufp = buf = newof(0, gvprbinding, n, 0); | ^~~~~ gprstate.c:118:17: warning: conversion to 'size_t' {aka 'long unsigned int'} from 'int' may change the sign of the result [-Wsign-conversion] 118 | qsort (buf, n, sizeof(gvprbinding), bindingcmpf); | ^ actions.c: In function 'indexOf': actions.c:67:12: warning: conversion from 'size_t' {aka 'long unsigned int'} to 'int' may change value [-Wconversion] 67 | len2 = strlen(s2) - 1; | ^~~~~~ actions.c:71:32: warning: conversion to 'size_t' {aka 'long unsigned int'} from 'int' may change the sign of the result [-Wsign-conversion] 71 | if (strncmp(p, s2 + 1, len2) == 0) | ^~~~ actions.c:72:30: warning: conversion from 'long int' to 'int' may change value [-Wconversion] 72 | return ((p - s1) - 1); | ~~~~~~~~~~^~~~ actions.c: In function 'rindexOf': actions.c:88:16: warning: conversion from 'size_t' {aka 'long unsigned int'} to 'int' may change value [-Wconversion] 88 | return (len1); | ^ actions.c:94:22: warning: conversion from 'long int' to 'int' may change value [-Wconversion] 94 | return p - s1; | ~~^~~~ actions.c: In function 'copy': actions.c:194:5: warning: switch missing default case [-Wswitch-default] 194 | switch (kind) { | ^~~~~~ actions.c: In function 'cmppair': actions.c:290:27: warning: unused parameter 'd' [-Wunused-parameter] 290 | static int cmppair(Dt_t * d, Agedge_t** key1, Agedge_t** key2, Dtdisc_t * disc) | ~~~~~~~^ actions.c:290:75: warning: unused parameter 'disc' [-Wunused-parameter] 290 | static int cmppair(Dt_t * d, Agedge_t** key1, Agedge_t** key2, Dtdisc_t * disc) | ~~~~~~~~~~~^~~~ actions.c: In function 'cloneGraph': actions.c:315:49: warning: conversion to 'long unsigned int' from 'int' may change the sign of the result [-Wsign-conversion] 315 | edgepair_t* data = malloc(sizeof(edgepair_t)*agnedges(src)); | ^ actions.c: In function 'clone': actions.c:393:5: warning: switch missing default case [-Wswitch-default] 393 | switch (kind) { | ^~~~~~ actions.c: In function 'fwriteFile': actions.c:649:22: warning: comparison of integer expressions of different signedness: 'int' and 'long unsigned int' [-Wsign-compare] 649 | if (fd < 0 || fd >= elementsof(ex->file) | ^~ parse.c: In function 'readc': actions.c: In function 'freadFile': actions.c:661:22: warning: comparison of integer expressions of different signedness: 'int' and 'long unsigned int' [-Wsign-compare] 661 | if (fd < 0 || fd >= elementsof(ex->file) | ^~ parse.c:98:40: warning: conversion from 'int' to 'char' may change value [-Wconversion] 98 | agxbputc(ostr, c); | ^ actions.c: In function 'openFile': parse.c:108:44: warning: conversion from 'int' to 'char' may change value [-Wconversion] 108 | agxbputc(ostr, cc); | ^~ parse.c:101:21: warning: switch missing default case [-Wswitch-default] 101 | switch (cc = sfgetc(str)) { | ^~~~~~ actions.c:674:23: warning: comparison of integer expressions of different signedness: 'int' and 'long unsigned int' [-Wsign-compare] 674 | for (idx = 3; idx < elementsof(ex->file); idx++) | ^ parse.c:94:17: warning: switch missing default case [-Wswitch-default] 94 | switch (c = sfgetc(str)) { | ^~~~~~ In file included from ../../lib/gvpr/gprstate.h:19, from gvpr.c:20: gvpr.c: In function 'parseArgs': actions.c: In function 'readLine': actions.c:717:22: warning: comparison of integer expressions of different signedness: 'int' and 'long unsigned int' [-Wsign-compare] 717 | if (fd < 0 || fd >= elementsof(ex->file) || !((sp = ex->file[fd]))) { | ^~ parse.c: In function 'parseID': parse.c:172:14: warning: conversion from 'int' to 'char' may change value [-Wconversion] 172 | *ptr++ = c; | ^ ../../lib/ast/ast.h:55:62: warning: conversion to 'long unsigned int' from 'int' may change the sign of the result [-Wsign-conversion] 55 | #define oldof(p,t,n,x) ((p)?(t*)realloc((char*)(p),sizeof(t)*(n)+(x)):(t*)malloc(sizeof(t)*(n)+(x))) | ^ gvpr.c:167:14: note: in expansion of macro 'oldof' 167 | av = oldof(*argv, char *, argc, 0); | ^~~~~ ../../lib/ast/ast.h:55:92: warning: conversion to 'long unsigned int' from 'int' may change the sign of the result [-Wsign-conversion] 55 | #define oldof(p,t,n,x) ((p)?(t*)realloc((char*)(p),sizeof(t)*(n)+(x)):(t*)malloc(sizeof(t)*(n)+(x))) | ^ gvpr.c:167:14: note: in expansion of macro 'oldof' 167 | av = oldof(*argv, char *, argc, 0); | ^~~~~ actions.c:723:25: warning: conversion from 'int' to 'char' may change value [-Wconversion] 723 | agxbputc(&tmps, c); | ^ parse.c:181:26: warning: conversion from 'int' to 'char' may change value [-Wconversion] 181 | *ptr++ = c; | ^ actions.c:725:25: warning: conversion from 'int' to 'char' may change value [-Wconversion] 725 | agxbputc(&tmps, c); | ^ gvpr.c: In function 'resolve': gvpr.c:205:37: warning: declaration of 'Verbose' shadows a global declaration [-Wshadow] 205 | static char *resolve(char *arg, int Verbose) | ~~~~^~~~~~~ In file included from gvpr.c:25: ../../lib/common/globals.h:40:38: note: shadowed declaration is here 40 | GLOBALS_API EXTERN unsigned char Verbose; | ^~~~~~~ parse.c: In function 'endString': parse.c:245:28: warning: conversion from 'int' to 'char' may change value [-Wconversion] 245 | agxbputc(outs, c); | ^ parse.c:256:20: warning: conversion from 'int' to 'char' may change value [-Wconversion] 256 | agxbputc(outs, c); | ^ parse.c: In function 'endBracket': parse.c:284:38: warning: conversion from 'int' to 'char' may change value [-Wconversion] 284 | if (endString(ins, outs, c)) return -1; | ^ parse.c: In function 'parseBracket': parse.c:307:30: warning: conversion from 'int' to 'char' may change value [-Wconversion] 307 | c = endBracket(str, buf, bc, ec); | ^~ parse.c:307:34: warning: conversion from 'int' to 'char' may change value [-Wconversion] 307 | c = endBracket(str, buf, bc, ec); | ^~ parse.c: In function 'parseCase': parse.c:355:5: warning: switch missing default case [-Wswitch-default] 355 | switch (kind) { | ^~~~~~ gvpr.c: In function 'scanArgs': ../../lib/ast/ast.h:54:94: warning: conversion to 'long unsigned int' from 'int' may change the sign of the result [-Wsign-conversion] 54 | #define newof(p,t,n,x) ((p)?(t*)realloc((char*)(p),sizeof(t)*(n)+(x)):(t*)calloc(1,sizeof(t)*(n)+(x))) | ^ gvpr.c:399:23: note: in expansion of macro 'newof' 399 | input_filenames = newof(0,char*,nfiles + 1,0); | ^~~~~ gvpr.c: In function 'evalEdge': gvpr.c:459:20: warning: conversion from 'long long int' to 'int' may change value [-Wconversion] 459 | okay = (exeval(prog, cs->guard, state)).integer; | ^ gvpr.c: In function 'evalNode': gvpr.c:482:20: warning: conversion from 'long long int' to 'int' may change value [-Wconversion] 482 | okay = (exeval(prog, cs->guard, state)).integer; | ^ parse.c: In function 'parseProg': parse.c:509:9: warning: switch missing default case [-Wswitch-default] 509 | switch (parseCase(str, &guard, &gline, &action, &line)) { | ^~~~~~ gvpr.c: At top level: gvpr.c:537:38: warning: cast between incompatible function types from 'Agedge_t * (*)(Agraph_t *, Agedge_t *)' {aka 'struct Agedge_s * (*)(struct Agraph_s *, struct Agedge_s *)'} to 'Agedge_t * (*)(Agraph_t *, Agedge_t *, Agnode_t *)' {aka 'struct Agedge_s * (*)(struct Agraph_s *, struct Agedge_s *, struct Agnode_s *)'} [-Wcast-function-type] 537 | static trav_fns FWDfns = { agfstout, (nxttedgefn_t) agnxtout, 0, 0 }; | ^ gvpr.c:538:37: warning: cast between incompatible function types from 'Agedge_t * (*)(Agraph_t *, Agedge_t *)' {aka 'struct Agedge_s * (*)(struct Agraph_s *, struct Agedge_s *)'} to 'Agedge_t * (*)(Agraph_t *, Agedge_t *, Agnode_t *)' {aka 'struct Agedge_s * (*)(struct Agraph_s *, struct Agedge_s *, struct Agnode_s *)'} [-Wcast-function-type] 538 | static trav_fns REVfns = { agfstin, (nxttedgefn_t) agnxtin, 0, 0 }; | ^ gvpr.c: In function 'traverse': gvpr.c:748:5: warning: switch missing default case [-Wswitch-default] 748 | switch (state->tvt) { | ^~~~~~ gvpr.c: In function 'addOutputGraph': ../../lib/ast/ast.h:55:62: warning: conversion to 'long unsigned int' from 'int' may change the sign of the result [-Wsign-conversion] 55 | #define oldof(p,t,n,x) ((p)?(t*)realloc((char*)(p),sizeof(t)*(n)+(x)):(t*)malloc(sizeof(t)*(n)+(x))) | ^ gvpr.c:836:24: note: in expansion of macro 'oldof' 836 | uopts->outgraphs = oldof(uopts->outgraphs,Agraph_t*,uopts->n_outgraphs,0); | ^~~~~ ../../lib/ast/ast.h:55:92: warning: conversion to 'long unsigned int' from 'int' may change the sign of the result [-Wsign-conversion] 55 | #define oldof(p,t,n,x) ((p)?(t*)realloc((char*)(p),sizeof(t)*(n)+(x)):(t*)malloc(sizeof(t)*(n)+(x))) | ^ gvpr.c:836:24: note: in expansion of macro 'oldof' 836 | uopts->outgraphs = oldof(uopts->outgraphs,Agraph_t*,uopts->n_outgraphs,0); | ^~~~~ gvpr.c: In function 'gvexitf': gvpr.c:886:18: warning: unused parameter 'handle' [-Wunused-parameter] 886 | gvexitf (Expr_t *handle, Exdisc_t *discipline, int v) | ~~~~~~~~^~~~~~ gvpr.c:886:36: warning: unused parameter 'discipline' [-Wunused-parameter] 886 | gvexitf (Expr_t *handle, Exdisc_t *discipline, int v) | ~~~~~~~~~~^~~~~~~~~~ compile.c: In function 'iofread': compile.c:66:43: warning: conversion to 'size_t' {aka 'long unsigned int'} from 'int' may change the sign of the result [-Wsign-conversion] 66 | return (int)read(sffileno(chan), buf, bufsize); | ^~~~~~~ compile.c: At top level: compile.c:194:5: warning: "DEBUG" is not defined, evaluates to 0 [-Wundef] 194 | #if DEBUG > 1 | ^~~~~ In file included from ../../lib/gvpr/trie.c:3, from compile.c:44: compile.c: In function 'assignable': compile.c:352:21: warning: conversion from 'unsigned int' to 'char' may change value [-Wconversion] 352 | TFA_Advance(ch > 127 ? 127 : ch); | ^~ ../../lib/gvpr/trieFA.h:62:29: note: in definition of macro 'TFA_Advance' 62 | char c = C; \ | ^ compile.c:352:9: warning: conversion from 'int' to 'char' may change value [-Wconversion] 352 | TFA_Advance(ch > 127 ? 127 : ch); | ^~~~~~~~~~~ compile.c: In function 'getval': compile.c:860:20: warning: switch missing default case [-Wswitch-default] 860 | } else switch (AGTYPE(objp)) { | ^~~~~~ compile.c:1201:56: warning: conversion from 'long long int' to 'int' may change value [-Wconversion] 1201 | v.integer = fwriteFile(pgm, gp, args[1].integer, state->dfltIO); | ~~~~~~~^~~~~~~~ compile.c:1204:40: warning: conversion from 'long long int' to 'int' may change value [-Wconversion] 1204 | gp = freadFile(pgm, args[0].integer); | ~~~~~~~^~~~~~~~ compile.c:1211:47: warning: conversion from 'long long int' to 'int' may change value [-Wconversion] 1211 | v.integer = closeFile(pgm, args[0].integer); | ~~~~~~~^~~~~~~~ compile.c:1214:45: warning: conversion from 'long long int' to 'int' may change value [-Wconversion] 1214 | v.string = readLine(pgm, args[0].integer); | ~~~~~~~^~~~~~~~ compile.c:1258:50: warning: conversion from 'long long int' to 'int' may change value [-Wconversion] 1258 | v.integer = lockGraph(gp, args[1].integer); | ~~~~~~~^~~~~~~~ compile.c:1344:23: warning: declaration of 'name' shadows a previous local [-Wshadow] 1344 | char* name = args[1].string; | ^~~~ compile.c:668:11: note: shadowed declaration is here 668 | char* name; | ^~~~ compile.c:1363:23: warning: declaration of 'name' shadows a previous local [-Wshadow] 1363 | char* name = args[2].string; | ^~~~ compile.c:668:11: note: shadowed declaration is here 668 | char* name; | ^~~~ compile.c:1407:23: warning: declaration of 'name' shadows a previous local [-Wshadow] 1407 | char* name = args[2].string; | ^~~~ compile.c:668:11: note: shadowed declaration is here 668 | char* name; | ^~~~ compile.c:1478:25: warning: conversion to 'long long int' from 'size_t' {aka 'long unsigned int'} may change the sign of the result [-Wsign-conversion] 1478 | v.integer = strlen(args[0].string); | ^~~~~~ compile.c:1505:38: warning: conversion from 'long long int' to 'int' may change value [-Wconversion] 1505 | v.string = getArg(args[0].integer, state); | ~~~~~~~^~~~~~~~ compile.c:1521:9: warning: switch missing default case [-Wswitch-default] 1521 | switch (sym->index) { | ^~~~~~ compile.c: In function 'typeName': compile.c:1582:32: warning: unused parameter 'pg' [-Wunused-parameter] 1582 | static char *typeName(Expr_t * pg, int op) | ~~~~~~~~~^~ compile.c: In function 'setval': compile.c:1619:18: warning: conversion from 'long long int' to 'int' may change value [-Wconversion] 1619 | iv = v.integer; | ^ compile.c:1620:27: warning: conversion from 'long long int' to 'int' may change value [-Wconversion] 1620 | if (validTVT(v.integer)) | ~^~~~~~~~ compile.c: In function 'typeChk': compile.c:1720:13: warning: switch missing default case [-Wswitch-default] 1720 | switch (sym->index) { | ^~~~~~ compile.c: In function 'binary': compile.c:1892:14: warning: conversion from 'long long int' to 'int' may change value [-Wconversion] 1892 | li = l->data.constant.value.integer; | ^ compile.c:1893:14: warning: conversion from 'long long int' to 'int' may change value [-Wconversion] 1893 | ri = r->data.constant.value.integer; | ^ compile.c:1894:9: warning: switch missing default case [-Wswitch-default] 1894 | switch (ex->op) { | ^~~~~~ compile.c:1943:5: warning: switch missing default case [-Wswitch-default] 1943 | switch (ex->op) { | ^~~~~~ compile.c: In function 'stringOf': compile.c:2099:48: warning: conversion from 'long long int' to 'int' may change value [-Wconversion] 2099 | tvtypeToStr (x->data.constant.value.integer))) | ~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~ compile.c: In function 'convert': compile.c:2151:13: warning: switch missing default case [-Wswitch-default] 2151 | switch (type) { | ^~~~~~ compile.c:2171:56: warning: conversion from 'long long int' to 'int' may change value [-Wconversion] 2171 | tvtypeToStr (x->data.constant.value.integer); | ~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~ compile.c:2177:49: warning: conversion from 'long long int' to 'int' may change value [-Wconversion] 2177 | else if (validTVT(x->data.constant.value.integer)) | ~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~ In file included from ./gprstate.h:18, from ../../lib/gvpr/compile.h:19, from compile.c:20: compile.c: In function 'keyval': ../../lib/cgraph/cgraph.h:102:33: warning: conversion to 'long long int' from 'IDTYPE' {aka 'long unsigned int'} may change the sign of the result [-Wsign-conversion] 102 | #define AGID(obj) (AGTAG(obj).id) | ^ compile.c:2213:21: note: in expansion of macro 'AGID' 2213 | v.integer = AGID(int2ptr(v.integer)); | ^~~~ compile.c: In function 'initDisc': compile.c:2267:22: warning: cast between incompatible function types from 'void (*)(void *, void *, int, const char *, ...)' to 'int (*)(Expr_t *, Exdisc_t *, int, const char *, ...)' {aka 'int (*)(struct Expr_s *, struct Exdisc_s *, int, const char *, ...)'} [-Wcast-function-type] 2267 | dp->errorf = (Exerror_f) errorf; | ^ In file included from ./gprstate.h:19: compile.c: In function 'mkStmts': ../../lib/ast/ast.h:54:94: warning: conversion to 'long unsigned int' from 'int' may change the sign of the result [-Wsign-conversion] 54 | #define newof(p,t,n,x) ((p)?(t*)realloc((char*)(p),sizeof(t)*(n)+(x)):(t*)calloc(1,sizeof(t)*(n)+(x))) | ^ compile.c:2353:10: note: in expansion of macro 'newof' 2353 | cs = newof(0, case_stmt, cnt, 0); | ^~~~~ actions.c: In function 'hsv2rgb': compile.c: In function 'compileProg': actions.c:838:9: warning: switch missing default case [-Wswitch-default] 838 | switch (i) { | ^~~~~~ actions.c: In function 'rgb2hsv': ../../lib/ast/ast.h:54:94: warning: conversion to 'long unsigned int' from 'int' may change the sign of the result [-Wsign-conversion] 54 | #define newof(p,t,n,x) ((p)?(t*)realloc((char*)(p),sizeof(t)*(n)+(x)):(t*)calloc(1,sizeof(t)*(n)+(x))) | ^ compile.c:2502:26: note: in expansion of macro 'newof' 2502 | p->blocks = bp = newof(0, comp_block, inp->n_blocks, 0); | ^~~~~ actions.c:891:15: warning: comparing floating-point with '==' or '!=' is unsafe [-Wfloat-equal] 891 | if (r == rgbmax) | ^~ actions.c:893:20: warning: comparing floating-point with '==' or '!=' is unsafe [-Wfloat-equal] 893 | else if (g == rgbmax) | ^~ actions.c:895:20: warning: comparing floating-point with '==' or '!=' is unsafe [-Wfloat-equal] 895 | else if (b == rgbmax) | ^~ actions.c: In function 'canontoken': actions.c:944:17: warning: conversion from 'int' to 'unsigned char' may change value [-Wconversion] 944 | c = tolower(c); | ^~~~~~~ actions.c: In function 'colorxlate': actions.c:1074:32: warning: conversion from 'unsigned int' to 'unsigned char' may change value [-Wconversion] 1074 | color->u.rgba[0] = r; | ^ actions.c:1075:32: warning: conversion from 'unsigned int' to 'unsigned char' may change value [-Wconversion] 1075 | color->u.rgba[1] = g; | ^ actions.c:1076:32: warning: conversion from 'unsigned int' to 'unsigned char' may change value [-Wconversion] 1076 | color->u.rgba[2] = b; | ^ actions.c:1077:32: warning: conversion from 'unsigned int' to 'unsigned char' may change value [-Wconversion] 1077 | color->u.rgba[3] = a; | ^ actions.c:1084:32: warning: conversion from 'int' to 'unsigned char' may change value [-Wconversion] 1084 | color->u.cmyk[0] = (int) C *255; | ^ actions.c:1085:32: warning: conversion from 'int' to 'unsigned char' may change value [-Wconversion] 1085 | color->u.cmyk[1] = (int) M *255; | ^ actions.c:1086:32: warning: conversion from 'int' to 'unsigned char' may change value [-Wconversion] 1086 | color->u.cmyk[2] = (int) Y *255; | ^ actions.c:1087:32: warning: conversion from 'int' to 'unsigned char' may change value [-Wconversion] 1087 | color->u.cmyk[3] = (int) K *255; | ^ actions.c:1090:36: warning: conversion to 'int' from 'unsigned int' may change the sign of the result [-Wsign-conversion] 1090 | color->u.rrggbbaa[0] = r * 65535 / 255; | ^ actions.c:1091:36: warning: conversion to 'int' from 'unsigned int' may change the sign of the result [-Wsign-conversion] 1091 | color->u.rrggbbaa[1] = g * 65535 / 255; | ^ actions.c:1092:36: warning: conversion to 'int' from 'unsigned int' may change the sign of the result [-Wsign-conversion] 1092 | color->u.rrggbbaa[2] = b * 65535 / 255; | ^ actions.c:1093:36: warning: conversion to 'int' from 'unsigned int' may change the sign of the result [-Wsign-conversion] 1093 | color->u.rrggbbaa[3] = a * 65535 / 255; | ^ actions.c:1061:9: warning: switch missing default case [-Wswitch-default] 1061 | switch (target_type) { | ^~~~~~ actions.c:1147:36: warning: conversion from 'int' to 'unsigned char' may change value [-Wconversion] 1147 | color->u.rgba[0] = (int) (R * 255); | ^ actions.c:1148:36: warning: conversion from 'int' to 'unsigned char' may change value [-Wconversion] 1148 | color->u.rgba[1] = (int) (G * 255); | ^ actions.c:1149:36: warning: conversion from 'int' to 'unsigned char' may change value [-Wconversion] 1149 | color->u.rgba[2] = (int) (B * 255); | ^ actions.c:1150:36: warning: conversion from 'int' to 'unsigned char' may change value [-Wconversion] 1150 | color->u.rgba[3] = (int) (A * 255); | ^ actions.c:1155:36: warning: conversion from 'int' to 'unsigned char' may change value [-Wconversion] 1155 | color->u.cmyk[0] = (int) C *255; | ^ actions.c:1156:36: warning: conversion from 'int' to 'unsigned char' may change value [-Wconversion] 1156 | color->u.cmyk[1] = (int) M *255; | ^ actions.c:1157:36: warning: conversion from 'int' to 'unsigned char' may change value [-Wconversion] 1157 | color->u.cmyk[2] = (int) Y *255; | ^ actions.c:1158:36: warning: conversion from 'int' to 'unsigned char' may change value [-Wconversion] 1158 | color->u.cmyk[3] = (int) K *255; | ^ actions.c:1138:13: warning: switch missing default case [-Wswitch-default] 1138 | switch (target_type) { | ^~~~~~ actions.c:1210:32: warning: conversion from 'int' to 'unsigned char' may change value [-Wconversion] 1210 | color->u.cmyk[0] = (int) C * 255; | ^ actions.c:1211:32: warning: conversion from 'int' to 'unsigned char' may change value [-Wconversion] 1211 | color->u.cmyk[1] = (int) M * 255; | ^ actions.c:1212:32: warning: conversion from 'int' to 'unsigned char' may change value [-Wconversion] 1212 | color->u.cmyk[2] = (int) Y * 255; | ^ actions.c:1213:32: warning: conversion from 'int' to 'unsigned char' may change value [-Wconversion] 1213 | color->u.cmyk[3] = (int) K * 255; | ^ actions.c:1192:9: warning: switch missing default case [-Wswitch-default] 1192 | switch (target_type) { | ^~~~~~ actions.c:1237:5: warning: switch missing default case [-Wswitch-default] 1237 | switch (target_type) { | ^~~~~~ actions.c: In function 'gvelapsed_sec': actions.c:1341:83: warning: conversion from 'clock_t' {aka 'long int'} to 'double' may change value [-Wconversion] 1341 | #define DIFF_IN_SECS(S,T) ((S.tms_utime + S.tms_stime - T.tms_utime - T.tms_stime)/(double)HZ) | ^ actions.c:1366:10: note: in expansion of macro 'DIFF_IN_SECS' 1366 | rv = DIFF_IN_SECS(S, T); | ^~~~~~~~~~~~ CCLD libgvpr.la CCLD libgvpr_C.la ../../lib/sfio/sfio.h:186:29: warning: type of 'sfstderr' does not match original declaration [-Wlto-type-mismatch] 186 | SFIO_API extern Sfio_t *sfstderr; | ^ ../sfio/sfextern.c:34:9: note: 'sfstderr' was previously declared here 34 | Sfio_t *sfstderr = &_Sfstderr; | ^ ../sfio/sfextern.c:34:9: note: code may be misoptimized unless '-fno-strict-aliasing' is used ../../lib/sfio/sfio.h:184:29: warning: type of 'sfstdin' does not match original declaration [-Wlto-type-mismatch] 184 | SFIO_API extern Sfio_t *sfstdin; | ^ ../sfio/sfextern.c:32:9: note: 'sfstdin' was previously declared here 32 | Sfio_t *sfstdin = &_Sfstdin; | ^ ../sfio/sfextern.c:32:9: note: code may be misoptimized unless '-fno-strict-aliasing' is used ../../lib/sfio/sfio.h:185:29: warning: type of 'sfstdout' does not match original declaration [-Wlto-type-mismatch] 185 | SFIO_API extern Sfio_t *sfstdout; | ^ ../sfio/sfextern.c:33:9: note: 'sfstdout' was previously declared here 33 | Sfio_t *sfstdout = &_Sfstdout; | ^ ../sfio/sfextern.c:33:9: note: code may be misoptimized unless '-fno-strict-aliasing' is used ../ast/pathpath.c: In function 'pathpath': ../ast/pathpath.c:112:1: warning: function may return address of local variable [-Wreturn-local-addr] 112 | } | ^ ../ast/pathpath.c:47:10: note: declared here 47 | char buf[PATH_MAX]; | ^ In function 'exsubstr', inlined from 'eval.part.0' at ../expr/exeval.c:1232:10: ../expr/exeval.c:1060:15: warning: 'strlen' reading 1 or more bytes from a region of size 0 [-Wstringop-overread] 1060 | len = strlen(s.string); | ^ make[3]: Leaving directory '/build/graphviz/src/graphviz-4.0.0/lib/gvpr' make[3]: Entering directory '/build/graphviz/src/graphviz-4.0.0/lib' make[3]: Nothing to be done for 'all-am'. make[3]: Leaving directory '/build/graphviz/src/graphviz-4.0.0/lib' make[2]: Leaving directory '/build/graphviz/src/graphviz-4.0.0/lib' Making all in plugin make[2]: Entering directory '/build/graphviz/src/graphviz-4.0.0/plugin' Making all in core make[3]: Entering directory '/build/graphviz/src/graphviz-4.0.0/plugin/core' CC gvplugin_core.lo CC gvrender_core_dot.lo CC gvrender_core_map.lo CC gvrender_core_mp.lo CC gvrender_core_ps.lo CC gvrender_core_svg.lo CC gvrender_core_tk.lo CC gvrender_core_vml.lo CC gvrender_core_json.lo CC gvrender_core_fig.lo CC gvloadimage_core.lo CC gvrender_core_pov.lo CC gvrender_core_pic.lo gvrender_core_mp.c: In function 'mp_bezier': gvrender_core_mp.c:326:41: warning: conversion to 'long unsigned int' from 'int' may change the sign of the result [-Wsign-conversion] 326 | 1) * 20 * sizeof(char)); | ^ gvrender_core_svg.c: In function 'svg_grstyle': gvrender_core_svg.c:145:23: warning: comparing floating-point with '==' or '!=' is unsafe [-Wfloat-equal] 145 | if (obj->penwidth != PENWIDTH_NORMAL) { | ^~ gvrender_core_svg.c: In function 'svg_rgradstyle': gvrender_core_svg.c:550:15: warning: comparing floating-point with '==' or '!=' is unsafe [-Wfloat-equal] 550 | if (angle == 0.) { | ^~ gvrender_core_dot.c: In function 'xdot_style': gvrender_core_dot.c:202:28: warning: comparing floating-point with '==' or '!=' is unsafe [-Wfloat-equal] 202 | if (job->obj->penwidth != penwidth[job->obj->emit_state]) { | ^~ gvrender_core_dot.c: In function 'dot_end_graph': gvrender_core_dot.c:524:21: warning: cast between incompatible function types from 'void (*)(GVJ_t *, const char *, ...)' {aka 'void (*)(struct GVJ_s *, const char *, ...)'} to 'int (*)(void *, const char *, ...)' [-Wcast-function-type] 524 | io.printf = (printfn)gvprintf; | ^ gvrender_core_dot.c: In function 'xdot_gradient_fillcolor': gvrender_core_dot.c:637:19: warning: comparing floating-point with '==' or '!=' is unsafe [-Wfloat-equal] 637 | if (angle == 0) { | ^~ gvrender_core_dot.c: At top level: gvrender_core_dot.c:740:6: warning: no previous prototype for 'core_loadimage_xdot' [-Wmissing-prototypes] 740 | void core_loadimage_xdot(GVJ_t * job, usershape_t *us, boxf b, bool filled) | ^~~~~~~~~~~~~~~~~~~ gvrender_core_json.c: In function 'json_end_graph': gvrender_core_json.c:707:21: warning: cast between incompatible function types from 'void (*)(GVJ_t *, const char *, ...)' {aka 'void (*)(struct GVJ_s *, const char *, ...)'} to 'int (*)(void *, const char *, ...)' [-Wcast-function-type] 707 | io.printf = (printfn)gvprintf; | ^ gvrender_core_pov.c: In function 'pov_begin_layer': gvrender_core_pov.c:459:18: warning: conversion from 'int' to 'float' may change value [-Wconversion] 459 | layerz = layerNum * -10; | ^~~~~~~~ gvrender_core_pov.c: In function 'pov_ellipse': gvrender_core_pov.c:580:14: warning: conversion from 'double' to 'float' may change value [-Wfloat-conversion] 580 | cx = (A[0].x + job->translation.x) * job->scale.x; | ^ gvrender_core_pov.c:581:14: warning: conversion from 'double' to 'float' may change value [-Wfloat-conversion] 581 | cy = (A[0].y + job->translation.y) * job->scale.y; | ^ gvrender_core_pov.c:582:14: warning: conversion from 'double' to 'float' may change value [-Wfloat-conversion] 582 | rx = (A[1].x - A[0].x) * job->scale.x; | ^ gvrender_core_pov.c:583:14: warning: conversion from 'double' to 'float' may change value [-Wfloat-conversion] 583 | ry = (A[1].y - A[0].y) * job->scale.y; | ^ gvrender_core_pov.c:584:13: warning: conversion from 'double' to 'float' may change value [-Wfloat-conversion] 584 | w = job->obj->penwidth / (rx + ry) / 2.0 * 5; | ^~~ gvrender_core_vml.c: In function 'vml_grstroke': gvrender_core_vml.c:76:23: warning: comparing floating-point with '==' or '!=' is unsafe [-Wfloat-equal] 76 | if (obj->penwidth != PENWIDTH_NORMAL) | ^~ gvloadimage_core.c: In function 'core_loadimage_vml': gvloadimage_core.c:251:18: warning: conversion to 'unsigned int' from 'int' may change the sign of the result [-Wsign-conversion] 251 | graphHeight =(int)(job->bb.UR.y - job->bb.LL.y); | ^ gvrender_core_fig.c: In function 'fig_textspan': gvrender_core_fig.c:231:42: warning: cast from function call of type 'size_t' {aka 'long unsigned int'} to non-matching type 'double' [-Wbad-function-cast] 231 | double length = 2.0*font_size/3.0 * (double)strlen(span->str) / 2.0; | ^ gvrender_core_fig.c: In function 'fig_bezier': gvrender_core_fig.c:337:41: warning: conversion to 'long unsigned int' from 'int' may change the sign of the result [-Wsign-conversion] 337 | 1) * 20 * sizeof(char)); | ^ CCLD libgvplugin_core_C.la CCLD libgvplugin_core.la make[3]: Leaving directory '/build/graphviz/src/graphviz-4.0.0/plugin/core' Making all in devil make[3]: Entering directory '/build/graphviz/src/graphviz-4.0.0/plugin/devil' make[3]: Nothing to be done for 'all'. make[3]: Leaving directory '/build/graphviz/src/graphviz-4.0.0/plugin/devil' Making all in gd make[3]: Entering directory '/build/graphviz/src/graphviz-4.0.0/plugin/gd' CC gvplugin_gd.lo CC gvrender_gd.lo CC gvrender_gd_vrml.lo CC gvtextlayout_gd.lo CC gvdevice_gd.lo CC gvloadimage_gd.lo gvdevice_gd.c:20:5: warning: no previous prototype for 'gvdevice_gd_putBuf' [-Wmissing-prototypes] 20 | int gvdevice_gd_putBuf (gdIOCtx *context, const void *buffer, int len) | ^~~~~~~~~~~~~~~~~~ gvdevice_gd.c: In function 'gvdevice_gd_putBuf': gvdevice_gd.c:23:45: warning: conversion to 'size_t' {aka 'long unsigned int'} from 'int' may change the sign of the result [-Wsign-conversion] 23 | return gvwrite(gd_context->job, buffer, len); | ^~~ gvdevice_gd.c:23:12: warning: conversion from 'size_t' {aka 'long unsigned int'} to 'int' may change value [-Wconversion] 23 | return gvwrite(gd_context->job, buffer, len); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ gvdevice_gd.c: At top level: gvdevice_gd.c:27:6: warning: no previous prototype for 'gvdevice_gd_putC' [-Wmissing-prototypes] 27 | void gvdevice_gd_putC (gdIOCtx *context, int C) | ^~~~~~~~~~~~~~~~ gvdevice_gd.c: In function 'gvdevice_gd_putC': gvdevice_gd.c:30:14: warning: conversion from 'int' to 'char' may change value [-Wconversion] 30 | char c = C; | ^ gvdevice_gd.c: In function 'gd_format': gvdevice_gd.c:53:5: warning: missing initializer for field 'job' of 'gd_context_t' [-Wmissing-field-initializers] 53 | gd_context_t gd_context = {{0}}; | ^~~~~~~~~~~~ In file included from gvdevice_gd.c:12: gdioctx_wrapper.h:9:10: note: 'job' declared here 9 | GVJ_t *job; | ^~~ gvdevice_gd.c:59:33: warning: conversion to 'int' from 'unsigned int' may change the sign of the result [-Wsign-conversion] 59 | im = gdImageCreateTrueColor(width, height); | ^~~~~ gvdevice_gd.c:59:40: warning: conversion to 'int' from 'unsigned int' may change the sign of the result [-Wsign-conversion] 59 | im = gdImageCreateTrueColor(width, height); | ^~~~~~ gvdevice_gd.c:69:37: warning: conversion to 'int' from 'unsigned int' may change the sign of the result [-Wsign-conversion] 69 | im->tpixels[y][x] = (color & 0xffffff) | ((0x7f - alpha) << 24); | ^ gvdevice_gd.c:87:41: warning: conversion to 'int' from 'unsigned int' may change the sign of the result [-Wsign-conversion] 87 | im->tpixels[y][x] = (color & 0xffffff) | ((0x7f - alpha) << 24); | ^ gvtextlayout_gd.c:101:7: warning: no previous prototype for 'gd_psfontResolve' [-Wmissing-prototypes] 101 | char* gd_psfontResolve (PostscriptAlias* pa) | ^~~~~~~~~~~~~~~~ gvloadimage_gd.c: In function 'gd_loadimage_gd': gvloadimage_gd.c:91:72: warning: unused parameter 'filled' [-Wunused-parameter] 91 | static void gd_loadimage_gd(GVJ_t * job, usershape_t *us, boxf b, bool filled) | ^ gvloadimage_gd.c: In function 'gd_loadimage_cairo': gvloadimage_gd.c:113:17: warning: conversion to 'unsigned int' from 'int' may change the sign of the result [-Wsign-conversion] 113 | width = im->sx; | ^~ gvloadimage_gd.c:114:18: warning: conversion to 'unsigned int' from 'int' may change the sign of the result [-Wsign-conversion] 114 | height = im->sy; | ^~ gvloadimage_gd.c:120:57: warning: conversion to 'int' from 'unsigned int' may change the sign of the result [-Wsign-conversion] 120 | width, height, stride); | ^~~~~ gvloadimage_gd.c:120:64: warning: conversion to 'int' from 'unsigned int' may change the sign of the result [-Wsign-conversion] 120 | width, height, stride); | ^~~~~~ gvloadimage_gd.c:120:72: warning: conversion to 'int' from 'unsigned int' may change the sign of the result [-Wsign-conversion] 120 | width, height, stride); | ^~~~~~ gvloadimage_gd.c:126:30: warning: conversion to 'unsigned int' from 'int' may change the sign of the result [-Wsign-conversion] 126 | px = gdImageTrueColorPixel(im, x, y); | ^~~~~~~~~~~~~~~~~~~~~ gvloadimage_gd.c:137:30: warning: conversion to 'unsigned int' from 'int' may change the sign of the result [-Wsign-conversion] 137 | px = gdImageTrueColorPixel(im, x, y); | ^~~~~~~~~~~~~~~~~~~~~ gvloadimage_gd.c:150:31: warning: conversion from 'int' to 'unsigned char' may change value [-Wconversion] 150 | *data++ = im->blue[px]; | ^~ gvloadimage_gd.c:151:31: warning: conversion from 'int' to 'unsigned char' may change value [-Wconversion] 151 | *data++ = im->green[px]; | ^~ gvloadimage_gd.c:152:31: warning: conversion from 'int' to 'unsigned char' may change value [-Wconversion] 152 | *data++ = im->red[px]; | ^~ gvloadimage_gd.c:153:34: warning: comparison of integer expressions of different signedness: 'unsigned int' and 'int' [-Wsign-compare] 153 | *data++ = (px==im->transparent)?0x00:0xff; | ^~ gvloadimage_gd.c:104:75: warning: unused parameter 'filled' [-Wunused-parameter] 104 | static void gd_loadimage_cairo(GVJ_t * job, usershape_t *us, boxf b, bool filled) | ^ gvloadimage_gd.c: In function 'gd_loadimage_ps': gvloadimage_gd.c:170:72: warning: unused parameter 'filled' [-Wunused-parameter] 170 | static void gd_loadimage_ps(GVJ_t * job, usershape_t *us, boxf b, bool filled) | ^ gvrender_gd_vrml.c: In function 'set_penstyle': gvrender_gd.c: In function 'gdgen_begin_page': gvrender_gd_vrml.c:180:13: warning: conversion from 'double' to 'int' may change value [-Wfloat-conversion] 180 | width = obj->penwidth * job->scale.x; | ^~~ gvrender_gd.c:93:27: warning: conversion from 'double' to 'unsigned int' may change value [-Wfloat-conversion] 93 | job->width *= scale; | ^~~~~ gvrender_gd.c:94:28: warning: conversion from 'double' to 'unsigned int' may change value [-Wfloat-conversion] 94 | job->height *= scale; | ^~~~~ gvrender_gd_vrml.c:185:15: warning: comparing floating-point with '==' or '!=' is unsafe [-Wfloat-equal] 185 | if (width != PENWIDTH_NORMAL) { | ^~ gvrender_gd.c:107:44: warning: conversion to 'int' from 'unsigned int' may change the sign of the result [-Wsign-conversion] 107 | im = gdImageCreateTrueColor(job->width, job->height); | ~~~^~~~~~~ gvrender_gd.c:107:56: warning: conversion to 'int' from 'unsigned int' may change the sign of the result [-Wsign-conversion] 107 | im = gdImageCreateTrueColor(job->width, job->height); | ~~~^~~~~~~~ gvrender_gd.c:115:35: warning: conversion to 'int' from 'unsigned int' may change the sign of the result [-Wsign-conversion] 115 | im = gdImageCreate(job->width, job->height); | ~~~^~~~~~~ gvrender_gd.c:115:47: warning: conversion to 'int' from 'unsigned int' may change the sign of the result [-Wsign-conversion] 115 | im = gdImageCreate(job->width, job->height); | ~~~^~~~~~~~ gvrender_gd.c: In function 'gdgen_end_page': gvrender_gd.c:148:5: warning: missing initializer for field 'job' of 'gd_context_t' [-Wmissing-field-initializers] 148 | gd_context_t gd_context = {{0}}; | ^~~~~~~~~~~~ In file included from gvrender_gd.c:12: gdioctx_wrapper.h:9:10: note: 'job' declared here 9 | GVJ_t *job; | ^~~ gvrender_gd_vrml.c: In function 'vrml_begin_node': gvrender_gd_vrml.c:254:18: warning: conversion from 'double' to 'int' may change value [-Wfloat-conversion] 254 | width = (ND_lw(n) + ND_rw(n)) * state->Scale + 2 * NODE_PAD; | ^ gvrender_gd_vrml.c:255:18: warning: conversion from 'double' to 'int' may change value [-Wfloat-conversion] 255 | height = (ND_ht(n) ) * state->Scale + 2 * NODE_PAD; | ^ gvrender_gd.c:166:9: warning: switch missing default case [-Wswitch-default] 166 | switch (job->render.id) { | ^~~~~~ gvrender_gd.c: In function 'gdgen_missingfont': gvrender_gd.c:230:37: warning: unused parameter 'err' [-Wunused-parameter] 230 | static void gdgen_missingfont(char *err, char *fontreq) | ~~~~~~^~~ gvrender_gd.c: At top level: gvrender_gd.c:262:6: warning: no previous prototype for 'gdgen_text' [-Wmissing-prototypes] 262 | void gdgen_text(gdImagePtr im, pointf spf, pointf epf, int fontcolor, double fontsize, int fontdpi, double fontangle, char *fontname, char *str) | ^~~~~~~~~~ gvrender_gd_vrml.c: In function 'finishSegment': gvrender_gd_vrml.c:322:9: warning: comparing floating-point with '==' or '!=' is unsafe [-Wfloat-equal] 322 | if (!x && !z) /* parallel to y-axis */ | ^ gvrender_gd_vrml.c:322:15: warning: comparing floating-point with '==' or '!=' is unsafe [-Wfloat-equal] 322 | if (!x && !z) /* parallel to y-axis */ | ^ gvrender_gd.c: In function 'gdgen_textspan': gvrender_gd.c:369:21: warning: conversion from 'double' to 'int' may change value [-Wfloat-conversion] 369 | job->dpi.x, | ~~~~~~~~^~ gvrender_gd_vrml.c: In function 'interpolate_zcoord': gvrender_gd_vrml.c:394:14: warning: comparing floating-point with '==' or '!=' is unsafe [-Wfloat-equal] 394 | if (fstz == sndz) | ^~ gvrender_gd_vrml.c:397:19: warning: comparing floating-point with '==' or '!=' is unsafe [-Wfloat-equal] 397 | if (snd.y == fst.y) | ^~ gvrender_gd.c: In function 'gdgen_set_penstyle': gvrender_gd.c:398:13: warning: conversion from 'double' to 'int' may change value [-Wfloat-conversion] 398 | width = obj->penwidth * job->zoom; | ^~~ gvrender_gd.c:403:15: warning: comparing floating-point with '==' or '!=' is unsafe [-Wfloat-equal] 403 | if (width != PENWIDTH_NORMAL) { | ^~ gvrender_gd.c: In function 'gdgen_bezier': gvrender_gd.c:424:50: warning: unused parameter 'arrow_at_start' [-Wunused-parameter] 424 | gdgen_bezier(GVJ_t * job, pointf * A, int n, int arrow_at_start, | ~~~~^~~~~~~~~~~~~~ gvrender_gd_vrml.c: In function 'vrml_bezier': gvrender_gd.c:425:18: warning: unused parameter 'arrow_at_end' [-Wunused-parameter] 425 | int arrow_at_end, int filled) | ~~~~^~~~~~~~~~~~ gvrender_gd_vrml.c:486:48: warning: unused parameter 'arrow_at_start' [-Wunused-parameter] 486 | vrml_bezier(GVJ_t *job, pointf * A, int n, int arrow_at_start, int arrow_at_end, int filled) | ~~~~^~~~~~~~~~~~~~ gvrender_gd_vrml.c:486:68: warning: unused parameter 'arrow_at_end' [-Wunused-parameter] 486 | vrml_bezier(GVJ_t *job, pointf * A, int n, int arrow_at_start, int arrow_at_end, int filled) | ~~~~^~~~~~~~~~~~ gvrender_gd.c: In function 'gdgen_polygon': gvrender_gd_vrml.c:486:86: warning: unused parameter 'filled' [-Wunused-parameter] 486 | vrml_bezier(GVJ_t *job, pointf * A, int n, int arrow_at_start, int arrow_at_end, int filled) | ~~~~^~~~~~ gvrender_gd.c:488:40: warning: conversion to 'long unsigned int' from 'int' may change the sign of the result [-Wsign-conversion] 488 | points = realloc(points, n * sizeof(gdPoint)); | ^ In file included from gvrender_gd_vrml.c:26: gvrender_gd_vrml.c: In function 'vrml_polygon': ../../lib/common/memory.h:24:38: warning: conversion to 'size_t' {aka 'long unsigned int'} from 'int' may change the sign of the result [-Wsign-conversion] 24 | #define N_GGNEW(n,t) (t*)calloc((n),sizeof(t)) | ^~~ gvrender_gd_vrml.c:607:18: note: in expansion of macro 'N_GGNEW' 607 | points = N_GGNEW(np, gdPoint); | ^~~~~~~ gvrender_gd_vrml.c:594:5: warning: switch missing default case [-Wswitch-default] 594 | switch (obj->type) { | ^~~~~~ gvrender_gd_vrml.c: In function 'doSphere': gvrender_gd_vrml.c:697:31: warning: unused parameter 'n' [-Wunused-parameter] 697 | doSphere (GVJ_t *job, node_t *n, pointf p, double z, double rx, double ry) | ~~~~~~~~^ gvrender_gd_vrml.c:697:72: warning: unused parameter 'ry' [-Wunused-parameter] 697 | doSphere (GVJ_t *job, node_t *n, pointf p, double z, double rx, double ry) | ~~~~~~~^~ gvrender_gd_vrml.c: In function 'vrml_ellipse': gvrender_gd_vrml.c:746:5: warning: switch missing default case [-Wswitch-default] 746 | switch (obj->type) { | ^~~~~~ CCLD libgvplugin_gd_C.la CCLD libgvplugin_gd.la make[3]: Leaving directory '/build/graphviz/src/graphviz-4.0.0/plugin/gd' Making all in gdk make[3]: Entering directory '/build/graphviz/src/graphviz-4.0.0/plugin/gdk' CC gvplugin_gdk.lo CC gvdevice_gdk.lo CC gvloadimage_gdk.lo CCLD libgvplugin_gdk_C.la CCLD libgvplugin_gdk.la make[3]: Leaving directory '/build/graphviz/src/graphviz-4.0.0/plugin/gdk' Making all in gdiplus make[3]: Entering directory '/build/graphviz/src/graphviz-4.0.0/plugin/gdiplus' make[3]: Nothing to be done for 'all'. make[3]: Leaving directory '/build/graphviz/src/graphviz-4.0.0/plugin/gdiplus' Making all in gs make[3]: Entering directory '/build/graphviz/src/graphviz-4.0.0/plugin/gs' CC gvplugin_gs.lo CC gvloadimage_gs.lo CCLD libgvplugin_gs_C.la CCLD libgvplugin_gs.la make[3]: Leaving directory '/build/graphviz/src/graphviz-4.0.0/plugin/gs' Making all in gtk make[3]: Entering directory '/build/graphviz/src/graphviz-4.0.0/plugin/gtk' CC gvplugin_gtk.lo CC gvdevice_gtk.lo CC support.lo CC interface.lo CC callbacks.lo callbacks.c: In function 'on_new1_activate': callbacks.c:24:58: warning: unused parameter 'user_data' [-Wunused-parameter] 24 | gpointer user_data) | ~~~~~~~~~~~~~~~~~^~~~~~~~~ callbacks.c: In function 'on_open1_activate': callbacks.c:69:58: warning: unused parameter 'user_data' [-Wunused-parameter] 69 | gpointer user_data) | ~~~~~~~~~~~~~~~~~^~~~~~~~~ callbacks.c: In function 'on_save1_activate': callbacks.c:107:58: warning: unused parameter 'user_data' [-Wunused-parameter] 107 | gpointer user_data) | ~~~~~~~~~~~~~~~~~^~~~~~~~~ callbacks.c: In function 'on_save_as1_activate': callbacks.c:120:58: warning: unused parameter 'user_data' [-Wunused-parameter] 120 | gpointer user_data) | ~~~~~~~~~~~~~~~~~^~~~~~~~~ callbacks.c: In function 'on_quit1_activate': callbacks.c:131:58: warning: unused parameter 'user_data' [-Wunused-parameter] 131 | gpointer user_data) | ~~~~~~~~~~~~~~~~~^~~~~~~~~ callbacks.c: In function 'on_cut1_activate': callbacks.c:139:58: warning: unused parameter 'menuitem' [-Wunused-parameter] 139 | on_cut1_activate (GtkMenuItem *menuitem, | ~~~~~~~~~~~~~~~~~^~~~~~~~ callbacks.c:140:58: warning: unused parameter 'user_data' [-Wunused-parameter] 140 | gpointer user_data) | ~~~~~~~~~~~~~~~~~^~~~~~~~~ callbacks.c: In function 'on_copy1_activate': callbacks.c:148:58: warning: unused parameter 'menuitem' [-Wunused-parameter] 148 | on_copy1_activate (GtkMenuItem *menuitem, | ~~~~~~~~~~~~~~~~~^~~~~~~~ callbacks.c:149:58: warning: unused parameter 'user_data' [-Wunused-parameter] 149 | gpointer user_data) | ~~~~~~~~~~~~~~~~~^~~~~~~~~ callbacks.c: In function 'on_paste1_activate': callbacks.c:156:58: warning: unused parameter 'menuitem' [-Wunused-parameter] 156 | on_paste1_activate (GtkMenuItem *menuitem, | ~~~~~~~~~~~~~~~~~^~~~~~~~ callbacks.c:157:58: warning: unused parameter 'user_data' [-Wunused-parameter] 157 | gpointer user_data) | ~~~~~~~~~~~~~~~~~^~~~~~~~~ callbacks.c: In function 'on_delete1_activate': callbacks.c:164:58: warning: unused parameter 'menuitem' [-Wunused-parameter] 164 | on_delete1_activate (GtkMenuItem *menuitem, | ~~~~~~~~~~~~~~~~~^~~~~~~~ callbacks.c:165:58: warning: unused parameter 'user_data' [-Wunused-parameter] 165 | gpointer user_data) | ~~~~~~~~~~~~~~~~~^~~~~~~~~ callbacks.c: In function 'on_about1_activate': callbacks.c:173:58: warning: unused parameter 'user_data' [-Wunused-parameter] 173 | gpointer user_data) | ~~~~~~~~~~~~~~~~~^~~~~~~~~ callbacks.c: In function 'load_store_with_attrs': callbacks.c:195:51: warning: unused parameter 'job' [-Wunused-parameter] 195 | load_store_with_attrs(GtkListStore *model, GVJ_t *job) | ~~~~~~~^~~ callbacks.c: In function 'on_drawingarea1_expose_event': callbacks.c:216:18: warning: conversion to 'unsigned int' from 'gint' {aka 'int'} may change the sign of the result [-Wsign-conversion] 216 | job->width = widget->allocation.width; | ^~~~~~ callbacks.c:217:19: warning: conversion to 'unsigned int' from 'gint' {aka 'int'} may change the sign of the result [-Wsign-conversion] 217 | job->height = widget->allocation.height; | ^~~~~~ callbacks.c:203:58: warning: unused parameter 'event' [-Wunused-parameter] 203 | GdkEventExpose *event, | ~~~~~~~~~~~~~~~~~^~~~~ callbacks.c:204:58: warning: unused parameter 'user_data' [-Wunused-parameter] 204 | gpointer user_data) | ~~~~~~~~~~~~~~~~~^~~~~~~~~ callbacks.c: In function 'on_drawingarea1_motion_notify_event': callbacks.c:241:58: warning: unused parameter 'user_data' [-Wunused-parameter] 241 | gpointer user_data) | ~~~~~~~~~~~~~~~~~^~~~~~~~~ callbacks.c: In function 'on_drawingarea2_motion_notify_event': callbacks.c:255:58: warning: unused parameter 'widget' [-Wunused-parameter] 255 | on_drawingarea2_motion_notify_event (GtkWidget *widget, | ~~~~~~~~~~~~~~~~~^~~~~~ callbacks.c:256:58: warning: unused parameter 'event' [-Wunused-parameter] 256 | GdkEventMotion *event, | ~~~~~~~~~~~~~~~~~^~~~~ callbacks.c:257:58: warning: unused parameter 'user_data' [-Wunused-parameter] 257 | gpointer user_data) | ~~~~~~~~~~~~~~~~~^~~~~~~~~ callbacks.c: In function 'on_drawingarea2_expose_event': callbacks.c:281:18: warning: conversion to 'unsigned int' from 'gint' {aka 'int'} may change the sign of the result [-Wsign-conversion] 281 | job->width = widget->allocation.width; | ^~~~~~ callbacks.c:282:19: warning: conversion to 'unsigned int' from 'gint' {aka 'int'} may change the sign of the result [-Wsign-conversion] 282 | job->height = widget->allocation.height; | ^~~~~~ callbacks.c:267:58: warning: unused parameter 'event' [-Wunused-parameter] 267 | GdkEventExpose *event, | ~~~~~~~~~~~~~~~~~^~~~~ callbacks.c:268:58: warning: unused parameter 'user_data' [-Wunused-parameter] 268 | gpointer user_data) | ~~~~~~~~~~~~~~~~~^~~~~~~~~ callbacks.c: In function 'on_window1_delete_event': callbacks.c:296:58: warning: unused parameter 'widget' [-Wunused-parameter] 296 | on_window1_delete_event (GtkWidget *widget, | ~~~~~~~~~~~~~~~~~^~~~~~ callbacks.c:297:58: warning: unused parameter 'event' [-Wunused-parameter] 297 | GdkEvent *event, | ~~~~~~~~~~~~~~~~~^~~~~ callbacks.c:298:58: warning: unused parameter 'user_data' [-Wunused-parameter] 298 | gpointer user_data) | ~~~~~~~~~~~~~~~~~^~~~~~~~~ callbacks.c: In function 'on_drawingarea1_configure_event': callbacks.c:331:22: warning: comparison of integer expressions of different signedness: 'gint' {aka 'int'} and 'unsigned int' [-Wsign-compare] 331 | if (event->width > job->width || event->height > job->height) | ^ callbacks.c:331:52: warning: comparison of integer expressions of different signedness: 'gint' {aka 'int'} and 'unsigned int' [-Wsign-compare] 331 | if (event->width > job->width || event->height > job->height) | ^ callbacks.c:333:18: warning: conversion to 'unsigned int' from 'gint' {aka 'int'} may change the sign of the result [-Wsign-conversion] 333 | job->width = event->width; | ^~~~~ gvdevice_gtk.c: In function 'attr_value_edited_cb': callbacks.c:334:19: warning: conversion to 'unsigned int' from 'gint' {aka 'int'} may change the sign of the result [-Wsign-conversion] 334 | job->height = event->height; | ^~~~~ callbacks.c:308:58: warning: unused parameter 'user_data' [-Wunused-parameter] 308 | gpointer user_data) | ~~~~~~~~~~~~~~~~~^~~~~~~~~ callbacks.c: In function 'on_drawingarea1_button_press_event': callbacks.c:352:46: warning: conversion to 'int' from 'guint' {aka 'unsigned int'} may change the sign of the result [-Wsign-conversion] 352 | (job->callbacks->button_press)(job, event->button, pointer); | ~~~~~^~~~~~~~ gvdevice_gtk.c:34:22: warning: declaration of 'path' shadows a global declaration [-Wshadow] 34 | GtkTreePath *path; | ^~~~ callbacks.c:344:58: warning: unused parameter 'user_data' [-Wunused-parameter] 344 | gpointer user_data) | ~~~~~~~~~~~~~~~~~^~~~~~~~~ In file included from ../../lib/gvc/gvplugin_device.h:13, from gvdevice_gtk.c:16: ../../lib/common/types.h:99:7: note: shadowed declaration is here 99 | } path; | ^~~~ callbacks.c: In function 'on_drawingarea1_button_release_event': gvdevice_gtk.c:31:43: warning: unused parameter 'renderer' [-Wunused-parameter] 31 | attr_value_edited_cb(GtkCellRendererText *renderer, gchar *pathStr, gchar *newText, gpointer data) | ~~~~~~~~~~~~~~~~~~~~~^~~~~~~~ callbacks.c:370:48: warning: conversion to 'int' from 'guint' {aka 'unsigned int'} may change the sign of the result [-Wsign-conversion] 370 | (job->callbacks->button_release)(job, event->button, pointer); | ~~~~~^~~~~~~~ callbacks.c:362:58: warning: unused parameter 'user_data' [-Wunused-parameter] 362 | gpointer user_data) | ~~~~~~~~~~~~~~~~~^~~~~~~~~ callbacks.c: In function 'on_drawingarea1_scroll_event': callbacks.c:387:5: warning: switch missing default case [-Wswitch-default] 387 | switch (((GdkEventScroll *)event)->direction) { | ^~~~~~ callbacks.c:379:58: warning: unused parameter 'user_data' [-Wunused-parameter] 379 | gpointer user_data) | ~~~~~~~~~~~~~~~~~^~~~~~~~~ callbacks.c: In function 'on_button1_button_press_event': callbacks.c:404:58: warning: unused parameter 'widget' [-Wunused-parameter] 404 | on_button1_button_press_event (GtkWidget *widget, | ~~~~~~~~~~~~~~~~~^~~~~~ callbacks.c:405:58: warning: unused parameter 'event' [-Wunused-parameter] 405 | GdkEventButton *event, | ~~~~~~~~~~~~~~~~~^~~~~ callbacks.c:406:58: warning: unused parameter 'user_data' [-Wunused-parameter] 406 | gpointer user_data) | ~~~~~~~~~~~~~~~~~^~~~~~~~~ CCLD libgvplugin_gtk_C.la CCLD libgvplugin_gtk.la make[3]: Leaving directory '/build/graphviz/src/graphviz-4.0.0/plugin/gtk' Making all in lasi make[3]: Entering directory '/build/graphviz/src/graphviz-4.0.0/plugin/lasi' make[3]: Nothing to be done for 'all'. make[3]: Leaving directory '/build/graphviz/src/graphviz-4.0.0/plugin/lasi' Making all in pango make[3]: Entering directory '/build/graphviz/src/graphviz-4.0.0/plugin/pango' CC gvplugin_pango.lo CC gvrender_pango.lo CC gvgetfontlist_pango.lo CC gvtextlayout_pango.lo CC gvloadimage_pango.lo gvrender_pango.c: In function 'cairogen_begin_page': gvrender_pango.c:136:31: warning: conversion from 'double' to 'unsigned int' may change value [-Wfloat-conversion] 136 | job->width *= scale; | ^~~~~ gvrender_pango.c:137:32: warning: conversion from 'double' to 'unsigned int' may change value [-Wfloat-conversion] 137 | job->height *= scale; | ^~~~~ gvrender_pango.c:145:28: warning: conversion to 'int' from 'unsigned int' may change the sign of the result [-Wsign-conversion] 145 | job->width, job->height); | ~~~^~~~~~~ gvrender_pango.c:145:40: warning: conversion to 'int' from 'unsigned int' may change the sign of the result [-Wsign-conversion] 145 | job->width, job->height); | ~~~^~~~~~~~ gvrender_pango.c: In function 'cairo_gradient_fill': gvrender_pango.c:320:14: warning: conversion from 'double' to 'float' may change value [-Wfloat-conversion] 320 | r1 = G[1].x; /* Set a r2/4 in get_gradient_points */ | ^ gvrender_pango.c:321:14: warning: conversion from 'double' to 'float' may change value [-Wfloat-conversion] 321 | r2 = G[1].y; | ^ gvrender_pango.c:322:19: warning: comparing floating-point with '==' or '!=' is unsafe [-Wfloat-equal] 322 | if (angle == 0) { | ^~ gvtextlayout_pango.c: In function 'pango_textlayout': gvtextlayout_pango.c:117:74: warning: comparing floating-point with '==' or '!=' is unsafe [-Wfloat-equal] 117 | if (!fontname || strcmp(fontname, span->font->name) != 0 || fontsize != span->font->size) { | ^~ gvtextlayout_pango.c:163:17: warning: 'pango_fc_font_lock_face' is deprecated: Use 'pango_font_get_hb_font' instead [-Wdeprecated-declarations] 163 | face = pango_fc_font_lock_face(fcfont); | ^~~~ In file included from gvtextlayout_pango.c:26: /usr/include/pango-1.0/pango/pangofc-font.h:114:12: note: declared here 114 | FT_Face pango_fc_font_lock_face (PangoFcFont *font); | ^~~~~~~~~~~~~~~~~~~~~~~ gvtextlayout_pango.c:182:17: warning: 'pango_fc_font_unlock_face' is deprecated: Use 'pango_font_get_hb_font' instead [-Wdeprecated-declarations] 182 | pango_fc_font_unlock_face(fcfont); | ^~~~~~~~~~~~~~~~~~~~~~~~~ /usr/include/pango-1.0/pango/pangofc-font.h:116:12: note: declared here 116 | void pango_fc_font_unlock_face (PangoFcFont *font); | ^~~~~~~~~~~~~~~~~~~~~~~~~ gvtextlayout_pango.c:203:14: warning: declaration of 'buf' shadows a previous local [-Wshadow] 203 | char buf[BUFSIZ]; | ^~~ gvtextlayout_pango.c:81:17: note: shadowed declaration is here 81 | static char buf[1024]; /* returned in fontpath, only good until next call */ | ^~~ CCLD libgvplugin_pango_C.la CCLD libgvplugin_pango.la make[3]: Leaving directory '/build/graphviz/src/graphviz-4.0.0/plugin/pango' Making all in quartz make[3]: Entering directory '/build/graphviz/src/graphviz-4.0.0/plugin/quartz' make[3]: Nothing to be done for 'all'. make[3]: Leaving directory '/build/graphviz/src/graphviz-4.0.0/plugin/quartz' Making all in rsvg make[3]: Entering directory '/build/graphviz/src/graphviz-4.0.0/plugin/rsvg' CC gvplugin_rsvg.lo CC gvloadimage_rsvg.lo gvloadimage_rsvg.c: In function 'gvloadimage_rsvg_free': gvloadimage_rsvg.c:34:5: warning: 'rsvg_handle_close' is deprecated: Use 'rsvg_handle_read_stream_sync' instead [-Wdeprecated-declarations] 34 | rsvg_handle_close(us->data, NULL); | ^~~~~~~~~~~~~~~~~ In file included from gvloadimage_rsvg.c:21: /usr/include/librsvg-2.0/librsvg/rsvg.h:605:10: note: declared here 605 | gboolean rsvg_handle_close (RsvgHandle *handle, GError **error); | ^~~~~~~~~~~~~~~~~ gvloadimage_rsvg.c: In function 'gvloadimage_rsvg_load': gvloadimage_rsvg.c:120:17: warning: 'rsvg_handle_write' is deprecated: Use 'rsvg_handle_read_stream_sync' instead [-Wdeprecated-declarations] 120 | if (rsvg_handle_write(rsvgh, (const guchar *)fileBuf, (gsize)fileSize, &err) == FALSE) { | ^~ /usr/include/librsvg-2.0/librsvg/rsvg.h:577:10: note: declared here 577 | gboolean rsvg_handle_write (RsvgHandle *handle, | ^~~~~~~~~~~~~~~~~ gvloadimage_rsvg.c:136:17: warning: 'rsvg_handle_close' is deprecated: Use 'rsvg_handle_read_stream_sync' instead [-Wdeprecated-declarations] 136 | rsvg_handle_close(rsvgh, &err); | ^~~~~~~~~~~~~~~~~ /usr/include/librsvg-2.0/librsvg/rsvg.h:605:10: note: declared here 605 | gboolean rsvg_handle_close (RsvgHandle *handle, GError **error); | ^~~~~~~~~~~~~~~~~ gvloadimage_rsvg.c: In function 'gvloadimage_rsvg_cairo': gvloadimage_rsvg.c:172:9: warning: 'rsvg_handle_render_cairo' is deprecated: Use 'rsvg_handle_render_document' instead [-Wdeprecated-declarations] 172 | rsvg_handle_render_cairo(rsvgh, cr); | ^~~~~~~~~~~~~~~~~~~~~~~~ In file included from /usr/include/librsvg-2.0/librsvg/rsvg.h:1450: /usr/include/librsvg-2.0/librsvg/rsvg-cairo.h:88:10: note: declared here 88 | gboolean rsvg_handle_render_cairo (RsvgHandle *handle, cairo_t *cr); | ^~~~~~~~~~~~~~~~~~~~~~~~ gvloadimage_rsvg.c:155:79: warning: unused parameter 'filled' [-Wunused-parameter] 155 | static void gvloadimage_rsvg_cairo(GVJ_t * job, usershape_t *us, boxf b, bool filled) | ^ CCLD libgvplugin_rsvg_C.la CCLD libgvplugin_rsvg.la make[3]: Leaving directory '/build/graphviz/src/graphviz-4.0.0/plugin/rsvg' Making all in visio make[3]: Entering directory '/build/graphviz/src/graphviz-4.0.0/plugin/visio' CC gvplugin_visio.lo CXX VisioGraphic.lo CXX VisioRender.lo CXX VisioText.lo CXX gvrender_visio_vdx.lo CXXLD libgvplugin_visio_C.la CXXLD libgvplugin_visio.la make[3]: Leaving directory '/build/graphviz/src/graphviz-4.0.0/plugin/visio' Making all in xlib make[3]: Entering directory '/build/graphviz/src/graphviz-4.0.0/plugin/xlib' cp ../../plugin/xlib/vimdot.sh vimdot rm -f vimdot.1.pdf; pdffile=vimdot.1.pdf; psfile=${pdffile%pdf}ps; \ groff -Tps -man vimdot.1 > $psfile || { rm -f $psfile; exit 1; }; \ ps2pdf $psfile && rm -f $psfile || { rm -f $psfile; exit 1; } chmod +x vimdot CC gvplugin_xlib.lo CC gvdevice_xlib.lo CCLD libgvplugin_xlib_C.la CCLD libgvplugin_xlib.la make[3]: Leaving directory '/build/graphviz/src/graphviz-4.0.0/plugin/xlib' Making all in dot_layout make[3]: Entering directory '/build/graphviz/src/graphviz-4.0.0/plugin/dot_layout' CC gvplugin_dot_layout.lo CC gvlayout_dot_layout.lo CCLD libgvplugin_dot_layout_C.la CCLD libgvplugin_dot_layout.la make[3]: Leaving directory '/build/graphviz/src/graphviz-4.0.0/plugin/dot_layout' Making all in neato_layout make[3]: Entering directory '/build/graphviz/src/graphviz-4.0.0/plugin/neato_layout' CC gvplugin_neato_layout.lo CC gvlayout_neato_layout.lo CCLD libgvplugin_neato_layout_C.la CXXLD libgvplugin_neato_layout.la make[3]: Leaving directory '/build/graphviz/src/graphviz-4.0.0/plugin/neato_layout' Making all in webp make[3]: Entering directory '/build/graphviz/src/graphviz-4.0.0/plugin/webp' CC gvplugin_webp.lo CC gvloadimage_webp.lo CC gvdevice_webp.lo CCLD libgvplugin_webp_C.la CCLD libgvplugin_webp.la make[3]: Leaving directory '/build/graphviz/src/graphviz-4.0.0/plugin/webp' Making all in poppler make[3]: Entering directory '/build/graphviz/src/graphviz-4.0.0/plugin/poppler' make[3]: Nothing to be done for 'all'. make[3]: Leaving directory '/build/graphviz/src/graphviz-4.0.0/plugin/poppler' make[3]: Entering directory '/build/graphviz/src/graphviz-4.0.0/plugin' make[3]: Nothing to be done for 'all-am'. make[3]: Leaving directory '/build/graphviz/src/graphviz-4.0.0/plugin' make[2]: Leaving directory '/build/graphviz/src/graphviz-4.0.0/plugin' Making all in cmd make[2]: Entering directory '/build/graphviz/src/graphviz-4.0.0/cmd' Making all in dot make[3]: Entering directory '/build/graphviz/src/graphviz-4.0.0/cmd/dot' rm -f dot.1.pdf; pdffile=dot.1.pdf; psfile=${pdffile%pdf}ps; \ groff -Tps -man dot.1 > $psfile || { rm -f $psfile; exit 1; }; \ ps2pdf $psfile && rm -f $psfile || { rm -f $psfile; exit 1; } rm -f osage.1.pdf; pdffile=osage.1.pdf; psfile=${pdffile%pdf}ps; \ groff -Tps -man osage.1 > $psfile || { rm -f $psfile; exit 1; }; \ ps2pdf $psfile && rm -f $psfile || { rm -f $psfile; exit 1; } rm -f patchwork.1.pdf; pdffile=patchwork.1.pdf; psfile=${pdffile%pdf}ps; \ groff -Tps -man patchwork.1 > $psfile || { rm -f $psfile; exit 1; }; \ ps2pdf $psfile && rm -f $psfile || { rm -f $psfile; exit 1; } CC dot-dot.o CC dot-no_builtins.o CC dot_builtins-dot.o CC dot_builtins-dot_builtins.o CXXLD dot_builtins CCLD dot /usr/bin/ld: warning: libSvtAv1Enc.so.0, needed by /usr/lib/libavif.so.14, not found (try using -rpath or -rpath-link) /usr/bin/ld: /usr/lib/libavif.so.14: undefined reference to `svt_av1_enc_deinit' /usr/bin/ld: /usr/lib/libavif.so.14: undefined reference to `svt_av1_get_version' /usr/bin/ld: /usr/lib/libavif.so.14: undefined reference to `svt_av1_enc_send_picture' /usr/bin/ld: /usr/lib/libavif.so.14: undefined reference to `svt_av1_enc_get_packet' /usr/bin/ld: /usr/lib/libavif.so.14: undefined reference to `svt_av1_enc_release_out_buffer' /usr/bin/ld: /usr/lib/libavif.so.14: undefined reference to `svt_av1_enc_init_handle' /usr/bin/ld: /usr/lib/libavif.so.14: undefined reference to `svt_av1_enc_set_parameter' /usr/bin/ld: /usr/lib/libavif.so.14: undefined reference to `svt_av1_enc_init' /usr/bin/ld: /usr/lib/libavif.so.14: undefined reference to `svt_av1_enc_deinit_handle' collect2: error: ld returned 1 exit status make[3]: *** [Makefile:806: dot_builtins] Error 1 make[3]: Leaving directory '/build/graphviz/src/graphviz-4.0.0/cmd/dot' make[2]: *** [Makefile:580: all-recursive] Error 1 make[2]: Leaving directory '/build/graphviz/src/graphviz-4.0.0/cmd' make[1]: *** [Makefile:801: all-recursive] Error 1 make[1]: Leaving directory '/build/graphviz/src/graphviz-4.0.0' make: *** [Makefile:630: all] Error 2 ==> ERROR: A failure occurred in build().  Aborting... ==> ERROR: Build failed, check /var/lib/archbuild/extra-riscv64/felix37/build receiving incremental file list graphviz-4.0.0-1-riscv64-build.log graphviz-4.0.0-1-riscv64-prepare.log sent 62 bytes received 98,305 bytes 39,346.80 bytes/sec total size is 868,672 speedup is 8.83