gmake[2]: Entering directory '/jenkins/jobs/oi-userland/workspace/components/image/graphviz' gmake[2]: warning: jobserver unavailable: using -j1. Add '+' to parent make rule. Source /data/userland-archives/graphviz-2.40.1.tar.gz... validating signature... skipping (no signature URL) validating hash... ok patching file tclpkg/Makefile.in Hunk #1 succeeded at 1026 (offset 16 lines). patching file libltdl/config/ltmain.sh patching file tclpkg/gv/demo/modgraph.py patching file configure.ac Hunk #1 succeeded at 1625 (offset 55 lines). patching file config/config_ruby.rb patching file tclpkg/gv/Makefile.am Hunk #1 succeeded at 160 (offset 15 lines). patching file tclpkg/gv/Makefile.in Hunk #1 succeeded at 1046 with fuzz 1 (offset 89 lines). 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: You should add the contents of 'm4/ltargz.m4' to 'aclocal.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' /usr/sfw/share/aclocal/gtk.m4:7: warning: underquoted definition of AM_PATH_GTK /usr/sfw/share/aclocal/gtk.m4:7: run info Automake 'Extending aclocal' /usr/sfw/share/aclocal/gtk.m4:7: or see https://www.gnu.org/software/automake/manual/automake.html#Extending-aclocal cmd/dotty/Makefile.am:21: warning: source file 'mswin32/dotty.c' is in a subdirectory, cmd/dotty/Makefile.am:21: but option 'subdir-objects' is disabled automake: warning: possible forward-incompatibility. automake: At least a source file is in a subdirectory, but the 'subdir-objects' automake: automake option hasn't been enabled. For now, the corresponding output automake: object file(s) will be placed in the top-level directory. However, automake: this behaviour will change in future Automake versions: they will automake: unconditionally cause object files to be placed in the same subdirectory automake: of the corresponding sources. automake: You are advised to start using 'subdir-objects' option throughout your automake: project, to avoid future incompatibilities. cmd/lneato/Makefile.am:19: warning: source file '${top_srcdir}/cmd/dotty/mswin32/dotty.c' is in a subdirectory, cmd/lneato/Makefile.am:19: but option 'subdir-objects' is disabled cmd/smyrna/Makefile.am:47: warning: source file 'gui/appmouse.c' is in a subdirectory, cmd/smyrna/Makefile.am:47: but option 'subdir-objects' is disabled cmd/smyrna/Makefile.am:47: warning: source file 'gui/callbacks.c' is in a subdirectory, cmd/smyrna/Makefile.am:47: but option 'subdir-objects' is disabled cmd/smyrna/Makefile.am:47: warning: source file 'gui/datalistcallbacks.c' is in a subdirectory, cmd/smyrna/Makefile.am:47: but option 'subdir-objects' is disabled cmd/smyrna/Makefile.am:47: warning: source file 'gui/frmobjectui.c' is in a subdirectory, cmd/smyrna/Makefile.am:47: but option 'subdir-objects' is disabled cmd/smyrna/Makefile.am:47: warning: source file 'gui/glcompui.c' is in a subdirectory, cmd/smyrna/Makefile.am:47: but option 'subdir-objects' is disabled cmd/smyrna/Makefile.am:47: warning: source file 'gui/gui.c' is in a subdirectory, cmd/smyrna/Makefile.am:47: but option 'subdir-objects' is disabled cmd/smyrna/Makefile.am:47: warning: source file 'gui/menucallbacks.c' is in a subdirectory, cmd/smyrna/Makefile.am:47: but option 'subdir-objects' is disabled cmd/smyrna/Makefile.am:47: warning: source file 'gui/toolboxcallbacks.c' is in a subdirectory, cmd/smyrna/Makefile.am:47: but option 'subdir-objects' is disabled cmd/smyrna/Makefile.am:47: warning: source file 'gui/topviewsettings.c' is in a subdirectory, cmd/smyrna/Makefile.am:47: but option 'subdir-objects' is disabled lib/vpsc/Makefile.am:14: warning: source file 'pairingheap/PairingHeap.cpp' is in a subdirectory, lib/vpsc/Makefile.am:14: but option 'subdir-objects' is disabled tclpkg/tcldot/Makefile.am:41: warning: source file '$(top_srcdir)/tclpkg/gdtclft/gdtclft.c' is in a subdirectory, tclpkg/tcldot/Makefile.am:41: but option 'subdir-objects' is disabled symlink cloning /jenkins/jobs/oi-userland/workspace/components/image/graphviz/graphviz-2.40.1 to /jenkins/jobs/oi-userland/workspace/components/image/graphviz/build/i86 checking build system type... i386-pc-solaris2.11 checking host system type... i386-pc-solaris2.11 checking for a BSD-compatible install... /usr/bin/ginstall -c checking whether build environment is sane... yes checking for a thread-safe mkdir -p... /usr/bin/gmkdir -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 whether make supports the include directive... yes (GNU style) checking for gcc... /usr/gcc/7/bin/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 we are using the GNU C compiler... yes checking whether /usr/gcc/7/bin/gcc accepts -g... yes checking for /usr/gcc/7/bin/gcc option to accept ISO C89... none needed checking whether /usr/gcc/7/bin/gcc understands -c and -o together... yes checking dependency style of /usr/gcc/7/bin/gcc... gcc3 checking for library containing strerror... none required checking for flex... flex checking lex output file root... lex.yy checking lex library... -lfl checking whether yytext is a pointer... yes checking for bison... bison -y checking for gawk... (cached) gawk checking whether ln -s works... yes checking how to print strings... print -r checking for a sed that does not truncate output... /usr/bin/gsed checking for grep that handles long lines and -e... /usr/bin/ggrep checking for egrep... /usr/bin/ggrep -E checking for fgrep... /usr/bin/ggrep -F checking for ld used by /usr/gcc/7/bin/gcc... /usr/bin/ld checking if the linker (/usr/bin/ld) is GNU ld... no checking for BSD- or MS-compatible name lister (nm)... /usr/bin/nm -p checking the name lister (/usr/bin/nm -p) interface... BSD nm checking the maximum length of command line arguments... 786240 checking how to convert i386-pc-solaris2.11 file names to i386-pc-solaris2.11 format... func_convert_file_noop checking how to convert i386-pc-solaris2.11 file names to toolchain format... func_convert_file_noop checking for /usr/bin/ld option to reload object files... -r checking for objdump... objdump checking how to recognize dependent libraries... pass_all checking for dlltool... no checking how to associate runtime and link libraries... print -r -- checking for ar... ar checking for archiver @FILE support... no checking for strip... strip checking for ranlib... ranlib checking command to parse /usr/bin/nm -p output from /usr/gcc/7/bin/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... mt checking if mt is a manifest tool... no checking how to run the C preprocessor... /usr/gcc/7/bin/gcc -E checking for ANSI C header files... yes checking for sys/types.h... yes checking for sys/stat.h... yes checking for stdlib.h... yes checking for string.h... yes checking for memory.h... yes checking for strings.h... yes checking for inttypes.h... yes checking for stdint.h... yes checking for unistd.h... yes checking for dlfcn.h... yes checking for objdir... .libs checking if /usr/gcc/7/bin/gcc supports -fno-rtti -fno-exceptions... no checking for /usr/gcc/7/bin/gcc option to produce PIC... -fPIC -DPIC checking if /usr/gcc/7/bin/gcc PIC flag -fPIC -DPIC works... yes checking if /usr/gcc/7/bin/gcc static flag -static works... no checking if /usr/gcc/7/bin/gcc supports -c -o file.o... yes checking if /usr/gcc/7/bin/gcc supports -c -o file.o... (cached) yes checking whether the /usr/gcc/7/bin/gcc linker (/usr/bin/ld) supports shared libraries... yes checking whether -lc should be explicitly linked in... no checking dynamic linker characteristics... solaris2.11 ld.so checking how to hardcode library paths into programs... immediate checking whether stripping libraries is possible... no checking if libtool supports shared libraries... yes checking whether to build shared libraries... yes checking whether to build static libraries... no checking for gsed... /usr/bin/gsed checking for gsort... gsort checking for egrep... /usr/bin/ggrep -E checking for groff... groff checking for ps2pdf... ps2pdf checking for pstopdf... (cached) 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/i86/tclsh8.6 checking for /usr/gcc/7/bin/gcc option to accept ISO C99... none needed checking whether we are using the GNU C++ compiler... yes checking whether /usr/gcc/7/bin/g++ accepts -g... yes checking dependency style of /usr/gcc/7/bin/g++... gcc3 checking how to run the C++ preprocessor... /usr/gcc/7/bin/g++ -E checking for ld used by /usr/gcc/7/bin/g++... /usr/bin/ld checking if the linker (/usr/bin/ld) is GNU ld... no checking whether the /usr/gcc/7/bin/g++ linker (/usr/bin/ld) supports shared libraries... yes checking for /usr/gcc/7/bin/g++ option to produce PIC... -fPIC -DPIC checking if /usr/gcc/7/bin/g++ PIC flag -fPIC -DPIC works... yes checking if /usr/gcc/7/bin/g++ static flag -static works... no checking if /usr/gcc/7/bin/g++ supports -c -o file.o... yes checking if /usr/gcc/7/bin/g++ supports -c -o file.o... (cached) yes checking whether the /usr/gcc/7/bin/g++ linker (/usr/bin/ld) supports shared libraries... yes checking dynamic linker characteristics... solaris2.11 ld.so checking how to hardcode library paths into programs... immediate checking for gcc... gcc checking whether we are using the GNU Objective C compiler... yes checking whether gcc accepts -g... yes checking dependency style of gcc... gcc3 checking for inline... inline checking for windres... no checking for i386-pc-solaris2.11-windres... no checking for pid_t... yes checking for ssize_t... yes checking for uid_t in sys/types.h... yes checking malloc.h usability... yes checking malloc.h presence... yes checking for malloc.h... yes checking fcntl.h usability... yes checking fcntl.h presence... yes checking for fcntl.h... yes checking search.h usability... yes checking search.h presence... yes checking for search.h... yes checking values.h usability... yes checking values.h presence... yes checking for values.h... yes checking limits.h usability... yes checking limits.h presence... yes checking for limits.h... yes checking termios.h usability... yes checking termios.h presence... yes checking for termios.h... yes checking errno.h usability... yes checking errno.h presence... yes checking for errno.h... yes checking for unistd.h... (cached) yes checking for strings.h... (cached) yes checking sys/time.h usability... yes checking sys/time.h presence... yes checking for sys/time.h... yes checking for sys/types.h... (cached) yes checking sys/select.h usability... yes checking sys/select.h presence... yes checking for sys/select.h... yes checking for sys/stat.h... (cached) yes checking sys/mman.h usability... yes checking sys/mman.h presence... yes checking for sys/mman.h... yes checking sys/ioctl.h usability... yes checking sys/ioctl.h presence... yes checking for sys/ioctl.h... yes checking sys/inotify.h usability... no checking sys/inotify.h presence... no checking for sys/inotify.h... no checking crt_externs.h usability... no checking crt_externs.h presence... no checking for crt_externs.h... no checking whether time.h and sys/time.h may both be included... yes checking for dirent.h that defines DIR... yes checking for library containing opendir... none required checking for stdbool.h that conforms to C99... yes checking for _Bool... yes checking for main in -lm... yes checking for log2... yes checking for sincos... yes checking libgen.h usability... yes checking libgen.h presence... yes checking for libgen.h... yes checking for basename in -lgen... yes checking for lrand48... yes checking for drand48... yes checking for srand48... yes checking for setmode... no checking for setenv... yes checking for getenv... yes checking for strerror... yes checking for cbrt... no checking for vsnprintf... yes checking for _NSGetEnviron... no checking for strcasecmp... yes checking for strncasecmp... yes checking for strcasestr... 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 /lib/64 /lib/amd64 /usr/lib/64 /usr/lib/amd64 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... no checking for error_t... no checking for argz_add... no checking for argz_append... no checking for argz_count... no checking for argz_create_sep... no checking for argz_insert... no checking for argz_next... no checking for argz_stringify... no 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... yes 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... yes checking for strlcpy... yes checking for lt_dladvise_init in -lltdl... yes checking for X... libraries /usr/lib, headers checking for gethostbyname... no checking for gethostbyname in -lnsl... yes checking for connect... no checking for connect in -lsocket... 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... mcs checking for guile2... no checking for guile1.8... no checking for guile... guile checking for lua... lua checking for lua... (cached) lua checking for pkg-config... pkg-config checking for Lua headers and libraries with pkg-config... checking for Lua compiling and linking... checking for ocaml... ocaml checking for ocamlopt... ocamlopt checking caml/mlvalues.h usability... yes checking caml/mlvalues.h presence... yes checking for caml/mlvalues.h... yes checking for perl... /usr/perl5/5.22/bin/perl checking EXTERN.h usability... yes checking EXTERN.h presence... yes checking for EXTERN.h... yes checking for python2.7... /usr/bin/python2.7 checking Python.h usability... yes checking Python.h presence... yes checking for Python.h... yes checking for libR... no checking for ruby... no checking for ruby-2.3... yes checking for ruby... /usr/ruby/2.3/bin/ruby checking tcl.h usability... yes checking tcl.h presence... yes checking for tcl.h... yes using /usr/lib/tclConfig.sh checking for connect... (cached) no checking for main in -lsocket... yes checking for gethostbyname... (cached) no checking for main in -lnsl... yes checking for expat-config... no checking expat.h usability... yes checking expat.h presence... yes checking for expat.h... yes checking for main in -lexpat... yes checking IL/il.h usability... no checking IL/il.h presence... no 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 main in -lXpm... yes checking X11/Intrinsic.h usability... yes checking X11/Intrinsic.h presence... yes checking for X11/Intrinsic.h... yes checking for X11/Xaw/Text.h... yes checking for main in -lXaw... yes checking zlib.h usability... yes checking zlib.h presence... yes checking for zlib.h... yes checking for main in -lz... yes checking for deflateBound... yes checking for poppler-glib... yes checking for librsvg-2.0... yes checking for librsvg-2.0 >= 2.36.0 cairo >= 1.0.0... yes checking ghostscript/iapi.h usability... yes checking ghostscript/iapi.h presence... yes checking for ghostscript/iapi.h... yes checking for main in -lgs... yes checking for pangocairo >= 1.14.9... 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 lasi... no checking for freetype2... yes checking for fontconfig... yes checking for gdk-2.0... yes checking for g_object_unref... yes checking for g_type_init... yes checking for gdk-pixbuf-2.0... yes checking for gtk+-2.0 >= 2.7.0... yes checking for gtkgl-2.0... no checking for gtkglext-1.0... no checking for gts... yes checking for ann... no checking for libglade-2.0... yes checking for gdlib >= 2.0.33... yes checking gd.h usability... yes checking gd.h presence... yes checking for gd.h... yes checking for main in -lgd... yes checking GL/glut.h usability... yes checking GL/glut.h presence... yes checking for GL/glut.h... yes checking for main in -lglut... yes checking if FILE struct contains _cnt... yes checking if FILE struct contains _r... no checking if FILE struct contains _next... no checking if FILE struct contains _IO_read_end... no checking if errno externs are declared... no checking if intptr_t is declared... yes checking if assert needs __eprintf... no checking size of long long... 8 checking size of int... 4 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/spine/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/glitz/Makefile config.status: creating plugin/gs/Makefile config.status: creating plugin/gtk/Makefile config.status: creating plugin/lasi/Makefile config.status: creating plugin/ming/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/lefty/ws/x11/libfilereq/Makefile config.status: creating cmd/lefty/ws/x11/Makefile config.status: creating cmd/lefty/ws/mswin32/Makefile config.status: creating cmd/lefty/ws/Makefile config.status: creating cmd/lefty/os/unix/Makefile config.status: creating cmd/lefty/os/mswin32/Makefile config.status: creating cmd/lefty/os/Makefile config.status: creating cmd/lefty/dot2l/Makefile config.status: creating cmd/lefty/examples/Makefile config.status: creating cmd/lefty/Makefile config.status: creating cmd/lneato/Makefile config.status: creating cmd/dotty/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 rtest/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 share/Makefile config.status: creating share/examples/Makefile config.status: creating share/gui/Makefile config.status: creating graphviz.spec config.status: creating Doxyfile config.status: creating config.h config.status: executing depfiles commands config.status: executing libtool commands === configuring in libltdl (/jenkins/jobs/oi-userland/workspace/components/image/graphviz/build/i86/libltdl) configure: running /bin/bash /jenkins/jobs/oi-userland/workspace/components/image/graphviz/graphviz-2.40.1/libltdl/configure --disable-option-checking '--prefix=/usr' 'CC=/usr/gcc/7/bin/gcc' 'CXX=/usr/gcc/7/bin/g++' 'F77=/usr/gcc/7/bin/gfortran' 'FC=/usr/gcc/7/bin/gfortran' 'CFLAGS=-m32 -O3 ' 'CXXFLAGS= -m32 -O3 ' 'FFLAGS= -m32 -O3 ' 'FCFLAGS=-m32 -O3 ' 'LDFLAGS=-m32' 'PKG_CONFIG_PATH=/usr/lib/pkgconfig' '--mandir=/usr/share/man' '--bindir=/usr/bin' '--libdir=/usr/lib' '--sbindir=/usr/sbin' '--enable-java=no' '--without-included-ltdl' '--enable-python=no' '--enable-python26=no' '--enable-python27=yes' '--enable-php=no' '--x-libraries=/usr/lib' '--with-qt=no' '--with-gdincludedir=/usr/include/gd2' 'CPPFLAGS=-I/usr/lib/amd64/ocaml -I/usr/jdk/instances/openjdk1.8.0/include -I/usr/jdk/instances/openjdk1.8.0/include/solaris' --cache-file=/dev/null --srcdir=/jenkins/jobs/oi-userland/workspace/components/image/graphviz/graphviz-2.40.1/libltdl checking for a BSD-compatible install... /usr/bin/ginstall -c checking whether build environment is sane... yes checking for a thread-safe mkdir -p... /usr/bin/gmkdir -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... i386-pc-solaris2.11 checking host system type... i386-pc-solaris2.11 checking how to print strings... print -r checking whether make supports the include directive... yes (GNU style) checking for gcc... /usr/gcc/7/bin/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 we are using the GNU C compiler... yes checking whether /usr/gcc/7/bin/gcc accepts -g... yes checking for /usr/gcc/7/bin/gcc option to accept ISO C89... none needed checking whether /usr/gcc/7/bin/gcc understands -c and -o together... yes checking dependency style of /usr/gcc/7/bin/gcc... gcc3 checking for a sed that does not truncate output... /usr/bin/gsed checking for grep that handles long lines and -e... /usr/bin/ggrep checking for egrep... /usr/bin/ggrep -E checking for fgrep... /usr/bin/ggrep -F checking for ld used by /usr/gcc/7/bin/gcc... /usr/bin/ld checking if the linker (/usr/bin/ld) is GNU ld... no checking for BSD- or MS-compatible name lister (nm)... /usr/bin/nm -p checking the name lister (/usr/bin/nm -p) interface... BSD nm checking whether ln -s works... yes checking the maximum length of command line arguments... 786240 checking how to convert i386-pc-solaris2.11 file names to i386-pc-solaris2.11 format... func_convert_file_noop checking how to convert i386-pc-solaris2.11 file names to toolchain format... func_convert_file_noop checking for /usr/bin/ld option to reload object files... -r checking for objdump... objdump checking how to recognize dependent libraries... pass_all checking for dlltool... no checking how to associate runtime and link libraries... print -r -- checking for ar... ar checking for archiver @FILE support... no checking for strip... strip checking for ranlib... ranlib checking command to parse /usr/bin/nm -p output from /usr/gcc/7/bin/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... mt checking if mt is a manifest tool... no checking how to run the C preprocessor... /usr/gcc/7/bin/gcc -E checking for ANSI C header files... yes checking for sys/types.h... yes checking for sys/stat.h... yes checking for stdlib.h... yes checking for string.h... yes checking for memory.h... yes checking for strings.h... yes checking for inttypes.h... yes checking for stdint.h... yes checking for unistd.h... yes checking for dlfcn.h... yes checking for objdir... .libs checking if /usr/gcc/7/bin/gcc supports -fno-rtti -fno-exceptions... no checking for /usr/gcc/7/bin/gcc option to produce PIC... -fPIC -DPIC checking if /usr/gcc/7/bin/gcc PIC flag -fPIC -DPIC works... yes checking if /usr/gcc/7/bin/gcc static flag -static works... no checking if /usr/gcc/7/bin/gcc supports -c -o file.o... yes checking if /usr/gcc/7/bin/gcc supports -c -o file.o... (cached) yes checking whether the /usr/gcc/7/bin/gcc linker (/usr/bin/ld) supports shared libraries... yes checking whether -lc should be explicitly linked in... no checking dynamic linker characteristics... solaris2.11 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... yes checking whether stripping libraries is possible... no 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 /lib/64 /lib/amd64 /usr/lib/64 /usr/lib/amd64 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... no checking for error_t... no checking for argz_add... no checking for argz_append... no checking for argz_count... no checking for argz_create_sep... no checking for argz_insert... no checking for argz_next... no checking for argz_stringify... no checking whether libtool supports -dlopen/-dlpreopen... yes checking for unistd.h... (cached) yes checking for dl.h... no checking for sys/dl.h... yes 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... yes checking for strlcpy... yes 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-2.40.1 will be compiled with the following: options: cgraph: Yes (always enabled) digcola: Yes expat: Yes fontconfig: Yes freetype: Yes glut: Yes ann: No (ANN library not available) gts: Yes ipsepcola: No (disabled by default - C++ portability issues) ltdl: Yes ortho: Yes sfdp: Yes shared: Yes static: No (disabled by default) qt: No (disabled) 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) lefty: Yes smyrna: No (disabled by default - experimental) gvedit: No (disabled) 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 glitz: No (disabled by default - incomplete) gtk: Yes lasi: No (lasi library not available) ming: No (disabled by default - incomplete) pangocairo: Yes poppler: Yes quartz: No (disabled by default - Mac only) rsvg: Yes visio: No (disabled by default - experimental) webp: No (disabled by default - experimental) xlib: Yes language extensions: gv_sharp: Yes gv_go: No (disabled by default - experimental) gv_guile: No (guile is too old) gv_io: No (disabled by default - no swig support yet) gv_java: No (disabled) gv_lua: Yes gv_ocaml: Yes gv_perl: Yes gv_php: No (disabled) gv_python: No (disabled) gv_python23: No (disabled by default - for multiversion installs) gv_python24: No (disabled by default - for multiversion installs) gv_python25: No (disabled by default - for multiversion installs) gv_python26: No (disabled by default - for multiversion installs) gv_python27: Yes gv_python34: No (disabled by default - for multiversion installs) gv_R: No (R not available) gv_ruby: Yes gv_tcl: Yes tcldot: Yes tclpathplan: Yes gdtclft: Yes Testing utilities: criterion: No (Criterion unit testing framework not installed) make[3]: Entering directory '/jenkins/jobs/oi-userland/workspace/components/image/graphviz/build/i86' make[4]: Entering directory '/jenkins/jobs/oi-userland/workspace/components/image/graphviz/build/i86' Making all in libltdl make[5]: Entering directory '/jenkins/jobs/oi-userland/workspace/components/image/graphviz/build/i86/libltdl' GEN libltdl/lt__argz.h make[6]: Entering directory '/jenkins/jobs/oi-userland/workspace/components/image/graphviz/build/i86/libltdl' CC libltdlc_la-ltdl.lo CC libltdlc_la-lt__alloc.lo CC libltdlc_la-lt_dlloader.lo CC libltdlc_la-lt_error.lo CC lt__argz.lo CC libltdlc_la-slist.lo CC loaders/dlopen.lo CC loaders/libltdlc_la-preopen.lo CCLD dlopen.la CCLD libltdlc.la make[6]: Leaving directory '/jenkins/jobs/oi-userland/workspace/components/image/graphviz/build/i86/libltdl' make[5]: Leaving directory '/jenkins/jobs/oi-userland/workspace/components/image/graphviz/build/i86/libltdl' Making all in lib make[5]: Entering directory '/jenkins/jobs/oi-userland/workspace/components/image/graphviz/build/i86/lib' Making all in cdt make[6]: Entering directory '/jenkins/jobs/oi-userland/workspace/components/image/graphviz/build/i86/lib/cdt' CC dthash.lo CC dtextract.lo CC dtmethod.lo CC dtdisc.lo CC dtopen.lo CC dtflatten.lo CC dtclose.lo CC dtlist.lo dthash.c: In function 'dthtab': dthash.c:49:47: warning: conversion to 'unsigned int' from 'int' may change the sign of the result [-Wsign-conversion] if(!(s = (Dtlink_t**)(*dt->memoryf)(dt,olds,n*sizeof(Dtlink_t*),dt->disc)) ) ^ In file included from dthash.c:1:0: dthdr.h:39:25: warning: conversion to 'unsigned int' from 'int' may change the sign of the result [-Wsign-conversion] #define HINDEX(n,h) ((h)&((n)-1)) ^ dthash.c:61:17: note: in expansion of macro 'HINDEX' if((is = s + HINDEX(n,t->hash)) == hs) ^~~~~~ dthash.c: In function 'dthash': dthdr.h:39:25: warning: conversion to 'unsigned int' from 'int' may change the sign of the result [-Wsign-conversion] #define HINDEX(n,h) ((h)&((n)-1)) ^ dthash.c:137:24: note: in expansion of macro 'HINDEX' s = dt->data->htab + HINDEX(dt->data->ntab,dt->data->here->hash); ^~~~~~ dthdr.h:39:25: warning: conversion to 'unsigned int' from 'int' may change the sign of the result [-Wsign-conversion] #define HINDEX(n,h) ((h)&((n)-1)) ^ dthash.c:166:25: note: in expansion of macro 'HINDEX' s = dt->data->htab + HINDEX(dt->data->ntab,hsh); ^~~~~~ dthdr.h:39:25: warning: conversion to 'unsigned int' from 'int' may change the sign of the result [-Wsign-conversion] #define HINDEX(n,h) ((h)&((n)-1)) ^ dthash.c:174:29: note: in expansion of macro 'HINDEX' *(s = dt->data->htab + HINDEX(dt->data->ntab,hsh)); ^~~~~~ In file included from dthdr.h:13:0, from dthash.c:1: dthash.c:178:35: warning: conversion to 'size_t {aka unsigned int}' from 'int' may change the sign of the result [-Wsign-conversion] if(_DTCMP(dt,key,k,disc,cmpf,sz) == 0) ^ ./cdt.h:229:45: note: in definition of macro '_DTCMP' (sz <= 0 ? strcmp(k1,k2) : memcmp(k1,k2,sz)) ) ^~ In file included from dthash.c:1:0: dthdr.h:39:25: warning: conversion to 'unsigned int' from 'int' may change the sign of the result [-Wsign-conversion] #define HINDEX(n,h) ((h)&((n)-1)) ^ dthash.c:236:24: note: in expansion of macro 'HINDEX' s = dt->data->htab + HINDEX(dt->data->ntab,hsh); ^~~~~~ In file included from dthdr.h:13:0, from dtlist.c:1: dtlist.c: In function 'dtlist': dtlist.c:127:33: warning: conversion to 'size_t {aka unsigned int}' from 'int' may change the sign of the result [-Wsign-conversion] if(_DTCMP(dt,key,k,disc,cmpf,sz) == 0) ^ ./cdt.h:229:45: note: in definition of macro '_DTCMP' (sz <= 0 ? strcmp(k1,k2) : memcmp(k1,k2,sz)) ) ^~ CC dtrenew.lo dtdisc.c: In function 'dtmemory': dtdisc.c:10:29: warning: unused parameter 'dt' [-Wunused-parameter] static void* dtmemory(Dt_t* dt,void* addr,size_t size,Dtdisc_t* disc) ^~ dtdisc.c:10:65: warning: unused parameter 'disc' [-Wunused-parameter] static void* dtmemory(Dt_t* dt,void* addr,size_t size,Dtdisc_t* disc) ^~~~ CC dtsize.lo CC dtrestore.lo CC dtstat.lo CC dtstrhash.lo CC dttree.lo CC dttreeset.lo CC dtview.lo In file included from dtrenew.c:1:0: dtrenew.c: In function 'dtrenew': dthdr.h:39:25: warning: conversion to 'unsigned int' from 'int' may change the sign of the result [-Wsign-conversion] #define HINDEX(n,h) ((h)&((n)-1)) ^ dtrenew.c:37:25: note: in expansion of macro 'HINDEX' { s = dt->data->htab + HINDEX(dt->data->ntab,e->hash); ^~~~~~ dtstrhash.c: In function 'dtstrhash': dtstrhash.c:22:11: warning: conversion to 'unsigned int' from 'int' may change the sign of the result [-Wsign-conversion] h = (h + (s[0]<<8) + s[1])*DT_PRIME; ^ dtstrhash.c:28:11: warning: conversion to 'unsigned int' from 'int' may change the sign of the result [-Wsign-conversion] h = (h + (s[0]<<8) + s[1])*DT_PRIME; ^ dtstrhash.c:30:11: warning: conversion to 'unsigned int' from 'int' may change the sign of the result [-Wsign-conversion] h = (h + (s[0]<<8))*DT_PRIME; ^ dtstrhash.c:32:11: warning: conversion to 'unsigned int' from 'int' may change the sign of the result [-Wsign-conversion] return (h+n)*DT_PRIME; ^ dtstat.c: In function 'dtstat': dtstat.c:59:44: warning: conversion to 'unsigned int' from 'int' may change the sign of the result [-Wsign-conversion] if(!(Count = (int*)malloc((ds->dt_max+1)*sizeof(int))) ) ^ dtstat.c:73:43: warning: conversion to 'unsigned int' from 'int' may change the sign of the result [-Wsign-conversion] if(!(Count = (int*)malloc((ds->dt_n+1)*sizeof(int))) ) ^ In file included from dthdr.h:13:0, from dttree.c:1: dttree.c: In function 'dttree': dttree.c:70:33: warning: conversion to 'size_t {aka unsigned int}' from 'int' may change the sign of the result [-Wsign-conversion] if(_DTCMP(dt,key,k,disc,cmpf,sz) != 0) ^ ./cdt.h:229:45: note: in definition of macro '_DTCMP' (sz <= 0 ? strcmp(k1,k2) : memcmp(k1,k2,sz)) ) ^~ dttree.c:101:41: warning: conversion to 'size_t {aka unsigned int}' from 'int' may change the sign of the result [-Wsign-conversion] if((cmp = _DTCMP(dt,key,k,disc,cmpf,sz)) == 0) ^ ./cdt.h:229:45: note: in definition of macro '_DTCMP' (sz <= 0 ? strcmp(k1,k2) : memcmp(k1,k2,sz)) ) ^~ dttree.c:143:40: warning: conversion to 'size_t {aka unsigned int}' from 'int' may change the sign of the result [-Wsign-conversion] if((cmp = _DTCMP(dt,key,k,disc,cmpf,sz)) == 0) ^ ./cdt.h:229:45: note: in definition of macro '_DTCMP' (sz <= 0 ? strcmp(k1,k2) : memcmp(k1,k2,sz)) ) ^~ dttree.c:148:42: warning: conversion to 'size_t {aka unsigned int}' from 'int' may change the sign of the result [-Wsign-conversion] if((cmp = _DTCMP(dt,key,k,disc,cmpf,sz)) < 0) ^ ./cdt.h:229:45: note: in definition of macro '_DTCMP' (sz <= 0 ? strcmp(k1,k2) : memcmp(k1,k2,sz)) ) ^~ CC dtwalk.lo dttree.c:175:42: warning: conversion to 'size_t {aka unsigned int}' from 'int' may change the sign of the result [-Wsign-conversion] if((cmp = _DTCMP(dt,key,k,disc,cmpf,sz)) > 0) ^ ./cdt.h:229:45: note: in definition of macro '_DTCMP' (sz <= 0 ? strcmp(k1,k2) : memcmp(k1,k2,sz)) ) ^~ dttree.c:222:35: warning: conversion to 'size_t {aka unsigned int}' from 'int' may change the sign of the result [-Wsign-conversion] if(_DTCMP(dt,key,k,disc,cmpf,sz) != 0) ^ ./cdt.h:229:45: note: in definition of macro '_DTCMP' (sz <= 0 ? strcmp(k1,k2) : memcmp(k1,k2,sz)) ) ^~ dttreeset.c: In function 'dttreeset': dttreeset.c:35:23: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] { for(minp = 0; minp < DT_MINP; ++minp) ^ dttreeset.c:38:11: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] if(minp <= DT_MINP-4) /* use log(size) + 4 */ ^~ dttreeset.c:42:40: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] if((dt->data->minp = minp + (minp%2)) > DT_MINP) ^ In file included from dthdr.h:13:0, from dtview.c:1: dtview.c: In function 'dtvsearch': dtview.c:41:40: warning: conversion to 'size_t {aka unsigned int}' from 'int' may change the sign of the result [-Wsign-conversion] { cmp = _DTCMP(d,ok,nk,d->disc,cmpf,sz); ^ ./cdt.h:229:45: note: in definition of macro '_DTCMP' (sz <= 0 ? strcmp(k1,k2) : memcmp(k1,k2,sz)) ) ^~ dtview.c:13:12: warning: variable 'lk' set but not used [-Wunused-but-set-variable] int cmp, lk, sz, ky; ^~ CCLD libcdt_C.la CCLD libcdt.la make[6]: Leaving directory '/jenkins/jobs/oi-userland/workspace/components/image/graphviz/build/i86/lib/cdt' Making all in cgraph make[6]: Entering directory '/jenkins/jobs/oi-userland/workspace/components/image/graphviz/build/i86/lib/cgraph' CC agxbuf.lo CC flatten.lo CC attr.lo CC agerror.lo CC apply.lo CC edge.lo CC grammar.lo CC graph.lo y.tab.c: In function 'aagparse': y.tab.c:1330:13: warning: conversion to 'aagtype_int16 {aka short int}' from 'int' may alter its value [-Wconversion] *yyssp = yystate; ^~~~~~~ y.tab.c:1335:26: warning: conversion to 'unsigned int' from 'int' may change the sign of the result [-Wsign-conversion] YYSIZE_T yysize = yyssp - yyss + 1; ^~~~~~ ../../lib/cgraph/grammar.y: In function 'delete_items': ../../lib/cgraph/grammar.y:244:3: warning: switch missing default case [-Wswitch-default] switch(p->tag) { ^~~~~~ ../../lib/cgraph/grammar.y: In function 'attrstmt': ../../lib/cgraph/grammar.y:348:2: warning: switch missing default case [-Wswitch-default] switch(tkind) { ^~~~~~ ../../lib/cgraph/grammar.y: In function 'getedgeitems': ../../lib/cgraph/grammar.y:401:30: warning: unused parameter 'x' [-Wunused-parameter] static void getedgeitems(int x) ^ ../../lib/cgraph/grammar.y: In function 'startgraph': ../../lib/cgraph/grammar.y:545:18: warning: conversion to 'unsigned char:1' from 'int' may alter its value [-Wconversion] req.directed = directed; ^~~~~~~~ ../../lib/cgraph/grammar.y:546:16: warning: conversion to 'unsigned char:1' from 'int' may alter its value [-Wconversion] req.strict = strict; ^~~~~~ graph.c: In function 'agopen1': graph.c:81:13: warning: conversion to 'unsigned int:28' from 'uint64_t {aka long long unsigned int}' may alter its value [-Wconversion] AGSEQ(g) = agnextseq(par, AGRAPH); ^~~~~~~~~ graph.c: At top level: graph.c:242:5: warning: no previous prototype for 'agraphidcmpf' [-Wmissing-prototypes] int agraphidcmpf(Dict_t * d, void *arg0, void *arg1, Dtdisc_t * disc) ^~~~~~~~~~~~ graph.c: In function 'agraphidcmpf': graph.c:248:9: warning: conversion to 'ptrdiff_t {aka int}' from 'IDTYPE {aka long long unsigned int}' may alter its value [-Wconversion] v = (AGID(sg0) - AGID(sg1)); ^ graph.c:242:27: warning: unused parameter 'd' [-Wunused-parameter] int agraphidcmpf(Dict_t * d, void *arg0, void *arg1, Dtdisc_t * disc) ^ graph.c:242:65: warning: unused parameter 'disc' [-Wunused-parameter] int agraphidcmpf(Dict_t * d, void *arg0, void *arg1, Dtdisc_t * disc) ^~~~ graph.c: At top level: graph.c:252:5: warning: no previous prototype for 'agraphseqcmpf' [-Wmissing-prototypes] int agraphseqcmpf(Dict_t * d, void *arg0, void *arg1, Dtdisc_t * disc) ^~~~~~~~~~~~~ graph.c: In function 'agraphseqcmpf': graph.c:252:28: warning: unused parameter 'd' [-Wunused-parameter] int agraphseqcmpf(Dict_t * d, void *arg0, void *arg1, Dtdisc_t * disc) ^ graph.c:252:66: warning: unused parameter 'disc' [-Wunused-parameter] int agraphseqcmpf(Dict_t * d, void *arg0, void *arg1, Dtdisc_t * disc) ^~~~ graph.c: At top level: graph.c:276:1: warning: missing initializer for field 'flatlock' of 'Agdesc_t {aka struct Agdesc_s}' [-Wmissing-field-initializers] Agdesc_t Agdirected = { 1, 0, 0, 1 }; ^~~~~~~~ In file included from ./cghdr.h:24:0, from graph.c:15: ./cgraph.h:145:14: note: 'flatlock' declared here unsigned flatlock:1; /* if sets are flattened into lists in cdt */ ^~~~~~~~ graph.c:277:1: warning: missing initializer for field 'flatlock' of 'Agdesc_t {aka struct Agdesc_s}' [-Wmissing-field-initializers] Agdesc_t Agstrictdirected = { 1, 1, 0, 1 }; ^~~~~~~~ In file included from ./cghdr.h:24:0, from graph.c:15: ./cgraph.h:145:14: note: 'flatlock' declared here unsigned flatlock:1; /* if sets are flattened into lists in cdt */ ^~~~~~~~ graph.c:278:1: warning: missing initializer for field 'flatlock' of 'Agdesc_t {aka struct Agdesc_s}' [-Wmissing-field-initializers] Agdesc_t Agundirected = { 0, 0, 0, 1 }; ^~~~~~~~ In file included from ./cghdr.h:24:0, from graph.c:15: ./cgraph.h:145:14: note: 'flatlock' declared here unsigned flatlock:1; /* if sets are flattened into lists in cdt */ ^~~~~~~~ graph.c:279:1: warning: missing initializer for field 'flatlock' of 'Agdesc_t {aka struct Agdesc_s}' [-Wmissing-field-initializers] Agdesc_t Agstrictundirected = { 0, 1, 0, 1 }; ^~~~~~~~ In file included from ./cghdr.h:24:0, from graph.c:15: ./cgraph.h:145:14: note: 'flatlock' declared here unsigned flatlock:1; /* if sets are flattened into lists in cdt */ ^~~~~~~~ graph.c:285:6: warning: no previous prototype for 'scndump' [-Wmissing-prototypes] void scndump(Agraph_t *g, char *file) ^~~~~~~ attr.c:34:1: warning: missing initializer for field 'memoryf' of 'Dtdisc_t {aka struct _dtdisc_s}' [-Wmissing-field-initializers] }; ^ In file included from ./cgraph.h:18:0, from ./cghdr.h:24, from attr.c:14: /jenkins/jobs/oi-userland/workspace/components/image/graphviz/graphviz-2.40.1/lib/cdt/cdt.h:85:13: note: 'memoryf' declared here Dtmemory_f memoryf;/* to allocate/free memory */ ^~~~~~~ attr.c:38:1: warning: missing initializer for field 'has_attrs' of 'Agdesc_t {aka struct Agdesc_s}' [-Wmissing-field-initializers] static Agdesc_t ProtoDesc = { 1, 0, 1, 0, 1, 1 }; ^~~~~~ In file included from ./cghdr.h:24:0, from attr.c:14: ./cgraph.h:147:14: note: 'has_attrs' declared here unsigned has_attrs:1; /* if string attr tables should be initialized */ ^~~~~~~~~ attr.c:52:9: warning: no previous prototype for 'agdictof' [-Wmissing-prototypes] Dict_t *agdictof(Agraph_t * g, int kind) ^~~~~~~~ attr.c:79:10: warning: no previous prototype for 'agnewsym' [-Wmissing-prototypes] Agsym_t *agnewsym(Agraph_t * g, char *name, char *value, int id, int kind) ^~~~~~~~ attr.c: In function 'agnewsym': attr.c:83:17: warning: conversion to 'unsigned char' from 'int' may alter its value [-Wconversion] sym->kind = kind; ^~~~ attr.c: At top level: attr.c:134:10: warning: no previous prototype for 'agdictsym' [-Wmissing-prototypes] Agsym_t *agdictsym(Dict_t * dict, char *name) ^~~~~~~~~ attr.c:142:10: warning: no previous prototype for 'aglocaldictsym' [-Wmissing-prototypes] Agsym_t *aglocaldictsym(Dict_t * dict, char *name) ^~~~~~~~~~~~~~ attr.c: In function 'addattr': attr.c:246:20: warning: conversion to 'unsigned int' from 'int' may change the sign of the result [-Wsign-conversion] sym->id * ^ attr.c:249:16: warning: conversion to 'unsigned int' from 'int' may change the sign of the result [-Wsign-conversion] 1) * sizeof(char *)); ^ attr.c: In function 'setattr': attr.c:283:6: warning: switch missing default case [-Wswitch-default] switch (kind) { ^~~~~~ attr.c:257:19: warning: variable 'dd' set but not used [-Wunused-but-set-variable] Agdatadict_t *dd; ^~ agerror.c: In function 'aglasterr': agerror.c:52:25: warning: conversion to 'size_t {aka unsigned int}' from 'long int' may change the sign of the result [-Wsign-conversion] buf = (char*)malloc(len + 1); ^~~ agerror.c:54:30: warning: conversion to 'size_t {aka unsigned int}' from 'long int' may change the sign of the result [-Wsign-conversion] fread(buf, sizeof(char), len, agerrout); ^~~ agerror.c: In function 'userout': agerror.c:73:22: warning: conversion to 'size_t {aka unsigned int}' from 'int' may change the sign of the result [-Wsign-conversion] buf = (char*)malloc(bufsz); ^~~~~ agerror.c:86:21: warning: conversion to 'size_t {aka unsigned int}' from 'int' may change the sign of the result [-Wsign-conversion] n = vsnprintf(buf, bufsz, fmt, args); ^~~~~ agerror.c:92:32: warning: conversion to 'size_t {aka unsigned int}' from 'int' may change the sign of the result [-Wsign-conversion] if ((np = (char*)realloc(buf, bufsz)) == NULL) { ^~~~~ agerror.c: In function 'agerr_va': agerror.c:17:22: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] #define MAX(a,b) ((a)>(b)?(a):(b)) ^ agerror.c:112:16: note: in expansion of macro 'MAX' agmaxerr = MAX(agmaxerr, agerrno); ^~~ agerror.c:17:30: warning: signed and unsigned type in conditional expression [-Wsign-compare] #define MAX(a,b) ((a)>(b)?(a):(b)) ^ agerror.c:112:16: note: in expansion of macro 'MAX' agmaxerr = MAX(agmaxerr, agerrno); ^~~ agerror.c:17:30: warning: conversion to 'unsigned int' from 'int' may change the sign of the result [-Wsign-conversion] #define MAX(a,b) ((a)>(b)?(a):(b)) ^ agerror.c:112:16: note: in expansion of macro 'MAX' agmaxerr = MAX(agmaxerr, agerrno); ^~~ agerror.c:17:18: warning: conversion to 'int' from 'unsigned int' may change the sign of the result [-Wsign-conversion] #define MAX(a,b) ((a)>(b)?(a):(b)) ^ agerror.c:112:16: note: in expansion of macro 'MAX' agmaxerr = MAX(agmaxerr, agerrno); ^~~ flatten.c:23:6: warning: no previous prototype for 'agflatten_edges' [-Wmissing-prototypes] void agflatten_edges(Agraph_t * g, Agnode_t * n, int flag) ^~~~~~~~~~~~~~~ flatten.c:56:6: warning: no previous prototype for 'agnotflat' [-Wmissing-prototypes] void agnotflat(Agraph_t * g) ^~~~~~~~~ edge.c: In function 'del': edge.c:178:11: warning: variable 'x' set but not used [-Wunused-but-set-variable] void *x; ^ edge.c: In function 'newedge': edge.c:225:11: warning: conversion to 'int' from 'uint64_t {aka long long unsigned int}' may alter its value [-Wconversion] seq = agnextseq(g, AGEDGE); ^~~~~~~~~ edge.c:229:30: warning: conversion to 'unsigned int:28' from 'int' may alter its value [-Wconversion] AGSEQ(in) = AGSEQ(out) = seq; ^~~ edge.c: At top level: edge.c:405:5: warning: no previous prototype for 'agedgeidcmpf' [-Wmissing-prototypes] int agedgeidcmpf(Dict_t * d, void *arg_e0, void *arg_e1, Dtdisc_t * disc) ^~~~~~~~~~~~ edge.c:425:5: warning: no previous prototype for 'agedgeseqcmpf' [-Wmissing-prototypes] int agedgeseqcmpf(Dict_t * d, void *arg_e0, void *arg_e1, Dtdisc_t * disc) ^~~~~~~~~~~~~ edge.c:500:11: warning: no previous prototype for 'agtail' [-Wmissing-prototypes] Agnode_t *agtail(Agedge_t * e) ^~~~~~ edge.c:508:11: warning: no previous prototype for 'aghead' [-Wmissing-prototypes] Agnode_t *aghead(Agedge_t * e) ^~~~~~ edge.c:516:11: warning: no previous prototype for 'agopp' [-Wmissing-prototypes] Agedge_t *agopp(Agedge_t * e) ^~~~~ CC id.lo CC imap.lo CC io.lo CC mem.lo CC node.lo id.c: In function 'idopen': id.c:19:45: warning: unused parameter 'disc' [-Wunused-parameter] static void *idopen(Agraph_t * g, Agdisc_t* disc) ^~~~ id.c: In function 'idmap': id.c:38:15: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast] *id = (IDTYPE) s; ^ id.c: In function 'idfree': id.c:59:32: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast] agstrfree((Agraph_t *) state, (char *) id); ^ id.c: In function 'idprint': id.c:67:9: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast] return (char *) id; ^ id.c: In function 'agnameof': id.c:160:20: warning: format '%ld' expects argument of type 'long int', but argument 4 has type 'IDTYPE {aka long long unsigned int}' [-Wformat=] sprintf(buf, "%c%ld", LOCALNAMEPREFIX, AGID(obj)); ~~^ %lld CC obj.lo CC pend.lo io.c: In function 'iofread': io.c:72:9: warning: conversion to 'int' from 'size_t {aka unsigned int}' may change the sign of the result [-Wsign-conversion] return strlen(buf); ^~~~~~~~~~~ io.c: In function 'agmemread': io.c:140:15: warning: conversion to 'int' from 'size_t {aka unsigned int}' may change the sign of the result [-Wsign-conversion] rdr.len = strlen(cp); ^~~~~~ mem.c: In function 'memopen': mem.c:17:32: warning: unused parameter 'disc' [-Wunused-parameter] static void *memopen(Agdisc_t* disc) ^~~~ CC rec.lo CC refstr.lo CC scan.lo CC subg.lo node.c:28:11: warning: no previous prototype for 'agfindnode_by_name' [-Wmissing-prototypes] Agnode_t *agfindnode_by_name(Agraph_t * g, char *name) ^~~~~~~~~~~~~~~~~~ node.c: In function 'newnode': node.c:77:16: warning: conversion to 'unsigned int:28' from 'uint64_t {aka long long unsigned int}' may alter its value [-Wconversion] AGSEQ(n) = seq; ^~~ node.c: In function 'installnode': node.c:90:9: warning: variable 'osize' set but not used [-Wunused-but-set-variable] int osize; ^~~~~ node.c: At top level: node.c:274:5: warning: no previous prototype for 'agsubnodeidcmpf' [-Wmissing-prototypes] int agsubnodeidcmpf(Dict_t * d, void *arg0, void *arg1, Dtdisc_t * disc) ^~~~~~~~~~~~~~~ node.c: In function 'agsubnodeidcmpf': node.c:274:30: warning: unused parameter 'd' [-Wunused-parameter] int agsubnodeidcmpf(Dict_t * d, void *arg0, void *arg1, Dtdisc_t * disc) ^ node.c:274:68: warning: unused parameter 'disc' [-Wunused-parameter] int agsubnodeidcmpf(Dict_t * d, void *arg0, void *arg1, Dtdisc_t * disc) ^~~~ node.c: At top level: node.c:286:5: warning: no previous prototype for 'agsubnodeseqcmpf' [-Wmissing-prototypes] int agsubnodeseqcmpf(Dict_t * d, void *arg0, void *arg1, Dtdisc_t * disc) ^~~~~~~~~~~~~~~~ node.c: In function 'agsubnodeseqcmpf': node.c:286:31: warning: unused parameter 'd' [-Wunused-parameter] int agsubnodeseqcmpf(Dict_t * d, void *arg0, void *arg1, Dtdisc_t * disc) ^ node.c:286:69: warning: unused parameter 'disc' [-Wunused-parameter] int agsubnodeseqcmpf(Dict_t * d, void *arg0, void *arg1, Dtdisc_t * disc) ^~~~ node.c: In function 'free_subnode': node.c:307:21: warning: unused parameter 'd' [-Wunused-parameter] free_subnode (Dt_t* d, Agsubnode_t* sn, Dtdisc_t * disc) ^ node.c:307:52: warning: unused parameter 'disc' [-Wunused-parameter] free_subnode (Dt_t* d, Agsubnode_t* sn, Dtdisc_t * disc) ^~~~ node.c: At top level: node.c:338:6: warning: no previous prototype for 'agnodesetfinger' [-Wmissing-prototypes] void agnodesetfinger(Agraph_t * g, Agnode_t * n, void *ignored) ^~~~~~~~~~~~~~~ node.c:346:6: warning: no previous prototype for 'agnoderenew' [-Wmissing-prototypes] void agnoderenew(Agraph_t * g, Agnode_t * n, void *ignored) ^~~~~~~~~~~ node.c: In function 'agnodebefore': node.c:365:15: warning: conversion to 'unsigned int:28' from 'uint64_t {aka long long unsigned int}' may alter its value [-Wconversion] AGSEQ(snd) = (g->clos->seq[AGNODE] + 2); ^ In file included from ./cghdr.h:24:0, from node.c:14: ./cgraph.h:105:21: warning: conversion to 'unsigned int:28' from 'int' may alter its value [-Wconversion] #define AGSEQ(obj) (AGTAG(obj).seq) ^ node.c:371:14: note: in expansion of macro 'AGSEQ' AGSEQ(n) = AGSEQ(n) + 1; ^~~~~ ./cgraph.h:105:21: warning: conversion to 'unsigned int:28' from 'int' may alter its value [-Wconversion] #define AGSEQ(obj) (AGTAG(obj).seq) ^ node.c:377:15: note: in expansion of macro 'AGSEQ' AGSEQ(snd) = AGSEQ(fst) - 1; ^~~~~ obj.c: In function 'agrename': obj.c:42:5: warning: switch missing default case [-Wswitch-default] switch (AGTYPE(obj)) { ^~~~~~ obj.c: In function 'aginitcb': obj.c:92:5: warning: switch missing default case [-Wswitch-default] switch (AGTYPE(obj)) { ^~~~~~ obj.c: In function 'agupdcb': obj.c:123:5: warning: switch missing default case [-Wswitch-default] switch (AGTYPE(obj)) { ^~~~~~ obj.c: In function 'agdelcb': obj.c:154:5: warning: switch missing default case [-Wswitch-default] switch (AGTYPE(obj)) { ^~~~~~ obj.c: At top level: obj.c:235:7: warning: no previous prototype for 'aggetuserptr' [-Wmissing-prototypes] void *aggetuserptr(Agraph_t * g, Agcbdisc_t * cbd) ^~~~~~~~~~~~ CC utils.lo pend.c:68:1: warning: missing initializer for field 'memoryf' of 'Dtdisc_t {aka struct _dtdisc_s}' [-Wmissing-field-initializers] }; ^ In file included from ./cgraph.h:18:0, from ./cghdr.h:24, from pend.c:14: /jenkins/jobs/oi-userland/workspace/components/image/graphviz/graphviz-2.40.1/lib/cdt/cdt.h:85:13: note: 'memoryf' declared here Dtmemory_f memoryf;/* to allocate/free memory */ ^~~~~~~ pend.c: In function 'cb': pend.c:247:6: warning: switch missing default case [-Wswitch-default] switch (callback_kind) { ^~~~~~ pend.c: In function 'agcallbacks': pend.c:291:31: warning: conversion to 'unsigned char' from 'int' may alter its value [-Wconversion] g->clos->callbacks_enabled = flag; ^~~~ pend.c:294:34: warning: conversion to 'unsigned char' from 'int' may alter its value [-Wconversion] g->clos->callbacks_enabled = flag; ^~~~ rec.c: In function 'set_data': rec.c:25:24: warning: conversion to 'unsigned char:1' from 'int' may alter its value [-Wconversion] obj->tag.mtflock = mtflock; ^~~~~~~ rec.c:29:24: warning: conversion to 'unsigned char:1' from 'int' may alter its value [-Wconversion] e->base.tag.mtflock = mtflock; ^~~~~~~ rec.c: In function 'objputrec': rec.c:63:34: warning: unused parameter 'g' [-Wunused-parameter] static void objputrec(Agraph_t * g, Agobj_t * obj, void *arg) ^ rec.c: In function 'agbindrec': rec.c:99:2: warning: switch missing default case [-Wswitch-default] switch (obj->tag.objtype) { ^~~~~~ rec.c: In function 'objdelrec': rec.c:119:34: warning: unused parameter 'g' [-Wunused-parameter] static void objdelrec(Agraph_t * g, Agobj_t * obj, void *arg_rec) ^ rec.c: In function 'agdelrec': rec.c:156:2: warning: switch missing default case [-Wswitch-default] switch (obj->tag.objtype) { /* refresh any stale pointers */ ^~~~~~ rec.c: In function 'simple_delrec': rec.c:173:38: warning: unused parameter 'g' [-Wunused-parameter] static void simple_delrec(Agraph_t * g, Agobj_t * obj, void *rec_name) ^ refstr.c: In function 'aghtmlstr': refstr.c:185:25: warning: conversion to 'int' from 'uint64_t {aka long long unsigned int}' may alter its value [-Wconversion] return (key->refcnt & HTML_BIT); ~~~~~~~~~~~~~^~~~~~~~~~~ CC write.lo ../../lib/cgraph/scan.l: In function 'addstr': ../../lib/cgraph/scan.l:71:31: warning: conversion to 'size_t {aka unsigned int}' from 'long int' may change the sign of the result [-Wsign-conversion] Sbuf = (char*)realloc(Sbuf,sz); ^~ ../../lib/cgraph/scan.l: In function 'storeFileName': ../../lib/cgraph/scan.l:95:38: warning: conversion to 'size_t {aka unsigned int}' from 'int' may change the sign of the result [-Wsign-conversion] if (cnt) buf = (char*)realloc (buf, len+1); ^~~ ../../lib/cgraph/scan.l:96:28: warning: conversion to 'size_t {aka unsigned int}' from 'int' may change the sign of the result [-Wsign-conversion] else buf = (char*)malloc (len+1); ^~~ ../../lib/cgraph/scan.l: In function 'twoDots': ../../lib/cgraph/scan.l:136:14: warning: conversion to 'int' from 'aag_size_t {aka unsigned int}' may change the sign of the result [-Wsign-conversion] for (i = yyleng-2; i >= 0; i--) { ^~~~~~~ lex.aag.c: In function 'aaglex': lex.aag.c:959:29: warning: conversion to 'YY_CHAR {aka unsigned char}' from 'flex_int32_t {aka const int}' may alter its value [-Wconversion] lex.aag.c:969:14: warning: conversion to 'YY_CHAR {aka unsigned char}' from 'flex_int32_t {aka const int}' may alter its value [-Wconversion] lex.aag.c:971:60: warning: conversion to 'unsigned int' from 'flex_int16_t {aka const short int}' may change the sign of the result [-Wsign-conversion] lex.aag.c:176:33: warning: conversion to 'int' from 'aag_size_t {aka unsigned int}' may change the sign of the result [-Wsign-conversion] ../../lib/cgraph/scan.l:215:17: note: in expansion of macro 'aagless' {NUMBER} { if (chkNum()) yyless(yyleng-1); yylval.str = (char*)agstrdup(Ag_G_global,yytext); return(T_atom); } ^~~~~~~ lex.aag.c:1247:8: warning: switch missing default case [-Wswitch-default] lex.aag.c: In function 'aag_get_next_buffer': lex.aag.c:1362:43: warning: conversion to 'aag_size_t {aka unsigned int}' from 'int' may change the sign of the result [-Wsign-conversion] lex.aag.c:1396:57: warning: conversion to 'aag_size_t {aka unsigned int}' from 'int' may change the sign of the result [-Wsign-conversion] lex.aag.c:1406:19: warning: conversion to 'int' from 'aag_size_t {aka unsigned int}' may change the sign of the result [-Wsign-conversion] ../../lib/cgraph/scan.l:47:45: note: in definition of macro 'YY_INPUT' if ((result = Disc->io->afread(Ifile, buf, max_size)) < 0) \ ^~~~~~~~ ../../lib/cgraph/scan.l:47:16: warning: conversion to 'aag_size_t {aka unsigned int}' from 'int' may change the sign of the result [-Wsign-conversion] if ((result = Disc->io->afread(Ifile, buf, max_size)) < 0) \ ^ lex.aag.c:1405:3: note: in expansion of macro 'YY_INPUT' ../../lib/cgraph/scan.l:47:56: warning: comparison of unsigned expression < 0 is always false [-Wtype-limits] if ((result = Disc->io->afread(Ifile, buf, max_size)) < 0) \ ^ lex.aag.c:1405:3: note: in expansion of macro 'YY_INPUT' lex.aag.c:1430:34: warning: conversion to 'aag_size_t {aka unsigned int}' from 'int' may change the sign of the result [-Wsign-conversion] lex.aag.c:1432:39: warning: conversion to 'aag_size_t {aka unsigned int}' from 'int' may change the sign of the result [-Wsign-conversion] lex.aag.c:1438:16: warning: conversion to 'aag_size_t {aka unsigned int}' from 'int' may change the sign of the result [-Wsign-conversion] lex.aag.c: In function 'aag_get_previous_state': lex.aag.c:1459:28: warning: conversion to 'YY_CHAR {aka unsigned char}' from 'int' may alter its value [-Wconversion] lex.aag.c:1469:13: warning: conversion to 'YY_CHAR {aka unsigned char}' from 'flex_int32_t {aka const int}' may alter its value [-Wconversion] lex.aag.c:1471:59: warning: conversion to 'unsigned int' from 'flex_int16_t {aka const short int}' may change the sign of the result [-Wsign-conversion] lex.aag.c: In function 'aag_try_NUL_trans': lex.aag.c:1497:12: warning: conversion to 'YY_CHAR {aka unsigned char}' from 'flex_int32_t {aka const int}' may alter its value [-Wconversion] lex.aag.c:1499:58: warning: conversion to 'unsigned int' from 'flex_int16_t {aka const short int}' may change the sign of the result [-Wsign-conversion] lex.aag.c: In function 'input': lex.aag.c:1566:24: warning: conversion to 'aag_size_t {aka unsigned int}' from 'int' may change the sign of the result [-Wsign-conversion] lex.aag.c:1569:4: warning: switch missing default case [-Wswitch-default] lex.aag.c: In function 'aag_create_buffer': lex.aag.c:1693:20: warning: conversion to 'aag_size_t {aka unsigned int}' from 'int' may change the sign of the result [-Wsign-conversion] lex.aag.c: In function 'aagensure_buffer_stack': lex.aag.c:1867:41: warning: conversion to 'size_t {aka unsigned int}' from 'int' may change the sign of the result [-Wsign-conversion] lex.aag.c:1876:68: warning: conversion to 'unsigned int' from 'int' may change the sign of the result [-Wsign-conversion] lex.aag.c: In function 'aag_scan_bytes': lex.aag.c:1950:17: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] ../../lib/cgraph/scan.l: At top level: ../../lib/cgraph/scan.l:231:6: warning: no previous prototype for 'aagerror' [-Wmissing-prototypes] { ^ ../../lib/cgraph/scan.l: In function 'aagerror': ../../lib/cgraph/scan.l:255:14: warning: conversion to 'int' from 'size_t {aka unsigned int}' may change the sign of the result [-Wsign-conversion] agxbput (&xb, "\nString starting:\""); ^~~~~~ ../../lib/cgraph/scan.l:266:14: warning: conversion to 'int' from 'size_t {aka unsigned int}' may change the sign of the result [-Wsign-conversion] agxbput (&xb, "\nString starting:<"); ^~~~~~ ../../lib/cgraph/scan.l:250:7: warning: switch missing default case [-Wswitch-default] case qstring : ^~~~~~ subg.c: In function 'agdelsubg': subg.c:95:12: warning: cast from function call of type 'void *' to non-matching type 'long int' [-Wbad-function-cast] return (long) dtdelete(g->g_dict, subg); ^ At top level: lex.aag.c:1546:16: warning: 'input' defined but not used [-Wunused-function] utils.c: In function 'agdtdelete': utils.c:70:12: warning: cast from function call of type 'void *' to non-matching type 'long int' [-Wbad-function-cast] return (long) dtdelete(dict, obj); ^ utils.c: At top level: utils.c:73:5: warning: no previous prototype for 'agobjfinalize' [-Wmissing-prototypes] int agobjfinalize(void * obj) ^~~~~~~~~~~~~ utils.c: In function 'agdtdisc': utils.c:95:26: warning: unused parameter 'g' [-Wunused-parameter] void agdtdisc(Agraph_t * g, Dict_t * dict, Dtdisc_t * disc) ^ write.c:380:5: warning: no previous prototype for 'node_in_subg' [-Wmissing-prototypes] int node_in_subg(Agraph_t * g, Agnode_t * n) ^~~~~~~~~~~~ write.c: In function 'write_nodename': write.c:522:19: warning: format '%ld' expects argument of type 'long int', but argument 3 has type 'IDTYPE {aka long long unsigned int}' [-Wformat=] sprintf(buf, "_%ld_SUSPECT", AGID(n)); /* could be deadly wrong */ ~~^ %lld write.c: In function 'set_attrwf': write.c:660:19: warning: conversion to 'unsigned char:1' from 'int' may alter its value [-Wconversion] AGATTRWF(g) = value; ^~~~~ write.c:666:20: warning: conversion to 'unsigned char:1' from 'int' may alter its value [-Wconversion] AGATTRWF(n) = value; ^~~~~ write.c:668:17: warning: conversion to 'unsigned char:1' from 'int' may alter its value [-Wconversion] AGATTRWF(e) = value; ^~~~~ CCLD libcgraph.la CCLD libcgraph_C.la make[6]: Leaving directory '/jenkins/jobs/oi-userland/workspace/components/image/graphviz/build/i86/lib/cgraph' Making all in pathplan make[6]: Entering directory '/jenkins/jobs/oi-userland/workspace/components/image/graphviz/build/i86/lib/pathplan' CC shortest.lo CC cvt.lo CC route.lo CC inpoly.lo CC triang.lo CC shortestpth.lo CC util.lo CC solvers.lo solvers.c: In function 'solve2': solvers.c:90:19: warning: comparing floating point with == or != is unsafe [-Wfloat-equal] else if (disc == 0) { ^~ route.c: In function 'reallyroutespline': route.c:212:40: warning: conversion to 'unsigned int' from 'int' may change the sign of the result [-Wsign-conversion] if (!(tnas = malloc(sizeof(tna_t) * inpn))) ^ route.c:215:47: warning: conversion to 'unsigned int' from 'int' may change the sign of the result [-Wsign-conversion] if (!(tnas = realloc(tnas, sizeof(tna_t) * inpn))) ^ shortestpth.c:35:6: warning: no previous prototype for 'shortestPath' [-Wmissing-prototypes] int *shortestPath(int root, int target, int V, array2 wadj) ^~~~~~~~~~~~ shortestpth.c: In function 'shortestPath': shortestpth.c:44:28: warning: conversion to 'unsigned int' from 'int' may change the sign of the result [-Wsign-conversion] dad = (int *) malloc(V * sizeof(int)); ^ shortestpth.c:45:35: warning: conversion to 'unsigned int' from 'int' may change the sign of the result [-Wsign-conversion] vl = (COORD *) malloc((V + 1) * sizeof(COORD)); /* One extra for sentinel */ ^ shortestpth.c:61:13: warning: comparing floating point with == or != is unsafe [-Wfloat-equal] if (val[k] == unseen) ^~ shortestpth.c:76:12: warning: comparing floating point with == or != is unsafe [-Wfloat-equal] if ((wkt != 0) && (val[t] < newpri)) { ^~ shortestpth.c: In function 'makePath': shortestpth.c:106:40: warning: conversion to 'unsigned int' from 'int' may change the sign of the result [-Wsign-conversion] int *dad = (int *) malloc(sizeof(int) * (V + 2)); ^ route.c: In function 'splinefits': route.c:360:8: warning: comparing floating point with == or != is unsafe [-Wfloat-equal] if (a == 0 && b == 0) { ^~ route.c:360:18: warning: comparing floating point with == or != is unsafe [-Wfloat-equal] if (a == 0 && b == 0) { ^~ route.c: In function 'splineintersectsline': route.c:430:19: warning: comparing floating point with == or != is unsafe [-Wfloat-equal] if (xcoeff[1] == 0) { ^~ route.c:431:16: warning: comparing floating point with == or != is unsafe [-Wfloat-equal] if (ycoeff[1] == 0) { ^~ route.c:450:18: warning: comparing floating point with == or != is unsafe [-Wfloat-equal] if (xroots[i] == yroots[j]) ^~ util.c: In function 'copypoly': util.c:31:37: warning: conversion to 'unsigned int' from 'int' may change the sign of the result [-Wsign-conversion] rv.ps = malloc(sizeof(Ppoint_t) * argpoly.pn); ^ route.c: In function 'growops': route.c:530:44: warning: conversion to 'unsigned int' from 'int' may change the sign of the result [-Wsign-conversion] if (!(ops = (Ppoint_t *) malloc(POINTSIZE * newopn))) { ^ route.c:536:17: warning: conversion to 'unsigned int' from 'int' may change the sign of the result [-Wsign-conversion] POINTSIZE * newopn))) { ^ util.c: In function 'Ppolybarriers': util.c:59:20: warning: conversion to 'unsigned int' from 'int' may change the sign of the result [-Wsign-conversion] bar = malloc(n * sizeof(Pedge_t)); ^ util.c: In function 'make_polyline': util.c:23:61: warning: conversion to 'unsigned int' from 'int' may change the sign of the result [-Wsign-conversion] #define ALLOC(size,ptr,type) (ptr? (type*)realloc(ptr,(size)*sizeof(type)):(type*)malloc((size)*sizeof(type))) ^ util.c:90:12: note: in expansion of macro 'ALLOC' ispline = ALLOC(npts, ispline, Ppoint_t); ^~~~~ util.c:23:96: warning: conversion to 'unsigned int' from 'int' may change the sign of the result [-Wsign-conversion] #define ALLOC(size,ptr,type) (ptr? (type*)realloc(ptr,(size)*sizeof(type)):(type*)malloc((size)*sizeof(type))) ^ util.c:90:12: note: in expansion of macro 'ALLOC' ispline = ALLOC(npts, ispline, Ppoint_t); ^~~~~ cvt.c: In function 'Pobsopen': cvt.c:77:24: warning: conversion to 'unsigned int' from 'int' may change the sign of the result [-Wsign-conversion] rv->P = mymalloc(n * sizeof(Ppoint_t)); ^ cvt.c:78:38: warning: conversion to 'unsigned int' from 'int' may change the sign of the result [-Wsign-conversion] rv->start = mymalloc((n_obs + 1) * sizeof(int)); ^ cvt.c:79:27: warning: conversion to 'unsigned int' from 'int' may change the sign of the result [-Wsign-conversion] rv->next = mymalloc(n * sizeof(int)); ^ cvt.c:80:27: warning: conversion to 'unsigned int' from 'int' may change the sign of the result [-Wsign-conversion] rv->prev = mymalloc(n * sizeof(int)); ^ cvt.c: In function 'Pobspath': cvt.c:143:9: warning: conversion to 'int' from 'size_t {aka unsigned int}' may change the sign of the result [-Wsign-conversion] j = opn - 1; ^~~ cvt.c:162:24: warning: conversion to 'int' from 'size_t {aka unsigned int}' may change the sign of the result [-Wsign-conversion] output_route->pn = opn; ^~~ cvt.c: At top level: cvt.c:171:5: warning: no previous prototype for 'Pobsbarriers' [-Wmissing-prototypes] int Pobsbarriers(vconfig_t * config, Pedge_t ** barriers, int *n_barriers) ^~~~~~~~~~~~ cvt.c: In function 'Pobsbarriers': cvt.c:175:34: warning: conversion to 'unsigned int' from 'int' may change the sign of the result [-Wsign-conversion] *barriers = malloc(config->N * sizeof(Pedge_t)); ^ shortest.c: In function 'Pshortestpath': shortest.c:141:16: warning: comparing floating point with == or != is unsafe [-Wfloat-equal] if (((p1.x == p2.x && p2.x == p3.x) && (p3.y > p2.y)) || ^~ shortest.c:141:32: warning: comparing floating point with == or != is unsafe [-Wfloat-equal] if (((p1.x == p2.x && p2.x == p3.x) && (p3.y > p2.y)) || ^~ shortest.c:145:22: warning: comparing floating point with == or != is unsafe [-Wfloat-equal] && polyp->ps[pi].x == polyp->ps[pi + 1].x ^~ shortest.c:146:22: warning: comparing floating point with == or != is unsafe [-Wfloat-equal] && polyp->ps[pi].y == polyp->ps[pi + 1].y) ^~ shortest.c:155:36: warning: comparing floating point with == or != is unsafe [-Wfloat-equal] if (pi > 0 && polyp->ps[pi].x == polyp->ps[pi - 1].x && ^~ shortest.c:156:19: warning: comparing floating point with == or != is unsafe [-Wfloat-equal] polyp->ps[pi].y == polyp->ps[pi - 1].y) ^~ shortest.c: In function 'triangulate': shortest.c:305:41: warning: declaration of 'pnlps' shadows a global declaration [-Wshadow] static void triangulate(pointnlink_t ** pnlps, int pnln) ^~~~~ shortest.c:74:30: note: shadowed declaration is here static pointnlink_t *pnls, **pnlps; ^~~~~ shortest.c:305:52: warning: declaration of 'pnln' shadows a global declaration [-Wshadow] static void triangulate(pointnlink_t ** pnlps, int pnln) ^~~~ shortest.c:75:12: note: shadowed declaration is here static int pnln, pnll; ^~~~ shortest.c: In function 'isdiagonal': shortest.c:331:61: warning: declaration of 'pnlps' shadows a global declaration [-Wshadow] static int isdiagonal(int pnli, int pnlip2, pointnlink_t ** pnlps, ^~~~~ shortest.c:74:30: note: shadowed declaration is here static pointnlink_t *pnls, **pnlps; ^~~~~ shortest.c:332:13: warning: declaration of 'pnln' shadows a global declaration [-Wshadow] int pnln) ^~~~ shortest.c:75:12: note: shadowed declaration is here static int pnln, pnll; ^~~~ shortest.c: In function 'growpnls': shortest.c:522:54: warning: conversion to 'unsigned int' from 'int' may change the sign of the result [-Wsign-conversion] if (!(pnls = (pointnlink_t *) malloc(POINTNLINKSIZE * newpnln))) { ^ shortest.c:526:57: warning: conversion to 'unsigned int' from 'int' may change the sign of the result [-Wsign-conversion] if (!(pnlps = (pointnlink_t **) malloc(POINTNLINKPSIZE * newpnln))) { ^ shortest.c:532:27: warning: conversion to 'unsigned int' from 'int' may change the sign of the result [-Wsign-conversion] POINTNLINKSIZE * newpnln))) { ^ shortest.c:537:23: warning: conversion to 'unsigned int' from 'int' may change the sign of the result [-Wsign-conversion] POINTNLINKPSIZE * ^ shortest.c: In function 'growtris': shortest.c:551:50: warning: conversion to 'unsigned int' from 'int' may change the sign of the result [-Wsign-conversion] if (!(tris = (triangle_t *) malloc(TRIANGLESIZE * newtrin))) { ^ shortest.c:557:23: warning: conversion to 'unsigned int' from 'int' may change the sign of the result [-Wsign-conversion] TRIANGLESIZE * newtrin))) { ^ shortest.c: In function 'growdq': shortest.c:572:48: warning: conversion to 'unsigned int' from 'int' may change the sign of the result [-Wsign-conversion] (pointnlink_t **) malloc(POINTNLINKPSIZE * newdqn))) { ^ shortest.c:578:26: warning: conversion to 'unsigned int' from 'int' may change the sign of the result [-Wsign-conversion] POINTNLINKPSIZE * ^ shortest.c: In function 'growops': shortest.c:592:44: warning: conversion to 'unsigned int' from 'int' may change the sign of the result [-Wsign-conversion] if (!(ops = (Ppoint_t *) malloc(POINTSIZE * newopn))) { ^ shortest.c:598:17: warning: conversion to 'unsigned int' from 'int' may change the sign of the result [-Wsign-conversion] POINTSIZE * newopn))) { ^ triang.c: In function 'Ptriangulate': triang.c:71:42: warning: conversion to 'unsigned int' from 'int' may change the sign of the result [-Wsign-conversion] pointp = (Ppoint_t **) malloc(pointn * sizeof(Ppoint_t *)); ^ CC visibility.lo shortest.c: In function 'loadtriangle': shortest.c:548:8: warning: assuming signed overflow does not occur when assuming that (X + c) < X is always false [-Wstrict-overflow] if (newtrin <= trin) ^ visibility.c: In function 'allocArray': visibility.c:41:41: warning: conversion to 'unsigned int' from 'int' may change the sign of the result [-Wsign-conversion] arr = (COORD **) malloc((V + extra) * sizeof(COORD *)); ^ visibility.c:42:26: warning: conversion to 'size_t {aka unsigned int}' from 'int' may change the sign of the result [-Wsign-conversion] p = (COORD *) calloc(V * V, sizeof(COORD)); ^ visibility.c: At top level: visibility.c:92:5: warning: no previous prototype for 'inBetween' [-Wmissing-prototypes] int inBetween(Ppoint_t a, Ppoint_t b, Ppoint_t c) ^~~~~~~~~ visibility.c: In function 'inBetween': visibility.c:94:13: warning: comparing floating point with == or != is unsafe [-Wfloat-equal] if (a.x != b.x) /* not vertical */ ^~ visibility.c: In function 'clear': visibility.c:240:45: warning: unused parameter 'prevPt' [-Wunused-parameter] int V, Ppoint_t pts[], int nextPt[], int prevPt[]) ^~~~~~ visibility.c: In function 'ptVis': visibility.c:351:37: warning: conversion to 'unsigned int' from 'int' may change the sign of the result [-Wsign-conversion] vadj = (COORD *) malloc((V + 2) * sizeof(COORD)); ^ CCLD libpathplan_C.la CCLD libpathplan.la make[6]: Leaving directory '/jenkins/jobs/oi-userland/workspace/components/image/graphviz/build/i86/lib/pathplan' Making all in sfio make[6]: Entering directory '/jenkins/jobs/oi-userland/workspace/components/image/graphviz/build/i86/lib/sfio' Making all in Sfio_f make[7]: Entering directory '/jenkins/jobs/oi-userland/workspace/components/image/graphviz/build/i86/lib/sfio/Sfio_f' CC _sfeof.lo CC _sffileno.lo CC _sfllen.lo CC _sfdlen.lo CC _sferror.lo CC _sfgetc.lo CC _sfclrerr.lo CC _sfputc.lo In file included from _sfgetc.c:14:0: /jenkins/jobs/oi-userland/workspace/components/image/graphviz/graphviz-2.40.1/lib/sfio/sfhdr.h:155:5: warning: "_socket_peek" is not defined, evaluates to 0 [-Wundef] #if _socket_peek ^~~~~~~~~~~~ In file included from _sffileno.c:14:0: /jenkins/jobs/oi-userland/workspace/components/image/graphviz/graphviz-2.40.1/lib/sfio/sfhdr.h:155:5: warning: "_socket_peek" is not defined, evaluates to 0 [-Wundef] #if _socket_peek ^~~~~~~~~~~~ In file included from _sfdlen.c:14:0: /jenkins/jobs/oi-userland/workspace/components/image/graphviz/graphviz-2.40.1/lib/sfio/sfhdr.h:155:5: warning: "_socket_peek" is not defined, evaluates to 0 [-Wundef] #if _socket_peek ^~~~~~~~~~~~ In file included from _sferror.c:14:0: /jenkins/jobs/oi-userland/workspace/components/image/graphviz/graphviz-2.40.1/lib/sfio/sfhdr.h:155:5: warning: "_socket_peek" is not defined, evaluates to 0 [-Wundef] #if _socket_peek ^~~~~~~~~~~~ In file included from _sfllen.c:14:0: /jenkins/jobs/oi-userland/workspace/components/image/graphviz/graphviz-2.40.1/lib/sfio/sfhdr.h:155:5: warning: "_socket_peek" is not defined, evaluates to 0 [-Wundef] #if _socket_peek ^~~~~~~~~~~~ In file included from _sfputc.c:14:0: /jenkins/jobs/oi-userland/workspace/components/image/graphviz/graphviz-2.40.1/lib/sfio/sfhdr.h:155:5: warning: "_socket_peek" is not defined, evaluates to 0 [-Wundef] #if _socket_peek ^~~~~~~~~~~~ In file included from _sfeof.c:14:0: /jenkins/jobs/oi-userland/workspace/components/image/graphviz/graphviz-2.40.1/lib/sfio/sfhdr.h:155:5: warning: "_socket_peek" is not defined, evaluates to 0 [-Wundef] #if _socket_peek ^~~~~~~~~~~~ In file included from _sfclrerr.c:14:0: /jenkins/jobs/oi-userland/workspace/components/image/graphviz/graphviz-2.40.1/lib/sfio/sfhdr.h:155:5: warning: "_socket_peek" is not defined, evaluates to 0 [-Wundef] #if _socket_peek ^~~~~~~~~~~~ In file included from /jenkins/jobs/oi-userland/workspace/components/image/graphviz/graphviz-2.40.1/lib/sfio/sfio_t.h:46:0, from /jenkins/jobs/oi-userland/workspace/components/image/graphviz/graphviz-2.40.1/lib/sfio/sfhdr.h:31, from _sfclrerr.c:14: _sfclrerr.c: In function 'sfclrerr': /jenkins/jobs/oi-userland/workspace/components/image/graphviz/graphviz-2.40.1/lib/sfio/sfio.h:424:50: warning: conversion to 'short unsigned int' from 'int' may alter its value [-Wconversion] #define __sf_clrerr(f) ((f) ? (_SF_(f)->flags &= ~(SF_ERROR|SF_EOF)) : 0) ^ _sfclrerr.c:20:12: note: in expansion of macro '__sf_clrerr' return __sf_clrerr(f); ^~~~~~~~~~~ CC _sfputd.lo CC _sfputl.lo CC _sfputm.lo CC _sfputu.lo CC _sfslen.lo CC _sfstacked.lo CC _sfvalue.lo CC _sfulen.lo In file included from _sfputd.c:14:0: /jenkins/jobs/oi-userland/workspace/components/image/graphviz/graphviz-2.40.1/lib/sfio/sfhdr.h:155:5: warning: "_socket_peek" is not defined, evaluates to 0 [-Wundef] #if _socket_peek ^~~~~~~~~~~~ In file included from _sfstacked.c:14:0: /jenkins/jobs/oi-userland/workspace/components/image/graphviz/graphviz-2.40.1/lib/sfio/sfhdr.h:155:5: warning: "_socket_peek" is not defined, evaluates to 0 [-Wundef] #if _socket_peek ^~~~~~~~~~~~ In file included from _sfputu.c:14:0: /jenkins/jobs/oi-userland/workspace/components/image/graphviz/graphviz-2.40.1/lib/sfio/sfhdr.h:155:5: warning: "_socket_peek" is not defined, evaluates to 0 [-Wundef] #if _socket_peek ^~~~~~~~~~~~ In file included from _sfputm.c:14:0: /jenkins/jobs/oi-userland/workspace/components/image/graphviz/graphviz-2.40.1/lib/sfio/sfhdr.h:155:5: warning: "_socket_peek" is not defined, evaluates to 0 [-Wundef] #if _socket_peek ^~~~~~~~~~~~ In file included from _sfulen.c:14:0: /jenkins/jobs/oi-userland/workspace/components/image/graphviz/graphviz-2.40.1/lib/sfio/sfhdr.h:155:5: warning: "_socket_peek" is not defined, evaluates to 0 [-Wundef] #if _socket_peek ^~~~~~~~~~~~ In file included from _sfvalue.c:14:0: /jenkins/jobs/oi-userland/workspace/components/image/graphviz/graphviz-2.40.1/lib/sfio/sfhdr.h:155:5: warning: "_socket_peek" is not defined, evaluates to 0 [-Wundef] #if _socket_peek ^~~~~~~~~~~~ In file included from _sfputl.c:14:0: /jenkins/jobs/oi-userland/workspace/components/image/graphviz/graphviz-2.40.1/lib/sfio/sfhdr.h:155:5: warning: "_socket_peek" is not defined, evaluates to 0 [-Wundef] #if _socket_peek ^~~~~~~~~~~~ In file included from _sfslen.c:14:0: /jenkins/jobs/oi-userland/workspace/components/image/graphviz/graphviz-2.40.1/lib/sfio/sfhdr.h:155:5: warning: "_socket_peek" is not defined, evaluates to 0 [-Wundef] #if _socket_peek ^~~~~~~~~~~~ CCLD libsfiof_C.la make[7]: Leaving directory '/jenkins/jobs/oi-userland/workspace/components/image/graphviz/build/i86/lib/sfio/Sfio_f' make[7]: Entering directory '/jenkins/jobs/oi-userland/workspace/components/image/graphviz/build/i86/lib/sfio' CC sfclose.lo CC sfclrlock.lo CC sfdlen.lo CC sfexit.lo CC sfcvt.lo CC sfdisc.lo CC sfexcept.lo CC sfextern.lo In file included from sfdlen.c:14:0: sfhdr.h:155:5: warning: "_socket_peek" is not defined, evaluates to 0 [-Wundef] #if _socket_peek ^~~~~~~~~~~~ sfdlen.c: In function '_sfdlen': sfdlen.c:32:11: warning: comparing floating point with == or != is unsafe [-Wfloat-equal] if (v != 0.) ^~ sfdlen.c:33:12: warning: conversion to 'double' from 'long double' may alter its value [-Wfloat-conversion] v = frexp(v, &exp); ^ sfdlen.c:37:19: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] for (w = 1; w <= N_ARRAY; ++w) { /* get 2^SF_PRECIS precision at a time */ ^~ sfdlen.c:38:23: warning: conversion to 'double' from 'long double' may alter its value [-Wfloat-conversion] n = (int) (x = ldexp(v, SF_PRECIS)); ^ In file included from sfcvt.c:14:0: sfhdr.h:155:5: warning: "_socket_peek" is not defined, evaluates to 0 [-Wundef] #if _socket_peek ^~~~~~~~~~~~ sfcvt.c: In function '_sfcvt': sfcvt.c:50:11: warning: comparing floating point with == or != is unsafe [-Wfloat-equal] if (dval == 0.) ^~ sfcvt.c:110:15: warning: conversion to 'char' from 'long int' may alter its value [-Wconversion] *sp++ = '0' + n; ^~~ sfcvt.c:124:11: warning: comparing floating point with == or != is unsafe [-Wfloat-equal] if (dval == 0.) ^~ In file included from sfcvt.c:14:0: sfhdr.h:725:18: warning: conversion to 'double' from 'long double' may alter its value [-Wfloat-conversion] #define _Sfneg10 (_Sftable.sf_neg10) ^ sfcvt.c:136:15: note: in expansion of macro '_Sfneg10' dval *= _Sfneg10[v]; ^~~~~~~~ sfcvt.c:198:11: warning: conversion to 'char' from 'int' may alter its value [-Wconversion] *--sp += 5; ^ sfcvt.c:202:12: warning: conversion to 'char' from 'int' may alter its value [-Wconversion] *--sp += 1; ^ In file included from sfclrlock.c:14:0: sfhdr.h:155:5: warning: "_socket_peek" is not defined, evaluates to 0 [-Wundef] #if _socket_peek ^~~~~~~~~~~~ In file included from sfexcept.c:14:0: sfhdr.h:155:5: warning: "_socket_peek" is not defined, evaluates to 0 [-Wundef] #if _socket_peek ^~~~~~~~~~~~ In file included from sfextern.c:14:0: sfhdr.h:155:5: warning: "_socket_peek" is not defined, evaluates to 0 [-Wundef] #if _socket_peek ^~~~~~~~~~~~ In file included from sfdisc.c:14:0: sfhdr.h:155:5: warning: "_socket_peek" is not defined, evaluates to 0 [-Wundef] #if _socket_peek ^~~~~~~~~~~~ sfclrlock.c: In function 'sfclrlock': sfclrlock.c:33:17: warning: conversion to 'short unsigned int' from 'int' may alter its value [-Wconversion] f->flags &= ~(SF_ERROR | SF_EOF); ^ In file included from sfclrlock.c:14:0: sfhdr.h:230:20: warning: conversion to 'short unsigned int' from 'int' may alter its value [-Wconversion] (((f)->bits &= ~SF_MVSIZE), ((f)->size /= SF_NMAP)) ) ^ sfhdr.h:231:23: note: in expansion of macro 'SFMVUNSET' #define SFCLRBITS(f) (SFMVUNSET(f), ((f)->bits &= ~(SF_DCDOWN|SF_MVSIZE)) ) ^~~~~~~~~ sfclrlock.c:41:5: note: in expansion of macro 'SFCLRBITS' SFCLRBITS(f); ^~~~~~~~~ sfhdr.h:231:51: warning: conversion to 'short unsigned int' from 'int' may alter its value [-Wconversion] #define SFCLRBITS(f) (SFMVUNSET(f), ((f)->bits &= ~(SF_DCDOWN|SF_MVSIZE)) ) ^ sfclrlock.c:41:5: note: in expansion of macro 'SFCLRBITS' SFCLRBITS(f); ^~~~~~~~~ In file included from sfexcept.c:14:0: sfexcept.c: In function '_sfexcept': sfextern.c:35:5: warning: missing initializer for field 'array' of 'struct _sfpool_s' [-Wmissing-field-initializers] {NIL(Sfpool_t *), 0, 0, 0, NIL(Sfio_t **)}, /* _Sfpool */ ^ In file included from sfextern.c:14:0: sfhdr.h:397:10: note: 'array' declared here Sfio_t *array[3]; /* start with 3 */ ^~~~~ sfhdr.h:594:62: warning: negative integer implicitly converted to unsigned type [-Wsign-conversion] #define GETLOCAL(f,v) ((v) = ((f)->mode&SF_LOCAL), (f)->mode &= ~SF_LOCAL, (void)(v)) ^ sfexcept.c:34:5: note: in expansion of macro 'GETLOCAL' GETLOCAL(f, local); ^~~~~~~~ sfexcept.c:38:14: warning: conversion to 'short unsigned int' from 'int' may alter its value [-Wconversion] f->flags |= io < 0 ? SF_ERROR : SF_EOF; ^~ In file included from sfexcept.c:14:0: sfhdr.h:622:16: warning: negative integer implicitly converted to unsigned type [-Wsign-conversion] ((f)->mode &= ~(SF_LOCK|SF_RC|SF_RV), _SFOPEN(f), 0) ) ^ sfexcept.c:42:6: note: in expansion of macro 'SFOPEN' SFOPEN(f, 0); ^~~~~~ sfexcept.c:75:46: warning: conversion to 'size_t {aka unsigned int}' from 'ssize_t {aka int}' may change the sign of the result [-Wsign-conversion] data = (uchar *) realloc((char *) f->data, size); ^~~~ sfexcept.c:77:27: warning: conversion to 'size_t {aka unsigned int}' from 'ssize_t {aka int}' may change the sign of the result [-Wsign-conversion] data = (uchar *) malloc(size); ^~~~ sfexcept.c:94:14: warning: conversion to 'short unsigned int' from 'int' may alter its value [-Wconversion] f->flags &= ~(SF_EOF | SF_ERROR); ^ In file included from sfexcept.c:14:0: sfhdr.h:622:16: warning: negative integer implicitly converted to unsigned type [-Wsign-conversion] ((f)->mode &= ~(SF_LOCK|SF_RC|SF_RV), _SFOPEN(f), 0) ) ^ sfexcept.c:103:6: note: in expansion of macro 'SFOPEN' SFOPEN(f, 0); ^~~~~~ In file included from sfexit.c:14:0: sfhdr.h:155:5: warning: "_socket_peek" is not defined, evaluates to 0 [-Wundef] #if _socket_peek ^~~~~~~~~~~~ In file included from sfdisc.c:14:0: sfdisc.c: In function 'sfdisc': sfhdr.h:622:16: warning: negative integer implicitly converted to unsigned type [-Wsign-conversion] ((f)->mode &= ~(SF_LOCK|SF_RC|SF_RV), _SFOPEN(f), 0) ) ^ sfdisc.c:57:3: note: in expansion of macro 'SFOPEN' SFOPEN(f, 0); ^~~~~~ sfhdr.h:622:16: warning: negative integer implicitly converted to unsigned type [-Wsign-conversion] ((f)->mode &= ~(SF_LOCK|SF_RC|SF_RV), _SFOPEN(f), 0) ) ^ sfdisc.c:82:6: note: in expansion of macro 'SFOPEN' SFOPEN(f, 0); ^~~~~~ sfhdr.h:622:16: warning: negative integer implicitly converted to unsigned type [-Wsign-conversion] ((f)->mode &= ~(SF_LOCK|SF_RC|SF_RV), _SFOPEN(f), 0) ) ^ sfdisc.c:93:3: note: in expansion of macro 'SFOPEN' SFOPEN(f, 0); ^~~~~~ sfdisc.c:127:17: warning: conversion to 'short unsigned int' from 'int' may alter its value [-Wconversion] f->bits &= ~SF_NULL; /* turn off /dev/null handling */ ^ sfdisc.c:134:33: warning: conversion to 'size_t {aka unsigned int}' from 'ssize_t {aka int}' may change the sign of the result [-Wsign-conversion] sfsetbuf(f, (void *) f->data, f->size); ^ sfdisc.c:135:15: warning: conversion to 'short unsigned int' from 'int' may alter its value [-Wconversion] f->flags |= (flags & SF_MALLOC); ^ In file included from sfdisc.c:14:0: sfhdr.h:622:16: warning: negative integer implicitly converted to unsigned type [-Wsign-conversion] ((f)->mode &= ~(SF_LOCK|SF_RC|SF_RV), _SFOPEN(f), 0) ) ^ sfdisc.c:141:5: note: in expansion of macro 'SFOPEN' SFOPEN(f, 0); ^~~~~~ In file included from sfclose.c:14:0: sfhdr.h:155:5: warning: "_socket_peek" is not defined, evaluates to 0 [-Wundef] #if _socket_peek ^~~~~~~~~~~~ In file included from sfclose.c:14:0: sfclose.c: In function 'sfclose': sfhdr.h:594:62: warning: negative integer implicitly converted to unsigned type [-Wsign-conversion] #define GETLOCAL(f,v) ((v) = ((f)->mode&SF_LOCAL), (f)->mode &= ~SF_LOCAL, (void)(v)) ^ sfclose.c:28:5: note: in expansion of macro 'GETLOCAL' GETLOCAL(f, local); ^~~~~~~~ sfhdr.h:614:32: warning: conversion to 'unsigned int' from 'int' may change the sign of the result [-Wsign-conversion] #define SFMODE(f,l) ((f)->mode & ~(SF_RV|SF_RC|((l) ? SF_LOCK : 0)) ) ^ sfclose.c:31:2: note: in expansion of macro 'SFMODE' SFMODE(f, local) != (f->mode & SF_RDWR) && ^~~~~~ sfhdr.h:614:32: warning: conversion to 'unsigned int' from 'int' may change the sign of the result [-Wsign-conversion] #define SFMODE(f,l) ((f)->mode & ~(SF_RV|SF_RC|((l) ? SF_LOCK : 0)) ) ^ sfclose.c:32:2: note: in expansion of macro 'SFMODE' SFMODE(f, local) != (f->mode & (SF_READ | SF_SYNCED)) && ^~~~~~ sfclose.c:80:14: warning: negative integer implicitly converted to unsigned type [-Wsign-conversion] f->mode &= ~SF_LOCK; ^~ In file included from sfclose.c:14:0: sfhdr.h:622:16: warning: negative integer implicitly converted to unsigned type [-Wsign-conversion] ((f)->mode &= ~(SF_LOCK|SF_RC|SF_RV), _SFOPEN(f), 0) ) ^ sfclose.c:83:3: note: in expansion of macro 'SFOPEN' SFOPEN(f, 0); ^~~~~~ CC sffilbuf.lo CC sffcvt.lo CC sfflsbuf.lo CC sfgetd.lo CC sfgetl.lo CC sfgetm.lo CC sfgetr.lo CC sfgetu.lo In file included from sffilbuf.c:14:0: sfhdr.h:155:5: warning: "_socket_peek" is not defined, evaluates to 0 [-Wundef] #if _socket_peek ^~~~~~~~~~~~ In file included from sffilbuf.c:14:0: sffilbuf.c: In function '_sffilbuf': sfhdr.h:594:62: warning: negative integer implicitly converted to unsigned type [-Wsign-conversion] #define GETLOCAL(f,v) ((v) = ((f)->mode&SF_LOCAL), (f)->mode &= ~SF_LOCAL, (void)(v)) ^ sffilbuf.c:37:5: note: in expansion of macro 'GETLOCAL' GETLOCAL(f, local); ^~~~~~~~ sffilbuf.c:44:16: warning: conversion to 'short unsigned int' from 'int' may alter its value [-Wconversion] f->bits &= ~SF_JUSTSEEK; ^ sffilbuf.c:46:42: warning: negative integer implicitly converted to unsigned type [-Wsign-conversion] for (first = 1;; first = 0, (f->mode &= ~SF_LOCK)) { /* check mode */ ^~ In file included from sffilbuf.c:14:0: sfhdr.h:614:32: warning: conversion to 'unsigned int' from 'int' may change the sign of the result [-Wsign-conversion] #define SFMODE(f,l) ((f)->mode & ~(SF_RV|SF_RC|((l) ? SF_LOCK : 0)) ) ^ sffilbuf.c:47:6: note: in expansion of macro 'SFMODE' if (SFMODE(f, local) != SF_READ && _sfmode(f, SF_READ, local) < 0) ^~~~~~ sffilbuf.c:61:28: warning: conversion to 'size_t {aka unsigned int}' from 'ssize_t {aka int}' may change the sign of the result [-Wsign-conversion] memcpy(f->data, f->next, r); ^ sffilbuf.c:75:26: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] else if (justseek && n <= f->iosz && f->iosz <= f->size) ^~ sffilbuf.c:75:48: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] else if (justseek && n <= f->iosz && f->iosz <= f->size) ^~ sffilbuf.c:76:11: warning: conversion to 'ssize_t {aka int}' from 'size_t {aka unsigned int}' may change the sign of the result [-Wsign-conversion] r = f->iosz; /* limit buffer filling */ ^ sffilbuf.c:81:10: warning: conversion to 'unsigned int' from 'int' may change the sign of the result [-Wsign-conversion] f->mode |= rcrv; ^~ sffilbuf.c:82:12: warning: conversion to 'unsigned char' from 'int' may alter its value [-Wconversion] f->getr = rc; ^~ In file included from sffilbuf.c:14:0: sffilbuf.c:83:28: warning: conversion to 'size_t {aka unsigned int}' from 'ssize_t {aka int}' may change the sign of the result [-Wsign-conversion] if ((r = SFRD(f, f->endb, r, f->disc)) >= 0) { ^ sfhdr.h:600:52: note: in definition of macro 'SFRD' #define SFRD(f,b,n,d) (SETLOCAL(f),sfrd(f,(void*)b,n,d)) ^ sfhdr.h:622:16: warning: negative integer implicitly converted to unsigned type [-Wsign-conversion] ((f)->mode &= ~(SF_LOCK|SF_RC|SF_RV), _SFOPEN(f), 0) ) ^ sffilbuf.c:89:5: note: in expansion of macro 'SFOPEN' SFOPEN(f, local); ^~~~~~ In file included from sfflsbuf.c:14:0: sfhdr.h:155:5: warning: "_socket_peek" is not defined, evaluates to 0 [-Wundef] #if _socket_peek ^~~~~~~~~~~~ In file included from sffcvt.c:14:0: sfhdr.h:155:5: warning: "_socket_peek" is not defined, evaluates to 0 [-Wundef] #if _socket_peek ^~~~~~~~~~~~ In file included from sfflsbuf.c:14:0: sfflsbuf.c: In function '_sfflsbuf': sfhdr.h:594:62: warning: negative integer implicitly converted to unsigned type [-Wsign-conversion] #define GETLOCAL(f,v) ((v) = ((f)->mode&SF_LOCAL), (f)->mode &= ~SF_LOCAL, (void)(v)) ^ sfflsbuf.c:36:5: note: in expansion of macro 'GETLOCAL' GETLOCAL(f, local); ^~~~~~~~ sfflsbuf.c:38:21: warning: negative integer implicitly converted to unsigned type [-Wsign-conversion] for (;; f->mode &= ~SF_LOCK) { /* check stream mode */ ^~ In file included from sfflsbuf.c:14:0: sfhdr.h:614:32: warning: conversion to 'unsigned int' from 'int' may change the sign of the result [-Wsign-conversion] #define SFMODE(f,l) ((f)->mode & ~(SF_RV|SF_RC|((l) ? SF_LOCK : 0)) ) ^ sfflsbuf.c:39:6: note: in expansion of macro 'SFMODE' if (SFMODE(f, local) != SF_WRITE ^~~~~~ sfhdr.h:622:16: warning: negative integer implicitly converted to unsigned type [-Wsign-conversion] ((f)->mode &= ~(SF_LOCK|SF_RC|SF_RV), _SFOPEN(f), 0) ) ^ sfflsbuf.c:55:3: note: in expansion of macro 'SFOPEN' SFOPEN(f, local); ^~~~~~ sfflsbuf.c:62:16: warning: conversion to 'unsigned char' from 'int' may alter its value [-Wconversion] *f->next++ = c; ^ In file included from sfflsbuf.c:14:0: sfhdr.h:596:61: warning: negative integer implicitly converted to unsigned type [-Wsign-conversion] #define SFISALL(f,v) ((((v) = (f)->mode&SF_RV) ? ((f)->mode &= ~SF_RV) : 0), \ ^ sfflsbuf.c:80:10: note: in expansion of macro 'SFISALL' isall = SFISALL(f, isall); ^~~~~~~ sfflsbuf.c:81:25: warning: conversion to 'size_t {aka unsigned int}' from 'ssize_t {aka int}' may change the sign of the result [-Wsign-conversion] if ((w = SFWR(f, data, n, f->disc)) > 0) { ^ sfhdr.h:601:52: note: in definition of macro 'SFWR' #define SFWR(f,b,n,d) (SETLOCAL(f),sfwr(f,(void*)b,n,d)) ^ sfflsbuf.c:83:47: warning: conversion to 'size_t {aka unsigned int}' from 'ssize_t {aka int}' may change the sign of the result [-Wsign-conversion] memcpy((char *) f->data, (char *) data + w, n); ^ In file included from sfflsbuf.c:14:0: sfhdr.h:622:16: warning: negative integer implicitly converted to unsigned type [-Wsign-conversion] ((f)->mode &= ~(SF_LOCK|SF_RC|SF_RV), _SFOPEN(f), 0) ) ^ sfflsbuf.c:88:6: note: in expansion of macro 'SFOPEN' SFOPEN(f, local); ^~~~~~ sfhdr.h:622:16: warning: negative integer implicitly converted to unsigned type [-Wsign-conversion] ((f)->mode &= ~(SF_LOCK|SF_RC|SF_RV), _SFOPEN(f), 0) ) ^ sfflsbuf.c:94:5: note: in expansion of macro 'SFOPEN' SFOPEN(f, local); ^~~~~~ sffcvt.c:22:7: warning: no previous prototype for 'sffcvt' [-Wmissing-prototypes] char *sffcvt(double dval, int n_digit, int *decpt, int *sign) ^~~~~~ In file included from sfgetd.c:14:0: sfhdr.h:155:5: warning: "_socket_peek" is not defined, evaluates to 0 [-Wundef] #if _socket_peek ^~~~~~~~~~~~ sfgetd.c: In function 'sfgetd': sfgetd.c:48:16: warning: conversion to 'double' from 'long double' may alter its value [-Wfloat-conversion] v = ldexp(v, -SF_PRECIS); ^ sfgetd.c:58:15: warning: conversion to 'double' from 'long double' may alter its value [-Wfloat-conversion] v = ldexp(v, (sign & 02) ? -exp : exp); ^ In file included from sfgetd.c:14:0: sfhdr.h:622:16: warning: negative integer implicitly converted to unsigned type [-Wsign-conversion] ((f)->mode &= ~(SF_LOCK|SF_RC|SF_RV), _SFOPEN(f), 0) ) ^ sfgetd.c:62:5: note: in expansion of macro 'SFOPEN' SFOPEN(f, 0); ^~~~~~ In file included from sfgetm.c:14:0: sfhdr.h:155:5: warning: "_socket_peek" is not defined, evaluates to 0 [-Wundef] #if _socket_peek ^~~~~~~~~~~~ CC sfllen.lo In file included from sfgetl.c:14:0: sfhdr.h:155:5: warning: "_socket_peek" is not defined, evaluates to 0 [-Wundef] #if _socket_peek ^~~~~~~~~~~~ In file included from sfgetm.c:14:0: sfgetm.c: In function 'sfgetm': sfhdr.h:622:16: warning: negative integer implicitly converted to unsigned type [-Wsign-conversion] ((f)->mode &= ~(SF_LOCK|SF_RC|SF_RV), _SFOPEN(f), 0) ) ^ sfgetm.c:51:5: note: in expansion of macro 'SFOPEN' SFOPEN(f, 0); ^~~~~~ sfgetl.c: In function 'sfgetl': sfgetl.c:42:7: warning: conversion to 'long long int' from 'long long unsigned int' may change the sign of the result [-Wsign-conversion] v = ((Sfulong_t) v << SF_UBITS) | SFUVALUE(c); ^ sfgetl.c:44:7: warning: conversion to 'long long int' from 'long long unsigned int' may change the sign of the result [-Wsign-conversion] v = ((Sfulong_t) v << SF_SBITS) | SFSVALUE(c); ^ In file included from sfgetl.c:14:0: sfhdr.h:622:16: warning: negative integer implicitly converted to unsigned type [-Wsign-conversion] ((f)->mode &= ~(SF_LOCK|SF_RC|SF_RV), _SFOPEN(f), 0) ) ^ sfgetl.c:53:5: note: in expansion of macro 'SFOPEN' SFOPEN(f, 0); ^~~~~~ In file included from sfgetr.c:14:0: sfhdr.h:155:5: warning: "_socket_peek" is not defined, evaluates to 0 [-Wundef] #if _socket_peek ^~~~~~~~~~~~ CC sfmode.lo sfgetr.c: In function 'sfgetr': sfgetr.c:60:16: warning: conversion to 'unsigned char' from 'int' may alter its value [-Wconversion] f->getr = rc; ^~ sfgetr.c:76:45: warning: conversion to 'size_t {aka unsigned int}' from 'ssize_t {aka int}' may change the sign of the result [-Wsign-conversion] if (!(s = (uchar *) memchr((char *) s, rc, n))) ^ In file included from sfgetr.c:14:0: sfgetr.c:116:18: warning: conversion to 'size_t {aka unsigned int}' from 'ssize_t {aka int}' may change the sign of the result [-Wsign-conversion] MEMCPY(s, ends, n); ^ sfhdr.h:817:41: note: in definition of macro 'MEMCPY' { default : memcpy((void*)to,(void*)fr,n); to += n; fr += n; break; \ ^ sfgetr.c:125:16: warning: conversion to 'unsigned char' from 'int' may alter its value [-Wconversion] f->getr = rc; ^~ In file included from sfgetr.c:14:0: sfhdr.h:622:16: warning: negative integer implicitly converted to unsigned type [-Wsign-conversion] ((f)->mode &= ~(SF_LOCK|SF_RC|SF_RV), _SFOPEN(f), 0) ) ^ sfgetr.c:134:5: note: in expansion of macro 'SFOPEN' SFOPEN(f, 0); ^~~~~~ sfhdr.h:818:20: warning: this statement may fall through [-Wimplicit-fallthrough=] case 7 : *to++ = *fr++; \ ~~~~~~^~~~~~ sfgetr.c:116:2: note: in expansion of macro 'MEMCPY' MEMCPY(s, ends, n); ^~~~~~ sfhdr.h:819:4: note: here case 6 : *to++ = *fr++; \ ^ sfgetr.c:116:2: note: in expansion of macro 'MEMCPY' MEMCPY(s, ends, n); ^~~~~~ sfhdr.h:819:20: warning: this statement may fall through [-Wimplicit-fallthrough=] case 6 : *to++ = *fr++; \ ~~~~~~^~~~~~ sfgetr.c:116:2: note: in expansion of macro 'MEMCPY' MEMCPY(s, ends, n); ^~~~~~ sfhdr.h:820:4: note: here case 5 : *to++ = *fr++; \ ^ sfgetr.c:116:2: note: in expansion of macro 'MEMCPY' MEMCPY(s, ends, n); ^~~~~~ sfhdr.h:820:20: warning: this statement may fall through [-Wimplicit-fallthrough=] case 5 : *to++ = *fr++; \ ~~~~~~^~~~~~ sfgetr.c:116:2: note: in expansion of macro 'MEMCPY' MEMCPY(s, ends, n); ^~~~~~ CC sfmove.lo sfhdr.h:821:4: note: here case 4 : *to++ = *fr++; \ ^ sfgetr.c:116:2: note: in expansion of macro 'MEMCPY' MEMCPY(s, ends, n); ^~~~~~ sfhdr.h:821:20: warning: this statement may fall through [-Wimplicit-fallthrough=] case 4 : *to++ = *fr++; \ ~~~~~~^~~~~~ sfgetr.c:116:2: note: in expansion of macro 'MEMCPY' MEMCPY(s, ends, n); ^~~~~~ sfhdr.h:822:4: note: here case 3 : *to++ = *fr++; \ ^ sfgetr.c:116:2: note: in expansion of macro 'MEMCPY' MEMCPY(s, ends, n); ^~~~~~ sfhdr.h:822:20: warning: this statement may fall through [-Wimplicit-fallthrough=] case 3 : *to++ = *fr++; \ ~~~~~~^~~~~~ sfgetr.c:116:2: note: in expansion of macro 'MEMCPY' MEMCPY(s, ends, n); ^~~~~~ sfhdr.h:823:4: note: here case 2 : *to++ = *fr++; \ ^ sfgetr.c:116:2: note: in expansion of macro 'MEMCPY' MEMCPY(s, ends, n); ^~~~~~ sfhdr.h:823:20: warning: this statement may fall through [-Wimplicit-fallthrough=] case 2 : *to++ = *fr++; \ ~~~~~~^~~~~~ sfgetr.c:116:2: note: in expansion of macro 'MEMCPY' MEMCPY(s, ends, n); ^~~~~~ sfhdr.h:824:4: note: here case 1 : *to++ = *fr++; \ ^ sfgetr.c:116:2: note: in expansion of macro 'MEMCPY' MEMCPY(s, ends, n); ^~~~~~ CC sfmutex.lo CC sfnew.lo CC sfnotify.lo In file included from sfgetu.c:14:0: sfhdr.h:155:5: warning: "_socket_peek" is not defined, evaluates to 0 [-Wundef] #if _socket_peek ^~~~~~~~~~~~ CC sfnputc.lo In file included from sfgetu.c:14:0: sfgetu.c: In function 'sfgetu': sfhdr.h:622:16: warning: negative integer implicitly converted to unsigned type [-Wsign-conversion] ((f)->mode &= ~(SF_LOCK|SF_RC|SF_RV), _SFOPEN(f), 0) ) ^ sfgetu.c:51:5: note: in expansion of macro 'SFOPEN' SFOPEN(f, 0); ^~~~~~ In file included from sfllen.c:14:0: sfhdr.h:155:5: warning: "_socket_peek" is not defined, evaluates to 0 [-Wundef] #if _socket_peek ^~~~~~~~~~~~ sfllen.c: In function '_sfllen': sfllen.c:24:9: warning: conversion to 'long long int' from 'long long unsigned int' may change the sign of the result [-Wsign-conversion] v = (Sfulong_t) v >> SF_SBITS; ^ In file included from sfmode.c:14:0: sfhdr.h:155:5: warning: "_socket_peek" is not defined, evaluates to 0 [-Wundef] #if _socket_peek ^~~~~~~~~~~~ CC sfopen.lo sfmode.c: In function '_sfcleanup': sfmode.c:72:14: warning: negative integer implicitly converted to unsigned type [-Wsign-conversion] f->mode &= ~SF_POOL; ^~ sfmode.c:78:14: warning: conversion to 'unsigned int' from 'int' may change the sign of the result [-Wsign-conversion] f->mode |= pool; ^~ In file included from sfmode.c:14:0: sfhdr.h:622:16: warning: negative integer implicitly converted to unsigned type [-Wsign-conversion] ((f)->mode &= ~(SF_LOCK|SF_RC|SF_RV), _SFOPEN(f), 0) ) ^ sfmode.c:81:6: note: in expansion of macro 'SFOPEN' SFOPEN(f, 0); ^~~~~~ sfmode.c: In function '_sfsetpool': sfmode.c:111:41: warning: conversion to 'unsigned int' from 'int' may change the sign of the result [-Wsign-conversion] if (!(array = (Sfio_t **) malloc(n * sizeof(Sfio_t *)))) ^ sfmode.c:116:14: warning: conversion to 'unsigned int' from 'int' may change the sign of the result [-Wsign-conversion] p->n_sf * sizeof(Sfio_t *)); ^ sfmode.c: In function '_sfrsrv': sfmode.c:143:38: warning: conversion to 'unsigned int' from 'ssize_t {aka int}' may change the sign of the result [-Wsign-conversion] if (!(rs = (Sfrsrv_t *) malloc(size + sizeof(Sfrsrv_t)))) ^ sfmode.c:148:41: warning: conversion to 'unsigned int' from 'ssize_t {aka int}' may change the sign of the result [-Wsign-conversion] memcpy(rs, rsrv, sizeof(Sfrsrv_t) + rsrv->slen); ^ sfmode.c: In function '_sfpmode': sfmode.c:266:39: warning: conversion to 'size_t {aka unsigned int}' from 'int' may change the sign of the result [-Wsign-conversion] if ((p->rdata = (uchar *) malloc(p->ndata))) ^ sfmode.c:274:50: warning: conversion to 'size_t {aka unsigned int}' from 'int' may change the sign of the result [-Wsign-conversion] memcpy((void *) p->rdata, (void *) f->next, p->ndata); ^ sfmode.c:280:50: warning: conversion to 'size_t {aka unsigned int}' from 'int' may change the sign of the result [-Wsign-conversion] memcpy((void *) f->data, (void *) p->rdata, p->ndata); ^ sfmode.c:289:12: warning: conversion to 'short int' from 'int' may alter its value [-Wconversion] f->file = p->file; ^ sfmode.c: In function '_sfmode': sfmode.c:332:10: warning: negative integer implicitly converted to unsigned type [-Wsign-conversion] f->mode &= ~SF_GETR; ^~ sfmode.c:359:10: warning: negative integer implicitly converted to unsigned type [-Wsign-conversion] f->mode &= ~SF_POOL; ^~ sfmode.c:379:14: warning: negative integer implicitly converted to unsigned type [-Wsign-conversion] f->mode &= ~SF_INIT; ^~ In file included from sfmode.c:14:0: sfmode.c:391:34: warning: conversion to 'size_t {aka unsigned int}' from 'ssize_t {aka int}' may change the sign of the result [-Wsign-conversion] (void) SFSETBUF(f, f->data, f->size); ^ sfhdr.h:606:51: note: in definition of macro 'SFSETBUF' #define SFSETBUF(f,s,n) (SETLOCAL(f),sfsetbuf(f,s,n)) ^ sfmode.c:392:18: warning: conversion to 'short unsigned int' from 'int' may alter its value [-Wconversion] f->flags |= (n & SF_MALLOC); ^ In file included from sfmode.c:14:0: sfhdr.h:614:32: warning: negative integer implicitly converted to unsigned type [-Wsign-conversion] #define SFMODE(f,l) ((f)->mode & ~(SF_RV|SF_RC|((l) ? SF_LOCK : 0)) ) ^ sfmode.c:396:25: note: in expansion of macro 'SFMODE' if (wanted == (int) SFMODE(f, 1)) ^~~~~~ sfhdr.h:614:32: warning: negative integer implicitly converted to unsigned type [-Wsign-conversion] #define SFMODE(f,l) ((f)->mode & ~(SF_RV|SF_RC|((l) ? SF_LOCK : 0)) ) ^ sfmode.c:399:13: note: in expansion of macro 'SFMODE' switch (SFMODE(f, 1)) { ^~~~~~ In file included from sfmove.c:14:0: sfhdr.h:155:5: warning: "_socket_peek" is not defined, evaluates to 0 [-Wundef] #if _socket_peek ^~~~~~~~~~~~ sfmode.c:505:13: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] if (wanted != (f->mode & SF_RDWR) && f->file >= 0) ^~ In file included from sfmode.c:14:0: sfhdr.h:622:16: warning: negative integer implicitly converted to unsigned type [-Wsign-conversion] ((f)->mode &= ~(SF_LOCK|SF_RC|SF_RV), _SFOPEN(f), 0) ) ^ sfmode.c:516:5: note: in expansion of macro 'SFOPEN' SFOPEN(f, local); ^~~~~~ sfmove.c: In function 'sfmove': sfmove.c:99:50: warning: conversion to 'size_t {aka unsigned int}' from 'ssize_t {aka int}' may change the sign of the result [-Wsign-conversion] if (rsize <= 0 && (rbuf = (uchar *) malloc(w))) ^ sfmove.c:118:12: warning: conversion to 'size_t {aka unsigned int}' from 'ssize_t {aka int}' may change the sign of the result [-Wsign-conversion] fr->size, rc, -1, (int) (-n)); ^~ sfmove.c:125:23: warning: conversion to 'unsigned char' from 'int' may alter its value [-Wconversion] one_r:fr->getr = rc; ^~ In file included from sfmove.c:14:0: sfmove.c:141:27: warning: conversion to 'size_t {aka unsigned int}' from 'ssize_t {aka int}' may change the sign of the result [-Wsign-conversion] if ((r = SFRD(fr, next, w, fr->disc)) > 0) ^ sfhdr.h:600:52: note: in definition of macro 'SFRD' #define SFRD(f,b,n,d) (SETLOCAL(f),sfrd(f,(void*)b,n,d)) ^ sfmove.c:165:14: warning: conversion to 'unsigned char' from 'int' may alter its value [-Wconversion] endb[-1] = rc; ^~ sfmove.c:180:14: warning: conversion to 'unsigned char' from 'ssize_t {aka int}' may alter its value [-Wconversion] endb[-1] = w; ^ sfmove.c:183:12: warning: negative integer implicitly converted to unsigned type [-Wsign-conversion] fr->mode &= ~SF_PKRD; ^~ sfmove.c:184:40: warning: conversion to 'size_t {aka unsigned int}' from 'ssize_t {aka int}' may change the sign of the result [-Wsign-conversion] (void) read(fr->file, (void *) next, r); ^ sfmove.c:198:45: warning: conversion to 'size_t {aka unsigned int}' from 'ssize_t {aka int}' may change the sign of the result [-Wsign-conversion] memcpy((void *) fr->data, (void *) cp, w); ^ sfmove.c:208:44: warning: conversion to 'size_t {aka unsigned int}' from 'ssize_t {aka int}' may change the sign of the result [-Wsign-conversion] memcpy((void *) fw->next, (void *) next, r); ^ In file included from sfmove.c:14:0: sfmove.c:210:49: warning: conversion to 'size_t {aka unsigned int}' from 'ssize_t {aka int}' may change the sign of the result [-Wsign-conversion] } else if ((w = SFWRITE(fw, (void *) next, r)) != r) { /* a write error happened */ ^ sfhdr.h:607:49: note: in definition of macro 'SFWRITE' #define SFWRITE(f,s,n) (SETLOCAL(f),sfwrite(f,s,n)) ^ sfhdr.h:622:16: warning: negative integer implicitly converted to unsigned type [-Wsign-conversion] ((f)->mode &= ~(SF_LOCK|SF_RC|SF_RV), _SFOPEN(f), 0) ) ^ sfmove.c:223:2: note: in expansion of macro 'SFOPEN' SFOPEN(fr, 0); ^~~~~~ sfhdr.h:622:16: warning: negative integer implicitly converted to unsigned type [-Wsign-conversion] ((f)->mode &= ~(SF_LOCK|SF_RC|SF_RV), _SFOPEN(f), 0) ) ^ sfmove.c:225:6: note: in expansion of macro 'SFOPEN' SFOPEN(fw, 0); ^~~~~~ In file included from sfmove.c:14:0: sfhdr.h:230:20: warning: conversion to 'short unsigned int' from 'int' may alter its value [-Wconversion] (((f)->bits &= ~SF_MVSIZE), ((f)->size /= SF_NMAP)) ) ^ sfmove.c:230:2: note: in expansion of macro 'SFMVUNSET' SFMVUNSET(fr); ^~~~~~~~~ sfmove.c:232:51: warning: suggest braces around empty body in an 'if' statement [-Wempty-body] SFMMSEQOFF(fr, fr->data, fr->endb - fr->data); ^ sfmove.c:233:14: warning: conversion to 'short unsigned int' from 'int' may alter its value [-Wconversion] fr->bits &= ~SF_SEQUENTIAL; ^ In file included from sfmove.c:14:0: sfhdr.h:622:16: warning: negative integer implicitly converted to unsigned type [-Wsign-conversion] ((f)->mode &= ~(SF_LOCK|SF_RC|SF_RV), _SFOPEN(f), 0) ) ^ sfmove.c:239:5: note: in expansion of macro 'SFOPEN' SFOPEN(fr, 0); ^~~~~~ sfhdr.h:622:16: warning: negative integer implicitly converted to unsigned type [-Wsign-conversion] ((f)->mode &= ~(SF_LOCK|SF_RC|SF_RV), _SFOPEN(f), 0) ) ^ sfmove.c:241:2: note: in expansion of macro 'SFOPEN' SFOPEN(fw, 0); ^~~~~~ CC sfpkrd.lo In file included from sfmutex.c:14:0: sfhdr.h:155:5: warning: "_socket_peek" is not defined, evaluates to 0 [-Wundef] #if _socket_peek ^~~~~~~~~~~~ In file included from sfnotify.c:14:0: sfhdr.h:155:5: warning: "_socket_peek" is not defined, evaluates to 0 [-Wundef] #if _socket_peek ^~~~~~~~~~~~ sfmutex.c: In function 'sfmutex': sfmutex.c:22:22: warning: unused parameter 'f' [-Wunused-parameter] int sfmutex(Sfio_t * f, int type) ^ sfmutex.c:22:29: warning: unused parameter 'type' [-Wunused-parameter] int sfmutex(Sfio_t * f, int type) ^~~~ In file included from sfnew.c:14:0: sfhdr.h:155:5: warning: "_socket_peek" is not defined, evaluates to 0 [-Wundef] #if _socket_peek ^~~~~~~~~~~~ sfnew.c: In function 'sfnew': sfnew.c:98:16: warning: conversion to 'short unsigned int' from 'int' may alter its value [-Wconversion] f->flags = (flags & SF_FLAGS) | (sflags & (SF_MALLOC | SF_STATIC)); ^ sfnew.c:100:15: warning: conversion to 'short int' from 'int' may alter its value [-Wconversion] f->file = file; ^~~~ sfnew.c:106:12: warning: conversion to 'ssize_t {aka int}' from 'size_t {aka unsigned int}' may change the sign of the result [-Wsign-conversion] f->size = size; ^~~~ CC sfpoll.lo CC sfpool.lo In file included from sfnputc.c:14:0: sfhdr.h:155:5: warning: "_socket_peek" is not defined, evaluates to 0 [-Wundef] #if _socket_peek ^~~~~~~~~~~~ In file included from sfnputc.c:14:0: sfnputc.c: In function 'sfnputc': sfhdr.h:594:62: warning: negative integer implicitly converted to unsigned type [-Wsign-conversion] #define GETLOCAL(f,v) ((v) = ((f)->mode&SF_LOCAL), (f)->mode &= ~SF_LOCAL, (void)(v)) ^ sfnputc.c:35:5: note: in expansion of macro 'GETLOCAL' GETLOCAL(f, local); ^~~~~~~~ sfhdr.h:614:32: warning: conversion to 'unsigned int' from 'int' may change the sign of the result [-Wsign-conversion] #define SFMODE(f,l) ((f)->mode & ~(SF_RV|SF_RC|((l) ? SF_LOCK : 0)) ) ^ sfnputc.c:36:9: note: in expansion of macro 'SFMODE' if (SFMODE(f, local) != SF_WRITE && _sfmode(f, SF_WRITE, local) < 0) ^~~~~~ sfnputc.c:47:6: warning: conversion to 'ssize_t {aka int}' from 'size_t {aka unsigned int}' may change the sign of the result [-Wsign-conversion] p = n; ^ In file included from sfnputc.c:14:0: sfnputc.c:48:19: warning: conversion to 'size_t {aka unsigned int}' from 'ssize_t {aka int}' may change the sign of the result [-Wsign-conversion] MEMSET(ps, c, p); ^ sfhdr.h:828:37: note: in definition of macro 'MEMSET' { default : memset((void*)s,(int)c,n); s += n; break; \ ^ sfnputc.c:48:16: warning: conversion to 'unsigned char' from 'int' may alter its value [-Wconversion] MEMSET(ps, c, p); ^ sfhdr.h:829:21: note: in definition of macro 'MEMSET' case 7 : *s++ = c; \ ^ sfnputc.c:48:16: warning: conversion to 'unsigned char' from 'int' may alter its value [-Wconversion] MEMSET(ps, c, p); ^ sfhdr.h:830:21: note: in definition of macro 'MEMSET' case 6 : *s++ = c; \ ^ sfnputc.c:48:16: warning: conversion to 'unsigned char' from 'int' may alter its value [-Wconversion] MEMSET(ps, c, p); ^ sfhdr.h:831:21: note: in definition of macro 'MEMSET' case 5 : *s++ = c; \ ^ sfnputc.c:48:16: warning: conversion to 'unsigned char' from 'int' may alter its value [-Wconversion] MEMSET(ps, c, p); ^ sfhdr.h:832:21: note: in definition of macro 'MEMSET' case 4 : *s++ = c; \ ^ sfnputc.c:48:16: warning: conversion to 'unsigned char' from 'int' may alter its value [-Wconversion] MEMSET(ps, c, p); ^ sfhdr.h:833:21: note: in definition of macro 'MEMSET' case 3 : *s++ = c; \ ^ sfnputc.c:48:16: warning: conversion to 'unsigned char' from 'int' may alter its value [-Wconversion] MEMSET(ps, c, p); ^ sfhdr.h:834:21: note: in definition of macro 'MEMSET' case 2 : *s++ = c; \ ^ sfnputc.c:48:16: warning: conversion to 'unsigned char' from 'int' may alter its value [-Wconversion] MEMSET(ps, c, p); ^ sfhdr.h:835:21: note: in definition of macro 'MEMSET' case 1 : *s++ = c; \ ^ sfnputc.c:51:9: warning: conversion to 'ssize_t {aka int}' from 'size_t {aka unsigned int}' may change the sign of the result [-Wsign-conversion] w = n; ^ In file included from sfnputc.c:14:0: sfnputc.c:60:35: warning: conversion to 'size_t {aka unsigned int}' from 'ssize_t {aka int}' may change the sign of the result [-Wsign-conversion] if ((p = SFWRITE(f, (void *) ps, p)) <= 0 || (n -= p) <= 0) { ^ sfhdr.h:607:49: note: in definition of macro 'SFWRITE' #define SFWRITE(f,s,n) (SETLOCAL(f),sfwrite(f,s,n)) ^ sfnputc.c:60:50: warning: conversion to 'size_t {aka unsigned int}' from 'ssize_t {aka int}' may change the sign of the result [-Wsign-conversion] if ((p = SFWRITE(f, (void *) ps, p)) <= 0 || (n -= p) <= 0) { ^~ sfnputc.c:61:8: warning: conversion to 'size_t {aka unsigned int}' from 'ssize_t {aka int}' may change the sign of the result [-Wsign-conversion] w -= n; ^~ sfnputc.c:61:11: warning: conversion to 'ssize_t {aka int}' from 'size_t {aka unsigned int}' may change the sign of the result [-Wsign-conversion] w -= n; ^ sfnputc.c:65:10: warning: conversion to 'ssize_t {aka int}' from 'size_t {aka unsigned int}' may change the sign of the result [-Wsign-conversion] p = n; ^ In file included from sfnputc.c:14:0: sfhdr.h:622:16: warning: negative integer implicitly converted to unsigned type [-Wsign-conversion] ((f)->mode &= ~(SF_LOCK|SF_RC|SF_RV), _SFOPEN(f), 0) ) ^ sfnputc.c:68:5: note: in expansion of macro 'SFOPEN' SFOPEN(f, local); ^~~~~~ sfhdr.h:829:19: warning: this statement may fall through [-Wimplicit-fallthrough=] case 7 : *s++ = c; \ sfnputc.c:48:5: note: in expansion of macro 'MEMSET' MEMSET(ps, c, p); ^~~~~~ sfhdr.h:830:4: note: here case 6 : *s++ = c; \ ^ sfnputc.c:48:5: note: in expansion of macro 'MEMSET' MEMSET(ps, c, p); ^~~~~~ sfhdr.h:830:19: warning: this statement may fall through [-Wimplicit-fallthrough=] case 6 : *s++ = c; \ sfnputc.c:48:5: note: in expansion of macro 'MEMSET' MEMSET(ps, c, p); ^~~~~~ sfhdr.h:831:4: note: here case 5 : *s++ = c; \ ^ sfnputc.c:48:5: note: in expansion of macro 'MEMSET' MEMSET(ps, c, p); ^~~~~~ sfhdr.h:831:19: warning: this statement may fall through [-Wimplicit-fallthrough=] case 5 : *s++ = c; \ sfnputc.c:48:5: note: in expansion of macro 'MEMSET' MEMSET(ps, c, p); ^~~~~~ sfhdr.h:832:4: note: here case 4 : *s++ = c; \ ^ sfnputc.c:48:5: note: in expansion of macro 'MEMSET' MEMSET(ps, c, p); ^~~~~~ sfhdr.h:832:19: warning: this statement may fall through [-Wimplicit-fallthrough=] case 4 : *s++ = c; \ sfnputc.c:48:5: note: in expansion of macro 'MEMSET' MEMSET(ps, c, p); ^~~~~~ sfhdr.h:833:4: note: here case 3 : *s++ = c; \ ^ sfnputc.c:48:5: note: in expansion of macro 'MEMSET' MEMSET(ps, c, p); ^~~~~~ sfhdr.h:833:19: warning: this statement may fall through [-Wimplicit-fallthrough=] case 3 : *s++ = c; \ sfnputc.c:48:5: note: in expansion of macro 'MEMSET' MEMSET(ps, c, p); ^~~~~~ sfhdr.h:834:4: note: here case 2 : *s++ = c; \ ^ sfnputc.c:48:5: note: in expansion of macro 'MEMSET' MEMSET(ps, c, p); ^~~~~~ sfhdr.h:834:19: warning: this statement may fall through [-Wimplicit-fallthrough=] case 2 : *s++ = c; \ sfnputc.c:48:5: note: in expansion of macro 'MEMSET' MEMSET(ps, c, p); ^~~~~~ sfhdr.h:835:4: note: here case 1 : *s++ = c; \ ^ sfnputc.c:48:5: note: in expansion of macro 'MEMSET' MEMSET(ps, c, p); ^~~~~~ CC sfpopen.lo In file included from sfopen.c:14:0: sfhdr.h:155:5: warning: "_socket_peek" is not defined, evaluates to 0 [-Wundef] #if _socket_peek ^~~~~~~~~~~~ sfopen.c: In function 'sfopen': sfopen.c:52:18: warning: conversion to 'short unsigned int' from 'int' may alter its value [-Wconversion] f->flags |= (sflags & (SF_FLAGS & ~SF_RDWR)); ^ sfopen.c:56:14: warning: conversion to 'short unsigned int' from 'int' may alter its value [-Wconversion] f->flags = (f->flags & ~SF_RDWR) | sflags; ^ sfopen.c:61:18: warning: conversion to 'short unsigned int' from 'int' may alter its value [-Wconversion] f->bits &= ~SF_BOTH; ^ sfopen.c:64:26: warning: negative integer implicitly converted to unsigned type [-Wsign-conversion] f->mode = (f->mode & ~SF_WRITE) | SF_READ; ^ sfopen.c:66:26: warning: negative integer implicitly converted to unsigned type [-Wsign-conversion] f->mode = (f->mode & ~SF_READ) | SF_WRITE; ^ sfopen.c:76:15: warning: cast discards 'const' qualifier from pointer target type [-Wcast-qual] f = sfnew(f, (char *) file, ^ sfopen.c:77:28: warning: cast discards 'const' qualifier from pointer target type [-Wcast-qual] file ? (size_t) strlen((char *) file) : (size_t) ^ sfopen.c:84:20: warning: cast discards 'const' qualifier from pointer target type [-Wcast-qual] while ((fd = open((char *) file, oflags, SF_CREATMODE)) < 0 ^ CC sfprintf.lo CC sfprints.lo CC sfpurge.lo In file included from sfpkrd.c:14:0: sfhdr.h:155:5: warning: "_socket_peek" is not defined, evaluates to 0 [-Wundef] #if _socket_peek ^~~~~~~~~~~~ sfpkrd.c: In function 'sfpkrd': sfpkrd.c:53:6: warning: "_socket_peek" is not defined, evaluates to 0 [-Wundef] #if !_socket_peek ^~~~~~~~~~~~ sfpkrd.c:66:28: warning: conversion to 'int' from 'size_t {aka unsigned int}' may change the sign of the result [-Wsign-conversion] pbuf.databuf.maxlen = n; ^ sfpkrd.c:99:5: warning: "_lib_poll" is not defined, evaluates to 0 [-Wundef] #if _lib_poll ^~~~~~~~~ sfpkrd.c:120:5: warning: "_hpux_threads" is not defined, evaluates to 0 [-Wundef] #if _hpux_threads && vt_threaded ^~~~~~~~~~~~~ sfpkrd.c:126:3: warning: conversion to 'unsigned int' from 'int' may change the sign of the result [-Wsign-conversion] FD_SET(fd, &rd); ^~~~~~ sfpkrd.c:126:3: warning: conversion to 'unsigned int' from 'int' may change the sign of the result [-Wsign-conversion] sfpkrd.c:126:3: warning: conversion to 'long unsigned int' from 'long int' may change the sign of the result [-Wsign-conversion] sfpkrd.c:126:3: warning: conversion to 'long int' from 'long unsigned int' may change the sign of the result [-Wsign-conversion] sfpkrd.c:144:11: warning: conversion to 'unsigned int' from 'int' may change the sign of the result [-Wsign-conversion] r = FD_ISSET(fd, &rd) ? 1 : -1; ^~~~~~~~ sfpkrd.c:144:11: warning: conversion to 'unsigned int' from 'int' may change the sign of the result [-Wsign-conversion] sfpkrd.c:144:11: warning: conversion to 'long unsigned int' from 'long int' may change the sign of the result [-Wsign-conversion] sfpkrd.c:148:6: warning: "_lib_poll" is not defined, evaluates to 0 [-Wundef] #if !_lib_poll && !_lib_select /* both poll and select cann't be used */ ^~~~~~~~~ sfpkrd.c:185:5: warning: "_socket_peek" is not defined, evaluates to 0 [-Wundef] #if _socket_peek ^~~~~~~~~~~~ sfpkrd.c:217:12: warning: conversion to 'int' from 'size_t {aka unsigned int}' may change the sign of the result [-Wsign-conversion] action = n; ^ sfpkrd.c:219:32: warning: conversion to 'size_t {aka unsigned int}' from 'int' may change the sign of the result [-Wsign-conversion] while ((t = read(fd, buf, action)) > 0) { ^~~~~~ sfpkrd.c:224:31: warning: conversion to 'size_t {aka unsigned int}' from 'ssize_t {aka int}' may change the sign of the result [-Wsign-conversion] if (action == 0 || (int) (n - r) < action) ^ sfpkrd.c:245:20: warning: conversion to 'size_t {aka unsigned int}' from 'ssize_t {aka int}' may change the sign of the result [-Wsign-conversion] r = read(fd, buf, r); ^ CC sfputd.lo In file included from sfpoll.c:14:0: sfhdr.h:155:5: warning: "_socket_peek" is not defined, evaluates to 0 [-Wundef] #if _socket_peek ^~~~~~~~~~~~ sfpoll.c: In function 'sfpoll': sfpoll.c:38:41: warning: conversion to 'unsigned int' from 'int' may change the sign of the result [-Wsign-conversion] if (!(status = (int *) malloc(2 * n * sizeof(int)))) ^ sfpoll.c:84:6: warning: switch missing default case [-Wswitch-default] switch (_sfexcept(f, f->mode & SF_RDWR, 0, f->disc)) { ^~~~~~ sfpoll.c:120:5: warning: "_lib_poll" is not defined, evaluates to 0 [-Wundef] #if _lib_poll ^~~~~~~~~ sfpoll.c:171:3: warning: conversion to 'unsigned int' from 'short int' may change the sign of the result [-Wsign-conversion] FD_SET(f->file, &rd); ^~~~~~ sfpoll.c:171:3: warning: conversion to 'unsigned int' from 'short int' may change the sign of the result [-Wsign-conversion] sfpoll.c:171:3: warning: conversion to 'long unsigned int' from 'long int' may change the sign of the result [-Wsign-conversion] sfpoll.c:171:3: warning: conversion to 'long int' from 'long unsigned int' may change the sign of the result [-Wsign-conversion] sfpoll.c:173:3: warning: conversion to 'unsigned int' from 'short int' may change the sign of the result [-Wsign-conversion] FD_SET(f->file, &wr); ^~~~~~ sfpoll.c:173:3: warning: conversion to 'unsigned int' from 'short int' may change the sign of the result [-Wsign-conversion] sfpoll.c:173:3: warning: conversion to 'long unsigned int' from 'long int' may change the sign of the result [-Wsign-conversion] sfpoll.c:173:3: warning: conversion to 'long int' from 'long unsigned int' may change the sign of the result [-Wsign-conversion] sfpoll.c:194:31: warning: conversion to 'unsigned int' from 'short int' may change the sign of the result [-Wsign-conversion] if (((f->mode & SF_READ) && FD_ISSET(f->file, &rd)) || ^~~~~~~~ sfpoll.c:194:31: warning: conversion to 'unsigned int' from 'short int' may change the sign of the result [-Wsign-conversion] sfpoll.c:194:31: warning: conversion to 'long unsigned int' from 'long int' may change the sign of the result [-Wsign-conversion] sfpoll.c:195:32: warning: conversion to 'unsigned int' from 'short int' may change the sign of the result [-Wsign-conversion] ((f->mode & SF_WRITE) && FD_ISSET(f->file, &wr))) ^~~~~~~~ sfpoll.c:195:32: warning: conversion to 'unsigned int' from 'short int' may change the sign of the result [-Wsign-conversion] sfpoll.c:195:32: warning: conversion to 'long unsigned int' from 'long int' may change the sign of the result [-Wsign-conversion] sfpoll.c:91:6: warning: this statement may fall through [-Wimplicit-fallthrough=] if (f->flags & SF_STRING) ^ sfpoll.c:93:6: note: here case SF_ESTACK: ^~~~ In file included from sfpool.c:14:0: sfhdr.h:155:5: warning: "_socket_peek" is not defined, evaluates to 0 [-Wundef] #if _socket_peek ^~~~~~~~~~~~ CC sfputl.lo In file included from sfpool.c:14:0: sfpool.c: In function '_sfphead': sfhdr.h:614:32: warning: negative integer implicitly converted to unsigned type [-Wsign-conversion] #define SFMODE(f,l) ((f)->mode & ~(SF_RV|SF_RC|((l) ? SF_LOCK : 0)) ) ^ sfpool.c:107:6: note: in expansion of macro 'SFMODE' if (SFMODE(head, 1) != SF_WRITE && _sfmode(head, SF_WRITE, 1) < 0) ^~~~~~ sfpool.c:117:38: warning: conversion to 'size_t {aka unsigned int}' from 'ssize_t {aka int}' may change the sign of the result [-Wsign-conversion] if ((w = SFWR(head, head->data, k, head->disc)) == k) ^ sfhdr.h:601:52: note: in definition of macro 'SFWR' #define SFWR(f,b,n,d) (SETLOCAL(f),sfwr(f,(void*)b,n,d)) ^ sfpool.c:122:44: warning: conversion to 'size_t {aka unsigned int}' from 'ssize_t {aka int}' may change the sign of the result [-Wsign-conversion] memcpy(head->data, (head->data + w), v); ^ sfpool.c:131:40: warning: conversion to 'size_t {aka unsigned int}' from 'ssize_t {aka int}' may change the sign of the result [-Wsign-conversion] memcpy(f->data, (head->data + k), v); ^ sfpool.c:135:13: warning: negative integer implicitly converted to unsigned type [-Wsign-conversion] f->mode &= ~SF_POOL; ^~ sfpool.c:144:16: warning: negative integer implicitly converted to unsigned type [-Wsign-conversion] head->mode &= ~SF_LOCK; /* partially unlock because it's no longer head */ ^~ sfpool.c: In function '_sfpdelete': sfpool.c:164:13: warning: negative integer implicitly converted to unsigned type [-Wsign-conversion] f->mode &= ~SF_POOL; ^~ sfpool.c:184:13: warning: negative integer implicitly converted to unsigned type [-Wsign-conversion] f->mode &= ~SF_POOL; ^~ In file included from sfpool.c:14:0: sfpool.c: In function 'sfpool': sfhdr.h:614:32: warning: negative integer implicitly converted to unsigned type [-Wsign-conversion] #define SFMODE(f,l) ((f)->mode & ~(SF_RV|SF_RC|((l) ? SF_LOCK : 0)) ) ^ sfpool.c:290:6: note: in expansion of macro 'SFMODE' if (SFMODE(f, 1) != SF_WRITE && _sfmode(f, SF_WRITE, 1) < 0) ^~~~~~ sfhdr.h:614:32: warning: negative integer implicitly converted to unsigned type [-Wsign-conversion] #define SFMODE(f,l) ((f)->mode & ~(SF_RV|SF_RC|((l) ? SF_LOCK : 0)) ) ^ sfpool.c:292:6: note: in expansion of macro 'SFMODE' if (SFMODE(pf, 1) != SF_WRITE && _sfmode(pf, SF_WRITE, 1) < 0) ^~~~~~ sfhdr.h:622:16: warning: negative integer implicitly converted to unsigned type [-Wsign-conversion] ((f)->mode &= ~(SF_LOCK|SF_RC|SF_RV), _SFOPEN(f), 0) ) ^ sfpool.c:316:5: note: in expansion of macro 'SFOPEN' SFOPEN(pf, 0); ^~~~~~ sfhdr.h:622:16: warning: negative integer implicitly converted to unsigned type [-Wsign-conversion] ((f)->mode &= ~(SF_LOCK|SF_RC|SF_RV), _SFOPEN(f), 0) ) ^ sfpool.c:317:5: note: in expansion of macro 'SFOPEN' SFOPEN(f, 0); ^~~~~~ sfhdr.h:622:16: warning: negative integer implicitly converted to unsigned type [-Wsign-conversion] ((f)->mode &= ~(SF_LOCK|SF_RC|SF_RV), _SFOPEN(f), 0) ) ^ sfpool.c:324:2: note: in expansion of macro 'SFOPEN' SFOPEN(f, 0); ^~~~~~ sfhdr.h:622:16: warning: negative integer implicitly converted to unsigned type [-Wsign-conversion] ((f)->mode &= ~(SF_LOCK|SF_RC|SF_RV), _SFOPEN(f), 0) ) ^ sfpool.c:328:2: note: in expansion of macro 'SFOPEN' SFOPEN(pf, 0); ^~~~~~ In file included from sfpopen.c:14:0: sfhdr.h:155:5: warning: "_socket_peek" is not defined, evaluates to 0 [-Wundef] #if _socket_peek ^~~~~~~~~~~~ sfpopen.c: In function 'execute': sfpopen.c:48:14: warning: cast discards 'const' qualifier from pointer target type [-Wcast-qual] for (s = (char *) argcmd; *s; ++s) ^ sfpopen.c:68:37: warning: conversion to 'unsigned int' from 'int' may change the sign of the result [-Wsign-conversion] (char **) realloc(argv, (n + 16) * sizeof(char *)))) ^ sfpopen.c: In function 'sfpopen': sfpopen.c:214:16: warning: conversion to 'short int' from 'int' may alter its value [-Wconversion] sf.file = parent[pkeep]; ^~~~~~ sfpopen.c:221:16: warning: conversion to 'short int' from 'int' may alter its value [-Wconversion] sf.file = child[ckeep]; ^~~~~ In file included from sfprintf.c:14:0: sfhdr.h:155:5: warning: "_socket_peek" is not defined, evaluates to 0 [-Wundef] #if _socket_peek ^~~~~~~~~~~~ In file included from sfprints.c:14:0: sfhdr.h:155:5: warning: "_socket_peek" is not defined, evaluates to 0 [-Wundef] #if _socket_peek ^~~~~~~~~~~~ CC sfputm.lo sfpopen.c:123:26: warning: argument 'f' might be clobbered by 'longjmp' or 'vfork' [-Wclobbered] Sfio_t *sfpopen(Sfio_t * f, const char *command, const char *mode) ^ In file included from sfpurge.c:14:0: sfhdr.h:155:5: warning: "_socket_peek" is not defined, evaluates to 0 [-Wundef] #if _socket_peek ^~~~~~~~~~~~ sfpurge.c: In function 'sfpurge': sfpurge.c:57:21: warning: negative integer implicitly converted to unsigned type [-Wsign-conversion] switch (f->mode & ~SF_LOCK) { ^ In file included from sfpurge.c:14:0: sfhdr.h:622:16: warning: negative integer implicitly converted to unsigned type [-Wsign-conversion] ((f)->mode &= ~(SF_LOCK|SF_RC|SF_RV), _SFOPEN(f), 0) ) ^ sfpurge.c:59:2: note: in expansion of macro 'SFOPEN' SFOPEN(f, 0); ^~~~~~ sfhdr.h:622:16: warning: negative integer implicitly converted to unsigned type [-Wsign-conversion] ((f)->mode &= ~(SF_LOCK|SF_RC|SF_RV), _SFOPEN(f), 0) ) ^ sfpurge.c:78:5: note: in expansion of macro 'SFOPEN' SFOPEN(f, 0); ^~~~~~ CC sfputr.lo CC sfputu.lo In file included from sfputd.c:14:0: sfhdr.h:155:5: warning: "_socket_peek" is not defined, evaluates to 0 [-Wundef] #if _socket_peek ^~~~~~~~~~~~ In file included from sfputd.c:14:0: sfputd.c: In function '_sfputd': sfhdr.h:622:16: warning: negative integer implicitly converted to unsigned type [-Wsign-conversion] ((f)->mode &= ~(SF_LOCK|SF_RC|SF_RV), _SFOPEN(f), 0) ) ^ sfputd.c:47:2: note: in expansion of macro 'SFOPEN' SFOPEN(f, 0); ^~~~~~ sfputd.c:53:11: warning: comparing floating point with == or != is unsafe [-Wfloat-equal] if (v != 0.) ^~ sfputd.c:54:12: warning: conversion to 'double' from 'long double' may alter its value [-Wfloat-conversion] v = frexp(v, &exp); ^ In file included from sfputd.c:14:0: sfhdr.h:622:16: warning: negative integer implicitly converted to unsigned type [-Wsign-conversion] ((f)->mode &= ~(SF_LOCK|SF_RC|SF_RV), _SFOPEN(f), 0) ) ^ sfputd.c:65:5: note: in expansion of macro 'SFOPEN' SFOPEN(f, 0); ^~~~~~ sfputd.c:73:23: warning: conversion to 'double' from 'long double' may alter its value [-Wfloat-conversion] n = (int) (x = ldexp(v, SF_PRECIS)); ^ sfputd.c:74:9: warning: conversion to 'unsigned char' from 'int' may alter its value [-Wconversion] *--s = n | SF_MORE; ^ sfputd.c:82:14: warning: conversion to 'unsigned char' from 'int' may alter its value [-Wconversion] *ends &= ~SF_MORE; ^ In file included from sfputd.c:14:0: sfputd.c:86:32: warning: conversion to 'size_t {aka unsigned int}' from 'ssize_t {aka int}' may change the sign of the result [-Wsign-conversion] w = SFWRITE(f, (void *) s, n) == n ? w + n : -1; ^ sfhdr.h:607:49: note: in definition of macro 'SFWRITE' #define SFWRITE(f,s,n) (SETLOCAL(f),sfwrite(f,s,n)) ^ sfhdr.h:622:16: warning: negative integer implicitly converted to unsigned type [-Wsign-conversion] ((f)->mode &= ~(SF_LOCK|SF_RC|SF_RV), _SFOPEN(f), 0) ) ^ sfputd.c:88:5: note: in expansion of macro 'SFOPEN' SFOPEN(f, 0); ^~~~~~ In file included from sfputl.c:14:0: sfhdr.h:155:5: warning: "_socket_peek" is not defined, evaluates to 0 [-Wundef] #if _socket_peek ^~~~~~~~~~~~ sfputl.c: In function '_sfputl': sfputl.c:43:9: warning: conversion to 'long long int' from 'long long unsigned int' may change the sign of the result [-Wsign-conversion] v = (Sfulong_t) v >> SF_SBITS; ^ sfputl.c:47:6: warning: conversion to 'long long int' from 'long long unsigned int' may change the sign of the result [-Wsign-conversion] v = (Sfulong_t) v >> SF_UBITS; ^ In file included from sfputl.c:14:0: sfputl.c:52:29: warning: conversion to 'size_t {aka unsigned int}' from 'ssize_t {aka int}' may change the sign of the result [-Wsign-conversion] n = SFWRITE(f, (void *) s, n); /* write the hard way */ ^ sfhdr.h:607:49: note: in definition of macro 'SFWRITE' #define SFWRITE(f,s,n) (SETLOCAL(f),sfwrite(f,s,n)) ^ sfputl.c:54:2: warning: switch missing default case [-Wswitch-default] switch (n) { ^~~~~~ In file included from sfputl.c:14:0: sfhdr.h:622:16: warning: negative integer implicitly converted to unsigned type [-Wsign-conversion] ((f)->mode &= ~(SF_LOCK|SF_RC|SF_RV), _SFOPEN(f), 0) ) ^ sfputl.c:75:5: note: in expansion of macro 'SFOPEN' SFOPEN(f, 0); ^~~~~~ sfputl.c:56:12: warning: this statement may fall through [-Wimplicit-fallthrough=] *ps++ = *s++; ~~~~~~^~~~~~ sfputl.c:57:2: note: here case 7: ^~~~ sfputl.c:58:12: warning: this statement may fall through [-Wimplicit-fallthrough=] *ps++ = *s++; ~~~~~~^~~~~~ sfputl.c:59:2: note: here case 6: ^~~~ sfputl.c:60:12: warning: this statement may fall through [-Wimplicit-fallthrough=] *ps++ = *s++; ~~~~~~^~~~~~ sfputl.c:61:2: note: here case 5: ^~~~ sfputl.c:62:12: warning: this statement may fall through [-Wimplicit-fallthrough=] *ps++ = *s++; ~~~~~~^~~~~~ sfputl.c:63:2: note: here case 4: ^~~~ sfputl.c:64:12: warning: this statement may fall through [-Wimplicit-fallthrough=] *ps++ = *s++; ~~~~~~^~~~~~ sfputl.c:65:2: note: here case 3: ^~~~ sfputl.c:66:12: warning: this statement may fall through [-Wimplicit-fallthrough=] *ps++ = *s++; ~~~~~~^~~~~~ sfputl.c:67:2: note: here case 2: ^~~~ sfputl.c:68:12: warning: this statement may fall through [-Wimplicit-fallthrough=] *ps++ = *s++; ~~~~~~^~~~~~ sfputl.c:69:2: note: here case 1: ^~~~ CC sfraise.lo CC sfrd.lo CC sfread.lo CC sfreserve.lo CC sfresize.lo In file included from sfputm.c:14:0: sfhdr.h:155:5: warning: "_socket_peek" is not defined, evaluates to 0 [-Wundef] #if _socket_peek ^~~~~~~~~~~~ In file included from sfputm.c:14:0: sfputm.c: In function '_sfputm': sfputm.c:49:29: warning: conversion to 'size_t {aka unsigned int}' from 'ssize_t {aka int}' may change the sign of the result [-Wsign-conversion] n = SFWRITE(f, (void *) s, n); /* write the hard way */ ^ sfhdr.h:607:49: note: in definition of macro 'SFWRITE' #define SFWRITE(f,s,n) (SETLOCAL(f),sfwrite(f,s,n)) ^ sfputm.c:51:2: warning: switch missing default case [-Wswitch-default] switch (n) { ^~~~~~ In file included from sfputm.c:14:0: sfhdr.h:622:16: warning: negative integer implicitly converted to unsigned type [-Wsign-conversion] ((f)->mode &= ~(SF_LOCK|SF_RC|SF_RV), _SFOPEN(f), 0) ) ^ sfputm.c:72:5: note: in expansion of macro 'SFOPEN' SFOPEN(f, 0); ^~~~~~ sfputm.c:53:12: warning: this statement may fall through [-Wimplicit-fallthrough=] *ps++ = *s++; ~~~~~~^~~~~~ sfputm.c:54:2: note: here case 7: ^~~~ sfputm.c:55:12: warning: this statement may fall through [-Wimplicit-fallthrough=] *ps++ = *s++; ~~~~~~^~~~~~ sfputm.c:56:2: note: here case 6: ^~~~ sfputm.c:57:12: warning: this statement may fall through [-Wimplicit-fallthrough=] *ps++ = *s++; ~~~~~~^~~~~~ sfputm.c:58:2: note: here case 5: ^~~~ sfputm.c:59:12: warning: this statement may fall through [-Wimplicit-fallthrough=] *ps++ = *s++; ~~~~~~^~~~~~ sfputm.c:60:2: note: here case 4: ^~~~ sfputm.c:61:12: warning: this statement may fall through [-Wimplicit-fallthrough=] *ps++ = *s++; ~~~~~~^~~~~~ sfputm.c:62:2: note: here case 3: ^~~~ sfputm.c:63:12: warning: this statement may fall through [-Wimplicit-fallthrough=] *ps++ = *s++; ~~~~~~^~~~~~ sfputm.c:64:2: note: here case 2: ^~~~ sfputm.c:65:12: warning: this statement may fall through [-Wimplicit-fallthrough=] *ps++ = *s++; ~~~~~~^~~~~~ sfputm.c:66:2: note: here case 1: ^~~~ In file included from sfputr.c:14:0: sfhdr.h:155:5: warning: "_socket_peek" is not defined, evaluates to 0 [-Wundef] #if _socket_peek ^~~~~~~~~~~~ sfputr.c: In function 'sfputr': sfputr.c:41:10: warning: conversion to 'ssize_t {aka int}' from 'size_t {aka unsigned int}' may change the sign of the result [-Wsign-conversion] n = strlen(s); ^~~~~~ sfputr.c:44:21: warning: conversion to 'size_t {aka unsigned int}' from 'ssize_t {aka int}' may change the sign of the result [-Wsign-conversion] memcpy(ps, s, n); ^ sfputr.c:49:15: warning: conversion to 'unsigned char' from 'int' may alter its value [-Wconversion] *ps++ = rc; ^~ sfputr.c:61:26: warning: conversion to 'size_t {aka unsigned int}' from 'ssize_t {aka int}' may change the sign of the result [-Wsign-conversion] memcpy(rsrv->data, s, n); ^ sfputr.c:63:20: warning: conversion to 'unsigned char' from 'int' may alter its value [-Wconversion] rsrv->data[n] = rc; ^~ In file included from sfputr.c:14:0: sfputr.c:64:39: warning: conversion to 'size_t {aka unsigned int}' from 'ssize_t {aka int}' may change the sign of the result [-Wsign-conversion] if ((n = SFWRITE(f, rsrv->data, p)) < 0) ^ sfhdr.h:607:49: note: in definition of macro 'SFWRITE' #define SFWRITE(f,s,n) (SETLOCAL(f),sfwrite(f,s,n)) ^ sfputr.c:74:14: warning: conversion to 'unsigned char' from 'int' may alter its value [-Wconversion] *ps++ = rc; ^~ sfputr.c:79:5: warning: "_lib_memccpy" is not defined, evaluates to 0 [-Wundef] #if _lib_memccpy ^~~~~~~~~~~~ sfputr.c:87:17: warning: conversion to 'unsigned char' from 'char' may change the sign of the result [-Wsign-conversion] if ((*ps = *s) == 0) ^ In file included from sfputr.c:14:0: sfputr.c:104:38: warning: conversion to 'size_t {aka unsigned int}' from 'ssize_t {aka int}' may change the sign of the result [-Wsign-conversion] (void) SFWRITE(f, (void *) f->next, n); ^ sfhdr.h:607:49: note: in definition of macro 'SFWRITE' #define SFWRITE(f,s,n) (SETLOCAL(f),sfwrite(f,s,n)) ^ sfhdr.h:622:16: warning: negative integer implicitly converted to unsigned type [-Wsign-conversion] ((f)->mode &= ~(SF_LOCK|SF_RC|SF_RV), _SFOPEN(f), 0) ) ^ sfputr.c:107:5: note: in expansion of macro 'SFOPEN' SFOPEN(f, 0); ^~~~~~ In file included from sfputu.c:14:0: sfhdr.h:155:5: warning: "_socket_peek" is not defined, evaluates to 0 [-Wundef] #if _socket_peek ^~~~~~~~~~~~ In file included from sfputu.c:14:0: sfputu.c: In function '_sfputu': sfputu.c:48:29: warning: conversion to 'size_t {aka unsigned int}' from 'ssize_t {aka int}' may change the sign of the result [-Wsign-conversion] n = SFWRITE(f, (void *) s, n); /* write the hard way */ ^ sfhdr.h:607:49: note: in definition of macro 'SFWRITE' #define SFWRITE(f,s,n) (SETLOCAL(f),sfwrite(f,s,n)) ^ sfputu.c:50:2: warning: switch missing default case [-Wswitch-default] switch (n) { ^~~~~~ In file included from sfputu.c:14:0: sfhdr.h:622:16: warning: negative integer implicitly converted to unsigned type [-Wsign-conversion] ((f)->mode &= ~(SF_LOCK|SF_RC|SF_RV), _SFOPEN(f), 0) ) ^ sfputu.c:71:5: note: in expansion of macro 'SFOPEN' SFOPEN(f, 0); ^~~~~~ sfputu.c:52:12: warning: this statement may fall through [-Wimplicit-fallthrough=] *ps++ = *s++; ~~~~~~^~~~~~ sfputu.c:53:2: note: here case 7: ^~~~ sfputu.c:54:12: warning: this statement may fall through [-Wimplicit-fallthrough=] *ps++ = *s++; ~~~~~~^~~~~~ sfputu.c:55:2: note: here case 6: ^~~~ sfputu.c:56:12: warning: this statement may fall through [-Wimplicit-fallthrough=] *ps++ = *s++; ~~~~~~^~~~~~ sfputu.c:57:2: note: here case 5: ^~~~ sfputu.c:58:12: warning: this statement may fall through [-Wimplicit-fallthrough=] *ps++ = *s++; ~~~~~~^~~~~~ sfputu.c:59:2: note: here case 4: ^~~~ sfputu.c:60:12: warning: this statement may fall through [-Wimplicit-fallthrough=] *ps++ = *s++; ~~~~~~^~~~~~ sfputu.c:61:2: note: here case 3: ^~~~ sfputu.c:62:12: warning: this statement may fall through [-Wimplicit-fallthrough=] *ps++ = *s++; ~~~~~~^~~~~~ sfputu.c:63:2: note: here case 2: ^~~~ sfputu.c:64:12: warning: this statement may fall through [-Wimplicit-fallthrough=] *ps++ = *s++; ~~~~~~^~~~~~ sfputu.c:65:2: note: here case 1: ^~~~ CC sfscanf.lo In file included from sfraise.c:14:0: sfhdr.h:155:5: warning: "_socket_peek" is not defined, evaluates to 0 [-Wundef] #if _socket_peek ^~~~~~~~~~~~ In file included from sfraise.c:14:0: sfraise.c: In function 'sfraise': sfhdr.h:594:62: warning: negative integer implicitly converted to unsigned type [-Wsign-conversion] #define GETLOCAL(f,v) ((v) = ((f)->mode&SF_LOCAL), (f)->mode &= ~SF_LOCAL, (void)(v)) ^ sfraise.c:33:5: note: in expansion of macro 'GETLOCAL' GETLOCAL(f, local); ^~~~~~~~ sfhdr.h:614:32: warning: conversion to 'unsigned int' from 'int' may change the sign of the result [-Wsign-conversion] #define SFMODE(f,l) ((f)->mode & ~(SF_RV|SF_RC|((l) ? SF_LOCK : 0)) ) ^ sfraise.c:38:2: note: in expansion of macro 'SFMODE' SFMODE(f, local) != (f->mode & SF_RDWR) ^~~~~~ sfhdr.h:622:16: warning: negative integer implicitly converted to unsigned type [-Wsign-conversion] ((f)->mode &= ~(SF_LOCK|SF_RC|SF_RV), _SFOPEN(f), 0) ) ^ sfraise.c:47:6: note: in expansion of macro 'SFOPEN' SFOPEN(f, 0); ^~~~~~ sfhdr.h:622:16: warning: negative integer implicitly converted to unsigned type [-Wsign-conversion] ((f)->mode &= ~(SF_LOCK|SF_RC|SF_RV), _SFOPEN(f), 0) ) ^ sfraise.c:62:5: note: in expansion of macro 'SFOPEN' SFOPEN(f, local); ^~~~~~ In file included from sfread.c:14:0: sfhdr.h:155:5: warning: "_socket_peek" is not defined, evaluates to 0 [-Wundef] #if _socket_peek ^~~~~~~~~~~~ In file included from sfread.c:14:0: sfread.c: In function 'sfread': sfhdr.h:594:62: warning: negative integer implicitly converted to unsigned type [-Wsign-conversion] #define GETLOCAL(f,v) ((v) = ((f)->mode&SF_LOCAL), (f)->mode &= ~SF_LOCAL, (void)(v)) ^ sfread.c:35:5: note: in expansion of macro 'GETLOCAL' GETLOCAL(f, local); ^~~~~~~~ sfread.c:37:16: warning: conversion to 'short unsigned int' from 'int' may alter its value [-Wconversion] f->bits &= ~SF_JUSTSEEK; ^ sfread.c:51:14: warning: negative integer implicitly converted to unsigned type [-Wsign-conversion] f->mode &= ~SF_PEEK; ^~ sfread.c:56:14: warning: negative integer implicitly converted to unsigned type [-Wsign-conversion] f->mode &= ~SF_PEEK; ^~ sfread.c:58:11: warning: negative integer implicitly converted to unsigned type [-Wsign-conversion] f->mode &= ~SF_PKRD; ^~ sfread.c:60:11: warning: conversion to 'size_t {aka unsigned int}' from 'int' may change the sign of the result [-Wsign-conversion] n = (r = read(f->file, f->data, n)) < 0 ? 0 : r; ^ In file included from sfread.c:14:0: sfhdr.h:122:34: warning: conversion to 'ssize_t {aka int}' from 'size_t {aka unsigned int}' may change the sign of the result [-Wsign-conversion] #define SFMTXRETURN(f,v) { return(v); } ^ sfread.c:66:6: note: in expansion of macro 'SFMTXRETURN' SFMTXRETURN(f, n); ^~~~~~~~~~~ sfread.c:71:21: warning: negative integer implicitly converted to unsigned type [-Wsign-conversion] for (;; f->mode &= ~SF_LOCK) { /* check stream mode */ ^~ In file included from sfread.c:14:0: sfhdr.h:614:32: warning: conversion to 'unsigned int' from 'int' may change the sign of the result [-Wsign-conversion] #define SFMODE(f,l) ((f)->mode & ~(SF_RV|SF_RC|((l) ? SF_LOCK : 0)) ) ^ sfread.c:72:6: note: in expansion of macro 'SFMODE' if (SFMODE(f, local) != SF_READ && _sfmode(f, SF_READ, local) < 0) { ^~~~~~ sfread.c:73:30: warning: signed and unsigned type in conditional expression [-Wsign-compare] n = s > begs ? s - begs : (size_t) (-1); ^ sfread.c:73:30: warning: conversion to 'unsigned int' from 'int' may change the sign of the result [-Wsign-conversion] sfread.c:83:22: warning: conversion to 'size_t {aka unsigned int}' from 'ssize_t {aka int}' may change the sign of the result [-Wsign-conversion] memcpy(s, f->next, r); ^ sfread.c:86:8: warning: conversion to 'size_t {aka unsigned int}' from 'ssize_t {aka int}' may change the sign of the result [-Wsign-conversion] n -= r; ^~ sfread.c:98:51: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] else if (justseek && n <= f->iosz && f->iosz <= f->size) ^~ sfread.c:99:7: warning: conversion to 'ssize_t {aka int}' from 'size_t {aka unsigned int}' may change the sign of the result [-Wsign-conversion] r = f->iosz; /* limit buffering */ ^ In file included from sfread.c:14:0: sfread.c:108:46: warning: conversion to 'size_t {aka unsigned int}' from 'ssize_t {aka int}' may change the sign of the result [-Wsign-conversion] if (r == (ssize_t) n && (r = SFRD(f, s, r, f->disc)) >= 0) { ^ sfhdr.h:600:52: note: in definition of macro 'SFRD' #define SFRD(f,b,n,d) (SETLOCAL(f),sfrd(f,(void*)b,n,d)) ^ sfread.c:110:5: warning: conversion to 'size_t {aka unsigned int}' from 'ssize_t {aka int}' may change the sign of the result [-Wsign-conversion] n -= r; ^~ In file included from sfread.c:14:0: sfhdr.h:622:16: warning: negative integer implicitly converted to unsigned type [-Wsign-conversion] ((f)->mode &= ~(SF_LOCK|SF_RC|SF_RV), _SFOPEN(f), 0) ) ^ sfread.c:124:5: note: in expansion of macro 'SFOPEN' SFOPEN(f, local); ^~~~~~ In file included from sfrd.c:14:0: sfhdr.h:155:5: warning: "_socket_peek" is not defined, evaluates to 0 [-Wundef] #if _socket_peek ^~~~~~~~~~~~ In file included from sfrd.c:14:0: sfrd.c: In function 'sfrd': sfhdr.h:594:62: warning: negative integer implicitly converted to unsigned type [-Wsign-conversion] #define GETLOCAL(f,v) ((v) = ((f)->mode&SF_LOCAL), (f)->mode &= ~SF_LOCAL, (void)(v)) ^ sfrd.c:58:5: note: in expansion of macro 'GETLOCAL' GETLOCAL(f, local); ^~~~~~~~ CC sfseek.lo sfrd.c:60:10: warning: negative integer implicitly converted to unsigned type [-Wsign-conversion] f->mode &= ~(SF_RC | SF_RV); ^~ sfrd.c:61:16: warning: conversion to 'short unsigned int' from 'int' may alter its value [-Wconversion] f->bits &= ~SF_JUSTSEEK; ^ sfrd.c:86:14: warning: conversion to 'short unsigned int' from 'int' may alter its value [-Wconversion] f->flags &= ~(SF_EOF | SF_ERROR); ^ sfrd.c:103:38: warning: conversion to 'ssize_t {aka int}' from 'size_t {aka unsigned int}' may change the sign of the result [-Wsign-conversion] if ((rv = _sfexcept(f, SF_READ, n, dc)) > 0) ^ sfrd.c:104:7: warning: conversion to 'size_t {aka unsigned int}' from 'int' may change the sign of the result [-Wsign-conversion] n = rv; ^~ sfrd.c:228:11: warning: conversion to 'unsigned int' from 'int' may change the sign of the result [-Wsign-conversion] f->mode |= rcrv; ^~ sfrd.c:231:15: warning: conversion to 'short unsigned int' from 'int' may alter its value [-Wconversion] f->flags &= ~SF_SHARE; ^ In file included from sfrd.c:14:0: sfhdr.h:641:26: warning: conversion to 'short unsigned int' from 'int' may alter its value [-Wconversion] if(!dcdown) f->bits &= ~SF_DCDOWN; \ ^ sfrd.c:233:6: note: in expansion of macro 'SFDCRD' SFDCRD(f, buf, n, dc, r); ^~~~~~ sfrd.c:237:11: warning: conversion to 'unsigned int' from 'int' may change the sign of the result [-Wsign-conversion] f->mode &= ~rcrv; ^~ sfrd.c:239:15: warning: conversion to 'short unsigned int' from 'int' may alter its value [-Wconversion] f->flags |= share; ^~~~~ sfrd.c:280:10: warning: conversion to 'size_t {aka unsigned int}' from 'int' may change the sign of the result [-Wsign-conversion] n = local ? 0 : (ssize_t) r; ^~~~~ In file included from sfrd.c:14:0: sfhdr.h:122:34: warning: conversion to 'ssize_t {aka int}' from 'size_t {aka unsigned int}' may change the sign of the result [-Wsign-conversion] #define SFMTXRETURN(f,v) { return(v); } ^ sfrd.c:281:6: note: in expansion of macro 'SFMTXRETURN' SFMTXRETURN(f, n); ^~~~~~~~~~~ sfrd.c:276:2: warning: switch missing default case [-Wswitch-default] switch (_sfexcept(f, SF_READ, (ssize_t) r, dc)) { ^~~~~~ CC sfset.lo In file included from sfresize.c:14:0: sfhdr.h:155:5: warning: "_socket_peek" is not defined, evaluates to 0 [-Wundef] #if _socket_peek ^~~~~~~~~~~~ sfresize.c: In function 'sfresize': sfresize.c:37:9: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] if (s < f->size && (d = realloc(f->data, s))) { ^ sfresize.c:39:17: warning: conversion to 'ssize_t {aka int}' from 'size_t {aka unsigned int}' may change the sign of the result [-Wsign-conversion] f->size = s; ^ In file included from sfresize.c:14:0: sfhdr.h:811:39: warning: conversion to 'size_t {aka unsigned int}' from 'int' may change the sign of the result [-Wsign-conversion] #define memclear(s,n) memset((s),'\0',(n)) ^ sfresize.c:43:6: note: in expansion of macro 'memclear' memclear((char *) (f->data + size), (int) (f->extent - size)); ^~~~~~~~ sfhdr.h:811:39: warning: conversion to 'size_t {aka unsigned int}' from 'int' may change the sign of the result [-Wsign-conversion] #define memclear(s,n) memset((s),'\0',(n)) ^ sfresize.c:47:6: note: in expansion of macro 'memclear' memclear((char *) (f->data + f->extent), ^~~~~~~~ sfresize.c:54:25: warning: conversion to 'off_t {aka long int}' from 'long long int' may alter its value [-Wconversion] if (ftruncate(f->file, size) < 0) ^~~~ In file included from sfresize.c:14:0: sfhdr.h:622:16: warning: negative integer implicitly converted to unsigned type [-Wsign-conversion] ((f)->mode &= ~(SF_LOCK|SF_RC|SF_RV), _SFOPEN(f), 0) ) ^ sfresize.c:63:5: note: in expansion of macro 'SFOPEN' SFOPEN(f, 0); ^~~~~~ In file included from sfreserve.c:14:0: sfhdr.h:155:5: warning: "_socket_peek" is not defined, evaluates to 0 [-Wundef] #if _socket_peek ^~~~~~~~~~~~ sfreserve.c: In function 'sfreserve': sfreserve.c:96:15: warning: negative integer implicitly converted to unsigned type [-Wsign-conversion] f->mode &= ~SF_PKRD; ^~ sfreserve.c:110:15: warning: conversion to 'unsigned int' from 'int' may change the sign of the result [-Wsign-conversion] if ((f->mode & mode) != 0) ^ sfreserve.c:114:37: warning: conversion to 'unsigned int' from 'int' may change the sign of the result [-Wsign-conversion] if (n > 0 && n < sz && (f->mode & mode) != 0) { /* try to accomodate request size */ ^ In file included from sfreserve.c:14:0: sfreserve.c:117:27: warning: conversion to 'size_t {aka unsigned int}' from 'ssize_t {aka int}' may change the sign of the result [-Wsign-conversion] (void) SFWR(f, f->next, sz, f->disc); ^ sfhdr.h:601:52: note: in definition of macro 'SFWR' #define SFWR(f,b,n,d) (SETLOCAL(f),sfwr(f,(void*)b,n,d)) ^ sfreserve.c:125:39: warning: conversion to 'size_t {aka unsigned int}' from 'ssize_t {aka int}' may change the sign of the result [-Wsign-conversion] (n = SFREAD(f, (void *) rsrv->data, sz)) < sz) ^ sfhdr.h:608:47: note: in definition of macro 'SFREAD' #define SFREAD(f,s,n) (SETLOCAL(f),sfread(f,s,n)) ^ sfhdr.h:622:16: warning: negative integer implicitly converted to unsigned type [-Wsign-conversion] ((f)->mode &= ~(SF_LOCK|SF_RC|SF_RV), _SFOPEN(f), 0) ) ^ sfreserve.c:134:5: note: in expansion of macro 'SFOPEN' SFOPEN(f, 0); ^~~~~~ CC sfsetbuf.lo CC sfsetfd.lo CC sfsize.lo CC sfsk.lo CC sfstack.lo In file included from sfscanf.c:14:0: sfhdr.h:155:5: warning: "_socket_peek" is not defined, evaluates to 0 [-Wundef] #if _socket_peek ^~~~~~~~~~~~ sfscanf.c: In function 'sfvsscanf': sfscanf.c:43:21: warning: cast discards 'const' qualifier from pointer target type [-Wcast-qual] f.size = strlen((char *) s); ^ sfscanf.c:43:14: warning: conversion to 'ssize_t {aka int}' from 'size_t {aka unsigned int}' may change the sign of the result [-Wsign-conversion] f.size = strlen((char *) s); ^~~~~~ sfscanf.c:44:32: warning: cast discards 'const' qualifier from pointer target type [-Wcast-qual] f.data = f.next = f.endw = (uchar *) s; ^ In file included from sfset.c:14:0: sfhdr.h:155:5: warning: "_socket_peek" is not defined, evaluates to 0 [-Wundef] #if _socket_peek ^~~~~~~~~~~~ sfset.c: In function 'sfset': sfset.c:46:14: warning: conversion to 'short unsigned int' from 'int' may alter its value [-Wconversion] f->flags |= (flags & SF_SETS); ^ sfset.c:48:14: warning: conversion to 'short unsigned int' from 'int' may alter its value [-Wconversion] f->flags &= ~(flags & SF_SETS); ^ sfset.c:52:14: warning: conversion to 'short unsigned int' from 'int' may alter its value [-Wconversion] f->flags |= (oflags & SF_RDWR); ^ sfset.c:55:14: warning: conversion to 'short unsigned int' from 'int' may alter its value [-Wconversion] f->flags &= ~SF_APPENDWR; ^ sfset.c:72:14: warning: conversion to 'short unsigned int' from 'int' may alter its value [-Wconversion] f->flags &= ~SF_PUBLIC; ^ In file included from sfset.c:14:0: sfhdr.h:622:16: warning: negative integer implicitly converted to unsigned type [-Wsign-conversion] ((f)->mode &= ~(SF_LOCK|SF_RC|SF_RV), _SFOPEN(f), 0) ) ^ sfset.c:74:5: note: in expansion of macro 'SFOPEN' SFOPEN(f, 0); ^~~~~~ In file included from sfseek.c:14:0: sfhdr.h:155:5: warning: "_socket_peek" is not defined, evaluates to 0 [-Wundef] #if _socket_peek ^~~~~~~~~~~~ CC sfstrtod.lo In file included from sfseek.c:14:0: sfseek.c: In function 'sfseek': sfhdr.h:594:62: warning: negative integer implicitly converted to unsigned type [-Wsign-conversion] #define GETLOCAL(f,v) ((v) = ((f)->mode&SF_LOCAL), (f)->mode &= ~SF_LOCAL, (void)(v)) ^ sfseek.c:50:5: note: in expansion of macro 'GETLOCAL' GETLOCAL(f, local); ^~~~~~~~ sfhdr.h:614:32: warning: conversion to 'unsigned int' from 'int' may change the sign of the result [-Wsign-conversion] #define SFMODE(f,l) ((f)->mode & ~(SF_RV|SF_RC|((l) ? SF_LOCK : 0)) ) ^ sfseek.c:60:15: note: in expansion of macro 'SFMODE' if ((int) SFMODE(f, local) != (mode = f->mode & SF_RDWR)) { ^~~~~~ sfseek.c:67:17: warning: conversion to 'short unsigned int' from 'int' may alter its value [-Wconversion] f->flags = flags; ^~~~~ sfseek.c:96:17: warning: conversion to 'short unsigned int' from 'int' may alter its value [-Wconversion] f->flags &= ~(SF_EOF | SF_ERROR); ^ In file included from sfseek.c:14:0: sfhdr.h:668:32: warning: declaration of 's' shadows a previous local [-Wshadow] #define SFSTRSIZE(f) { Sfoff_t s = (f)->next - (f)->data; \ ^ sfseek.c:99:2: note: in expansion of macro 'SFSTRSIZE' SFSTRSIZE(f); ^~~~~~~~~ sfseek.c:44:16: note: shadowed declaration is here Sfoff_t r, s; ^ In file included from sfseek.c:14:0: sfhdr.h:811:39: warning: conversion to 'size_t {aka unsigned int}' from 'int' may change the sign of the result [-Wsign-conversion] #define memclear(s,n) memset((s),'\0',(n)) ^ sfseek.c:113:3: note: in expansion of macro 'memclear' memclear((char *) (f->data + f->extent), ^~~~~~~~ sfseek.c:201:9: warning: conversion to 'size_t {aka unsigned int}' from 'int' may change the sign of the result [-Wsign-conversion] b = f->endb - f->data; /* amount of buffered data */ ^ sfseek.c:202:9: warning: conversion to 'size_t {aka unsigned int}' from 'int' may change the sign of the result [-Wsign-conversion] c = f->next - f->data; /* amount of data consumed */ ^ sfseek.c:219:17: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] if (f->iosz >= f->size) ^~ In file included from sfseek.c:14:0: sfseek.c:247:26: warning: conversion to 'size_t {aka unsigned int}' from 'ssize_t {aka int}' may change the sign of the result [-Wsign-conversion] (void) SFRD(f, f->data, f->size, f->disc); ^ sfhdr.h:600:52: note: in definition of macro 'SFRD' #define SFRD(f,b,n,d) (SETLOCAL(f),sfrd(f,(void*)b,n,d)) ^ sfhdr.h:622:16: warning: negative integer implicitly converted to unsigned type [-Wsign-conversion] ((f)->mode &= ~(SF_LOCK|SF_RC|SF_RV), _SFOPEN(f), 0) ) ^ sfseek.c:265:5: note: in expansion of macro 'SFOPEN' SFOPEN(f, local); ^~~~~~ In file included from sfsetbuf.c:20:0: sfhdr.h:155:5: warning: "_socket_peek" is not defined, evaluates to 0 [-Wundef] #if _socket_peek ^~~~~~~~~~~~ In file included from sfsetbuf.c:20:0: sfsetbuf.c: In function 'sfsetbuf': sfhdr.h:594:62: warning: negative integer implicitly converted to unsigned type [-Wsign-conversion] #define GETLOCAL(f,v) ((v) = ((f)->mode&SF_LOCAL), (f)->mode &= ~SF_LOCAL, (void)(v)) ^ sfsetbuf.c:73:5: note: in expansion of macro 'GETLOCAL' GETLOCAL(f, local); ^~~~~~~~ sfhdr.h:614:32: warning: conversion to 'unsigned int' from 'int' may change the sign of the result [-Wsign-conversion] #define SFMODE(f,l) ((f)->mode & ~(SF_RV|SF_RC|((l) ? SF_LOCK : 0)) ) ^ sfsetbuf.c:90:39: note: in expansion of macro 'SFMODE' } else if ((f->mode & SF_RDWR) != SFMODE(f, local) ^~~~~~ sfhdr.h:622:16: warning: negative integer implicitly converted to unsigned type [-Wsign-conversion] ((f)->mode &= ~(SF_LOCK|SF_RC|SF_RV), _SFOPEN(f), 0) ) ^ sfsetbuf.c:107:2: note: in expansion of macro 'SFOPEN' SFOPEN(f, local); ^~~~~~ sfsetbuf.c:112:10: warning: negative integer implicitly converted to unsigned type [-Wsign-conversion] f->mode &= ~SF_SYNCED; ^~ sfsetbuf.c:140:17: warning: conversion to 'short unsigned int' from 'int' may alter its value [-Wconversion] f->flags &= ~SF_MALLOC; ^ sfsetbuf.c:141:16: warning: conversion to 'short unsigned int' from 'int' may alter its value [-Wconversion] f->bits &= ~SF_MMAP; ^ sfsetbuf.c:239:21: warning: conversion to 'ssize_t {aka int}' from 'unsigned int' may change the sign of the result [-Wsign-conversion] if ((_Sfpage = (size_t) getpagesize()) <= 0) ^ sfsetbuf.c:268:13: warning: conversion to 'size_t {aka unsigned int}' from 'ssize_t {aka int}' may change the sign of the result [-Wsign-conversion] size = osize; ^~~~~ In file included from sfsetbuf.c:20:0: sfhdr.h:509:18: warning: conversion to 'size_t {aka unsigned int}' from 'ssize_t {aka int}' may change the sign of the result [-Wsign-conversion] #define _Sfpage (_Sfextern.sf_page) ^ sfsetbuf.c:278:29: note: in expansion of macro '_Sfpage' else if ((ssize_t) (size = _Sfpage) < blksize) ^~~~~~~ sfsetbuf.c:279:13: warning: conversion to 'size_t {aka unsigned int}' from 'ssize_t {aka int}' may change the sign of the result [-Wsign-conversion] size = blksize; ^~~~~~~ sfsetbuf.c:309:15: warning: conversion to 'ssize_t {aka int}' from 'size_t {aka unsigned int}' may change the sign of the result [-Wsign-conversion] f->size = size; ^~~~ sfsetbuf.c:323:16: warning: conversion to 'short unsigned int' from 'int' may alter its value [-Wconversion] f->flags = (f->flags & ~SF_MALLOC) | sf_malloc; ^ In file included from sfsetbuf.c:20:0: sfhdr.h:622:16: warning: negative integer implicitly converted to unsigned type [-Wsign-conversion] ((f)->mode &= ~(SF_LOCK|SF_RC|SF_RV), _SFOPEN(f), 0) ) ^ sfsetbuf.c:332:5: note: in expansion of macro 'SFOPEN' SFOPEN(f, local); ^~~~~~ CC sfswap.lo In file included from sfsize.c:14:0: sfhdr.h:155:5: warning: "_socket_peek" is not defined, evaluates to 0 [-Wundef] #if _socket_peek ^~~~~~~~~~~~ In file included from sfstack.c:14:0: sfhdr.h:155:5: warning: "_socket_peek" is not defined, evaluates to 0 [-Wundef] #if _socket_peek ^~~~~~~~~~~~ In file included from sfsize.c:14:0: sfsize.c: In function 'sfsize': sfhdr.h:668:32: warning: declaration of 's' shadows a previous local [-Wshadow] #define SFSTRSIZE(f) { Sfoff_t s = (f)->next - (f)->data; \ ^ sfsize.c:33:2: note: in expansion of macro 'SFSTRSIZE' SFSTRSIZE(f); ^~~~~~~~~ sfsize.c:24:13: note: shadowed declaration is here Sfoff_t s; ^ In file included from sfsize.c:14:0: sfhdr.h:622:16: warning: negative integer implicitly converted to unsigned type [-Wsign-conversion] ((f)->mode &= ~(SF_LOCK|SF_RC|SF_RV), _SFOPEN(f), 0) ) ^ sfsize.c:93:5: note: in expansion of macro 'SFOPEN' SFOPEN(f, 0); ^~~~~~ sfstack.c: In function 'sfstack': sfstack.c:58:11: warning: negative integer implicitly converted to unsigned type [-Wsign-conversion] f2->mode &= ~SF_PUSH; ^~ sfstack.c:94:11: warning: negative integer implicitly converted to unsigned type [-Wsign-conversion] f1->mode &= ~SF_PUSH; ^~ In file included from sfstack.c:14:0: sfhdr.h:622:16: warning: negative integer implicitly converted to unsigned type [-Wsign-conversion] ((f)->mode &= ~(SF_LOCK|SF_RC|SF_RV), _SFOPEN(f), 0) ) ^ sfstack.c:99:5: note: in expansion of macro 'SFOPEN' SFOPEN(f1, 0); ^~~~~~ sfhdr.h:622:16: warning: negative integer implicitly converted to unsigned type [-Wsign-conversion] ((f)->mode &= ~(SF_LOCK|SF_RC|SF_RV), _SFOPEN(f), 0) ) ^ sfstack.c:100:5: note: in expansion of macro 'SFOPEN' SFOPEN(f2, 0); ^~~~~~ In file included from sfsk.c:14:0: sfhdr.h:155:5: warning: "_socket_peek" is not defined, evaluates to 0 [-Wundef] #if _socket_peek ^~~~~~~~~~~~ In file included from sfsk.c:14:0: sfsk.c: In function 'sfsk': sfhdr.h:594:62: warning: negative integer implicitly converted to unsigned type [-Wsign-conversion] #define GETLOCAL(f,v) ((v) = ((f)->mode&SF_LOCAL), (f)->mode &= ~SF_LOCAL, (void)(v)) ^ sfsk.c:29:5: note: in expansion of macro 'GETLOCAL' GETLOCAL(f, local); ^~~~~~~~ sfsk.c:36:5: warning: "MAP_TYPE" is not defined, evaluates to 0 [-Wundef] #if MAP_TYPE ^~~~~~~~ In file included from sfsk.c:14:0: sfhdr.h:668:32: warning: declaration of 's' shadows a previous local [-Wshadow] #define SFSTRSIZE(f) { Sfoff_t s = (f)->next - (f)->data; \ ^ sfsk.c:51:6: note: in expansion of macro 'SFSTRSIZE' SFSTRSIZE(f); ^~~~~~~~~ sfsk.c:24:17: note: shadowed declaration is here reg ssize_t s; ^ In file included from sfsk.c:14:0: sfhdr.h:651:26: warning: conversion to 'short unsigned int' from 'int' may alter its value [-Wconversion] if(!dcdown) f->bits &= ~SF_DCDOWN; \ ^ sfsk.c:61:3: note: in expansion of macro 'SFDCSK' SFDCSK(f, addr, type, dc, p); ^~~~~~ In file included from sfsetfd.c:14:0: sfhdr.h:155:5: warning: "_socket_peek" is not defined, evaluates to 0 [-Wundef] #if _socket_peek ^~~~~~~~~~~~ In file included from sfsetfd.c:14:0: sfsetfd.c: In function 'sfsetfd': sfhdr.h:622:16: warning: negative integer implicitly converted to unsigned type [-Wsign-conversion] ((f)->mode &= ~(SF_LOCK|SF_RC|SF_RV), _SFOPEN(f), 0) ) ^ sfsetfd.c:65:7: note: in expansion of macro 'SFOPEN' SFOPEN(f, 0); ^~~~~~ sfhdr.h:622:16: warning: negative integer implicitly converted to unsigned type [-Wsign-conversion] ((f)->mode &= ~(SF_LOCK|SF_RC|SF_RV), _SFOPEN(f), 0) ) ^ sfsetfd.c:73:4: note: in expansion of macro 'SFOPEN' SFOPEN(f, 0); ^~~~~~ sfhdr.h:622:16: warning: negative integer implicitly converted to unsigned type [-Wsign-conversion] ((f)->mode &= ~(SF_LOCK|SF_RC|SF_RV), _SFOPEN(f), 0) ) ^ sfsetfd.c:81:7: note: in expansion of macro 'SFOPEN' SFOPEN(f, 0); ^~~~~~ sfsetfd.c:95:14: warning: conversion to 'short unsigned int' from 'int' may alter its value [-Wconversion] f->bits &= ~SF_NULL; /* off /dev/null handling */ ^ In file included from sfsetfd.c:14:0: sfhdr.h:622:16: warning: negative integer implicitly converted to unsigned type [-Wsign-conversion] ((f)->mode &= ~(SF_LOCK|SF_RC|SF_RV), _SFOPEN(f), 0) ) ^ sfsetfd.c:99:2: note: in expansion of macro 'SFOPEN' SFOPEN(f, 0); ^~~~~~ sfsetfd.c:106:15: warning: conversion to 'short int' from 'int' may alter its value [-Wconversion] f->file = newfd; ^~~~~ CC sfsync.lo In file included from sfstrtod.c:14:0: sfhdr.h:155:5: warning: "_socket_peek" is not defined, evaluates to 0 [-Wundef] #if _socket_peek ^~~~~~~~~~~~ sfstrtod.c: In function 'sfpow10': sfstrtod.c:31:5: warning: switch missing default case [-Wswitch-default] switch (n) { ^~~~~~ sfstrtod.c: In function '_sfstrtod': sfstrtod.c:98:12: warning: conversion to 'unsigned int' from 'int' may change the sign of the result [-Wsign-conversion] m = BATCH - m; ^ sfstrtod.c:22:15: warning: conversion to 'int' from 'unsigned int' may change the sign of the result [-Wsign-conversion] #define BATCH (2*sizeof(int)) /* accumulate this many digits at a time */ ^ sfstrtod.c:98:6: note: in expansion of macro 'BATCH' m = BATCH - m; ^~~~~ sfstrtod.c:101:15: warning: comparing floating point with == or != is unsafe [-Wfloat-equal] if (dval == 0.) ^~ sfstrtod.c:118:8: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] if (m < BATCH) { /* detected a non-digit */ ^ sfstrtod.c:137:10: warning: cast discards 'const' qualifier from pointer target type [-Wcast-qual] *retp = (char *) s; ^ sfstrtod.c:71:24: warning: variable 'thousand' set but not used [-Wunused-but-set-variable] char decpoint = 0, thousand; ^~~~~~~~ CC sftable.lo CC sftell.lo CC sftmp.lo CC sfungetc.lo CC sfvprintf.lo In file included from sfswap.c:14:0: sfhdr.h:155:5: warning: "_socket_peek" is not defined, evaluates to 0 [-Wundef] #if _socket_peek ^~~~~~~~~~~~ sfswap.c: In function 'sfswap': sfswap.c:37:14: warning: conversion to 'int' from 'unsigned int' may change the sign of the result [-Wsign-conversion] f1mode = f1->mode; ^~ sfswap.c:42:11: warning: conversion to 'int' from 'unsigned int' may change the sign of the result [-Wsign-conversion] f2mode = f2->mode; ^~ sfswap.c:51:14: warning: conversion to 'unsigned int' from 'int' may change the sign of the result [-Wsign-conversion] f1->mode = f1mode; ^~~~~~ In file included from sfswap.c:14:0: sfhdr.h:622:16: warning: negative integer implicitly converted to unsigned type [-Wsign-conversion] ((f)->mode &= ~(SF_LOCK|SF_RC|SF_RV), _SFOPEN(f), 0) ) ^ sfswap.c:52:3: note: in expansion of macro 'SFOPEN' SFOPEN(f1, 0); ^~~~~~ sfswap.c:90:15: warning: conversion to 'short unsigned int' from 'int' may alter its value [-Wconversion] f2->flags &= ~SF_STATIC; ^ sfswap.c:95:15: warning: conversion to 'short unsigned int' from 'int' may alter its value [-Wconversion] f1->flags &= ~SF_STATIC; ^ sfswap.c:101:13: warning: conversion to 'unsigned int' from 'int' may change the sign of the result [-Wsign-conversion] f1->mode = f2mode; ^~~~~~ In file included from sfswap.c:14:0: sfhdr.h:622:16: warning: negative integer implicitly converted to unsigned type [-Wsign-conversion] ((f)->mode &= ~(SF_LOCK|SF_RC|SF_RV), _SFOPEN(f), 0) ) ^ sfswap.c:102:2: note: in expansion of macro 'SFOPEN' SFOPEN(f1, 0); ^~~~~~ sfswap.c:105:16: warning: conversion to 'unsigned int' from 'int' may change the sign of the result [-Wsign-conversion] f2->mode = f1mode; ^~~~~~ In file included from sfswap.c:14:0: sfhdr.h:622:16: warning: negative integer implicitly converted to unsigned type [-Wsign-conversion] ((f)->mode &= ~(SF_LOCK|SF_RC|SF_RV), _SFOPEN(f), 0) ) ^ sfswap.c:106:5: note: in expansion of macro 'SFOPEN' SFOPEN(f2, 0); ^~~~~~ CC sfvscanf.lo CC sfwr.lo In file included from sftmp.c:14:0: sfhdr.h:155:5: warning: "_socket_peek" is not defined, evaluates to 0 [-Wundef] #if _socket_peek ^~~~~~~~~~~~ sftmp.c:25:5: warning: "_tmp_rmfail" is not defined, evaluates to 0 [-Wundef] #if _tmp_rmfail ^~~~~~~~~~~ sftmp.c: In function '_rmtmp': sftmp.c:102:5: warning: "_tmp_rmfail" is not defined, evaluates to 0 [-Wundef] #if _tmp_rmfail /* remove only when stream is closed */ ^~~~~~~~~~~ sftmp.c:100:28: warning: unused parameter 'f' [-Wunused-parameter] static int _rmtmp(Sfio_t * f, char *file) ^ sftmp.c: In function '_sfgetpath': sftmp.c:146:53: warning: conversion to 'unsigned int' from 'int' may change the sign of the result [-Wsign-conversion] if (n == 0 || !(dirs = (char **) malloc((n + 1) * sizeof(char *)))) ^ In file included from sfsync.c:14:0: sfhdr.h:155:5: warning: "_socket_peek" is not defined, evaluates to 0 [-Wundef] #if _socket_peek ^~~~~~~~~~~~ sftmp.c: In function '_tmpfd': sftmp.c:202:42: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast] A = (ulong) time(NIL(time_t *)) ^ (((ulong) (&t)) >> 3); ^ sftmp.c:207:5: warning: conversion to 'uint64_t {aka long long unsigned int}' from 'int' may change the sign of the result [-Wsign-conversion] A += 4 - r; ^~ sftmp.c: In function '_tmpexcept': sftmp.c:301:45: warning: conversion to 'size_t {aka unsigned int}' from 'ssize_t {aka int}' may change the sign of the result [-Wsign-conversion] (void) sfsetbuf(f, (void *) savf.data, savf.size); ^~~~ sftmp.c: In function 'sftmp': sftmp.c:328:5: warning: "_tmp_rmfail" is not defined, evaluates to 0 [-Wundef] #if _tmp_rmfail ^~~~~~~~~~~ In file included from sftable.c:14:0: sfhdr.h:155:5: warning: "_socket_peek" is not defined, evaluates to 0 [-Wundef] #if _socket_peek ^~~~~~~~~~~~ In file included from sfsync.c:14:0: sfsync.c: In function 'sfsync': sfhdr.h:594:62: warning: negative integer implicitly converted to unsigned type [-Wsign-conversion] #define GETLOCAL(f,v) ((v) = ((f)->mode&SF_LOCAL), (f)->mode &= ~SF_LOCAL, (void)(v)) ^ sfsync.c:82:5: note: in expansion of macro 'GETLOCAL' GETLOCAL(origf, local); ^~~~~~~~ sfhdr.h:614:32: warning: conversion to 'unsigned int' from 'int' may change the sign of the result [-Wsign-conversion] #define SFMODE(f,l) ((f)->mode & ~(SF_RV|SF_RC|((l) ? SF_LOCK : 0)) ) ^ sfsync.c:89:36: note: in expansion of macro 'SFMODE' if ((origf->mode & SF_RDWR) != SFMODE(origf, local) ^~~~~~ sfsync.c:104:10: warning: negative integer implicitly converted to unsigned type [-Wsign-conversion] f->mode &= ~SF_PUSH; ^~ sfsync.c:112:14: warning: negative integer implicitly converted to unsigned type [-Wsign-conversion] f->mode &= ~SF_POOL; ^~ sfsync.c:118:14: warning: conversion to 'short unsigned int' from 'int' may alter its value [-Wconversion] f->bits &= ~SF_HOLE; ^ sfsync.c:120:14: warning: conversion to 'unsigned int' from 'int' may change the sign of the result [-Wsign-conversion] f->mode |= pool; ^~ sfsync.c:132:11: warning: negative integer implicitly converted to unsigned type [-Wsign-conversion] f->mode &= ~SF_SYNCED; ^~ sfsync.c:137:10: warning: conversion to 'unsigned int' from 'int' may change the sign of the result [-Wsign-conversion] f->mode |= mode; ^~ In file included from sfsync.c:14:0: sfhdr.h:622:16: warning: negative integer implicitly converted to unsigned type [-Wsign-conversion] ((f)->mode &= ~(SF_LOCK|SF_RC|SF_RV), _SFOPEN(f), 0) ) ^ sfsync.c:138:2: note: in expansion of macro 'SFOPEN' SFOPEN(f, local); ^~~~~~ sftable.c: In function 'sffmtint': sftable.c:26:12: warning: cast discards 'const' qualifier from pointer target type [-Wcast-qual] return (char *) str; ^ sftable.c: In function 'sffmtpos': sftable.c:51:11: warning: cast discards 'const' qualifier from pointer target type [-Wcast-qual] sp = (char *) form++; ^ In file included from sftell.c:14:0: sfhdr.h:155:5: warning: "_socket_peek" is not defined, evaluates to 0 [-Wundef] #if _socket_peek ^~~~~~~~~~~~ sftable.c:88:14: warning: cast discards 'const' qualifier from pointer target type [-Wcast-qual] t_str = (char *) form; ^ sftable.c:113:24: warning: cast discards 'const' qualifier from pointer target type [-Wcast-qual] fp[n].ft.form = (char *) form; ^ sftable.c:90:3: warning: switch missing default case [-Wswitch-default] switch (*form++) { ^~~~~~ sftable.c:169:19: warning: cast discards 'const' qualifier from pointer target type [-Wcast-qual] fp[n].ft.form = (char *) form; ^ sftable.c:213:23: warning: cast discards 'const' qualifier from pointer target type [-Wcast-qual] fp[n].ft.form = (char *) form; ^ sftable.c:86:2: warning: switch missing default case [-Wswitch-default] switch ((fmt = *form++)) { ^~~~~~ sftable.c:251:46: warning: signed and unsigned type in conditional expression [-Wsign-compare] (flags & SFFMT_ZFLAG) ? sizeof(size_t) : -1; ^ sftable.c:251:46: warning: negative integer implicitly converted to unsigned type [-Wsign-conversion] sftable.c:245:10: warning: conversion of unsigned constant value to negative integer [-Wsign-conversion] size = (flags & SFFMT_LLONG) ? sizeof(Sflong_t) : ^ sftable.c:255:22: warning: signed and unsigned type in conditional expression [-Wsign-compare] sizeof(double) : -1; ^ sftable.c:255:22: warning: negative integer implicitly converted to unsigned type [-Wsign-conversion] sftable.c:253:10: warning: conversion of unsigned constant value to negative integer [-Wsign-conversion] size = (flags & SFFMT_LDOUBLE) ? sizeof(Sfdouble_t) : ^ sftable.c:269:25: warning: cast discards 'const' qualifier from pointer target type [-Wcast-qual] fp[argp].ft.form = (char *) form; ^ sftable.c:285:47: warning: conversion to 'unsigned int' from 'int' may change the sign of the result [-Wsign-conversion] || !(fp = (Fmtpos_t *) malloc((maxp + 1) * sizeof(Fmtpos_t)))) ^ sftable.c:339:19: warning: conversion to 'ssize_t {aka int}' from 'size_t {aka unsigned int}' may change the sign of the result [-Wsign-conversion] fp[n].ft.size = strlen(fp[n].argv.s); ^~~~~~ sftable.c:356:6: warning: "_ast_intmax_long" is not defined, evaluates to 0 [-Wundef] #if !_ast_intmax_long ^~~~~~~~~~~~~~~~ sftable.c: In function 'sfcvinit': sftable.c:407:34: warning: conversion to 'unsigned char' from 'int' may alter its value [-Wconversion] _Sfcv36[(uchar) _Sfdigits[d]] = d; ^ sftable.c:408:34: warning: conversion to 'unsigned char' from 'int' may alter its value [-Wconversion] _Sfcv64[(uchar) _Sfdigits[d]] = d; ^ sftable.c:413:34: warning: conversion to 'unsigned char' from 'int' may alter its value [-Wconversion] _Sfcv36[(uchar) _Sfdigits[d]] = d; ^ sftable.c:414:34: warning: conversion to 'unsigned char' from 'int' may alter its value [-Wconversion] _Sfcv64[(uchar) _Sfdigits[d]] = d; ^ sftable.c:419:34: warning: conversion to 'unsigned char' from 'int' may alter its value [-Wconversion] _Sfcv36[(uchar) _Sfdigits[d]] = l; ^ sftable.c:420:34: warning: conversion to 'unsigned char' from 'int' may alter its value [-Wconversion] _Sfcv64[(uchar) _Sfdigits[d]] = d; ^ sftable.c:425:34: warning: conversion to 'unsigned char' from 'int' may alter its value [-Wconversion] _Sfcv36[(uchar) _Sfdigits[d]] = d; ^ sftable.c:426:34: warning: conversion to 'unsigned char' from 'int' may alter its value [-Wconversion] _Sfcv64[(uchar) _Sfdigits[d]] = d; ^ sftable.c: At top level: sftable.c:477:1: warning: missing initializer for field 'sf_cv36' of 'Sftab_t {aka struct _sftab_}' [-Wmissing-field-initializers] }; ^ In file included from sftable.c:14:0: sfhdr.h:744:8: note: 'sf_cv36' declared here uchar sf_cv36[SF_MAXCHAR + 1]; /* conversion for base [2-36] */ ^~~~~~~ In file included from sfungetc.c:14:0: sfhdr.h:155:5: warning: "_socket_peek" is not defined, evaluates to 0 [-Wundef] #if _socket_peek ^~~~~~~~~~~~ sftable.c: In function 'sffmtpos': sftable.c:155:8: warning: this statement may fall through [-Wimplicit-fallthrough=] form += 1; /* drop thru below */ ~~~~~^~~~ sftable.c:157:2: note: here case '*': ^~~~ In file included from sfungetc.c:14:0: sfungetc.c: In function 'sfungetc': sfhdr.h:622:16: warning: negative integer implicitly converted to unsigned type [-Wsign-conversion] ((f)->mode &= ~(SF_LOCK|SF_RC|SF_RV), _SFOPEN(f), 0) ) ^ sfungetc.c:65:2: note: in expansion of macro 'SFOPEN' SFOPEN(f, 0); ^~~~~~ sfungetc.c:75:32: warning: conversion to 'size_t {aka unsigned int}' from 'int' may change the sign of the result [-Wsign-conversion] if (!(data = (uchar *) malloc(f->size + 16))) { ^ sfungetc.c:81:53: warning: conversion to 'size_t {aka unsigned int}' from 'ssize_t {aka int}' may change the sign of the result [-Wsign-conversion] memcpy((char *) (data + 16), (char *) f->data, f->size); ^ In file included from sfungetc.c:14:0: sfhdr.h:622:16: warning: negative integer implicitly converted to unsigned type [-Wsign-conversion] ((f)->mode &= ~(SF_LOCK|SF_RC|SF_RV), _SFOPEN(f), 0) ) ^ sfungetc.c:90:5: note: in expansion of macro 'SFOPEN' SFOPEN(f, 0); ^~~~~~ In file included from sfvprintf.c:14:0: sfhdr.h:155:5: warning: "_socket_peek" is not defined, evaluates to 0 [-Wundef] #if _socket_peek ^~~~~~~~~~~~ sfvprintf.c: In function 'sfvprintf': sfvprintf.c:115:13: warning: cast discards 'const' qualifier from pointer target type [-Wcast-qual] oform = (char *) form; ^ sfvprintf.c:123:11: warning: cast discards 'const' qualifier from pointer target type [-Wcast-qual] sp = (char *) form++; ^ In file included from sfvprintf.c:14:0: sfvprintf.c:127:21: warning: conversion to 'size_t {aka unsigned int}' from 'int' may change the sign of the result [-Wsign-conversion] SFwrite(f, sp, n); ^ sfhdr.h:817:41: note: in definition of macro 'MEMCPY' { default : memcpy((void*)to,(void*)fr,n); to += n; fr += n; break; \ ^ sfvprintf.c:127:6: note: in expansion of macro 'SFwrite' SFwrite(f, sp, n); ^~~~~~~ sfhdr.h:818:22: warning: conversion to 'unsigned char' from 'char' may change the sign of the result [-Wsign-conversion] case 7 : *to++ = *fr++; \ ^ sfvprintf.c:84:24: note: in expansion of macro 'MEMCPY' { if((endd-d) >= n) { MEMCPY(d,s,n); } \ ^~~~~~ sfvprintf.c:127:6: note: in expansion of macro 'SFwrite' SFwrite(f, sp, n); ^~~~~~~ sfhdr.h:819:22: warning: conversion to 'unsigned char' from 'char' may change the sign of the result [-Wsign-conversion] case 6 : *to++ = *fr++; \ ^ sfvprintf.c:84:24: note: in expansion of macro 'MEMCPY' { if((endd-d) >= n) { MEMCPY(d,s,n); } \ ^~~~~~ sfvprintf.c:127:6: note: in expansion of macro 'SFwrite' SFwrite(f, sp, n); ^~~~~~~ sfhdr.h:820:22: warning: conversion to 'unsigned char' from 'char' may change the sign of the result [-Wsign-conversion] case 5 : *to++ = *fr++; \ ^ sfvprintf.c:84:24: note: in expansion of macro 'MEMCPY' { if((endd-d) >= n) { MEMCPY(d,s,n); } \ ^~~~~~ sfvprintf.c:127:6: note: in expansion of macro 'SFwrite' SFwrite(f, sp, n); ^~~~~~~ sfhdr.h:821:22: warning: conversion to 'unsigned char' from 'char' may change the sign of the result [-Wsign-conversion] case 4 : *to++ = *fr++; \ ^ sfvprintf.c:84:24: note: in expansion of macro 'MEMCPY' { if((endd-d) >= n) { MEMCPY(d,s,n); } \ ^~~~~~ sfvprintf.c:127:6: note: in expansion of macro 'SFwrite' SFwrite(f, sp, n); ^~~~~~~ sfhdr.h:822:22: warning: conversion to 'unsigned char' from 'char' may change the sign of the result [-Wsign-conversion] case 3 : *to++ = *fr++; \ ^ sfvprintf.c:84:24: note: in expansion of macro 'MEMCPY' { if((endd-d) >= n) { MEMCPY(d,s,n); } \ ^~~~~~ sfvprintf.c:127:6: note: in expansion of macro 'SFwrite' SFwrite(f, sp, n); ^~~~~~~ sfhdr.h:823:22: warning: conversion to 'unsigned char' from 'char' may change the sign of the result [-Wsign-conversion] case 2 : *to++ = *fr++; \ ^ sfvprintf.c:84:24: note: in expansion of macro 'MEMCPY' { if((endd-d) >= n) { MEMCPY(d,s,n); } \ ^~~~~~ sfvprintf.c:127:6: note: in expansion of macro 'SFwrite' SFwrite(f, sp, n); ^~~~~~~ sfhdr.h:824:22: warning: conversion to 'unsigned char' from 'char' may change the sign of the result [-Wsign-conversion] case 1 : *to++ = *fr++; \ ^ sfvprintf.c:84:24: note: in expansion of macro 'MEMCPY' { if((endd-d) >= n) { MEMCPY(d,s,n); } \ ^~~~~~ sfvprintf.c:127:6: note: in expansion of macro 'SFwrite' SFwrite(f, sp, n); ^~~~~~~ sfvprintf.c:127:21: warning: conversion to 'size_t {aka unsigned int}' from 'int' may change the sign of the result [-Wsign-conversion] SFwrite(f, sp, n); ^ sfhdr.h:607:49: note: in definition of macro 'SFWRITE' #define SFWRITE(f,s,n) (SETLOCAL(f),sfwrite(f,s,n)) ^ sfvprintf.c:127:6: note: in expansion of macro 'SFwrite' SFwrite(f, sp, n); ^~~~~~~ sfvprintf.c:150:14: warning: cast discards 'const' qualifier from pointer target type [-Wcast-qual] t_str = (char *) form; ^ In file included from sfvprintf.c:14:0: sfhdr.h:478:15: warning: cast discards 'const' qualifier from pointer target type [-Wcast-qual] ((ft->form = (char*)frm), va_copy(ft->args,ags), \ ^ sfvprintf.c:180:8: note: in expansion of macro 'FMTSET' FMTSET(ft, form, args, ^~~~~~ sfvprintf.c:190:13: warning: conversion to 'ssize_t {aka int}' from 'size_t {aka unsigned int}' may change the sign of the result [-Wsign-conversion] n_str = strlen(t_str); ^~~~~~ sfvprintf.c:194:14: warning: conversion to 'ssize_t {aka int}' from 'size_t {aka unsigned int}' may change the sign of the result [-Wsign-conversion] n_str = strlen(t_str); ^~~~~~ sfvprintf.c:152:3: warning: switch missing default case [-Wswitch-default] switch (*form++) { ^~~~~~ In file included from sfvprintf.c:14:0: sfhdr.h:375:18: warning: declaration of 'lv' shadows a previous local [-Wshadow] { struct lconv* lv; \ ^ sfvprintf.c:219:6: note: in expansion of macro 'SFSETLOCALE' SFSETLOCALE(decimal, thousand); ^~~~~~~~~~~ sfvprintf.c:37:14: note: shadowed declaration is here Sflong_t lv; ^~ In file included from sfvprintf.c:14:0: sfhdr.h:478:15: warning: cast discards 'const' qualifier from pointer target type [-Wcast-qual] ((ft->form = (char*)frm), va_copy(ft->args,ags), \ ^ sfvprintf.c:264:3: note: in expansion of macro 'FMTSET' FMTSET(ft, form, args, '.', dot, 0, 0, 0, 0, NIL(char *), ^~~~~~ sfhdr.h:478:15: warning: cast discards 'const' qualifier from pointer target type [-Wcast-qual] ((ft->form = (char*)frm), va_copy(ft->args,ags), \ ^ sfvprintf.c:326:7: note: in expansion of macro 'FMTSET' FMTSET(ft, form, args, 'I', sizeof(int), 0, 0, 0, 0, ^~~~~~ sfvprintf.c:141:2: warning: switch missing default case [-Wswitch-default] switch ((fmt = *form++)) { ^~~~~~ sfvprintf.c:385:46: warning: signed and unsigned type in conditional expression [-Wsign-compare] (flags & SFFMT_ZFLAG) ? sizeof(size_t) : -1; ^ sfvprintf.c:385:46: warning: negative integer implicitly converted to unsigned type [-Wsign-conversion] sfvprintf.c:379:10: warning: conversion of unsigned constant value to negative integer [-Wsign-conversion] size = (flags & SFFMT_LLONG) ? sizeof(Sflong_t) : ^ sfvprintf.c:389:22: warning: signed and unsigned type in conditional expression [-Wsign-compare] sizeof(double) : -1; ^ sfvprintf.c:389:22: warning: negative integer implicitly converted to unsigned type [-Wsign-conversion] sfvprintf.c:387:10: warning: conversion of unsigned constant value to negative integer [-Wsign-conversion] size = (flags & SFFMT_LDOUBLE) ? sizeof(Sfdouble_t) : ^ In file included from sfvprintf.c:14:0: sfhdr.h:478:15: warning: cast discards 'const' qualifier from pointer target type [-Wcast-qual] ((ft->form = (char*)frm), va_copy(ft->args,ags), \ ^ sfvprintf.c:400:6: note: in expansion of macro 'FMTSET' FMTSET(ft, form, args, fmt, size, flags, width, precis, base, ^~~~~~ sfhdr.h:622:16: warning: negative integer implicitly converted to unsigned type [-Wsign-conversion] ((f)->mode &= ~(SF_LOCK|SF_RC|SF_RV), _SFOPEN(f), 0) ) ^ sfvprintf.c:403:6: note: in expansion of macro 'SFOPEN' SFOPEN(f, 0); ^~~~~~ sfvprintf.c:424:6: warning: "_ast_intmax_long" is not defined, evaluates to 0 [-Wundef] #if !_ast_intmax_long ^~~~~~~~~~~~~~~~ sfvprintf.c:472:34: warning: cast discards 'const' qualifier from pointer target type [-Wcast-qual] (*ft->eventf) (f, SF_DPOP, (void *) form, ft) < 0) ^ sfvprintf.c:480:18: warning: cast discards 'const' qualifier from pointer target type [-Wcast-qual] fm->form = (char *) form; ^ sfvprintf.c:518:11: warning: conversion to 'int' from 'size_t {aka unsigned int}' may change the sign of the result [-Wsign-conversion] v = strlen(sp); ^~~~~~ In file included from sfvprintf.c:14:0: sfvprintf.c:526:20: warning: conversion to 'size_t {aka unsigned int}' from 'int' may change the sign of the result [-Wsign-conversion] SFnputc(f, '0', n); ^ sfhdr.h:610:49: note: in definition of macro 'SFNPUTC' #define SFNPUTC(f,c,n) (SETLOCAL(f),sfnputc(f,c,n)) ^ sfvprintf.c:526:4: note: in expansion of macro 'SFnputc' SFnputc(f, '0', n); ^~~~~~~ sfvprintf.c:528:20: warning: conversion to 'size_t {aka unsigned int}' from 'int' may change the sign of the result [-Wsign-conversion] SFnputc(f, ' ', n); ^ sfhdr.h:610:49: note: in definition of macro 'SFNPUTC' #define SFNPUTC(f,c,n) (SETLOCAL(f),sfnputc(f,c,n)) ^ sfvprintf.c:528:4: note: in expansion of macro 'SFnputc' SFnputc(f, ' ', n); ^~~~~~~ sfvprintf.c:531:18: warning: conversion to 'size_t {aka unsigned int}' from 'int' may change the sign of the result [-Wsign-conversion] SFwrite(f, sp, v); ^ sfhdr.h:817:41: note: in definition of macro 'MEMCPY' { default : memcpy((void*)to,(void*)fr,n); to += n; fr += n; break; \ ^ sfvprintf.c:531:3: note: in expansion of macro 'SFwrite' SFwrite(f, sp, v); ^~~~~~~ sfhdr.h:818:22: warning: conversion to 'unsigned char' from 'char' may change the sign of the result [-Wsign-conversion] case 7 : *to++ = *fr++; \ ^ sfvprintf.c:84:24: note: in expansion of macro 'MEMCPY' { if((endd-d) >= n) { MEMCPY(d,s,n); } \ ^~~~~~ sfvprintf.c:531:3: note: in expansion of macro 'SFwrite' SFwrite(f, sp, v); ^~~~~~~ sfhdr.h:819:22: warning: conversion to 'unsigned char' from 'char' may change the sign of the result [-Wsign-conversion] case 6 : *to++ = *fr++; \ ^ sfvprintf.c:84:24: note: in expansion of macro 'MEMCPY' { if((endd-d) >= n) { MEMCPY(d,s,n); } \ ^~~~~~ sfvprintf.c:531:3: note: in expansion of macro 'SFwrite' SFwrite(f, sp, v); ^~~~~~~ sfhdr.h:820:22: warning: conversion to 'unsigned char' from 'char' may change the sign of the result [-Wsign-conversion] case 5 : *to++ = *fr++; \ ^ sfvprintf.c:84:24: note: in expansion of macro 'MEMCPY' { if((endd-d) >= n) { MEMCPY(d,s,n); } \ ^~~~~~ sfvprintf.c:531:3: note: in expansion of macro 'SFwrite' SFwrite(f, sp, v); ^~~~~~~ sfhdr.h:821:22: warning: conversion to 'unsigned char' from 'char' may change the sign of the result [-Wsign-conversion] case 4 : *to++ = *fr++; \ ^ sfvprintf.c:84:24: note: in expansion of macro 'MEMCPY' { if((endd-d) >= n) { MEMCPY(d,s,n); } \ ^~~~~~ sfvprintf.c:531:3: note: in expansion of macro 'SFwrite' SFwrite(f, sp, v); ^~~~~~~ sfhdr.h:822:22: warning: conversion to 'unsigned char' from 'char' may change the sign of the result [-Wsign-conversion] case 3 : *to++ = *fr++; \ ^ sfvprintf.c:84:24: note: in expansion of macro 'MEMCPY' { if((endd-d) >= n) { MEMCPY(d,s,n); } \ ^~~~~~ sfvprintf.c:531:3: note: in expansion of macro 'SFwrite' SFwrite(f, sp, v); ^~~~~~~ sfhdr.h:823:22: warning: conversion to 'unsigned char' from 'char' may change the sign of the result [-Wsign-conversion] case 2 : *to++ = *fr++; \ ^ sfvprintf.c:84:24: note: in expansion of macro 'MEMCPY' { if((endd-d) >= n) { MEMCPY(d,s,n); } \ ^~~~~~ sfvprintf.c:531:3: note: in expansion of macro 'SFwrite' SFwrite(f, sp, v); ^~~~~~~ sfhdr.h:824:22: warning: conversion to 'unsigned char' from 'char' may change the sign of the result [-Wsign-conversion] case 1 : *to++ = *fr++; \ ^ sfvprintf.c:84:24: note: in expansion of macro 'MEMCPY' { if((endd-d) >= n) { MEMCPY(d,s,n); } \ ^~~~~~ sfvprintf.c:531:3: note: in expansion of macro 'SFwrite' SFwrite(f, sp, v); ^~~~~~~ sfvprintf.c:531:18: warning: conversion to 'size_t {aka unsigned int}' from 'int' may change the sign of the result [-Wsign-conversion] SFwrite(f, sp, v); ^ sfhdr.h:607:49: note: in definition of macro 'SFWRITE' #define SFWRITE(f,s,n) (SETLOCAL(f),sfwrite(f,s,n)) ^ sfvprintf.c:531:3: note: in expansion of macro 'SFwrite' SFwrite(f, sp, v); ^~~~~~~ sfvprintf.c:533:23: warning: conversion to 'size_t {aka unsigned int}' from 'int' may change the sign of the result [-Wsign-conversion] SFnputc(f, ' ', n); ^ sfhdr.h:610:49: note: in definition of macro 'SFNPUTC' #define SFNPUTC(f,c,n) (SETLOCAL(f),sfnputc(f,c,n)) ^ sfvprintf.c:533:7: note: in expansion of macro 'SFnputc' SFnputc(f, ' ', n); ^~~~~~~ sfvprintf.c:550:12: warning: conversion to 'char' from 'int' may alter its value [-Wconversion] buf[0] = fmt; ^~~ In file included from sfvprintf.c:14:0: sfvprintf.c:557:19: warning: conversion to 'size_t {aka unsigned int}' from 'int' may change the sign of the result [-Wsign-conversion] SFnputc(f, ' ', n)}; ^ sfhdr.h:610:49: note: in definition of macro 'SFNPUTC' #define SFNPUTC(f,c,n) (SETLOCAL(f),sfnputc(f,c,n)) ^ sfvprintf.c:557:3: note: in expansion of macro 'SFnputc' SFnputc(f, ' ', n)}; ^~~~~~~ sfvprintf.c:559:19: warning: conversion to 'size_t {aka unsigned int}' from 'int' may change the sign of the result [-Wsign-conversion] SFnputc(f, fmt, v); ^ sfhdr.h:610:49: note: in definition of macro 'SFNPUTC' #define SFNPUTC(f,c,n) (SETLOCAL(f),sfnputc(f,c,n)) ^ sfvprintf.c:559:3: note: in expansion of macro 'SFnputc' SFnputc(f, fmt, v); ^~~~~~~ sfvprintf.c:561:19: warning: conversion to 'size_t {aka unsigned int}' from 'int' may change the sign of the result [-Wsign-conversion] SFnputc(f, ' ', n)}; ^ sfhdr.h:610:49: note: in definition of macro 'SFNPUTC' #define SFNPUTC(f,c,n) (SETLOCAL(f),sfnputc(f,c,n)) ^ sfvprintf.c:561:3: note: in expansion of macro 'SFnputc' SFnputc(f, ' ', n)}; ^~~~~~~ sfvprintf.c:572:6: warning: "_ast_intmax_long" is not defined, evaluates to 0 [-Wundef] #if !_ast_intmax_long ^~~~~~~~~~~~~~~~ sfvprintf.c:597:5: warning: "_more_void_int" is not defined, evaluates to 0 [-Wundef] #if _more_void_int ^~~~~~~~~~~~~~ sfvprintf.c:638:6: warning: "_ast_intmax_long" is not defined, evaluates to 0 [-Wundef] #if !_ast_intmax_long || _more_long_int || _more_void_int ^~~~~~~~~~~~~~~~ sfvprintf.c:652:14: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] if (lv == HIGHBITL) { /* avoid overflow */ ^~ sfvprintf.c:653:30: warning: conversion to 'long long unsigned int' from 'int' may change the sign of the result [-Wsign-conversion] lv = (Sflong_t) (HIGHBITL / base); ^ sfvprintf.c:655:25: warning: conversion to 'long long unsigned int' from 'int' may change the sign of the result [-Wsign-conversion] ((Sfulong_t) lv) * base]; ^ sfvprintf.c:665:22: warning: conversion to 'long long int' from 'long long unsigned int' may change the sign of the result [-Wsign-conversion] } while ((lv = ((Sfulong_t) lv) >> n)); ^ sfvprintf.c:668:33: warning: conversion to 'long long unsigned int' from 'int' may change the sign of the result [-Wsign-conversion] *--sp = ssp[((Sfulong_t) lv) % base]; ^ sfvprintf.c:669:39: warning: conversion to 'long long unsigned int' from 'int' may change the sign of the result [-Wsign-conversion] } while ((lv = ((Sfulong_t) lv) / base)); ^ sfvprintf.c:669:22: warning: conversion to 'long long int' from 'long long unsigned int' may change the sign of the result [-Wsign-conversion] } while ((lv = ((Sfulong_t) lv) / base)); ^ sfvprintf.c:707:13: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] if (v == HIGHBITI) { /* avoid overflow */ ^~ sfvprintf.c:708:24: warning: conversion to 'unsigned int' from 'int' may change the sign of the result [-Wsign-conversion] v = (int) (HIGHBITI / base); ^ sfvprintf.c:709:44: warning: conversion to 'unsigned int' from 'int' may change the sign of the result [-Wsign-conversion] *--sp = _Sfdigits[HIGHBITI - ((uint) v) * base]; ^ sfvprintf.c:718:21: warning: conversion to 'int' from 'unsigned int' may change the sign of the result [-Wsign-conversion] } while ((v = ((uint) v) >> n)); ^ sfvprintf.c:721:27: warning: conversion to 'unsigned int' from 'int' may change the sign of the result [-Wsign-conversion] *--sp = ssp[((uint) v) % base]; ^ sfvprintf.c:722:32: warning: conversion to 'unsigned int' from 'int' may change the sign of the result [-Wsign-conversion] } while ((v = ((uint) v) / base)); ^ sfvprintf.c:722:21: warning: conversion to 'int' from 'unsigned int' may change the sign of the result [-Wsign-conversion] } while ((v = ((uint) v) / base)); ^ In file included from sfvprintf.c:14:0: sfhdr.h:726:17: warning: conversion to 'char' from 'unsigned char' may change the sign of the result [-Wsign-conversion] #define _Sfdec (_Sftable.sf_dec) ^ sfvprintf.c:773:16: note: in expansion of macro '_Sfdec' *--sp = _Sfdec[(base <<= 1) + 1]; ^~~~~~ sfhdr.h:726:17: warning: conversion to 'char' from 'unsigned char' may change the sign of the result [-Wsign-conversion] #define _Sfdec (_Sftable.sf_dec) ^ sfvprintf.c:774:16: note: in expansion of macro '_Sfdec' *--sp = _Sfdec[base]; ^~~~~~ sfvprintf.c:833:13: warning: comparing floating point with == or != is unsafe [-Wfloat-equal] if (ldval == 0.) ^~ sfvprintf.c:842:12: warning: comparing floating point with == or != is unsafe [-Wfloat-equal] if (dval == 0.) ^~ In file included from sfvprintf.c:14:0: sfhdr.h:375:18: warning: declaration of 'lv' shadows a previous local [-Wshadow] { struct lconv* lv; \ ^ sfvprintf.c:870:6: note: in expansion of macro 'SFSETLOCALE' SFSETLOCALE(decimal, thousand); ^~~~~~~~~~~ sfvprintf.c:37:14: note: shadowed declaration is here Sflong_t lv; ^~ sfvprintf.c:882:16: warning: comparing floating point with == or != is unsafe [-Wfloat-equal] dval = ldval ? 1. : 0.; /* so the below test works */ ^ sfvprintf.c:884:15: warning: comparing floating point with == or != is unsafe [-Wfloat-equal] if (dval != 0.) { ^~ sfvprintf.c:899:33: warning: comparing floating point with == or != is unsafe [-Wfloat-equal] *--ep = (decpt > 0 || dval == 0.) ? '+' : '-'; ^~ In file included from sfvprintf.c:14:0: sfhdr.h:375:18: warning: declaration of 'lv' shadows a previous local [-Wshadow] { struct lconv* lv; \ ^ sfvprintf.c:913:6: note: in expansion of macro 'SFSETLOCALE' SFSETLOCALE(decimal, thousand); ^~~~~~~~~~~ sfvprintf.c:37:14: note: shadowed declaration is here Sflong_t lv; ^~ sfvprintf.c:969:11: warning: conversion to 'char' from 'int' may alter its value [-Wconversion] *--sp = fmt; ^~~ In file included from sfvprintf.c:14:0: sfvprintf.c:982:20: warning: conversion to 'size_t {aka unsigned int}' from 'int' may change the sign of the result [-Wsign-conversion] SFnputc(f, v, n); ^ sfhdr.h:610:49: note: in definition of macro 'SFNPUTC' #define SFNPUTC(f,c,n) (SETLOCAL(f),sfnputc(f,c,n)) ^ sfvprintf.c:982:6: note: in expansion of macro 'SFnputc' SFnputc(f, v, n); ^~~~~~~ sfvprintf.c:986:22: warning: conversion to 'size_t {aka unsigned int}' from 'int' may change the sign of the result [-Wsign-conversion] SFnputc(f, '0', n); ^ sfhdr.h:610:49: note: in definition of macro 'SFNPUTC' #define SFNPUTC(f,c,n) (SETLOCAL(f),sfnputc(f,c,n)) ^ sfvprintf.c:986:6: note: in expansion of macro 'SFnputc' SFnputc(f, '0', n); ^~~~~~~ sfvprintf.c:992:21: warning: conversion to 'size_t {aka unsigned int}' from 'int' may change the sign of the result [-Wsign-conversion] SFwrite(f, sp, n); ^ sfhdr.h:817:41: note: in definition of macro 'MEMCPY' { default : memcpy((void*)to,(void*)fr,n); to += n; fr += n; break; \ ^ sfvprintf.c:992:6: note: in expansion of macro 'SFwrite' SFwrite(f, sp, n); ^~~~~~~ sfhdr.h:818:22: warning: conversion to 'unsigned char' from 'char' may change the sign of the result [-Wsign-conversion] case 7 : *to++ = *fr++; \ ^ sfvprintf.c:84:24: note: in expansion of macro 'MEMCPY' { if((endd-d) >= n) { MEMCPY(d,s,n); } \ ^~~~~~ sfvprintf.c:992:6: note: in expansion of macro 'SFwrite' SFwrite(f, sp, n); ^~~~~~~ sfhdr.h:819:22: warning: conversion to 'unsigned char' from 'char' may change the sign of the result [-Wsign-conversion] case 6 : *to++ = *fr++; \ ^ sfvprintf.c:84:24: note: in expansion of macro 'MEMCPY' { if((endd-d) >= n) { MEMCPY(d,s,n); } \ ^~~~~~ sfvprintf.c:992:6: note: in expansion of macro 'SFwrite' SFwrite(f, sp, n); ^~~~~~~ sfhdr.h:820:22: warning: conversion to 'unsigned char' from 'char' may change the sign of the result [-Wsign-conversion] case 5 : *to++ = *fr++; \ ^ sfvprintf.c:84:24: note: in expansion of macro 'MEMCPY' { if((endd-d) >= n) { MEMCPY(d,s,n); } \ ^~~~~~ sfvprintf.c:992:6: note: in expansion of macro 'SFwrite' SFwrite(f, sp, n); ^~~~~~~ sfhdr.h:821:22: warning: conversion to 'unsigned char' from 'char' may change the sign of the result [-Wsign-conversion] case 4 : *to++ = *fr++; \ ^ sfvprintf.c:84:24: note: in expansion of macro 'MEMCPY' { if((endd-d) >= n) { MEMCPY(d,s,n); } \ ^~~~~~ sfvprintf.c:992:6: note: in expansion of macro 'SFwrite' SFwrite(f, sp, n); ^~~~~~~ sfhdr.h:822:22: warning: conversion to 'unsigned char' from 'char' may change the sign of the result [-Wsign-conversion] case 3 : *to++ = *fr++; \ ^ sfvprintf.c:84:24: note: in expansion of macro 'MEMCPY' { if((endd-d) >= n) { MEMCPY(d,s,n); } \ ^~~~~~ sfvprintf.c:992:6: note: in expansion of macro 'SFwrite' SFwrite(f, sp, n); ^~~~~~~ sfhdr.h:823:22: warning: conversion to 'unsigned char' from 'char' may change the sign of the result [-Wsign-conversion] case 2 : *to++ = *fr++; \ ^ sfvprintf.c:84:24: note: in expansion of macro 'MEMCPY' { if((endd-d) >= n) { MEMCPY(d,s,n); } \ ^~~~~~ sfvprintf.c:992:6: note: in expansion of macro 'SFwrite' SFwrite(f, sp, n); ^~~~~~~ sfhdr.h:824:22: warning: conversion to 'unsigned char' from 'char' may change the sign of the result [-Wsign-conversion] case 1 : *to++ = *fr++; \ ^ sfvprintf.c:84:24: note: in expansion of macro 'MEMCPY' { if((endd-d) >= n) { MEMCPY(d,s,n); } \ ^~~~~~ sfvprintf.c:992:6: note: in expansion of macro 'SFwrite' SFwrite(f, sp, n); ^~~~~~~ sfvprintf.c:992:21: warning: conversion to 'size_t {aka unsigned int}' from 'int' may change the sign of the result [-Wsign-conversion] SFwrite(f, sp, n); ^ sfhdr.h:607:49: note: in definition of macro 'SFWRITE' #define SFWRITE(f,s,n) (SETLOCAL(f),sfwrite(f,s,n)) ^ sfvprintf.c:992:6: note: in expansion of macro 'SFwrite' SFwrite(f, sp, n); ^~~~~~~ sfvprintf.c:996:19: warning: conversion to 'size_t {aka unsigned int}' from 'int' may change the sign of the result [-Wsign-conversion] SFnputc(f, '0', n); ^ sfhdr.h:610:49: note: in definition of macro 'SFNPUTC' #define SFNPUTC(f,c,n) (SETLOCAL(f),sfnputc(f,c,n)) ^ sfvprintf.c:996:3: note: in expansion of macro 'SFnputc' SFnputc(f, '0', n); ^~~~~~~ sfvprintf.c:1000:18: warning: conversion to 'size_t {aka unsigned int}' from 'int' may change the sign of the result [-Wsign-conversion] SFwrite(f, sp, n); ^ sfhdr.h:817:41: note: in definition of macro 'MEMCPY' { default : memcpy((void*)to,(void*)fr,n); to += n; fr += n; break; \ ^ sfvprintf.c:1000:3: note: in expansion of macro 'SFwrite' SFwrite(f, sp, n); ^~~~~~~ sfhdr.h:818:22: warning: conversion to 'unsigned char' from 'char' may change the sign of the result [-Wsign-conversion] case 7 : *to++ = *fr++; \ ^ sfvprintf.c:84:24: note: in expansion of macro 'MEMCPY' { if((endd-d) >= n) { MEMCPY(d,s,n); } \ ^~~~~~ sfvprintf.c:1000:3: note: in expansion of macro 'SFwrite' SFwrite(f, sp, n); ^~~~~~~ sfhdr.h:819:22: warning: conversion to 'unsigned char' from 'char' may change the sign of the result [-Wsign-conversion] case 6 : *to++ = *fr++; \ ^ sfvprintf.c:84:24: note: in expansion of macro 'MEMCPY' { if((endd-d) >= n) { MEMCPY(d,s,n); } \ ^~~~~~ sfvprintf.c:1000:3: note: in expansion of macro 'SFwrite' SFwrite(f, sp, n); ^~~~~~~ sfhdr.h:820:22: warning: conversion to 'unsigned char' from 'char' may change the sign of the result [-Wsign-conversion] case 5 : *to++ = *fr++; \ ^ sfvprintf.c:84:24: note: in expansion of macro 'MEMCPY' { if((endd-d) >= n) { MEMCPY(d,s,n); } \ ^~~~~~ sfvprintf.c:1000:3: note: in expansion of macro 'SFwrite' SFwrite(f, sp, n); ^~~~~~~ sfhdr.h:821:22: warning: conversion to 'unsigned char' from 'char' may change the sign of the result [-Wsign-conversion] case 4 : *to++ = *fr++; \ ^ sfvprintf.c:84:24: note: in expansion of macro 'MEMCPY' { if((endd-d) >= n) { MEMCPY(d,s,n); } \ ^~~~~~ sfvprintf.c:1000:3: note: in expansion of macro 'SFwrite' SFwrite(f, sp, n); ^~~~~~~ sfhdr.h:822:22: warning: conversion to 'unsigned char' from 'char' may change the sign of the result [-Wsign-conversion] case 3 : *to++ = *fr++; \ ^ sfvprintf.c:84:24: note: in expansion of macro 'MEMCPY' { if((endd-d) >= n) { MEMCPY(d,s,n); } \ ^~~~~~ sfvprintf.c:1000:3: note: in expansion of macro 'SFwrite' SFwrite(f, sp, n); ^~~~~~~ sfhdr.h:823:22: warning: conversion to 'unsigned char' from 'char' may change the sign of the result [-Wsign-conversion] case 2 : *to++ = *fr++; \ ^ sfvprintf.c:84:24: note: in expansion of macro 'MEMCPY' { if((endd-d) >= n) { MEMCPY(d,s,n); } \ ^~~~~~ sfvprintf.c:1000:3: note: in expansion of macro 'SFwrite' SFwrite(f, sp, n); ^~~~~~~ sfhdr.h:824:22: warning: conversion to 'unsigned char' from 'char' may change the sign of the result [-Wsign-conversion] case 1 : *to++ = *fr++; \ ^ sfvprintf.c:84:24: note: in expansion of macro 'MEMCPY' { if((endd-d) >= n) { MEMCPY(d,s,n); } \ ^~~~~~ sfvprintf.c:1000:3: note: in expansion of macro 'SFwrite' SFwrite(f, sp, n); ^~~~~~~ sfvprintf.c:1000:18: warning: conversion to 'size_t {aka unsigned int}' from 'int' may change the sign of the result [-Wsign-conversion] SFwrite(f, sp, n); ^ sfhdr.h:607:49: note: in definition of macro 'SFWRITE' #define SFWRITE(f,s,n) (SETLOCAL(f),sfwrite(f,s,n)) ^ sfvprintf.c:1000:3: note: in expansion of macro 'SFwrite' SFwrite(f, sp, n); ^~~~~~~ sfvprintf.c:1004:19: warning: conversion to 'size_t {aka unsigned int}' from 'int' may change the sign of the result [-Wsign-conversion] SFnputc(f, ' ', n); ^ sfhdr.h:610:49: note: in definition of macro 'SFNPUTC' #define SFNPUTC(f,c,n) (SETLOCAL(f),sfnputc(f,c,n)) ^ sfvprintf.c:1004:3: note: in expansion of macro 'SFnputc' SFnputc(f, ' ', n); ^~~~~~~ sfvprintf.c:1017:42: warning: cast discards 'const' qualifier from pointer target type [-Wcast-qual] else if ((*fm->eventf) (f, SF_DPOP, (void *) form, ft) < 0) ^ In file included from sfvprintf.c:14:0: sfvprintf.c:1054:32: warning: conversion to 'size_t {aka unsigned int}' from 'int' may change the sign of the result [-Wsign-conversion] (void) SFWRITE(f, (void *) d, n); ^ sfhdr.h:607:49: note: in definition of macro 'SFWRITE' #define SFWRITE(f,s,n) (SETLOCAL(f),sfwrite(f,s,n)) ^ sfhdr.h:622:16: warning: negative integer implicitly converted to unsigned type [-Wsign-conversion] ((f)->mode &= ~(SF_LOCK|SF_RC|SF_RV), _SFOPEN(f), 0) ) ^ sfvprintf.c:1058:5: note: in expansion of macro 'SFOPEN' SFOPEN(f, 0); ^~~~~~ sfhdr.h:818:20: warning: this statement may fall through [-Wimplicit-fallthrough=] case 7 : *to++ = *fr++; \ ~~~~~~^~~~~~ sfvprintf.c:84:24: note: in expansion of macro 'MEMCPY' { if((endd-d) >= n) { MEMCPY(d,s,n); } \ ^~~~~~ sfvprintf.c:127:6: note: in expansion of macro 'SFwrite' SFwrite(f, sp, n); ^~~~~~~ sfhdr.h:819:4: note: here case 6 : *to++ = *fr++; \ ^ sfvprintf.c:84:24: note: in expansion of macro 'MEMCPY' { if((endd-d) >= n) { MEMCPY(d,s,n); } \ ^~~~~~ sfvprintf.c:127:6: note: in expansion of macro 'SFwrite' SFwrite(f, sp, n); ^~~~~~~ sfhdr.h:819:20: warning: this statement may fall through [-Wimplicit-fallthrough=] case 6 : *to++ = *fr++; \ ~~~~~~^~~~~~ sfvprintf.c:84:24: note: in expansion of macro 'MEMCPY' { if((endd-d) >= n) { MEMCPY(d,s,n); } \ ^~~~~~ sfvprintf.c:127:6: note: in expansion of macro 'SFwrite' SFwrite(f, sp, n); ^~~~~~~ sfhdr.h:820:4: note: here case 5 : *to++ = *fr++; \ ^ sfvprintf.c:84:24: note: in expansion of macro 'MEMCPY' { if((endd-d) >= n) { MEMCPY(d,s,n); } \ ^~~~~~ sfvprintf.c:127:6: note: in expansion of macro 'SFwrite' SFwrite(f, sp, n); ^~~~~~~ sfhdr.h:820:20: warning: this statement may fall through [-Wimplicit-fallthrough=] case 5 : *to++ = *fr++; \ ~~~~~~^~~~~~ sfvprintf.c:84:24: note: in expansion of macro 'MEMCPY' { if((endd-d) >= n) { MEMCPY(d,s,n); } \ ^~~~~~ sfvprintf.c:127:6: note: in expansion of macro 'SFwrite' SFwrite(f, sp, n); ^~~~~~~ sfhdr.h:821:4: note: here case 4 : *to++ = *fr++; \ ^ sfvprintf.c:84:24: note: in expansion of macro 'MEMCPY' { if((endd-d) >= n) { MEMCPY(d,s,n); } \ ^~~~~~ sfvprintf.c:127:6: note: in expansion of macro 'SFwrite' SFwrite(f, sp, n); ^~~~~~~ sfhdr.h:821:20: warning: this statement may fall through [-Wimplicit-fallthrough=] case 4 : *to++ = *fr++; \ ~~~~~~^~~~~~ sfvprintf.c:84:24: note: in expansion of macro 'MEMCPY' { if((endd-d) >= n) { MEMCPY(d,s,n); } \ ^~~~~~ sfvprintf.c:127:6: note: in expansion of macro 'SFwrite' SFwrite(f, sp, n); ^~~~~~~ sfhdr.h:822:4: note: here case 3 : *to++ = *fr++; \ ^ sfvprintf.c:84:24: note: in expansion of macro 'MEMCPY' { if((endd-d) >= n) { MEMCPY(d,s,n); } \ ^~~~~~ sfvprintf.c:127:6: note: in expansion of macro 'SFwrite' SFwrite(f, sp, n); ^~~~~~~ sfhdr.h:822:20: warning: this statement may fall through [-Wimplicit-fallthrough=] case 3 : *to++ = *fr++; \ ~~~~~~^~~~~~ sfvprintf.c:84:24: note: in expansion of macro 'MEMCPY' { if((endd-d) >= n) { MEMCPY(d,s,n); } \ ^~~~~~ sfvprintf.c:127:6: note: in expansion of macro 'SFwrite' SFwrite(f, sp, n); ^~~~~~~ sfhdr.h:823:4: note: here case 2 : *to++ = *fr++; \ ^ sfvprintf.c:84:24: note: in expansion of macro 'MEMCPY' { if((endd-d) >= n) { MEMCPY(d,s,n); } \ ^~~~~~ sfvprintf.c:127:6: note: in expansion of macro 'SFwrite' SFwrite(f, sp, n); ^~~~~~~ sfhdr.h:823:20: warning: this statement may fall through [-Wimplicit-fallthrough=] case 2 : *to++ = *fr++; \ ~~~~~~^~~~~~ sfvprintf.c:84:24: note: in expansion of macro 'MEMCPY' { if((endd-d) >= n) { MEMCPY(d,s,n); } \ ^~~~~~ sfvprintf.c:127:6: note: in expansion of macro 'SFwrite' SFwrite(f, sp, n); ^~~~~~~ sfhdr.h:824:4: note: here case 1 : *to++ = *fr++; \ ^ sfvprintf.c:84:24: note: in expansion of macro 'MEMCPY' { if((endd-d) >= n) { MEMCPY(d,s,n); } \ ^~~~~~ sfvprintf.c:127:6: note: in expansion of macro 'SFwrite' SFwrite(f, sp, n); ^~~~~~~ sfvprintf.c:250:11: warning: this statement may fall through [-Wimplicit-fallthrough=] form += 1; /* fall thru for '*' */ ~~~~~^~~~ sfvprintf.c:251:2: note: here case '*': ^~~~ In file included from sfvprintf.c:14:0: sfhdr.h:818:20: warning: this statement may fall through [-Wimplicit-fallthrough=] case 7 : *to++ = *fr++; \ ~~~~~~^~~~~~ sfvprintf.c:84:24: note: in expansion of macro 'MEMCPY' { if((endd-d) >= n) { MEMCPY(d,s,n); } \ ^~~~~~ sfvprintf.c:531:3: note: in expansion of macro 'SFwrite' SFwrite(f, sp, v); ^~~~~~~ sfhdr.h:819:4: note: here case 6 : *to++ = *fr++; \ ^ sfvprintf.c:84:24: note: in expansion of macro 'MEMCPY' { if((endd-d) >= n) { MEMCPY(d,s,n); } \ ^~~~~~ sfvprintf.c:531:3: note: in expansion of macro 'SFwrite' SFwrite(f, sp, v); ^~~~~~~ sfhdr.h:819:20: warning: this statement may fall through [-Wimplicit-fallthrough=] case 6 : *to++ = *fr++; \ ~~~~~~^~~~~~ sfvprintf.c:84:24: note: in expansion of macro 'MEMCPY' { if((endd-d) >= n) { MEMCPY(d,s,n); } \ ^~~~~~ sfvprintf.c:531:3: note: in expansion of macro 'SFwrite' SFwrite(f, sp, v); ^~~~~~~ sfhdr.h:820:4: note: here case 5 : *to++ = *fr++; \ ^ sfvprintf.c:84:24: note: in expansion of macro 'MEMCPY' { if((endd-d) >= n) { MEMCPY(d,s,n); } \ ^~~~~~ sfvprintf.c:531:3: note: in expansion of macro 'SFwrite' SFwrite(f, sp, v); ^~~~~~~ sfhdr.h:820:20: warning: this statement may fall through [-Wimplicit-fallthrough=] case 5 : *to++ = *fr++; \ ~~~~~~^~~~~~ sfvprintf.c:84:24: note: in expansion of macro 'MEMCPY' { if((endd-d) >= n) { MEMCPY(d,s,n); } \ ^~~~~~ sfvprintf.c:531:3: note: in expansion of macro 'SFwrite' SFwrite(f, sp, v); ^~~~~~~ sfhdr.h:821:4: note: here case 4 : *to++ = *fr++; \ ^ sfvprintf.c:84:24: note: in expansion of macro 'MEMCPY' { if((endd-d) >= n) { MEMCPY(d,s,n); } \ ^~~~~~ sfvprintf.c:531:3: note: in expansion of macro 'SFwrite' SFwrite(f, sp, v); ^~~~~~~ sfhdr.h:821:20: warning: this statement may fall through [-Wimplicit-fallthrough=] case 4 : *to++ = *fr++; \ ~~~~~~^~~~~~ sfvprintf.c:84:24: note: in expansion of macro 'MEMCPY' { if((endd-d) >= n) { MEMCPY(d,s,n); } \ ^~~~~~ sfvprintf.c:531:3: note: in expansion of macro 'SFwrite' SFwrite(f, sp, v); ^~~~~~~ sfhdr.h:822:4: note: here case 3 : *to++ = *fr++; \ ^ sfvprintf.c:84:24: note: in expansion of macro 'MEMCPY' { if((endd-d) >= n) { MEMCPY(d,s,n); } \ ^~~~~~ sfvprintf.c:531:3: note: in expansion of macro 'SFwrite' SFwrite(f, sp, v); ^~~~~~~ sfhdr.h:822:20: warning: this statement may fall through [-Wimplicit-fallthrough=] case 3 : *to++ = *fr++; \ ~~~~~~^~~~~~ sfvprintf.c:84:24: note: in expansion of macro 'MEMCPY' { if((endd-d) >= n) { MEMCPY(d,s,n); } \ ^~~~~~ sfvprintf.c:531:3: note: in expansion of macro 'SFwrite' SFwrite(f, sp, v); ^~~~~~~ sfhdr.h:823:4: note: here case 2 : *to++ = *fr++; \ ^ sfvprintf.c:84:24: note: in expansion of macro 'MEMCPY' { if((endd-d) >= n) { MEMCPY(d,s,n); } \ ^~~~~~ sfvprintf.c:531:3: note: in expansion of macro 'SFwrite' SFwrite(f, sp, v); ^~~~~~~ sfhdr.h:823:20: warning: this statement may fall through [-Wimplicit-fallthrough=] case 2 : *to++ = *fr++; \ ~~~~~~^~~~~~ sfvprintf.c:84:24: note: in expansion of macro 'MEMCPY' { if((endd-d) >= n) { MEMCPY(d,s,n); } \ ^~~~~~ sfvprintf.c:531:3: note: in expansion of macro 'SFwrite' SFwrite(f, sp, v); ^~~~~~~ sfhdr.h:824:4: note: here case 1 : *to++ = *fr++; \ ^ sfvprintf.c:84:24: note: in expansion of macro 'MEMCPY' { if((endd-d) >= n) { MEMCPY(d,s,n); } \ ^~~~~~ sfvprintf.c:531:3: note: in expansion of macro 'SFwrite' SFwrite(f, sp, v); ^~~~~~~ sfvprintf.c:611:10: warning: this statement may fall through [-Wimplicit-fallthrough=] ssp = "0123456789ABCDEF"; ~~~~^~~~~~~~~~~~~~~~~~~~ sfvprintf.c:612:2: note: here case 'x': ^~~~ sfvprintf.c:622:12: warning: this statement may fall through [-Wimplicit-fallthrough=] flags &= ~(SFFMT_SIGN | SFFMT_BLANK); ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ sfvprintf.c:623:2: note: here case 'd': ^~~~ In file included from sfvprintf.c:14:0: sfhdr.h:818:20: warning: this statement may fall through [-Wimplicit-fallthrough=] case 7 : *to++ = *fr++; \ ~~~~~~^~~~~~ sfvprintf.c:84:24: note: in expansion of macro 'MEMCPY' { if((endd-d) >= n) { MEMCPY(d,s,n); } \ ^~~~~~ sfvprintf.c:992:6: note: in expansion of macro 'SFwrite' SFwrite(f, sp, n); ^~~~~~~ sfhdr.h:819:4: note: here case 6 : *to++ = *fr++; \ ^ sfvprintf.c:84:24: note: in expansion of macro 'MEMCPY' { if((endd-d) >= n) { MEMCPY(d,s,n); } \ ^~~~~~ sfvprintf.c:992:6: note: in expansion of macro 'SFwrite' SFwrite(f, sp, n); ^~~~~~~ sfhdr.h:819:20: warning: this statement may fall through [-Wimplicit-fallthrough=] case 6 : *to++ = *fr++; \ ~~~~~~^~~~~~ sfvprintf.c:84:24: note: in expansion of macro 'MEMCPY' { if((endd-d) >= n) { MEMCPY(d,s,n); } \ ^~~~~~ sfvprintf.c:992:6: note: in expansion of macro 'SFwrite' SFwrite(f, sp, n); ^~~~~~~ sfhdr.h:820:4: note: here case 5 : *to++ = *fr++; \ ^ sfvprintf.c:84:24: note: in expansion of macro 'MEMCPY' { if((endd-d) >= n) { MEMCPY(d,s,n); } \ ^~~~~~ sfvprintf.c:992:6: note: in expansion of macro 'SFwrite' SFwrite(f, sp, n); ^~~~~~~ sfhdr.h:820:20: warning: this statement may fall through [-Wimplicit-fallthrough=] case 5 : *to++ = *fr++; \ ~~~~~~^~~~~~ sfvprintf.c:84:24: note: in expansion of macro 'MEMCPY' { if((endd-d) >= n) { MEMCPY(d,s,n); } \ ^~~~~~ sfvprintf.c:992:6: note: in expansion of macro 'SFwrite' SFwrite(f, sp, n); ^~~~~~~ sfhdr.h:821:4: note: here case 4 : *to++ = *fr++; \ ^ sfvprintf.c:84:24: note: in expansion of macro 'MEMCPY' { if((endd-d) >= n) { MEMCPY(d,s,n); } \ ^~~~~~ sfvprintf.c:992:6: note: in expansion of macro 'SFwrite' SFwrite(f, sp, n); ^~~~~~~ sfhdr.h:821:20: warning: this statement may fall through [-Wimplicit-fallthrough=] case 4 : *to++ = *fr++; \ ~~~~~~^~~~~~ sfvprintf.c:84:24: note: in expansion of macro 'MEMCPY' { if((endd-d) >= n) { MEMCPY(d,s,n); } \ ^~~~~~ sfvprintf.c:992:6: note: in expansion of macro 'SFwrite' SFwrite(f, sp, n); ^~~~~~~ sfhdr.h:822:4: note: here case 3 : *to++ = *fr++; \ ^ sfvprintf.c:84:24: note: in expansion of macro 'MEMCPY' { if((endd-d) >= n) { MEMCPY(d,s,n); } \ ^~~~~~ sfvprintf.c:992:6: note: in expansion of macro 'SFwrite' SFwrite(f, sp, n); ^~~~~~~ sfhdr.h:822:20: warning: this statement may fall through [-Wimplicit-fallthrough=] case 3 : *to++ = *fr++; \ ~~~~~~^~~~~~ sfvprintf.c:84:24: note: in expansion of macro 'MEMCPY' { if((endd-d) >= n) { MEMCPY(d,s,n); } \ ^~~~~~ sfvprintf.c:992:6: note: in expansion of macro 'SFwrite' SFwrite(f, sp, n); ^~~~~~~ sfhdr.h:823:4: note: here case 2 : *to++ = *fr++; \ ^ sfvprintf.c:84:24: note: in expansion of macro 'MEMCPY' { if((endd-d) >= n) { MEMCPY(d,s,n); } \ ^~~~~~ sfvprintf.c:992:6: note: in expansion of macro 'SFwrite' SFwrite(f, sp, n); ^~~~~~~ sfhdr.h:823:20: warning: this statement may fall through [-Wimplicit-fallthrough=] case 2 : *to++ = *fr++; \ ~~~~~~^~~~~~ sfvprintf.c:84:24: note: in expansion of macro 'MEMCPY' { if((endd-d) >= n) { MEMCPY(d,s,n); } \ ^~~~~~ sfvprintf.c:992:6: note: in expansion of macro 'SFwrite' SFwrite(f, sp, n); ^~~~~~~ sfhdr.h:824:4: note: here case 1 : *to++ = *fr++; \ ^ sfvprintf.c:84:24: note: in expansion of macro 'MEMCPY' { if((endd-d) >= n) { MEMCPY(d,s,n); } \ ^~~~~~ sfvprintf.c:992:6: note: in expansion of macro 'SFwrite' SFwrite(f, sp, n); ^~~~~~~ sfhdr.h:818:20: warning: this statement may fall through [-Wimplicit-fallthrough=] case 7 : *to++ = *fr++; \ ~~~~~~^~~~~~ sfvprintf.c:84:24: note: in expansion of macro 'MEMCPY' { if((endd-d) >= n) { MEMCPY(d,s,n); } \ ^~~~~~ sfvprintf.c:1000:3: note: in expansion of macro 'SFwrite' SFwrite(f, sp, n); ^~~~~~~ sfhdr.h:819:4: note: here case 6 : *to++ = *fr++; \ ^ sfvprintf.c:84:24: note: in expansion of macro 'MEMCPY' { if((endd-d) >= n) { MEMCPY(d,s,n); } \ ^~~~~~ sfvprintf.c:1000:3: note: in expansion of macro 'SFwrite' SFwrite(f, sp, n); ^~~~~~~ sfhdr.h:819:20: warning: this statement may fall through [-Wimplicit-fallthrough=] case 6 : *to++ = *fr++; \ ~~~~~~^~~~~~ sfvprintf.c:84:24: note: in expansion of macro 'MEMCPY' { if((endd-d) >= n) { MEMCPY(d,s,n); } \ ^~~~~~ sfvprintf.c:1000:3: note: in expansion of macro 'SFwrite' SFwrite(f, sp, n); ^~~~~~~ sfhdr.h:820:4: note: here case 5 : *to++ = *fr++; \ ^ sfvprintf.c:84:24: note: in expansion of macro 'MEMCPY' { if((endd-d) >= n) { MEMCPY(d,s,n); } \ ^~~~~~ sfvprintf.c:1000:3: note: in expansion of macro 'SFwrite' SFwrite(f, sp, n); ^~~~~~~ sfhdr.h:820:20: warning: this statement may fall through [-Wimplicit-fallthrough=] case 5 : *to++ = *fr++; \ ~~~~~~^~~~~~ sfvprintf.c:84:24: note: in expansion of macro 'MEMCPY' { if((endd-d) >= n) { MEMCPY(d,s,n); } \ ^~~~~~ sfvprintf.c:1000:3: note: in expansion of macro 'SFwrite' SFwrite(f, sp, n); ^~~~~~~ sfhdr.h:821:4: note: here case 4 : *to++ = *fr++; \ ^ sfvprintf.c:84:24: note: in expansion of macro 'MEMCPY' { if((endd-d) >= n) { MEMCPY(d,s,n); } \ ^~~~~~ sfvprintf.c:1000:3: note: in expansion of macro 'SFwrite' SFwrite(f, sp, n); ^~~~~~~ sfhdr.h:821:20: warning: this statement may fall through [-Wimplicit-fallthrough=] case 4 : *to++ = *fr++; \ ~~~~~~^~~~~~ sfvprintf.c:84:24: note: in expansion of macro 'MEMCPY' { if((endd-d) >= n) { MEMCPY(d,s,n); } \ ^~~~~~ sfvprintf.c:1000:3: note: in expansion of macro 'SFwrite' SFwrite(f, sp, n); ^~~~~~~ sfhdr.h:822:4: note: here case 3 : *to++ = *fr++; \ ^ sfvprintf.c:84:24: note: in expansion of macro 'MEMCPY' { if((endd-d) >= n) { MEMCPY(d,s,n); } \ ^~~~~~ sfvprintf.c:1000:3: note: in expansion of macro 'SFwrite' SFwrite(f, sp, n); ^~~~~~~ sfhdr.h:822:20: warning: this statement may fall through [-Wimplicit-fallthrough=] case 3 : *to++ = *fr++; \ ~~~~~~^~~~~~ sfvprintf.c:84:24: note: in expansion of macro 'MEMCPY' { if((endd-d) >= n) { MEMCPY(d,s,n); } \ ^~~~~~ sfvprintf.c:1000:3: note: in expansion of macro 'SFwrite' SFwrite(f, sp, n); ^~~~~~~ sfhdr.h:823:4: note: here case 2 : *to++ = *fr++; \ ^ sfvprintf.c:84:24: note: in expansion of macro 'MEMCPY' { if((endd-d) >= n) { MEMCPY(d,s,n); } \ ^~~~~~ sfvprintf.c:1000:3: note: in expansion of macro 'SFwrite' SFwrite(f, sp, n); ^~~~~~~ sfhdr.h:823:20: warning: this statement may fall through [-Wimplicit-fallthrough=] case 2 : *to++ = *fr++; \ ~~~~~~^~~~~~ sfvprintf.c:84:24: note: in expansion of macro 'MEMCPY' { if((endd-d) >= n) { MEMCPY(d,s,n); } \ ^~~~~~ sfvprintf.c:1000:3: note: in expansion of macro 'SFwrite' SFwrite(f, sp, n); ^~~~~~~ sfhdr.h:824:4: note: here case 1 : *to++ = *fr++; \ ^ sfvprintf.c:84:24: note: in expansion of macro 'MEMCPY' { if((endd-d) >= n) { MEMCPY(d,s,n); } \ ^~~~~~ sfvprintf.c:1000:3: note: in expansion of macro 'SFwrite' SFwrite(f, sp, n); ^~~~~~~ CC sfwrite.lo In file included from sfvscanf.c:14:0: sfhdr.h:155:5: warning: "_socket_peek" is not defined, evaluates to 0 [-Wundef] #if _socket_peek ^~~~~~~~~~~~ sfvscanf.c: In function 'setclass': sfvscanf.c:41:16: warning: conversion to 'char' from 'int' may alter its value [-Wconversion] accept[fmt] = yes; ^~~ sfvscanf.c:51:20: warning: conversion to 'char' from 'int' may alter its value [-Wconversion] accept[fmt] = yes; ^~~ sfvscanf.c:54:15: warning: conversion to 'char' from 'int' may alter its value [-Wconversion] accept[c] = yes; ^~~ sfvscanf.c: In function 'sfvscanf': sfvscanf.c:134:13: warning: cast discards 'const' qualifier from pointer target type [-Wcast-qual] oform = (char *) form; ^ In file included from sfvscanf.c:14:0: sfvscanf.c:106:36: warning: conversion to 'size_t {aka unsigned int}' from 'int' may change the sign of the result [-Wsign-conversion] (rs > 0 ? SFREAD(f,(void*)data,d-data) : ((f->next = d), 0)) ) ^ sfhdr.h:608:47: note: in definition of macro 'SFREAD' #define SFREAD(f,s,n) (SETLOCAL(f),sfread(f,s,n)) ^ sfvscanf.c:107:42: note: in expansion of macro 'SFEND' #define SFGETC(f,c) ((c) = (d < endd || (SFEND(f), SFBUF(f), d < endd)) ? \ ^~~~~ sfvscanf.c:144:11: note: in expansion of macro 'SFGETC' if (SFGETC(f, inp) < 0 || inp == fmt) ^~~~~~ sfvscanf.c:106:36: warning: conversion to 'size_t {aka unsigned int}' from 'int' may change the sign of the result [-Wsign-conversion] (rs > 0 ? SFREAD(f,(void*)data,d-data) : ((f->next = d), 0)) ) ^ sfhdr.h:608:47: note: in definition of macro 'SFREAD' #define SFREAD(f,s,n) (SETLOCAL(f),sfread(f,s,n)) ^ sfvscanf.c:107:42: note: in expansion of macro 'SFEND' #define SFGETC(f,c) ((c) = (d < endd || (SFEND(f), SFBUF(f), d < endd)) ? \ ^~~~~ sfvscanf.c:153:7: note: in expansion of macro 'SFGETC' if (SFGETC(f, inp) != fmt) { ^~~~~~ sfvscanf.c:188:14: warning: cast discards 'const' qualifier from pointer target type [-Wcast-qual] t_str = (char *) form; ^ In file included from sfvscanf.c:14:0: sfhdr.h:478:15: warning: cast discards 'const' qualifier from pointer target type [-Wcast-qual] ((ft->form = (char*)frm), va_copy(ft->args,ags), \ ^ sfvscanf.c:218:8: note: in expansion of macro 'FMTSET' FMTSET(ft, form, args, ^~~~~~ sfvscanf.c:228:13: warning: conversion to 'ssize_t {aka int}' from 'size_t {aka unsigned int}' may change the sign of the result [-Wsign-conversion] n_str = strlen(t_str); ^~~~~~ sfvscanf.c:232:14: warning: conversion to 'ssize_t {aka int}' from 'size_t {aka unsigned int}' may change the sign of the result [-Wsign-conversion] n_str = strlen(t_str); ^~~~~~ sfvscanf.c:190:3: warning: switch missing default case [-Wswitch-default] switch (*form++) { ^~~~~~ In file included from sfvscanf.c:14:0: sfhdr.h:478:15: warning: cast discards 'const' qualifier from pointer target type [-Wcast-qual] ((ft->form = (char*)frm), va_copy(ft->args,ags), \ ^ sfvscanf.c:261:7: note: in expansion of macro 'FMTSET' FMTSET(ft, form, args, '.', dot, 0, 0, 0, 0, ^~~~~~ sfhdr.h:478:15: warning: cast discards 'const' qualifier from pointer target type [-Wcast-qual] ((ft->form = (char*)frm), va_copy(ft->args,ags), \ ^ sfvscanf.c:325:7: note: in expansion of macro 'FMTSET' FMTSET(ft, form, args, 'I', sizeof(int), 0, 0, 0, 0, ^~~~~~ sfvscanf.c:186:2: warning: switch missing default case [-Wswitch-default] switch ((fmt = *form++)) { ^~~~~~ sfvscanf.c:383:46: warning: signed and unsigned type in conditional expression [-Wsign-compare] (flags & SFFMT_ZFLAG) ? sizeof(size_t) : -1; ^ sfvscanf.c:383:46: warning: negative integer implicitly converted to unsigned type [-Wsign-conversion] sfvscanf.c:377:10: warning: conversion of unsigned constant value to negative integer [-Wsign-conversion] size = (flags & SFFMT_LLONG) ? sizeof(Sflong_t) : ^ sfvscanf.c:387:22: warning: signed and unsigned type in conditional expression [-Wsign-compare] sizeof(double) : -1; ^ sfvscanf.c:387:22: warning: negative integer implicitly converted to unsigned type [-Wsign-conversion] sfvscanf.c:385:10: warning: conversion of unsigned constant value to negative integer [-Wsign-conversion] size = (flags & SFFMT_LDOUBLE) ? sizeof(Sfdouble_t) : ^ In file included from sfvscanf.c:14:0: sfhdr.h:478:15: warning: cast discards 'const' qualifier from pointer target type [-Wcast-qual] ((ft->form = (char*)frm), va_copy(ft->args,ags), \ ^ sfvscanf.c:402:6: note: in expansion of macro 'FMTSET' FMTSET(ft, form, args, fmt, size, flags, width, 0, base, t_str, ^~~~~~ sfvscanf.c:106:36: warning: conversion to 'size_t {aka unsigned int}' from 'int' may change the sign of the result [-Wsign-conversion] (rs > 0 ? SFREAD(f,(void*)data,d-data) : ((f->next = d), 0)) ) ^ sfhdr.h:608:47: note: in definition of macro 'SFREAD' #define SFREAD(f,s,n) (SETLOCAL(f),sfread(f,s,n)) ^ sfvscanf.c:404:6: note: in expansion of macro 'SFEND' SFEND(f); ^~~~~ sfhdr.h:622:16: warning: negative integer implicitly converted to unsigned type [-Wsign-conversion] ((f)->mode &= ~(SF_LOCK|SF_RC|SF_RV), _SFOPEN(f), 0) ) ^ sfvscanf.c:405:6: note: in expansion of macro 'SFOPEN' SFOPEN(f, 0); ^~~~~~ sfvscanf.c:437:34: warning: cast discards 'const' qualifier from pointer target type [-Wcast-qual] (*ft->eventf) (f, SF_DPOP, (void *) form, ft) < 0) ^ sfvscanf.c:445:18: warning: cast discards 'const' qualifier from pointer target type [-Wcast-qual] fm->form = (char *) form; ^ sfvscanf.c:474:6: warning: "_ast_intmax_long" is not defined, evaluates to 0 [-Wundef] #if !_ast_intmax_long ^~~~~~~~~~~~~~~~ In file included from sfvscanf.c:14:0: sfvscanf.c:106:36: warning: conversion to 'size_t {aka unsigned int}' from 'int' may change the sign of the result [-Wsign-conversion] (rs > 0 ? SFREAD(f,(void*)data,d-data) : ((f->next = d), 0)) ) ^ sfhdr.h:608:47: note: in definition of macro 'SFREAD' #define SFREAD(f,s,n) (SETLOCAL(f),sfread(f,s,n)) ^ sfvscanf.c:107:42: note: in expansion of macro 'SFEND' #define SFGETC(f,c) ((c) = (d < endd || (SFEND(f), SFBUF(f), d < endd)) ? \ ^~~~~ sfvscanf.c:497:6: note: in expansion of macro 'SFGETC' SFGETC(f, inp); ^~~~~~ sfvscanf.c:106:36: warning: conversion to 'size_t {aka unsigned int}' from 'int' may change the sign of the result [-Wsign-conversion] (rs > 0 ? SFREAD(f,(void*)data,d-data) : ((f->next = d), 0)) ) ^ sfhdr.h:608:47: note: in definition of macro 'SFREAD' #define SFREAD(f,s,n) (SETLOCAL(f),sfread(f,s,n)) ^ sfvscanf.c:107:42: note: in expansion of macro 'SFEND' #define SFGETC(f,c) ((c) = (d < endd || (SFEND(f), SFBUF(f), d < endd)) ? \ ^~~~~ sfvscanf.c:500:3: note: in expansion of macro 'SFGETC' SFGETC(f, inp); ^~~~~~ sfvscanf.c:510:14: warning: declaration of 'dot' shadows a previous local [-Wshadow] reg int dot, exponent; ^~~ sfvscanf.c:85:21: note: shadowed declaration is here int fmt, flags, dot, n_assign, v, n, n_input; ^~~ sfvscanf.c:513:16: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] if (width >= SF_MAXDIGITS) ^~ sfvscanf.c:518:16: warning: conversion to 'char' from 'int' may alter its value [-Wconversion] *val++ = inp; ^~~ sfvscanf.c:526:16: warning: conversion to 'char' from 'int' may alter its value [-Wconversion] *val++ = inp; ^~~ In file included from sfvscanf.c:14:0: sfvscanf.c:106:36: warning: conversion to 'size_t {aka unsigned int}' from 'int' may change the sign of the result [-Wsign-conversion] (rs > 0 ? SFREAD(f,(void*)data,d-data) : ((f->next = d), 0)) ) ^ sfhdr.h:608:47: note: in definition of macro 'SFREAD' #define SFREAD(f,s,n) (SETLOCAL(f),sfread(f,s,n)) ^ sfvscanf.c:107:42: note: in expansion of macro 'SFEND' #define SFGETC(f,c) ((c) = (d < endd || (SFEND(f), SFBUF(f), d < endd)) ? \ ^~~~~ sfvscanf.c:527:27: note: in expansion of macro 'SFGETC' if (--width <= 0 || SFGETC(f, inp) < 0 || ^~~~~~ sfvscanf.c:530:16: warning: conversion to 'char' from 'int' may alter its value [-Wconversion] *val++ = inp; ^~~ sfvscanf.c:534:16: warning: conversion to 'char' from 'int' may alter its value [-Wconversion] *val++ = inp; ^~~ In file included from sfvscanf.c:14:0: sfvscanf.c:106:36: warning: conversion to 'size_t {aka unsigned int}' from 'int' may change the sign of the result [-Wsign-conversion] (rs > 0 ? SFREAD(f,(void*)data,d-data) : ((f->next = d), 0)) ) ^ sfhdr.h:608:47: note: in definition of macro 'SFREAD' #define SFREAD(f,s,n) (SETLOCAL(f),sfread(f,s,n)) ^ sfvscanf.c:107:42: note: in expansion of macro 'SFEND' #define SFGETC(f,c) ((c) = (d < endd || (SFEND(f), SFBUF(f), d < endd)) ? \ ^~~~~ sfvscanf.c:538:30: note: in expansion of macro 'SFGETC' } while (--width > 0 && SFGETC(f, inp) >= 0); ^~~~~~ sfvscanf.c:106:36: warning: conversion to 'size_t {aka unsigned int}' from 'int' may change the sign of the result [-Wsign-conversion] (rs > 0 ? SFREAD(f,(void*)data,d-data) : ((f->next = d), 0)) ) ^ sfhdr.h:608:47: note: in definition of macro 'SFREAD' #define SFREAD(f,s,n) (SETLOCAL(f),sfread(f,s,n)) ^ sfvscanf.c:107:42: note: in expansion of macro 'SFEND' #define SFGETC(f,c) ((c) = (d < endd || (SFEND(f), SFBUF(f), d < endd)) ? \ ^~~~~ sfvscanf.c:573:25: note: in expansion of macro 'SFGETC' while (--width > 0 && SFGETC(f, inp) >= 0) ^~~~~~ sfvscanf.c:106:36: warning: conversion to 'size_t {aka unsigned int}' from 'int' may change the sign of the result [-Wsign-conversion] (rs > 0 ? SFREAD(f,(void*)data,d-data) : ((f->next = d), 0)) ) ^ sfhdr.h:608:47: note: in definition of macro 'SFREAD' #define SFREAD(f,s,n) (SETLOCAL(f),sfread(f,s,n)) ^ sfvscanf.c:107:42: note: in expansion of macro 'SFEND' #define SFGETC(f,c) ((c) = (d < endd || (SFEND(f), SFBUF(f), d < endd)) ? \ ^~~~~ sfvscanf.c:587:11: note: in expansion of macro 'SFGETC' if (SFGETC(f, inp) >= 0) { ^~~~~~ sfvscanf.c:106:36: warning: conversion to 'size_t {aka unsigned int}' from 'int' may change the sign of the result [-Wsign-conversion] (rs > 0 ? SFREAD(f,(void*)data,d-data) : ((f->next = d), 0)) ) ^ sfhdr.h:608:47: note: in definition of macro 'SFREAD' #define SFREAD(f,s,n) (SETLOCAL(f),sfread(f,s,n)) ^ sfvscanf.c:107:42: note: in expansion of macro 'SFEND' #define SFGETC(f,c) ((c) = (d < endd || (SFEND(f), SFBUF(f), d < endd)) ? \ ^~~~~ sfvscanf.c:606:11: note: in expansion of macro 'SFGETC' if (SFGETC(f, inp) >= 0 && ^~~~~~ sfvscanf.c:106:36: warning: conversion to 'size_t {aka unsigned int}' from 'int' may change the sign of the result [-Wsign-conversion] (rs > 0 ? SFREAD(f,(void*)data,d-data) : ((f->next = d), 0)) ) ^ sfhdr.h:608:47: note: in definition of macro 'SFREAD' #define SFREAD(f,s,n) (SETLOCAL(f),sfread(f,s,n)) ^ sfvscanf.c:107:42: note: in expansion of macro 'SFEND' #define SFGETC(f,c) ((c) = (d < endd || (SFEND(f), SFBUF(f), d < endd)) ? \ ^~~~~ sfvscanf.c:608:4: note: in expansion of macro 'SFGETC' SFGETC(f, inp); ^~~~~~ sfvscanf.c:620:36: warning: conversion to 'long long unsigned int' from 'int' may change the sign of the result [-Wsign-conversion] (argv.lu << 3) + (argv.lu << 1) + (inp - '0'); ^ In file included from sfvscanf.c:14:0: sfvscanf.c:106:36: warning: conversion to 'size_t {aka unsigned int}' from 'int' may change the sign of the result [-Wsign-conversion] (rs > 0 ? SFREAD(f,(void*)data,d-data) : ((f->next = d), 0)) ) ^ sfhdr.h:608:47: note: in definition of macro 'SFREAD' #define SFREAD(f,s,n) (SETLOCAL(f),sfread(f,s,n)) ^ sfvscanf.c:107:42: note: in expansion of macro 'SFEND' #define SFGETC(f,c) ((c) = (d < endd || (SFEND(f), SFBUF(f), d < endd)) ? \ ^~~~~ sfvscanf.c:621:27: note: in expansion of macro 'SFGETC' } while (--width > 0 && SFGETC(f, inp) >= '0' ^~~~~~ sfvscanf.c:106:36: warning: conversion to 'size_t {aka unsigned int}' from 'int' may change the sign of the result [-Wsign-conversion] (rs > 0 ? SFREAD(f,(void*)data,d-data) : ((f->next = d), 0)) ) ^ sfhdr.h:608:47: note: in definition of macro 'SFREAD' #define SFREAD(f,s,n) (SETLOCAL(f),sfread(f,s,n)) ^ sfvscanf.c:107:42: note: in expansion of macro 'SFEND' #define SFGETC(f,c) ((c) = (d < endd || (SFEND(f), SFBUF(f), d < endd)) ? \ ^~~~~ sfvscanf.c:631:4: note: in expansion of macro 'SFGETC' SFGETC(f, inp) >= 0 && sp[inp] < base) ^~~~~~ sfvscanf.c:651:33: warning: conversion to 'long long unsigned int' from 'char' may change the sign of the result [-Wsign-conversion] argv.lu = (argv.lu << shift) + sp[inp]; ^ In file included from sfvscanf.c:14:0: sfvscanf.c:106:36: warning: conversion to 'size_t {aka unsigned int}' from 'int' may change the sign of the result [-Wsign-conversion] (rs > 0 ? SFREAD(f,(void*)data,d-data) : ((f->next = d), 0)) ) ^ sfhdr.h:608:47: note: in definition of macro 'SFREAD' #define SFREAD(f,s,n) (SETLOCAL(f),sfread(f,s,n)) ^ sfvscanf.c:107:42: note: in expansion of macro 'SFEND' #define SFGETC(f,c) ((c) = (d < endd || (SFEND(f), SFBUF(f), d < endd)) ? \ ^~~~~ sfvscanf.c:653:9: note: in expansion of macro 'SFGETC' SFGETC(f, inp) >= 0 && sp[inp] < base); ^~~~~~ sfvscanf.c:656:23: warning: conversion to 'long long unsigned int' from 'int' may change the sign of the result [-Wsign-conversion] argv.lu = (argv.lu * base) + sp[inp]; ^ sfvscanf.c:656:31: warning: conversion to 'long long unsigned int' from 'char' may change the sign of the result [-Wsign-conversion] argv.lu = (argv.lu * base) + sp[inp]; ^ In file included from sfvscanf.c:14:0: sfvscanf.c:106:36: warning: conversion to 'size_t {aka unsigned int}' from 'int' may change the sign of the result [-Wsign-conversion] (rs > 0 ? SFREAD(f,(void*)data,d-data) : ((f->next = d), 0)) ) ^ sfhdr.h:608:47: note: in definition of macro 'SFREAD' #define SFREAD(f,s,n) (SETLOCAL(f),sfread(f,s,n)) ^ sfvscanf.c:107:42: note: in expansion of macro 'SFEND' #define SFGETC(f,c) ((c) = (d < endd || (SFEND(f), SFBUF(f), d < endd)) ? \ ^~~~~ sfvscanf.c:658:9: note: in expansion of macro 'SFGETC' SFGETC(f, inp) >= 0 && sp[inp] < base); ^~~~~~ sfvscanf.c:669:5: warning: "_more_void_int" is not defined, evaluates to 0 [-Wundef] #if _more_void_int ^~~~~~~~~~~~~~ sfvscanf.c:674:6: warning: "_ast_intmax_long" is not defined, evaluates to 0 [-Wundef] #if !_ast_intmax_long ^~~~~~~~~~~~~~~~ sfvscanf.c:718:16: warning: conversion to 'char' from 'int' may alter its value [-Wconversion] *argv.s++ = inp; ^~~ In file included from sfvscanf.c:14:0: sfvscanf.c:106:36: warning: conversion to 'size_t {aka unsigned int}' from 'int' may change the sign of the result [-Wsign-conversion] (rs > 0 ? SFREAD(f,(void*)data,d-data) : ((f->next = d), 0)) ) ^ sfhdr.h:608:47: note: in definition of macro 'SFREAD' #define SFREAD(f,s,n) (SETLOCAL(f),sfread(f,s,n)) ^ sfvscanf.c:107:42: note: in expansion of macro 'SFEND' #define SFGETC(f,c) ((c) = (d < endd || (SFEND(f), SFBUF(f), d < endd)) ? \ ^~~~~ sfvscanf.c:719:27: note: in expansion of macro 'SFGETC' } while (--width > 0 && SFGETC(f, inp) >= 0); ^~~~~~ sfvscanf.c:723:16: warning: conversion to 'char' from 'int' may alter its value [-Wconversion] *argv.s++ = inp; ^~~ In file included from sfvscanf.c:14:0: sfvscanf.c:106:36: warning: conversion to 'size_t {aka unsigned int}' from 'int' may change the sign of the result [-Wsign-conversion] (rs > 0 ? SFREAD(f,(void*)data,d-data) : ((f->next = d), 0)) ) ^ sfhdr.h:608:47: note: in definition of macro 'SFREAD' #define SFREAD(f,s,n) (SETLOCAL(f),sfread(f,s,n)) ^ sfvscanf.c:107:42: note: in expansion of macro 'SFEND' #define SFGETC(f,c) ((c) = (d < endd || (SFEND(f), SFBUF(f), d < endd)) ? \ ^~~~~ sfvscanf.c:724:27: note: in expansion of macro 'SFGETC' } while (--width > 0 && SFGETC(f, inp) >= 0); ^~~~~~ sfvscanf.c:726:19: warning: cast discards 'const' qualifier from pointer target type [-Wcast-qual] form = setclass((char *) form, accept); ^ sfvscanf.c:737:16: warning: conversion to 'char' from 'int' may alter its value [-Wconversion] *argv.s++ = inp; ^~~ In file included from sfvscanf.c:14:0: sfvscanf.c:106:36: warning: conversion to 'size_t {aka unsigned int}' from 'int' may change the sign of the result [-Wsign-conversion] (rs > 0 ? SFREAD(f,(void*)data,d-data) : ((f->next = d), 0)) ) ^ sfhdr.h:608:47: note: in definition of macro 'SFREAD' #define SFREAD(f,s,n) (SETLOCAL(f),sfread(f,s,n)) ^ sfvscanf.c:107:42: note: in expansion of macro 'SFEND' #define SFGETC(f,c) ((c) = (d < endd || (SFEND(f), SFBUF(f), d < endd)) ? \ ^~~~~ sfvscanf.c:738:27: note: in expansion of macro 'SFGETC' } while (--width > 0 && SFGETC(f, inp) >= 0); ^~~~~~ sfvscanf.c:761:42: warning: cast discards 'const' qualifier from pointer target type [-Wcast-qual] else if ((*fm->eventf) (f, SF_DPOP, (void *) form, ft) < 0) ^ In file included from sfvscanf.c:14:0: sfvscanf.c:106:36: warning: conversion to 'size_t {aka unsigned int}' from 'int' may change the sign of the result [-Wsign-conversion] (rs > 0 ? SFREAD(f,(void*)data,d-data) : ((f->next = d), 0)) ) ^ sfhdr.h:608:47: note: in definition of macro 'SFREAD' #define SFREAD(f,s,n) (SETLOCAL(f),sfread(f,s,n)) ^ sfvscanf.c:789:5: note: in expansion of macro 'SFEND' SFEND(f); ^~~~~ sfhdr.h:622:16: warning: negative integer implicitly converted to unsigned type [-Wsign-conversion] ((f)->mode &= ~(SF_LOCK|SF_RC|SF_RV), _SFOPEN(f), 0) ) ^ sfvscanf.c:790:5: note: in expansion of macro 'SFOPEN' SFOPEN(f, 0); ^~~~~~ In file included from sfwr.c:14:0: sfhdr.h:155:5: warning: "_socket_peek" is not defined, evaluates to 0 [-Wundef] #if _socket_peek ^~~~~~~~~~~~ sfwr.c: In function 'sfoutput': sfwr.c:33:10: warning: conversion to 'ssize_t {aka int}' from 'size_t {aka unsigned int}' may change the sign of the result [-Wsign-conversion] s = n = 0; ^ sfwr.c:38:15: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast] while (((ulong) sp) % sizeof(int)) { ^ sfwr.c:67:5: warning: conversion to 'size_t {aka unsigned int}' from 'ssize_t {aka int}' may change the sign of the result [-Wsign-conversion] n -= _Sfpage; ^~ sfwr.c:75:7: warning: conversion to 'size_t {aka unsigned int}' from 'ssize_t {aka int}' may change the sign of the result [-Wsign-conversion] n = s = 0; ^ sfwr.c:77:37: warning: conversion to 'size_t {aka unsigned int}' from 'int' may change the sign of the result [-Wsign-conversion] if ((wr = write(f->file, wbuf, buf - wbuf)) > 0) { ^~~ sfwr.c:79:14: warning: conversion to 'short unsigned int' from 'int' may alter its value [-Wconversion] f->bits &= ~SF_HOLE; ^ sfwr.c:92:8: warning: conversion to 'size_t {aka unsigned int}' from 'ssize_t {aka int}' may change the sign of the result [-Wsign-conversion] n -= s; ^~ sfwr.c:99:5: warning: conversion to 'size_t {aka unsigned int}' from 'ssize_t {aka int}' may change the sign of the result [-Wsign-conversion] n -= s; ^~ In file included from sfwr.c:14:0: sfwr.c: In function 'sfwr': sfhdr.h:594:62: warning: negative integer implicitly converted to unsigned type [-Wsign-conversion] #define GETLOCAL(f,v) ((v) = ((f)->mode&SF_LOCAL), (f)->mode &= ~SF_LOCAL, (void)(v)) ^ sfwr.c:116:5: note: in expansion of macro 'GETLOCAL' GETLOCAL(f, local); ^~~~~~~~ sfwr.c:129:14: warning: conversion to 'short unsigned int' from 'int' may alter its value [-Wconversion] f->flags &= ~(SF_EOF | SF_ERROR); ^ sfwr.c:133:12: warning: conversion to 'size_t {aka unsigned int}' from 'int' may change the sign of the result [-Wsign-conversion] w = n + (f->next - f->data); ^ sfwr.c:133:10: warning: conversion to 'ssize_t {aka int}' from 'size_t {aka unsigned int}' may change the sign of the result [-Wsign-conversion] w = n + (f->next - f->data); ^ sfwr.c:140:36: warning: conversion to 'ssize_t {aka int}' from 'size_t {aka unsigned int}' may change the sign of the result [-Wsign-conversion] if ((rv = _sfexcept(f, SF_WRITE, n, dc)) > 0) ^ sfwr.c:141:11: warning: conversion to 'size_t {aka unsigned int}' from 'int' may change the sign of the result [-Wsign-conversion] n = rv; ^~ In file included from sfwr.c:14:0: sfhdr.h:646:26: warning: conversion to 'short unsigned int' from 'int' may alter its value [-Wconversion] if(!dcdown) f->bits &= ~SF_DCDOWN; \ ^ sfwr.c:163:3: note: in expansion of macro 'SFDCWR' SFDCWR(f, buf, n, dc, w); ^~~~~~ sfwr.c:165:7: warning: conversion to 'ssize_t {aka int}' from 'size_t {aka unsigned int}' may change the sign of the result [-Wsign-conversion] w = n; ^ sfwr.c:171:24: warning: cast discards 'const' qualifier from pointer target type [-Wcast-qual] if ((w = sfoutput(f, (char *) buf, n)) <= 0) ^ sfwr.c:175:27: warning: cast discards 'const' qualifier from pointer target type [-Wcast-qual] if ((w = write(f->file, (char *) buf, n)) > 0) ^ sfwr.c:176:18: warning: conversion to 'short unsigned int' from 'int' may alter its value [-Wconversion] f->bits &= ~SF_HOLE; ^ sfwr.c:198:2: warning: switch missing default case [-Wswitch-default] switch (_sfexcept(f, SF_WRITE, w, dc)) { ^~~~~~ In file included from sfwrite.c:14:0: sfhdr.h:155:5: warning: "_socket_peek" is not defined, evaluates to 0 [-Wundef] #if _socket_peek ^~~~~~~~~~~~ In file included from sfwrite.c:14:0: sfwrite.c: In function 'sfwrite': sfhdr.h:594:62: warning: negative integer implicitly converted to unsigned type [-Wsign-conversion] #define GETLOCAL(f,v) ((v) = ((f)->mode&SF_LOCAL), (f)->mode &= ~SF_LOCAL, (void)(v)) ^ sfwrite.c:34:5: note: in expansion of macro 'GETLOCAL' GETLOCAL(f, local); ^~~~~~~~ sfwrite.c:44:6: warning: cast discards 'const' qualifier from pointer target type [-Wcast-qual] if ((uchar *) buf != f->next && ^ sfwrite.c:45:36: warning: cast discards 'const' qualifier from pointer target type [-Wcast-qual] (!f->rsrv || f->rsrv->data != (uchar *) buf)) ^ sfwrite.c:48:10: warning: negative integer implicitly converted to unsigned type [-Wsign-conversion] f->mode &= ~SF_PEEK; ^~ sfwrite.c:51:11: warning: declaration of 'buf' shadows a parameter [-Wshadow] char buf[16]; ^~~ sfwrite.c:26:46: note: shadowed declaration is here ssize_t sfwrite(reg Sfio_t * f, const void * buf, reg size_t n) ^~~ sfwrite.c:54:15: warning: conversion to 'ssize_t {aka int}' from 'size_t {aka unsigned int}' may change the sign of the result [-Wsign-conversion] for (w = n; w > 0;) { ^ sfwrite.c:55:15: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] if ((r = w) > sizeof(buf)) ^ sfwrite.c:57:31: warning: conversion to 'size_t {aka unsigned int}' from 'ssize_t {aka int}' may change the sign of the result [-Wsign-conversion] if ((r = read(f->file, buf, r)) <= 0) { ^ sfwrite.c:58:9: warning: conversion to 'size_t {aka unsigned int}' from 'ssize_t {aka int}' may change the sign of the result [-Wsign-conversion] n -= w; ^~ sfwrite.c:64:14: warning: negative integer implicitly converted to unsigned type [-Wsign-conversion] f->mode &= ~SF_PKRD; ^~ sfwrite.c:73:16: warning: cast discards 'const' qualifier from pointer target type [-Wcast-qual] s = begs = (uchar *) buf; ^ sfwrite.c:74:21: warning: negative integer implicitly converted to unsigned type [-Wsign-conversion] for (;; f->mode &= ~SF_LOCK) { /* check stream mode */ ^~ In file included from sfwrite.c:14:0: sfhdr.h:614:32: warning: conversion to 'unsigned int' from 'int' may change the sign of the result [-Wsign-conversion] #define SFMODE(f,l) ((f)->mode & ~(SF_RV|SF_RC|((l) ? SF_LOCK : 0)) ) ^ sfwrite.c:75:6: note: in expansion of macro 'SFMODE' if (SFMODE(f, local) != SF_WRITE ^~~~~~ sfwrite.c:89:8: warning: conversion to 'size_t {aka unsigned int}' from 'ssize_t {aka int}' may change the sign of the result [-Wsign-conversion] n -= w; ^~ In file included from sfwrite.c:14:0: sfwrite.c:96:23: warning: conversion to 'size_t {aka unsigned int}' from 'ssize_t {aka int}' may change the sign of the result [-Wsign-conversion] (void) SFWR(f, s, n - w, f->disc); ^ sfhdr.h:601:52: note: in definition of macro 'SFWR' #define SFWR(f,b,n,d) (SETLOCAL(f),sfwr(f,(void*)b,n,d)) ^ sfwrite.c:115:25: warning: conversion to 'size_t {aka unsigned int}' from 'ssize_t {aka int}' may change the sign of the result [-Wsign-conversion] memcpy(f->next, s, w); ^ sfwrite.c:120:9: warning: conversion to 'size_t {aka unsigned int}' from 'ssize_t {aka int}' may change the sign of the result [-Wsign-conversion] if ((n -= w) <= 0) ^~ sfwrite.c:130:21: warning: conversion to 'size_t {aka unsigned int}' from 'int' may change the sign of the result [-Wsign-conversion] if ((ssize_t) (n = f->next - f->data) > (w = s - begs)) ^ sfwrite.c:131:10: warning: conversion to 'size_t {aka unsigned int}' from 'ssize_t {aka int}' may change the sign of the result [-Wsign-conversion] n = w; ^ In file included from sfwrite.c:14:0: sfhdr.h:622:16: warning: negative integer implicitly converted to unsigned type [-Wsign-conversion] ((f)->mode &= ~(SF_LOCK|SF_RC|SF_RV), _SFOPEN(f), 0) ) ^ sfwrite.c:144:5: note: in expansion of macro 'SFOPEN' SFOPEN(f, local); ^~~~~~ CCLD libsfio_C.la make[7]: Leaving directory '/jenkins/jobs/oi-userland/workspace/components/image/graphviz/build/i86/lib/sfio' make[6]: Leaving directory '/jenkins/jobs/oi-userland/workspace/components/image/graphviz/build/i86/lib/sfio' Making all in vmalloc make[6]: Entering directory '/jenkins/jobs/oi-userland/workspace/components/image/graphviz/build/i86/lib/vmalloc' CC vmbest.lo CC vmdcheap.lo CC vmclear.lo CC malloc.lo CC vmdebug.lo CC vmdisc.lo CC vmclose.lo CC vmlast.lo In file included from vmdisc.c:14:0: vmhdr.h:150:5: warning: "_long_double" is not defined, evaluates to 0 [-Wundef] #if _long_double ^~~~~~~~~~~~ In file included from vmclose.c:14:0: vmhdr.h:150:5: warning: "_long_double" is not defined, evaluates to 0 [-Wundef] #if _long_double ^~~~~~~~~~~~ In file included from vmdebug.c:22:0: vmhdr.h:150:5: warning: "_long_double" is not defined, evaluates to 0 [-Wundef] #if _long_double ^~~~~~~~~~~~ In file included from vmclear.c:14:0: vmhdr.h:150:5: warning: "_long_double" is not defined, evaluates to 0 [-Wundef] #if _long_double ^~~~~~~~~~~~ vmdebug.c: In function 'vmdbwarn': vmdebug.c:65:20: warning: conversion to 'size_t {aka unsigned int}' from 'int' may change the sign of the result [-Wsign-conversion] write(2, mesg, n); ^ In file included from vmdebug.c:22:0: vmdebug.c: In function 'dbwarn': vmhdr.h:346:38: warning: negative integer implicitly converted to unsigned type [-Wsign-conversion] #define DBBSIZE(d) (SIZE(DBBLOCK(d)) & ~BITS) ^ vmhdr.h:61:42: note: in definition of macro 'VLONG' #define VLONG(addr) ((Vmulong_t)((char*)(addr) - (char*)0) ) ^~~~ vmdebug.c:143:9: note: in expansion of macro 'INT2PTR' (INT2PTR(char *, DBLINE(data))), ^~~~~~~ vmhdr.h:350:53: note: in expansion of macro 'DBBSIZE' #define DBLN(d) (((Head_t*)((Vmuchar_t*)DBBLOCK(d)+DBBSIZE(d)))->head.size.line ) ^~~~~~~ vmhdr.h:351:20: note: in expansion of macro 'DBLN' #define DBLINE(d) (DBLN(d) < 0 ? -DBLN(d) : DBLN(d)) ^~~~ vmdebug.c:143:25: note: in expansion of macro 'DBLINE' (INT2PTR(char *, DBLINE(data))), ^~~~~~ vmhdr.h:346:38: warning: negative integer implicitly converted to unsigned type [-Wsign-conversion] #define DBBSIZE(d) (SIZE(DBBLOCK(d)) & ~BITS) ^ vmhdr.h:61:42: note: in definition of macro 'VLONG' #define VLONG(addr) ((Vmulong_t)((char*)(addr) - (char*)0) ) ^~~~ vmdebug.c:143:9: note: in expansion of macro 'INT2PTR' (INT2PTR(char *, DBLINE(data))), ^~~~~~~ vmhdr.h:350:53: note: in expansion of macro 'DBBSIZE' #define DBLN(d) (((Head_t*)((Vmuchar_t*)DBBLOCK(d)+DBBSIZE(d)))->head.size.line ) ^~~~~~~ vmhdr.h:351:35: note: in expansion of macro 'DBLN' #define DBLINE(d) (DBLN(d) < 0 ? -DBLN(d) : DBLN(d)) ^~~~ vmdebug.c:143:25: note: in expansion of macro 'DBLINE' (INT2PTR(char *, DBLINE(data))), ^~~~~~ vmhdr.h:346:38: warning: negative integer implicitly converted to unsigned type [-Wsign-conversion] #define DBBSIZE(d) (SIZE(DBBLOCK(d)) & ~BITS) ^ vmhdr.h:61:42: note: in definition of macro 'VLONG' #define VLONG(addr) ((Vmulong_t)((char*)(addr) - (char*)0) ) ^~~~ vmdebug.c:143:9: note: in expansion of macro 'INT2PTR' (INT2PTR(char *, DBLINE(data))), ^~~~~~~ vmhdr.h:350:53: note: in expansion of macro 'DBBSIZE' #define DBLN(d) (((Head_t*)((Vmuchar_t*)DBBLOCK(d)+DBBSIZE(d)))->head.size.line ) ^~~~~~~ vmhdr.h:351:45: note: in expansion of macro 'DBLN' #define DBLINE(d) (DBLN(d) < 0 ? -DBLN(d) : DBLN(d)) ^~~~ vmdebug.c:143:25: note: in expansion of macro 'DBLINE' (INT2PTR(char *, DBLINE(data))), ^~~~~~ vmclear.c: In function 'vmclear': vmclear.c:49:41: warning: conversion to 'unsigned int' from 'int' may change the sign of the result [-Wsign-conversion] size = seg->baddr - ((Vmuchar_t *) tp) - 2 * sizeof(Head_t); ^ In file included from vmdebug.c:22:0: vmdebug.c: In function 'dbsetinfo': vmhdr.h:346:38: warning: negative integer implicitly converted to unsigned type [-Wsign-conversion] #define DBBSIZE(d) (SIZE(DBBLOCK(d)) & ~BITS) ^ vmhdr.h:350:53: note: in expansion of macro 'DBBSIZE' #define DBLN(d) (((Head_t*)((Vmuchar_t*)DBBLOCK(d)+DBBSIZE(d)))->head.size.line ) ^~~~~~~ vmhdr.h:358:42: note: in expansion of macro 'DBLN' #define DBSETFL(d,f,l) (DBFILE(d) = (f), DBLN(d) = (f) ? (l) : 1) ^~~~ vmdebug.c:216:5: note: in expansion of macro 'DBSETFL' DBSETFL(data, (db ? db->file : NIL(char *)), line); ^~~~~~~ vmhdr.h:346:38: warning: negative integer implicitly converted to unsigned type [-Wsign-conversion] #define DBBSIZE(d) (SIZE(DBBLOCK(d)) & ~BITS) ^ vmhdr.h:350:53: note: in expansion of macro 'DBBSIZE' #define DBLN(d) (((Head_t*)((Vmuchar_t*)DBBLOCK(d)+DBBSIZE(d)))->head.size.line ) ^~~~~~~ vmhdr.h:370:66: note: in expansion of macro 'DBLN' (((begp) = (Vmuchar_t*)(d)+DBSIZE(d)), ((endp) = (Vmuchar_t*)(&DBLN(d))) ) ^~~~ vmdebug.c:223:5: note: in expansion of macro 'DBTAIL' DBTAIL(data, begp, endp); ^~~~~~ vmdebug.c: In function 'dbaddr': vmdebug.c:280:52: warning: negative integer implicitly converted to unsigned type [-Wsign-conversion] b = (Block_t *) ((Vmuchar_t *) DATA(b) + (SIZE(b) & ~BITS)); ^ vmdebug.c: In function 'dbsize': vmdebug.c:314:56: warning: negative integer implicitly converted to unsigned type [-Wsign-conversion] b = (Block_t *) ((Vmuchar_t *) DATA(b) + (SIZE(b) & ~BITS)); ^ In file included from vmdebug.c:22:0: vmdebug.c: In function 'dbresize': vmhdr.h:346:38: warning: negative integer implicitly converted to unsigned type [-Wsign-conversion] #define DBBSIZE(d) (SIZE(DBBLOCK(d)) & ~BITS) ^ vmhdr.h:350:53: note: in expansion of macro 'DBBSIZE' #define DBLN(d) (((Head_t*)((Vmuchar_t*)DBBLOCK(d)+DBBSIZE(d)))->head.size.line ) ^~~~~~~ vmhdr.h:351:20: note: in expansion of macro 'DBLN' #define DBLINE(d) (DBLN(d) < 0 ? -DBLN(d) : DBLN(d)) ^~~~ vmdebug.c:473:15: note: in expansion of macro 'DBLINE' oldline = DBLINE(addr); ^~~~~~ vmhdr.h:346:38: warning: negative integer implicitly converted to unsigned type [-Wsign-conversion] #define DBBSIZE(d) (SIZE(DBBLOCK(d)) & ~BITS) ^ vmhdr.h:350:53: note: in expansion of macro 'DBBSIZE' #define DBLN(d) (((Head_t*)((Vmuchar_t*)DBBLOCK(d)+DBBSIZE(d)))->head.size.line ) ^~~~~~~ vmhdr.h:351:35: note: in expansion of macro 'DBLN' #define DBLINE(d) (DBLN(d) < 0 ? -DBLN(d) : DBLN(d)) ^~~~ vmdebug.c:473:15: note: in expansion of macro 'DBLINE' oldline = DBLINE(addr); ^~~~~~ vmhdr.h:346:38: warning: negative integer implicitly converted to unsigned type [-Wsign-conversion] #define DBBSIZE(d) (SIZE(DBBLOCK(d)) & ~BITS) ^ vmhdr.h:350:53: note: in expansion of macro 'DBBSIZE' #define DBLN(d) (((Head_t*)((Vmuchar_t*)DBBLOCK(d)+DBBSIZE(d)))->head.size.line ) ^~~~~~~ vmhdr.h:351:45: note: in expansion of macro 'DBLN' #define DBLINE(d) (DBLN(d) < 0 ? -DBLN(d) : DBLN(d)) ^~~~ vmdebug.c:473:15: note: in expansion of macro 'DBLINE' oldline = DBLINE(addr); ^~~~~~ In file included from malloc.c:14:0: vmhdr.h:150:5: warning: "_long_double" is not defined, evaluates to 0 [-Wundef] #if _long_double ^~~~~~~~~~~~ vmdebug.c: In function 'vmdbcheck': vmhdr.h:346:38: warning: negative integer implicitly converted to unsigned type [-Wsign-conversion] #define DBBSIZE(d) (SIZE(DBBLOCK(d)) & ~BITS) ^ vmhdr.h:350:53: note: in expansion of macro 'DBBSIZE' #define DBLN(d) (((Head_t*)((Vmuchar_t*)DBBLOCK(d)+DBBSIZE(d)))->head.size.line ) ^~~~~~~ vmhdr.h:362:21: note: in expansion of macro 'DBLN' #define DBISBAD(d) (DBLN(d) <= 0) ^~~~ vmdebug.c:537:10: note: in expansion of macro 'DBISBAD' if (DBISBAD(data)) { /* seen this before */ ^~~~~~~ vmhdr.h:346:38: warning: negative integer implicitly converted to unsigned type [-Wsign-conversion] #define DBBSIZE(d) (SIZE(DBBLOCK(d)) & ~BITS) ^ vmhdr.h:350:53: note: in expansion of macro 'DBBSIZE' #define DBLN(d) (((Head_t*)((Vmuchar_t*)DBBLOCK(d)+DBBSIZE(d)))->head.size.line ) ^~~~~~~ vmhdr.h:370:66: note: in expansion of macro 'DBLN' (((begp) = (Vmuchar_t*)(d)+DBSIZE(d)), ((endp) = (Vmuchar_t*)(&DBLN(d))) ) ^~~~ vmdebug.c:547:6: note: in expansion of macro 'DBTAIL' DBTAIL(data, begp, endp); ^~~~~~ vmhdr.h:346:38: warning: negative integer implicitly converted to unsigned type [-Wsign-conversion] #define DBBSIZE(d) (SIZE(DBBLOCK(d)) & ~BITS) ^ vmhdr.h:350:53: note: in expansion of macro 'DBBSIZE' #define DBLN(d) (((Head_t*)((Vmuchar_t*)DBBLOCK(d)+DBBSIZE(d)))->head.size.line ) ^~~~~~~ vmhdr.h:361:22: note: in expansion of macro 'DBLN' #define DBSETBAD(d) (DBLN(d) > 0 ? (DBLN(d) = -DBLN(d)) : -1) ^~~~ vmdebug.c:553:3: note: in expansion of macro 'DBSETBAD' DBSETBAD(data); ^~~~~~~~ vmhdr.h:346:38: warning: negative integer implicitly converted to unsigned type [-Wsign-conversion] #define DBBSIZE(d) (SIZE(DBBLOCK(d)) & ~BITS) ^ vmhdr.h:350:53: note: in expansion of macro 'DBBSIZE' #define DBLN(d) (((Head_t*)((Vmuchar_t*)DBBLOCK(d)+DBBSIZE(d)))->head.size.line ) ^~~~~~~ vmhdr.h:361:37: note: in expansion of macro 'DBLN' #define DBSETBAD(d) (DBLN(d) > 0 ? (DBLN(d) = -DBLN(d)) : -1) ^~~~ vmdebug.c:553:3: note: in expansion of macro 'DBSETBAD' DBSETBAD(data); ^~~~~~~~ vmhdr.h:346:38: warning: negative integer implicitly converted to unsigned type [-Wsign-conversion] #define DBBSIZE(d) (SIZE(DBBLOCK(d)) & ~BITS) ^ vmhdr.h:350:53: note: in expansion of macro 'DBBSIZE' #define DBLN(d) (((Head_t*)((Vmuchar_t*)DBBLOCK(d)+DBBSIZE(d)))->head.size.line ) ^~~~~~~ vmhdr.h:361:48: note: in expansion of macro 'DBLN' #define DBSETBAD(d) (DBLN(d) > 0 ? (DBLN(d) = -DBLN(d)) : -1) ^~~~ vmdebug.c:553:3: note: in expansion of macro 'DBSETBAD' DBSETBAD(data); ^~~~~~~~ vmdebug.c:559:18: warning: negative integer implicitly converted to unsigned type [-Wsign-conversion] (SIZE(b) & ~BITS)); ^ malloc.c:16:5: warning: "_std_malloc" is not defined, evaluates to 0 [-Wundef] #if _std_malloc || _BLD_INSTRUMENT_ || cray ^~~~~~~~~~~ malloc.c:16:20: warning: "_BLD_INSTRUMENT_" is not defined, evaluates to 0 [-Wundef] #if _std_malloc || _BLD_INSTRUMENT_ || cray ^~~~~~~~~~~~~~~~ malloc.c:16:40: warning: "cray" is not defined, evaluates to 0 [-Wundef] #if _std_malloc || _BLD_INSTRUMENT_ || cray ^~~~ malloc.c:36:5: warning: "_hdr_stat" is not defined, evaluates to 0 [-Wundef] #if _hdr_stat ^~~~~~~~~ malloc.c: In function 'atou': malloc.c:66:16: warning: conversion to 'Vmulong_t {aka long long unsigned int}' from 'int' may change the sign of the result [-Wsign-conversion] v = (v << 4) + (*s - '0'); ^ malloc.c:68:16: warning: conversion to 'Vmulong_t {aka long long unsigned int}' from 'int' may change the sign of the result [-Wsign-conversion] v = (v << 4) + (*s - 'a') + 10; ^ malloc.c:70:16: warning: conversion to 'Vmulong_t {aka long long unsigned int}' from 'int' may change the sign of the result [-Wsign-conversion] v = (v << 4) + (*s - 'A') + 10; ^ malloc.c:77:14: warning: conversion to 'Vmulong_t {aka long long unsigned int}' from 'int' may change the sign of the result [-Wsign-conversion] v = v * 10 + (*s - '0'); ^ malloc.c: In function 'insertpid': malloc.c:110:9: warning: conversion to 'char' from 'int' may alter its value [-Wconversion] *--s = '0' + pid % 10; ^~~ malloc.c: In function 'vmflinit': In file included from vmdcheap.c:14:0: vmhdr.h:150:5: warning: "_long_double" is not defined, evaluates to 0 [-Wundef] #if _long_double ^~~~~~~~~~~~ malloc.c:197:14: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast] vmdbwatch((void *) addr); ^ malloc.c: At top level: malloc.c:273:6: warning: no previous prototype for 'cfree' [-Wmissing-prototypes] void cfree(reg void * data) ^~~~~ In file included from vmbest.c:14:0: vmhdr.h:150:5: warning: "_long_double" is not defined, evaluates to 0 [-Wundef] #if _long_double ^~~~~~~~~~~~ malloc.c:304:5: warning: "_lib_mallopt" is not defined, evaluates to 0 [-Wundef] #if _lib_mallopt ^~~~~~~~~~~~ malloc.c:312:5: warning: "_lib_mallinfo" is not defined, evaluates to 0 [-Wundef] #if _lib_mallinfo ^~~~~~~~~~~~~ malloc.c:330:5: warning: "_lib_mstats" is not defined, evaluates to 0 [-Wundef] #if _lib_mstats ^~~~~~~~~~~ vmbest.c: In function 'bestreclaim': vmbest.c:368:16: warning: negative integer implicitly converted to unsigned type [-Wsign-conversion] size = (size & ~BITS) + s + sizeof(Head_t); ^ vmbest.c:370:8: warning: negative integer implicitly converted to unsigned type [-Wsign-conversion] size &= ~BITS; ^~ In file included from vmlast.c:14:0: vmhdr.h:150:5: warning: "_long_double" is not defined, evaluates to 0 [-Wundef] #if _long_double ^~~~~~~~~~~~ In file included from vmbest.c:14:0: vmhdr.h:224:20: warning: conversion to 'int' from 'size_t {aka unsigned int}' may change the sign of the result [-Wsign-conversion] #define C_INDEX(s) (s < MAXCACHE ? INDEX(s) : S_CACHE) ^ vmbest.c:384:8: note: in expansion of macro 'C_INDEX' c = C_INDEX(s); ^~~~~~~ vmhdr.h:100:25: warning: negative integer implicitly converted to unsigned type [-Wsign-conversion] #define CLRBITS(w) ((w) &= ~BITS) ^ vmbest.c:386:7: note: in expansion of macro 'CLRBITS' CLRBITS(s); ^~~~~~~ vmbest.c: In function 'bestalloc': vmhdr.h:110:25: warning: negative integer implicitly converted to unsigned type [-Wsign-conversion] #define CLRJUNK(w) ((w) &= ~JUNK) ^ vmbest.c:519:2: note: in expansion of macro 'CLRJUNK' CLRJUNK(SIZE(tp)); ^~~~~~~ vmbest.c:539:11: warning: negative integer implicitly converted to unsigned type [-Wsign-conversion] ((s & ~BITS) - (size + sizeof(Head_t))) | JUNK | BUSY; ^ In file included from vmbest.c:14:0: vmhdr.h:110:25: warning: negative integer implicitly converted to unsigned type [-Wsign-conversion] #define CLRJUNK(w) ((w) &= ~JUNK) ^ vmbest.c:543:6: note: in expansion of macro 'CLRJUNK' CLRJUNK(SIZE(tp)); ^~~~~~~ vmhdr.h:107:26: warning: negative integer implicitly converted to unsigned type [-Wsign-conversion] #define CLRPFREE(w) ((w) &= ~PFREE) ^ vmbest.c:553:7: note: in expansion of macro 'CLRPFREE' CLRPFREE(SIZE(NEXT(tp))); ^~~~~~~~ vmhdr.h:107:26: warning: negative integer implicitly converted to unsigned type [-Wsign-conversion] #define CLRPFREE(w) ((w) &= ~PFREE) ^ vmbest.c:592:5: note: in expansion of macro 'CLRPFREE' CLRPFREE(SIZE(NEXT(tp))); ^~~~~~~~ vmbest.c:605:15: warning: negative integer implicitly converted to unsigned type [-Wsign-conversion] SIZE(np) &= ~BITS; ^~ vmbest.c: In function 'bestaddr': vmbest.c:665:32: warning: negative integer implicitly converted to unsigned type [-Wsign-conversion] reg size_t size = SIZE(b) & ~BITS; ^ vmlast.c: In function 'lastfree': vmlast.c:106:10: warning: conversion to 'size_t {aka unsigned int}' from 'int' may change the sign of the result [-Wsign-conversion] s = (Vmuchar_t *) (seg->free) - (Vmuchar_t *) data; ^ vmlast.c:108:10: warning: conversion to 'size_t {aka unsigned int}' from 'int' may change the sign of the result [-Wsign-conversion] s = (Vmuchar_t *) BLOCK(seg->baddr) - (Vmuchar_t *) data; ^ vmlast.c:116:57: warning: conversion to 'unsigned int' from 'int' may change the sign of the result [-Wsign-conversion] ((Vmuchar_t *) BLOCK(seg->baddr) - (Vmuchar_t *) data) - ^ vmlast.c: In function 'lastresize': vmlast.c:173:16: warning: conversion to 'size_t {aka unsigned int}' from 'int' may change the sign of the result [-Wsign-conversion] oldsize = (Vmuchar_t *) seg->last - (Vmuchar_t *) data; ^ vmlast.c:175:16: warning: conversion to 'size_t {aka unsigned int}' from 'int' may change the sign of the result [-Wsign-conversion] oldsize = (Vmuchar_t *) BLOCK(seg->baddr) - (Vmuchar_t *) data; ^ vmbest.c: In function 'bestfree': vmbest.c:726:60: warning: negative integer implicitly converted to unsigned type [-Wsign-conversion] (*_Vmtrace) (vm, (Vmuchar_t *) data, NIL(Vmuchar_t *), (s & ~BITS), ^ vmlast.c:180:16: warning: conversion to 'size_t {aka unsigned int}' from 'ssize_t {aka int}' may change the sign of the result [-Wsign-conversion] oldsize = s; ^ vmlast.c:182:16: warning: conversion to 'size_t {aka unsigned int}' from 'int' may change the sign of the result [-Wsign-conversion] oldsize = (Vmuchar_t *) tp - (Vmuchar_t *) data; ^ vmlast.c:190:16: warning: conversion to 'size_t {aka unsigned int}' from 'ssize_t {aka int}' may change the sign of the result [-Wsign-conversion] ds = size - s; ^ vmlast.c:190:11: warning: conversion to 'ssize_t {aka int}' from 'size_t {aka unsigned int}' may change the sign of the result [-Wsign-conversion] ds = size - s; ^~~~ In file included from vmlast.c:14:0: vmhdr.h:65:28: warning: conversion to 'size_t {aka unsigned int}' from 'ssize_t {aka int}' may change the sign of the result [-Wsign-conversion] #define ROUNDX(x,y) ((((x) + ((y)-1)) / (y)) * (y)) ^ vmhdr.h:66:37: note: in expansion of macro 'ROUNDX' #define ROUND(x,y) (((y)&((y)-1)) ? ROUNDX((x),(y)) : ROUND2((x),(y)) ) ^~~~~~ vmlast.c:191:11: note: in expansion of macro 'ROUND' ds = ROUND(ds, vd->incr); ^~~~~ vmhdr.h:64:27: warning: conversion to 'size_t {aka unsigned int}' from 'ssize_t {aka int}' may change the sign of the result [-Wsign-conversion] #define ROUND2(x,y) (((x) + ((y)-1)) & ~((y)-1)) ^ vmhdr.h:66:55: note: in expansion of macro 'ROUND2' #define ROUND(x,y) (((y)&((y)-1)) ? ROUNDX((x),(y)) : ROUND2((x),(y)) ) ^~~~~~ vmlast.c:191:11: note: in expansion of macro 'ROUND' ds = ROUND(ds, vd->incr); ^~~~~ vmhdr.h:66:20: warning: conversion to 'ssize_t {aka int}' from 'size_t {aka unsigned int}' may change the sign of the result [-Wsign-conversion] #define ROUND(x,y) (((y)&((y)-1)) ? ROUNDX((x),(y)) : ROUND2((x),(y)) ) ^ vmlast.c:191:11: note: in expansion of macro 'ROUND' ds = ROUND(ds, vd->incr); ^~~~~ vmhdr.h:66:20: warning: conversion to 'ssize_t {aka int}' from 'size_t {aka unsigned int}' may change the sign of the result [-Wsign-conversion] #define ROUND(x,y) (((y)&((y)-1)) ? ROUNDX((x),(y)) : ROUND2((x),(y)) ) ^ vmlast.c:191:11: note: in expansion of macro 'ROUND' ds = ROUND(ds, vd->incr); ^~~~~ vmlast.c:193:19: warning: conversion to 'size_t {aka unsigned int}' from 'ssize_t {aka int}' may change the sign of the result [-Wsign-conversion] seg->extent + ds, vm->disc); ^ vmlast.c:196:13: warning: conversion to 'size_t {aka unsigned int}' from 'ssize_t {aka int}' may change the sign of the result [-Wsign-conversion] seg->size += ds; ^~ vmlast.c:197:15: warning: conversion to 'size_t {aka unsigned int}' from 'ssize_t {aka int}' may change the sign of the result [-Wsign-conversion] seg->extent += ds; ^~ In file included from vmbest.c:14:0: vmbest.c: In function 'bestresize': vmhdr.h:100:25: warning: negative integer implicitly converted to unsigned type [-Wsign-conversion] #define CLRBITS(w) ((w) &= ~BITS) ^ vmbest.c:784:2: note: in expansion of macro 'CLRBITS' CLRBITS(SIZE(rp)); ^~~~~~~ vmlast.c:215:9: warning: conversion to 'ssize_t {aka int}' from 'size_t {aka unsigned int}' may change the sign of the result [-Wsign-conversion] ds = oldsize < size ? oldsize : size; ^~~~~~~ vmhdr.h:100:25: warning: negative integer implicitly converted to unsigned type [-Wsign-conversion] #define CLRBITS(w) ((w) &= ~BITS) ^ vmbest.c:790:3: note: in expansion of macro 'CLRBITS' CLRBITS(s); ^~~~~~~ In file included from vmlast.c:14:0: vmhdr.h:374:10: warning: conversion to 'unsigned int' from 'ssize_t {aka int}' may change the sign of the result [-Wsign-conversion] switch(n/sizeof(int)) \ ^ vmlast.c:216:4: note: in expansion of macro 'INTCOPY' INTCOPY(d, ed, ds); ^~~~~~~ vmlast.c:216:19: warning: conversion to 'size_t {aka unsigned int}' from 'ssize_t {aka int}' may change the sign of the result [-Wsign-conversion] INTCOPY(d, ed, ds); ^ vmhdr.h:375:40: note: in definition of macro 'INTCOPY' { default: memcpy((void*)to,(void*)fr,n); break; \ ^ vmhdr.h:224:20: warning: conversion to 'int' from 'size_t {aka unsigned int}' may change the sign of the result [-Wsign-conversion] #define C_INDEX(s) (s < MAXCACHE ? INDEX(s) : S_CACHE) ^ vmbest.c:793:23: note: in expansion of macro 'C_INDEX' bestreclaim(vd, np, C_INDEX(s)); ^~~~~~~ vmhdr.h:100:25: warning: negative integer implicitly converted to unsigned type [-Wsign-conversion] #define CLRBITS(w) ((w) &= ~BITS) ^ vmbest.c:796:3: note: in expansion of macro 'CLRBITS' CLRBITS(SIZE(rp)); ^~~~~~~ vmlast.c:222:17: warning: conversion to 'unsigned int' from 'ssize_t {aka int}' may change the sign of the result [-Wsign-conversion] SIZE(tp) = s - sizeof(Head_t); ^ vmlast.c:241:20: warning: conversion to 'size_t {aka unsigned int}' from 'ssize_t {aka int}' may change the sign of the result [-Wsign-conversion] SIZE(tp) = (s - size) - sizeof(Head_t); ^ vmhdr.h:107:26: warning: negative integer implicitly converted to unsigned type [-Wsign-conversion] #define CLRPFREE(w) ((w) &= ~PFREE) ^ vmbest.c:807:6: note: in expansion of macro 'CLRPFREE' CLRPFREE(SIZE(np)); ^~~~~~~~ vmbest.c:838:18: warning: negative integer implicitly converted to unsigned type [-Wsign-conversion] SIZE(np) = (((s & ~BITS) - size) - sizeof(Head_t)) | BUSY | JUNK; ^ vmlast.c: In function 'lastsize': vmlast.c:288:59: warning: conversion to 'unsigned int' from 'int' may change the sign of the result [-Wsign-conversion] return (Vmuchar_t *) vd->seg->baddr - (Vmuchar_t *) addr - ^ vmbest.c:847:21: warning: negative integer implicitly converted to unsigned type [-Wsign-conversion] if (size < ((s & ~BITS) + bs)) ^ vmlast.c:288:59: warning: conversion to 'long int' from 'unsigned int' may change the sign of the result [-Wsign-conversion] return (Vmuchar_t *) vd->seg->baddr - (Vmuchar_t *) addr - ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^ sizeof(Head_t); ~~~~~~~~~~~~~~ vmbest.c:848:13: warning: negative integer implicitly converted to unsigned type [-Wsign-conversion] size = (s & ~BITS) + bs; ^ vmlast.c: In function 'lastcompact': vmlast.c:312:33: warning: negative integer implicitly converted to unsigned type [-Wsign-conversion] if (seg->size == (s = SIZE(fp) & ~BITS)) ^ In file included from vmbest.c:14:0: vmhdr.h:100:25: warning: negative integer implicitly converted to unsigned type [-Wsign-conversion] #define CLRBITS(w) ((w) &= ~BITS) ^ vmbest.c:873:49: note: in expansion of macro 'CLRBITS' done:if (data && (type & VM_RSZERO) && size > CLRBITS(oldsize)) { ^~~~~~~ vmbest.c: In function 'bestsize': vmbest.c:918:56: warning: negative integer implicitly converted to unsigned type [-Wsign-conversion] b = (Block_t *) ((Vmuchar_t *) DATA(b) + (SIZE(b) & ~BITS)); ^ vmlast.c: In function 'lastalign': vmlast.c:369:14: warning: conversion to 'size_t {aka unsigned int}' from 'int' may change the sign of the result [-Wsign-conversion] if ((s = (seg->baddr - (Vmuchar_t *) next)) >= sizeof(Block_t)) { ^ In file included from vmbest.c:14:0: vmbest.c: In function 'bestcompact': vmhdr.h:107:26: warning: negative integer implicitly converted to unsigned type [-Wsign-conversion] #define CLRPFREE(w) ((w) &= ~PFREE) ^ vmbest.c:957:2: note: in expansion of macro 'CLRPFREE' CLRPFREE(SIZE(NEXT(bp))); ^~~~~~~~ vmbest.c:967:37: warning: conversion to 'unsigned int' from 'int' may change the sign of the result [-Wsign-conversion] (seg->baddr - ((Vmuchar_t *) bp) - sizeof(Head_t))) > 0) ^ vmbest.c: In function 'bestalign': vmbest.c:1050:6: warning: conversion to 'size_t {aka unsigned int}' from 'int' may change the sign of the result [-Wsign-conversion] s = (Vmuchar_t *) np - (Vmuchar_t *) tp; ^ vmbest.c:1051:24: warning: negative integer implicitly converted to unsigned type [-Wsign-conversion] SIZE(np) = ((SIZE(tp) & ~BITS) - s) | BUSY; ^ CC vmopen.lo vmbest.c:1065:17: warning: negative integer implicitly converted to unsigned type [-Wsign-conversion] SIZE(tp) = ((s & ~BITS) - sizeof(Head_t)) | BUSY | JUNK; ^ In file included from vmlast.c:14:0: vmlast.c: In function 'lastresize': vmhdr.h:376:18: warning: this statement may fall through [-Wimplicit-fallthrough=] case 7: *to++ = *fr++; \ ~~~~~~^~~~~~ vmlast.c:216:4: note: in expansion of macro 'INTCOPY' INTCOPY(d, ed, ds); ^~~~~~~ vmhdr.h:377:4: note: here case 6: *to++ = *fr++; \ ^ vmlast.c:216:4: note: in expansion of macro 'INTCOPY' INTCOPY(d, ed, ds); ^~~~~~~ vmhdr.h:377:18: warning: this statement may fall through [-Wimplicit-fallthrough=] case 6: *to++ = *fr++; \ ~~~~~~^~~~~~ vmlast.c:216:4: note: in expansion of macro 'INTCOPY' INTCOPY(d, ed, ds); ^~~~~~~ vmhdr.h:378:4: note: here case 5: *to++ = *fr++; \ ^ vmlast.c:216:4: note: in expansion of macro 'INTCOPY' INTCOPY(d, ed, ds); ^~~~~~~ vmhdr.h:378:18: warning: this statement may fall through [-Wimplicit-fallthrough=] case 5: *to++ = *fr++; \ ~~~~~~^~~~~~ vmlast.c:216:4: note: in expansion of macro 'INTCOPY' INTCOPY(d, ed, ds); ^~~~~~~ vmhdr.h:379:4: note: here case 4: *to++ = *fr++; \ ^ vmlast.c:216:4: note: in expansion of macro 'INTCOPY' INTCOPY(d, ed, ds); ^~~~~~~ vmhdr.h:379:18: warning: this statement may fall through [-Wimplicit-fallthrough=] case 4: *to++ = *fr++; \ ~~~~~~^~~~~~ vmlast.c:216:4: note: in expansion of macro 'INTCOPY' INTCOPY(d, ed, ds); ^~~~~~~ vmhdr.h:380:4: note: here case 3: *to++ = *fr++; \ ^ vmlast.c:216:4: note: in expansion of macro 'INTCOPY' INTCOPY(d, ed, ds); ^~~~~~~ vmhdr.h:380:18: warning: this statement may fall through [-Wimplicit-fallthrough=] case 3: *to++ = *fr++; \ ~~~~~~^~~~~~ vmlast.c:216:4: note: in expansion of macro 'INTCOPY' INTCOPY(d, ed, ds); ^~~~~~~ vmhdr.h:381:4: note: here case 2: *to++ = *fr++; \ ^ vmlast.c:216:4: note: in expansion of macro 'INTCOPY' INTCOPY(d, ed, ds); ^~~~~~~ vmhdr.h:381:18: warning: this statement may fall through [-Wimplicit-fallthrough=] case 2: *to++ = *fr++; \ ~~~~~~^~~~~~ vmlast.c:216:4: note: in expansion of macro 'INTCOPY' INTCOPY(d, ed, ds); ^~~~~~~ vmhdr.h:382:4: note: here case 1: *to++ = *fr++; \ ^ vmlast.c:216:4: note: in expansion of macro 'INTCOPY' INTCOPY(d, ed, ds); ^~~~~~~ vmbest.c: In function 'sbrkmem': vmbest.c:1098:5: warning: "_std_malloc" is not defined, evaluates to 0 [-Wundef] #if _std_malloc || _BLD_INSTRUMENT || cray ^~~~~~~~~~~ vmbest.c:1098:20: warning: "_BLD_INSTRUMENT" is not defined, evaluates to 0 [-Wundef] #if _std_malloc || _BLD_INSTRUMENT || cray ^~~~~~~~~~~~~~~ vmhdr.h:387:17: warning: this statement may fall through [-Wimplicit-fallthrough=] case 7: *d++ = 0; \ ~~~~~^~~ vmlast.c:257:2: note: in expansion of macro 'INTZERO' INTZERO(d, size); ^~~~~~~ vmhdr.h:388:4: note: here case 6: *d++ = 0; \ ^ vmlast.c:257:2: note: in expansion of macro 'INTZERO' INTZERO(d, size); ^~~~~~~ vmbest.c:1098:39: warning: "cray" is not defined, evaluates to 0 [-Wundef] #if _std_malloc || _BLD_INSTRUMENT || cray ^~~~ vmhdr.h:388:17: warning: this statement may fall through [-Wimplicit-fallthrough=] case 6: *d++ = 0; \ ~~~~~^~~ vmlast.c:257:2: note: in expansion of macro 'INTZERO' INTZERO(d, size); ^~~~~~~ vmhdr.h:389:4: note: here case 5: *d++ = 0; \ ^ vmlast.c:257:2: note: in expansion of macro 'INTZERO' INTZERO(d, size); ^~~~~~~ vmhdr.h:389:17: warning: this statement may fall through [-Wimplicit-fallthrough=] case 5: *d++ = 0; \ ~~~~~^~~ vmlast.c:257:2: note: in expansion of macro 'INTZERO' INTZERO(d, size); ^~~~~~~ vmhdr.h:390:4: note: here case 4: *d++ = 0; \ ^ vmlast.c:257:2: note: in expansion of macro 'INTZERO' INTZERO(d, size); ^~~~~~~ vmhdr.h:390:17: warning: this statement may fall through [-Wimplicit-fallthrough=] case 4: *d++ = 0; \ ~~~~~^~~ vmlast.c:257:2: note: in expansion of macro 'INTZERO' INTZERO(d, size); ^~~~~~~ vmhdr.h:391:4: note: here case 3: *d++ = 0; \ ^ vmlast.c:257:2: note: in expansion of macro 'INTZERO' INTZERO(d, size); ^~~~~~~ vmhdr.h:391:17: warning: this statement may fall through [-Wimplicit-fallthrough=] case 3: *d++ = 0; \ ~~~~~^~~ vmlast.c:257:2: note: in expansion of macro 'INTZERO' INTZERO(d, size); ^~~~~~~ vmhdr.h:392:4: note: here case 2: *d++ = 0; \ ^ vmlast.c:257:2: note: in expansion of macro 'INTZERO' INTZERO(d, size); ^~~~~~~ vmhdr.h:392:17: warning: this statement may fall through [-Wimplicit-fallthrough=] case 2: *d++ = 0; \ ~~~~~^~~ vmlast.c:257:2: note: in expansion of macro 'INTZERO' INTZERO(d, size); ^~~~~~~ vmhdr.h:393:4: note: here case 1: *d++ = 0; \ ^ vmlast.c:257:2: note: in expansion of macro 'INTZERO' INTZERO(d, size); ^~~~~~~ vmbest.c: At top level: vmbest.c:1165:1: warning: missing initializer for field 'tiny' of 'Vmdata_t {aka struct _vmdata_s}' [-Wmissing-field-initializers] }; ^ In file included from vmbest.c:14:0: vmhdr.h:237:11: note: 'tiny' declared here Block_t *tiny[S_TINY]; /* small blocks */ ^~~~ In file included from vmbest.c:14:0: vmbest.c: In function 'bestresize': vmhdr.h:376:18: warning: this statement may fall through [-Wimplicit-fallthrough=] case 7: *to++ = *fr++; \ ~~~~~~^~~~~~ vmbest.c:852:7: note: in expansion of macro 'INTCOPY' INTCOPY(d, ed, s); ^~~~~~~ vmhdr.h:377:4: note: here case 6: *to++ = *fr++; \ ^ vmbest.c:852:7: note: in expansion of macro 'INTCOPY' INTCOPY(d, ed, s); ^~~~~~~ vmhdr.h:377:18: warning: this statement may fall through [-Wimplicit-fallthrough=] case 6: *to++ = *fr++; \ ~~~~~~^~~~~~ vmbest.c:852:7: note: in expansion of macro 'INTCOPY' INTCOPY(d, ed, s); ^~~~~~~ vmhdr.h:378:4: note: here case 5: *to++ = *fr++; \ ^ vmbest.c:852:7: note: in expansion of macro 'INTCOPY' INTCOPY(d, ed, s); ^~~~~~~ vmhdr.h:378:18: warning: this statement may fall through [-Wimplicit-fallthrough=] case 5: *to++ = *fr++; \ ~~~~~~^~~~~~ vmbest.c:852:7: note: in expansion of macro 'INTCOPY' INTCOPY(d, ed, s); ^~~~~~~ vmhdr.h:379:4: note: here case 4: *to++ = *fr++; \ ^ vmbest.c:852:7: note: in expansion of macro 'INTCOPY' INTCOPY(d, ed, s); ^~~~~~~ vmhdr.h:379:18: warning: this statement may fall through [-Wimplicit-fallthrough=] case 4: *to++ = *fr++; \ ~~~~~~^~~~~~ vmbest.c:852:7: note: in expansion of macro 'INTCOPY' INTCOPY(d, ed, s); ^~~~~~~ vmhdr.h:380:4: note: here case 3: *to++ = *fr++; \ ^ vmbest.c:852:7: note: in expansion of macro 'INTCOPY' INTCOPY(d, ed, s); ^~~~~~~ vmhdr.h:380:18: warning: this statement may fall through [-Wimplicit-fallthrough=] case 3: *to++ = *fr++; \ ~~~~~~^~~~~~ vmbest.c:852:7: note: in expansion of macro 'INTCOPY' INTCOPY(d, ed, s); ^~~~~~~ vmhdr.h:381:4: note: here case 2: *to++ = *fr++; \ ^ vmbest.c:852:7: note: in expansion of macro 'INTCOPY' INTCOPY(d, ed, s); ^~~~~~~ vmhdr.h:381:18: warning: this statement may fall through [-Wimplicit-fallthrough=] case 2: *to++ = *fr++; \ ~~~~~~^~~~~~ vmbest.c:852:7: note: in expansion of macro 'INTCOPY' INTCOPY(d, ed, s); ^~~~~~~ vmhdr.h:382:4: note: here case 1: *to++ = *fr++; \ ^ vmbest.c:852:7: note: in expansion of macro 'INTCOPY' INTCOPY(d, ed, s); ^~~~~~~ vmhdr.h:387:17: warning: this statement may fall through [-Wimplicit-fallthrough=] case 7: *d++ = 0; \ ~~~~~^~~ vmbest.c:876:2: note: in expansion of macro 'INTZERO' INTZERO(d, size); ^~~~~~~ vmhdr.h:388:4: note: here case 6: *d++ = 0; \ ^ vmbest.c:876:2: note: in expansion of macro 'INTZERO' INTZERO(d, size); ^~~~~~~ vmhdr.h:388:17: warning: this statement may fall through [-Wimplicit-fallthrough=] case 6: *d++ = 0; \ ~~~~~^~~ vmbest.c:876:2: note: in expansion of macro 'INTZERO' INTZERO(d, size); ^~~~~~~ vmhdr.h:389:4: note: here case 5: *d++ = 0; \ ^ vmbest.c:876:2: note: in expansion of macro 'INTZERO' INTZERO(d, size); ^~~~~~~ vmhdr.h:389:17: warning: this statement may fall through [-Wimplicit-fallthrough=] case 5: *d++ = 0; \ ~~~~~^~~ vmbest.c:876:2: note: in expansion of macro 'INTZERO' INTZERO(d, size); ^~~~~~~ vmhdr.h:390:4: note: here case 4: *d++ = 0; \ ^ vmbest.c:876:2: note: in expansion of macro 'INTZERO' INTZERO(d, size); ^~~~~~~ vmhdr.h:390:17: warning: this statement may fall through [-Wimplicit-fallthrough=] case 4: *d++ = 0; \ ~~~~~^~~ vmbest.c:876:2: note: in expansion of macro 'INTZERO' INTZERO(d, size); ^~~~~~~ vmhdr.h:391:4: note: here case 3: *d++ = 0; \ ^ vmbest.c:876:2: note: in expansion of macro 'INTZERO' INTZERO(d, size); ^~~~~~~ vmhdr.h:391:17: warning: this statement may fall through [-Wimplicit-fallthrough=] case 3: *d++ = 0; \ ~~~~~^~~ vmbest.c:876:2: note: in expansion of macro 'INTZERO' INTZERO(d, size); ^~~~~~~ vmhdr.h:392:4: note: here case 2: *d++ = 0; \ ^ vmbest.c:876:2: note: in expansion of macro 'INTZERO' INTZERO(d, size); ^~~~~~~ vmhdr.h:392:17: warning: this statement may fall through [-Wimplicit-fallthrough=] case 2: *d++ = 0; \ ~~~~~^~~ vmbest.c:876:2: note: in expansion of macro 'INTZERO' INTZERO(d, size); ^~~~~~~ vmhdr.h:393:4: note: here case 1: *d++ = 0; \ ^ vmbest.c:876:2: note: in expansion of macro 'INTZERO' INTZERO(d, size); ^~~~~~~ CC vmpool.lo CC vmprivate.lo CC vmprofile.lo CC vmregion.lo In file included from vmopen.c:14:0: vmhdr.h:150:5: warning: "_long_double" is not defined, evaluates to 0 [-Wundef] #if _long_double ^~~~~~~~~~~~ vmopen.c: In function 'vmopen': vmopen.c:138:44: warning: conversion to 'unsigned int' from 'int' may change the sign of the result [-Wsign-conversion] SIZE(b) = seg->baddr - (Vmuchar_t *) b - 2 * sizeof(Head_t); ^ In file included from vmpool.c:14:0: vmhdr.h:150:5: warning: "_long_double" is not defined, evaluates to 0 [-Wundef] #if _long_double ^~~~~~~~~~~~ vmpool.c: In function 'poolalloc': vmpool.c:60:21: warning: negative integer implicitly converted to unsigned type [-Wsign-conversion] (s = (SIZE(tp) & ~BITS) + sizeof(Head_t)) >= size) ^ vmpool.c:67:20: warning: negative integer implicitly converted to unsigned type [-Wsign-conversion] s = (SIZE(tp) & ~BITS) + sizeof(Head_t); ^ vmpool.c: In function 'pooladdr': vmpool.c:127:36: warning: conversion to 'size_t {aka unsigned int}' from 'int' may change the sign of the result [-Wsign-conversion] (((Vmuchar_t *) addr - laddr) / size) * size); ^ vmpool.c: In function 'poolcompact': vmpool.c:246:33: warning: negative integer implicitly converted to unsigned type [-Wsign-conversion] if (seg->size == (s = SIZE(fp) & ~BITS)) ^ In file included from vmprivate.c:14:0: vmhdr.h:150:5: warning: "_long_double" is not defined, evaluates to 0 [-Wundef] #if _long_double ^~~~~~~~~~~~ CC vmsegment.lo vmprivate.c: In function 'vmextend': vmprivate.c:145:43: warning: conversion to 'unsigned int' from 'int' may change the sign of the result [-Wsign-conversion] SIZE(bp) = seg->baddr - (Vmuchar_t *) bp - 2 * sizeof(Head_t); ^ In file included from vmprivate.c:14:0: vmhdr.h:107:26: warning: negative integer implicitly converted to unsigned type [-Wsign-conversion] #define CLRPFREE(w) ((w) &= ~PFREE) ^ vmprivate.c:173:2: note: in expansion of macro 'CLRPFREE' CLRPFREE(SIZE(NEXT(t))); ^~~~~~~~ In file included from vmprofile.c:14:0: vmhdr.h:150:5: warning: "_long_double" is not defined, evaluates to 0 [-Wundef] #if _long_double ^~~~~~~~~~~~ vmprofile.c: In function 'pfsearch': vmprofile.c:87:18: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast] h = line + (((Vmulong_t) vm) >> 4); ^ vmprofile.c:87:14: warning: conversion to 'long long unsigned int' from 'int' may change the sign of the result [-Wsign-conversion] h = line + (((Vmulong_t) vm) >> 4); ^ In file included from vmprofile.c:14:0: vmprofile.c: In function 'pfsetinfo': vmhdr.h:322:62: warning: negative integer implicitly converted to unsigned type [-Wsign-conversion] #define PFDATA(d) ((Head_t*)((Vmuchar_t*)(d)+(SIZE(BLOCK(d))&~BITS)-sizeof(Head_t)) ) ^ vmhdr.h:323:21: note: in expansion of macro 'PFDATA' #define PFOBJ(d) (PFDATA(d)->head.seg.pf) ^~~~~~ vmprofile.c:209:5: note: in expansion of macro 'PFOBJ' PFOBJ(data) = pf; ^~~~~ vmhdr.h:322:62: warning: negative integer implicitly converted to unsigned type [-Wsign-conversion] #define PFDATA(d) ((Head_t*)((Vmuchar_t*)(d)+(SIZE(BLOCK(d))&~BITS)-sizeof(Head_t)) ) ^ vmhdr.h:324:21: note: in expansion of macro 'PFDATA' #define PFSIZE(d) (PFDATA(d)->head.size.size) ^~~~~~ vmprofile.c:210:5: note: in expansion of macro 'PFSIZE' PFSIZE(data) = size; ^~~~~~ vmprofile.c: In function 'vmprofile': vmprofile.c:319:50: warning: conversion to 'size_t {aka unsigned int}' from 'int' may change the sign of the result [-Wsign-conversion] #define CHKBUF() (bufp >= endbuf ? (write(fd,buf,bufp-buf), bufp=buf) : bufp) ^ vmprofile.c:388:2: note: in expansion of macro 'CHKBUF' CHKBUF(); ^~~~~~ vmprofile.c:319:50: warning: conversion to 'size_t {aka unsigned int}' from 'int' may change the sign of the result [-Wsign-conversion] #define CHKBUF() (bufp >= endbuf ? (write(fd,buf,bufp-buf), bufp=buf) : bufp) ^ vmprofile.c:394:6: note: in expansion of macro 'CHKBUF' CHKBUF(); ^~~~~~ vmprofile.c:24:20: warning: conversion to 'Vmulong_t {aka long long unsigned int}' from 'int' may change the sign of the result [-Wsign-conversion] #define PFLINE(pf) ((pf)->line) ^ vmprofile.c:396:45: note: in expansion of macro 'PFLINE' bufp = (*_Vmstrcpy) (bufp, (*_Vmitoa) (PFLINE(pf), -1), ':'); ^~~~~~ vmprofile.c:320:45: warning: conversion to 'size_t {aka unsigned int}' from 'int' may change the sign of the result [-Wsign-conversion] #define FLSBUF() (bufp > buf ? write(fd,buf,bufp-buf) : 0) ^ vmprofile.c:413:5: note: in expansion of macro 'FLSBUF' FLSBUF(); ^~~~~~ In file included from vmprofile.c:14:0: vmprofile.c: In function 'pffree': vmhdr.h:322:62: warning: negative integer implicitly converted to unsigned type [-Wsign-conversion] #define PFDATA(d) ((Head_t*)((Vmuchar_t*)(d)+(SIZE(BLOCK(d))&~BITS)-sizeof(Head_t)) ) ^ vmhdr.h:323:21: note: in expansion of macro 'PFDATA' #define PFOBJ(d) (PFDATA(d)->head.seg.pf) ^~~~~~ vmprofile.c:472:10: note: in expansion of macro 'PFOBJ' pf = PFOBJ(data); ^~~~~ vmhdr.h:322:62: warning: negative integer implicitly converted to unsigned type [-Wsign-conversion] #define PFDATA(d) ((Head_t*)((Vmuchar_t*)(d)+(SIZE(BLOCK(d))&~BITS)-sizeof(Head_t)) ) ^ vmhdr.h:324:21: note: in expansion of macro 'PFDATA' #define PFSIZE(d) (PFDATA(d)->head.size.size) ^~~~~~ vmprofile.c:473:9: note: in expansion of macro 'PFSIZE' s = PFSIZE(data); ^~~~~~ vmprofile.c: In function 'pfresize': vmhdr.h:322:62: warning: negative integer implicitly converted to unsigned type [-Wsign-conversion] #define PFDATA(d) ((Head_t*)((Vmuchar_t*)(d)+(SIZE(BLOCK(d))&~BITS)-sizeof(Head_t)) ) ^ vmhdr.h:323:21: note: in expansion of macro 'PFDATA' #define PFOBJ(d) (PFDATA(d)->head.seg.pf) ^~~~~~ vmprofile.c:527:10: note: in expansion of macro 'PFOBJ' pf = PFOBJ(data); ^~~~~ vmhdr.h:322:62: warning: negative integer implicitly converted to unsigned type [-Wsign-conversion] #define PFDATA(d) ((Head_t*)((Vmuchar_t*)(d)+(SIZE(BLOCK(d))&~BITS)-sizeof(Head_t)) ) ^ vmhdr.h:324:21: note: in expansion of macro 'PFDATA' #define PFSIZE(d) (PFDATA(d)->head.size.size) ^~~~~~ vmprofile.c:528:19: note: in expansion of macro 'PFSIZE' s = oldsize = PFSIZE(data); ^~~~~~ vmprofile.c: In function 'pfsize': vmhdr.h:322:62: warning: negative integer implicitly converted to unsigned type [-Wsign-conversion] #define PFDATA(d) ((Head_t*)((Vmuchar_t*)(d)+(SIZE(BLOCK(d))&~BITS)-sizeof(Head_t)) ) ^ vmhdr.h:324:21: note: in expansion of macro 'PFDATA' #define PFSIZE(d) (PFDATA(d)->head.size.size) ^~~~~~ vmprofile.c:575:60: note: in expansion of macro 'PFSIZE' return (*Vmbest->addrf) (vm, addr) != 0 ? -1L : (long) PFSIZE(addr); ^~~~~~ CC vmset.lo CC vmstat.lo In file included from vmregion.c:14:0: vmhdr.h:150:5: warning: "_long_double" is not defined, evaluates to 0 [-Wundef] #if _long_double ^~~~~~~~~~~~ CC vmstrdup.lo CC vmtrace.lo CC vmwalk.lo In file included from vmsegment.c:14:0: vmhdr.h:150:5: warning: "_long_double" is not defined, evaluates to 0 [-Wundef] #if _long_double ^~~~~~~~~~~~ In file included from vmset.c:14:0: vmhdr.h:150:5: warning: "_long_double" is not defined, evaluates to 0 [-Wundef] #if _long_double ^~~~~~~~~~~~ In file included from vmstat.c:14:0: vmhdr.h:150:5: warning: "_long_double" is not defined, evaluates to 0 [-Wundef] #if _long_double ^~~~~~~~~~~~ vmstat.c: In function 'vmstat': vmstat.c:58:15: warning: negative integer implicitly converted to unsigned type [-Wsign-conversion] s = SIZE(b) & ~BITS; ^ In file included from vmstat.c:14:0: vmhdr.h:322:62: warning: negative integer implicitly converted to unsigned type [-Wsign-conversion] #define PFDATA(d) ((Head_t*)((Vmuchar_t*)(d)+(SIZE(BLOCK(d))&~BITS)-sizeof(Head_t)) ) ^ vmhdr.h:324:21: note: in expansion of macro 'PFDATA' #define PFSIZE(d) (PFDATA(d)->head.size.size) ^~~~~~ vmstat.c:68:8: note: in expansion of macro 'PFSIZE' s = PFSIZE(DATA(b)); ^~~~~~ vmstat.c:76:15: warning: negative integer implicitly converted to unsigned type [-Wsign-conversion] (SIZE(b) & ~BITS)); ^ vmstat.c:84:44: warning: conversion to 'size_t {aka unsigned int}' from 'int' may change the sign of the result [-Wsign-conversion] if ((s = ((char *) endb - (char *) b) - s) > 0) { ^ vmstat.c:90:14: warning: conversion to 'size_t {aka unsigned int}' from 'int' may change the sign of the result [-Wsign-conversion] st->n_free += (SIZE(seg->free) + sizeof(Head_t)) / s; ^~ vmstat.c:90:17: warning: conversion to 'int' from 'size_t {aka unsigned int}' may change the sign of the result [-Wsign-conversion] st->n_free += (SIZE(seg->free) + sizeof(Head_t)) / s; ^ vmstat.c:92:35: warning: conversion to 'unsigned int' from 'int' may change the sign of the result [-Wsign-conversion] ((seg->baddr - (Vmuchar_t *) b) - sizeof(Head_t)) / s; ^ vmstat.c:91:17: warning: conversion to 'unsigned int' from 'int' may change the sign of the result [-Wsign-conversion] st->n_busy += ^~ vmstat.c:92:3: warning: conversion to 'int' from 'unsigned int' may change the sign of the result [-Wsign-conversion] ((seg->baddr - (Vmuchar_t *) b) - sizeof(Head_t)) / s; ^ vmstat.c:99:43: warning: conversion to 'size_t {aka unsigned int}' from 'int' may change the sign of the result [-Wsign-conversion] st->s_busy = (st->m_busy = vd->pool) * st->n_busy; ^ vmstat.c:101:43: warning: conversion to 'size_t {aka unsigned int}' from 'int' may change the sign of the result [-Wsign-conversion] st->s_free = (st->m_free = vd->pool) * st->n_free; ^ In file included from vmstrdup.c:15:0: vmhdr.h:150:5: warning: "_long_double" is not defined, evaluates to 0 [-Wundef] #if _long_double ^~~~~~~~~~~~ In file included from vmhdr.h:247:0, from vmstrdup.c:15: vmstrdup.c: In function 'vmstrdup': vmstrdup.c:27:8: warning: conversion to 'int' from 'size_t {aka unsigned int}' may change the sign of the result [-Wsign-conversion] strlen(s) + 1)) ? (char *) memcpy(t, s, ^ vmalloc.h:199:58: note: in definition of macro 'vmalloc' #define vmalloc(vm,sz) (*(_VM_(vm)->meth.allocf))((vm),(sz)) ^~ vmalloc.h:199:57: warning: conversion to 'size_t {aka unsigned int}' from 'int' may change the sign of the result [-Wsign-conversion] #define vmalloc(vm,sz) (*(_VM_(vm)->meth.allocf))((vm),(sz)) ^ vmstrdup.c:26:7: note: in expansion of macro 'vmalloc' vmalloc(v, n = ^~~~~~~ vmstrdup.c:28:14: warning: conversion to 'size_t {aka unsigned int}' from 'int' may change the sign of the result [-Wsign-conversion] n) : (char *) 0); ^ In file included from vmtrace.c:14:0: vmhdr.h:150:5: warning: "_long_double" is not defined, evaluates to 0 [-Wundef] #if _long_double ^~~~~~~~~~~~ vmtrace.c: In function 'trstrcpy': vmtrace.c:28:9: warning: conversion to 'int' from 'size_t {aka unsigned int}' may change the sign of the result [-Wsign-conversion] n = strlen(from); ^~~~~~ vmtrace.c:29:22: warning: conversion to 'size_t {aka unsigned int}' from 'int' may change the sign of the result [-Wsign-conversion] memcpy(to, from, n); ^ vmtrace.c:31:16: warning: conversion to 'char' from 'int' may alter its value [-Wconversion] if ((*to = endc)) ^~~~ vmtrace.c: In function 'trtrace': vmtrace.c:134:24: warning: conversion to 'size_t {aka unsigned int}' from 'int' may change the sign of the result [-Wsign-conversion] write(Trfile, buf, (bufp - buf)); ^ In file included from vmtrace.c:14:0: vmtrace.c: In function 'vmtrbusy': vmhdr.h:322:62: warning: negative integer implicitly converted to unsigned type [-Wsign-conversion] #define PFDATA(d) ((Head_t*)((Vmuchar_t*)(d)+(SIZE(BLOCK(d))&~BITS)-sizeof(Head_t)) ) ^ vmhdr.h:324:21: note: in expansion of macro 'PFDATA' #define PFSIZE(d) (PFDATA(d)->head.size.size) ^~~~~~ vmtrace.c:173:7: note: in expansion of macro 'PFSIZE' s = PFSIZE(data); ^~~~~~ vmtrace.c:175:15: warning: negative integer implicitly converted to unsigned type [-Wsign-conversion] s = SIZE(b) & ~BITS; ^ vmtrace.c:179:56: warning: negative integer implicitly converted to unsigned type [-Wsign-conversion] b = (Block_t *) ((Vmuchar_t *) DATA(b) + (SIZE(b) & ~BITS)); ^ In file included from vmwalk.c:14:0: vmhdr.h:150:5: warning: "_long_double" is not defined, evaluates to 0 [-Wundef] #if _long_double ^~~~~~~~~~~~ CCLD libvmalloc_C.la make[6]: Leaving directory '/jenkins/jobs/oi-userland/workspace/components/image/graphviz/build/i86/lib/vmalloc' Making all in ast make[6]: Entering directory '/jenkins/jobs/oi-userland/workspace/components/image/graphviz/build/i86/lib/ast' CC pathpath.lo CC fmtbuf.lo CC fmtesc.lo CC chresc.lo CC error.lo CC chrtoi.lo CC pathaccess.lo CC pathbin.lo fmtesc.c: In function 'fmtquote': fmtesc.c:38:33: warning: cast discards 'const' qualifier from pointer target type [-Wcast-qual] register unsigned char *s = (unsigned char *) as; ^ fmtesc.c:48:9: warning: conversion to 'int' from 'size_t {aka unsigned int}' may change the sign of the result [-Wsign-conversion] c = 4 * (n + 1); ^ error.c: In function '_err_msgv': fmtesc.c:50:14: warning: cast discards 'const' qualifier from pointer target type [-Wcast-qual] c += strlen((char *) qb); ^ error.c:55:47: warning: cast discards 'const' qualifier from pointer target type [-Wcast-qual] if (level && ((s = error_info.id) || (s = (char *) id))) { ^ fmtesc.c:50:4: warning: conversion to 'size_t {aka unsigned int}' from 'int' may change the sign of the result [-Wsign-conversion] c += strlen((char *) qb); ^~ fmtesc.c:50:7: warning: conversion to 'int' from 'size_t {aka unsigned int}' may change the sign of the result [-Wsign-conversion] c += strlen((char *) qb); ^~~~~~ fmtesc.c:52:14: warning: cast discards 'const' qualifier from pointer target type [-Wcast-qual] c += strlen((char *) qe); ^ fmtesc.c:52:4: warning: conversion to 'size_t {aka unsigned int}' from 'int' may change the sign of the result [-Wsign-conversion] c += strlen((char *) qe); ^~ fmtesc.c:52:7: warning: conversion to 'int' from 'size_t {aka unsigned int}' may change the sign of the result [-Wsign-conversion] c += strlen((char *) qe); ^~~~~~ fmtesc.c:53:22: warning: conversion to 'size_t {aka unsigned int}' from 'int' may change the sign of the result [-Wsign-conversion] b = buf = fmtbuf(c); ^ fmtesc.c:104:11: warning: conversion to 'char' from 'int' may alter its value [-Wconversion] *b++ = '0' + ((c >> 6) & 07); ^~~ fmtesc.c:105:11: warning: conversion to 'char' from 'int' may alter its value [-Wconversion] *b++ = '0' + ((c >> 3) & 07); ^~~ fmtesc.c:113:10: warning: conversion to 'char' from 'int' may alter its value [-Wconversion] *b++ = c; ^ pathpath.c: In function 'pathpath': pathpath.c:75:19: warning: cast discards 'const' qualifier from pointer target type [-Wcast-qual] else if ((s = (char *) a)) { ^ fmtesc.c:133:13: warning: conversion to 'char' from 'int' may alter its value [-Wconversion] *b++ = c; ^ fmtesc.c: At top level: fmtesc.c:154:7: warning: no previous prototype for 'fmtnesq' [-Wmissing-prototypes] char *fmtnesq(const char *as, const char *qs, size_t n) ^~~~~~~ fmtesc.c: In function 'fmtesq': fmtesc.c:165:41: warning: cast discards 'const' qualifier from pointer target type [-Wcast-qual] return fmtquote(as, NiL, qs, strlen((char *) as), 0); ^ fmtesc.c: In function 'fmtesc': fmtesc.c:174:42: warning: cast discards 'const' qualifier from pointer target type [-Wcast-qual] return fmtquote(as, NiL, NiL, strlen((char *) as), 0); ^ chrtoi.c: In function 'chrtoi': chrtoi.c:31:19: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] for (n = 0; n < sizeof(int) * CHAR_BIT; n += CHAR_BIT) { ^ chrtoi.c:32:16: warning: cast discards 'const' qualifier from pointer target type [-Wcast-qual] switch (x = *((unsigned char *) s++)) { ^ chrtoi.c:32:2: warning: switch missing default case [-Wswitch-default] switch (x = *((unsigned char *) s++)) { ^~~~~~ fmtbuf.c: In function 'fmtbuf': fmtbuf.c:33:11: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] if (n > (&buf[elementsof(buf)] - nxt)) ^ chresc.c: In function 'chresc': chresc.c:36:2: warning: switch missing default case [-Wswitch-default] switch (c = *s++) { ^~~~~~ chresc.c:31:5: warning: switch missing default case [-Wswitch-default] switch (c = *s++) { ^~~~~~ chresc.c:136:7: warning: cast discards 'const' qualifier from pointer target type [-Wcast-qual] *p = (char *) s; ^ CC pathcanon.lo CC pathcat.lo CC pathexists.lo CC pathfind.lo CC pathgetlink.lo CC strcopy.lo CC stresc.lo CC strmatch.lo pathgetlink.c:39:5: warning: no previous prototype for 'pathgetlink' [-Wmissing-prototypes] int pathgetlink(const char *name, char *buf, int siz) ^~~~~~~~~~~ pathgetlink.c: In function 'pathgetlink': pathgetlink.c:46:34: warning: conversion to 'size_t {aka unsigned int}' from 'int' may change the sign of the result [-Wsign-conversion] if ((n = readlink(name, buf, siz)) < 0) ^~~ pathfind.c:47:5: warning: no previous prototype for 'pathinclude' [-Wmissing-prototypes] int pathinclude(const char *dir) ^~~~~~~~~~~ pathfind.c: In function 'pathfind': pathfind.c:81:17: warning: conversion to 'int' from 'size_t {aka unsigned int}' may change the sign of the result [-Wsign-conversion] sfsprintf(buf, size, "%s.%s", name, type); ^~~~ pathfind.c:100:23: warning: cast discards 'const' qualifier from pointer target type [-Wcast-qual] if ((s = strrchr((char *) lib, ':'))) ^ pathcanon.c:44:7: warning: no previous prototype for 'pathcanon' [-Wmissing-prototypes] char *pathcanon(char *path, int flags) ^~~~~~~~~ pathcanon.c: In function 'pathcanon': pathcanon.c:95:5: warning: "PRESERVE_TRAILING_SLASH" is not defined, evaluates to 0 [-Wundef] #if PRESERVE_TRAILING_SLASH ^~~~~~~~~~~~~~~~~~~~~~~ pathcanon.c:143:18: warning: conversion to 'char' from 'int' may alter its value [-Wconversion] *(t - 1) = c; ^ pathcanon.c:185:5: warning: "DONT_PRESERVE_TRAILING_SLASH" is not defined, evaluates to 0 [-Wundef] #if DONT_PRESERVE_TRAILING_SLASH ^~~~~~~~~~~~~~~~~~~~~~~~~~~~ stresc.c: In function 'stresc': stresc.c:33:2: warning: switch missing default case [-Wswitch-default] switch (c = *s++) { ^~~~~~ stresc.c:42:9: warning: conversion to 'char' from 'int' may alter its value [-Wconversion] *t++ = c; ^ pathcat.c: In function 'pathcat': pathcat.c:42:21: warning: cast discards 'const' qualifier from pointer target type [-Wcast-qual] return (*dirs ? (char *) ++dirs : 0); ^ pathexists.c: In function 'pathexists': pathexists.c:68:8: warning: conversion to 'char' from 'int' may alter its value [-Wconversion] *e = c; ^ pathexists.c:75:8: warning: conversion to 'char' from 'int' may alter its value [-Wconversion] *e = c; ^ pathexists.c:88:12: warning: conversion to 'char' from 'int' may alter its value [-Wconversion] *e = c; ^ pathexists.c:97:8: warning: conversion to 'char' from 'int' may alter its value [-Wconversion] *e = c; ^ pathexists.c:109:9: warning: conversion to 'char' from 'int' may alter its value [-Wconversion] *e++ = c; ^ In file included from strmatch.c:56:0: ./hashkey.h:49:5: warning: "_BLD_ast" is not defined, evaluates to 0 [-Wundef] #if _BLD_ast && defined(__EXPORT__) ^~~~~~~~ strmatch.c:59:5: warning: "_hdr_wchar" is not defined, evaluates to 0 [-Wundef] #if _hdr_wchar && _lib_wctype && _lib_iswctype ^~~~~~~~~~ strmatch.c:122:5: warning: "_DEBUG_MATCH" is not defined, evaluates to 0 [-Wundef] #if _DEBUG_MATCH ^~~~~~~~~~~~ strmatch.c:142:5: warning: "_lib_mbtowc" is not defined, evaluates to 0 [-Wundef] #if _lib_mbtowc && MB_LEN_MAX > 1 ^~~~~~~~~~~ strmatch.c:156:6: warning: "_lib_strcoll" is not defined, evaluates to 0 [-Wundef] #if !_lib_strcoll ^~~~~~~~~~~~ strmatch.c:160:5: warning: "_lib_fnmatch" is not defined, evaluates to 0 [-Wundef] #if _lib_fnmatch ^~~~~~~~~~~~ strmatch.c: In function 'gobble': strmatch.c:179:2: warning: switch missing default case [-Wswitch-default] switch (mbgetchar(s)) { ^~~~~~ strmatch.c: At top level: strmatch.c:226:5: warning: "_DEBUG_MATCH" is not defined, evaluates to 0 [-Wundef] #if _DEBUG_MATCH ^~~~~~~~~~~~ strmatch.c: In function 'onematch': strmatch.c:249:5: warning: "_DEBUG_MATCH" is not defined, evaluates to 0 [-Wundef] #if _DEBUG_MATCH ^~~~~~~~~~~~ strmatch.c:284:25: warning: conversion to 'short int' from 'int' may alter its value [-Wconversion] mp->current.groups = oldg; ^~~~ strmatch.c:302:5: warning: "_DEBUG_MATCH" is not defined, evaluates to 0 [-Wundef] #if _DEBUG_MATCH ^~~~~~~~~~~~ strmatch.c:317:5: warning: "_DEBUG_MATCH" is not defined, evaluates to 0 [-Wundef] #if _DEBUG_MATCH ^~~~~~~~~~~~ strmatch.c:330:24: warning: conversion to 'short int' from 'int' may alter its value [-Wconversion] mp->current.groups = oldg; ^~~~ strmatch.c:358:28: warning: conversion to 'short int' from 'int' may alter its value [-Wconversion] mp->current.groups = g; ^ strmatch.c:367:5: warning: "_DEBUG_MATCH" is not defined, evaluates to 0 [-Wundef] #if _DEBUG_MATCH ^~~~~~~~~~~~ strmatch.c:378:5: warning: "_DEBUG_MATCH" is not defined, evaluates to 0 [-Wundef] #if _DEBUG_MATCH ^~~~~~~~~~~~ strmatch.c:418:24: warning: conversion to 'short int' from 'int' may alter its value [-Wconversion] mp->current.groups = g; ^ strmatch.c:427:21: warning: conversion to 'short int' from 'int' may alter its value [-Wconversion] mp->best.groups = g; ^ strmatch.c:428:5: warning: "_DEBUG_MATCH" is not defined, evaluates to 0 [-Wundef] #if _DEBUG_MATCH ^~~~~~~~~~~~ strmatch.c:445:5: warning: "_lib_fnmatch" is not defined, evaluates to 0 [-Wundef] #if _lib_fnmatch ^~~~~~~~~~~~ strmatch.c:525:5: warning: "_lib_wctype" is not defined, evaluates to 0 [-Wundef] #if _lib_wctype ^~~~~~~~~~~ strmatch.c:474:8: warning: switch missing default case [-Wswitch-default] switch (HASHNKEY5 ^~~~~~ strmatch.c:541:5: warning: "_lib_fnmatch" is not defined, evaluates to 0 [-Wundef] #if _lib_fnmatch ^~~~~~~~~~~~ strmatch.c:557:5: warning: "_lib_fnmatch" is not defined, evaluates to 0 [-Wundef] #if _lib_fnmatch ^~~~~~~~~~~~ strmatch.c:592:5: warning: "_lib_fnmatch" is not defined, evaluates to 0 [-Wundef] #if _lib_fnmatch ^~~~~~~~~~~~ strmatch.c:600:5: warning: "_lib_mbtowc" is not defined, evaluates to 0 [-Wundef] #if _lib_mbtowc ^~~~~~~~~~~ strmatch.c:639:5: warning: "_lib_fnmatch" is not defined, evaluates to 0 [-Wundef] #if _lib_fnmatch ^~~~~~~~~~~~ strmatch.c:663:5: warning: "_DEBUG_MATCH" is not defined, evaluates to 0 [-Wundef] #if _DEBUG_MATCH ^~~~~~~~~~~~ strmatch.c: In function 'grpmatch': strmatch.c:699:5: warning: "_DEBUG_MATCH" is not defined, evaluates to 0 [-Wundef] #if _DEBUG_MATCH ^~~~~~~~~~~~ strmatch.c: In function 'strgrpmatch': CC strton.lo strmatch.c:729:9: warning: cast discards 'const' qualifier from pointer target type [-Wcast-qual] s = (char *) b; ^ strmatch.c:735:34: warning: cast discards 'const' qualifier from pointer target type [-Wcast-qual] if ((i = grpmatch(&match, 0, s, (char *) p, e, flags)) ^ strmatch.c:742:5: warning: "_DEBUG_MATCH" is not defined, evaluates to 0 [-Wundef] #if _DEBUG_MATCH ^~~~~~~~~~~~ strmatch.c:760:9: warning: cast discards 'const' qualifier from pointer target type [-Wcast-qual] s = (char *) b; ^ CC strerror.lo strmatch.c: At top level: strmatch.c:789:7: warning: no previous prototype for 'strsubmatch' [-Wmissing-prototypes] char *strsubmatch(const char *s, const char *p, int flags) ^~~~~~~~~~~ strmatch.c: In function 'strsubmatch': strmatch.c:794:50: warning: cast discards 'const' qualifier from pointer target type [-Wcast-qual] (flags ? STR_MAXIMAL : 0) | STR_LEFT) ? (char *) s + ^ In file included from strton.c:63:0: /jenkins/jobs/oi-userland/workspace/components/image/graphviz/graphviz-2.40.1/lib/sfio/sfhdr.h:155:5: warning: "_socket_peek" is not defined, evaluates to 0 [-Wundef] #if _socket_peek ^~~~~~~~~~~~ strton.c:68:6: warning: no previous prototype for 'strton' [-Wmissing-prototypes] long strton(const char *a, char **e, char *basep, int m) ^~~~~~ strton.c: In function 'strton': strton.c:70:33: warning: cast discards 'const' qualifier from pointer target type [-Wcast-qual] register unsigned char *s = (unsigned char *) a; ^ strton.c:111:15: warning: conversion to 'char' from 'int' may alter its value [-Wconversion] *basep = base; ^~~~ strton.c:143:13: warning: cast discards 'const' qualifier from pointer target type [-Wcast-qual] if (s > (unsigned char *) (a + 1)) { ^ strton.c:170:23: warning: cast discards 'const' qualifier from pointer target type [-Wcast-qual] if (m < 0 || s == (unsigned char *) (a + 1)) ^ CCLD libast_C.la make[6]: Leaving directory '/jenkins/jobs/oi-userland/workspace/components/image/graphviz/build/i86/lib/ast' Making all in vpsc Making all in rbtree make[6]: Entering directory '/jenkins/jobs/oi-userland/workspace/components/image/graphviz/build/i86/lib/rbtree' CC misc.lo CC red_black_tree.lo CC stack.lo misc.c:72:6: warning: no previous prototype for 'NullFunction' [-Wmissing-prototypes] void NullFunction(void * junk) { ; } ^~~~~~~~~~~~ misc.c: In function 'NullFunction': misc.c:72:26: warning: unused parameter 'junk' [-Wunused-parameter] void NullFunction(void * junk) { ; } ^~~~ stack.c:71:6: warning: no previous prototype for 'StackDestroy' [-Wmissing-prototypes] void StackDestroy(stk_stack * theStack,void DestFunc(void * a)) { ^~~~~~~~~~~~ red_black_tree.c:86:6: warning: no previous prototype for 'LeftRotate' [-Wmissing-prototypes] void LeftRotate(rb_red_blk_tree* tree, rb_red_blk_node* x) { ^~~~~~~~~~ red_black_tree.c:141:6: warning: no previous prototype for 'RightRotate' [-Wmissing-prototypes] void RightRotate(rb_red_blk_tree* tree, rb_red_blk_node* y) { ^~~~~~~~~~~ red_black_tree.c:192:6: warning: no previous prototype for 'TreeInsertHelp' [-Wmissing-prototypes] void TreeInsertHelp(rb_red_blk_tree* tree, rb_red_blk_node* z) { ^~~~~~~~~~~~~~ red_black_tree.c:385:6: warning: no previous prototype for 'InorderTreePrint' [-Wmissing-prototypes] void InorderTreePrint(rb_red_blk_tree* tree, rb_red_blk_node* x) { ^~~~~~~~~~~~~~~~ red_black_tree.c:421:6: warning: no previous prototype for 'TreeDestHelper' [-Wmissing-prototypes] void TreeDestHelper(rb_red_blk_tree* tree, rb_red_blk_node* x) { ^~~~~~~~~~~~~~ red_black_tree.c:522:6: warning: no previous prototype for 'RBDeleteFixUp' [-Wmissing-prototypes] void RBDeleteFixUp(rb_red_blk_tree* tree, rb_red_blk_node* x) { ^~~~~~~~~~~~~ red_black_tree.c: In function 'RBEnumerate': red_black_tree.c:668:20: warning: variable 'lastBest' might be clobbered by 'longjmp' or 'vfork' [-Wclobbered] rb_red_blk_node* lastBest=nil; ^~~~~~~~ CCLD librbtree_C.la make[6]: Leaving directory '/jenkins/jobs/oi-userland/workspace/components/image/graphviz/build/i86/lib/rbtree' Making all in ortho make[6]: Entering directory '/jenkins/jobs/oi-userland/workspace/components/image/graphviz/build/i86/lib/ortho' CC partition.lo CC fPQ.lo CC ortho.lo CC maze.lo CC rawgraph.lo CC sgraph.lo CC trapezoid.lo In file included from rawgraph.c:19:0: rawgraph.c: In function 'make_graph': /jenkins/jobs/oi-userland/workspace/components/image/graphviz/graphviz-2.40.1/lib/common/memory.h:36:41: warning: conversion to 'unsigned int' from 'int' may change the sign of the result [-Wsign-conversion] #define N_NEW(n,t) (t*)zmalloc((n)*sizeof(t)) ^ rawgraph.c:32:19: note: in expansion of macro 'N_NEW' g->vertices = N_NEW(n, vertex); ^~~~~ rawgraph.c: In function 'mkStack': /jenkins/jobs/oi-userland/workspace/components/image/graphviz/graphviz-2.40.1/lib/common/memory.h:36:41: warning: conversion to 'unsigned int' from 'int' may change the sign of the result [-Wsign-conversion] #define N_NEW(n,t) (t*)zmalloc((n)*sizeof(t)) ^ rawgraph.c:84:16: note: in expansion of macro 'N_NEW' sp->vals = N_NEW(i,int); ^~~~~ In file included from fPQ.c:17:0: fPQ.c: In function 'PQgen': /jenkins/jobs/oi-userland/workspace/components/image/graphviz/graphviz-2.40.1/lib/common/memory.h:36:41: warning: conversion to 'unsigned int' from 'int' may change the sign of the result [-Wsign-conversion] #define N_NEW(n,t) (t*)zmalloc((n)*sizeof(t)) ^ fPQ.c:31:10: note: in expansion of macro 'N_NEW' pq = N_NEW(sz+1,snode*); ^~~~~ trapezoid.c: In function 'add_segment': trapezoid.c:437:7: warning: variable 'tritop' set but not used [-Wunused-but-set-variable] int tritop = 0, tribot = 0, is_swapped; ^~~~~~ trapezoid.c: In function 'math_N': trapezoid.c:1040:10: warning: cast from function call of type 'double' to non-matching type 'int' [-Wbad-function-cast] return (int) ceil((double) 1.0*n/v); ^ In file included from trapezoid.c:26:0: trapezoid.c: In function 'construct_trapezoids': /jenkins/jobs/oi-userland/workspace/components/image/graphviz/graphviz-2.40.1/lib/common/memory.h:36:41: warning: conversion to 'unsigned int' from 'int' may change the sign of the result [-Wsign-conversion] #define N_NEW(n,t) (t*)zmalloc((n)*sizeof(t)) ^ trapezoid.c:1055:10: note: in expansion of macro 'N_NEW' qs = N_NEW (2*ntraps, qnode_t); ^~~~~ trapezoid.c:1057:33: warning: conversion to 'unsigned int' from 'int' may change the sign of the result [-Wsign-conversion] memset((void *)tr, 0, ntraps*sizeof(trap_t)); ^ maze.c: In function 'psdump': maze.c:65:18: warning: conversion to 'int' from 'double' may alter its value [-Wfloat-conversion] absbb.UR.x = absbb.LL.x + BB.UR.x - BB.LL.x; ^~~~~ maze.c:66:18: warning: conversion to 'int' from 'double' may alter its value [-Wfloat-conversion] absbb.UR.y = absbb.LL.y + BB.UR.y - BB.LL.y; ^~~~~ maze.c: In function 'vcmpid': maze.c:90:14: warning: unused parameter 'd' [-Wunused-parameter] vcmpid(Dt_t* d, pointf* key1, pointf* key2, Dtdisc_t* disc) ^ maze.c:90:55: warning: unused parameter 'disc' [-Wunused-parameter] vcmpid(Dt_t* d, pointf* key1, pointf* key2, Dtdisc_t* disc) ^~~~ maze.c: In function 'hcmpid': maze.c:100:14: warning: unused parameter 'd' [-Wunused-parameter] hcmpid(Dt_t* d, pointf* key1, pointf* key2, Dtdisc_t* disc) ^ maze.c:100:55: warning: unused parameter 'disc' [-Wunused-parameter] hcmpid(Dt_t* d, pointf* key1, pointf* key2, Dtdisc_t* disc) ^~~~ maze.c: In function 'updateWt': maze.c:154:17: warning: unused parameter 'cp' [-Wunused-parameter] updateWt (cell* cp, sedge* ep, int sz) ^~ maze.c: In function 'updateWts': maze.c:144:19: warning: conversion to 'int' from 'double' may alter its value [-Wfloat-conversion] #define CHANSZ(w) (((w)-3)/2) ^ maze.c:175:15: note: in expansion of macro 'CHANSZ' int hsz = CHANSZ (cp->bb.UR.y - cp->bb.LL.y); ^~~~~~ maze.c:144:19: warning: conversion to 'int' from 'double' may alter its value [-Wfloat-conversion] #define CHANSZ(w) (((w)-3)/2) ^ maze.c:176:15: note: in expansion of macro 'CHANSZ' int vsz = CHANSZ (cp->bb.UR.x - cp->bb.LL.x); ^~~~~~ maze.c: In function 'markSmall': maze.c:197:30: warning: unused parameter 'g' [-Wunused-parameter] markSmall (cell* cp, sgraph* g) ^ In file included from maze.c:22:0: maze.c: In function 'mkMazeGraph': /jenkins/jobs/oi-userland/workspace/components/image/graphviz/graphviz-2.40.1/lib/common/memory.h:36:41: warning: conversion to 'unsigned int' from 'int' may change the sign of the result [-Wsign-conversion] #define N_NEW(n,t) (t*)zmalloc((n)*sizeof(t)) ^ maze.c:328:25: note: in expansion of macro 'N_NEW' snodeitem* ditems = N_NEW(bound, snodeitem); ^~~~~ /jenkins/jobs/oi-userland/workspace/components/image/graphviz/graphviz-2.40.1/lib/common/memory.h:36:41: warning: conversion to 'unsigned int' from 'int' may change the sign of the result [-Wsign-conversion] #define N_NEW(n,t) (t*)zmalloc((n)*sizeof(t)) ^ maze.c:335:13: note: in expansion of macro 'N_NEW' sides = N_NEW(4*mp->ncells, snode*); ^~~~~ /jenkins/jobs/oi-userland/workspace/components/image/graphviz/graphviz-2.40.1/lib/common/memory.h:36:41: warning: conversion to 'unsigned int' from 'int' may change the sign of the result [-Wsign-conversion] #define N_NEW(n,t) (t*)zmalloc((n)*sizeof(t)) ^ maze.c:374:13: note: in expansion of macro 'N_NEW' sides = N_NEW(g->nnodes, snode*); ^~~~~ maze.c:323:20: warning: variable 'ncnt' set but not used [-Wunused-but-set-variable] int nsides, i, ncnt, maxdeg; ^~~~ In file included from maze.c:22:0: maze.c: In function 'mkMaze': /jenkins/jobs/oi-userland/workspace/components/image/graphviz/graphviz-2.40.1/lib/common/memory.h:36:41: warning: conversion to 'unsigned int' from 'int' may change the sign of the result [-Wsign-conversion] #define N_NEW(n,t) (t*)zmalloc((n)*sizeof(t)) ^ maze.c:461:23: note: in expansion of macro 'N_NEW' cp = mp->gcells = N_NEW(mp->ngcells, cell); ^~~~~ /jenkins/jobs/oi-userland/workspace/components/image/graphviz/graphviz-2.40.1/lib/common/memory.h:36:41: warning: conversion to 'unsigned int' from 'int' may change the sign of the result [-Wsign-conversion] #define N_NEW(n,t) (t*)zmalloc((n)*sizeof(t)) ^ maze.c:496:17: note: in expansion of macro 'N_NEW' mp->cells = N_NEW(nrect, cell); ^~~~~ partition.c: In function 'generateRandomOrdering': partition.c:157:6: warning: conversion to 'int' from 'double' may alter its value [-Wfloat-conversion] j = i + drand48() * (n + 1 - i); ^ partition.c: In function 'traverse_polygon': partition.c:334:26: warning: comparing floating point with == or != is unsafe [-Wfloat-equal] (seg[t->lseg].v0.x == seg[t->lseg].v1.x) && ^~ ortho.c: In function 'setSeg': partition.c:335:26: warning: comparing floating point with == or != is unsafe [-Wfloat-equal] (seg[t->rseg].v0.x == seg[t->rseg].v1.x)) { ^~ ortho.c:113:18: warning: conversion to 'boolean {aka unsigned char}' from 'int' may alter its value [-Wconversion] sp->isVert = dir; ^~~ In file included from ortho.c:32:0: ortho.c: In function 'convertSPtoRoute': /jenkins/jobs/oi-userland/workspace/components/image/graphviz/graphviz-2.40.1/lib/common/memory.h:36:41: warning: conversion to 'unsigned int' from 'int' may change the sign of the result [-Wsign-conversion] #define N_NEW(n,t) (t*)zmalloc((n)*sizeof(t)) ^ ortho.c:158:16: note: in expansion of macro 'N_NEW' rte.segs = N_NEW(sz-2, segment); /* at most sz-2 segments */ ^~~~~ ortho.c:235:40: warning: conversion to 'unsigned int' from 'int' may change the sign of the result [-Wsign-conversion] rte.segs = realloc (rte.segs, rte.n*sizeof(segment)); ^ ortho.c: In function 'freeChannel': ortho.c:253:20: warning: unused parameter 'd' [-Wunused-parameter] freeChannel (Dt_t* d, channel* cp, Dtdisc_t* disc) ^ ortho.c:253:46: warning: unused parameter 'disc' [-Wunused-parameter] freeChannel (Dt_t* d, channel* cp, Dtdisc_t* disc) ^~~~ ortho.c: In function 'freeChanItem': ortho.c:261:21: warning: unused parameter 'd' [-Wunused-parameter] freeChanItem (Dt_t* d, chanItem* cp, Dtdisc_t* disc) ^ ortho.c:261:48: warning: unused parameter 'disc' [-Wunused-parameter] freeChanItem (Dt_t* d, chanItem* cp, Dtdisc_t* disc) ^~~~ ortho.c: In function 'chancmpid': ortho.c:277:17: warning: unused parameter 'd' [-Wunused-parameter] chancmpid(Dt_t* d, paird* key1, paird* key2, Dtdisc_t* disc) ^ ortho.c:277:56: warning: unused parameter 'disc' [-Wunused-parameter] chancmpid(Dt_t* d, paird* key1, paird* key2, Dtdisc_t* disc) ^~~~ ortho.c: In function 'dcmpid': ortho.c:291:14: warning: unused parameter 'd' [-Wunused-parameter] dcmpid(Dt_t* d, double* key1, double* key2, Dtdisc_t* disc) ^ ortho.c:291:55: warning: unused parameter 'disc' [-Wunused-parameter] dcmpid(Dt_t* d, double* key1, double* key2, Dtdisc_t* disc) ^~~~ partition.c:326:7: warning: variable 'do_switch' set but not used [-Wunused-but-set-variable] int do_switch = FALSE; ^~~~~~~~~ partition.c:325:7: warning: variable 'retval' set but not used [-Wunused-but-set-variable] int retval; ^~~~~~ In file included from partition.c:18:0: partition.c: In function 'monotonate_trapezoids': /jenkins/jobs/oi-userland/workspace/components/image/graphviz/graphviz-2.40.1/lib/common/memory.h:36:41: warning: conversion to 'unsigned int' from 'int' may change the sign of the result [-Wsign-conversion] #define N_NEW(n,t) (t*)zmalloc((n)*sizeof(t)) ^ partition.c:621:20: note: in expansion of macro 'N_NEW' int* visited = N_NEW(tr_size,int); ^~~~~ /jenkins/jobs/oi-userland/workspace/components/image/graphviz/graphviz-2.40.1/lib/common/memory.h:36:41: warning: conversion to 'unsigned int' from 'int' may change the sign of the result [-Wsign-conversion] #define N_NEW(n,t) (t*)zmalloc((n)*sizeof(t)) ^ partition.c:623:14: note: in expansion of macro 'N_NEW' mchain = N_NEW(tr_size, monchain_t); ^~~~~ /jenkins/jobs/oi-userland/workspace/components/image/graphviz/graphviz-2.40.1/lib/common/memory.h:36:41: warning: conversion to 'unsigned int' from 'int' may change the sign of the result [-Wsign-conversion] #define N_NEW(n,t) (t*)zmalloc((n)*sizeof(t)) ^ partition.c:624:12: note: in expansion of macro 'N_NEW' vert = N_NEW(nsegs+1,vertexchain_t); ^~~~~ In file included from ortho.c:32:0: ortho.c: In function 'insertChan': /jenkins/jobs/oi-userland/workspace/components/image/graphviz/graphviz-2.40.1/lib/common/memory.h:36:41: warning: conversion to 'unsigned int' from 'int' may change the sign of the result [-Wsign-conversion] #define N_NEW(n,t) (t*)zmalloc((n)*sizeof(t)) ^ partition.c:625:11: note: in expansion of macro 'N_NEW' mon = N_NEW(nsegs, int); ^~~~~ /jenkins/jobs/oi-userland/workspace/components/image/graphviz/graphviz-2.40.1/lib/common/memory.h:41:62: warning: conversion to 'unsigned int' from 'int' may change the sign of the result [-Wsign-conversion] #define ALLOC(size,ptr,type) (ptr? (type*)grealloc(ptr,(size)*sizeof(type)):(type*)gmalloc((size)*sizeof(type))) ^ ortho.c:414:22: note: in expansion of macro 'ALLOC' chan->seg_list = ALLOC(chan->cnt, chan->seg_list, segment*); ^~~~~ /jenkins/jobs/oi-userland/workspace/components/image/graphviz/graphviz-2.40.1/lib/common/memory.h:41:98: warning: conversion to 'unsigned int' from 'int' may change the sign of the result [-Wsign-conversion] #define ALLOC(size,ptr,type) (ptr? (type*)grealloc(ptr,(size)*sizeof(type)):(type*)gmalloc((size)*sizeof(type))) ^ ortho.c:414:22: note: in expansion of macro 'ALLOC' chan->seg_list = ALLOC(chan->cnt, chan->seg_list, segment*); ^~~~~ partition.c: At top level: partition.c:688:5: warning: "DEBUG" is not defined, evaluates to 0 [-Wundef] #if DEBUG > 1 ^~~~~ ortho.c: In function 'addLoop': In file included from partition.c:18:0: partition.c: In function 'partition': ortho.c:462:9: warning: variable 'wt' set but not used [-Wunused-but-set-variable] double wt; ^~ /jenkins/jobs/oi-userland/workspace/components/image/graphviz/graphviz-2.40.1/lib/common/memory.h:39:41: warning: conversion to 'unsigned int' from 'int' may change the sign of the result [-Wsign-conversion] #define N_GNEW(n,t) (t*)gmalloc((n)*sizeof(t)) ^ partition.c:722:23: note: in expansion of macro 'N_GNEW' segment_t* segs = N_GNEW(nsegs+1, segment_t); ^~~~~~ /jenkins/jobs/oi-userland/workspace/components/image/graphviz/graphviz-2.40.1/lib/common/memory.h:36:41: warning: conversion to 'unsigned int' from 'int' may change the sign of the result [-Wsign-conversion] #define N_NEW(n,t) (t*)zmalloc((n)*sizeof(t)) ^ partition.c:723:20: note: in expansion of macro 'N_NEW' int* permute = N_NEW(nsegs+1, int); ^~~~~ ortho.c: In function 'addNodeEdges': ortho.c:498:9: warning: variable 'wt' set but not used [-Wunused-but-set-variable] double wt; ^~ /jenkins/jobs/oi-userland/workspace/components/image/graphviz/graphviz-2.40.1/lib/common/memory.h:39:41: warning: conversion to 'unsigned int' from 'int' may change the sign of the result [-Wsign-conversion] #define N_GNEW(n,t) (t*)gmalloc((n)*sizeof(t)) ^ partition.c:728:19: note: in expansion of macro 'N_GNEW' trap_t* trs = N_GNEW(ntraps, trap_t); ^~~~~~ /jenkins/jobs/oi-userland/workspace/components/image/graphviz/graphviz-2.40.1/lib/common/memory.h:36:41: warning: conversion to 'unsigned int' from 'int' may change the sign of the result [-Wsign-conversion] #define N_NEW(n,t) (t*)zmalloc((n)*sizeof(t)) ^ partition.c:729:24: note: in expansion of macro 'N_NEW' boxf* hor_decomp = N_NEW(ntraps, boxf); ^~~~~ /jenkins/jobs/oi-userland/workspace/components/image/graphviz/graphviz-2.40.1/lib/common/memory.h:36:41: warning: conversion to 'unsigned int' from 'int' may change the sign of the result [-Wsign-conversion] #define N_NEW(n,t) (t*)zmalloc((n)*sizeof(t)) ^ partition.c:730:25: note: in expansion of macro 'N_NEW' boxf* vert_decomp = N_NEW(ntraps, boxf); ^~~~~ ortho.c: In function 'bendToStr': ortho.c:520:3: warning: switch missing default case [-Wswitch-default] switch (b) { ^~~~~~ /jenkins/jobs/oi-userland/workspace/components/image/graphviz/graphviz-2.40.1/lib/common/memory.h:36:41: warning: conversion to 'unsigned int' from 'int' may change the sign of the result [-Wsign-conversion] #define N_NEW(n,t) (t*)zmalloc((n)*sizeof(t)) ^ partition.c:755:10: note: in expansion of macro 'N_NEW' rs = N_NEW (hd_size*vd_size, boxf); ^~~~~ /jenkins/jobs/oi-userland/workspace/components/image/graphviz/graphviz-2.40.1/lib/common/memory.h:42:58: warning: conversion to 'unsigned int' from 'int' may change the sign of the result [-Wsign-conversion] #define RALLOC(size,ptr,type) ((type*)grealloc(ptr,(size)*sizeof(type))) ^ partition.c:761:10: note: in expansion of macro 'RALLOC' rs = RALLOC (cnt, rs, boxf); ^~~~~~ partition.c:731:9: warning: variable 'nt' set but not used [-Wunused-but-set-variable] int nt; ^~ ortho.c: In function 'assignTrackNo': ortho.c:588:47: warning: conversion to 'int' from 'double' may alter its value [-Wfloat-conversion] if (odb_flags & ODB_CHANG) dumpChanG (cp, ((chanItem*)l1)->v); ^ ortho.c: In function 'overlapSeg': ortho.c:633:18: warning: comparing floating point with == or != is unsafe [-Wfloat-equal] else if(S1->p.p2==S2->p.p2) { ^~ ortho.c: In function 'segCmp': ortho.c:665:21: warning: comparing floating point with == or != is unsafe [-Wfloat-equal] else if(S1->p.p1==S2->p.p1) { ^~ ortho.c:666:13: warning: comparing floating point with == or != is unsafe [-Wfloat-equal] if(S1->p.p2==S2->p.p2) { ^~ ortho.c:712:21: warning: comparing floating point with == or != is unsafe [-Wfloat-equal] else if(S1->p.p2==S2->p.p1) { ^~ ortho.c: In function 'seg_cmp': ortho.c:743:46: warning: comparing floating point with == or != is unsafe [-Wfloat-equal] if(S1->isVert!=S2->isVert||S1->comm_coord!=S2->comm_coord) { ^~ ortho.c: In function 'add_edges_in_G': ortho.c:763:6: warning: switch missing default case [-Wswitch-default] switch (seg_cmp(seg_list[x],seg_list[y])) { ^~~~~~ ortho.c: In function 'propagate_prec': ortho.c:820:25: warning: comparing floating point with == or != is unsafe [-Wfloat-equal] if(next->comm_coord==current->p.p1) { ^~ ortho.c:828:25: warning: comparing floating point with == or != is unsafe [-Wfloat-equal] if(next->comm_coord==current->p.p1) { ^~ In file included from /jenkins/jobs/oi-userland/workspace/components/image/graphviz/graphviz-2.40.1/lib/common/types.h:21:0, from ./structures.h:17, from ./sgraph.h:17, from ./maze.h:17, from ortho.c:30: ortho.c: In function 'is_parallel': ortho.c:843:27: warning: comparing floating point with == or != is unsafe [-Wfloat-equal] assert (s1->comm_coord==s2->comm_coord); ^ ortho.c:844:22: warning: comparing floating point with == or != is unsafe [-Wfloat-equal] return ((s1->p.p1==s2->p.p1)&& ^~ ortho.c:845:22: warning: comparing floating point with == or != is unsafe [-Wfloat-equal] (s1->p.p2==s2->p.p2)&& ^~ ortho.c: In function 'set_parallel_edges': ortho.c:907:26: warning: comparing floating point with == or != is unsafe [-Wfloat-equal] if(prev1->comm_coord==seg1->p.p1) { ^~ ortho.c:938:26: warning: comparing floating point with == or != is unsafe [-Wfloat-equal] if(prev1->comm_coord==seg1->p.p1) { ^~ ortho.c: In function 'addPEdges': ortho.c:1028:32: warning: comparing floating point with == or != is unsafe [-Wfloat-equal] if(segs[i]->prev->comm_coord==segs[j]->prev->comm_coord) ^~ ortho.c:1049:4: warning: switch missing default case [-Wswitch-default] switch(prec2) { ^~~~~~ ortho.c:1041:7: warning: switch missing default case [-Wswitch-default] switch(prec1) { ^~~~~~ ortho.c: In function 'assignTracks': ortho.c:1093:19: warning: unused parameter 'nrtes' [-Wunused-parameter] assignTracks (int nrtes, route* route_list, maze* mp) ^~~~~ ortho.c:1093:33: warning: unused parameter 'route_list' [-Wunused-parameter] assignTracks (int nrtes, route* route_list, maze* mp) ^~~~~~~~~~ ortho.c: In function 'htrack': ortho.c:1129:13: warning: conversion to 'int' from 'double' may alter its value [-Wfloat-conversion] return lo + f*(hi-lo); ~~~^~~~~~~~~~~ In file included from ortho.c:32:0: ortho.c: In function 'attachOrthoEdges': /jenkins/jobs/oi-userland/workspace/components/image/graphviz/graphviz-2.40.1/lib/common/memory.h:39:41: warning: conversion to 'unsigned int' from 'int' may change the sign of the result [-Wsign-conversion] #define N_GNEW(n,t) (t*)gmalloc((n)*sizeof(t)) ^ ortho.c:1162:13: note: in expansion of macro 'N_GNEW' ispline = N_GNEW(npts, pointf); ^~~~~~ ortho.c: In function 'spline_merge': ortho.c:1219:38: warning: unused parameter 'n' [-Wunused-parameter] static boolean spline_merge(node_t * n) ^ ortho.c: In function 'swap_ends_p': ortho.c:1224:37: warning: unused parameter 'e' [-Wunused-parameter] static boolean swap_ends_p(edge_t * e) ^ ortho.c: At top level: ortho.c:1237:1: warning: no previous prototype for 'orthoEdges' [-Wmissing-prototypes] orthoEdges (Agraph_t* g, int doLbls) ^~~~~~~~~~ In file included from ortho.c:32:0: ortho.c: In function 'orthoEdges': /jenkins/jobs/oi-userland/workspace/components/image/graphviz/graphviz-2.40.1/lib/common/memory.h:39:41: warning: conversion to 'unsigned int' from 'int' may change the sign of the result [-Wsign-conversion] #define N_GNEW(n,t) (t*)gmalloc((n)*sizeof(t)) ^ ortho.c:1248:19: note: in expansion of macro 'N_GNEW' epair_t* es = N_GNEW(agnedges(g), epair_t); ^~~~~~ ortho.c:1264:3: warning: switch missing default case [-Wswitch-default] switch (c) { ^~~~~~ In file included from sgraph.c:18:0: sgraph.c: In function 'initSEdges': /jenkins/jobs/oi-userland/workspace/components/image/graphviz/graphviz-2.40.1/lib/common/memory.h:36:41: warning: conversion to 'unsigned int' from 'int' may change the sign of the result [-Wsign-conversion] #define N_NEW(n,t) (t*)zmalloc((n)*sizeof(t)) ^ sgraph.c:116:16: note: in expansion of macro 'N_NEW' int* adj = N_NEW (6*g->nnodes + 2*maxdeg, int); ^~~~~ In file included from ortho.c:32:0: /jenkins/jobs/oi-userland/workspace/components/image/graphviz/graphviz-2.40.1/lib/common/memory.h:36:41: warning: conversion to 'unsigned int' from 'int' may change the sign of the result [-Wsign-conversion] #define N_NEW(n,t) (t*)zmalloc((n)*sizeof(t)) ^ ortho.c:1318:18: note: in expansion of macro 'N_NEW' route_list = N_NEW (n_edges, route); ^~~~~ /jenkins/jobs/oi-userland/workspace/components/image/graphviz/graphviz-2.40.1/lib/common/memory.h:36:41: warning: conversion to 'unsigned int' from 'int' may change the sign of the result [-Wsign-conversion] #define N_NEW(n,t) (t*)zmalloc((n)*sizeof(t)) ^ sgraph.c:117:16: note: in expansion of macro 'N_NEW' g->edges = N_NEW (3*g->nnodes + maxdeg, sedge); ^~~~~ ortho.c:1320:23: warning: conversion to 'size_t {aka unsigned int}' from 'int' may change the sign of the result [-Wsign-conversion] qsort((char *)es, n_edges, sizeof(epair_t), (qsort_cmpf) edgecmp); ^~~~~~~ sgraph.c: In function 'createSGraph': /jenkins/jobs/oi-userland/workspace/components/image/graphviz/graphviz-2.40.1/lib/common/memory.h:36:41: warning: conversion to 'unsigned int' from 'int' may change the sign of the result [-Wsign-conversion] #define N_NEW(n,t) (t*)zmalloc((n)*sizeof(t)) ^ sgraph.c:135:16: note: in expansion of macro 'N_NEW' g->nodes = N_NEW(nnodes, snode); ^~~~~ sgraph.c: In function 'addEdgeToNode': sgraph.c:149:34: warning: unused parameter 'e' [-Wunused-parameter] addEdgeToNode (snode* np, sedge* e, int idx) ^ sgraph.c: In function 'shortPath': sgraph.c:244:7: warning: conversion to 'int' from 'double' may alter its value [-Wfloat-conversion] d = -(N_VAL(n) + E_WT(e)); ^ ortho.c: In function 'coordOf': ortho.c:1420:8: warning: conversion to 'int' from 'double' may alter its value [-Wfloat-conversion] p.x = (cp->bb.LL.x + cp->bb.UR.x)/2; ^ ortho.c:1421:8: warning: conversion to 'int' from 'double' may alter its value [-Wfloat-conversion] p.y = cp->bb.UR.y; ^~ ortho.c:1424:8: warning: conversion to 'int' from 'double' may alter its value [-Wfloat-conversion] p.x = (cp->bb.LL.x + cp->bb.UR.x)/2; ^ ortho.c:1425:8: warning: conversion to 'int' from 'double' may alter its value [-Wfloat-conversion] p.y = cp->bb.LL.y; ^~ ortho.c:1428:8: warning: conversion to 'int' from 'double' may alter its value [-Wfloat-conversion] p.y = (cp->bb.LL.y + cp->bb.UR.y)/2; ^ ortho.c:1429:8: warning: conversion to 'int' from 'double' may alter its value [-Wfloat-conversion] p.x = cp->bb.LL.x; ^~ ortho.c:1432:8: warning: conversion to 'int' from 'double' may alter its value [-Wfloat-conversion] p.y = (cp->bb.LL.y + cp->bb.UR.y)/2; ^ ortho.c:1433:8: warning: conversion to 'int' from 'double' may alter its value [-Wfloat-conversion] p.x = cp->bb.UR.x; ^~ ortho.c: In function 'emitEdge': ortho.c:1445:6: warning: conversion to 'int' from 'double' may alter its value [-Wfloat-conversion] x = vtrack(seg, m); ^~~~~~ ortho.c:1446:6: warning: conversion to 'int' from 'double' may alter its value [-Wfloat-conversion] y = (n.UR.y + n.LL.y)/2; ^ ortho.c:1450:6: warning: conversion to 'int' from 'double' may alter its value [-Wfloat-conversion] x = (n.UR.x + n.LL.x)/2; ^ ortho.c:1461:10: warning: conversion to 'int' from 'double' may alter its value [-Wfloat-conversion] x = vtrack(seg, m); ^~~~~~ ortho.c:1475:6: warning: conversion to 'int' from 'double' may alter its value [-Wfloat-conversion] x = vtrack(seg, m); ^~~~~~ ortho.c:1476:6: warning: conversion to 'int' from 'double' may alter its value [-Wfloat-conversion] y = (n.UR.y + n.LL.y)/2; ^ ortho.c:1480:6: warning: conversion to 'int' from 'double' may alter its value [-Wfloat-conversion] x = (n.LL.x + n.UR.x)/2; ^ ortho.c:1439:58: warning: unused parameter 'ix' [-Wunused-parameter] emitEdge (FILE* fp, Agedge_t* e, route rte, maze* m, int ix, boxf bb) ^~ ortho.c: In function 'emitSearchGraph': ortho.c:1506:12: warning: conversion to 'int' from 'double' may alter its value [-Wfloat-conversion] p.x = pf.x; ^~ ortho.c:1507:12: warning: conversion to 'int' from 'double' may alter its value [-Wfloat-conversion] p.y = pf.y; ^~ ortho.c: In function 'emitGraph': ortho.c:1555:17: warning: conversion to 'int' from 'double' may alter its value [-Wfloat-conversion] bbox.LL.x = absbb.LL.x + TRANS; ^~~~~ ortho.c:1556:17: warning: conversion to 'int' from 'double' may alter its value [-Wfloat-conversion] bbox.LL.y = absbb.LL.y + TRANS; ^~~~~ ortho.c:1557:17: warning: conversion to 'int' from 'double' may alter its value [-Wfloat-conversion] bbox.UR.x = absbb.UR.x + TRANS; ^~~~~ ortho.c:1558:17: warning: conversion to 'int' from 'double' may alter its value [-Wfloat-conversion] bbox.UR.y = absbb.UR.y + TRANS; ^~~~~ ortho.c: In function 'add_p_edges': ortho.c:1045:6: warning: 'prec' may be used uninitialized in this function [-Wmaybe-uninitialized] if(prec2==1) ^ ortho.c:857:9: note: 'prec' was declared here int prec, ans = 0, temp; ^~~~ ortho.c:1041:7: warning: 'prec' may be used uninitialized in this function [-Wmaybe-uninitialized] switch(prec1) { ^~~~~~ ortho.c:857:9: note: 'prec' was declared here int prec, ans = 0, temp; ^~~~ ortho.c: In function 'orthoEdges': ortho.c:1251:15: warning: variable 'ps' might be clobbered by 'longjmp' or 'vfork' [-Wclobbered] PointSet* ps; ^~ ortho.c:1237:30: warning: argument 'doLbls' might be clobbered by 'longjmp' or 'vfork' [-Wclobbered] orthoEdges (Agraph_t* g, int doLbls) ^~~~~~ CCLD libortho_C.la make[6]: Leaving directory '/jenkins/jobs/oi-userland/workspace/components/image/graphviz/build/i86/lib/ortho' Making all in sparse make[6]: Entering directory '/jenkins/jobs/oi-userland/workspace/components/image/graphviz/build/i86/lib/sparse' CC SparseMatrix.lo CC colorutil.lo CC general.lo CC IntStack.lo CC DotIO.lo CC LinkedList.lo CC BinaryHeap.lo CC vector.lo SparseMatrix.c:23:5: warning: "PQ" is not defined, evaluates to 0 [-Wundef] #if PQ ^~ SparseMatrix.c: In function 'size_of_matrix_type': SparseMatrix.c:51:10: warning: conversion to 'size_t {aka unsigned int}' from 'int' may change the sign of the result [-Wsign-conversion] return size; ^~~~ SparseMatrix.c: In function 'SparseMatrix_init': SparseMatrix.c:306:13: warning: conversion to 'int' from 'size_t {aka unsigned int}' may change the sign of the result [-Wsign-conversion] A->size = sz; ^~ SparseMatrix.c: In function 'SparseMatrix_alloc': SparseMatrix.c:336:26: warning: conversion to 'size_t {aka unsigned int}' from 'int' may change the sign of the result [-Wsign-conversion] A->a = MALLOC(A->size*nz_t); ^ SparseMatrix.c:343:28: warning: conversion to 'size_t {aka unsigned int}' from 'int' may change the sign of the result [-Wsign-conversion] A->a = MALLOC(A->size*nz_t); ^ SparseMatrix.c: In function 'SparseMatrix_realloc': SparseMatrix.c:361:30: warning: conversion to 'size_t {aka unsigned int}' from 'int' may change the sign of the result [-Wsign-conversion] A->a = REALLOC(A->a, A->size*nz_t); ^ SparseMatrix.c:363:23: warning: conversion to 'size_t {aka unsigned int}' from 'int' may change the sign of the result [-Wsign-conversion] A->a = MALLOC(A->size*nz_t); ^ SparseMatrix.c:373:30: warning: conversion to 'size_t {aka unsigned int}' from 'int' may change the sign of the result [-Wsign-conversion] A->a = REALLOC(A->a, A->size*nz_t); ^ SparseMatrix.c:375:23: warning: conversion to 'size_t {aka unsigned int}' from 'int' may change the sign of the result [-Wsign-conversion] A->a = MALLOC(A->size*nz_t); ^ SparseMatrix.c: At top level: SparseMatrix.c:420:6: warning: no previous prototype for 'SparseMatrix_print_csr' [-Wmissing-prototypes] void SparseMatrix_print_csr(char *c, SparseMatrix A){ ^~~~~~~~~~~~~~~~~~~~~~ SparseMatrix.c:481:6: warning: no previous prototype for 'SparseMatrix_print_coord' [-Wmissing-prototypes] void SparseMatrix_print_coord(char *c, SparseMatrix A){ ^~~~~~~~~~~~~~~~~~~~~~~~ SparseMatrix.c: In function 'SparseMatrix_export_binary_fp': SparseMatrix.c:637:32: warning: conversion to 'size_t {aka unsigned int}' from 'int' may change the sign of the result [-Wsign-conversion] fwrite(A->ia, sizeof(int), A->nz, f); ^ SparseMatrix.c:639:32: warning: conversion to 'size_t {aka unsigned int}' from 'int' may change the sign of the result [-Wsign-conversion] fwrite(A->ia, sizeof(int), A->m + 1, f); ^ SparseMatrix.c:641:30: warning: conversion to 'size_t {aka unsigned int}' from 'int' may change the sign of the result [-Wsign-conversion] fwrite(A->ja, sizeof(int), A->nz, f); ^ SparseMatrix.c:642:33: warning: conversion to 'size_t {aka unsigned int}' from 'int' may change the sign of the result [-Wsign-conversion] if (A->size > 0) fwrite(A->a, A->size, A->nz, f); ^ SparseMatrix.c:642:42: warning: conversion to 'size_t {aka unsigned int}' from 'int' may change the sign of the result [-Wsign-conversion] if (A->size > 0) fwrite(A->a, A->size, A->nz, f); ^ SparseMatrix.c: In function 'SparseMatrix_import_binary_fp': SparseMatrix.c:667:11: warning: conversion to 'int' from 'size_t {aka unsigned int}' may change the sign of the result [-Wsign-conversion] iread = fread(&m, sizeof(int), 1, f); ^~~~~ SparseMatrix.c:669:11: warning: conversion to 'int' from 'size_t {aka unsigned int}' may change the sign of the result [-Wsign-conversion] iread = fread(&n, sizeof(int), 1, f); ^~~~~ SparseMatrix.c:671:11: warning: conversion to 'int' from 'size_t {aka unsigned int}' may change the sign of the result [-Wsign-conversion] iread = fread(&nz, sizeof(int), 1, f); ^~~~~ SparseMatrix.c:673:11: warning: conversion to 'int' from 'size_t {aka unsigned int}' may change the sign of the result [-Wsign-conversion] iread = fread(&nzmax, sizeof(int), 1, f); ^~~~~ SparseMatrix.c:675:11: warning: conversion to 'int' from 'size_t {aka unsigned int}' may change the sign of the result [-Wsign-conversion] iread = fread(&type, sizeof(int), 1, f); ^~~~~ SparseMatrix.c:677:11: warning: conversion to 'int' from 'size_t {aka unsigned int}' may change the sign of the result [-Wsign-conversion] iread = fread(&format, sizeof(int), 1, f); ^~~~~ SparseMatrix.c:679:11: warning: conversion to 'int' from 'size_t {aka unsigned int}' may change the sign of the result [-Wsign-conversion] iread = fread(&property, sizeof(int), 1, f); ^~~~~ SparseMatrix.c:681:11: warning: conversion to 'int' from 'size_t {aka unsigned int}' may change the sign of the result [-Wsign-conversion] iread = fread(&sz, sizeof(size_t), 1, f); ^~~~~ SparseMatrix.c:689:39: warning: conversion to 'size_t {aka unsigned int}' from 'int' may change the sign of the result [-Wsign-conversion] iread = fread(A->ia, sizeof(int), A->nz, f); ^ SparseMatrix.c:689:13: warning: conversion to 'int' from 'size_t {aka unsigned int}' may change the sign of the result [-Wsign-conversion] iread = fread(A->ia, sizeof(int), A->nz, f); ^~~~~ SparseMatrix.c:692:39: warning: conversion to 'size_t {aka unsigned int}' from 'int' may change the sign of the result [-Wsign-conversion] iread = fread(A->ia, sizeof(int), A->m + 1, f); ^ SparseMatrix.c:692:13: warning: conversion to 'int' from 'size_t {aka unsigned int}' may change the sign of the result [-Wsign-conversion] iread = fread(A->ia, sizeof(int), A->m + 1, f); ^~~~~ SparseMatrix.c:695:37: warning: conversion to 'size_t {aka unsigned int}' from 'int' may change the sign of the result [-Wsign-conversion] iread = fread(A->ja, sizeof(int), A->nz, f); ^ SparseMatrix.c:695:11: warning: conversion to 'int' from 'size_t {aka unsigned int}' may change the sign of the result [-Wsign-conversion] iread = fread(A->ja, sizeof(int), A->nz, f); ^~~~~ SparseMatrix.c:699:25: warning: conversion to 'size_t {aka unsigned int}' from 'int' may change the sign of the result [-Wsign-conversion] iread = fread(A->a, A->size, A->nz, f); ^ SparseMatrix.c:699:34: warning: conversion to 'size_t {aka unsigned int}' from 'int' may change the sign of the result [-Wsign-conversion] iread = fread(A->a, A->size, A->nz, f); ^ SparseMatrix.c:699:13: warning: conversion to 'int' from 'size_t {aka unsigned int}' may change the sign of the result [-Wsign-conversion] iread = fread(A->a, A->size, A->nz, f); ^~~~~ general.c: In function 'vector_percentile': general.c:47:7: warning: conversion to 'int' from 'double' may alter its value [-Wfloat-conversion] i = n*y; ^ SparseMatrix.c: In function 'SparseMatrix_from_coordinate_format': SparseMatrix.c:809:87: warning: conversion to 'size_t {aka unsigned int}' from 'int' may change the sign of the result [-Wsign-conversion] return SparseMatrix_from_coordinate_arrays(A->nz, A->m, A->n, irn, jcn, a, A->type, A->size); ^ general.c: In function 'random_permutation': general.c:67:25: warning: conversion to 'unsigned int' from 'int' may change the sign of the result [-Wsign-conversion] p = MALLOC(sizeof(int)*n); ^ SparseMatrix.c: In function 'SparseMatrix_from_coordinate_format_not_compacted': SparseMatrix.c:824:101: warning: conversion to 'size_t {aka unsigned int}' from 'int' may change the sign of the result [-Wsign-conversion] return SparseMatrix_from_coordinate_arrays_not_compacted(A->nz, A->m, A->n, irn, jcn, a, A->type, A->size, what_to_sum); ^ general.c: In function 'vector_take': general.c:136:36: warning: conversion to 'unsigned int' from 'int' may change the sign of the result [-Wsign-conversion] if (!*u) *u = MALLOC(sizeof(real)*m); ^ general.c: In function 'vector_float_take': general.c:149:37: warning: conversion to 'unsigned int' from 'int' may change the sign of the result [-Wsign-conversion] if (!*u) *u = MALLOC(sizeof(float)*m); ^ general.c: At top level: general.c:158:5: warning: no previous prototype for 'comp_ascend' [-Wmissing-prototypes] int comp_ascend(const void *s1, const void *s2){ ^~~~~~~~~~~ general.c: In function 'comp_ascend': general.c:160:9: warning: cast discards 'const' qualifier from pointer target type [-Wcast-qual] ss1 = (real*) s1; ^ general.c:161:9: warning: cast discards 'const' qualifier from pointer target type [-Wcast-qual] ss2 = (real*) s2; ^ general.c: At top level: general.c:171:5: warning: no previous prototype for 'comp_descend' [-Wmissing-prototypes] int comp_descend(const void *s1, const void *s2){ ^~~~~~~~~~~~ general.c: In function 'comp_descend': general.c:173:9: warning: cast discards 'const' qualifier from pointer target type [-Wcast-qual] ss1 = (real*) s1; ^ general.c:174:9: warning: cast discards 'const' qualifier from pointer target type [-Wcast-qual] ss2 = (real*) s2; ^ general.c: At top level: general.c:183:5: warning: no previous prototype for 'comp_descend_int' [-Wmissing-prototypes] int comp_descend_int(const void *s1, const void *s2){ ^~~~~~~~~~~~~~~~ general.c: In function 'comp_descend_int': general.c:185:9: warning: cast discards 'const' qualifier from pointer target type [-Wcast-qual] ss1 = (int*) s1; ^ general.c:186:9: warning: cast discards 'const' qualifier from pointer target type [-Wcast-qual] ss2 = (int*) s2; ^ general.c: At top level: general.c:196:5: warning: no previous prototype for 'comp_ascend_int' [-Wmissing-prototypes] int comp_ascend_int(const void *s1, const void *s2){ ^~~~~~~~~~~~~~~ general.c: In function 'comp_ascend_int': general.c:198:9: warning: cast discards 'const' qualifier from pointer target type [-Wcast-qual] ss1 = (int*) s1; ^ general.c:199:9: warning: cast discards 'const' qualifier from pointer target type [-Wcast-qual] ss2 = (int*) s2; ^ general.c: In function 'vector_ordering': general.c:224:35: warning: conversion to 'unsigned int' from 'int' may change the sign of the result [-Wsign-conversion] if (!*p) *p = MALLOC(sizeof(int)*n); ^ general.c:225:28: warning: conversion to 'unsigned int' from 'int' may change the sign of the result [-Wsign-conversion] u = MALLOC(sizeof(real)*2*n); ^ SparseMatrix.c: In function 'SparseMatrix_from_coordinate_arrays_internal': SparseMatrix.c:936:31: warning: conversion to 'unsigned int' from 'int' may change the sign of the result [-Wsign-conversion] MEMCPY(A->a, val0, A->size*((size_t)nz)); ^ general.c:233:14: warning: conversion to 'size_t {aka unsigned int}' from 'int' may change the sign of the result [-Wsign-conversion] qsort(u, n, sizeof(real)*2, comp_ascend); ^ general.c:235:14: warning: conversion to 'size_t {aka unsigned int}' from 'int' may change the sign of the result [-Wsign-conversion] qsort(u, n, sizeof(real)*2, comp_descend); ^ general.c: In function 'vector_sort_real': general.c:245:14: warning: conversion to 'size_t {aka unsigned int}' from 'int' may change the sign of the result [-Wsign-conversion] qsort(v, n, sizeof(real), comp_ascend); ^ general.c:247:14: warning: conversion to 'size_t {aka unsigned int}' from 'int' may change the sign of the result [-Wsign-conversion] qsort(v, n, sizeof(real), comp_descend); ^ general.c: In function 'vector_sort_int': vector.c: In function 'Vector_new': general.c:252:14: warning: conversion to 'size_t {aka unsigned int}' from 'int' may change the sign of the result [-Wsign-conversion] qsort(v, n, sizeof(int), comp_ascend_int); ^ vector.c:26:29: warning: conversion to 'size_t {aka unsigned int}' from 'int' may change the sign of the result [-Wsign-conversion] v->v = malloc(size_of_elem*maxlen); ^ general.c:254:14: warning: conversion to 'size_t {aka unsigned int}' from 'int' may change the sign of the result [-Wsign-conversion] qsort(v, n, sizeof(int), comp_descend_int); ^ vector.c: At top level: vector.c:31:8: warning: no previous prototype for 'Vector_assign' [-Wmissing-prototypes] Vector Vector_assign(Vector v, void *stuff, int i){ ^~~~~~~~~~~~~ vector.c: In function 'Vector_assign': vector.c:32:42: warning: conversion to 'size_t {aka unsigned int}' from 'int' may change the sign of the result [-Wsign-conversion] memcpy(((char*) v->v)+(v->size_of_elem)*i/sizeof(char), stuff, v->size_of_elem); ^ vector.c: In function 'Vector_reset': vector.c:38:70: warning: conversion to 'size_t {aka unsigned int}' from 'int' may change the sign of the result [-Wsign-conversion] if (v->deallocator)(v->deallocator)((char*)v->v + (v->size_of_elem)*i/sizeof(char)); ^ general.c: In function 'strip_dir': general.c:302:12: warning: conversion to 'int' from 'size_t {aka unsigned int}' may change the sign of the result [-Wsign-conversion] for (i = strlen(s); i >= 0; i--) { ^~~~~~ vector.c: In function 'Vector_add': vector.c:46:37: warning: conversion to 'size_t {aka unsigned int}' from 'int' may change the sign of the result [-Wsign-conversion] v->v = realloc(v->v, (v->maxlen)*(v->size_of_elem)); ^ vector.c: In function 'Vector_delete': vector.c:57:72: warning: conversion to 'size_t {aka unsigned int}' from 'int' may change the sign of the result [-Wsign-conversion] if (v->deallocator)(v->deallocator)((char*)v->v + (v->size_of_elem)*i/sizeof(char)); ^ general.c: In function 'scale_to_box': general.c:328:23: warning: comparing floating point with == or != is unsafe [-Wfloat-equal] if (max[0] - min[0] != 0) { ^~ general.c:331:23: warning: comparing floating point with == or != is unsafe [-Wfloat-equal] if (max[1] - min[1] != 0) { ^~ vector.c: In function 'Vector_get': vector.c:66:26: warning: conversion to 'size_t {aka unsigned int}' from 'int' may change the sign of the result [-Wsign-conversion] return ((char*)v->v + i*(v->size_of_elem)/sizeof(char)); ^ vector.c: At top level: vector.c:77:6: warning: no previous prototype for 'intdealloactor' [-Wmissing-prototypes] void intdealloactor(void *v){ ^~~~~~~~~~~~~~ vector.c: In function 'intdealloactor': vector.c:77:27: warning: unused parameter 'v' [-Wunused-parameter] void intdealloactor(void *v){ ^ general.c: In function 'validQ_int_string': vector.c: At top level: general.c:364:28: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] if (val > INT_MAX || val < INT_MIN) return 0; ^ vector.c:112:6: warning: no previous prototype for 'nulldealloactor' [-Wmissing-prototypes] void nulldealloactor(void *v){ ^~~~~~~~~~~~~~~ vector.c: In function 'nulldealloactor': vector.c:112:28: warning: unused parameter 'v' [-Wunused-parameter] void nulldealloactor(void *v){ ^ vector.c: At top level: vector.c:115:6: warning: no previous prototype for 'strdealloactor' [-Wmissing-prototypes] void strdealloactor(void *v){ ^~~~~~~~~~~~~~ colorutil.c:42:6: warning: no previous prototype for 'Hue2RGB' [-Wmissing-prototypes] real Hue2RGB(real v1, real v2, real H) { ^~~~~~~ LinkedList.c:124:6: warning: no previous prototype for 'DoubleLinkedList_print' [-Wmissing-prototypes] void DoubleLinkedList_print(DoubleLinkedList head, void (*linkedlist_print)(void*)){ ^~~~~~~~~~~~~~~~~~~~~~ SparseMatrix.c: In function 'SparseMatrix_scaled_by_vector': SparseMatrix.c:1345:16: warning: comparing floating point with == or != is unsafe [-Wfloat-equal] if (v[i] != 0){ ^~ SparseMatrix.c: In function 'SparseMatrix_multiply_by_scaler': SparseMatrix.c:1364:28: warning: conversion to 'unsigned int' from 'int' may change the sign of the result [-Wsign-conversion] b = MALLOC(sizeof(real)*A->nz); ^ DotIO.c: In function 'attach_edge_colors': DotIO.c:28:19: warning: conversion to 'int' from 'unsigned int' may change the sign of the result [-Wsign-conversion] #define ND_id(n) (((Agnodeinfo_t*)((n)->base.data))->id) ^ DotIO.c:106:11: note: in expansion of macro 'ND_id' row = ND_id(n); ^~~~~ DotIO.c:28:19: warning: conversion to 'int' from 'unsigned int' may change the sign of the result [-Wsign-conversion] #define ND_id(n) (((Agnodeinfo_t*)((n)->base.data))->id) ^ DotIO.c:108:13: note: in expansion of macro 'ND_id' col = ND_id(aghead(e)); ^~~~~ DotIO.c: In function 'SparseMatrix_import_dot': DotIO.c:167:16: warning: conversion to 'unsigned int' from 'int' may change the sign of the result [-Wsign-conversion] ND_id(n) = i++; ^ In file included from DotIO.c:15:0: general.h:44:36: warning: conversion to 'unsigned int' from 'int' may change the sign of the result [-Wsign-conversion] #define N_NEW(n,t) (t*)malloc((n)*sizeof(t)) ^ DotIO.c:176:9: note: in expansion of macro 'N_NEW' I = N_NEW(nedges, int); ^~~~~ general.h:44:36: warning: conversion to 'unsigned int' from 'int' may change the sign of the result [-Wsign-conversion] #define N_NEW(n,t) (t*)malloc((n)*sizeof(t)) ^ DotIO.c:177:9: note: in expansion of macro 'N_NEW' J = N_NEW(nedges, int); ^~~~~ general.h:44:36: warning: conversion to 'unsigned int' from 'int' may change the sign of the result [-Wsign-conversion] #define N_NEW(n,t) (t*)malloc((n)*sizeof(t)) ^ DotIO.c:178:11: note: in expansion of macro 'N_NEW' val = N_NEW(nedges, real); ^~~~~ general.h:44:36: warning: conversion to 'unsigned int' from 'int' may change the sign of the result [-Wsign-conversion] #define N_NEW(n,t) (t*)malloc((n)*sizeof(t)) ^ DotIO.c:189:9: note: in expansion of macro 'N_NEW' I = N_NEW(nedges, int); ^~~~~ general.h:44:36: warning: conversion to 'unsigned int' from 'int' may change the sign of the result [-Wsign-conversion] #define N_NEW(n,t) (t*)malloc((n)*sizeof(t)) ^ DotIO.c:190:9: note: in expansion of macro 'N_NEW' J = N_NEW(nedges, int); ^~~~~ general.h:44:36: warning: conversion to 'unsigned int' from 'int' may change the sign of the result [-Wsign-conversion] #define N_NEW(n,t) (t*)malloc((n)*sizeof(t)) ^ DotIO.c:191:11: note: in expansion of macro 'N_NEW' val = N_NEW(nedges, real); ^~~~~ general.h:44:36: warning: conversion to 'unsigned int' from 'int' may change the sign of the result [-Wsign-conversion] #define N_NEW(n,t) (t*)malloc((n)*sizeof(t)) ^ DotIO.c:197:12: note: in expansion of macro 'N_NEW' valD = N_NEW(nedges, real); ^~~~~ DotIO.c:28:19: warning: conversion to 'int' from 'unsigned int' may change the sign of the result [-Wsign-conversion] #define ND_id(n) (((Agnodeinfo_t*)((n)->base.data))->id) ^ DotIO.c:202:11: note: in expansion of macro 'ND_id' row = ND_id(n); ^~~~~ DotIO.c:28:19: warning: conversion to 'int' from 'unsigned int' may change the sign of the result [-Wsign-conversion] #define ND_id(n) (((Agnodeinfo_t*)((n)->base.data))->id) ^ DotIO.c:205:14: note: in expansion of macro 'ND_id' J[i] = ND_id(aghead(e)); ^~~~~ DotIO.c:232:43: warning: conversion to 'unsigned int' from 'int' may change the sign of the result [-Wsign-conversion] *edge_label_nodes = MALLOC(sizeof(int)*nedge_nodes); ^ DotIO.c:237:56: warning: conversion to 'unsigned int' from 'int' may change the sign of the result [-Wsign-conversion] if (label_sizes) *label_sizes = MALLOC(sizeof(real)*2*nnodes); ^ DotIO.c:239:10: warning: declaration of 'sz' shadows a previous local [-Wshadow] real sz; ^~ DotIO.c:150:10: note: shadowed declaration is here size_t sz = sizeof(real); ^~ DotIO.c:28:19: warning: conversion to 'int' from 'unsigned int' may change the sign of the result [-Wsign-conversion] #define ND_id(n) (((Agnodeinfo_t*)((n)->base.data))->id) ^ DotIO.c:240:9: note: in expansion of macro 'ND_id' i = ND_id(n); ^~~~~ DotIO.c:263:31: warning: conversion to 'unsigned int' from 'int' may change the sign of the result [-Wsign-conversion] *x = MALLOC(sizeof(real)*dim*nnodes); ^ DotIO.c:263:35: warning: conversion to 'unsigned int' from 'int' may change the sign of the result [-Wsign-conversion] *x = MALLOC(sizeof(real)*dim*nnodes); ^ DotIO.c:28:19: warning: conversion to 'int' from 'unsigned int' may change the sign of the result [-Wsign-conversion] #define ND_id(n) (((Agnodeinfo_t*)((n)->base.data))->id) ^ DotIO.c:269:11: note: in expansion of macro 'ND_id' i = ND_id(n); ^~~~~ IntStack.c: In function 'IntStack_new': IntStack.c:24:32: warning: conversion to 'unsigned int' from 'int' may change the sign of the result [-Wsign-conversion] s->stack = MALLOC(sizeof(int)*max_len); ^ DotIO.c: In function 'Import_dot_splines': DotIO.c:363:16: warning: conversion to 'unsigned int' from 'int' may change the sign of the result [-Wsign-conversion] ND_id(n) = i++; ^ DotIO.c:368:53: warning: conversion to 'unsigned int' from 'int' may change the sign of the result [-Wsign-conversion] if (!(*xsplines)) *xsplines = malloc(sizeof(char*)*nedges); ^ IntStack.c: In function 'IntStack_realloc': IntStack.c:38:13: warning: conversion to 'int' from 'double' may alter its value [-Wfloat-conversion] max_len = max_len + MAX(10,0.2*max_len); ^~~~~~~ IntStack.c:40:43: warning: conversion to 'unsigned int' from 'int' may change the sign of the result [-Wsign-conversion] s->stack = REALLOC(s->stack, sizeof(int)*max_len); ^ SparseMatrix.c: In function 'SparseMatrix_sum_repeat_entries': SparseMatrix.c:1845:16: warning: conversion to 'int' from 'double' may alter its value [-Wfloat-conversion] ymax = ymin = a[1]; ^ SparseMatrix.c:1881:16: warning: conversion to 'int' from 'double' may alter its value [-Wfloat-conversion] xmax = xmin = a[1]; ^ DotIO.c: In function 'edgelist_export': DotIO.c:419:27: warning: conversion to 'size_t {aka unsigned int}' from 'int' may change the sign of the result [-Wsign-conversion] fwrite(x, sizeof(real), dim*n, f); ^~~ DotIO.c:427:39: warning: conversion to 'size_t {aka unsigned int}' from 'int' may change the sign of the result [-Wsign-conversion] fwrite(&(ja[ia[i]]), sizeof(int), len, f); ^~~ In file included from DotIO.c:15:0: DotIO.c: In function 'makeDotGraph': general.h:44:36: warning: conversion to 'unsigned int' from 'int' may change the sign of the result [-Wsign-conversion] #define N_NEW(n,t) (t*)malloc((n)*sizeof(t)) ^ DotIO.c:478:20: note: in expansion of macro 'N_NEW' Agnode_t** arr = N_NEW (A->m, Agnode_t*); ^~~~~ SparseMatrix.c: In function 'SparseMatrix_coordinate_form_add_entries': SparseMatrix.c:1983:50: warning: conversion to 'unsigned int' from 'int' may change the sign of the result [-Wsign-conversion] if (A->size) MEMCPY((char*) A->a + ((size_t)nz)*A->size/sizeof(char), val, A->size*((size_t)nentries)); ^ BinaryHeap.c: In function 'BinaryHeap_new': SparseMatrix.c:1983:85: warning: conversion to 'unsigned int' from 'int' may change the sign of the result [-Wsign-conversion] if (A->size) MEMCPY((char*) A->a + ((size_t)nz)*A->size/sizeof(char), val, A->size*((size_t)nentries)); ^ BinaryHeap.c:23:33: warning: conversion to 'unsigned int' from 'int' may change the sign of the result [-Wsign-conversion] h->heap = MALLOC(sizeof(void*)*max_len); ^ DotIO.c:552:16: warning: conversion to 'unsigned int' from 'int' may change the sign of the result [-Wsign-conversion] ND_id(n) = i; ^ BinaryHeap.c:24:36: warning: conversion to 'unsigned int' from 'int' may change the sign of the result [-Wsign-conversion] h->id_to_pos = MALLOC(sizeof(int)*max_len); ^ DotIO.c:560:32: warning: conversion to 'unsigned int' from 'int' may change the sign of the result [-Wsign-conversion] color = malloc(sizeof(real)*A->nz); ^ BinaryHeap.c:27:36: warning: conversion to 'unsigned int' from 'int' may change the sign of the result [-Wsign-conversion] h->pos_to_id = MALLOC(sizeof(int)*max_len); ^ DotIO.c:28:19: warning: conversion to 'int' from 'unsigned int' may change the sign of the result [-Wsign-conversion] #define ND_id(n) (((Agnodeinfo_t*)((n)->base.data))->id) ^ DotIO.c:562:11: note: in expansion of macro 'ND_id' i = ND_id(n); ^~~~~ BinaryHeap.c: In function 'BinaryHeap_realloc': BinaryHeap.c:47:13: warning: conversion to 'int' from 'double' may alter its value [-Wfloat-conversion] max_len = max_len + MAX(0.2*max_len, 10); ^~~~~~~ DotIO.c:28:19: warning: conversion to 'int' from 'unsigned int' may change the sign of the result [-Wsign-conversion] #define ND_id(n) (((Agnodeinfo_t*)((n)->base.data))->id) ^ DotIO.c:592:11: note: in expansion of macro 'ND_id' i = ND_id(n); ^~~~~ BinaryHeap.c:50:43: warning: conversion to 'unsigned int' from 'int' may change the sign of the result [-Wsign-conversion] h->heap = REALLOC(h->heap, sizeof(void*)*max_len); ^ BinaryHeap.c:53:51: warning: conversion to 'unsigned int' from 'int' may change the sign of the result [-Wsign-conversion] h->id_to_pos = REALLOC(h->id_to_pos, sizeof(int)*max_len); ^ DotIO.c:28:19: warning: conversion to 'int' from 'unsigned int' may change the sign of the result [-Wsign-conversion] #define ND_id(n) (((Agnodeinfo_t*)((n)->base.data))->id) ^ DotIO.c:605:9: note: in expansion of macro 'ND_id' i = ND_id(n); ^~~~~ BinaryHeap.c:56:51: warning: conversion to 'unsigned int' from 'int' may change the sign of the result [-Wsign-conversion] h->pos_to_id = REALLOC(h->pos_to_id, sizeof(int)*max_len); ^ DotIO.c:609:2: warning: switch missing default case [-Wswitch-default] switch (A->type){ ^~~~~~ DotIO.c:474:12: warning: variable 'sym' set but not used [-Wunused-but-set-variable] Agsym_t *sym, *sym2 = NULL, *sym3 = NULL; ^~~ DotIO.c: At top level: DotIO.c:653:7: warning: no previous prototype for 'cat_string' [-Wmissing-prototypes] char *cat_string(char *s1, char *s2){ ^~~~~~~~~~ DotIO.c:662:7: warning: no previous prototype for 'cat_string3' [-Wmissing-prototypes] char *cat_string3(char *s1, char *s2, char *s3, int id){ ^~~~~~~~~~~ DotIO.c: In function 'convert_edge_labels_to_nodes': DotIO.c:702:36: warning: conversion to 'unsigned int' from 'int' may change the sign of the result [-Wsign-conversion] ndmap = malloc(sizeof(Agnode_t *)*nnodes); ^ SparseMatrix.c: In function 'SparseMatrix_normalize_to_rowsum1': DotIO.c:715:16: warning: conversion to 'unsigned int' from 'int' may change the sign of the result [-Wsign-conversion] ND_id(n) = i++; ^ SparseMatrix.c:2261:13: warning: comparing floating point with == or != is unsafe [-Wfloat-equal] if (sum != 0){ ^~ SparseMatrix.c: In function 'SparseMatrix_normalize_by_row': BinaryHeap.c: In function 'BinaryHeap_sanity_check': BinaryHeap.c:248:28: warning: conversion to 'unsigned int' from 'int' may change the sign of the result [-Wsign-conversion] mask = MALLOC(sizeof(int)*(h->len + IntStack_get_length(h->id_stack))); ^ SparseMatrix.c:2290:13: warning: comparing floating point with == or != is unsafe [-Wfloat-equal] if (max != 0){ ^~ SparseMatrix.c: At top level: SparseMatrix.c:2300:14: warning: no previous prototype for 'SparseMatrix_to_complex' [-Wmissing-prototypes] SparseMatrix SparseMatrix_to_complex(SparseMatrix A){ ^~~~~~~~~~~~~~~~~~~~~~~ SparseMatrix.c: In function 'SparseMatrix_to_complex': DotIO.c:685:7: warning: variable 'nedges' set but not used [-Wunused-but-set-variable] int nedges; ^~~~~~ SparseMatrix.c:2317:41: warning: conversion to 'unsigned int' from 'int' may change the sign of the result [-Wsign-conversion] A->a = a = REALLOC(a, 2*sizeof(real)*nz); ^ SparseMatrix.c:2332:44: warning: conversion to 'unsigned int' from 'int' may change the sign of the result [-Wsign-conversion] real *aa = A->a = MALLOC(2*sizeof(real)*nz); ^ SparseMatrix.c:2301:16: warning: variable 'ja' set but not used [-Wunused-but-set-variable] int i, *ia, *ja; ^~ SparseMatrix.c:2301:11: warning: variable 'ia' set but not used [-Wunused-but-set-variable] int i, *ia, *ja; ^~ DotIO.c: In function 'hexcol2rgb': DotIO.c:778:44: warning: conversion to 'float' from 'double' may alter its value [-Wfloat-conversion] return (hex2int(h[0])*16 + hex2int(h[1]))/255.; ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~ DotIO.c: In function 'Dot_SetClusterColor': DotIO.c:28:19: warning: conversion to 'int' from 'unsigned int' may change the sign of the result [-Wsign-conversion] #define ND_id(n) (((Agnodeinfo_t*)((n)->base.data))->id) ^ DotIO.c:790:9: note: in expansion of macro 'ND_id' i = ND_id(n); ^~~~~ DotIO.c: In function 'Import_coord_clusters_from_dot': DotIO.c:872:16: warning: conversion to 'unsigned int' from 'int' may change the sign of the result [-Wsign-conversion] ND_id(n) = i++; ^ In file included from DotIO.c:15:0: general.h:44:36: warning: conversion to 'unsigned int' from 'int' may change the sign of the result [-Wsign-conversion] #define N_NEW(n,t) (t*)malloc((n)*sizeof(t)) ^ DotIO.c:875:7: note: in expansion of macro 'N_NEW' I = N_NEW(nedges, int); ^~~~~ general.h:44:36: warning: conversion to 'unsigned int' from 'int' may change the sign of the result [-Wsign-conversion] #define N_NEW(n,t) (t*)malloc((n)*sizeof(t)) ^ DotIO.c:876:7: note: in expansion of macro 'N_NEW' J = N_NEW(nedges, int); ^~~~~ general.h:44:36: warning: conversion to 'unsigned int' from 'int' may change the sign of the result [-Wsign-conversion] #define N_NEW(n,t) (t*)malloc((n)*sizeof(t)) ^ DotIO.c:877:9: note: in expansion of macro 'N_NEW' val = N_NEW(nedges, real); ^~~~~ DotIO.c:28:19: warning: conversion to 'int' from 'unsigned int' may change the sign of the result [-Wsign-conversion] #define ND_id(n) (((Agnodeinfo_t*)((n)->base.data))->id) ^ DotIO.c:885:11: note: in expansion of macro 'ND_id' row = ND_id(n); ^~~~~ SparseMatrix.c: In function 'SparseMatrix_copy': DotIO.c:28:19: warning: conversion to 'int' from 'unsigned int' may change the sign of the result [-Wsign-conversion] #define ND_id(n) (((Agnodeinfo_t*)((n)->base.data))->id) ^ DotIO.c:888:14: note: in expansion of macro 'ND_id' J[i] = ND_id(aghead(e)); ^~~~~ SparseMatrix.c:2474:60: warning: conversion to 'size_t {aka unsigned int}' from 'int' may change the sign of the result [-Wsign-conversion] B = SparseMatrix_general_new(A->m, A->n, A->nz, A->type, A->size, A->format); ^ SparseMatrix.c:2477:39: warning: conversion to 'unsigned int' from 'int' may change the sign of the result [-Wsign-conversion] if (A->a) MEMCPY(B->a, A->a, A->size*((size_t)A->nz)); ^ DotIO.c:902:33: warning: conversion to 'unsigned int' from 'int' may change the sign of the result [-Wsign-conversion] *clusters = MALLOC(sizeof(int)*nnodes); ^ DotIO.c:911:38: warning: conversion to 'unsigned int' from 'int' may change the sign of the result [-Wsign-conversion] memset (*clusters, 0, sizeof(int)*nnodes); ^ SparseMatrix.c: At top level: SparseMatrix.c:2495:6: warning: no previous prototype for 'SparseMatrix_level_sets_internal' [-Wmissing-prototypes] void SparseMatrix_level_sets_internal(int khops, SparseMatrix A, int root, int *nlevel, int **levelset_ptr, int **levelset, int **mask, int reinitialize_mask){ ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ DotIO.c:28:19: warning: conversion to 'int' from 'unsigned int' may change the sign of the result [-Wsign-conversion] #define ND_id(n) (((Agnodeinfo_t*)((n)->base.data))->id) ^ DotIO.c:916:13: note: in expansion of macro 'ND_id' i = ND_id(n); ^~~~~ DotIO.c:28:19: warning: conversion to 'int' from 'unsigned int' may change the sign of the result [-Wsign-conversion] #define ND_id(n) (((Agnodeinfo_t*)((n)->base.data))->id) ^ DotIO.c:924:11: note: in expansion of macro 'ND_id' i = ND_id(n); ^~~~~ DotIO.c:28:19: warning: conversion to 'int' from 'unsigned int' may change the sign of the result [-Wsign-conversion] #define ND_id(n) (((Agnodeinfo_t*)((n)->base.data))->id) ^ DotIO.c:933:11: note: in expansion of macro 'ND_id' i = ND_id(n); ^~~~~ DotIO.c:28:19: warning: conversion to 'int' from 'unsigned int' may change the sign of the result [-Wsign-conversion] #define ND_id(n) (((Agnodeinfo_t*)((n)->base.data))->id) ^ DotIO.c:969:11: note: in expansion of macro 'ND_id' i = ND_id(n); ^~~~~ DotIO.c:980:37: warning: conversion to 'unsigned int' from 'int' may change the sign of the result [-Wsign-conversion] *label_sizes = MALLOC(sizeof(real)*dim*nnodes); ^ DotIO.c:980:41: warning: conversion to 'unsigned int' from 'int' may change the sign of the result [-Wsign-conversion] *label_sizes = MALLOC(sizeof(real)*dim*nnodes); ^ DotIO.c:982:34: warning: conversion to 'unsigned int' from 'int' may change the sign of the result [-Wsign-conversion] *rgb_r = MALLOC(sizeof(float)*(1+MAX_GRPS)); ^ DotIO.c:983:34: warning: conversion to 'unsigned int' from 'int' may change the sign of the result [-Wsign-conversion] *rgb_g = MALLOC(sizeof(float)*(1+MAX_GRPS)); ^ DotIO.c:984:34: warning: conversion to 'unsigned int' from 'int' may change the sign of the result [-Wsign-conversion] *rgb_b = MALLOC(sizeof(float)*(1+MAX_GRPS)); ^ DotIO.c:990:30: warning: conversion to 'unsigned int' from 'int' may change the sign of the result [-Wsign-conversion] *fsz = MALLOC(sizeof(float)*nnodes); ^ DotIO.c:991:33: warning: conversion to 'unsigned int' from 'int' may change the sign of the result [-Wsign-conversion] *labels = MALLOC(sizeof(char*)*nnodes); ^ DotIO.c:995:10: warning: declaration of 'sz' shadows a previous local [-Wshadow] real sz; ^~ SparseMatrix.c: In function 'cmp': DotIO.c:814:10: note: shadowed declaration is here size_t sz = sizeof(real); ^~ SparseMatrix.c:2602:23: warning: comparing floating point with == or != is unsafe [-Wfloat-equal] } else if (d1->dist == d2->dist){ ^~ DotIO.c:28:19: warning: conversion to 'int' from 'unsigned int' may change the sign of the result [-Wsign-conversion] #define ND_id(n) (((Agnodeinfo_t*)((n)->base.data))->id) ^ DotIO.c:996:9: note: in expansion of macro 'ND_id' i = ND_id(n); ^~~~~ DotIO.c:1041:33: warning: conversion to 'float' from 'double' may alter its value [-Wfloat-conversion] (*rgb_r)[(*clusters)[i]] = color.u.RGBA[0]; ^~~~~ DotIO.c:1042:33: warning: conversion to 'float' from 'double' may alter its value [-Wfloat-conversion] (*rgb_g)[(*clusters)[i]] = color.u.RGBA[1]; ^~~~~ DotIO.c:1043:33: warning: conversion to 'float' from 'double' may alter its value [-Wfloat-conversion] (*rgb_b)[(*clusters)[i]] = color.u.RGBA[2]; ^~~~~ DotIO.c:1059:29: warning: conversion to 'unsigned int' from 'int' may change the sign of the result [-Wsign-conversion] *x = MALLOC(sizeof(real)*dim*nnodes); ^ DotIO.c:1059:33: warning: conversion to 'unsigned int' from 'int' may change the sign of the result [-Wsign-conversion] *x = MALLOC(sizeof(real)*dim*nnodes); ^ DotIO.c:28:19: warning: conversion to 'int' from 'unsigned int' may change the sign of the result [-Wsign-conversion] #define ND_id(n) (((Agnodeinfo_t*)((n)->base.data))->id) ^ DotIO.c:1062:11: note: in expansion of macro 'ND_id' i = ND_id(n); ^~~~~ DotIO.c: In function 'attached_clustering': DotIO.c:1116:16: warning: conversion to 'unsigned int' from 'int' may change the sign of the result [-Wsign-conversion] ND_id(n) = i++; ^ In file included from DotIO.c:15:0: general.h:44:36: warning: conversion to 'unsigned int' from 'int' may change the sign of the result [-Wsign-conversion] #define N_NEW(n,t) (t*)malloc((n)*sizeof(t)) ^ DotIO.c:1119:7: note: in expansion of macro 'N_NEW' I = N_NEW(nedges, int); ^~~~~ general.h:44:36: warning: conversion to 'unsigned int' from 'int' may change the sign of the result [-Wsign-conversion] #define N_NEW(n,t) (t*)malloc((n)*sizeof(t)) ^ DotIO.c:1120:7: note: in expansion of macro 'N_NEW' J = N_NEW(nedges, int); ^~~~~ In file included from ./general.h:21:0, from SparseMatrix.h:16, from SparseMatrix.c:21: SparseMatrix.c: In function 'SparseMatrix_pseudo_diameter_weighted': general.h:44:36: warning: conversion to 'unsigned int' from 'int' may change the sign of the result [-Wsign-conversion] #define N_NEW(n,t) (t*)malloc((n)*sizeof(t)) ^ DotIO.c:1121:9: note: in expansion of macro 'N_NEW' val = N_NEW(nedges, real); ^~~~~ SparseMatrix.c:2757:32: warning: comparing floating point with == or != is unsafe [-Wfloat-equal] assert(dist[list[nlist-1]] == dist_max); ^ DotIO.c:28:19: warning: conversion to 'int' from 'unsigned int' may change the sign of the result [-Wsign-conversion] #define ND_id(n) (((Agnodeinfo_t*)((n)->base.data))->id) ^ DotIO.c:1128:11: note: in expansion of macro 'ND_id' row = ND_id(n); ^~~~~ DotIO.c:28:19: warning: conversion to 'int' from 'unsigned int' may change the sign of the result [-Wsign-conversion] #define ND_id(n) (((Agnodeinfo_t*)((n)->base.data))->id) ^ DotIO.c:1131:14: note: in expansion of macro 'ND_id' J[i] = ND_id(aghead(e)); ^~~~~ DotIO.c:1144:32: warning: conversion to 'unsigned int' from 'int' may change the sign of the result [-Wsign-conversion] 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] #define ND_id(n) (((Agnodeinfo_t*)((n)->base.data))->id) ^ DotIO.c:1162:11: note: in expansion of macro 'ND_id' i = ND_id(n); ^~~~~ DotIO.c: In function 'setDotNodeID': DotIO.c:1189:16: warning: conversion to 'unsigned int' from 'int' may change the sign of the result [-Wsign-conversion] 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] #define ND_id(n) (((Agnodeinfo_t*)((n)->base.data))->id) ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~ DotIO.c:1194:12: note: in expansion of macro 'ND_id' return ND_id(n); ^~~~~ SparseMatrix.c: In function 'SparseMatrix_pseudo_diameter_unweighted': SparseMatrix.c:2833:16: warning: cast from function call of type 'double' to non-matching type 'int' [-Wbad-function-cast] nlevel = (int) SparseMatrix_pseudo_diameter_unweighted(A, root, FALSE, &enda, &endb, connectedQ); ^ SparseMatrix.c: In function 'SparseMatrix_get_augmented': SparseMatrix.c:2989:27: warning: conversion to 'unsigned int' from 'int' may change the sign of the result [-Wsign-conversion] val = MALLOC(A->size*2*((size_t)nz)); ^ SparseMatrix.c:2990:30: warning: conversion to 'unsigned int' from 'int' may change the sign of the result [-Wsign-conversion] MEMCPY(val, A->a, A->size*((size_t)nz)); ^ SparseMatrix.c:2991:48: warning: conversion to 'unsigned int' from 'int' may change the sign of the result [-Wsign-conversion] MEMCPY((void*)(((char*) val) + ((size_t)nz)*A->size), A->a, A->size*((size_t)nz)); ^ SparseMatrix.c:2991:72: warning: conversion to 'unsigned int' from 'int' may change the sign of the result [-Wsign-conversion] MEMCPY((void*)(((char*) val) + ((size_t)nz)*A->size), A->a, A->size*((size_t)nz)); ^ SparseMatrix.c:3008:82: warning: conversion to 'size_t {aka unsigned int}' from 'int' may change the sign of the result [-Wsign-conversion] 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:3183:81: warning: conversion to 'size_t {aka unsigned int}' from 'int' may change the sign of the result [-Wsign-conversion] B = SparseMatrix_from_coordinate_arrays(nz, nrow, ncol, irn, jcn, v, A->type, A->size); ^ SparseMatrix.c: In function 'SparseMatrix_k_centers': SparseMatrix.c:3403:33: warning: conversion to 'unsigned int' from 'int' may change the sign of the result [-Wsign-conversion] dist_min = MALLOC(sizeof(real)*n); ^ SparseMatrix.c:3404:33: warning: conversion to 'unsigned int' from 'int' may change the sign of the result [-Wsign-conversion] dist_sum = MALLOC(sizeof(real)*n); ^ SparseMatrix.c:3407:49: warning: conversion to 'unsigned int' from 'int' may change the sign of the result [-Wsign-conversion] if (!(*centers)) *centers = MALLOC(sizeof(int)*K); ^ SparseMatrix.c:3408:46: warning: conversion to 'unsigned int' from 'int' may change the sign of the result [-Wsign-conversion] if (!(*dist0)) *dist0 = MALLOC(sizeof(real)*K*n); ^ SparseMatrix.c:3408:48: warning: conversion to 'unsigned int' from 'int' may change the sign of the result [-Wsign-conversion] if (!(*dist0)) *dist0 = MALLOC(sizeof(real)*K*n); ^ SparseMatrix.c:3410:31: warning: conversion to 'unsigned int' from 'int' may change the sign of the result [-Wsign-conversion] dist = MALLOC(sizeof(real)*n); ^ SparseMatrix.c:3441:34: warning: comparing floating point with == or != is unsafe [-Wfloat-equal] if (dmax < dist_min[i] || (dmax == dist_min[i] && dsum < dist_sum[i])){/* tie break with avg dist */ ^~ SparseMatrix.c:3452:30: warning: conversion to 'unsigned int' from 'int' may change the sign of the result [-Wsign-conversion] list = MALLOC(sizeof(int)*n); ^ SparseMatrix.c:3480:34: warning: comparing floating point with == or != is unsafe [-Wfloat-equal] if (dmax < dist_min[i] || (dmax == dist_min[i] && dsum < dist_sum[i])){/* tie break with avg dist */ ^~ SparseMatrix.c: In function 'SparseMatrix_k_centers_user': SparseMatrix.c:3546:33: warning: conversion to 'unsigned int' from 'int' may change the sign of the result [-Wsign-conversion] dist_min = MALLOC(sizeof(real)*n); ^ SparseMatrix.c:3547:33: warning: conversion to 'unsigned int' from 'int' may change the sign of the result [-Wsign-conversion] dist_sum = MALLOC(sizeof(real)*n); ^ SparseMatrix.c:3549:46: warning: conversion to 'unsigned int' from 'int' may change the sign of the result [-Wsign-conversion] if (!(*dist0)) *dist0 = MALLOC(sizeof(real)*K*n); ^ SparseMatrix.c:3549:48: warning: conversion to 'unsigned int' from 'int' may change the sign of the result [-Wsign-conversion] if (!(*dist0)) *dist0 = MALLOC(sizeof(real)*K*n); ^ SparseMatrix.c:3551:31: warning: conversion to 'unsigned int' from 'int' may change the sign of the result [-Wsign-conversion] dist = MALLOC(sizeof(real)*n); ^ SparseMatrix.c:3579:30: warning: conversion to 'unsigned int' from 'int' may change the sign of the result [-Wsign-conversion] list = MALLOC(sizeof(int)*n); ^ SparseMatrix.c: In function 'SparseMatrix_distance_matrix': SparseMatrix.c:3678:46: warning: conversion to 'unsigned int' from 'int' may change the sign of the result [-Wsign-conversion] if (!(*dist0)) *dist0 = MALLOC(sizeof(real)*n*n); ^ SparseMatrix.c:3678:48: warning: conversion to 'unsigned int' from 'int' may change the sign of the result [-Wsign-conversion] if (!(*dist0)) *dist0 = MALLOC(sizeof(real)*n*n); ^ SparseMatrix.c:3692:30: warning: conversion to 'unsigned int' from 'int' may change the sign of the result [-Wsign-conversion] list = MALLOC(sizeof(int)*n); ^ SparseMatrix.c: In function 'SparseMatrix_distance_matrix_khops': SparseMatrix.c:3784:30: warning: conversion to 'unsigned int' from 'int' may change the sign of the result [-Wsign-conversion] list = MALLOC(sizeof(int)*n); ^ SparseMatrix.c:3785:31: warning: conversion to 'unsigned int' from 'int' may change the sign of the result [-Wsign-conversion] dist = MALLOC(sizeof(real)*n); ^ SparseMatrix.c: At top level: SparseMatrix.c:3847:5: warning: "PQ" is not defined, evaluates to 0 [-Wundef] #if PQ ^~ SparseMatrix.c: In function 'SparseMatrix_page_rank': SparseMatrix.c:4104:30: warning: conversion to 'unsigned int' from 'int' may change the sign of the result [-Wsign-conversion] a = MALLOC(sizeof(real)*n); ^ SparseMatrix.c:4108:30: warning: conversion to 'unsigned int' from 'int' may change the sign of the result [-Wsign-conversion] a = MALLOC(sizeof(real)*n); ^ SparseMatrix.c:4120:54: warning: conversion to 'unsigned int' from 'int' may change the sign of the result [-Wsign-conversion] if (!(*page_rank)) *page_rank = MALLOC(sizeof(real)*n); ^ SparseMatrix.c:4123:29: warning: conversion to 'unsigned int' from 'int' may change the sign of the result [-Wsign-conversion] diag = MALLOC(sizeof(real)*n); ^ SparseMatrix.c:4125:26: warning: conversion to 'unsigned int' from 'int' may change the sign of the result [-Wsign-conversion] y = MALLOC(sizeof(real)*n); ^ SparseMatrix.c:4181:30: warning: conversion to 'unsigned int' from 'int' may change the sign of the result [-Wsign-conversion] MEMCPY(x, y, sizeof(real)*n); ^ SparseMatrix.c: In function 'SparseMatrix_multiply_by_scaler': SparseMatrix.c:1369:13: warning: this statement may fall through [-Wimplicit-fallthrough=] A->type = MATRIX_TYPE_REAL; ~~~~~~~~^~~~~~~~~~~~~~~~~~ SparseMatrix.c:1370:3: note: here case MATRIX_TYPE_REAL: ^~~~ CC color_palette.lo CC mq.lo CC clustering.lo CC QuadTree.lo mq.c: In function 'get_mq': mq.c:88:30: warning: conversion to 'unsigned int' from 'int' may change the sign of the result [-Wsign-conversion] counts = MALLOC(sizeof(int)*n); ^ mq.c:128:29: warning: conversion to 'unsigned int' from 'int' may change the sign of the result [-Wsign-conversion] dout = MALLOC(sizeof(real)*n); ^ mq.c: At top level: mq.c:155:26: warning: no previous prototype for 'Multilevel_MQ_Clustering_init' [-Wmissing-prototypes] Multilevel_MQ_Clustering Multilevel_MQ_Clustering_init(SparseMatrix A, int level){ ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~ mq.c: In function 'Multilevel_MQ_Clustering_init': mq.c:174:50: warning: conversion to 'unsigned int' from 'int' may change the sign of the result [-Wsign-conversion] matching = grid->matching = MALLOC(sizeof(real)*(n)); ^ mq.c:181:9: warning: declaration of 'n' shadows a previous local [-Wshadow] int n = A->n, ncluster; ^ mq.c:157:7: note: shadowed declaration is here int n = A->n, i; ^ mq.c:184:42: warning: conversion to 'unsigned int' from 'int' may change the sign of the result [-Wsign-conversion] grid->deg_intra = MALLOC(sizeof(real)*(n)); ^ mq.c:187:36: warning: conversion to 'unsigned int' from 'int' may change the sign of the result [-Wsign-conversion] grid->wgt = MALLOC(sizeof(real)*n); ^ mq.c: At top level: mq.c:209:6: warning: no previous prototype for 'Multilevel_MQ_Clustering_delete' [-Wmissing-prototypes] void Multilevel_MQ_Clustering_delete(Multilevel_MQ_Clustering grid){ ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ mq.c:228:26: warning: no previous prototype for 'Multilevel_MQ_Clustering_establish' [-Wmissing-prototypes] Multilevel_MQ_Clustering Multilevel_MQ_Clustering_establish(Multilevel_MQ_Clustering grid, int maxcluster){ ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ mq.c: In function 'Multilevel_MQ_Clustering_establish': mq.c:245:46: warning: conversion to 'unsigned int' from 'int' may change the sign of the result [-Wsign-conversion] neighbors = MALLOC(sizeof(SingleLinkedList)*n); ^ mq.c:252:38: warning: conversion to 'unsigned int' from 'int' may change the sign of the result [-Wsign-conversion] deg_intra_new = MALLOC(sizeof(real)*n); ^ mq.c:253:32: warning: conversion to 'unsigned int' from 'int' may change the sign of the result [-Wsign-conversion] wgt_new = MALLOC(sizeof(real)*n); ^ mq.c:254:34: warning: conversion to 'unsigned int' from 'int' may change the sign of the result [-Wsign-conversion] deg_inter = MALLOC(sizeof(real)*n); ^ mq.c:255:28: warning: conversion to 'unsigned int' from 'int' may change the sign of the result [-Wsign-conversion] mask = MALLOC(sizeof(int)*n); ^ mq.c:256:33: warning: conversion to 'unsigned int' from 'int' may change the sign of the result [-Wsign-conversion] dout_new = MALLOC(sizeof(real)*n); ^ mq.c:481:46: warning: conversion to 'unsigned int' from 'int' may change the sign of the result [-Wsign-conversion] deg_intra_new = REALLOC(deg_intra_new, nc*sizeof(real)); ^ mq.c:482:34: warning: conversion to 'unsigned int' from 'int' may change the sign of the result [-Wsign-conversion] wgt_new = REALLOC(wgt_new, nc*sizeof(real)); ^ mq.c:486:37: warning: conversion to 'unsigned int' from 'int' may change the sign of the result [-Wsign-conversion] dout_new = REALLOC(dout_new, nc*sizeof(real)); ^ mq.c: At top level: mq.c:511:26: warning: no previous prototype for 'Multilevel_MQ_Clustering_new' [-Wmissing-prototypes] Multilevel_MQ_Clustering Multilevel_MQ_Clustering_new(SparseMatrix A0, int maxcluster){ ^~~~~~~~~~~~~~~~~~~~~~~~~~~~ mq.c: In function 'hierachical_mq_clustering': mq.c:559:27: warning: conversion to 'unsigned int' from 'int' may change the sign of the result [-Wsign-conversion] u = MALLOC(sizeof(real)*cgrid->n); ^ mq.c:576:34: warning: conversion to 'unsigned int' from 'int' may change the sign of the result [-Wsign-conversion] matching = MALLOC(sizeof(int)*(grid->n)); ^ clustering.c: In function 'Multilevel_Modularity_Clustering_init': clustering.c:39:39: warning: conversion to 'unsigned int' from 'int' may change the sign of the result [-Wsign-conversion] grid->matching = MALLOC(sizeof(real)*(n)); ^ clustering.c:45:35: warning: declaration of 'n' shadows a previous local [-Wshadow] int *ia = A->ia, *ja = A->ja, n = A->n; ^ clustering.c:23:7: note: shadowed declaration is here int n = A->n, i, j; ^ clustering.c:51:36: warning: conversion to 'unsigned int' from 'int' may change the sign of the result [-Wsign-conversion] grid->deg = MALLOC(sizeof(real)*(n)); ^ clustering.c:54:32: warning: conversion to 'unsigned int' from 'int' may change the sign of the result [-Wsign-conversion] indeg = MALLOC(sizeof(real)*n); ^ clustering.c:64:19: warning: comparing floating point with == or != is unsafe [-Wfloat-equal] if (deg_total == 0) deg_total = 1; ^~ clustering.c: In function 'Multilevel_Modularity_Clustering_establish': clustering.c:113:32: warning: conversion to 'unsigned int' from 'int' may change the sign of the result [-Wsign-conversion] deg_new = MALLOC(sizeof(real)*n); ^ clustering.c:114:34: warning: conversion to 'unsigned int' from 'int' may change the sign of the result [-Wsign-conversion] deg_inter = MALLOC(sizeof(real)*n); ^ clustering.c:115:28: warning: conversion to 'unsigned int' from 'int' may change the sign of the result [-Wsign-conversion] mask = MALLOC(sizeof(int)*n); ^ clustering.c:234:34: warning: conversion to 'unsigned int' from 'int' may change the sign of the result [-Wsign-conversion] deg_new = REALLOC(deg_new, nc*sizeof(real)); ^ clustering.c: In function 'hierachical_modularity_clustering': clustering.c:321:27: warning: conversion to 'unsigned int' from 'int' may change the sign of the result [-Wsign-conversion] u = MALLOC(sizeof(real)*cgrid->n); ^ clustering.c:338:34: warning: conversion to 'unsigned int' from 'int' may change the sign of the result [-Wsign-conversion] matching = MALLOC(sizeof(int)*(grid->n)); ^ QuadTree.c: In function 'node_data_new': QuadTree.c:38:34: warning: conversion to 'unsigned int' from 'int' may change the sign of the result [-Wsign-conversion] nd->coord = MALLOC(sizeof(real)*dim); ^ QuadTree.c: At top level: QuadTree.c:45:6: warning: no previous prototype for 'node_data_delete' [-Wmissing-prototypes] void node_data_delete(void *d){ ^~~~~~~~~~~~~~~~ QuadTree.c:52:6: warning: no previous prototype for 'node_data_get_weight' [-Wmissing-prototypes] real node_data_get_weight(void *d){ ^~~~~~~~~~~~~~~~~~~~ QuadTree.c:57:7: warning: no previous prototype for 'node_data_get_coord' [-Wmissing-prototypes] real* node_data_get_coord(void *d){ ^~~~~~~~~~~~~~~~~~~ QuadTree.c:62:5: warning: no previous prototype for 'node_data_get_id' [-Wmissing-prototypes] int node_data_get_id(void *d){ ^~~~~~~~~~~~~~~~ QuadTree.c: In function 'node_data_get_id': QuadTree.c:64:12: warning: conversion to 'int' from 'double' may alter its value [-Wfloat-conversion] return nd->id; ~~^~~~ QuadTree.c: At top level: QuadTree.c:70:6: warning: no previous prototype for 'check_or_realloc_arrays' [-Wmissing-prototypes] void check_or_realloc_arrays(int dim, int *nsuper, int *nsupermax, real **center, real **supernode_wgts, real **distances){ ^~~~~~~~~~~~~~~~~~~~~~~ QuadTree.c: In function 'check_or_realloc_arrays': QuadTree.c:74:44: warning: conversion to 'unsigned int' from 'int' may change the sign of the result [-Wsign-conversion] *center = REALLOC(*center, sizeof(real)*(*nsupermax)*dim); ^ QuadTree.c:74:57: warning: conversion to 'unsigned int' from 'int' may change the sign of the result [-Wsign-conversion] *center = REALLOC(*center, sizeof(real)*(*nsupermax)*dim); ^ QuadTree.c:75:60: warning: conversion to 'unsigned int' from 'int' may change the sign of the result [-Wsign-conversion] *supernode_wgts = REALLOC(*supernode_wgts, sizeof(real)*(*nsupermax)); ^ QuadTree.c:76:50: warning: conversion to 'unsigned int' from 'int' may change the sign of the result [-Wsign-conversion] *distances = REALLOC(*distances, sizeof(real)*(*nsupermax)); ^ QuadTree.c: At top level: QuadTree.c:80:6: warning: no previous prototype for 'QuadTree_get_supernodes_internal' [-Wmissing-prototypes] void QuadTree_get_supernodes_internal(QuadTree qt, real bh, real *point, int nodeid, int *nsuper, int *nsupermax, real **center, real **supernode_wgts, real **distances, real *counts, int *flag){ ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ QuadTree.c: In function 'QuadTree_get_supernodes_internal': QuadTree.c:80:67: warning: declaration of 'point' shadows a global declaration [-Wshadow] void QuadTree_get_supernodes_internal(QuadTree qt, real bh, real *point, int nodeid, int *nsuper, int *nsupermax, real **center, real **supernode_wgts, real **distances, real *counts, int *flag){ ^~~~~ In file included from QuadTree.c:15:0: /jenkins/jobs/oi-userland/workspace/components/image/graphviz/graphviz-2.40.1/lib/common/geom.h:26:30: note: shadowed declaration is here typedef struct { int x, y; } point; ^~~~~ QuadTree.c: In function 'QuadTree_get_supernodes': QuadTree.c:126:58: warning: declaration of 'point' shadows a global declaration [-Wshadow] void QuadTree_get_supernodes(QuadTree qt, real bh, real *point, int nodeid, int *nsuper, ^~~~~ In file included from QuadTree.c:15:0: /jenkins/jobs/oi-userland/workspace/components/image/graphviz/graphviz-2.40.1/lib/common/geom.h:26:30: note: shadowed declaration is here typedef struct { int x, y; } point; ^~~~~ QuadTree.c:136:46: warning: conversion to 'unsigned int' from 'int' may change the sign of the result [-Wsign-conversion] if (!*center) *center = MALLOC(sizeof(real)*(*nsupermax)*dim); ^ QuadTree.c:136:59: warning: conversion to 'unsigned int' from 'int' may change the sign of the result [-Wsign-conversion] if (!*center) *center = MALLOC(sizeof(real)*(*nsupermax)*dim); ^ QuadTree.c:137:62: warning: conversion to 'unsigned int' from 'int' may change the sign of the result [-Wsign-conversion] if (!*supernode_wgts) *supernode_wgts = MALLOC(sizeof(real)*(*nsupermax)); ^ QuadTree.c:138:52: warning: conversion to 'unsigned int' from 'int' may change the sign of the result [-Wsign-conversion] if (!*distances) *distances = MALLOC(sizeof(real)*(*nsupermax)); ^ QuadTree.c: In function 'get_or_alloc_force_qt': QuadTree.c:158:35: warning: conversion to 'unsigned int' from 'int' may change the sign of the result [-Wsign-conversion] qt->data = MALLOC(sizeof(real)*dim); ^ QuadTree.c: In function 'QuadTree_repulsive_force_interact': QuadTree.c:193:13: warning: comparing floating point with == or != is unsafe [-Wfloat-equal] if (p == -1){ ^~ QuadTree.c:225:10: warning: comparing floating point with == or != is unsafe [-Wfloat-equal] if (p == -1){ ^~ QuadTree.c: In function 'QuadTree_new_from_point_list': QuadTree.c:356:29: warning: conversion to 'unsigned int' from 'int' may change the sign of the result [-Wsign-conversion] xmin = MALLOC(sizeof(real)*dim); ^ QuadTree.c:357:29: warning: conversion to 'unsigned int' from 'int' may change the sign of the result [-Wsign-conversion] xmax = MALLOC(sizeof(real)*dim); ^ QuadTree.c:358:31: warning: conversion to 'unsigned int' from 'int' may change the sign of the result [-Wsign-conversion] center = MALLOC(sizeof(real)*dim); ^ QuadTree.c:381:13: warning: comparing floating point with == or != is unsafe [-Wfloat-equal] if (width == 0) width = 0.00001;/* if we only have one point, width = 0! */ ^~ QuadTree.c: In function 'QuadTree_new': QuadTree.c:408:34: warning: conversion to 'unsigned int' from 'int' may change the sign of the result [-Wsign-conversion] q->center = MALLOC(sizeof(real)*dim); ^ QuadTree.c: In function 'QuadTree_add_internal': QuadTree.c:499:37: warning: conversion to 'unsigned int' from 'int' may change the sign of the result [-Wsign-conversion] q->average = MALLOC(sizeof(real)*dim); ^ QuadTree.c:509:39: warning: conversion to 'unsigned int' from 'int' may change the sign of the result [-Wsign-conversion] q->qts = MALLOC(sizeof(QuadTree)*(1<cl = RALLOC(clist->sz, clist->cl, graph_t *); ^~~~~~ patchworkinit.c: In function 'mkClusters': /jenkins/jobs/oi-userland/workspace/components/image/graphviz/graphviz-2.40.1/lib/common/memory.h:42:58: warning: conversion to 'unsigned int' from 'int' may change the sign of the result [-Wsign-conversion] #define RALLOC(size,ptr,type) ((type*)grealloc(ptr,(size)*sizeof(type))) ^ patchworkinit.c:93:27: note: in expansion of macro 'RALLOC' GD_clust(g) = RALLOC(list.cnt + 1, list.cl, graph_t*); ^~~~~~ patchworkinit.c: In function 'patchwork_init_node_edge': /jenkins/jobs/oi-userland/workspace/components/image/graphviz/graphviz-2.40.1/lib/common/memory.h:36:41: warning: conversion to 'unsigned int' from 'int' may change the sign of the result [-Wsign-conversion] #define N_NEW(n,t) (t*)zmalloc((n)*sizeof(t)) ^ patchworkinit.c:114:18: note: in expansion of macro 'N_NEW' rdata* alg = N_NEW(agnnodes(g), rdata); ^~~~~ /jenkins/jobs/oi-userland/workspace/components/image/graphviz/graphviz-2.40.1/lib/common/memory.h:36:41: warning: conversion to 'unsigned int' from 'int' may change the sign of the result [-Wsign-conversion] #define N_NEW(n,t) (t*)zmalloc((n)*sizeof(t)) ^ patchworkinit.c:116:25: note: in expansion of macro 'N_NEW' GD_neato_nlist(g) = N_NEW(agnnodes(g) + 1, node_t *); ^~~~~ patchwork.c: In function 'fullArea': patchwork.c:58:11: warning: comparing floating point with == or != is unsafe [-Wfloat-equal] if (m == 0) return p->child_area; ^~ patchwork.c: In function 'getArea': patchwork.c:68:14: warning: comparing floating point with == or != is unsafe [-Wfloat-equal] if (area == 0) area = DFLT_SZ; ^~ In file included from /jenkins/jobs/oi-userland/workspace/components/image/graphviz/graphviz-2.40.1/lib/common/render.h:44:0, from ./patchwork.h:17, from patchwork.c:16: patchwork.c: In function 'layoutTree': /jenkins/jobs/oi-userland/workspace/components/image/graphviz/graphviz-2.40.1/lib/common/memory.h:36:41: warning: conversion to 'unsigned int' from 'int' may change the sign of the result [-Wsign-conversion] #define N_NEW(n,t) (t*)zmalloc((n)*sizeof(t)) ^ patchwork.c:158:13: note: in expansion of macro 'N_NEW' nodes = N_NEW(nc, treenode_t*); ^~~~~ patchwork.c:165:19: warning: conversion to 'size_t {aka unsigned int}' from 'int' may change the sign of the result [-Wsign-conversion] qsort (nodes, nc, sizeof(treenode_t*), (qsort_cmpf)nodecmp); ^~ In file included from /jenkins/jobs/oi-userland/workspace/components/image/graphviz/graphviz-2.40.1/lib/common/render.h:44:0, from ./patchwork.h:17, from patchwork.c:16: /jenkins/jobs/oi-userland/workspace/components/image/graphviz/graphviz-2.40.1/lib/common/memory.h:36:41: warning: conversion to 'unsigned int' from 'int' may change the sign of the result [-Wsign-conversion] #define N_NEW(n,t) (t*)zmalloc((n)*sizeof(t)) ^ patchwork.c:166:20: note: in expansion of macro 'N_NEW' areas_sorted = N_NEW(nc,double); ^~~~~ patchwork.c:170:20: warning: comparing floating point with == or != is unsafe [-Wfloat-equal] if (tree->area == tree->child_area) ^~ tree_map.c: In function 'squarify': tree_map.c:60:13: warning: comparing floating point with == or != is unsafe [-Wfloat-equal] if (w == fillrec.size[0]){/* tall rec. fix the items along x direction, left to right, at top*/ ^~ In file included from /jenkins/jobs/oi-userland/workspace/components/image/graphviz/graphviz-2.40.1/lib/common/render.h:44:0, from tree_map.c:14: tree_map.c: In function 'tree_map': /jenkins/jobs/oi-userland/workspace/components/image/graphviz/graphviz-2.40.1/lib/common/memory.h:36:41: warning: conversion to 'unsigned int' from 'int' may change the sign of the result [-Wsign-conversion] #define N_NEW(n,t) (t*)zmalloc((n)*sizeof(t)) ^ tree_map.c:112:10: note: in expansion of macro 'N_NEW' recs = N_NEW(n,rectangle); ^~~~~ CCLD libpatchwork_C.la make[6]: Leaving directory '/jenkins/jobs/oi-userland/workspace/components/image/graphviz/build/i86/lib/patchwork' Making all in expr make[6]: Entering directory '/jenkins/jobs/oi-userland/workspace/components/image/graphviz/build/i86/lib/expr' CC excc.lo CC exdata.lo CC exeval.lo CC excontext.lo CC exexpr.lo CC exerror.lo CC exlexname.lo CC exopen.lo In file included from exlib.h:131:0, from excc.c:26: ./expr.h:33:5: warning: "_BLD_expr" is not defined, evaluates to 0 [-Wundef] #if _BLD_expr && defined(__EXPORT__) ^~~~~~~~~ ./expr.h:36:6: warning: "_BLD_expr" is not defined, evaluates to 0 [-Wundef] #if !_BLD_expr && defined(__IMPORT__) ^~~~~~~~~ In file included from ./expr.h:58:0, from exlib.h:131, from excc.c:26: /jenkins/jobs/oi-userland/workspace/components/image/graphviz/graphviz-2.40.1/lib/vmalloc/vmalloc.h:105:5: warning: "_BLD_vmalloc" is not defined, evaluates to 0 [-Wundef] #if _BLD_vmalloc && defined(__EXPORT__) ^~~~~~~~~~~~ /jenkins/jobs/oi-userland/workspace/components/image/graphviz/graphviz-2.40.1/lib/vmalloc/vmalloc.h:108:6: warning: "_BLD_vmalloc" is not defined, evaluates to 0 [-Wundef] #if !_BLD_vmalloc && defined(__IMPORT__) ^~~~~~~~~~~~ /jenkins/jobs/oi-userland/workspace/components/image/graphviz/graphviz-2.40.1/lib/vmalloc/vmalloc.h:135:5: warning: "_BLD_vmalloc" is not defined, evaluates to 0 [-Wundef] #if _BLD_vmalloc && defined(__EXPORT__) ^~~~~~~~~~~~ In file included from exlib.h:131:0, from excc.c:26: ./expr.h:117:5: warning: "LONG_MAX" is not defined, evaluates to 0 [-Wundef] #if LONG_MAX > INT_MAX ^~~~~~~~ ./expr.h:117:16: warning: "INT_MAX" is not defined, evaluates to 0 [-Wundef] #if LONG_MAX > INT_MAX ^~~~~~~ ./expr.h:296:5: warning: "_BLD_expr" is not defined, evaluates to 0 [-Wundef] #if _BLD_expr && defined(__EXPORT__) ^~~~~~~~~ In file included from exlib.h:134:0, from excc.c:26: /jenkins/jobs/oi-userland/workspace/components/image/graphviz/graphviz-2.40.1/lib/ast/sfstr.h:50:5: warning: "_BLD_ast" is not defined, evaluates to 0 [-Wundef] #if _BLD_ast && defined(__EXPORT__) ^~~~~~~~ excc.c: In function 'exopname': excc.c:44:2: warning: switch missing default case [-Wswitch-default] switch (op) ^~~~~~ excc.c: In function 'print': excc.c:106:29: warning: declaration of 'expr' shadows a global declaration [-Wshadow] print(Excc_t* cc, Exnode_t* expr) ^~~~ In file included from excc.c:26:0: exlib.h:183:18: note: shadowed declaration is here extern Exstate_t expr; ^~~~ excc.c:121:19: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] for (i = 0; i < elementsof(x->param) && x->param[i]; i++) ^ excc.c: In function 'scan': excc.c:141:28: warning: declaration of 'expr' shadows a global declaration [-Wshadow] scan(Excc_t* cc, Exnode_t* expr) ^~~~ In file included from excc.c:26:0: exlib.h:183:18: note: shadowed declaration is here extern Exstate_t expr; ^~~~ excc.c:156:19: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] for (i = 0; i < elementsof(x->param) && x->param[i]; i++) ^ excc.c: In function 'gen': excc.c:176:36: warning: declaration of 'expr' shadows a global declaration [-Wshadow] gen(Excc_t* cc, register Exnode_t* expr) ^~~~ In file included from exlib.h:131:0, from exeval.c:26: ./expr.h:33:5: warning: "_BLD_expr" is not defined, evaluates to 0 [-Wundef] #if _BLD_expr && defined(__EXPORT__) ^~~~~~~~~ In file included from excc.c:26:0: exlib.h:183:18: note: shadowed declaration is here extern Exstate_t expr; ^~~~ ./expr.h:36:6: warning: "_BLD_expr" is not defined, evaluates to 0 [-Wundef] #if !_BLD_expr && defined(__IMPORT__) ^~~~~~~~~ In file included from ./exlib.h:131:0, from exdata.c:22: ./expr.h:33:5: warning: "_BLD_expr" is not defined, evaluates to 0 [-Wundef] #if _BLD_expr && defined(__EXPORT__) ^~~~~~~~~ ./expr.h:36:6: warning: "_BLD_expr" is not defined, evaluates to 0 [-Wundef] #if !_BLD_expr && defined(__IMPORT__) ^~~~~~~~~ In file included from ./expr.h:58:0, from exlib.h:131, from exeval.c:26: /jenkins/jobs/oi-userland/workspace/components/image/graphviz/graphviz-2.40.1/lib/vmalloc/vmalloc.h:105:5: warning: "_BLD_vmalloc" is not defined, evaluates to 0 [-Wundef] #if _BLD_vmalloc && defined(__EXPORT__) ^~~~~~~~~~~~ /jenkins/jobs/oi-userland/workspace/components/image/graphviz/graphviz-2.40.1/lib/vmalloc/vmalloc.h:108:6: warning: "_BLD_vmalloc" is not defined, evaluates to 0 [-Wundef] #if !_BLD_vmalloc && defined(__IMPORT__) ^~~~~~~~~~~~ /jenkins/jobs/oi-userland/workspace/components/image/graphviz/graphviz-2.40.1/lib/vmalloc/vmalloc.h:135:5: warning: "_BLD_vmalloc" is not defined, evaluates to 0 [-Wundef] #if _BLD_vmalloc && defined(__EXPORT__) ^~~~~~~~~~~~ In file included from exlib.h:131:0, from exeval.c:26: ./expr.h:117:5: warning: "LONG_MAX" is not defined, evaluates to 0 [-Wundef] #if LONG_MAX > INT_MAX ^~~~~~~~ excc.c:197:2: warning: switch missing default case [-Wswitch-default] switch (expr->op) ^~~~~~ ./expr.h:117:16: warning: "INT_MAX" is not defined, evaluates to 0 [-Wundef] #if LONG_MAX > INT_MAX ^~~~~~~ excc.c:539:3: warning: switch missing default case [-Wswitch-default] switch (expr->op) ^~~~~~ ./expr.h:296:5: warning: "_BLD_expr" is not defined, evaluates to 0 [-Wundef] #if _BLD_expr && defined(__EXPORT__) ^~~~~~~~~ In file included from ./expr.h:58:0, from ./exlib.h:131, from exdata.c:22: /jenkins/jobs/oi-userland/workspace/components/image/graphviz/graphviz-2.40.1/lib/vmalloc/vmalloc.h:105:5: warning: "_BLD_vmalloc" is not defined, evaluates to 0 [-Wundef] #if _BLD_vmalloc && defined(__EXPORT__) ^~~~~~~~~~~~ /jenkins/jobs/oi-userland/workspace/components/image/graphviz/graphviz-2.40.1/lib/vmalloc/vmalloc.h:108:6: warning: "_BLD_vmalloc" is not defined, evaluates to 0 [-Wundef] #if !_BLD_vmalloc && defined(__IMPORT__) ^~~~~~~~~~~~ /jenkins/jobs/oi-userland/workspace/components/image/graphviz/graphviz-2.40.1/lib/vmalloc/vmalloc.h:135:5: warning: "_BLD_vmalloc" is not defined, evaluates to 0 [-Wundef] #if _BLD_vmalloc && defined(__EXPORT__) ^~~~~~~~~~~~ excc.c: In function 'global': excc.c:624:14: warning: unused parameter 'table' [-Wunused-parameter] global(Dt_t* table, void* object, void* handle) ^~~~~ excc.c: In function 'exccopen': excc.c:639:18: warning: declaration of 'expr' shadows a global declaration [-Wshadow] exccopen(Expr_t* expr, Exccdisc_t* disc) ^~~~ In file included from excc.c:26:0: exlib.h:183:18: note: shadowed declaration is here extern Exstate_t expr; ^~~~ In file included from ./exlib.h:131:0, from exdata.c:22: ./expr.h:117:5: warning: "LONG_MAX" is not defined, evaluates to 0 [-Wundef] #if LONG_MAX > INT_MAX ^~~~~~~~ ./expr.h:117:16: warning: "INT_MAX" is not defined, evaluates to 0 [-Wundef] #if LONG_MAX > INT_MAX ^~~~~~~ excc.c:657:22: warning: conversion to 'int' from 'size_t {aka unsigned int}' may change the sign of the result [-Wsign-conversion] sfsprintf(cc->id, strlen(id) + 2, "%s_", id); ^~~~~~ ./expr.h:296:5: warning: "_BLD_expr" is not defined, evaluates to 0 [-Wundef] #if _BLD_expr && defined(__EXPORT__) ^~~~~~~~~ In file included from ./expr.h:57:0, from exlib.h:131, from excc.c:26: excc.c: In function 'excc': /jenkins/jobs/oi-userland/workspace/components/image/graphviz/graphviz-2.40.1/lib/cdt/cdt.h:277:47: warning: cast discards 'const' qualifier from pointer target type [-Wcast-qual] #define dtmatch(d,o) (*(_DT(d)->searchf))((d),(void*)(o),DT_MATCH) ^ excc.c:701:25: note: in expansion of macro 'dtmatch' sym = name ? (Exid_t*)dtmatch(cc->expr->symbols, name) : &cc->expr->main; ^~~~~~~ In file included from exlib.h:134:0, from exeval.c:26: /jenkins/jobs/oi-userland/workspace/components/image/graphviz/graphviz-2.40.1/lib/ast/sfstr.h:50:5: warning: "_BLD_ast" is not defined, evaluates to 0 [-Wundef] #if _BLD_ast && defined(__EXPORT__) ^~~~~~~~ excc.c: In function 'exdump': excc.c:721:16: warning: declaration of 'expr' shadows a global declaration [-Wshadow] exdump(Expr_t* expr, Exnode_t* node, Sfio_t* sp) ^~~~ In file included from excc.c:26:0: exlib.h:183:18: note: shadowed declaration is here extern Exstate_t expr; ^~~~ In file included from ./exlib.h:134:0, from exdata.c:22: /jenkins/jobs/oi-userland/workspace/components/image/graphviz/graphviz-2.40.1/lib/ast/sfstr.h:50:5: warning: "_BLD_ast" is not defined, evaluates to 0 [-Wundef] #if _BLD_ast && defined(__EXPORT__) ^~~~~~~~ exeval.c: In function 'lexname': exeval.c:58:10: warning: cast discards 'const' qualifier from pointer target type [-Wcast-qual] return (char*)exop[op - MINTOKEN]; ^ exeval.c: In function 'evaldyn': exeval.c:86:43: warning: declaration of 'expr' shadows a global declaration [-Wshadow] evaldyn (Expr_t * ex, register Exnode_t * expr, void *env, int delete) ^~~~ In file included from exeval.c:26:0: exlib.h:183:18: note: shadowed declaration is here extern Exstate_t expr; ^~~~ exeval.c: In function 'getdyn': exeval.c:129:39: warning: declaration of 'expr' shadows a global declaration [-Wshadow] getdyn(Expr_t* ex, register Exnode_t* expr, void* env, Exassoc_t** assoc) ^~~~ In file included from exeval.c:26:0: exlib.h:183:18: note: shadowed declaration is here extern Exstate_t expr; ^~~~ In file included from ./exlib.h:131:0, from exerror.c:20: ./expr.h:33:5: warning: "_BLD_expr" is not defined, evaluates to 0 [-Wundef] #if _BLD_expr && defined(__EXPORT__) ^~~~~~~~~ ./expr.h:36:6: warning: "_BLD_expr" is not defined, evaluates to 0 [-Wundef] #if !_BLD_expr && defined(__IMPORT__) ^~~~~~~~~ exeval.c: In function 'prformat': exeval.c:263:10: warning: conversion to 'int' from 'size_t {aka unsigned int}' may change the sign of the result [-Wsign-conversion] n = strlen(fmt->value.string); ^~~~~~ exeval.c:264:22: warning: conversion to 'size_t {aka unsigned int}' from 'int' may change the sign of the result [-Wsign-conversion] if ((s = fmtbuf(n + 1))) ^ exeval.c:265:36: warning: conversion to 'size_t {aka unsigned int}' from 'int' may change the sign of the result [-Wsign-conversion] memcpy(s, fmt->value.string, n + 1); ^ In file included from exlib.h:134:0, from exeval.c:26: /jenkins/jobs/oi-userland/workspace/components/image/graphviz/graphviz-2.40.1/lib/ast/sfstr.h:30:47: warning: negative integer implicitly converted to unsigned type [-Wsign-conversion] #define sfstropen() sfnew((Sfio_t*)0,(char*)0,-1,-1,SF_WRITE|SF_STRING) ^ exeval.c:291:33: note: in expansion of macro 'sfstropen' if (!fmt->tmp && !(fmt->tmp = sfstropen())) ^~~~~~~~~ In file included from ./expr.h:58:0, from ./exlib.h:131, from exerror.c:20: /jenkins/jobs/oi-userland/workspace/components/image/graphviz/graphviz-2.40.1/lib/vmalloc/vmalloc.h:105:5: warning: "_BLD_vmalloc" is not defined, evaluates to 0 [-Wundef] #if _BLD_vmalloc && defined(__EXPORT__) ^~~~~~~~~~~~ /jenkins/jobs/oi-userland/workspace/components/image/graphviz/graphviz-2.40.1/lib/vmalloc/vmalloc.h:108:6: warning: "_BLD_vmalloc" is not defined, evaluates to 0 [-Wundef] #if !_BLD_vmalloc && defined(__IMPORT__) ^~~~~~~~~~~~ /jenkins/jobs/oi-userland/workspace/components/image/graphviz/graphviz-2.40.1/lib/vmalloc/vmalloc.h:135:5: warning: "_BLD_vmalloc" is not defined, evaluates to 0 [-Wundef] #if _BLD_vmalloc && defined(__EXPORT__) ^~~~~~~~~~~~ exeval.c:327:12: warning: conversion to 'char' from 'int' may alter its value [-Wconversion] *s = tolower(*s); ^~~~~~~ In file included from ./exlib.h:131:0, from exerror.c:20: ./expr.h:117:5: warning: "LONG_MAX" is not defined, evaluates to 0 [-Wundef] #if LONG_MAX > INT_MAX ^~~~~~~~ ./expr.h:117:16: warning: "INT_MAX" is not defined, evaluates to 0 [-Wundef] #if LONG_MAX > INT_MAX ^~~~~~~ exeval.c:329:12: warning: conversion to 'char' from 'int' may alter its value [-Wconversion] *s = toupper(*s); ^~~~~~~ exeval.c:335:12: warning: conversion to 'char' from 'int' may alter its value [-Wconversion] *s = tolower(*s); ^~~~~~~ exeval.c:341:12: warning: conversion to 'char' from 'int' may alter its value [-Wconversion] *s = toupper(*s); ^~~~~~~ ./expr.h:296:5: warning: "_BLD_expr" is not defined, evaluates to 0 [-Wundef] #if _BLD_expr && defined(__EXPORT__) ^~~~~~~~~ exeval.c:355:13: warning: conversion to 'time_t {aka long int}' from 'long long int' may alter its value [-Wconversion] if ((tm = *((Sflong_t*)vp)) == -1) ^ In file included from exlib.h:131:0, from exexpr.c:20: ./expr.h:33:5: warning: "_BLD_expr" is not defined, evaluates to 0 [-Wundef] #if _BLD_expr && defined(__EXPORT__) ^~~~~~~~~ ./expr.h:36:6: warning: "_BLD_expr" is not defined, evaluates to 0 [-Wundef] #if !_BLD_expr && defined(__IMPORT__) ^~~~~~~~~ exeval.c:301:2: warning: switch missing default case [-Wswitch-default] switch (dp->fmt) ^~~~~~ exeval.c:199:18: warning: unused parameter 'sp' [-Wunused-parameter] prformat(Sfio_t* sp, void* vp, Sffmt_t* dp) ^~ exeval.c: In function 'prints': exeval.c:379:41: warning: declaration of 'expr' shadows a global declaration [-Wshadow] prints(Expr_t * ex, register Exnode_t * expr, void *env, Sfio_t * sp) ^~~~ In file included from exeval.c:26:0: exlib.h:183:18: note: shadowed declaration is here extern Exstate_t expr; ^~~~ exeval.c: In function 'print': exeval.c:399:29: warning: declaration of 'expr' shadows a global declaration [-Wshadow] print(Expr_t* ex, Exnode_t* expr, void* env, Sfio_t* sp) ^~~~ In file included from exeval.c:26:0: exlib.h:183:18: note: shadowed declaration is here extern Exstate_t expr; ^~~~ In file included from /jenkins/jobs/oi-userland/workspace/components/image/graphviz/graphviz-2.40.1/lib/ast/ast.h:21:0, from exlib.h:29, from exeval.c:26: /jenkins/jobs/oi-userland/workspace/components/image/graphviz/graphviz-2.40.1/lib/sfio/sfio.h:274:20: warning: negative integer implicitly converted to unsigned type [-Wsign-conversion] #define SF_UNBOUND (-1) /* unbounded buffer size */ ^ exeval.c:408:138: note: in expansion of macro 'SF_UNBOUND' if (v.integer < 0 || v.integer >= elementsof(ex->file) || (!(sp = ex->file[v.integer]) && !(sp = ex->file[v.integer] = sfnew(NiL, NiL, SF_UNBOUND, v.integer, SF_READ|SF_WRITE)))) ^~~~~~~~~~ exeval.c:408:150: warning: conversion to 'int' from 'long long int' may alter its value [-Wconversion] if (v.integer < 0 || v.integer >= elementsof(ex->file) || (!(sp = ex->file[v.integer]) && !(sp = ex->file[v.integer] = sfnew(NiL, NiL, SF_UNBOUND, v.integer, SF_READ|SF_WRITE)))) ^ In file included from ./exlib.h:134:0, from exerror.c:20: /jenkins/jobs/oi-userland/workspace/components/image/graphviz/graphviz-2.40.1/lib/ast/sfstr.h:50:5: warning: "_BLD_ast" is not defined, evaluates to 0 [-Wundef] #if _BLD_ast && defined(__EXPORT__) ^~~~~~~~ exerror.c: In function 'exerror': /jenkins/jobs/oi-userland/workspace/components/image/graphviz/graphviz-2.40.1/lib/ast/sfstr.h:30:47: warning: negative integer implicitly converted to unsigned type [-Wsign-conversion] #define sfstropen() sfnew((Sfio_t*)0,(char*)0,-1,-1,SF_WRITE|SF_STRING) ^ exerror.c:31:67: note: in expansion of macro 'sfstropen' if (expr.program->disc->errorf && !expr.program->errors && (sp = sfstropen())) ^~~~~~~~~ In file included from ./expr.h:58:0, from exlib.h:131, from exeval.c:26: exeval.c: In function 'scformat': /jenkins/jobs/oi-userland/workspace/components/image/graphviz/graphviz-2.40.1/lib/vmalloc/vmalloc.h:216:60: warning: conversion to 'unsigned int' from 'ssize_t {aka int}' may change the sign of the result [-Wsign-conversion] #define vmnewof(v,p,t,n,x) (t*)vmresize((v), (p), sizeof(t)*(n)+(x), \ ^ /jenkins/jobs/oi-userland/workspace/components/image/graphviz/graphviz-2.40.1/lib/vmalloc/vmalloc.h:203:24: note: in definition of macro 'vmresize' ((vm),(void*)(d),(sz),(type)) ^~ exeval.c:484:83: note: in expansion of macro 'vmnewof' *((void**)vp) = node->data.variable.symbol->value->data.constant.value.string = vmnewof(fmt->expr->vm, node->data.variable.symbol->value->data.constant.value.string, char, fmt->fmt.size, 0); ^~~~~~~ exerror.c: In function 'exwarn': /jenkins/jobs/oi-userland/workspace/components/image/graphviz/graphviz-2.40.1/lib/ast/sfstr.h:30:47: warning: negative integer implicitly converted to unsigned type [-Wsign-conversion] #define sfstropen() sfnew((Sfio_t*)0,(char*)0,-1,-1,SF_WRITE|SF_STRING) ^ exerror.c:58:42: note: in expansion of macro 'sfstropen' if (expr.program->disc->errorf && (sp = sfstropen())) { ^~~~~~~~~ exeval.c:451:18: warning: unused parameter 'sp' [-Wunused-parameter] scformat(Sfio_t* sp, void* vp, Sffmt_t* dp) ^~ exeval.c: In function 'scan': exeval.c:514:28: warning: declaration of 'expr' shadows a global declaration [-Wshadow] scan(Expr_t* ex, Exnode_t* expr, void* env, Sfio_t* sp) ^~~~ In file included from exeval.c:26:0: exlib.h:183:18: note: shadowed declaration is here extern Exstate_t expr; ^~~~ In file included from /jenkins/jobs/oi-userland/workspace/components/image/graphviz/graphviz-2.40.1/lib/ast/ast.h:21:0, from exlib.h:29, from exeval.c:26: /jenkins/jobs/oi-userland/workspace/components/image/graphviz/graphviz-2.40.1/lib/sfio/sfio.h:274:20: warning: negative integer implicitly converted to unsigned type [-Wsign-conversion] #define SF_UNBOUND (-1) /* unbounded buffer size */ ^ exeval.c:531:142: note: in expansion of macro 'SF_UNBOUND' if ((v.integer < 0) || (v.integer >= elementsof(ex->file)) || (!(sp = ex->file[v.integer]) && !(sp = ex->file[v.integer] = sfnew(NiL, NiL, SF_UNBOUND, v.integer, SF_READ|SF_WRITE)))) ^~~~~~~~~~ exeval.c:531:154: warning: conversion to 'int' from 'long long int' may alter its value [-Wconversion] if ((v.integer < 0) || (v.integer >= elementsof(ex->file)) || (!(sp = ex->file[v.integer]) && !(sp = ex->file[v.integer] = sfnew(NiL, NiL, SF_UNBOUND, v.integer, SF_READ|SF_WRITE)))) ^ In file included from exlib.h:131:0, from exlexname.c:20: ./expr.h:33:5: warning: "_BLD_expr" is not defined, evaluates to 0 [-Wundef] #if _BLD_expr && defined(__EXPORT__) ^~~~~~~~~ ./expr.h:36:6: warning: "_BLD_expr" is not defined, evaluates to 0 [-Wundef] #if !_BLD_expr && defined(__IMPORT__) ^~~~~~~~~ In file included from ./expr.h:58:0, from exlib.h:131, from exexpr.c:20: /jenkins/jobs/oi-userland/workspace/components/image/graphviz/graphviz-2.40.1/lib/vmalloc/vmalloc.h:105:5: warning: "_BLD_vmalloc" is not defined, evaluates to 0 [-Wundef] #if _BLD_vmalloc && defined(__EXPORT__) ^~~~~~~~~~~~ /jenkins/jobs/oi-userland/workspace/components/image/graphviz/graphviz-2.40.1/lib/vmalloc/vmalloc.h:108:6: warning: "_BLD_vmalloc" is not defined, evaluates to 0 [-Wundef] #if !_BLD_vmalloc && defined(__IMPORT__) ^~~~~~~~~~~~ /jenkins/jobs/oi-userland/workspace/components/image/graphviz/graphviz-2.40.1/lib/vmalloc/vmalloc.h:135:5: warning: "_BLD_vmalloc" is not defined, evaluates to 0 [-Wundef] #if _BLD_vmalloc && defined(__EXPORT__) ^~~~~~~~~~~~ In file included from exlib.h:131:0, from exexpr.c:20: ./expr.h:117:5: warning: "LONG_MAX" is not defined, evaluates to 0 [-Wundef] #if LONG_MAX > INT_MAX ^~~~~~~~ ./expr.h:117:16: warning: "INT_MAX" is not defined, evaluates to 0 [-Wundef] #if LONG_MAX > INT_MAX ^~~~~~~ In file included from ./expr.h:58:0, from exlib.h:131, from exlexname.c:20: /jenkins/jobs/oi-userland/workspace/components/image/graphviz/graphviz-2.40.1/lib/vmalloc/vmalloc.h:105:5: warning: "_BLD_vmalloc" is not defined, evaluates to 0 [-Wundef] #if _BLD_vmalloc && defined(__EXPORT__) ^~~~~~~~~~~~ /jenkins/jobs/oi-userland/workspace/components/image/graphviz/graphviz-2.40.1/lib/vmalloc/vmalloc.h:108:6: warning: "_BLD_vmalloc" is not defined, evaluates to 0 [-Wundef] #if !_BLD_vmalloc && defined(__IMPORT__) ^~~~~~~~~~~~ /jenkins/jobs/oi-userland/workspace/components/image/graphviz/graphviz-2.40.1/lib/vmalloc/vmalloc.h:135:5: warning: "_BLD_vmalloc" is not defined, evaluates to 0 [-Wundef] #if _BLD_vmalloc && defined(__EXPORT__) ^~~~~~~~~~~~ In file included from exlib.h:131:0, from excontext.c:20: ./expr.h:33:5: warning: "_BLD_expr" is not defined, evaluates to 0 [-Wundef] #if _BLD_expr && defined(__EXPORT__) ^~~~~~~~~ ./expr.h:36:6: warning: "_BLD_expr" is not defined, evaluates to 0 [-Wundef] #if !_BLD_expr && defined(__IMPORT__) ^~~~~~~~~ In file included from exlib.h:131:0, from exlexname.c:20: ./expr.h:117:5: warning: "LONG_MAX" is not defined, evaluates to 0 [-Wundef] #if LONG_MAX > INT_MAX ^~~~~~~~ ./expr.h:117:16: warning: "INT_MAX" is not defined, evaluates to 0 [-Wundef] #if LONG_MAX > INT_MAX ^~~~~~~ exeval.c: In function 'replace': exeval.c:663:34: warning: conversion to 'size_t {aka unsigned int}' from 'int' may change the sign of the result [-Wsign-conversion] sfwrite(s, base + offset, sub[2 * idx + 1] - offset); ^~~ ./expr.h:296:5: warning: "_BLD_expr" is not defined, evaluates to 0 [-Wundef] #if _BLD_expr && defined(__EXPORT__) ^~~~~~~~~ exeval.c: At top level: ./expr.h:296:5: warning: "_BLD_expr" is not defined, evaluates to 0 [-Wundef] #if _BLD_expr && defined(__EXPORT__) ^~~~~~~~~ exeval.c:694:1: warning: no previous prototype for 'exsplit' [-Wmissing-prototypes] exsplit(Expr_t * ex, register Exnode_t * expr, void *env) ^~~~~~~ exeval.c: In function 'exsplit': exeval.c:694:42: warning: declaration of 'expr' shadows a global declaration [-Wshadow] exsplit(Expr_t * ex, register Exnode_t * expr, void *env) ^~~~ In file included from exeval.c:26:0: exlib.h:183:18: note: shadowed declaration is here extern Exstate_t expr; ^~~~ exeval.c:719:18: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] for (i = 1; i < sz; i++) { ^ In file included from ./expr.h:58:0, from exlib.h:131, from excontext.c:20: /jenkins/jobs/oi-userland/workspace/components/image/graphviz/graphviz-2.40.1/lib/vmalloc/vmalloc.h:105:5: warning: "_BLD_vmalloc" is not defined, evaluates to 0 [-Wundef] #if _BLD_vmalloc && defined(__EXPORT__) ^~~~~~~~~~~~ /jenkins/jobs/oi-userland/workspace/components/image/graphviz/graphviz-2.40.1/lib/vmalloc/vmalloc.h:108:6: warning: "_BLD_vmalloc" is not defined, evaluates to 0 [-Wundef] #if !_BLD_vmalloc && defined(__IMPORT__) ^~~~~~~~~~~~ /jenkins/jobs/oi-userland/workspace/components/image/graphviz/graphviz-2.40.1/lib/vmalloc/vmalloc.h:135:5: warning: "_BLD_vmalloc" is not defined, evaluates to 0 [-Wundef] #if _BLD_vmalloc && defined(__EXPORT__) ^~~~~~~~~~~~ In file included from exlib.h:131:0, from excontext.c:20: ./expr.h:117:5: warning: "LONG_MAX" is not defined, evaluates to 0 [-Wundef] #if LONG_MAX > INT_MAX ^~~~~~~~ exeval.c: At top level: ./expr.h:117:16: warning: "INT_MAX" is not defined, evaluates to 0 [-Wundef] #if LONG_MAX > INT_MAX ^~~~~~~ exeval.c:746:1: warning: no previous prototype for 'extokens' [-Wmissing-prototypes] extokens(Expr_t * ex, register Exnode_t * expr, void *env) ^~~~~~~~ exeval.c: In function 'extokens': exeval.c:746:43: warning: declaration of 'expr' shadows a global declaration [-Wshadow] extokens(Expr_t * ex, register Exnode_t * expr, void *env) ^~~~ In file included from exeval.c:26:0: exlib.h:183:18: note: shadowed declaration is here extern Exstate_t expr; ^~~~ In file included from exlib.h:134:0, from exlexname.c:20: /jenkins/jobs/oi-userland/workspace/components/image/graphviz/graphviz-2.40.1/lib/ast/sfstr.h:50:5: warning: "_BLD_ast" is not defined, evaluates to 0 [-Wundef] #if _BLD_ast && defined(__EXPORT__) ^~~~~~~~ ./expr.h:296:5: warning: "_BLD_expr" is not defined, evaluates to 0 [-Wundef] #if _BLD_expr && defined(__EXPORT__) ^~~~~~~~~ exeval.c: At top level: exeval.c:785:1: warning: no previous prototype for 'exsub' [-Wmissing-prototypes] exsub(Expr_t * ex, register Exnode_t * expr, void *env, int global) ^~~~~ exeval.c: In function 'exsub': exlexname.c:27:1: warning: no previous prototype for 'exlexname' [-Wmissing-prototypes] exlexname(int op, int subop) ^~~~~~~~~ exeval.c:785:40: warning: declaration of 'expr' shadows a global declaration [-Wshadow] exsub(Expr_t * ex, register Exnode_t * expr, void *env, int global) ^~~~ In file included from exeval.c:26:0: exlib.h:183:18: note: shadowed declaration is here extern Exstate_t expr; ^~~~ exlexname.c: In function 'exlexname': exlexname.c:35:10: warning: cast discards 'const' qualifier from pointer target type [-Wcast-qual] return (char*)exop[op - MINTOKEN]; ^ exeval.c:839:24: warning: conversion to 'size_t {aka unsigned int}' from 'int' may change the sign of the result [-Wsign-conversion] sfwrite(ex->tmp, str, sub[0]); ^~~ exeval.c:846:27: warning: conversion to 'size_t {aka unsigned int}' from 'int' may change the sign of the result [-Wsign-conversion] sfwrite(ex->tmp, s, sub[0]); ^~~ exeval.c: In function 'exsubstr': exeval.c:861:59: warning: declaration of 'expr' shadows a global declaration [-Wshadow] static Extype_t exsubstr(Expr_t * ex, register Exnode_t * expr, void *env) ^~~~ In file included from exeval.c:26:0: exlib.h:183:18: note: shadowed declaration is here extern Exstate_t expr; ^~~~ exeval.c:870:8: warning: conversion to 'int' from 'size_t {aka unsigned int}' may change the sign of the result [-Wsign-conversion] len = strlen(s.string); ^~~~~~ In file included from ./expr.h:58:0, from exlib.h:131, from exeval.c:26: /jenkins/jobs/oi-userland/workspace/components/image/graphviz/graphviz-2.40.1/lib/vmalloc/vmalloc.h:199:57: warning: conversion to 'size_t {aka unsigned int}' from 'long long int' may alter its value [-Wconversion] #define vmalloc(vm,sz) (*(_VM_(vm)->meth.allocf))((vm),(sz)) ^ exeval.c:881:13: note: in expansion of macro 'vmalloc' v.string = vmalloc(ex->ve, l.integer + 1); ^~~~~~~ exeval.c:883:43: warning: conversion to 'size_t {aka unsigned int}' from 'long long int' may alter its value [-Wconversion] strncpy(v.string, s.string + i.integer, l.integer); ^ exeval.c: In function 'xConvert': In file included from exlib.h:134:0, from excontext.c:20: /jenkins/jobs/oi-userland/workspace/components/image/graphviz/graphviz-2.40.1/lib/ast/sfstr.h:50:5: warning: "_BLD_ast" is not defined, evaluates to 0 [-Wundef] #if _BLD_ast && defined(__EXPORT__) ^~~~~~~~ exeval.c:894:34: warning: declaration of 'expr' shadows a global declaration [-Wshadow] xConvert(Expr_t * ex, Exnode_t * expr, int type, Extype_t v, ^~~~ In file included from exeval.c:26:0: exlib.h:183:18: note: shadowed declaration is here extern Exstate_t expr; ^~~~ exeval.c:905:14: warning: conversion to 'Exshort_t {aka short int}' from 'int' may alter its value [-Wconversion] tmp->type = type; ^~~~ exeval.c: In function 'xPrint': exeval.c:912:32: warning: declaration of 'expr' shadows a global declaration [-Wshadow] xPrint(Expr_t * ex, Exnode_t * expr, Extype_t v, Exnode_t * tmp) ^~~~ In file included from exeval.c:26:0: exlib.h:183:18: note: shadowed declaration is here extern Exstate_t expr; ^~~~ In file included from exlib.h:134:0, from exexpr.c:20: /jenkins/jobs/oi-userland/workspace/components/image/graphviz/graphviz-2.40.1/lib/ast/sfstr.h:50:5: warning: "_BLD_ast" is not defined, evaluates to 0 [-Wundef] #if _BLD_ast && defined(__EXPORT__) ^~~~~~~~ exeval.c: In function 'eval': exeval.c:929:37: warning: declaration of 'expr' shadows a global declaration [-Wshadow] eval(Expr_t* ex, register Exnode_t* expr, void* env) ^~~~ In file included from exeval.c:26:0: exlib.h:183:18: note: shadowed declaration is here extern Exstate_t expr; ^~~~ exeval.c:957:19: warning: conversion to 'int' from 'long long int' may alter its value [-Wconversion] ex->loopcount = v.integer; ^ In file included from ./expr.h:57:0, from exlib.h:131, from exexpr.c:20: exexpr.c: In function 'exexpr': excontext.c: In function 'excontext': excontext.c:43:30: warning: conversion to 'unsigned int' from 'int' may change the sign of the result [-Wsign-conversion] if ((n = (sizeof(p->line) - (t - (p->linep + 1))) - (e - s)) > 0) ^ /jenkins/jobs/oi-userland/workspace/components/image/graphviz/graphviz-2.40.1/lib/cdt/cdt.h:277:47: warning: cast discards 'const' qualifier from pointer target type [-Wcast-qual] #define dtmatch(d,o) (*(_DT(d)->searchf))((d),(void*)(o),DT_MATCH) ^ exexpr.c:32:26: note: in expansion of macro 'dtmatch' sym = name ? (Exid_t*)dtmatch(ex->symbols, name) : &ex->main; ^~~~~~~ excontext.c:43:54: warning: conversion to 'unsigned int' from 'int' may change the sign of the result [-Wsign-conversion] if ((n = (sizeof(p->line) - (t - (p->linep + 1))) - (e - s)) > 0) ^ exeval.c:1043:11: warning: conversion to 'long int' from 'long long int' may alter its value [-Wconversion] seed = eval(ex, x, env).integer; ^~~~ excontext.c:43:13: warning: conversion to 'int' from 'unsigned int' may change the sign of the result [-Wsign-conversion] if ((n = (sizeof(p->line) - (t - (p->linep + 1))) - (e - s)) > 0) ^ exeval.c:1118:26: warning: comparing floating point with == or != is unsafe [-Wfloat-equal] if ((*t)->floating == v.floating) ^~ exeval.c:1106:6: warning: switch missing default case [-Wswitch-default] switch ((int)i.integer) ^~~~~~ exeval.c:1235:10: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] if (n < elementsof(args)) ^ exeval.c:1244:81: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] for (n = 0, a = expr->data.call.procedure->value->data.procedure.args; a && n < elementsof(save); a = a->data.operand.right) ^ exeval.c:1251:81: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] for (n = 0, a = expr->data.call.procedure->value->data.procedure.args; a && n < elementsof(save); a = a->data.operand.right) ^ exeval.c:1256:45: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] for (x = expr->data.operand.right; x && n < elementsof(args); x = x->data.operand.right) ^ exeval.c:1263:45: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] for (x = expr->data.operand.right; x && n < elementsof(args); x = x->data.operand.right) ^ exeval.c:1344:21: warning: comparing floating point with == or != is unsafe [-Wfloat-equal] if (r.floating == 0.0) ^~ exeval.c:1350:23: warning: conversion to 'long long int' from 'double' may alter its value [-Wfloat-conversion] if ((r.integer = r.floating) == 0) ^ exeval.c:1353:20: warning: conversion to 'double' from 'long long int' may alter its value [-Wconversion] v.floating = ((Sflong_t)v.floating) % r.integer; ^ exeval.c:1356:19: warning: conversion to 'double' from 'long long int' may alter its value [-Wconversion] v.floating = ((Sflong_t)v.floating) & ((Sflong_t)r.floating); ^ exeval.c:1359:19: warning: conversion to 'double' from 'long long int' may alter its value [-Wconversion] v.floating = ((Sflong_t)v.floating) | ((Sflong_t)r.floating); ^ exeval.c:1362:19: warning: conversion to 'double' from 'long long int' may alter its value [-Wconversion] v.floating = ((Sflong_t)v.floating) ^ ((Sflong_t)r.floating); ^ exeval.c:1365:19: warning: conversion to 'double' from 'long long int' may alter its value [-Wconversion] v.floating = ((Sflong_t)v.floating) << ((Sflong_t)r.floating); ^ exeval.c:1368:5: warning: "_WIN32" is not defined, evaluates to 0 [-Wundef] #if _WIN32 ^~~~~~ exeval.c:1371:19: warning: conversion to 'double' from 'long long unsigned int' may alter its value [-Wconversion] v.floating = ((Sfulong_t)v.floating) >> ((Sflong_t)r.floating); ^ exeval.c:1416:18: warning: conversion to 'long long int' from 'long long unsigned int' may change the sign of the result [-Wsign-conversion] v.integer = (Sfulong_t)v.integer >> r.integer; ^ exeval.c:952:2: warning: switch missing default case [-Wswitch-default] switch (expr->op) ^~~~~~ exeval.c:1494:16: warning: conversion to 'long long int' from 'double' may alter its value [-Wfloat-conversion] v.integer = v.floating; ^ exeval.c:1521:17: warning: conversion to 'double' from 'long long int' may alter its value [-Wconversion] v.floating = ~((Sflong_t)v.floating); ^ exeval.c:1533:17: warning: conversion to 'double' from 'long long int' may alter its value [-Wconversion] v.floating = (Sflong_t)v.floating & (Sflong_t)r.floating; ^ exeval.c:1536:17: warning: conversion to 'double' from 'long long int' may alter its value [-Wconversion] v.floating = (Sflong_t)v.floating | (Sflong_t)r.floating; ^ exeval.c:1539:17: warning: conversion to 'double' from 'long long int' may alter its value [-Wconversion] v.floating = (Sflong_t)v.floating ^ (Sflong_t)r.floating; ^ exeval.c:1545:19: warning: comparing floating point with == or != is unsafe [-Wfloat-equal] if (r.floating == 0.0) ^~ exeval.c:1551:21: warning: conversion to 'long long int' from 'double' may alter its value [-Wfloat-conversion] if ((r.integer = r.floating) == 0) ^ exeval.c:1554:18: warning: conversion to 'double' from 'long long int' may alter its value [-Wconversion] v.floating = (Sflong_t)v.floating % r.integer; ^ exeval.c:1563:27: warning: comparing floating point with == or != is unsafe [-Wfloat-equal] v.integer = v.floating == r.floating; ^~ exeval.c:1566:27: warning: comparing floating point with == or != is unsafe [-Wfloat-equal] v.integer = v.floating != r.floating; ^~ exeval.c:1586:5: warning: "_WIN32" is not defined, evaluates to 0 [-Wundef] #if _WIN32 ^~~~~~ exeval.c:1594:11: warning: conversion to 'long long int' from 'long long unsigned int' may change the sign of the result [-Wsign-conversion] op1 = ((Sfulong_t) v.floating); ^ exeval.c:1491:3: warning: switch missing default case [-Wswitch-default] switch (expr->op) ^~~~~~ exeval.c:1635:3: warning: switch missing default case [-Wswitch-default] switch (expr->op) ^~~~~~ exeval.c:1656:5: warning: "_WIN32" is not defined, evaluates to 0 [-Wundef] #if _WIN32 ^~~~~~ exeval.c:1660:18: warning: conversion to 'double' from 'long long unsigned int' may alter its value [-Wconversion] v.floating = (Sfulong_t)v.integer; ^ exeval.c:1662:18: warning: conversion to 'double' from 'long long int' may alter its value [-Wconversion] v.floating = v.integer; ^ In file included from ./exlib.h:131:0, from exopen.c:27: ./expr.h:33:5: warning: "_BLD_expr" is not defined, evaluates to 0 [-Wundef] #if _BLD_expr && defined(__EXPORT__) ^~~~~~~~~ ./expr.h:36:6: warning: "_BLD_expr" is not defined, evaluates to 0 [-Wundef] #if !_BLD_expr && defined(__IMPORT__) ^~~~~~~~~ exeval.c:1757:17: warning: conversion to 'long long int' from 'long long unsigned int' may change the sign of the result [-Wsign-conversion] v.integer = (op1 >> op2); ^ exeval.c:1653:3: warning: switch missing default case [-Wswitch-default] switch (expr->op) ^~~~~~ exeval.c:1775:3: warning: switch missing default case [-Wswitch-default] switch (expr->op) ^~~~~~ exeval.c:1837:3: warning: switch missing default case [-Wswitch-default] switch (expr->op) ^~~~~~ exeval.c: In function 'exeval': exeval.c:1867:30: warning: declaration of 'expr' shadows a global declaration [-Wshadow] exeval(Expr_t* ex, Exnode_t* expr, void* env) ^~~~ In file included from exeval.c:26:0: exlib.h:183:18: note: shadowed declaration is here extern Exstate_t expr; ^~~~ In file included from ./expr.h:58:0, from ./exlib.h:131, from exopen.c:27: /jenkins/jobs/oi-userland/workspace/components/image/graphviz/graphviz-2.40.1/lib/vmalloc/vmalloc.h:105:5: warning: "_BLD_vmalloc" is not defined, evaluates to 0 [-Wundef] #if _BLD_vmalloc && defined(__EXPORT__) ^~~~~~~~~~~~ /jenkins/jobs/oi-userland/workspace/components/image/graphviz/graphviz-2.40.1/lib/vmalloc/vmalloc.h:108:6: warning: "_BLD_vmalloc" is not defined, evaluates to 0 [-Wundef] #if !_BLD_vmalloc && defined(__IMPORT__) ^~~~~~~~~~~~ /jenkins/jobs/oi-userland/workspace/components/image/graphviz/graphviz-2.40.1/lib/vmalloc/vmalloc.h:135:5: warning: "_BLD_vmalloc" is not defined, evaluates to 0 [-Wundef] #if _BLD_vmalloc && defined(__EXPORT__) ^~~~~~~~~~~~ In file included from ./exlib.h:131:0, from exopen.c:27: ./expr.h:117:5: warning: "LONG_MAX" is not defined, evaluates to 0 [-Wundef] #if LONG_MAX > INT_MAX ^~~~~~~~ ./expr.h:117:16: warning: "INT_MAX" is not defined, evaluates to 0 [-Wundef] #if LONG_MAX > INT_MAX ^~~~~~~ ./expr.h:296:5: warning: "_BLD_expr" is not defined, evaluates to 0 [-Wundef] #if _BLD_expr && defined(__EXPORT__) ^~~~~~~~~ In file included from ./exlib.h:134:0, from exopen.c:27: /jenkins/jobs/oi-userland/workspace/components/image/graphviz/graphviz-2.40.1/lib/ast/sfstr.h:50:5: warning: "_BLD_ast" is not defined, evaluates to 0 [-Wundef] #if _BLD_ast && defined(__EXPORT__) ^~~~~~~~ exopen.c: In function 'exopen': /jenkins/jobs/oi-userland/workspace/components/image/graphviz/graphviz-2.40.1/lib/ast/sfstr.h:30:47: warning: negative integer implicitly converted to unsigned type [-Wsign-conversion] #define sfstropen() sfnew((Sfio_t*)0,(char*)0,-1,-1,SF_WRITE|SF_STRING) ^ exopen.c:46:23: note: in expansion of macro 'sfstropen' !(program->tmp = sfstropen()) || ^~~~~~~~~ CC exrewind.lo CC extype.lo CC extoken.lo CC exzero.lo CC exparse.lo CC exnospace.lo In file included from exlib.h:131:0, from extype.c:21: ./expr.h:33:5: warning: "_BLD_expr" is not defined, evaluates to 0 [-Wundef] #if _BLD_expr && defined(__EXPORT__) ^~~~~~~~~ ./expr.h:36:6: warning: "_BLD_expr" is not defined, evaluates to 0 [-Wundef] #if !_BLD_expr && defined(__IMPORT__) ^~~~~~~~~ In file included from ./expr.h:58:0, from exlib.h:131, from extype.c:21: /jenkins/jobs/oi-userland/workspace/components/image/graphviz/graphviz-2.40.1/lib/vmalloc/vmalloc.h:105:5: warning: "_BLD_vmalloc" is not defined, evaluates to 0 [-Wundef] #if _BLD_vmalloc && defined(__EXPORT__) ^~~~~~~~~~~~ /jenkins/jobs/oi-userland/workspace/components/image/graphviz/graphviz-2.40.1/lib/vmalloc/vmalloc.h:108:6: warning: "_BLD_vmalloc" is not defined, evaluates to 0 [-Wundef] #if !_BLD_vmalloc && defined(__IMPORT__) ^~~~~~~~~~~~ /jenkins/jobs/oi-userland/workspace/components/image/graphviz/graphviz-2.40.1/lib/vmalloc/vmalloc.h:135:5: warning: "_BLD_vmalloc" is not defined, evaluates to 0 [-Wundef] #if _BLD_vmalloc && defined(__EXPORT__) ^~~~~~~~~~~~ In file included from exlib.h:131:0, from extype.c:21: ./expr.h:117:5: warning: "LONG_MAX" is not defined, evaluates to 0 [-Wundef] #if LONG_MAX > INT_MAX ^~~~~~~~ ./expr.h:117:16: warning: "INT_MAX" is not defined, evaluates to 0 [-Wundef] #if LONG_MAX > INT_MAX ^~~~~~~ ./expr.h:296:5: warning: "_BLD_expr" is not defined, evaluates to 0 [-Wundef] #if _BLD_expr && defined(__EXPORT__) ^~~~~~~~~ In file included from exlib.h:131:0, from exzero.c:21: ./expr.h:33:5: warning: "_BLD_expr" is not defined, evaluates to 0 [-Wundef] #if _BLD_expr && defined(__EXPORT__) ^~~~~~~~~ ./expr.h:36:6: warning: "_BLD_expr" is not defined, evaluates to 0 [-Wundef] #if !_BLD_expr && defined(__IMPORT__) ^~~~~~~~~ In file included from exlib.h:134:0, from extype.c:21: /jenkins/jobs/oi-userland/workspace/components/image/graphviz/graphviz-2.40.1/lib/ast/sfstr.h:50:5: warning: "_BLD_ast" is not defined, evaluates to 0 [-Wundef] #if _BLD_ast && defined(__EXPORT__) ^~~~~~~~ extype.c: In function 'extype': In file included from ./expr.h:58:0, from exlib.h:131, from exzero.c:21: /jenkins/jobs/oi-userland/workspace/components/image/graphviz/graphviz-2.40.1/lib/vmalloc/vmalloc.h:105:5: warning: "_BLD_vmalloc" is not defined, evaluates to 0 [-Wundef] #if _BLD_vmalloc && defined(__EXPORT__) ^~~~~~~~~~~~ extype.c:33:2: warning: switch missing default case [-Wswitch-default] switch (type) ^~~~~~ /jenkins/jobs/oi-userland/workspace/components/image/graphviz/graphviz-2.40.1/lib/vmalloc/vmalloc.h:108:6: warning: "_BLD_vmalloc" is not defined, evaluates to 0 [-Wundef] #if !_BLD_vmalloc && defined(__IMPORT__) ^~~~~~~~~~~~ /jenkins/jobs/oi-userland/workspace/components/image/graphviz/graphviz-2.40.1/lib/vmalloc/vmalloc.h:135:5: warning: "_BLD_vmalloc" is not defined, evaluates to 0 [-Wundef] #if _BLD_vmalloc && defined(__EXPORT__) ^~~~~~~~~~~~ In file included from exlib.h:131:0, from exzero.c:21: ./expr.h:117:5: warning: "LONG_MAX" is not defined, evaluates to 0 [-Wundef] #if LONG_MAX > INT_MAX ^~~~~~~~ ./expr.h:117:16: warning: "INT_MAX" is not defined, evaluates to 0 [-Wundef] #if LONG_MAX > INT_MAX ^~~~~~~ ./expr.h:296:5: warning: "_BLD_expr" is not defined, evaluates to 0 [-Wundef] #if _BLD_expr && defined(__EXPORT__) ^~~~~~~~~ In file included from exlib.h:134:0, from exzero.c:21: /jenkins/jobs/oi-userland/workspace/components/image/graphviz/graphviz-2.40.1/lib/ast/sfstr.h:50:5: warning: "_BLD_ast" is not defined, evaluates to 0 [-Wundef] #if _BLD_ast && defined(__EXPORT__) ^~~~~~~~ exzero.c: In function 'exzero': exzero.c:32:2: warning: switch missing default case [-Wswitch-default] switch (type) ^~~~~~ In file included from exlib.h:131:0, from exrewind.c:21: ./expr.h:33:5: warning: "_BLD_expr" is not defined, evaluates to 0 [-Wundef] #if _BLD_expr && defined(__EXPORT__) ^~~~~~~~~ ./expr.h:36:6: warning: "_BLD_expr" is not defined, evaluates to 0 [-Wundef] #if !_BLD_expr && defined(__IMPORT__) ^~~~~~~~~ In file included from ./expr.h:58:0, from exlib.h:131, from exrewind.c:21: /jenkins/jobs/oi-userland/workspace/components/image/graphviz/graphviz-2.40.1/lib/vmalloc/vmalloc.h:105:5: warning: "_BLD_vmalloc" is not defined, evaluates to 0 [-Wundef] #if _BLD_vmalloc && defined(__EXPORT__) ^~~~~~~~~~~~ /jenkins/jobs/oi-userland/workspace/components/image/graphviz/graphviz-2.40.1/lib/vmalloc/vmalloc.h:108:6: warning: "_BLD_vmalloc" is not defined, evaluates to 0 [-Wundef] #if !_BLD_vmalloc && defined(__IMPORT__) ^~~~~~~~~~~~ /jenkins/jobs/oi-userland/workspace/components/image/graphviz/graphviz-2.40.1/lib/vmalloc/vmalloc.h:135:5: warning: "_BLD_vmalloc" is not defined, evaluates to 0 [-Wundef] #if _BLD_vmalloc && defined(__EXPORT__) ^~~~~~~~~~~~ In file included from exlib.h:131:0, from exrewind.c:21: ./expr.h:117:5: warning: "LONG_MAX" is not defined, evaluates to 0 [-Wundef] #if LONG_MAX > INT_MAX ^~~~~~~~ ./expr.h:117:16: warning: "INT_MAX" is not defined, evaluates to 0 [-Wundef] #if LONG_MAX > INT_MAX ^~~~~~~ ./expr.h:296:5: warning: "_BLD_expr" is not defined, evaluates to 0 [-Wundef] #if _BLD_expr && defined(__EXPORT__) ^~~~~~~~~ In file included from exlib.h:134:0, from exrewind.c:21: /jenkins/jobs/oi-userland/workspace/components/image/graphviz/graphviz-2.40.1/lib/ast/sfstr.h:50:5: warning: "_BLD_ast" is not defined, evaluates to 0 [-Wundef] #if _BLD_ast && defined(__EXPORT__) ^~~~~~~~ exrewind.c: In function 'exrewind': exrewind.c:40:41: warning: conversion to 'size_t {aka unsigned int}' from 'int' may change the sign of the result [-Wsign-conversion] memcpy(ex->input->pushback, ex->line, n); ^ exrewind.c:43:30: warning: conversion to 'char' from 'int' may alter its value [-Wconversion] ex->input->pushback[n++] = ex->input->peek; ^~ In file included from exlib.h:131:0, from extoken.c:23: ./expr.h:33:5: warning: "_BLD_expr" is not defined, evaluates to 0 [-Wundef] #if _BLD_expr && defined(__EXPORT__) ^~~~~~~~~ ./expr.h:36:6: warning: "_BLD_expr" is not defined, evaluates to 0 [-Wundef] #if !_BLD_expr && defined(__IMPORT__) ^~~~~~~~~ In file included from ./expr.h:58:0, from exlib.h:131, from extoken.c:23: /jenkins/jobs/oi-userland/workspace/components/image/graphviz/graphviz-2.40.1/lib/vmalloc/vmalloc.h:105:5: warning: "_BLD_vmalloc" is not defined, evaluates to 0 [-Wundef] #if _BLD_vmalloc && defined(__EXPORT__) ^~~~~~~~~~~~ /jenkins/jobs/oi-userland/workspace/components/image/graphviz/graphviz-2.40.1/lib/vmalloc/vmalloc.h:108:6: warning: "_BLD_vmalloc" is not defined, evaluates to 0 [-Wundef] #if !_BLD_vmalloc && defined(__IMPORT__) ^~~~~~~~~~~~ /jenkins/jobs/oi-userland/workspace/components/image/graphviz/graphviz-2.40.1/lib/vmalloc/vmalloc.h:135:5: warning: "_BLD_vmalloc" is not defined, evaluates to 0 [-Wundef] #if _BLD_vmalloc && defined(__EXPORT__) ^~~~~~~~~~~~ In file included from exlib.h:131:0, from extoken.c:23: ./expr.h:117:5: warning: "LONG_MAX" is not defined, evaluates to 0 [-Wundef] #if LONG_MAX > INT_MAX ^~~~~~~~ ./expr.h:117:16: warning: "INT_MAX" is not defined, evaluates to 0 [-Wundef] #if LONG_MAX > INT_MAX ^~~~~~~ ./expr.h:296:5: warning: "_BLD_expr" is not defined, evaluates to 0 [-Wundef] #if _BLD_expr && defined(__EXPORT__) ^~~~~~~~~ In file included from exlib.h:134:0, from extoken.c:23: /jenkins/jobs/oi-userland/workspace/components/image/graphviz/graphviz-2.40.1/lib/ast/sfstr.h:50:5: warning: "_BLD_ast" is not defined, evaluates to 0 [-Wundef] #if _BLD_ast && defined(__EXPORT__) ^~~~~~~~ extoken.c:26:28: warning: "_BLD_DEBUG" is not defined, evaluates to 0 [-Wundef] #if !defined(TRACE_lex) && _BLD_DEBUG ^~~~~~~~~~ extoken.c:30:5: warning: "TRACE_lex" is not defined, evaluates to 0 [-Wundef] #if TRACE_lex ^~~~~~~~~ extoken.c: In function 'lex': extoken.c:287:43: warning: suggest braces around empty body in an 'else' statement [-Wempty-body] else trace(ex, -1, "expop sp FAIL", 0); ^ extoken.c:297:43: warning: suggest braces around empty body in an 'else' statement [-Wempty-body] else trace(ex, -1, "expop fp FAIL", 0); ^ In file included from extoken.c:23:0: exlib.h:140:123: warning: conversion to 'char' from 'int' may alter its value [-Wconversion] #define putcontext(p,c) (((p)->linep>=&(p)->line[sizeof((p)->line)]?(p)->linep=(p)->line,(p)->linewrap=1:0),*(p)->linep++=(c)) ^ extoken.c:312:4: note: in expansion of macro 'putcontext' putcontext(ex, c); ^~~~~~~~~~ In file included from exlib.h:131:0, from exgram.h:33, from ../../lib/expr/exparse.y:168: ./expr.h:33:5: warning: "_BLD_expr" is not defined, evaluates to 0 [-Wundef] #if _BLD_expr && defined(__EXPORT__) ^~~~~~~~~ ./expr.h:36:6: warning: "_BLD_expr" is not defined, evaluates to 0 [-Wundef] #if !_BLD_expr && defined(__IMPORT__) ^~~~~~~~~ In file included from ./expr.h:58:0, from exlib.h:131, from exgram.h:33, from ../../lib/expr/exparse.y:168: /jenkins/jobs/oi-userland/workspace/components/image/graphviz/graphviz-2.40.1/lib/vmalloc/vmalloc.h:105:5: warning: "_BLD_vmalloc" is not defined, evaluates to 0 [-Wundef] #if _BLD_vmalloc && defined(__EXPORT__) ^~~~~~~~~~~~ /jenkins/jobs/oi-userland/workspace/components/image/graphviz/graphviz-2.40.1/lib/vmalloc/vmalloc.h:108:6: warning: "_BLD_vmalloc" is not defined, evaluates to 0 [-Wundef] #if !_BLD_vmalloc && defined(__IMPORT__) ^~~~~~~~~~~~ /jenkins/jobs/oi-userland/workspace/components/image/graphviz/graphviz-2.40.1/lib/vmalloc/vmalloc.h:135:5: warning: "_BLD_vmalloc" is not defined, evaluates to 0 [-Wundef] #if _BLD_vmalloc && defined(__EXPORT__) ^~~~~~~~~~~~ In file included from exlib.h:131:0, from exgram.h:33, from ../../lib/expr/exparse.y:168: ./expr.h:117:5: warning: "LONG_MAX" is not defined, evaluates to 0 [-Wundef] #if LONG_MAX > INT_MAX ^~~~~~~~ ./expr.h:117:16: warning: "INT_MAX" is not defined, evaluates to 0 [-Wundef] #if LONG_MAX > INT_MAX ^~~~~~~ ./expr.h:296:5: warning: "_BLD_expr" is not defined, evaluates to 0 [-Wundef] #if _BLD_expr && defined(__EXPORT__) ^~~~~~~~~ In file included from exlib.h:134:0, from exgram.h:33, from ../../lib/expr/exparse.y:168: /jenkins/jobs/oi-userland/workspace/components/image/graphviz/graphviz-2.40.1/lib/ast/sfstr.h:50:5: warning: "_BLD_ast" is not defined, evaluates to 0 [-Wundef] #if _BLD_ast && defined(__EXPORT__) ^~~~~~~~ In file included from ../../lib/expr/exparse.y:168:0: exgram.h: In function 'exnewnode': exgram.h:64:10: warning: conversion to 'Exshort_t {aka short int}' from 'int' may alter its value [-Wconversion] x->op = op; ^~ exgram.h:65:12: warning: conversion to 'Exshort_t {aka short int}' from 'int' may alter its value [-Wconversion] x->type = type; ^~~~ exgram.h:66:14: warning: conversion to 'Exshort_t {aka short int}' from 'int' may alter its value [-Wconversion] x->binary = binary; ^~~~~~ exgram.h: In function 'exfreenode': exgram.h:166:18: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] for (i = 0; i < elementsof(pr->param) && pr->param[i]; i++) ^ CC exstash.lo exgram.h: In function 'exstringOf': exgram.h:314:3: warning: switch missing default case [-Wswitch-default] switch (type) { ^~~~~~ exgram.h: In function 'excast': exgram.h:463:14: warning: conversion to 'Exshort_t {aka short int}' from 'int' may alter its value [-Wconversion] x->type = type; ^~~~ In file included from ../../lib/expr/exparse.y:168:0: exgram.h:511:37: warning: conversion to 'long long int' from 'double' may alter its value [-Wfloat-conversion] x->data.constant.value.integer = x->data.constant.value.floating; ^ exgram.h:518:38: warning: conversion to 'double' from 'long long int' may alter its value [-Wconversion] x->data.constant.value.floating = x->data.constant.value.integer; ^ exgram.h:526:37: warning: conversion to 'long long int' from 'double' may alter its value [-Wfloat-conversion] x->data.constant.value.integer = strtod(s, &e); ^~~~~~ exgram.h:540:13: warning: conversion to 'Exshort_t {aka short int}' from 'int' may alter its value [-Wconversion] x->type = type; ^~~~ exgram.h: In function 'preprint': exgram.h:749:12: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] if (i >= elementsof(x->param)) ^~ exgram.h:855:20: warning: conversion to 'Exshort_t {aka short int}' from 'int' may alter its value [-Wconversion] x->arg->type = t; ^ exgram.h:845:4: warning: switch missing default case [-Wswitch-default] switch (t) ^~~~~~ exgram.h: In function 'expush': exgram.h:905:26: warning: cast discards 'const' qualifier from pointer target type [-Wcast-qual] if (!(in->bp = in->sp = (char*)sp)) ^ exgram.h:942:21: warning: cast discards 'const' qualifier from pointer target type [-Wcast-qual] error_info.file = (char*)name; ^ exgram.h: In function 'exclose': exgram.h:1053:18: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] for (i = 3; i < elementsof(p->file); i++) ^ exgram.h: In function 'cmpKey': exgram.h:1131:15: warning: unused parameter 'd' [-Wunused-parameter] cmpKey(Dt_t * d, Extype_t * key1, Extype_t * key2, Dtdisc_t * disc) ^ exgram.h:1131:63: warning: unused parameter 'disc' [-Wunused-parameter] cmpKey(Dt_t * d, Extype_t * key1, Extype_t * key2, Dtdisc_t * disc) ^~~~ extoken.c: In function 'extoken_fn': extoken.c:352:6: warning: switch missing default case [-Wswitch-default] switch (lex(ex)) ^~~~~~ extoken.c:344:14: warning: switch missing default case [-Wswitch-default] for (;;) switch (lex(ex)) ^~~~~~ extoken.c:446:18: warning: switch missing default case [-Wswitch-default] if (q == '=') switch (c) ^~~~~~ extoken.c:554:6: warning: switch missing default case [-Wswitch-default] switch (c = lex(ex)) ^~~~~~ extoken.c:619:23: warning: conversion to 'long long int' from 'long long unsigned int' may change the sign of the result [-Wsign-conversion] exlval.integer = strtoull(s, &e, b); ^~~~~~~~ extoken.c:709:11: warning: declaration of 'b' shadows a previous local [-Wshadow] int b; ^ extoken.c:328:7: note: shadowed declaration is here int b; ^ extoken.c:733:7: warning: switch missing default case [-Wswitch-default] switch (lex(ex)) ^~~~~~ extoken.c:802:6: warning: switch missing default case [-Wswitch-default] switch (po = c) ^~~~~~ extoken.c:675:5: warning: switch missing default case [-Wswitch-default] switch (exlval.id->lex) ^~~~~~ y.tab.c: In function 'exparse': y.tab.c:1803:12: warning: conversion to 'extype_int16 {aka short int}' from 'int' may alter its value [-Wconversion] *yyssp = yystate; ^~~~~~~ y.tab.c:1808:25: warning: conversion to 'unsigned int' from 'int' may change the sign of the result [-Wsign-conversion] YYSIZE_T yysize = yyssp - yyss + 1; ^~~~~ ../../lib/expr/exparse.y:277:20: warning: conversion to 'int' from 'long long int' may alter its value [-Wconversion] | static {expr.instatic=$1;} DECLARE {expr.declare=$3->type;} dcl_list ';' ^ In file included from ../../lib/expr/exparse.y:32:0: /jenkins/jobs/oi-userland/workspace/components/image/graphviz/graphviz-2.40.1/lib/ast/ast.h:71:94: warning: conversion to 'unsigned int' from 'int' may change the sign of the result [-Wsign-conversion] #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:425:21: note: in expansion of macro 'newof' if (!(sw->base = newof(0, Extype_t*, n, 0))) ^~~~~ In file included from ./expr.h:58:0, from exlib.h:131, from exgram.h:33, from ../../lib/expr/exparse.y:168: ../../lib/expr/exparse.y:451:84: warning: conversion to 'unsigned int' from 'int' may change the sign of the result [-Wsign-conversion] $$->data.select.constant = (Extype_t**)exalloc(expr.program, (n + 1) * sizeof(Extype_t*)); ^ /jenkins/jobs/oi-userland/workspace/components/image/graphviz/graphviz-2.40.1/lib/vmalloc/vmalloc.h:203:24: note: in definition of macro 'vmresize' ((vm),(void*)(d),(sz),(type)) ^~ ./expr.h:113:28: note: in expansion of macro 'vmnewof' #define exnewof(p,o,t,n,x) vmnewof((p)->vm,o,t,n,x) ^~~~~~~ ./expr.h:112:23: note: in expansion of macro 'exnewof' #define exalloc(p,n) exnewof(p,0,char,n,0) ^~~~~~~ ../../lib/expr/exparse.y:451:54: note: in expansion of macro 'exalloc' $$->data.select.constant = (Extype_t**)exalloc(expr.program, (n + 1) * sizeof(Extype_t*)); ^~~~~~~ ../../lib/expr/exparse.y:452:60: warning: conversion to 'unsigned int' from 'int' may change the sign of the result [-Wsign-conversion] memcpy($$->data.select.constant, sw->base, n * sizeof(Extype_t*)); ^ In file included from ../../lib/expr/exparse.y:32:0: /jenkins/jobs/oi-userland/workspace/components/image/graphviz/graphviz-2.40.1/lib/ast/ast.h:71:62: warning: conversion to 'unsigned int' from 'int' may change the sign of the result [-Wsign-conversion] #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:479:32: note: in expansion of macro 'newof' if (!(expr.swstate->base = newof(expr.swstate->base, Extype_t*, 2 * n, 0))) ^~~~~ /jenkins/jobs/oi-userland/workspace/components/image/graphviz/graphviz-2.40.1/lib/ast/ast.h:71:94: warning: conversion to 'unsigned int' from 'int' may change the sign of the result [-Wsign-conversion] #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:479:32: note: in expansion of macro 'newof' if (!(expr.swstate->base = newof(expr.swstate->base, Extype_t*, 2 * n, 0))) ^~~~~ ../../lib/expr/exparse.y:547:42: warning: conversion to 'long int' from 'long long int' may alter its value [-Wconversion] $1->index_type = $3; /* -1 indicates no typechecking */ ^ ../../lib/expr/exparse.y:553:39: warning: conversion to 'Exshort_t {aka short int}' from 'long int' may alter its value [-Wconversion] $4->type = $1->type; ^ ../../lib/expr/exparse.y:559:5: warning: "UNUSED" is not defined, evaluates to 0 [-Wundef] #if UNUSED ^~~~~~ ../../lib/expr/exparse.y:904:5: warning: switch missing default case [-Wswitch-default] switch ($1->index) ^~~~~~ ../../lib/expr/exparse.y:931:5: warning: switch missing default case [-Wswitch-default] switch ($1->index) ^~~~~~ ../../lib/expr/exparse.y:1241:26: warning: conversion to 'Exshort_t {aka short int}' from 'int' may alter its value [-Wconversion] $$->subop = $1; ^ In file included from ./exlib.h:131:0, from exnospace.c:20: ./expr.h:33:5: warning: "_BLD_expr" is not defined, evaluates to 0 [-Wundef] #if _BLD_expr && defined(__EXPORT__) ^~~~~~~~~ ./expr.h:36:6: warning: "_BLD_expr" is not defined, evaluates to 0 [-Wundef] #if !_BLD_expr && defined(__IMPORT__) ^~~~~~~~~ In file included from ./expr.h:58:0, from ./exlib.h:131, from exnospace.c:20: /jenkins/jobs/oi-userland/workspace/components/image/graphviz/graphviz-2.40.1/lib/vmalloc/vmalloc.h:105:5: warning: "_BLD_vmalloc" is not defined, evaluates to 0 [-Wundef] #if _BLD_vmalloc && defined(__EXPORT__) ^~~~~~~~~~~~ /jenkins/jobs/oi-userland/workspace/components/image/graphviz/graphviz-2.40.1/lib/vmalloc/vmalloc.h:108:6: warning: "_BLD_vmalloc" is not defined, evaluates to 0 [-Wundef] #if !_BLD_vmalloc && defined(__IMPORT__) ^~~~~~~~~~~~ /jenkins/jobs/oi-userland/workspace/components/image/graphviz/graphviz-2.40.1/lib/vmalloc/vmalloc.h:135:5: warning: "_BLD_vmalloc" is not defined, evaluates to 0 [-Wundef] #if _BLD_vmalloc && defined(__EXPORT__) ^~~~~~~~~~~~ In file included from ./exlib.h:131:0, from exnospace.c:20: ./expr.h:117:5: warning: "LONG_MAX" is not defined, evaluates to 0 [-Wundef] #if LONG_MAX > INT_MAX ^~~~~~~~ ./expr.h:117:16: warning: "INT_MAX" is not defined, evaluates to 0 [-Wundef] #if LONG_MAX > INT_MAX ^~~~~~~ ./expr.h:296:5: warning: "_BLD_expr" is not defined, evaluates to 0 [-Wundef] #if _BLD_expr && defined(__EXPORT__) ^~~~~~~~~ In file included from ./exlib.h:134:0, from exnospace.c:20: /jenkins/jobs/oi-userland/workspace/components/image/graphviz/graphviz-2.40.1/lib/ast/sfstr.h:50:5: warning: "_BLD_ast" is not defined, evaluates to 0 [-Wundef] #if _BLD_ast && defined(__EXPORT__) ^~~~~~~~ exnospace.c: In function 'exnospace': exnospace.c:32:9: warning: cast discards 'const' qualifier from pointer target type [-Wcast-qual] return (char*)null; ^ In file included from ./exlib.h:131:0, from exstash.c:21: ./expr.h:33:5: warning: "_BLD_expr" is not defined, evaluates to 0 [-Wundef] #if _BLD_expr && defined(__EXPORT__) ^~~~~~~~~ ./expr.h:36:6: warning: "_BLD_expr" is not defined, evaluates to 0 [-Wundef] #if !_BLD_expr && defined(__IMPORT__) ^~~~~~~~~ In file included from ./expr.h:58:0, from ./exlib.h:131, from exstash.c:21: /jenkins/jobs/oi-userland/workspace/components/image/graphviz/graphviz-2.40.1/lib/vmalloc/vmalloc.h:105:5: warning: "_BLD_vmalloc" is not defined, evaluates to 0 [-Wundef] #if _BLD_vmalloc && defined(__EXPORT__) ^~~~~~~~~~~~ /jenkins/jobs/oi-userland/workspace/components/image/graphviz/graphviz-2.40.1/lib/vmalloc/vmalloc.h:108:6: warning: "_BLD_vmalloc" is not defined, evaluates to 0 [-Wundef] #if !_BLD_vmalloc && defined(__IMPORT__) ^~~~~~~~~~~~ /jenkins/jobs/oi-userland/workspace/components/image/graphviz/graphviz-2.40.1/lib/vmalloc/vmalloc.h:135:5: warning: "_BLD_vmalloc" is not defined, evaluates to 0 [-Wundef] #if _BLD_vmalloc && defined(__EXPORT__) ^~~~~~~~~~~~ In file included from ./exlib.h:131:0, from exstash.c:21: ./expr.h:117:5: warning: "LONG_MAX" is not defined, evaluates to 0 [-Wundef] #if LONG_MAX > INT_MAX ^~~~~~~~ ./expr.h:117:16: warning: "INT_MAX" is not defined, evaluates to 0 [-Wundef] #if LONG_MAX > INT_MAX ^~~~~~~ ./expr.h:296:5: warning: "_BLD_expr" is not defined, evaluates to 0 [-Wundef] #if _BLD_expr && defined(__EXPORT__) ^~~~~~~~~ In file included from ./exlib.h:134:0, from exstash.c:21: /jenkins/jobs/oi-userland/workspace/components/image/graphviz/graphviz-2.40.1/lib/ast/sfstr.h:50:5: warning: "_BLD_ast" is not defined, evaluates to 0 [-Wundef] #if _BLD_ast && defined(__EXPORT__) ^~~~~~~~ CCLD libexpr_C.la make[6]: Leaving directory '/jenkins/jobs/oi-userland/workspace/components/image/graphviz/build/i86/lib/expr' Making all in common make[6]: Entering directory '/jenkins/jobs/oi-userland/workspace/components/image/graphviz/build/i86/lib/common' make[7]: Entering directory '/jenkins/jobs/oi-userland/workspace/components/image/graphviz/build/i86/lib/common' CC colxlate.lo CC arrows.lo CC args.lo CC textspan.lo CC ellipse.lo CC htmllex.lo CC memory.lo CC globals.lo ellipse.c:52:5: warning: "STANDALONE" is not defined, evaluates to 0 [-Wundef] #if STANDALONE ^~~~~~~~~~ args.c: In function 'neato_extra_args': args.c:34:25: warning: unused parameter 'gvc' [-Wunused-parameter] neato_extra_args(GVC_t *gvc, int argc, char** argv) ^~~ args.c: In function 'memtest_extra_args': args.c:79:27: warning: unused parameter 'gvc' [-Wunused-parameter] memtest_extra_args(GVC_t *gvc, int argc, char** argv) ^~~ args.c: In function 'fdp_extra_args': args.c:243:24: warning: unused parameter 'gvc' [-Wunused-parameter] fdp_extra_args (GVC_t *gvc, int argc, char** argv) ^~~ textspan.c: In function 'fontcmpf': textspan.c:178:25: warning: cast discards 'const' qualifier from pointer target type [-Wcast-qual] return (strcasecmp(((PostscriptAlias*)a)->name, ((PostscriptAlias*)b)->name)); ^ textspan.c:178:54: warning: cast discards 'const' qualifier from pointer target type [-Wcast-qual] return (strcasecmp(((PostscriptAlias*)a)->name, ((PostscriptAlias*)b)->name)); ^ textspan.c: In function 'textfont_makef': textspan.c:229:35: warning: unused parameter 'dt' [-Wunused-parameter] static void* textfont_makef(Dt_t* dt, void* obj, Dtdisc_t* disc) ^~ textspan.c:229:60: warning: unused parameter 'disc' [-Wunused-parameter] static void* textfont_makef(Dt_t* dt, void* obj, Dtdisc_t* disc) ^~~~ textspan.c: In function 'textfont_freef': textspan.c:246:34: warning: unused parameter 'dt' [-Wunused-parameter] static void textfont_freef(Dt_t* dt, void* obj, Dtdisc_t* disc) ^~ textspan.c:246:59: warning: unused parameter 'disc' [-Wunused-parameter] static void textfont_freef(Dt_t* dt, void* obj, Dtdisc_t* disc) ^~~~ textspan.c: In function 'textfont_comparf': textspan.c:255:36: warning: unused parameter 'dt' [-Wunused-parameter] static int textfont_comparf (Dt_t* dt, void* key1, void* key2, Dtdisc_t* disc) ^~ textspan.c:255:74: warning: unused parameter 'disc' [-Wunused-parameter] static int textfont_comparf (Dt_t* dt, void* key1, void* key2, Dtdisc_t* disc) ^~~~ htmllex.c: In function 'error_context': htmllex.c:56:37: warning: conversion to 'size_t {aka unsigned int}' from 'int' may change the sign of the result [-Wsign-conversion] agxbput_n(state.xb, state.prevtok, state.prevtoklen); ^~~~~ htmllex.c:57:40: warning: conversion to 'size_t {aka unsigned int}' from 'int' may change the sign of the result [-Wsign-conversion] agxbput_n(state.xb, state.currtok, state.currtoklen); ^~~~~ htmllex.c: In function 'stylefn': htmllex.c:186:47: warning: conversion to 'short unsigned int' from 'int' may alter its value [-Wconversion] else if(!strcasecmp(tk,"SOLID")) p->style &= ~(DOTTED|DASHED); ^ htmllex.c: In function 'cellborderfn': htmllex.c:289:13: warning: conversion to 'signed char' from 'unsigned char' may change the sign of the result [-Wsign-conversion] p->cb = (unsigned char) u; ^ ellipse.c: In function 'moveTo': ellipse.c:410:34: warning: declaration of 'path' shadows a global declaration [-Wshadow] static void moveTo(Ppolyline_t * path, double x, double y) ^~~~ htmllex.c: In function 'doAttrs': htmllex.c:572:42: warning: conversion to 'size_t {aka unsigned int}' from 'int' may change the sign of the result [-Wsign-conversion] ip = (attr_item *) bsearch(&key, items, nel, ISIZE, (bcmpfn) icmp); ^~~ In file included from render.h:40:0, from ellipse.c:80: types.h:105:7: note: shadowed declaration is here } path; ^~~~ htmllex.c:574:20: warning: conversion to 'char' from 'int' may alter its value [-Wconversion] state.warn |= ip->action(tp, val); ^~ In file included from render.h:44:0, from ellipse.c:80: memory.h:36:41: warning: conversion to 'unsigned int' from 'int' may change the sign of the result [-Wsign-conversion] #define N_NEW(n,t) (t*)zmalloc((n)*sizeof(t)) ^ ellipse.c:413:16: note: in expansion of macro 'N_NEW' path->ps = N_NEW(bufsize, pointf); ^~~~~ ellipse.c: In function 'curveTo': ellipse.c:420:23: warning: declaration of 'path' shadows a global declaration [-Wshadow] curveTo(Ppolyline_t * path, double x1, double y1, ^~~~ In file included from render.h:40:0, from ellipse.c:80: types.h:105:7: note: shadowed declaration is here } path; ^~~~ htmllex.c: In function 'mkFont': htmllex.c:603:16: warning: conversion to 'unsigned char:7' from 'int' may alter its value [-Wconversion] tf.flags = flags; ^~~~~ ellipse.c:425:39: warning: conversion to 'unsigned int' from 'int' may change the sign of the result [-Wsign-conversion] path->ps = realloc(path->ps, bufsize * sizeof(pointf)); ^ htmllex.c:598:67: warning: unused parameter 'ul' [-Wunused-parameter] static textfont_t *mkFont(GVC_t *gvc, char **atts, int flags, int ul) ^~ ellipse.c: In function 'lineTo': ellipse.c:435:34: warning: declaration of 'path' shadows a global declaration [-Wshadow] static void lineTo(Ppolyline_t * path, double x, double y) ^~~~ In file included from render.h:40:0, from ellipse.c:80: types.h:105:7: note: shadowed declaration is here } path; ^~~~ ellipse.c: In function 'endPath': ellipse.c:441:35: warning: declaration of 'path' shadows a global declaration [-Wshadow] static void endPath(Ppolyline_t * path, boolean close) ^~~~ In file included from render.h:40:0, from ellipse.c:80: types.h:105:7: note: shadowed declaration is here } path; ^~~~ ellipse.c:448:43: warning: conversion to 'unsigned int' from 'int' may change the sign of the result [-Wsign-conversion] path->ps = realloc(path->ps, path->pn * sizeof(pointf)); ^ ellipse.c: In function 'genEllipticPath': ellipse.c:476:18: warning: declaration of 'path' shadows a global declaration [-Wshadow] Ppolyline_t *path = NEW(Ppolyline_t); ^~~~ In file included from render.h:40:0, from ellipse.c:80: types.h:105:7: note: shadowed declaration is here } path; ^~~~ ellipse.c:482:9: warning: declaration of 'dEta' shadows a previous local [-Wshadow] double dEta = (ep->eta2 - ep->eta1) / n; ^~~~ ellipse.c:462:12: note: shadowed declaration is here double dEta; ^~~~ ellipse.c:484:13: warning: declaration of 'etaB' shadows a previous local [-Wshadow] double etaB = ep->eta1; ^~~~ ellipse.c:463:12: note: shadowed declaration is here double etaB; ^~~~ htmllex.c: In function 'endElement': htmllex.c:689:30: warning: unused parameter 'user' [-Wunused-parameter] static void endElement(void *user, const char *name) ^~~~ htmllex.c: In function 'characterData': htmllex.c:757:10: warning: conversion to 'unsigned char' from 'char' may change the sign of the result [-Wsign-conversion] c = *s++; ^ htmllex.c:750:33: warning: unused parameter 'user' [-Wunused-parameter] static void characterData(void *user, const char *s, int length) ^~~~ ellipse.c:541:5: warning: "DO_QUAD" is not defined, evaluates to 0 [-Wundef] #if DO_QUAD ^~~~~~~ htmllex.c: In function 'htmllineno': htmllex.c:879:12: warning: conversion to 'int' from 'XML_Size {aka long unsigned int}' may change the sign of the result [-Wsign-conversion] return XML_GetCurrentLineNumber(state.parser); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ htmllex.c: In function 'htmllex': htmllex.c:1018:12: warning: conversion to 'int' from 'size_t {aka unsigned int}' may change the sign of the result [-Wsign-conversion] len = strlen(s); ^~~~~~ htmllex.c:1025:9: warning: conversion to 'int' from 'size_t {aka unsigned int}' may change the sign of the result [-Wsign-conversion] len = strlen(s); ^~~~~~ htmllex.c:1052:5: warning: "DEBUG" is not defined, evaluates to 0 [-Wundef] #if DEBUG ^~~~~ arrows.c: In function 'arrowOrthoClip': arrows.c:337:10: warning: comparing floating point with == or != is unsafe [-Wfloat-equal] if (p.y == q.y) { /* horz segment */ ^~ arrows.c:374:10: warning: comparing floating point with == or != is unsafe [-Wfloat-equal] if (p.y == q.y) { /* horz segment */ ^~ arrows.c:398:10: warning: comparing floating point with == or != is unsafe [-Wfloat-equal] if (p.y == q.y) { /* horz segment */ ^~ arrows.c: In function 'arrow_type_normal': arrows.c:415:71: warning: unused parameter 'arrowsize' [-Wunused-parameter] static void arrow_type_normal(GVJ_t * job, pointf p, pointf u, double arrowsize, double penwidth, int flag) ^~~~~~~~~ arrows.c: In function 'arrow_type_gap': arrows.c:511:68: warning: unused parameter 'arrowsize' [-Wunused-parameter] static void arrow_type_gap(GVJ_t * job, pointf p, pointf u, double arrowsize, double penwidth, int flag) ^~~~~~~~~ arrows.c:511:86: warning: unused parameter 'penwidth' [-Wunused-parameter] static void arrow_type_gap(GVJ_t * job, pointf p, pointf u, double arrowsize, double penwidth, int flag) ^~~~~~~~ arrows.c:511:100: warning: unused parameter 'flag' [-Wunused-parameter] static void arrow_type_gap(GVJ_t * job, pointf p, pointf u, double arrowsize, double penwidth, int flag) ^~~~ arrows.c: In function 'arrow_type_tee': arrows.c:522:68: warning: unused parameter 'arrowsize' [-Wunused-parameter] static void arrow_type_tee(GVJ_t * job, pointf p, pointf u, double arrowsize, double penwidth, int flag) ^~~~~~~~~ arrows.c:522:86: warning: unused parameter 'penwidth' [-Wunused-parameter] static void arrow_type_tee(GVJ_t * job, pointf p, pointf u, double arrowsize, double penwidth, int flag) ^~~~~~~~ arrows.c: In function 'arrow_type_box': arrows.c:555:68: warning: unused parameter 'arrowsize' [-Wunused-parameter] static void arrow_type_box(GVJ_t * job, pointf p, pointf u, double arrowsize, double penwidth, int flag) ^~~~~~~~~ arrows.c:555:86: warning: unused parameter 'penwidth' [-Wunused-parameter] static void arrow_type_box(GVJ_t * job, pointf p, pointf u, double arrowsize, double penwidth, int flag) ^~~~~~~~ arrows.c: In function 'arrow_type_diamond': arrows.c:586:72: warning: unused parameter 'arrowsize' [-Wunused-parameter] static void arrow_type_diamond(GVJ_t * job, pointf p, pointf u, double arrowsize, double penwidth, int flag) ^~~~~~~~~ arrows.c:586:90: warning: unused parameter 'penwidth' [-Wunused-parameter] static void arrow_type_diamond(GVJ_t * job, pointf p, pointf u, double arrowsize, double penwidth, int flag) ^~~~~~~~ arrows.c: In function 'arrow_type_dot': arrows.c:610:68: warning: unused parameter 'arrowsize' [-Wunused-parameter] static void arrow_type_dot(GVJ_t * job, pointf p, pointf u, double arrowsize, double penwidth, int flag) ^~~~~~~~~ arrows.c:610:86: warning: unused parameter 'penwidth' [-Wunused-parameter] static void arrow_type_dot(GVJ_t * job, pointf p, pointf u, double arrowsize, double penwidth, int flag) ^~~~~~~~ arrows.c: In function 'arrow_type_curve': arrows.c:627:69: warning: unused parameter 'arrowsize' [-Wunused-parameter] static void arrow_type_curve(GVJ_t* job, pointf p, pointf u, double arrowsize, double penwidth, int flag) ^~~~~~~~~ arrows.c: In function 'arrow_bb': arrows.c:691:57: warning: unused parameter 'flag' [-Wunused-parameter] boxf arrow_bb(pointf p, pointf u, double arrowsize, int flag) ^~~~ CC htmlparse.lo colxlate.c: In function 'hsv2rgb': colxlate.c:59:2: warning: switch missing default case [-Wswitch-default] switch (i) { ^~~~~~ colxlate.c: In function 'rgb2hsv': colxlate.c:112:8: warning: comparing floating point with == or != is unsafe [-Wfloat-equal] if (r == rgbmax) ^~ colxlate.c:114:13: warning: comparing floating point with == or != is unsafe [-Wfloat-equal] else if (g == rgbmax) ^~ colxlate.c:116:13: warning: comparing floating point with == or != is unsafe [-Wfloat-equal] else if (b == rgbmax) ^~ colxlate.c: In function 'colorcmpf': colxlate.c:142:24: warning: cast discards 'const' qualifier from pointer target type [-Wcast-qual] return strcasecmp(((hsvrgbacolor_t *) p0)->name, ((hsvrgbacolor_t *) p1)->name); ^ colxlate.c:142:55: warning: cast discards 'const' qualifier from pointer target type [-Wcast-qual] return strcasecmp(((hsvrgbacolor_t *) p0)->name, ((hsvrgbacolor_t *) p1)->name); ^ colxlate.c: In function 'colorxlate': colxlate.c:292:25: warning: conversion to 'unsigned char' from 'unsigned int' may alter its value [-Wconversion] color->u.rgba[0] = r; ^ colxlate.c:293:25: warning: conversion to 'unsigned char' from 'unsigned int' may alter its value [-Wconversion] color->u.rgba[1] = g; ^ colxlate.c:294:25: warning: conversion to 'unsigned char' from 'unsigned int' may alter its value [-Wconversion] color->u.rgba[2] = b; ^ colxlate.c:295:25: warning: conversion to 'unsigned char' from 'unsigned int' may alter its value [-Wconversion] color->u.rgba[3] = a; ^ colxlate.c:302:25: warning: conversion to 'unsigned char' from 'int' may alter its value [-Wconversion] color->u.cmyk[0] = (int) C *255; ^ colxlate.c:303:25: warning: conversion to 'unsigned char' from 'int' may alter its value [-Wconversion] color->u.cmyk[1] = (int) M *255; ^ colxlate.c:304:25: warning: conversion to 'unsigned char' from 'int' may alter its value [-Wconversion] color->u.cmyk[2] = (int) Y *255; ^ colxlate.c:305:25: warning: conversion to 'unsigned char' from 'int' may alter its value [-Wconversion] color->u.cmyk[3] = (int) K *255; ^ colxlate.c:308:29: warning: conversion to 'int' from 'unsigned int' may change the sign of the result [-Wsign-conversion] color->u.rrggbbaa[0] = r * 65535 / 255; ^ colxlate.c:309:29: warning: conversion to 'int' from 'unsigned int' may change the sign of the result [-Wsign-conversion] color->u.rrggbbaa[1] = g * 65535 / 255; ^ colxlate.c:310:29: warning: conversion to 'int' from 'unsigned int' may change the sign of the result [-Wsign-conversion] color->u.rrggbbaa[2] = b * 65535 / 255; ^ colxlate.c:311:29: warning: conversion to 'int' from 'unsigned int' may change the sign of the result [-Wsign-conversion] color->u.rrggbbaa[3] = a * 65535 / 255; ^ colxlate.c:279:2: warning: switch missing default case [-Wswitch-default] switch (target_type) { ^~~~~~ colxlate.c:360:22: warning: conversion to 'unsigned char' from 'int' may alter its value [-Wconversion] color->u.rgba[0] = (int) (R * 255); ^ colxlate.c:361:22: warning: conversion to 'unsigned char' from 'int' may alter its value [-Wconversion] color->u.rgba[1] = (int) (G * 255); ^ colxlate.c:362:22: warning: conversion to 'unsigned char' from 'int' may alter its value [-Wconversion] color->u.rgba[2] = (int) (B * 255); ^ colxlate.c:368:22: warning: conversion to 'unsigned char' from 'int' may alter its value [-Wconversion] color->u.cmyk[0] = (int) C *255; ^ colxlate.c:369:22: warning: conversion to 'unsigned char' from 'int' may alter its value [-Wconversion] color->u.cmyk[1] = (int) M *255; ^ colxlate.c:370:22: warning: conversion to 'unsigned char' from 'int' may alter its value [-Wconversion] color->u.cmyk[2] = (int) Y *255; ^ colxlate.c:371:22: warning: conversion to 'unsigned char' from 'int' may alter its value [-Wconversion] color->u.cmyk[3] = (int) K *255; ^ colxlate.c:351:6: warning: switch missing default case [-Wswitch-default] switch (target_type) { ^~~~~~ colxlate.c:428:25: warning: conversion to 'unsigned char' from 'int' may alter its value [-Wconversion] color->u.cmyk[0] = (int) C * 255; ^ colxlate.c:429:25: warning: conversion to 'unsigned char' from 'int' may alter its value [-Wconversion] color->u.cmyk[1] = (int) M * 255; ^ colxlate.c:430:25: warning: conversion to 'unsigned char' from 'int' may alter its value [-Wconversion] color->u.cmyk[2] = (int) Y * 255; ^ colxlate.c:431:25: warning: conversion to 'unsigned char' from 'int' may alter its value [-Wconversion] color->u.cmyk[3] = (int) K * 255; ^ colxlate.c:410:2: warning: switch missing default case [-Wswitch-default] switch (target_type) { ^~~~~~ colxlate.c:455:5: warning: switch missing default case [-Wswitch-default] switch (target_type) { ^~~~~~ colxlate.c: In function 'rgba_wordToByte': colxlate.c:489:12: warning: conversion to 'unsigned char' from 'int' may alter its value [-Wconversion] rgba[i] = rrggbbaa[i] * 255 / 65535; ^~~~~~~~ CC htmltable.lo CC input.lo colxlate.c: In function 'colorxlate': colxlate.c:384:20: warning: 'B' may be used uninitialized in this function [-Wmaybe-uninitialized] color->u.RGBA[2] = B; ~~~~~~~~~~~~~~~~~^~~ colxlate.c:383:20: warning: 'G' may be used uninitialized in this function [-Wmaybe-uninitialized] color->u.RGBA[1] = G; ~~~~~~~~~~~~~~~~~^~~ colxlate.c:382:20: warning: 'R' may be used uninitialized in this function [-Wmaybe-uninitialized] color->u.RGBA[0] = R; ~~~~~~~~~~~~~~~~~^~~ CC pointset.lo CC intset.lo ../../lib/common/htmlparse.y: In function 'free_ritem': ../../lib/common/htmlparse.y:42:18: warning: unused parameter 'd' [-Wunused-parameter] free_ritem(Dt_t* d, pitem* p,Dtdisc_t* ds) ^ ../../lib/common/htmlparse.y:42:40: warning: unused parameter 'ds' [-Wunused-parameter] free_ritem(Dt_t* d, pitem* p,Dtdisc_t* ds) ^~ ../../lib/common/htmlparse.y: In function 'free_item': ../../lib/common/htmlparse.y:53:17: warning: unused parameter 'd' [-Wunused-parameter] free_item(Dt_t* d, void* p,Dtdisc_t* ds) ^ ../../lib/common/htmlparse.y:53:38: warning: unused parameter 'ds' [-Wunused-parameter] free_item(Dt_t* d, void* p,Dtdisc_t* ds) ^~ ../../lib/common/htmlparse.y: In function 'free_citem': ../../lib/common/htmlparse.y:85:18: warning: unused parameter 'd' [-Wunused-parameter] free_citem(Dt_t* d, pitem* p,Dtdisc_t* ds) ^ ../../lib/common/htmlparse.y:85:40: warning: unused parameter 'ds' [-Wunused-parameter] free_citem(Dt_t* d, pitem* p,Dtdisc_t* ds) ^~ ../../lib/common/htmlparse.y: In function 'free_fitem': ../../lib/common/htmlparse.y:125:18: warning: unused parameter 'd' [-Wunused-parameter] free_fitem(Dt_t* d, fitem* p, Dtdisc_t* ds) ^ ../../lib/common/htmlparse.y:125:41: warning: unused parameter 'ds' [-Wunused-parameter] free_fitem(Dt_t* d, fitem* p, Dtdisc_t* ds) ^~ ../../lib/common/htmlparse.y: In function 'free_fspan': ../../lib/common/htmlparse.y:133:18: warning: unused parameter 'd' [-Wunused-parameter] free_fspan(Dt_t* d, fspan* p, Dtdisc_t* ds) ^ ../../lib/common/htmlparse.y:133:41: warning: unused parameter 'ds' [-Wunused-parameter] free_fspan(Dt_t* d, fspan* p, Dtdisc_t* ds) ^~ ../../lib/common/htmlparse.y: In function 'appendFLineList': ../../lib/common/htmlparse.y:198:19: warning: conversion to 'char' from 'int' may alter its value [-Wconversion] ln->lp.just = v; ^ ../../lib/common/htmlparse.y:201:18: warning: conversion to 'short int' from 'int' may alter its value [-Wconversion] ln->lp.nitems = cnt; ^~~ In file included from render.h:44:0, from ../../lib/common/htmlparse.y:16: memory.h:36:41: warning: conversion to 'unsigned int' from 'int' may change the sign of the result [-Wsign-conversion] #define N_NEW(n,t) (t*)zmalloc((n)*sizeof(t)) ^ ../../lib/common/htmlparse.y:202:17: note: in expansion of macro 'N_NEW' ln->lp.items = N_NEW(cnt, textspan_t); ^~~~~ ../../lib/common/htmlparse.y: In function 'mkText': ../../lib/common/htmlparse.y:237:19: warning: conversion to 'short int' from 'int' may alter its value [-Wconversion] hft->nspans = cnt; ^~~ In file included from render.h:44:0, from ../../lib/common/htmlparse.y:16: memory.h:36:41: warning: conversion to 'unsigned int' from 'int' may change the sign of the result [-Wsign-conversion] #define N_NEW(n,t) (t*)zmalloc((n)*sizeof(t)) ^ ../../lib/common/htmlparse.y:241:15: note: in expansion of macro 'N_NEW' hft->spans = N_NEW(cnt,htextspan_t); ^~~~~ ../../lib/common/htmlparse.y: In function 'setCell': ../../lib/common/htmlparse.y:286:20: warning: conversion to 'char' from 'int' may alter its value [-Wconversion] cp->child.kind = kind; ^~~~ ../../lib/common/htmlparse.y: In function 'mkLabel': ../../lib/common/htmlparse.y:305:14: warning: conversion to 'char' from 'int' may alter its value [-Wconversion] lp->kind = kind; ^~~~ htmltable.c: In function 'doBorder': htmltable.c:267:2: warning: switch missing default case [-Wswitch-default] switch (sides) { ^~~~~~ CC postproc.lo htmltable.c: In function 'initAnchor': htmltable.c:388:30: warning: conversion to 'boolean {aka unsigned char}' from 'signed char:1' may change the sign of the result [-Wsign-conversion] save->explicit_tooltip = obj->explicit_tooltip; ^~~ htmltable.c: In function 'endAnchor': htmltable.c:443:29: warning: conversion to 'signed char:1' from 'boolean {aka unsigned char}' may alter its value [-Wconversion] obj->explicit_tooltip = save->explicit_tooltip; ^~~~ htmltable.c: In function 'emit_html_rules': htmltable.c:477:13: warning: conversion to 'unsigned char' from 'int' may alter its value [-Wconversion] base = cp->parent->data.border + cp->parent->data.space / 2; ^~ htmltable.c:481:13: warning: conversion to 'unsigned char' from 'int' may alter its value [-Wconversion] base = cp->parent->data.border + cp->parent->data.space / 2; ^~ htmltable.c:495:13: warning: conversion to 'unsigned char' from 'int' may alter its value [-Wconversion] base = cp->parent->data.border + cp->parent->data.space / 2; ^~ htmltable.c:498:11: warning: conversion to 'unsigned char' from 'int' may alter its value [-Wconversion] base *= 2; ^ htmltable.c:501:11: warning: conversion to 'unsigned char' from 'double' may alter its value [-Wfloat-conversion] base += (cp->parent->data.box.UR.x + pos.x) - (pts.UR.x + cp->parent->data.space / 2); ^ htmltable.c:505:13: warning: conversion to 'unsigned char' from 'int' may alter its value [-Wconversion] base = cp->parent->data.border + cp->parent->data.space / 2; ^~ y.tab.c: In function 'htmlparse': htmltable.c:512:11: warning: conversion to 'unsigned char' from 'double' may alter its value [-Wfloat-conversion] base += (cp->parent->data.box.UR.x + pos.x) - (pts.UR.x + cp->parent->data.space / 2); ^ y.tab.c:1790:14: warning: conversion to 'htmltype_int16 {aka short int}' from 'int' may alter its value [-Wconversion] *yyssp = yystate; ^~~~~~ y.tab.c:1795:27: warning: conversion to 'unsigned int' from 'int' may change the sign of the result [-Wsign-conversion] YYSIZE_T yysize = yyssp - yyss + 1; ^~~~~~~ htmltable.c: In function 'allocObj': htmltable.c:695:5: warning: switch missing default case [-Wswitch-default] switch (obj->type) { ^~~~~~ htmltable.c: In function 'heightOfLbl': htmltable.c:731:5: warning: switch missing default case [-Wswitch-default] switch (lp->kind) { ^~~~~~ htmltable.c: At top level: htmltable.c:831:6: warning: no previous prototype for 'free_html_img' [-Wmissing-prototypes] void free_html_img(htmlimg_t * ip) ^~~~~~~~~~~~~ htmltable.c: In function 'html_path': htmltable.c:959:24: warning: unused parameter 'n' [-Wunused-parameter] int html_path(node_t * n, port * p, int side, boxf * rv, int *k) ^ htmltable.c:959:34: warning: unused parameter 'p' [-Wunused-parameter] int html_path(node_t * n, port * p, int side, boxf * rv, int *k) ^ htmltable.c:959:41: warning: unused parameter 'side' [-Wunused-parameter] int html_path(node_t * n, port * p, int side, boxf * rv, int *k) ^~~~ htmltable.c:959:54: warning: unused parameter 'rv' [-Wunused-parameter] int html_path(node_t * n, port * p, int side, boxf * rv, int *k) ^~ htmltable.c:959:63: warning: unused parameter 'k' [-Wunused-parameter] int html_path(node_t * n, port * p, int side, boxf * rv, int *k) ^ htmltable.c: In function 'size_html_txt': htmltable.c:1044:17: warning: comparing floating point with == or != is unsafe [-Wfloat-equal] if (prev_fsize == -1) ^~ htmltable.c:1046:19: warning: comparing floating point with == or != is unsafe [-Wfloat-equal] else if (tf.size != prev_fsize) { ^~ htmltable.c:1057:20: warning: conversion to 'char' from 'int' may alter its value [-Wconversion] ftxt->simple = simple; ^~~~~~ htmltable.c: In function 'size_html_cell': htmltable.c:1186:24: warning: conversion to 'unsigned char' from 'signed char' may change the sign of the result [-Wsign-conversion] cp->data.border = parent->cb; ^~~~~~ htmltable.c: In function 'processTbl': htmltable.c:1304:19: warning: conversion to 'short unsigned int' from 'int' may alter its value [-Wconversion] cellp->row = r; ^ htmltable.c:1305:19: warning: conversion to 'short unsigned int' from 'int' may alter its value [-Wconversion] cellp->col = c; ^ htmltable.c: At top level: htmltable.c:1336:6: warning: no previous prototype for 'sizeLinearArray' [-Wmissing-prototypes] void sizeLinearArray(htmltbl_t * tbl) ^~~~~~~~~~~~~~~ In file included from render.h:44:0, from htmltable.c:35: htmltable.c: In function 'sizeLinearArray': memory.h:36:41: warning: conversion to 'unsigned int' from 'int' may change the sign of the result [-Wsign-conversion] #define N_NEW(n,t) (t*)zmalloc((n)*sizeof(t)) ^ htmltable.c:1342:20: note: in expansion of macro 'N_NEW' tbl->heights = N_NEW(tbl->rc + 1, int); ^~~~~ memory.h:36:41: warning: conversion to 'unsigned int' from 'int' may change the sign of the result [-Wsign-conversion] #define N_NEW(n,t) (t*)zmalloc((n)*sizeof(t)) ^ htmltable.c:1343:19: note: in expansion of macro 'N_NEW' tbl->widths = N_NEW(tbl->cc + 1, int); ^~~~~ htmltable.c:1348:11: warning: conversion to 'int' from 'double' may alter its value [-Wfloat-conversion] ht = cp->data.box.UR.y; ^~ htmltable.c:1328:22: warning: conversion to 'int' from 'double' may alter its value [-Wfloat-conversion] #define SPLIT(x,n,s) (((x) - ((s)-1)*((n)-1)) / (n)) ^ htmltable.c:1350:11: note: in expansion of macro 'SPLIT' ht = SPLIT(cp->data.box.UR.y, cp->rspan, tbl->data.space); ^~~~~ htmltable.c:1354:11: warning: conversion to 'int' from 'double' may alter its value [-Wfloat-conversion] wd = cp->data.box.UR.x; ^~ htmltable.c:1328:22: warning: conversion to 'int' from 'double' may alter its value [-Wfloat-conversion] #define SPLIT(x,n,s) (((x) - ((s)-1)*((n)-1)) / (n)) ^ htmltable.c:1356:11: note: in expansion of macro 'SPLIT' wd = SPLIT(cp->data.box.UR.x, cp->cspan, tbl->data.space); ^~~~~ htmltable.c: At top level: htmltable.c:1378:7: warning: no previous prototype for 'nToName' [-Wmissing-prototypes] char *nToName(int c) ^~~~~~~ htmltable.c: In function 'nToName': htmltable.c:1382:11: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] if (c < sizeof(nnames) / sizeof(char *)) ^ In file included from render.h:44:0, from htmltable.c:35: htmltable.c: In function 'checkChain': memory.h:41:62: warning: conversion to 'unsigned int' from 'int' may change the sign of the result [-Wsign-conversion] #define ALLOC(size,ptr,type) (ptr? (type*)grealloc(ptr,(size)*sizeof(type)):(type*)gmalloc((size)*sizeof(type))) ^ types.h:261:44: note: in expansion of macro 'ALLOC' #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:1419:6: note: in expansion of macro 'elist_append' elist_append(e, ND_out(t)); ^~~~~~~~~~~~ memory.h:41:98: warning: conversion to 'unsigned int' from 'int' may change the sign of the result [-Wsign-conversion] #define ALLOC(size,ptr,type) (ptr? (type*)grealloc(ptr,(size)*sizeof(type)):(type*)gmalloc((size)*sizeof(type))) ^ types.h:261:44: note: in expansion of macro 'ALLOC' #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:1419:6: note: in expansion of macro 'elist_append' elist_append(e, ND_out(t)); ^~~~~~~~~~~~ memory.h:41:62: warning: conversion to 'unsigned int' from 'int' may change the sign of the result [-Wsign-conversion] #define ALLOC(size,ptr,type) (ptr? (type*)grealloc(ptr,(size)*sizeof(type)):(type*)gmalloc((size)*sizeof(type))) ^ types.h:261:44: note: in expansion of macro 'ALLOC' #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:1420:6: note: in expansion of macro 'elist_append' elist_append(e, ND_in(h)); ^~~~~~~~~~~~ memory.h:41:98: warning: conversion to 'unsigned int' from 'int' may change the sign of the result [-Wsign-conversion] #define ALLOC(size,ptr,type) (ptr? (type*)grealloc(ptr,(size)*sizeof(type)):(type*)gmalloc((size)*sizeof(type))) ^ types.h:261:44: note: in expansion of macro 'ALLOC' #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:1420:6: note: in expansion of macro 'elist_append' elist_append(e, ND_in(h)); ^~~~~~~~~~~~ In file included from geom.h:20:0, from types.h:35, from render.h:40, from htmltable.c:35: htmltable.c: In function 'checkEdge': arith.h:43:18: warning: conversion to 'short unsigned int' from 'int' may alter its value [-Wconversion] #define MAX(a,b) ((a)>(b)?(a):(b)) ^ htmltable.c:1437:17: note: in expansion of macro 'MAX' ED_minlen(e) = MAX(ED_minlen(e), sz); ^~~ htmltable.c:1441:17: warning: conversion to 'short unsigned int' from 'int' may alter its value [-Wconversion] ED_minlen(e) = sz; ^~ In file included from render.h:44:0, from htmltable.c:35: memory.h:41:62: warning: conversion to 'unsigned int' from 'int' may change the sign of the result [-Wsign-conversion] #define ALLOC(size,ptr,type) (ptr? (type*)grealloc(ptr,(size)*sizeof(type)):(type*)gmalloc((size)*sizeof(type))) ^ types.h:261:44: note: in expansion of macro 'ALLOC' #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:1442:2: note: in expansion of macro 'elist_append' elist_append(e, ND_out(t)); ^~~~~~~~~~~~ memory.h:41:98: warning: conversion to 'unsigned int' from 'int' may change the sign of the result [-Wsign-conversion] #define ALLOC(size,ptr,type) (ptr? (type*)grealloc(ptr,(size)*sizeof(type)):(type*)gmalloc((size)*sizeof(type))) ^ types.h:261:44: note: in expansion of macro 'ALLOC' #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:1442:2: note: in expansion of macro 'elist_append' elist_append(e, ND_out(t)); ^~~~~~~~~~~~ memory.h:41:62: warning: conversion to 'unsigned int' from 'int' may change the sign of the result [-Wsign-conversion] #define ALLOC(size,ptr,type) (ptr? (type*)grealloc(ptr,(size)*sizeof(type)):(type*)gmalloc((size)*sizeof(type))) ^ types.h:261:44: note: in expansion of macro 'ALLOC' #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:1443:2: note: in expansion of macro 'elist_append' elist_append(e, ND_in(h)); ^~~~~~~~~~~~ memory.h:41:98: warning: conversion to 'unsigned int' from 'int' may change the sign of the result [-Wsign-conversion] #define ALLOC(size,ptr,type) (ptr? (type*)grealloc(ptr,(size)*sizeof(type)):(type*)gmalloc((size)*sizeof(type))) ^ types.h:261:44: note: in expansion of macro 'ALLOC' #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:1443:2: note: in expansion of macro 'elist_append' elist_append(e, ND_in(h)); ^~~~~~~~~~~~ htmltable.c: At top level: htmltable.c:1456:6: warning: no previous prototype for 'makeGraphs' [-Wmissing-prototypes] void makeGraphs(htmltbl_t * tbl, graph_t * rowg, graph_t * colg) ^~~~~~~~~~ In file included from render.h:44:0, from htmltable.c:35: htmltable.c: In function 'makeGraphs': memory.h:36:41: warning: conversion to 'unsigned int' from 'int' may change the sign of the result [-Wsign-conversion] #define N_NEW(n,t) (t*)zmalloc((n)*sizeof(t)) ^ types.h:262:56: note: in expansion of macro 'N_NEW' #define alloc_elist(n,L) do {L.size = 0; L.list = N_NEW(n + 1,edge_t*); } while (0) ^~~~~ htmltable.c:1469:2: note: in expansion of macro 'alloc_elist' alloc_elist(tbl->rc, ND_in(t)); ^~~~~~~~~~~ memory.h:36:41: warning: conversion to 'unsigned int' from 'int' may change the sign of the result [-Wsign-conversion] #define N_NEW(n,t) (t*)zmalloc((n)*sizeof(t)) ^ types.h:262:56: note: in expansion of macro 'N_NEW' #define alloc_elist(n,L) do {L.size = 0; L.list = N_NEW(n + 1,edge_t*); } while (0) ^~~~~ htmltable.c:1470:2: note: in expansion of macro 'alloc_elist' alloc_elist(tbl->rc, ND_out(t)); ^~~~~~~~~~~ memory.h:36:41: warning: conversion to 'unsigned int' from 'int' may change the sign of the result [-Wsign-conversion] #define N_NEW(n,t) (t*)zmalloc((n)*sizeof(t)) ^ types.h:262:56: note: in expansion of macro 'N_NEW' #define alloc_elist(n,L) do {L.size = 0; L.list = N_NEW(n + 1,edge_t*); } while (0) ^~~~~ htmltable.c:1482:2: note: in expansion of macro 'alloc_elist' alloc_elist(tbl->cc, ND_in(t)); ^~~~~~~~~~~ memory.h:36:41: warning: conversion to 'unsigned int' from 'int' may change the sign of the result [-Wsign-conversion] #define N_NEW(n,t) (t*)zmalloc((n)*sizeof(t)) ^ types.h:262:56: note: in expansion of macro 'N_NEW' #define alloc_elist(n,L) do {L.size = 0; L.list = N_NEW(n + 1,edge_t*); } while (0) ^~~~~ htmltable.c:1483:2: note: in expansion of macro 'alloc_elist' alloc_elist(tbl->cc, ND_out(t)); ^~~~~~~~~~~ htmltable.c:1496:25: warning: conversion to 'int' from 'double' may alter its value [-Wfloat-conversion] checkEdge (colg, t, h, cp->data.box.UR.x); ^~ htmltable.c:1500:25: warning: conversion to 'int' from 'double' may alter its value [-Wfloat-conversion] checkEdge (rowg, t, h, cp->data.box.UR.y); ^~ htmltable.c: At top level: htmltable.c:1513:6: warning: no previous prototype for 'setSizes' [-Wmissing-prototypes] void setSizes(htmltbl_t * tbl, graph_t * rowg, graph_t * colg) ^~~~~~~~ htmltable.c:1541:6: warning: no previous prototype for 'sizeArray' [-Wmissing-prototypes] void sizeArray(htmltbl_t * tbl) ^~~~~~~~~ In file included from render.h:44:0, from htmltable.c:35: htmltable.c: In function 'sizeArray': memory.h:36:41: warning: conversion to 'unsigned int' from 'int' may change the sign of the result [-Wsign-conversion] #define N_NEW(n,t) (t*)zmalloc((n)*sizeof(t)) ^ htmltable.c:1557:20: note: in expansion of macro 'N_NEW' tbl->heights = N_NEW(tbl->rc + 1, int); ^~~~~ memory.h:36:41: warning: conversion to 'unsigned int' from 'int' may change the sign of the result [-Wsign-conversion] #define N_NEW(n,t) (t*)zmalloc((n)*sizeof(t)) ^ htmltable.c:1558:19: note: in expansion of macro 'N_NEW' tbl->widths = N_NEW(tbl->cc + 1, int); ^~~~~ htmltable.c: In function 'pos_html_cell': htmltable.c:1645:22: warning: conversion to 'unsigned char' from 'int' may alter its value [-Wconversion] cp->data.sides = sides; ^~~~~ htmltable.c:1660:6: warning: switch missing default case [-Wswitch-default] switch (cp->data.flags & HALIGN_MASK) { ^~~~~~ htmltable.c:1672:6: warning: switch missing default case [-Wswitch-default] switch (cp->data.flags & VALIGN_MASK) { ^~~~~~ htmltable.c: In function 'pos_html_tbl': htmltable.c:1759:13: warning: conversion to 'int' from 'double' may alter its value [-Wfloat-conversion] oldsz = tbl->data.box.UR.x; ^~~ htmltable.c:1760:12: warning: conversion to 'int' from 'double' may alter its value [-Wfloat-conversion] delx = (pos.UR.x - pos.LL.x) - oldsz; ^ htmltable.c:1762:13: warning: conversion to 'int' from 'double' may alter its value [-Wfloat-conversion] oldsz = tbl->data.box.UR.y; ^~~ htmltable.c:1763:12: warning: conversion to 'int' from 'double' may alter its value [-Wfloat-conversion] dely = (pos.UR.y - pos.LL.y) - oldsz; ^ htmltable.c:1803:9: warning: conversion to 'int' from 'double' may alter its value [-Wfloat-conversion] x = pos.LL.x + tbl->data.border + tbl->data.space; ^~~ htmltable.c:1811:9: warning: conversion to 'int' from 'double' may alter its value [-Wfloat-conversion] y = pos.UR.y - tbl->data.border - tbl->data.space; ^~~ htmltable.c:1839:23: warning: conversion to 'unsigned char' from 'int' may alter its value [-Wconversion] tbl->data.sides = sides; ^~~~~ htmltable.c: In function 'nameOf': htmltable.c:1901:5: warning: switch missing default case [-Wswitch-default] switch (agobjkind(obj)) { ^~~~~~ htmltable.c: In function 'make_html_label': htmltable.c:2061:10: warning: declaration of 'box' shadows a global declaration [-Wshadow] boxf box; ^~~ In file included from types.h:35:0, from render.h:40, from htmltable.c:35: geom.h:33:34: note: shadowed declaration is here typedef struct { point LL, UR; } box; ^~~ htmltable.c:2068:5: warning: switch missing default case [-Wswitch-default] switch (agobjkind(obj)) { ^~~~~~ input.c: In function 'dotneato_basename': input.c:128:39: warning: declaration of 'path' shadows a global declaration [-Wshadow] static char* dotneato_basename (char* path) ^~~~ In file included from render.h:40:0, from input.c:15: types.h:105:7: note: shadowed declaration is here } path; ^~~~ In file included from render.h:44:0, from input.c:15: input.c: In function 'use_library': memory.h:41:62: warning: conversion to 'unsigned int' from 'int' may change the sign of the result [-Wsign-conversion] #define ALLOC(size,ptr,type) (ptr? (type*)grealloc(ptr,(size)*sizeof(type)):(type*)gmalloc((size)*sizeof(type))) ^ input.c:170:8: note: in expansion of macro 'ALLOC' Lib = ALLOC(cnt + 2, Lib, const char *); ^~~~~ memory.h:41:98: warning: conversion to 'unsigned int' from 'int' may change the sign of the result [-Wsign-conversion] #define ALLOC(size,ptr,type) (ptr? (type*)grealloc(ptr,(size)*sizeof(type)):(type*)gmalloc((size)*sizeof(type))) ^ input.c:170:8: note: in expansion of macro 'ALLOC' Lib = ALLOC(cnt + 2, Lib, const char *); ^~~~~ input.c: In function 'global_def': input.c:185:22: warning: conversion to 'size_t {aka unsigned int}' from 'int' may change the sign of the result [-Wsign-conversion] agxbput_n (xb, dcl, p-dcl); ^ input.c: In function 'dotneato_args_initialize': input.c:255:15: warning: conversion to 'unsigned char' from 'int' may alter its value [-Wconversion] Verbose = gvc->common.verbose; ^~~ In file included from render.h:44:0, from input.c:15: memory.h:36:41: warning: conversion to 'unsigned int' from 'int' may change the sign of the result [-Wsign-conversion] #define N_NEW(n,t) (t*)zmalloc((n)*sizeof(t)) ^ input.c:262:28: note: in expansion of macro 'N_NEW' gvc->input_filenames = N_NEW(nfiles + 1, char *); ^~~~~ CC routespl.lo input.c:378:29: warning: comparing floating point with == or != is unsafe [-Wfloat-equal] else if (PSinputscale == 0) ^~ input.c: In function 'graph_init': input.c:681:21: warning: conversion to 'unsigned char' from 'int' may alter its value [-Wconversion] GD_charset(g) = findCharset (g); ^~~~~~~~~~~ input.c:731:23: warning: conversion to 'unsigned char' from 'int' may alter its value [-Wconversion] GD_showboxes(g) = late_int(g, agfindgraphattr(g, "showboxes"), 0, 0); ^~~~~~~~ CC splines.lo pointset.c: In function 'freePair': pointset.c:32:29: warning: unused parameter 'd' [-Wunused-parameter] static void freePair(Dt_t * d, pair* pp, Dtdisc_t * disc) ^ pointset.c:32:53: warning: unused parameter 'disc' [-Wunused-parameter] static void freePair(Dt_t * d, pair* pp, Dtdisc_t * disc) ^~~~ pointset.c: In function 'cmppair': pointset.c:37:27: warning: unused parameter 'd' [-Wunused-parameter] static int cmppair(Dt_t * d, point * key1, point * key2, Dtdisc_t * disc) ^ pointset.c:37:69: warning: unused parameter 'disc' [-Wunused-parameter] static int cmppair(Dt_t * d, point * key1, point * key2, Dtdisc_t * disc) ^~~~ In file included from render.h:44:0, from pointset.c:15: pointset.c: In function 'pointsOf': memory.h:36:41: warning: conversion to 'unsigned int' from 'int' may change the sign of the result [-Wsign-conversion] #define N_NEW(n,t) (t*)zmalloc((n)*sizeof(t)) ^ pointset.c:117:18: note: in expansion of macro 'N_NEW' point *pts = N_NEW(n, point); ^~~~~ pointset.c: In function 'mkMPair': pointset.c:140:30: warning: unused parameter 'd' [-Wunused-parameter] static mpair *mkMPair(Dt_t * d, mpair * obj, MPairDisc * disc) ^ pointset.c: In function 'freeMPair': pointset.c:154:30: warning: unused parameter 'd' [-Wunused-parameter] static void freeMPair(Dt_t * d, mpair * ap, MPairDisc * disc) ^ intset.c: In function 'mkIntItem': intset.c:21:17: warning: unused parameter 'd' [-Wunused-parameter] mkIntItem(Dt_t* d,intitem* obj,Dtdisc_t* disc) ^ intset.c:21:42: warning: unused parameter 'disc' [-Wunused-parameter] mkIntItem(Dt_t* d,intitem* obj,Dtdisc_t* disc) ^~~~ intset.c: In function 'freeIntItem': intset.c:29:19: warning: unused parameter 'd' [-Wunused-parameter] freeIntItem(Dt_t* d,intitem* obj,Dtdisc_t* disc) ^ intset.c:29:44: warning: unused parameter 'disc' [-Wunused-parameter] freeIntItem(Dt_t* d,intitem* obj,Dtdisc_t* disc) ^~~~ intset.c: In function 'cmpid': intset.c:35:13: warning: unused parameter 'd' [-Wunused-parameter] cmpid(Dt_t* d, int* key1, int* key2, Dtdisc_t* disc) ^ intset.c:35:48: warning: unused parameter 'disc' [-Wunused-parameter] cmpid(Dt_t* d, int* key1, int* key2, Dtdisc_t* disc) ^~~~ CC psusershape.lo CC timing.lo In file included from render.h:44:0, from routespl.c:16: routespl.c: In function 'simpleSplineRoute': memory.h:41:62: warning: conversion to 'unsigned int' from 'int' may change the sign of the result [-Wsign-conversion] #define ALLOC(size,ptr,type) (ptr? (type*)grealloc(ptr,(size)*sizeof(type)):(type*)gmalloc((size)*sizeof(type))) ^ routespl.c:249:14: note: in expansion of macro 'ALLOC' edges = ALLOC(poly.pn, edges, Pedge_t); ^~~~~ memory.h:41:98: warning: conversion to 'unsigned int' from 'int' may change the sign of the result [-Wsign-conversion] #define ALLOC(size,ptr,type) (ptr? (type*)grealloc(ptr,(size)*sizeof(type)):(type*)gmalloc((size)*sizeof(type))) ^ routespl.c:249:14: note: in expansion of macro 'ALLOC' edges = ALLOC(poly.pn, edges, Pedge_t); ^~~~~ routespl.c: In function '_routesplines': memory.h:41:62: warning: conversion to 'unsigned int' from 'int' may change the sign of the result [-Wsign-conversion] #define ALLOC(size,ptr,type) (ptr? (type*)grealloc(ptr,(size)*sizeof(type)):(type*)gmalloc((size)*sizeof(type))) ^ routespl.c:436:15: note: in expansion of macro 'ALLOC' polypoints = ALLOC(boxn * 8, polypoints, Ppoint_t); ^~~~~ memory.h:41:98: warning: conversion to 'unsigned int' from 'int' may change the sign of the result [-Wsign-conversion] #define ALLOC(size,ptr,type) (ptr? (type*)grealloc(ptr,(size)*sizeof(type)):(type*)gmalloc((size)*sizeof(type))) ^ routespl.c:436:15: note: in expansion of macro 'ALLOC' polypoints = ALLOC(boxn * 8, polypoints, Ppoint_t); ^~~~~ memory.h:41:62: warning: conversion to 'unsigned int' from 'int' may change the sign of the result [-Wsign-conversion] #define ALLOC(size,ptr,type) (ptr? (type*)grealloc(ptr,(size)*sizeof(type)):(type*)gmalloc((size)*sizeof(type))) ^ routespl.c:564:14: note: in expansion of macro 'ALLOC' edges = ALLOC(poly.pn, edges, Pedge_t); ^~~~~ memory.h:41:98: warning: conversion to 'unsigned int' from 'int' may change the sign of the result [-Wsign-conversion] #define ALLOC(size,ptr,type) (ptr? (type*)grealloc(ptr,(size)*sizeof(type)):(type*)gmalloc((size)*sizeof(type))) ^ routespl.c:564:14: note: in expansion of macro 'ALLOC' edges = ALLOC(poly.pn, edges, Pedge_t); ^~~~~ routespl.c:616:26: warning: comparing floating point with == or != is unsafe [-Wfloat-equal] if ((boxes[bi].LL.x == INT_MAX) || (boxes[bi].UR.x == INT_MIN)) { ^~ routespl.c:616:57: warning: comparing floating point with == or != is unsafe [-Wfloat-equal] if ((boxes[bi].LL.x == INT_MAX) || (boxes[bi].UR.x == INT_MIN)) { ^~ routespl.c: In function 'checkpath': routespl.c:737:8: warning: conversion to 'int' from 'double' may alter its value [-Wfloat-conversion] xy = ba->UR.x, ba->UR.x = bb->LL.x, bb->LL.x = xy, l = 0; ^~ routespl.c:739:8: warning: conversion to 'int' from 'double' may alter its value [-Wfloat-conversion] xy = ba->LL.x, ba->LL.x = bb->UR.x, bb->UR.x = xy, r = 0; ^~ routespl.c:741:8: warning: conversion to 'int' from 'double' may alter its value [-Wfloat-conversion] xy = ba->UR.y, ba->UR.y = bb->LL.y, bb->LL.y = xy, d = 0; ^~ routespl.c:743:8: warning: conversion to 'int' from 'double' may alter its value [-Wfloat-conversion] xy = ba->LL.y, ba->LL.y = bb->UR.y, bb->UR.y = xy, u = 0; ^~ routespl.c:746:12: warning: conversion to 'int' from 'double' may alter its value [-Wfloat-conversion] xy = (ba->UR.x + bb->LL.x) / 2.0 + 0.5, ba->UR.x = ^ routespl.c:749:12: warning: conversion to 'int' from 'double' may alter its value [-Wfloat-conversion] xy = (ba->LL.x + bb->UR.x) / 2.0 + 0.5, ba->LL.x = ^ routespl.c:752:12: warning: conversion to 'int' from 'double' may alter its value [-Wfloat-conversion] xy = (ba->UR.y + bb->LL.y) / 2.0 + 0.5, ba->UR.y = ^ routespl.c:755:12: warning: conversion to 'int' from 'double' may alter its value [-Wfloat-conversion] xy = (ba->LL.y + bb->UR.y) / 2.0 + 0.5, ba->LL.y = ^ routespl.c:764:21: warning: conversion to 'int' from 'double' may alter its value [-Wfloat-conversion] xoverlap = overlap(ba->LL.x, ba->UR.x, bb->LL.x, bb->UR.x); ^~ routespl.c:764:31: warning: conversion to 'int' from 'double' may alter its value [-Wfloat-conversion] xoverlap = overlap(ba->LL.x, ba->UR.x, bb->LL.x, bb->UR.x); ^~ routespl.c:764:41: warning: conversion to 'int' from 'double' may alter its value [-Wfloat-conversion] xoverlap = overlap(ba->LL.x, ba->UR.x, bb->LL.x, bb->UR.x); ^~ routespl.c:764:51: warning: conversion to 'int' from 'double' may alter its value [-Wfloat-conversion] xoverlap = overlap(ba->LL.x, ba->UR.x, bb->LL.x, bb->UR.x); ^~ routespl.c:765:21: warning: conversion to 'int' from 'double' may alter its value [-Wfloat-conversion] yoverlap = overlap(ba->LL.y, ba->UR.y, bb->LL.y, bb->UR.y); ^~ routespl.c:765:31: warning: conversion to 'int' from 'double' may alter its value [-Wfloat-conversion] yoverlap = overlap(ba->LL.y, ba->UR.y, bb->LL.y, bb->UR.y); ^~ routespl.c:765:41: warning: conversion to 'int' from 'double' may alter its value [-Wfloat-conversion] yoverlap = overlap(ba->LL.y, ba->UR.y, bb->LL.y, bb->UR.y); ^~ routespl.c:765:51: warning: conversion to 'int' from 'double' may alter its value [-Wfloat-conversion] yoverlap = overlap(ba->LL.y, ba->UR.y, bb->LL.y, bb->UR.y); ^~ In file included from render.h:44:0, from routespl.c:16: routespl.c: In function 'mkspacep': memory.h:42:58: warning: conversion to 'unsigned int' from 'int' may change the sign of the result [-Wsign-conversion] #define RALLOC(size,ptr,type) ((type*)grealloc(ptr,(size)*sizeof(type))) ^ routespl.c:849:7: note: in expansion of macro 'RALLOC' ps = RALLOC(newmax, ps, pointf); ^~~~~~ routespl.c: In function 'bend': routespl.c:921:11: warning: comparing floating point with == or != is unsafe [-Wfloat-equal] if (magV == 0) return; /* if midpoint == centroid, don't divide by zero */ ^~ routespl.c: In function 'makeStraightEdge': routespl.c:939:14: warning: declaration of 'edges' shadows a global declaration [-Wshadow] edge_t** edges; ^~~~~ routespl.c:41:17: note: shadowed declaration is here static Pedge_t *edges; /* polygon edges passed to Proutespline */ ^~~~~ routespl.c:940:13: warning: declaration of 'elist' shadows a global declaration [-Wshadow] edge_t* elist[MAX_EDGE]; ^~~~~ In file included from render.h:40:0, from routespl.c:16: types.h:253:7: note: shadowed declaration is here } elist; ^~~~~ In file included from render.h:44:0, from routespl.c:16: memory.h:36:41: warning: conversion to 'unsigned int' from 'int' may change the sign of the result [-Wsign-conversion] #define N_NEW(n,t) (t*)zmalloc((n)*sizeof(t)) ^ routespl.c:950:10: note: in expansion of macro 'N_NEW' edges = N_NEW(e_cnt,edge_t*); ^~~~~ routespl.c: In function 'makeStraightEdges': routespl.c:962:41: warning: declaration of 'edges' shadows a global declaration [-Wshadow] makeStraightEdges(graph_t * g, edge_t** edges, int e_cnt, int et, splineInfo* sinfo) ^~~~~ routespl.c:41:17: note: shadowed declaration is here static Pedge_t *edges; /* polygon edges passed to Proutespline */ ^~~~~ postproc.c: In function 'translate_drawing': postproc.c:151:18: warning: comparing floating point with == or != is unsafe [-Wfloat-equal] int shift = (Offset.x || Offset.y); ^~~~~~ postproc.c:151:27: warning: comparing floating point with == or != is unsafe [-Wfloat-equal] int shift = (Offset.x || Offset.y); ^~ In file included from render.h:44:0, from postproc.c:15: postproc.c: In function 'addXLabels': memory.h:36:41: warning: conversion to 'unsigned int' from 'int' may change the sign of the result [-Wsign-conversion] #define N_NEW(n,t) (t*)zmalloc((n)*sizeof(t)) ^ postproc.c:478:19: note: in expansion of macro 'N_NEW' objp = objs = N_NEW(n_objs, object_t); ^~~~~ memory.h:36:41: warning: conversion to 'unsigned int' from 'int' may change the sign of the result [-Wsign-conversion] #define N_NEW(n,t) (t*)zmalloc((n)*sizeof(t)) ^ postproc.c:479:18: note: in expansion of macro 'N_NEW' xlp = lbls = N_NEW(n_lbls, xlabel_t); ^~~~~ postproc.c: In function 'gv_postprocess': postproc.c:661:2: warning: switch missing default case [-Wswitch-default] switch (Rankdir) { ^~~~~~ In file included from render.h:44:0, from splines.c:19: splines.c: In function 'new_spline': memory.h:41:62: warning: conversion to 'unsigned int' from 'int' may change the sign of the result [-Wsign-conversion] #define ALLOC(size,ptr,type) (ptr? (type*)grealloc(ptr,(size)*sizeof(type)):(type*)gmalloc((size)*sizeof(type))) ^ splines.c:225:23: note: in expansion of macro 'ALLOC' ED_spl(e)->list = ALLOC(ED_spl(e)->size + 1, ED_spl(e)->list, bezier); ^~~~~ memory.h:41:98: warning: conversion to 'unsigned int' from 'int' may change the sign of the result [-Wsign-conversion] #define ALLOC(size,ptr,type) (ptr? (type*)grealloc(ptr,(size)*sizeof(type)):(type*)gmalloc((size)*sizeof(type))) ^ splines.c:225:23: note: in expansion of macro 'ALLOC' ED_spl(e)->list = ALLOC(ED_spl(e)->size + 1, ED_spl(e)->list, bezier); ^~~~~ memory.h:36:41: warning: conversion to 'unsigned int' from 'int' may change the sign of the result [-Wsign-conversion] #define N_NEW(n,t) (t*)zmalloc((n)*sizeof(t)) ^ splines.c:227:16: note: in expansion of macro 'N_NEW' rv->list = N_NEW(sz, pointf); ^~~~~ splines.c: In function 'beginpath': splines.c:564:2: warning: switch missing default case [-Wswitch-default] switch (et) { ^~~~~~ CC labels.lo splines.c: In function 'endpath': splines.c:760:2: warning: switch missing default case [-Wswitch-default] switch (et) { ^~~~~~ splines.c: In function 'selfBottom': splines.c:828:35: warning: variable 'width' set but not used [-Wunused-but-set-variable] double hy, ty, stepx, dx, dy, width, height; ^~~~~ splines.c: In function 'selfTop': splines.c:898:36: warning: variable 'width' set but not used [-Wunused-but-set-variable] double hy, ty, stepx, dx, dy, width, height; ^~~~~ splines.c: In function 'selfRight': splines.c:1033:24: warning: comparing floating point with == or != is unsafe [-Wfloat-equal] case 65: if(tp.y == hp.y) ^~ splines.c:1005:42: warning: variable 'height' set but not used [-Wunused-but-set-variable] double hx, tx, stepy, dx, dy, width, height; ^~~~~~ splines.c: In function 'selfLeft': splines.c:1111:11: warning: comparing floating point with == or != is unsafe [-Wfloat-equal] if(tp.y == hp.y) ^~ splines.c:1080:42: warning: variable 'height' set but not used [-Wunused-but-set-variable] double hx, tx, stepy, dx, dy, width, height; ^~~~~~ splines.c: In function 'selfRightSpace': splines.c:1177:12: warning: conversion to 'int' from 'double' may alter its value [-Wfloat-conversion] sw += label_width; ^~~~~~~~~~~ splines.c: In function 'makeSelfEdge': splines.c:1191:21: warning: unused parameter 'P' [-Wunused-parameter] makeSelfEdge(path * P, edge_t * edges[], int ind, int cnt, double sizex, ^ splines.c: In function 'addEdgeLabels': splines.c:1355:29: warning: unused parameter 'g' [-Wunused-parameter] void addEdgeLabels(graph_t* g, edge_t * e, pointf rp, pointf rq) ^ splines.c:1355:51: warning: unused parameter 'rp' [-Wunused-parameter] void addEdgeLabels(graph_t* g, edge_t * e, pointf rp, pointf rq) ^~ splines.c:1355:62: warning: unused parameter 'rq' [-Wunused-parameter] void addEdgeLabels(graph_t* g, edge_t * e, pointf rp, pointf rq) ^~ timing.c:45:6: warning: no previous prototype for 'start_timer' [-Wmissing-prototypes] void start_timer(void) ^~~~~~~~~~~ timing.c:50:8: warning: no previous prototype for 'elapsed_sec' [-Wmissing-prototypes] double elapsed_sec(void) ^~~~~~~~~~~ timing.c: In function 'elapsed_sec': timing.c:28:84: warning: cast from function call of type 'long int' to non-matching type 'double' [-Wbad-function-cast] #define DIFF_IN_SECS(S,T) ((S.tms_utime + S.tms_stime - T.tms_utime - T.tms_stime)/(double)HZ) ^ timing.c:56:10: note: in expansion of macro 'DIFF_IN_SECS' rv = DIFF_IN_SECS(S, T); ^~~~~~~~~~~~ psusershape.c: In function 'ps_image_free': psusershape.c:26:36: warning: unused parameter 'dict' [-Wunused-parameter] static void ps_image_free(Dict_t * dict, usershape_t * p, Dtdisc_t * disc) ^~~~ psusershape.c:26:70: warning: unused parameter 'disc' [-Wunused-parameter] static void ps_image_free(Dict_t * dict, usershape_t * p, Dtdisc_t * disc) ^~~~ In file included from /jenkins/jobs/oi-userland/workspace/components/image/graphviz/graphviz-2.40.1/lib/cgraph/cgraph.h:18:0, from types.h:39, from render.h:40, from psusershape.c:20: psusershape.c: In function 'user_init': /jenkins/jobs/oi-userland/workspace/components/image/graphviz/graphviz-2.40.1/lib/cdt/cdt.h:277:47: warning: cast discards 'const' qualifier from pointer target type [-Wcast-qual] #define dtmatch(d,o) (*(_DT(d)->searchf))((d),(void*)(o),DT_MATCH) ^ psusershape.c:56:10: note: in expansion of macro 'dtmatch' us = dtmatch(EPSF_contents, str); ^~~~~~~ In file included from render.h:44:0, from psusershape.c:20: memory.h:39:41: warning: conversion to 'long unsigned int' from 'long int' may change the sign of the result [-Wsign-conversion] #define N_GNEW(n,t) (t*)gmalloc((n)*sizeof(t)) ^ psusershape.c:84:24: note: in expansion of macro 'N_GNEW' contents = us->data = N_GNEW(statbuf.st_size + 1, char); ^~~~~~ psusershape.c:86:23: warning: conversion to 'size_t {aka unsigned int}' from 'off_t {aka long int}' may change the sign of the result [-Wsign-conversion] rc = fread(contents, statbuf.st_size, 1, fp); ^~~~~~~ psusershape.c:86:7: warning: conversion to 'int' from 'size_t {aka unsigned int}' may change the sign of the result [-Wsign-conversion] rc = fread(contents, statbuf.st_size, 1, fp); ^~~~~ psusershape.c:89:20: warning: conversion to 'boolean {aka unsigned char}' from 'int' may alter its value [-Wconversion] us->must_inline = must_inline; ^~~~~~~~~~~ psusershape.c:49:30: warning: variable 'rc' set but not used [-Wunused-but-set-variable] int saw_bb, must_inline, rc; ^~ psusershape.c: In function 'cat_libfile': psusershape.c:142:31: warning: declaration of 'path' shadows a global declaration [-Wshadow] const char **s, *bp, *p, *path; ^~~~ In file included from render.h:40:0, from psusershape.c:20: types.h:105:7: note: shadowed declaration is here } path; ^~~~ CC shapes.lo CC ns.lo CC utils.lo In file included from render.h:44:0, from labels.c:15: labels.c: In function 'storeline': labels.c:28:29: warning: conversion to 'size_t {aka unsigned int}' from 'int' may change the sign of the result [-Wsign-conversion] lp->u.txt.span = ZALLOC(oldsz + 1, lp->u.txt.span, textspan_t, oldsz); ^ memory.h:43:63: note: in definition of macro 'ZALLOC' #define ZALLOC(size,ptr,type,osize) (ptr? (type*)zrealloc(ptr,size,sizeof(type),osize):(type*)zmalloc((size)*sizeof(type))) ^~~~ labels.c:28:68: warning: conversion to 'size_t {aka unsigned int}' from 'int' may change the sign of the result [-Wsign-conversion] lp->u.txt.span = ZALLOC(oldsz + 1, lp->u.txt.span, textspan_t, oldsz); ^ memory.h:43:81: note: in definition of macro 'ZALLOC' #define ZALLOC(size,ptr,type,osize) (ptr? (type*)zrealloc(ptr,size,sizeof(type),osize):(type*)zmalloc((size)*sizeof(type))) ^~~~~ memory.h:43:109: warning: conversion to 'unsigned int' from 'int' may change the sign of the result [-Wsign-conversion] #define ZALLOC(size,ptr,type,osize) (ptr? (type*)zrealloc(ptr,size,sizeof(type),osize):(type*)zmalloc((size)*sizeof(type))) ^ labels.c:28:22: note: in expansion of macro 'ZALLOC' lp->u.txt.span = ZALLOC(oldsz + 1, lp->u.txt.span, textspan_t, oldsz); ^~~~~~ labels.c: In function 'make_label': labels.c:123:5: warning: switch missing default case [-Wswitch-default] switch (agobjkind(obj)) { ^~~~~~ labels.c:151:6: warning: switch missing default case [-Wswitch-default] switch (agobjkind(obj)) { ^~~~~~ labels.c: In function 'strdup_and_subst_obj0': labels.c:304:5: warning: switch missing default case [-Wswitch-default] switch (agobjkind(obj)) { ^~~~~~ labels.c: In function 'xml_string0': labels.c:506:16: warning: conversion to 'size_t {aka unsigned int}' from 'int' may change the sign of the result [-Wsign-conversion] buf = gmalloc(bufsize); ^~~~~~~ labels.c:513:26: warning: conversion to 'size_t {aka unsigned int}' from 'int' may change the sign of the result [-Wsign-conversion] buf = grealloc(buf, bufsize); ^~~~~~~ labels.c: In function 'xml_url_string': labels.c:584:16: warning: conversion to 'size_t {aka unsigned int}' from 'int' may change the sign of the result [-Wsign-conversion] buf = gmalloc(bufsize); ^~~~~~~ labels.c:591:26: warning: conversion to 'size_t {aka unsigned int}' from 'int' may change the sign of the result [-Wsign-conversion] buf = grealloc(buf, bufsize); ^~~~~~~ CC geom.lo In file included from render.h:44:0, from ns.c:19: ns.c: In function 'feasible_tree': memory.h:36:41: warning: conversion to 'unsigned int' from 'int' may change the sign of the result [-Wsign-conversion] #define N_NEW(n,t) (t*)zmalloc((n)*sizeof(t)) ^ ns.c:502:10: note: in expansion of macro 'N_NEW' tree = N_NEW(N_nodes,subtree_t*); ^~~~~ ns.c: In function 'freeTreeList': ns.c:634:24: warning: unused parameter 'g' [-Wunused-parameter] freeTreeList (graph_t* g) ^ In file included from render.h:44:0, from ns.c:19: ns.c: In function 'TB_balance': memory.h:36:41: warning: conversion to 'unsigned int' from 'int' may change the sign of the result [-Wsign-conversion] #define N_NEW(n,t) (t*)zmalloc((n)*sizeof(t)) ^ ns.c:677:13: note: in expansion of macro 'N_NEW' nrank = N_NEW(Maxrank + 1, int); ^~~~~ ns.c: In function 'init_graph': memory.h:41:62: warning: conversion to 'unsigned int' from 'int' may change the sign of the result [-Wsign-conversion] #define ALLOC(size,ptr,type) (ptr? (type*)grealloc(ptr,(size)*sizeof(type)):(type*)gmalloc((size)*sizeof(type))) ^ ns.c:730:22: note: in expansion of macro 'ALLOC' Tree_node.list = ALLOC(N_nodes, Tree_node.list, node_t *); ^~~~~ memory.h:41:98: warning: conversion to 'unsigned int' from 'int' may change the sign of the result [-Wsign-conversion] #define ALLOC(size,ptr,type) (ptr? (type*)grealloc(ptr,(size)*sizeof(type)):(type*)gmalloc((size)*sizeof(type))) ^ ns.c:730:22: note: in expansion of macro 'ALLOC' Tree_node.list = ALLOC(N_nodes, Tree_node.list, node_t *); ^~~~~ memory.h:41:62: warning: conversion to 'unsigned int' from 'int' may change the sign of the result [-Wsign-conversion] #define ALLOC(size,ptr,type) (ptr? (type*)grealloc(ptr,(size)*sizeof(type)):(type*)gmalloc((size)*sizeof(type))) ^ ns.c:732:22: note: in expansion of macro 'ALLOC' Tree_edge.list = ALLOC(N_nodes, Tree_edge.list, edge_t *); ^~~~~ memory.h:41:98: warning: conversion to 'unsigned int' from 'int' may change the sign of the result [-Wsign-conversion] #define ALLOC(size,ptr,type) (ptr? (type*)grealloc(ptr,(size)*sizeof(type)):(type*)gmalloc((size)*sizeof(type))) ^ ns.c:732:22: note: in expansion of macro 'ALLOC' Tree_edge.list = ALLOC(N_nodes, Tree_edge.list, edge_t *); ^~~~~ memory.h:36:41: warning: conversion to 'unsigned int' from 'int' may change the sign of the result [-Wsign-conversion] #define N_NEW(n,t) (t*)zmalloc((n)*sizeof(t)) ^ ns.c:746:23: note: in expansion of macro 'N_NEW' ND_tree_in(n).list = N_NEW(i + 1, edge_t *); ^~~~~ memory.h:36:41: warning: conversion to 'unsigned int' from 'int' may change the sign of the result [-Wsign-conversion] #define N_NEW(n,t) (t*)zmalloc((n)*sizeof(t)) ^ ns.c:749:24: note: in expansion of macro 'N_NEW' ND_tree_out(n).list = N_NEW(i + 1, edge_t *); ^~~~~ ns.c: At top level: ns.c:788:5: warning: no previous prototype for 'rank2' [-Wmissing-prototypes] int rank2(graph_t * g, int balance, int maxiter, int search_size) ^~~~~ ns.c:532:12: warning: 'ed_minlen' defined but not used [-Wunused-function] static int ed_minlen(Agedge_t *e) {return ED_minlen(e);} ^~~~~~~~~ ns.c:531:12: warning: 'nd_rank' defined but not used [-Wunused-function] static int nd_rank(Agnode_t *n) {return ND_rank(n);} ^~~~~~~ ns.c:530:12: warning: 'nd_priority' defined but not used [-Wunused-function] static int nd_priority(Agnode_t *n) {return ND_priority(n);} ^~~~~~~~~~~ ns.c:529:19: warning: 'nd_subtree' defined but not used [-Wunused-function] static subtree_t *nd_subtree(Agnode_t *n) {return ND_subtree(n);} ^~~~~~~~~~ In file included from render.h:44:0, from utils.c:14: utils.c: In function 'new_queue': memory.h:36:41: warning: conversion to 'unsigned int' from 'int' may change the sign of the result [-Wsign-conversion] #define N_NEW(n,t) (t*)zmalloc((n)*sizeof(t)) ^ utils.c:37:36: note: in expansion of macro 'N_NEW' q->head = q->tail = q->store = N_NEW(sz, node_t *); ^~~~~ utils.c: In function 'get_inputscale': utils.c:115:11: warning: comparing floating point with == or != is unsafe [-Wfloat-equal] if (d == 0) return POINTS_PER_INCH; ^~ utils.c: In function 'late_bool': utils.c:137:9: warning: conversion to 'boolean {aka unsigned char}' from 'int' may alter its value [-Wconversion] return def; ^~~ utils.c: In function 'Fgets': utils.c:290:26: warning: conversion to 'size_t {aka unsigned int}' from 'int' may change the sign of the result [-Wsign-conversion] buf = grealloc(buf, bsize); ^~~~~ utils.c:295:6: warning: conversion to 'size_t {aka unsigned int}' from 'int' may change the sign of the result [-Wsign-conversion] len += strlen(lp); /* since lp != NULL, len > 0 */ ^~ utils.c:295:9: warning: conversion to 'int' from 'size_t {aka unsigned int}' may change the sign of the result [-Wsign-conversion] len += strlen(lp); /* since lp != NULL, len > 0 */ ^~~~~~ In file included from render.h:44:0, from utils.c:14: utils.c: In function 'mkDirlist': memory.h:41:62: warning: conversion to 'unsigned int' from 'int' may change the sign of the result [-Wsign-conversion] #define ALLOC(size,ptr,type) (ptr? (type*)grealloc(ptr,(size)*sizeof(type)):(type*)gmalloc((size)*sizeof(type))) ^ utils.c:345:9: note: in expansion of macro 'ALLOC' dirs = ALLOC (cnt+2,dirs,char*); ^~~~~ memory.h:41:98: warning: conversion to 'unsigned int' from 'int' may change the sign of the result [-Wsign-conversion] #define ALLOC(size,ptr,type) (ptr? (type*)grealloc(ptr,(size)*sizeof(type)):(type*)gmalloc((size)*sizeof(type))) ^ utils.c:345:9: note: in expansion of macro 'ALLOC' dirs = ALLOC (cnt+2,dirs,char*); ^~~~~ In file included from geom.h:20:0, from types.h:35, from render.h:40, from utils.c:14: arith.h:43:22: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] #define MAX(a,b) ((a)>(b)?(a):(b)) ^ utils.c:347:11: note: in expansion of macro 'MAX' maxlen = MAX(maxlen, strlen (dir)); ^~~ arith.h:43:30: warning: signed and unsigned type in conditional expression [-Wsign-compare] #define MAX(a,b) ((a)>(b)?(a):(b)) ^ utils.c:347:11: note: in expansion of macro 'MAX' maxlen = MAX(maxlen, strlen (dir)); ^~~ arith.h:43:30: warning: conversion to 'size_t {aka unsigned int}' from 'int' may change the sign of the result [-Wsign-conversion] #define MAX(a,b) ((a)>(b)?(a):(b)) ^ utils.c:347:11: note: in expansion of macro 'MAX' maxlen = MAX(maxlen, strlen (dir)); ^~~ arith.h:43:18: warning: conversion to 'int' from 'size_t {aka unsigned int}' may change the sign of the result [-Wsign-conversion] #define MAX(a,b) ((a)>(b)?(a):(b)) ^ utils.c:347:11: note: in expansion of macro 'MAX' maxlen = MAX(maxlen, strlen (dir)); ^~~ arith.h:43:18: warning: conversion to 'int' from 'size_t {aka unsigned int}' may change the sign of the result [-Wsign-conversion] #define MAX(a,b) ((a)>(b)?(a):(b)) ^ utils.c:347:11: note: in expansion of macro 'MAX' maxlen = MAX(maxlen, strlen (dir)); ^~~ utils.c: In function 'findPath': utils.c:363:53: warning: conversion to 'size_t {aka unsigned int}' from 'int' may change the sign of the result [-Wsign-conversion] safefilename = realloc(safefilename, (maxdirlen + strlen(str) + 2)); ^ utils.c: In function 'mapBool': utils.c:464:9: warning: conversion to 'boolean {aka unsigned char}' from 'int' may alter its value [-Wconversion] return atoi(p); ^~~~~~~ utils.c: In function 'gvToggle': utils.c:607:19: warning: unused parameter 's' [-Wunused-parameter] void gvToggle(int s) ^ utils.c: In function 'common_init_node': utils.c:649:23: warning: conversion to 'unsigned char' from 'int' may alter its value [-Wconversion] ND_showboxes(n) = late_int(n, N_showboxes, 0, 0); ^~~~~~~~ utils.c: In function 'common_init_edge': utils.c:728:6: warning: conversion to 'char' from 'boolean {aka unsigned char}' may change the sign of the result [-Wsign-conversion] mapbool(late_string(e, E_label_float, "false")); ^~~~~~~ shapes.c:26:1: warning: missing initializer for field 'name' of 'port {aka struct port}' [-Wmissing-field-initializers] static port Center = { {0, 0}, -1, 0, 0, 0, 1, 0, 0, 0 }; ^~~~~~ In file included from render.h:40:0, from shapes.c:14: types.h:82:8: note: 'name' declared here char *name; /* port name, if it was explicitly given, otherwise NULL */ ^~~~ shapes.c:85:1: warning: missing initializer for field 'option' of 'polygon_t {aka struct polygon_t}' [-Wmissing-field-initializers] static polygon_t p_polygon = { FALSE, 1, 0, 0., 0., 0. }; ^~~~~~ In file included from render.h:40:0, from shapes.c:14: types.h:148:6: note: 'option' declared here int option; /* ROUNDED, DIAGONAL corners, etc. */ ^~~~~~ shapes.c:88:1: warning: missing initializer for field 'option' of 'polygon_t {aka struct polygon_t}' [-Wmissing-field-initializers] static polygon_t p_ellipse = { FALSE, 1, 1, 0., 0., 0. }; ^~~~~~ In file included from render.h:40:0, from shapes.c:14: types.h:148:6: note: 'option' declared here int option; /* ROUNDED, DIAGONAL corners, etc. */ ^~~~~~ shapes.c:89:1: warning: missing initializer for field 'option' of 'polygon_t {aka struct polygon_t}' [-Wmissing-field-initializers] static polygon_t p_circle = { TRUE, 1, 1, 0., 0., 0. }; ^~~~~~ In file included from render.h:40:0, from shapes.c:14: types.h:148:6: note: 'option' declared here int option; /* ROUNDED, DIAGONAL corners, etc. */ ^~~~~~ shapes.c:90:1: warning: missing initializer for field 'option' of 'polygon_t {aka struct polygon_t}' [-Wmissing-field-initializers] static polygon_t p_egg = { FALSE, 1, 1, 0., -.3, 0. }; ^~~~~~ In file included from render.h:40:0, from shapes.c:14: types.h:148:6: note: 'option' declared here int option; /* ROUNDED, DIAGONAL corners, etc. */ ^~~~~~ shapes.c:91:1: warning: missing initializer for field 'option' of 'polygon_t {aka struct polygon_t}' [-Wmissing-field-initializers] static polygon_t p_triangle = { FALSE, 1, 3, 0., 0., 0. }; ^~~~~~ In file included from render.h:40:0, from shapes.c:14: types.h:148:6: note: 'option' declared here int option; /* ROUNDED, DIAGONAL corners, etc. */ ^~~~~~ shapes.c:92:1: warning: missing initializer for field 'option' of 'polygon_t {aka struct polygon_t}' [-Wmissing-field-initializers] static polygon_t p_box = { FALSE, 1, 4, 0., 0., 0. }; ^~~~~~ In file included from render.h:40:0, from shapes.c:14: types.h:148:6: note: 'option' declared here int option; /* ROUNDED, DIAGONAL corners, etc. */ ^~~~~~ shapes.c:93:1: warning: missing initializer for field 'option' of 'polygon_t {aka struct polygon_t}' [-Wmissing-field-initializers] static polygon_t p_square = { TRUE, 1, 4, 0., 0., 0. }; ^~~~~~ In file included from render.h:40:0, from shapes.c:14: types.h:148:6: note: 'option' declared here int option; /* ROUNDED, DIAGONAL corners, etc. */ ^~~~~~ shapes.c:94:1: warning: missing initializer for field 'option' of 'polygon_t {aka struct polygon_t}' [-Wmissing-field-initializers] static polygon_t p_plaintext = { FALSE, 0, 4, 0., 0., 0. }; ^~~~~~ In file included from render.h:40:0, from shapes.c:14: types.h:148:6: note: 'option' declared here int option; /* ROUNDED, DIAGONAL corners, etc. */ ^~~~~~ shapes.c:95:1: warning: missing initializer for field 'option' of 'polygon_t {aka struct polygon_t}' [-Wmissing-field-initializers] static polygon_t p_plain = { FALSE, 0, 4, 0., 0., 0. }; ^~~~~~ In file included from render.h:40:0, from shapes.c:14: types.h:148:6: note: 'option' declared here int option; /* ROUNDED, DIAGONAL corners, etc. */ ^~~~~~ shapes.c:96:1: warning: missing initializer for field 'option' of 'polygon_t {aka struct polygon_t}' [-Wmissing-field-initializers] static polygon_t p_diamond = { FALSE, 1, 4, 45., 0., 0. }; ^~~~~~ In file included from render.h:40:0, from shapes.c:14: types.h:148:6: note: 'option' declared here int option; /* ROUNDED, DIAGONAL corners, etc. */ ^~~~~~ shapes.c:97:1: warning: missing initializer for field 'option' of 'polygon_t {aka struct polygon_t}' [-Wmissing-field-initializers] static polygon_t p_trapezium = { FALSE, 1, 4, 0., -.4, 0. }; ^~~~~~ In file included from render.h:40:0, from shapes.c:14: types.h:148:6: note: 'option' declared here int option; /* ROUNDED, DIAGONAL corners, etc. */ ^~~~~~ shapes.c:98:1: warning: missing initializer for field 'option' of 'polygon_t {aka struct polygon_t}' [-Wmissing-field-initializers] static polygon_t p_parallelogram = { FALSE, 1, 4, 0., 0., .6 }; ^~~~~~ In file included from render.h:40:0, from shapes.c:14: types.h:148:6: note: 'option' declared here int option; /* ROUNDED, DIAGONAL corners, etc. */ ^~~~~~ shapes.c:99:1: warning: missing initializer for field 'option' of 'polygon_t {aka struct polygon_t}' [-Wmissing-field-initializers] static polygon_t p_house = { FALSE, 1, 5, 0., -.64, 0. }; ^~~~~~ In file included from render.h:40:0, from shapes.c:14: types.h:148:6: note: 'option' declared here int option; /* ROUNDED, DIAGONAL corners, etc. */ ^~~~~~ shapes.c:100:1: warning: missing initializer for field 'option' of 'polygon_t {aka struct polygon_t}' [-Wmissing-field-initializers] static polygon_t p_pentagon = { FALSE, 1, 5, 0., 0., 0. }; ^~~~~~ In file included from render.h:40:0, from shapes.c:14: types.h:148:6: note: 'option' declared here int option; /* ROUNDED, DIAGONAL corners, etc. */ ^~~~~~ shapes.c:101:1: warning: missing initializer for field 'option' of 'polygon_t {aka struct polygon_t}' [-Wmissing-field-initializers] static polygon_t p_hexagon = { FALSE, 1, 6, 0., 0., 0. }; ^~~~~~ In file included from render.h:40:0, from shapes.c:14: types.h:148:6: note: 'option' declared here int option; /* ROUNDED, DIAGONAL corners, etc. */ ^~~~~~ shapes.c:102:1: warning: missing initializer for field 'option' of 'polygon_t {aka struct polygon_t}' [-Wmissing-field-initializers] static polygon_t p_septagon = { FALSE, 1, 7, 0., 0., 0. }; ^~~~~~ In file included from render.h:40:0, from shapes.c:14: types.h:148:6: note: 'option' declared here int option; /* ROUNDED, DIAGONAL corners, etc. */ ^~~~~~ shapes.c:103:1: warning: missing initializer for field 'option' of 'polygon_t {aka struct polygon_t}' [-Wmissing-field-initializers] static polygon_t p_octagon = { FALSE, 1, 8, 0., 0., 0. }; ^~~~~~ In file included from render.h:40:0, from shapes.c:14: types.h:148:6: note: 'option' declared here int option; /* ROUNDED, DIAGONAL corners, etc. */ ^~~~~~ shapes.c:104:1: warning: missing initializer for field 'vertices' of 'polygon_t {aka struct polygon_t}' [-Wmissing-field-initializers] static polygon_t p_note = { FALSE, 1, 4, 0., 0., 0., DOGEAR }; ^~~~~~ In file included from render.h:40:0, from shapes.c:14: types.h:149:10: note: 'vertices' declared here pointf *vertices; /* array of vertex points */ ^~~~~~~~ shapes.c:105:1: warning: missing initializer for field 'vertices' of 'polygon_t {aka struct polygon_t}' [-Wmissing-field-initializers] static polygon_t p_tab = { FALSE, 1, 4, 0., 0., 0., TAB }; ^~~~~~ In file included from render.h:40:0, from shapes.c:14: types.h:149:10: note: 'vertices' declared here pointf *vertices; /* array of vertex points */ ^~~~~~~~ shapes.c:106:1: warning: missing initializer for field 'vertices' of 'polygon_t {aka struct polygon_t}' [-Wmissing-field-initializers] static polygon_t p_folder = { FALSE, 1, 4, 0., 0., 0., FOLDER }; ^~~~~~ In file included from render.h:40:0, from shapes.c:14: types.h:149:10: note: 'vertices' declared here pointf *vertices; /* array of vertex points */ ^~~~~~~~ shapes.c:107:1: warning: missing initializer for field 'vertices' of 'polygon_t {aka struct polygon_t}' [-Wmissing-field-initializers] static polygon_t p_box3d = { FALSE, 1, 4, 0., 0., 0., BOX3D }; ^~~~~~ In file included from render.h:40:0, from shapes.c:14: types.h:149:10: note: 'vertices' declared here pointf *vertices; /* array of vertex points */ ^~~~~~~~ shapes.c:108:1: warning: missing initializer for field 'vertices' of 'polygon_t {aka struct polygon_t}' [-Wmissing-field-initializers] static polygon_t p_component = { FALSE, 1, 4, 0., 0., 0., COMPONENT }; ^~~~~~ In file included from render.h:40:0, from shapes.c:14: types.h:149:10: note: 'vertices' declared here pointf *vertices; /* array of vertex points */ ^~~~~~~~ shapes.c:109:1: warning: missing initializer for field 'vertices' of 'polygon_t {aka struct polygon_t}' [-Wmissing-field-initializers] static polygon_t p_underline = { FALSE, 1, 4, 0., 0., 0., UNDERLINE }; ^~~~~~ In file included from render.h:40:0, from shapes.c:14: types.h:149:10: note: 'vertices' declared here pointf *vertices; /* array of vertex points */ ^~~~~~~~ shapes.c:113:1: warning: missing initializer for field 'option' of 'polygon_t {aka struct polygon_t}' [-Wmissing-field-initializers] static polygon_t p_doublecircle = { TRUE, 2, 1, 0., 0., 0. }; ^~~~~~ In file included from render.h:40:0, from shapes.c:14: types.h:148:6: note: 'option' declared here int option; /* ROUNDED, DIAGONAL corners, etc. */ ^~~~~~ shapes.c:114:1: warning: missing initializer for field 'option' of 'polygon_t {aka struct polygon_t}' [-Wmissing-field-initializers] static polygon_t p_invtriangle = { FALSE, 1, 3, 180., 0., 0. }; ^~~~~~ In file included from render.h:40:0, from shapes.c:14: types.h:148:6: note: 'option' declared here int option; /* ROUNDED, DIAGONAL corners, etc. */ ^~~~~~ shapes.c:115:1: warning: missing initializer for field 'option' of 'polygon_t {aka struct polygon_t}' [-Wmissing-field-initializers] static polygon_t p_invtrapezium = { FALSE, 1, 4, 180., -.4, 0. }; ^~~~~~ In file included from render.h:40:0, from shapes.c:14: types.h:148:6: note: 'option' declared here int option; /* ROUNDED, DIAGONAL corners, etc. */ ^~~~~~ shapes.c:116:1: warning: missing initializer for field 'option' of 'polygon_t {aka struct polygon_t}' [-Wmissing-field-initializers] static polygon_t p_invhouse = { FALSE, 1, 5, 180., -.64, 0. }; ^~~~~~ In file included from render.h:40:0, from shapes.c:14: types.h:148:6: note: 'option' declared here int option; /* ROUNDED, DIAGONAL corners, etc. */ ^~~~~~ shapes.c:117:1: warning: missing initializer for field 'option' of 'polygon_t {aka struct polygon_t}' [-Wmissing-field-initializers] static polygon_t p_doubleoctagon = { FALSE, 2, 8, 0., 0., 0. }; ^~~~~~ In file included from render.h:40:0, from shapes.c:14: types.h:148:6: note: 'option' declared here int option; /* ROUNDED, DIAGONAL corners, etc. */ ^~~~~~ shapes.c:118:1: warning: missing initializer for field 'option' of 'polygon_t {aka struct polygon_t}' [-Wmissing-field-initializers] static polygon_t p_tripleoctagon = { FALSE, 3, 8, 0., 0., 0. }; ^~~~~~ In file included from render.h:40:0, from shapes.c:14: types.h:148:6: note: 'option' declared here int option; /* ROUNDED, DIAGONAL corners, etc. */ ^~~~~~ shapes.c:120:5: warning: missing initializer for field 'vertices' of 'polygon_t {aka struct polygon_t}' [-Wmissing-field-initializers] { FALSE, 1, 4, 45., 0., 0., DIAGONALS | AUXLABELS }; ^ In file included from render.h:40:0, from shapes.c:14: types.h:149:10: note: 'vertices' declared here pointf *vertices; /* array of vertex points */ ^~~~~~~~ shapes.c:121:1: warning: missing initializer for field 'vertices' of 'polygon_t {aka struct polygon_t}' [-Wmissing-field-initializers] static polygon_t p_Msquare = { TRUE, 1, 4, 0., 0., 0., DIAGONALS }; ^~~~~~ In file included from render.h:40:0, from shapes.c:14: types.h:149:10: note: 'vertices' declared here pointf *vertices; /* array of vertex points */ ^~~~~~~~ utils.c: In function 'setAttr': shapes.c:123:5: warning: missing initializer for field 'vertices' of 'polygon_t {aka struct polygon_t}' [-Wmissing-field-initializers] { TRUE, 1, 1, 0., 0., 0., DIAGONALS | AUXLABELS }; ^ In file included from render.h:40:0, from shapes.c:14: types.h:149:10: note: 'vertices' declared here pointf *vertices; /* array of vertex points */ ^~~~~~~~ utils.c:925:2: warning: switch missing default case [-Wswitch-default] switch (agobjkind(obj)) { ^~~~~~ shapes.c:130:1: warning: missing initializer for field 'vertices' of 'polygon_t {aka struct polygon_t}' [-Wmissing-field-initializers] static polygon_t p_promoter = { FALSE, 1, 4, 0., 0., 0., PROMOTER }; ^~~~~~ In file included from render.h:40:0, from shapes.c:14: types.h:149:10: note: 'vertices' declared here pointf *vertices; /* array of vertex points */ ^~~~~~~~ shapes.c:131:1: warning: missing initializer for field 'vertices' of 'polygon_t {aka struct polygon_t}' [-Wmissing-field-initializers] static polygon_t p_cds = { FALSE, 1, 4, 0., 0., 0., CDS }; ^~~~~~ In file included from render.h:40:0, from shapes.c:14: types.h:149:10: note: 'vertices' declared here pointf *vertices; /* array of vertex points */ ^~~~~~~~ shapes.c:132:1: warning: missing initializer for field 'vertices' of 'polygon_t {aka struct polygon_t}' [-Wmissing-field-initializers] static polygon_t p_terminator = { FALSE, 1, 4, 0., 0., 0., TERMINATOR}; ^~~~~~ In file included from render.h:40:0, from shapes.c:14: types.h:149:10: note: 'vertices' declared here pointf *vertices; /* array of vertex points */ ^~~~~~~~ shapes.c:133:1: warning: missing initializer for field 'vertices' of 'polygon_t {aka struct polygon_t}' [-Wmissing-field-initializers] static polygon_t p_utr = { FALSE, 1, 4, 0., 0., 0., UTR}; ^~~~~~ In file included from render.h:40:0, from shapes.c:14: types.h:149:10: note: 'vertices' declared here pointf *vertices; /* array of vertex points */ ^~~~~~~~ shapes.c:134:1: warning: missing initializer for field 'vertices' of 'polygon_t {aka struct polygon_t}' [-Wmissing-field-initializers] static polygon_t p_insulator = { FALSE, 1, 4, 0., 0., 0., INSULATOR}; ^~~~~~ In file included from render.h:40:0, from shapes.c:14: types.h:149:10: note: 'vertices' declared here pointf *vertices; /* array of vertex points */ ^~~~~~~~ shapes.c:135:1: warning: missing initializer for field 'vertices' of 'polygon_t {aka struct polygon_t}' [-Wmissing-field-initializers] static polygon_t p_ribosite = { FALSE, 1, 4, 0., 0., 0., RIBOSITE}; ^~~~~~ In file included from render.h:40:0, from shapes.c:14: types.h:149:10: note: 'vertices' declared here pointf *vertices; /* array of vertex points */ ^~~~~~~~ shapes.c:136:1: warning: missing initializer for field 'vertices' of 'polygon_t {aka struct polygon_t}' [-Wmissing-field-initializers] static polygon_t p_rnastab = { FALSE, 1, 4, 0., 0., 0., RNASTAB}; ^~~~~~ In file included from render.h:40:0, from shapes.c:14: types.h:149:10: note: 'vertices' declared here pointf *vertices; /* array of vertex points */ ^~~~~~~~ shapes.c:137:1: warning: missing initializer for field 'vertices' of 'polygon_t {aka struct polygon_t}' [-Wmissing-field-initializers] static polygon_t p_proteasesite = { FALSE, 1, 4, 0., 0., 0., PROTEASESITE}; ^~~~~~ In file included from render.h:40:0, from shapes.c:14: types.h:149:10: note: 'vertices' declared here pointf *vertices; /* array of vertex points */ ^~~~~~~~ utils.c: In function 'newItem': shapes.c:138:1: warning: missing initializer for field 'vertices' of 'polygon_t {aka struct polygon_t}' [-Wmissing-field-initializers] static polygon_t p_proteinstab = { FALSE, 1, 4, 0., 0., 0., PROTEINSTAB}; ^~~~~~ utils.c:1004:29: warning: unused parameter 'd' [-Wunused-parameter] static void *newItem(Dt_t * d, item * objp, Dtdisc_t * disc) ^ In file included from render.h:40:0, from shapes.c:14: types.h:149:10: note: 'vertices' declared here pointf *vertices; /* array of vertex points */ ^~~~~~~~ shapes.c:140:1: warning: missing initializer for field 'vertices' of 'polygon_t {aka struct polygon_t}' [-Wmissing-field-initializers] static polygon_t p_primersite = { FALSE, 1, 4, 0., 0., 0., PRIMERSITE}; ^~~~~~ In file included from render.h:40:0, from shapes.c:14: types.h:149:10: note: 'vertices' declared here pointf *vertices; /* array of vertex points */ ^~~~~~~~ utils.c: In function 'freeItem': shapes.c:141:1: warning: missing initializer for field 'vertices' of 'polygon_t {aka struct polygon_t}' [-Wmissing-field-initializers] static polygon_t p_restrictionsite = { FALSE, 1, 4, 0., 0., 0., RESTRICTIONSITE}; ^~~~~~ In file included from render.h:40:0, from shapes.c:14: types.h:149:10: note: 'vertices' declared here pointf *vertices; /* array of vertex points */ ^~~~~~~~ utils.c:1019:29: warning: unused parameter 'd' [-Wunused-parameter] static void freeItem(Dt_t * d, item * obj, Dtdisc_t * disc) ^ shapes.c:142:1: warning: missing initializer for field 'vertices' of 'polygon_t {aka struct polygon_t}' [-Wmissing-field-initializers] static polygon_t p_fivepoverhang = { FALSE, 1, 4, 0., 0., 0., FIVEPOVERHANG}; ^~~~~~ In file included from render.h:40:0, from shapes.c:14: types.h:149:10: note: 'vertices' declared here pointf *vertices; /* array of vertex points */ ^~~~~~~~ utils.c:1019:55: warning: unused parameter 'disc' [-Wunused-parameter] static void freeItem(Dt_t * d, item * obj, Dtdisc_t * disc) ^~~~ shapes.c:143:1: warning: missing initializer for field 'vertices' of 'polygon_t {aka struct polygon_t}' [-Wmissing-field-initializers] static polygon_t p_threepoverhang = { FALSE, 1, 4, 0., 0., 0., THREEPOVERHANG}; ^~~~~~ In file included from render.h:40:0, from shapes.c:14: types.h:149:10: note: 'vertices' declared here pointf *vertices; /* array of vertex points */ ^~~~~~~~ shapes.c:144:1: warning: missing initializer for field 'vertices' of 'polygon_t {aka struct polygon_t}' [-Wmissing-field-initializers] static polygon_t p_noverhang = { FALSE, 1, 4, 0., 0., 0., NOVERHANG}; ^~~~~~ In file included from render.h:40:0, from shapes.c:14: types.h:149:10: note: 'vertices' declared here pointf *vertices; /* array of vertex points */ ^~~~~~~~ shapes.c:145:1: warning: missing initializer for field 'vertices' of 'polygon_t {aka struct polygon_t}' [-Wmissing-field-initializers] static polygon_t p_assembly = { FALSE, 1, 4, 0., 0., 0., ASSEMBLY}; ^~~~~~ In file included from render.h:40:0, from shapes.c:14: types.h:149:10: note: 'vertices' declared here pointf *vertices; /* array of vertex points */ ^~~~~~~~ shapes.c:146:1: warning: missing initializer for field 'vertices' of 'polygon_t {aka struct polygon_t}' [-Wmissing-field-initializers] static polygon_t p_signature = { FALSE, 1, 4, 0., 0., 0., SIGNATURE}; ^~~~~~ In file included from render.h:40:0, from shapes.c:14: types.h:149:10: note: 'vertices' declared here pointf *vertices; /* array of vertex points */ ^~~~~~~~ shapes.c:147:1: warning: missing initializer for field 'vertices' of 'polygon_t {aka struct polygon_t}' [-Wmissing-field-initializers] static polygon_t p_rpromoter = { FALSE, 1, 4, 0., 0., 0., RPROMOTER}; ^~~~~~ In file included from render.h:40:0, from shapes.c:14: types.h:149:10: note: 'vertices' declared here pointf *vertices; /* array of vertex points */ ^~~~~~~~ shapes.c:148:1: warning: missing initializer for field 'vertices' of 'polygon_t {aka struct polygon_t}' [-Wmissing-field-initializers] static polygon_t p_rarrow = { FALSE, 1, 4, 0., 0., 0., RARROW}; ^~~~~~ In file included from render.h:40:0, from shapes.c:14: types.h:149:10: note: 'vertices' declared here pointf *vertices; /* array of vertex points */ ^~~~~~~~ shapes.c:149:1: warning: missing initializer for field 'vertices' of 'polygon_t {aka struct polygon_t}' [-Wmissing-field-initializers] static polygon_t p_larrow = { FALSE, 1, 4, 0., 0., 0., LARROW}; ^~~~~~ In file included from render.h:40:0, from shapes.c:14: types.h:149:10: note: 'vertices' declared here pointf *vertices; /* array of vertex points */ ^~~~~~~~ shapes.c:150:1: warning: missing initializer for field 'vertices' of 'polygon_t {aka struct polygon_t}' [-Wmissing-field-initializers] static polygon_t p_lpromoter = { FALSE, 1, 4, 0., 0., 0., LPROMOTER}; ^~~~~~ In file included from render.h:40:0, from shapes.c:14: types.h:149:10: note: 'vertices' declared here pointf *vertices; /* array of vertex points */ ^~~~~~~~ shapes.c:234:5: warning: missing initializer for field 'usershape' of 'shape_desc {aka struct shape_desc}' [-Wmissing-field-initializers] {"box", &poly_fns, &p_box}, ^ In file included from render.h:40:0, from shapes.c:14: types.h:187:10: note: 'usershape' declared here boolean usershape; ^~~~~~~~~ shapes.c:235:5: warning: missing initializer for field 'usershape' of 'shape_desc {aka struct shape_desc}' [-Wmissing-field-initializers] {"polygon", &poly_fns, &p_polygon}, ^ In file included from render.h:40:0, from shapes.c:14: types.h:187:10: note: 'usershape' declared here boolean usershape; ^~~~~~~~~ shapes.c:236:5: warning: missing initializer for field 'usershape' of 'shape_desc {aka struct shape_desc}' [-Wmissing-field-initializers] {"ellipse", &poly_fns, &p_ellipse}, ^ In file included from render.h:40:0, from shapes.c:14: types.h:187:10: note: 'usershape' declared here boolean usershape; ^~~~~~~~~ shapes.c:237:5: warning: missing initializer for field 'usershape' of 'shape_desc {aka struct shape_desc}' [-Wmissing-field-initializers] {"oval", &poly_fns, &p_ellipse}, ^ In file included from render.h:40:0, from shapes.c:14: types.h:187:10: note: 'usershape' declared here boolean usershape; ^~~~~~~~~ shapes.c:238:5: warning: missing initializer for field 'usershape' of 'shape_desc {aka struct shape_desc}' [-Wmissing-field-initializers] {"circle", &poly_fns, &p_circle}, ^ In file included from render.h:40:0, from shapes.c:14: types.h:187:10: note: 'usershape' declared here boolean usershape; ^~~~~~~~~ shapes.c:239:5: warning: missing initializer for field 'usershape' of 'shape_desc {aka struct shape_desc}' [-Wmissing-field-initializers] {"point", &point_fns, &p_circle}, ^ In file included from render.h:40:0, from shapes.c:14: types.h:187:10: note: 'usershape' declared here boolean usershape; ^~~~~~~~~ shapes.c:240:5: warning: missing initializer for field 'usershape' of 'shape_desc {aka struct shape_desc}' [-Wmissing-field-initializers] {"egg", &poly_fns, &p_egg}, ^ In file included from render.h:40:0, from shapes.c:14: types.h:187:10: note: 'usershape' declared here boolean usershape; ^~~~~~~~~ shapes.c:241:5: warning: missing initializer for field 'usershape' of 'shape_desc {aka struct shape_desc}' [-Wmissing-field-initializers] {"triangle", &poly_fns, &p_triangle}, ^ In file included from render.h:40:0, from shapes.c:14: types.h:187:10: note: 'usershape' declared here boolean usershape; ^~~~~~~~~ shapes.c:242:5: warning: missing initializer for field 'usershape' of 'shape_desc {aka struct shape_desc}' [-Wmissing-field-initializers] {"none", &poly_fns, &p_plaintext}, ^ In file included from render.h:40:0, from shapes.c:14: types.h:187:10: note: 'usershape' declared here boolean usershape; ^~~~~~~~~ shapes.c:243:5: warning: missing initializer for field 'usershape' of 'shape_desc {aka struct shape_desc}' [-Wmissing-field-initializers] {"plaintext", &poly_fns, &p_plaintext}, ^ In file included from render.h:40:0, from shapes.c:14: types.h:187:10: note: 'usershape' declared here boolean usershape; ^~~~~~~~~ shapes.c:244:5: warning: missing initializer for field 'usershape' of 'shape_desc {aka struct shape_desc}' [-Wmissing-field-initializers] {"plain", &poly_fns, &p_plain}, ^ In file included from render.h:40:0, from shapes.c:14: types.h:187:10: note: 'usershape' declared here boolean usershape; ^~~~~~~~~ shapes.c:245:5: warning: missing initializer for field 'usershape' of 'shape_desc {aka struct shape_desc}' [-Wmissing-field-initializers] {"diamond", &poly_fns, &p_diamond}, ^ In file included from render.h:40:0, from shapes.c:14: types.h:187:10: note: 'usershape' declared here boolean usershape; ^~~~~~~~~ shapes.c:246:5: warning: missing initializer for field 'usershape' of 'shape_desc {aka struct shape_desc}' [-Wmissing-field-initializers] {"trapezium", &poly_fns, &p_trapezium}, ^ In file included from render.h:40:0, from shapes.c:14: types.h:187:10: note: 'usershape' declared here boolean usershape; ^~~~~~~~~ shapes.c:247:5: warning: missing initializer for field 'usershape' of 'shape_desc {aka struct shape_desc}' [-Wmissing-field-initializers] {"parallelogram", &poly_fns, &p_parallelogram}, ^ In file included from render.h:40:0, from shapes.c:14: types.h:187:10: note: 'usershape' declared here boolean usershape; ^~~~~~~~~ shapes.c:248:5: warning: missing initializer for field 'usershape' of 'shape_desc {aka struct shape_desc}' [-Wmissing-field-initializers] {"house", &poly_fns, &p_house}, ^ In file included from render.h:40:0, from shapes.c:14: types.h:187:10: note: 'usershape' declared here boolean usershape; ^~~~~~~~~ shapes.c:249:5: warning: missing initializer for field 'usershape' of 'shape_desc {aka struct shape_desc}' [-Wmissing-field-initializers] {"pentagon", &poly_fns, &p_pentagon}, ^ In file included from render.h:40:0, from shapes.c:14: types.h:187:10: note: 'usershape' declared here boolean usershape; ^~~~~~~~~ shapes.c:250:5: warning: missing initializer for field 'usershape' of 'shape_desc {aka struct shape_desc}' [-Wmissing-field-initializers] {"hexagon", &poly_fns, &p_hexagon}, ^ In file included from render.h:40:0, from shapes.c:14: types.h:187:10: note: 'usershape' declared here boolean usershape; ^~~~~~~~~ shapes.c:251:5: warning: missing initializer for field 'usershape' of 'shape_desc {aka struct shape_desc}' [-Wmissing-field-initializers] {"septagon", &poly_fns, &p_septagon}, ^ In file included from render.h:40:0, from shapes.c:14: types.h:187:10: note: 'usershape' declared here boolean usershape; ^~~~~~~~~ shapes.c:252:5: warning: missing initializer for field 'usershape' of 'shape_desc {aka struct shape_desc}' [-Wmissing-field-initializers] {"octagon", &poly_fns, &p_octagon}, ^ In file included from render.h:40:0, from shapes.c:14: types.h:187:10: note: 'usershape' declared here boolean usershape; ^~~~~~~~~ shapes.c:253:5: warning: missing initializer for field 'usershape' of 'shape_desc {aka struct shape_desc}' [-Wmissing-field-initializers] {"note", &poly_fns, &p_note}, ^ In file included from render.h:40:0, from shapes.c:14: types.h:187:10: note: 'usershape' declared here boolean usershape; ^~~~~~~~~ shapes.c:254:5: warning: missing initializer for field 'usershape' of 'shape_desc {aka struct shape_desc}' [-Wmissing-field-initializers] {"tab", &poly_fns, &p_tab}, ^ In file included from render.h:40:0, from shapes.c:14: types.h:187:10: note: 'usershape' declared here boolean usershape; ^~~~~~~~~ shapes.c:255:5: warning: missing initializer for field 'usershape' of 'shape_desc {aka struct shape_desc}' [-Wmissing-field-initializers] {"folder", &poly_fns, &p_folder}, ^ In file included from render.h:40:0, from shapes.c:14: types.h:187:10: note: 'usershape' declared here boolean usershape; ^~~~~~~~~ shapes.c:256:5: warning: missing initializer for field 'usershape' of 'shape_desc {aka struct shape_desc}' [-Wmissing-field-initializers] {"box3d", &poly_fns, &p_box3d}, ^ In file included from render.h:40:0, from shapes.c:14: types.h:187:10: note: 'usershape' declared here boolean usershape; ^~~~~~~~~ shapes.c:257:5: warning: missing initializer for field 'usershape' of 'shape_desc {aka struct shape_desc}' [-Wmissing-field-initializers] {"component", &poly_fns, &p_component}, ^ In file included from render.h:40:0, from shapes.c:14: types.h:187:10: note: 'usershape' declared here boolean usershape; ^~~~~~~~~ shapes.c:258:5: warning: missing initializer for field 'usershape' of 'shape_desc {aka struct shape_desc}' [-Wmissing-field-initializers] {"cylinder", &cylinder_fns, &p_cylinder}, ^ In file included from render.h:40:0, from shapes.c:14: types.h:187:10: note: 'usershape' declared here boolean usershape; ^~~~~~~~~ shapes.c:259:5: warning: missing initializer for field 'usershape' of 'shape_desc {aka struct shape_desc}' [-Wmissing-field-initializers] {"rect", &poly_fns, &p_box}, ^ In file included from render.h:40:0, from shapes.c:14: types.h:187:10: note: 'usershape' declared here boolean usershape; ^~~~~~~~~ shapes.c:260:5: warning: missing initializer for field 'usershape' of 'shape_desc {aka struct shape_desc}' [-Wmissing-field-initializers] {"rectangle", &poly_fns, &p_box}, ^ In file included from render.h:40:0, from shapes.c:14: types.h:187:10: note: 'usershape' declared here boolean usershape; ^~~~~~~~~ shapes.c:261:5: warning: missing initializer for field 'usershape' of 'shape_desc {aka struct shape_desc}' [-Wmissing-field-initializers] {"square", &poly_fns, &p_square}, ^ In file included from render.h:40:0, from shapes.c:14: types.h:187:10: note: 'usershape' declared here boolean usershape; ^~~~~~~~~ shapes.c:262:5: warning: missing initializer for field 'usershape' of 'shape_desc {aka struct shape_desc}' [-Wmissing-field-initializers] {"doublecircle", &poly_fns, &p_doublecircle}, ^ In file included from render.h:40:0, from shapes.c:14: types.h:187:10: note: 'usershape' declared here boolean usershape; ^~~~~~~~~ shapes.c:263:5: warning: missing initializer for field 'usershape' of 'shape_desc {aka struct shape_desc}' [-Wmissing-field-initializers] {"doubleoctagon", &poly_fns, &p_doubleoctagon}, ^ In file included from render.h:40:0, from shapes.c:14: types.h:187:10: note: 'usershape' declared here boolean usershape; ^~~~~~~~~ shapes.c:264:5: warning: missing initializer for field 'usershape' of 'shape_desc {aka struct shape_desc}' [-Wmissing-field-initializers] {"tripleoctagon", &poly_fns, &p_tripleoctagon}, ^ In file included from render.h:40:0, from shapes.c:14: types.h:187:10: note: 'usershape' declared here boolean usershape; ^~~~~~~~~ shapes.c:265:5: warning: missing initializer for field 'usershape' of 'shape_desc {aka struct shape_desc}' [-Wmissing-field-initializers] {"invtriangle", &poly_fns, &p_invtriangle}, ^ In file included from render.h:40:0, from shapes.c:14: types.h:187:10: note: 'usershape' declared here boolean usershape; ^~~~~~~~~ shapes.c:266:5: warning: missing initializer for field 'usershape' of 'shape_desc {aka struct shape_desc}' [-Wmissing-field-initializers] {"invtrapezium", &poly_fns, &p_invtrapezium}, ^ In file included from render.h:40:0, from shapes.c:14: types.h:187:10: note: 'usershape' declared here boolean usershape; ^~~~~~~~~ shapes.c:267:5: warning: missing initializer for field 'usershape' of 'shape_desc {aka struct shape_desc}' [-Wmissing-field-initializers] {"invhouse", &poly_fns, &p_invhouse}, ^ In file included from render.h:40:0, from shapes.c:14: types.h:187:10: note: 'usershape' declared here boolean usershape; ^~~~~~~~~ shapes.c:268:5: warning: missing initializer for field 'usershape' of 'shape_desc {aka struct shape_desc}' [-Wmissing-field-initializers] {"underline", &poly_fns, &p_underline}, ^ In file included from render.h:40:0, from shapes.c:14: types.h:187:10: note: 'usershape' declared here boolean usershape; ^~~~~~~~~ shapes.c:269:5: warning: missing initializer for field 'usershape' of 'shape_desc {aka struct shape_desc}' [-Wmissing-field-initializers] {"Mdiamond", &poly_fns, &p_Mdiamond}, ^ In file included from render.h:40:0, from shapes.c:14: types.h:187:10: note: 'usershape' declared here boolean usershape; ^~~~~~~~~ utils.c: In function 'comp_entities': shapes.c:270:5: warning: missing initializer for field 'usershape' of 'shape_desc {aka struct shape_desc}' [-Wmissing-field-initializers] {"Msquare", &poly_fns, &p_Msquare}, ^ In file included from render.h:40:0, from shapes.c:14: types.h:187:10: note: 'usershape' declared here boolean usershape; ^~~~~~~~~ utils.c:1310:18: warning: cast discards 'const' qualifier from pointer target type [-Wcast-qual] return strcmp(((struct entities_s *)e1)->name, ((struct entities_s *)e2)->name); ^ shapes.c:271:5: warning: missing initializer for field 'usershape' of 'shape_desc {aka struct shape_desc}' [-Wmissing-field-initializers] {"Mcircle", &poly_fns, &p_Mcircle}, ^ In file included from render.h:40:0, from shapes.c:14: types.h:187:10: note: 'usershape' declared here boolean usershape; ^~~~~~~~~ shapes.c:274:5: warning: missing initializer for field 'usershape' of 'shape_desc {aka struct shape_desc}' [-Wmissing-field-initializers] {"promoter", &poly_fns, &p_promoter}, ^ utils.c:1310:51: warning: cast discards 'const' qualifier from pointer target type [-Wcast-qual] return strcmp(((struct entities_s *)e1)->name, ((struct entities_s *)e2)->name); ^ In file included from render.h:40:0, from shapes.c:14: types.h:187:10: note: 'usershape' declared here boolean usershape; ^~~~~~~~~ shapes.c:275:5: warning: missing initializer for field 'usershape' of 'shape_desc {aka struct shape_desc}' [-Wmissing-field-initializers] {"cds", &poly_fns, &p_cds}, ^ In file included from render.h:40:0, from shapes.c:14: types.h:187:10: note: 'usershape' declared here boolean usershape; ^~~~~~~~~ shapes.c:276:5: warning: missing initializer for field 'usershape' of 'shape_desc {aka struct shape_desc}' [-Wmissing-field-initializers] {"terminator", &poly_fns, &p_terminator}, ^ In file included from render.h:40:0, from shapes.c:14: types.h:187:10: note: 'usershape' declared here boolean usershape; ^~~~~~~~~ shapes.c:277:5: warning: missing initializer for field 'usershape' of 'shape_desc {aka struct shape_desc}' [-Wmissing-field-initializers] {"utr", &poly_fns, &p_utr}, ^ In file included from render.h:40:0, from shapes.c:14: types.h:187:10: note: 'usershape' declared here boolean usershape; ^~~~~~~~~ shapes.c:278:5: warning: missing initializer for field 'usershape' of 'shape_desc {aka struct shape_desc}' [-Wmissing-field-initializers] {"insulator", &poly_fns, &p_insulator}, ^ In file included from render.h:40:0, from shapes.c:14: types.h:187:10: note: 'usershape' declared here boolean usershape; ^~~~~~~~~ shapes.c:279:5: warning: missing initializer for field 'usershape' of 'shape_desc {aka struct shape_desc}' [-Wmissing-field-initializers] {"ribosite", &poly_fns, &p_ribosite}, ^ In file included from render.h:40:0, from shapes.c:14: types.h:187:10: note: 'usershape' declared here boolean usershape; ^~~~~~~~~ utils.c: In function 'scanEntity': shapes.c:280:5: warning: missing initializer for field 'usershape' of 'shape_desc {aka struct shape_desc}' [-Wmissing-field-initializers] {"rnastab", &poly_fns, &p_rnastab}, ^ In file included from render.h:40:0, from shapes.c:14: types.h:187:10: note: 'usershape' declared here boolean usershape; ^~~~~~~~~ utils.c:1330:22: warning: conversion to 'size_t {aka unsigned int}' from 'int' may change the sign of the result [-Wsign-conversion] strncpy (buf, t, len); ^~~ shapes.c:281:5: warning: missing initializer for field 'usershape' of 'shape_desc {aka struct shape_desc}' [-Wmissing-field-initializers] {"proteasesite", &poly_fns, &p_proteasesite}, ^ In file included from render.h:40:0, from shapes.c:14: types.h:187:10: note: 'usershape' declared here boolean usershape; ^~~~~~~~~ shapes.c:282:5: warning: missing initializer for field 'usershape' of 'shape_desc {aka struct shape_desc}' [-Wmissing-field-initializers] {"proteinstab", &poly_fns, &p_proteinstab}, ^ In file included from render.h:40:0, from shapes.c:14: types.h:187:10: note: 'usershape' declared here boolean usershape; ^~~~~~~~~ shapes.c:284:5: warning: missing initializer for field 'usershape' of 'shape_desc {aka struct shape_desc}' [-Wmissing-field-initializers] {"primersite", &poly_fns, &p_primersite}, ^ In file included from render.h:40:0, from shapes.c:14: types.h:187:10: note: 'usershape' declared here boolean usershape; ^~~~~~~~~ shapes.c:285:5: warning: missing initializer for field 'usershape' of 'shape_desc {aka struct shape_desc}' [-Wmissing-field-initializers] {"restrictionsite", &poly_fns, &p_restrictionsite}, ^ In file included from render.h:40:0, from shapes.c:14: types.h:187:10: note: 'usershape' declared here boolean usershape; ^~~~~~~~~ shapes.c:286:5: warning: missing initializer for field 'usershape' of 'shape_desc {aka struct shape_desc}' [-Wmissing-field-initializers] {"fivepoverhang", &poly_fns, &p_fivepoverhang}, ^ In file included from render.h:40:0, from shapes.c:14: types.h:187:10: note: 'usershape' declared here boolean usershape; ^~~~~~~~~ shapes.c:287:5: warning: missing initializer for field 'usershape' of 'shape_desc {aka struct shape_desc}' [-Wmissing-field-initializers] {"threepoverhang", &poly_fns, &p_threepoverhang}, ^ In file included from render.h:40:0, from shapes.c:14: types.h:187:10: note: 'usershape' declared here boolean usershape; ^~~~~~~~~ shapes.c:288:5: warning: missing initializer for field 'usershape' of 'shape_desc {aka struct shape_desc}' [-Wmissing-field-initializers] {"noverhang", &poly_fns, &p_noverhang}, ^ In file included from render.h:40:0, from shapes.c:14: types.h:187:10: note: 'usershape' declared here boolean usershape; ^~~~~~~~~ shapes.c:289:5: warning: missing initializer for field 'usershape' of 'shape_desc {aka struct shape_desc}' [-Wmissing-field-initializers] {"assembly", &poly_fns, &p_assembly}, ^ In file included from render.h:40:0, from shapes.c:14: types.h:187:10: note: 'usershape' declared here boolean usershape; ^~~~~~~~~ shapes.c:290:5: warning: missing initializer for field 'usershape' of 'shape_desc {aka struct shape_desc}' [-Wmissing-field-initializers] {"signature", &poly_fns, &p_signature}, ^ In file included from render.h:40:0, from shapes.c:14: types.h:187:10: note: 'usershape' declared here boolean usershape; ^~~~~~~~~ shapes.c:291:5: warning: missing initializer for field 'usershape' of 'shape_desc {aka struct shape_desc}' [-Wmissing-field-initializers] {"rpromoter", &poly_fns, &p_rpromoter}, ^ In file included from render.h:40:0, from shapes.c:14: types.h:187:10: note: 'usershape' declared here boolean usershape; ^~~~~~~~~ shapes.c:292:5: warning: missing initializer for field 'usershape' of 'shape_desc {aka struct shape_desc}' [-Wmissing-field-initializers] {"larrow", &poly_fns, &p_larrow}, ^ In file included from render.h:40:0, from shapes.c:14: types.h:187:10: note: 'usershape' declared here boolean usershape; ^~~~~~~~~ utils.c: In function 'htmlEntity': shapes.c:293:5: warning: missing initializer for field 'usershape' of 'shape_desc {aka struct shape_desc}' [-Wmissing-field-initializers] {"rarrow", &poly_fns, &p_rarrow}, ^ In file included from render.h:40:0, from shapes.c:14: types.h:187:10: note: 'usershape' declared here boolean usershape; ^~~~~~~~~ utils.c:1375:16: warning: conversion to 'unsigned int' from 'int' may change the sign of the result [-Wsign-conversion] n = (n * 16) + byte; ^ shapes.c:294:5: warning: missing initializer for field 'usershape' of 'shape_desc {aka struct shape_desc}' [-Wmissing-field-initializers] {"lpromoter", &poly_fns, &p_lpromoter}, ^ In file included from render.h:40:0, from shapes.c:14: types.h:187:10: note: 'usershape' declared here boolean usershape; ^~~~~~~~~ shapes.c:296:5: warning: missing initializer for field 'usershape' of 'shape_desc {aka struct shape_desc}' [-Wmissing-field-initializers] {"record", &record_fns, NULL}, ^ In file included from render.h:40:0, from shapes.c:14: types.h:187:10: note: 'usershape' declared here boolean usershape; ^~~~~~~~~ utils.c:1375:7: warning: conversion to 'int' from 'unsigned int' may change the sign of the result [-Wsign-conversion] n = (n * 16) + byte; ^ shapes.c:297:5: warning: missing initializer for field 'usershape' of 'shape_desc {aka struct shape_desc}' [-Wmissing-field-initializers] {"Mrecord", &record_fns, NULL}, ^ In file included from render.h:40:0, from shapes.c:14: types.h:187:10: note: 'usershape' declared here boolean usershape; ^~~~~~~~~ shapes.c:298:5: warning: missing initializer for field 'usershape' of 'shape_desc {aka struct shape_desc}' [-Wmissing-field-initializers] {"epsf", &epsf_fns, NULL}, ^ In file included from render.h:40:0, from shapes.c:14: types.h:187:10: note: 'usershape' declared here boolean usershape; ^~~~~~~~~ shapes.c:299:5: warning: missing initializer for field 'usershape' of 'shape_desc {aka struct shape_desc}' [-Wmissing-field-initializers] {"star", &star_fns, &p_star}, ^ In file included from render.h:40:0, from shapes.c:14: types.h:187:10: note: 'usershape' declared here boolean usershape; ^~~~~~~~~ utils.c:1382:20: warning: conversion to 'unsigned int' from 'int' may change the sign of the result [-Wsign-conversion] n = (n * 10) + (byte - '0'); ^ shapes.c:300:5: warning: missing initializer for field 'usershape' of 'shape_desc {aka struct shape_desc}' [-Wmissing-field-initializers] {NULL, NULL, NULL} ^ In file included from render.h:40:0, from shapes.c:14: types.h:187:10: note: 'usershape' declared here boolean usershape; ^~~~~~~~~ utils.c:1382:11: warning: conversion to 'int' from 'unsigned int' may change the sign of the result [-Wsign-conversion] n = (n * 10) + (byte - '0'); ^ shapes.c: In function 'quant': shapes.c:311:9: warning: conversion to 'int' from 'double' may alter its value [-Wfloat-conversion] i = val / q; ^~~ utils.c:1409:13: warning: conversion to 'char' from 'unsigned int' may alter its value [-Wconversion] *p++ = byte; ^~~~ utils.c: In function 'cvtAndAppend': utils.c:1424:14: warning: conversion to 'char' from 'unsigned char' may change the sign of the result [-Wsign-conversion] buf[0] = c; ^ shapes.c: In function 'isBox': shapes.c:386:78: warning: comparing floating point with == or != is unsafe [-Wfloat-equal] return (p->sides == 4 && (ROUND(p->orientation) % 90) == 0 && p->distortion == 0. && p->skew == 0.); ^~ utils.c:1428:11: warning: conversion to 'int' from 'size_t {aka unsigned int}' may change the sign of the result [-Wsign-conversion] len = strlen(s); ^~~~~~ shapes.c:386:95: warning: comparing floating point with == or != is unsafe [-Wfloat-equal] return (p->sides == 4 && (ROUND(p->orientation) % 90) == 0 && p->distortion == 0. && p->skew == 0.); ^~ utils.c:1431:9: warning: conversion to 'unsigned char' from 'char' may change the sign of the result [-Wsign-conversion] c = *p; ^ utils.c: In function 'htmlEntityUTF8': utils.c:1488:14: warning: conversion to 'unsigned int' from 'int' may change the sign of the result [-Wsign-conversion] v = htmlEntity (&s); ^~~~~~~~~~ In file included from render.h:44:0, from shapes.c:14: shapes.c: In function 'round_corners': utils.c:1491:8: warning: conversion to 'unsigned char' from 'unsigned int' may alter its value [-Wconversion] c = v; ^ memory.h:36:41: warning: conversion to 'unsigned int' from 'int' may change the sign of the result [-Wsign-conversion] #define N_NEW(n,t) (t*)zmalloc((n)*sizeof(t)) ^ shapes.c:534:9: note: in expansion of macro 'N_NEW' B = N_NEW(4 * sides + 4, pointf); ^~~~~ utils.c:1494:8: warning: conversion to 'unsigned char' from 'unsigned int' may alter its value [-Wconversion] c = (v & 0x3F) | 0x80; ^ In file included from render.h:47:0, from utils.c:14: /jenkins/jobs/oi-userland/workspace/components/image/graphviz/graphviz-2.40.1/lib/cgraph/agxbuf.h:67:92: warning: conversion to 'unsigned char' from 'int' may alter its value [-Wconversion] #define agxbputc(X,C) ((((X)->ptr >= (X)->eptr) ? agxbmore(X,1) : 0), (void)(*(X)->ptr++ = ((unsigned char)C))) ^ utils.c:1498:4: note: in expansion of macro 'agxbputc' agxbputc(&xb, ((v >> 6) & 0x3F) | 0x80); ^~~~~~~~ memory.h:39:41: warning: conversion to 'unsigned int' from 'int' may change the sign of the result [-Wsign-conversion] #define N_GNEW(n,t) (t*)gmalloc((n)*sizeof(t)) ^ shapes.c:581:8: note: in expansion of macro 'N_GNEW' pts = N_GNEW(6 * sides + 2, pointf); ^~~~~~ utils.c:1499:8: warning: conversion to 'unsigned char' from 'unsigned int' may alter its value [-Wconversion] c = (v & 0x3F) | 0x80; ^ shapes.c:593:54: warning: conversion to 'boolean {aka unsigned char}' from 'int' may alter its value [-Wconversion] gvrender_beziercurve(job, pts+1, i-1, FALSE, FALSE, filled); ^~~~~~ In file included from render.h:44:0, from shapes.c:14: memory.h:36:41: warning: conversion to 'unsigned int' from 'int' may change the sign of the result [-Wsign-conversion] #define N_NEW(n,t) (t*)zmalloc((n)*sizeof(t)) ^ shapes.c:632:6: note: in expansion of macro 'N_NEW' D = N_NEW(sides + 1, pointf); ^~~~~ utils.c: In function 'latin1ToUTF8': memory.h:36:41: warning: conversion to 'unsigned int' from 'int' may change the sign of the result [-Wsign-conversion] #define N_NEW(n,t) (t*)zmalloc((n)*sizeof(t)) ^ shapes.c:665:6: note: in expansion of macro 'N_NEW' D = N_NEW(sides + 2, pointf); ^~~~~ utils.c:1543:10: warning: conversion to 'unsigned int' from 'int' may change the sign of the result [-Wsign-conversion] v = htmlEntity (&s); ^~~~~~~~~~ memory.h:36:41: warning: conversion to 'unsigned int' from 'int' may change the sign of the result [-Wsign-conversion] #define N_NEW(n,t) (t*)zmalloc((n)*sizeof(t)) ^ shapes.c:698:6: note: in expansion of macro 'N_NEW' D = N_NEW(sides + 3, pointf); ^~~~~ In file included from render.h:47:0, from utils.c:14: /jenkins/jobs/oi-userland/workspace/components/image/graphviz/graphviz-2.40.1/lib/cgraph/agxbuf.h:67:92: warning: conversion to 'unsigned char' from 'int' may alter its value [-Wconversion] #define agxbputc(X,C) ((((X)->ptr >= (X)->eptr) ? agxbmore(X,1) : 0), (void)(*(X)->ptr++ = ((unsigned char)C))) ^ utils.c:1550:6: note: in expansion of macro 'agxbputc' agxbputc(&xb, (v & 0x3F) | 0x80); ^~~~~~~~ memory.h:36:41: warning: conversion to 'unsigned int' from 'int' may change the sign of the result [-Wsign-conversion] #define N_NEW(n,t) (t*)zmalloc((n)*sizeof(t)) ^ shapes.c:716:6: note: in expansion of macro 'N_NEW' D = N_NEW(sides + 2, pointf); ^~~~~ /jenkins/jobs/oi-userland/workspace/components/image/graphviz/graphviz-2.40.1/lib/cgraph/agxbuf.h:67:92: warning: conversion to 'unsigned char' from 'int' may alter its value [-Wconversion] #define agxbputc(X,C) ((((X)->ptr >= (X)->eptr) ? agxbmore(X,1) : 0), (void)(*(X)->ptr++ = ((unsigned char)C))) ^ utils.c:1554:6: note: in expansion of macro 'agxbputc' agxbputc(&xb, ((v >> 6) & 0x3F) | 0x80); ^~~~~~~~ memory.h:36:41: warning: conversion to 'unsigned int' from 'int' may change the sign of the result [-Wsign-conversion] #define N_NEW(n,t) (t*)zmalloc((n)*sizeof(t)) ^ shapes.c:754:6: note: in expansion of macro 'N_NEW' D = N_NEW(sides + 8, pointf); ^~~~~ /jenkins/jobs/oi-userland/workspace/components/image/graphviz/graphviz-2.40.1/lib/cgraph/agxbuf.h:67:92: warning: conversion to 'unsigned char' from 'int' may alter its value [-Wconversion] #define agxbputc(X,C) ((((X)->ptr >= (X)->eptr) ? agxbmore(X,1) : 0), (void)(*(X)->ptr++ = ((unsigned char)C))) ^ utils.c:1555:6: note: in expansion of macro 'agxbputc' agxbputc(&xb, (v & 0x3F) | 0x80); ^~~~~~~~ utils.c: In function 'utf8ToLatin1': utils.c:1583:13: warning: conversion to 'unsigned char' from 'int' may alter its value [-Wconversion] outc = (c & 0x03) << 6; ^ memory.h:36:41: warning: conversion to 'unsigned int' from 'int' may change the sign of the result [-Wsign-conversion] #define N_NEW(n,t) (t*)zmalloc((n)*sizeof(t)) ^ shapes.c:819:6: note: in expansion of macro 'N_NEW' D = N_NEW(sides + 5, pointf); ^~~~~ utils.c:1585:13: warning: conversion to 'unsigned char' from 'int' may alter its value [-Wconversion] outc = outc | (c & 0x3F); ^~~~ memory.h:36:41: warning: conversion to 'unsigned int' from 'int' may change the sign of the result [-Wsign-conversion] #define N_NEW(n,t) (t*)zmalloc((n)*sizeof(t)) ^ shapes.c:865:6: note: in expansion of macro 'N_NEW' D = N_NEW(sides + 1, pointf); ^~~~~ memory.h:36:41: warning: conversion to 'unsigned int' from 'int' may change the sign of the result [-Wsign-conversion] #define N_NEW(n,t) (t*)zmalloc((n)*sizeof(t)) ^ shapes.c:900:6: note: in expansion of macro 'N_NEW' D = N_NEW(sides + 4, pointf); ^~~~~ memory.h:36:41: warning: conversion to 'unsigned int' from 'int' may change the sign of the result [-Wsign-conversion] #define N_NEW(n,t) (t*)zmalloc((n)*sizeof(t)) ^ shapes.c:947:6: note: in expansion of macro 'N_NEW' D = N_NEW(sides + 2, pointf); ^~~~~ memory.h:36:41: warning: conversion to 'unsigned int' from 'int' may change the sign of the result [-Wsign-conversion] #define N_NEW(n,t) (t*)zmalloc((n)*sizeof(t)) ^ shapes.c:989:6: note: in expansion of macro 'N_NEW' D = N_NEW(sides + 1, pointf); ^~~~~ memory.h:36:41: warning: conversion to 'unsigned int' from 'int' may change the sign of the result [-Wsign-conversion] #define N_NEW(n,t) (t*)zmalloc((n)*sizeof(t)) ^ shapes.c:1029:6: note: in expansion of macro 'N_NEW' D = N_NEW(sides + 4, pointf); ^~~~~ memory.h:36:41: warning: conversion to 'unsigned int' from 'int' may change the sign of the result [-Wsign-conversion] #define N_NEW(n,t) (t*)zmalloc((n)*sizeof(t)) ^ shapes.c:1082:6: note: in expansion of macro 'N_NEW' D = N_NEW(sides, pointf); ^~~~~ memory.h:36:41: warning: conversion to 'unsigned int' from 'int' may change the sign of the result [-Wsign-conversion] #define N_NEW(n,t) (t*)zmalloc((n)*sizeof(t)) ^ shapes.c:1095:6: note: in expansion of macro 'N_NEW' D = N_NEW(sides, pointf); ^~~~~ memory.h:36:41: warning: conversion to 'unsigned int' from 'int' may change the sign of the result [-Wsign-conversion] #define N_NEW(n,t) (t*)zmalloc((n)*sizeof(t)) ^ shapes.c:1133:6: note: in expansion of macro 'N_NEW' D = N_NEW(sides, pointf); ^~~~~ memory.h:36:41: warning: conversion to 'unsigned int' from 'int' may change the sign of the result [-Wsign-conversion] #define N_NEW(n,t) (t*)zmalloc((n)*sizeof(t)) ^ shapes.c:1146:6: note: in expansion of macro 'N_NEW' D = N_NEW(sides, pointf); ^~~~~ memory.h:36:41: warning: conversion to 'unsigned int' from 'int' may change the sign of the result [-Wsign-conversion] #define N_NEW(n,t) (t*)zmalloc((n)*sizeof(t)) ^ shapes.c:1186:6: note: in expansion of macro 'N_NEW' D = N_NEW(sides, pointf); ^~~~~ memory.h:36:41: warning: conversion to 'unsigned int' from 'int' may change the sign of the result [-Wsign-conversion] #define N_NEW(n,t) (t*)zmalloc((n)*sizeof(t)) ^ shapes.c:1199:6: note: in expansion of macro 'N_NEW' D = N_NEW(sides, pointf); ^~~~~ memory.h:36:41: warning: conversion to 'unsigned int' from 'int' may change the sign of the result [-Wsign-conversion] #define N_NEW(n,t) (t*)zmalloc((n)*sizeof(t)) ^ shapes.c:1212:6: note: in expansion of macro 'N_NEW' D = N_NEW(sides, pointf); ^~~~~ memory.h:36:41: warning: conversion to 'unsigned int' from 'int' may change the sign of the result [-Wsign-conversion] #define N_NEW(n,t) (t*)zmalloc((n)*sizeof(t)) ^ shapes.c:1225:6: note: in expansion of macro 'N_NEW' D = N_NEW(sides, pointf); ^~~~~ memory.h:36:41: warning: conversion to 'unsigned int' from 'int' may change the sign of the result [-Wsign-conversion] #define N_NEW(n,t) (t*)zmalloc((n)*sizeof(t)) ^ shapes.c:1269:6: note: in expansion of macro 'N_NEW' D = N_NEW(sides, pointf); ^~~~~ memory.h:36:41: warning: conversion to 'unsigned int' from 'int' may change the sign of the result [-Wsign-conversion] #define N_NEW(n,t) (t*)zmalloc((n)*sizeof(t)) ^ shapes.c:1282:6: note: in expansion of macro 'N_NEW' D = N_NEW(sides, pointf); ^~~~~ memory.h:36:41: warning: conversion to 'unsigned int' from 'int' may change the sign of the result [-Wsign-conversion] #define N_NEW(n,t) (t*)zmalloc((n)*sizeof(t)) ^ shapes.c:1323:6: note: in expansion of macro 'N_NEW' D = N_NEW(sides, pointf); ^~~~~ utils.c: In function 'edgeType': utils.c:1687:5: warning: switch missing default case [-Wswitch-default] switch (*s) { ^~~~~~ utils.c: In function 'setEdgeType': memory.h:36:41: warning: conversion to 'unsigned int' from 'int' may change the sign of the result [-Wsign-conversion] #define N_NEW(n,t) (t*)zmalloc((n)*sizeof(t)) ^ shapes.c:1370:6: note: in expansion of macro 'N_NEW' D = N_NEW(sides, pointf); ^~~~~ utils.c:1782:20: warning: conversion to 'short unsigned int' from 'int' may alter its value [-Wconversion] GD_flags(g) |= et; ^~ memory.h:36:41: warning: conversion to 'unsigned int' from 'int' may change the sign of the result [-Wsign-conversion] #define N_NEW(n,t) (t*)zmalloc((n)*sizeof(t)) ^ shapes.c:1422:6: note: in expansion of macro 'N_NEW' D = N_NEW(sides + 12, pointf); //12-sided x ^~~~~ memory.h:36:41: warning: conversion to 'unsigned int' from 'int' may change the sign of the result [-Wsign-conversion] #define N_NEW(n,t) (t*)zmalloc((n)*sizeof(t)) ^ shapes.c:1495:6: note: in expansion of macro 'N_NEW' D = N_NEW(sides + 4, pointf); //12-sided x ^~~~~ memory.h:36:41: warning: conversion to 'unsigned int' from 'int' may change the sign of the result [-Wsign-conversion] #define N_NEW(n,t) (t*)zmalloc((n)*sizeof(t)) ^ shapes.c:1553:6: note: in expansion of macro 'N_NEW' D = N_NEW(sides + 12, pointf); //12-sided x ^~~~~ memory.h:36:41: warning: conversion to 'unsigned int' from 'int' may change the sign of the result [-Wsign-conversion] #define N_NEW(n,t) (t*)zmalloc((n)*sizeof(t)) ^ shapes.c:1617:6: note: in expansion of macro 'N_NEW' D = N_NEW(sides + 4, pointf); //12-sided x ^~~~~ utils.c: In function 'free_clust': utils.c:1987:31: warning: unused parameter 'dt' [-Wunused-parameter] static void free_clust (Dt_t* dt, clust_t* clp, Dtdisc_t* disc) ^~ utils.c:1987:59: warning: unused parameter 'disc' [-Wunused-parameter] static void free_clust (Dt_t* dt, clust_t* clp, Dtdisc_t* disc) ^~~~ memory.h:36:41: warning: conversion to 'unsigned int' from 'int' may change the sign of the result [-Wsign-conversion] #define N_NEW(n,t) (t*)zmalloc((n)*sizeof(t)) ^ shapes.c:1669:6: note: in expansion of macro 'N_NEW' D = N_NEW(sides + 5, pointf); /*5 new points*/ ^~~~~ memory.h:36:41: warning: conversion to 'unsigned int' from 'int' may change the sign of the result [-Wsign-conversion] #define N_NEW(n,t) (t*)zmalloc((n)*sizeof(t)) ^ shapes.c:1709:6: note: in expansion of macro 'N_NEW' D = N_NEW(sides + 3, pointf); /*3 new points*/ ^~~~~ memory.h:36:41: warning: conversion to 'unsigned int' from 'int' may change the sign of the result [-Wsign-conversion] #define N_NEW(n,t) (t*)zmalloc((n)*sizeof(t)) ^ shapes.c:1743:6: note: in expansion of macro 'N_NEW' D = N_NEW(sides + 3, pointf); /*3 new points*/ ^~~~~ memory.h:36:41: warning: conversion to 'unsigned int' from 'int' may change the sign of the result [-Wsign-conversion] #define N_NEW(n,t) (t*)zmalloc((n)*sizeof(t)) ^ shapes.c:1779:6: note: in expansion of macro 'N_NEW' D = N_NEW(sides + 5, pointf); /*3 new points*/ ^~~~~ shapes.c:579:5: warning: switch missing default case [-Wswitch-default] switch (mode) { ^~~~~~ shapes.c: In function 'poly_init': shapes.c:1977:38: warning: comparing floating point with == or != is unsafe [-Wfloat-equal] if ((sides <= 2) && ((distortion != 0.) || (skew != 0.))) { ^~ shapes.c:1977:54: warning: comparing floating point with == or != is unsafe [-Wfloat-equal] if ((sides <= 2) && ((distortion != 0.) || (skew != 0.))) { ^~ shapes.c:1989:21: warning: comparing floating point with == or != is unsafe [-Wfloat-equal] && distortion == 0. && skew == 0.); ^~ shapes.c:1989:35: warning: comparing floating point with == or != is unsafe [-Wfloat-equal] && distortion == 0. && skew == 0.); ^~ In file included from render.h:44:0, from shapes.c:14: memory.h:36:41: warning: conversion to 'unsigned int' from 'int' may change the sign of the result [-Wsign-conversion] #define N_NEW(n,t) (t*)zmalloc((n)*sizeof(t)) ^ shapes.c:2077:13: note: in expansion of macro 'N_NEW' vertices = N_NEW(outp * sides, pointf); ^~~~~ memory.h:36:41: warning: conversion to 'unsigned int' from 'int' may change the sign of the result [-Wsign-conversion] #define N_NEW(n,t) (t*)zmalloc((n)*sizeof(t)) ^ shapes.c:2112:13: note: in expansion of macro 'N_NEW' vertices = N_NEW(outp * sides, pointf); ^~~~~ shapes.c: In function 'poly_inside': shapes.c:2322:12: warning: comparing floating point with == or != is unsafe [-Wfloat-equal] if (xsize == 0.0) ^~ shapes.c:2324:12: warning: comparing floating point with == or != is unsafe [-Wfloat-equal] if (ysize == 0.0) ^~ shapes.c: In function 'invflip_side': shapes.c:2415:2: warning: switch missing default case [-Wswitch-default] switch (side) { ^~~~~~ shapes.c:2431:2: warning: switch missing default case [-Wswitch-default] switch (side) { ^~~~~~ shapes.c:2399:5: warning: switch missing default case [-Wswitch-default] switch (rankdir) { ^~~~~~ shapes.c: In function 'invflip_angle': shapes.c:2464:12: warning: comparing floating point with == or != is unsafe [-Wfloat-equal] if (angle == M_PI) ^~ shapes.c:2466:17: warning: comparing floating point with == or != is unsafe [-Wfloat-equal] else if (angle == M_PI * 0.75) ^~ shapes.c:2468:17: warning: comparing floating point with == or != is unsafe [-Wfloat-equal] else if (angle == M_PI * 0.5) ^~ shapes.c:2474:17: warning: comparing floating point with == or != is unsafe [-Wfloat-equal] else if (angle == 0) ^~ shapes.c:2476:17: warning: comparing floating point with == or != is unsafe [-Wfloat-equal] else if (angle == M_PI * -0.25) ^~ shapes.c:2478:17: warning: comparing floating point with == or != is unsafe [-Wfloat-equal] else if (angle == M_PI * -0.5) ^~ shapes.c:2454:5: warning: switch missing default case [-Wswitch-default] switch (rankdir) { ^~~~~~ CC taper.lo shapes.c: In function 'compassPort': shapes.c:2712:13: warning: conversion to 'unsigned char' from 'int' may alter its value [-Wconversion] pp->side = side; ^~~~ shapes.c:2714:13: warning: conversion to 'unsigned char' from 'int' may alter its value [-Wconversion] pp->side = invflip_side(side, GD_rankdir(agraphof(n))); ^~~~~~~~~~~~ shapes.c:2718:14: warning: comparing floating point with == or != is unsafe [-Wfloat-equal] if ((p.x == 0) && (p.y == 0)) ^~ shapes.c:2718:28: warning: comparing floating point with == or != is unsafe [-Wfloat-equal] if ((p.x == 0) && (p.y == 0)) ^~ shapes.c:2725:14: warning: conversion to 'unsigned char' from 'int' may alter its value [-Wconversion] pp->order = (int) ((MC_SCALE * angle) / (2 * M_PI)); ^ In file included from render.h:44:0, from shapes.c:14: shapes.c: In function 'poly_gencode': memory.h:41:62: warning: conversion to 'unsigned int' from 'int' may change the sign of the result [-Wsign-conversion] #define ALLOC(size,ptr,type) (ptr? (type*)grealloc(ptr,(size)*sizeof(type)):(type*)gmalloc((size)*sizeof(type))) ^ shapes.c:2803:7: note: in expansion of macro 'ALLOC' AF = ALLOC(A_size, AF, pointf); ^~~~~ memory.h:41:98: warning: conversion to 'unsigned int' from 'int' may change the sign of the result [-Wsign-conversion] #define ALLOC(size,ptr,type) (ptr? (type*)grealloc(ptr,(size)*sizeof(type)):(type*)gmalloc((size)*sizeof(type))) ^ shapes.c:2803:7: note: in expansion of macro 'ALLOC' AF = ALLOC(A_size, AF, pointf); ^~~~~ shapes.c: In function 'point_init': shapes.c:3008:12: warning: comparing floating point with == or != is unsafe [-Wfloat-equal] if ((w == MAXDOUBLE) && (h == MAXDOUBLE)) /* neither defined */ ^~ shapes.c:3008:32: warning: comparing floating point with == or != is unsafe [-Wfloat-equal] if ((w == MAXDOUBLE) && (h == MAXDOUBLE)) /* neither defined */ ^~ In file included from render.h:44:0, from shapes.c:14: memory.h:36:41: warning: conversion to 'unsigned int' from 'int' may change the sign of the result [-Wsign-conversion] #define N_NEW(n,t) (t*)zmalloc((n)*sizeof(t)) ^ shapes.c:3027:16: note: in expansion of macro 'N_NEW' vertices = N_NEW(outp * sides, pointf); ^~~~~ CC output.lo shapes.c: In function 'point_gencode': memory.h:41:62: warning: conversion to 'unsigned int' from 'int' may change the sign of the result [-Wsign-conversion] #define ALLOC(size,ptr,type) (ptr? (type*)grealloc(ptr,(size)*sizeof(type)):(type*)gmalloc((size)*sizeof(type))) ^ shapes.c:3115:7: note: in expansion of macro 'ALLOC' AF = ALLOC(A_size, AF, pointf); ^~~~~ memory.h:41:98: warning: conversion to 'unsigned int' from 'int' may change the sign of the result [-Wsign-conversion] #define ALLOC(size,ptr,type) (ptr? (type*)grealloc(ptr,(size)*sizeof(type)):(type*)gmalloc((size)*sizeof(type))) ^ shapes.c:3115:7: note: in expansion of macro 'ALLOC' AF = ALLOC(A_size, AF, pointf); ^~~~~ shapes.c: In function 'parse_error': shapes.c:3217:49: warning: declaration of 'port' shadows a global declaration [-Wshadow] static field_t *parse_error(field_t * rv, char *port) ^~~~ In file included from render.h:40:0, from shapes.c:14: types.h:83:7: note: shadowed declaration is here } port; ^~~~ In file included from render.h:44:0, from shapes.c:14: shapes.c: In function 'parse_reclbl': memory.h:36:41: warning: conversion to 'unsigned int' from 'int' may change the sign of the result [-Wsign-conversion] #define N_NEW(n,t) (t*)zmalloc((n)*sizeof(t)) ^ shapes.c:3251:15: note: in expansion of macro 'N_NEW' rv->fld = N_NEW(maxf, field_t *); ^~~~~ shapes.c:3252:14: warning: conversion to 'unsigned char' from 'int' may alter its value [-Wconversion] rv->LR = LR; ^~ CC emit.lo shapes.c: In function 'pos_reclbl': shapes.c:3465:16: warning: conversion to 'unsigned char' from 'int' may alter its value [-Wconversion] f->sides = sides; ^~~~~ shapes.c: At top level: shapes.c:3502:5: warning: "DEBUG" is not defined, evaluates to 0 [-Wundef] #if DEBUG > 1 ^~~~~ shapes.c: In function 'record_init': shapes.c:3546:11: warning: conversion to 'int' from 'size_t {aka unsigned int}' may change the sign of the result [-Wsign-conversion] len = strlen(reclblp); ^~~~~~ In file included from render.h:44:0, from shapes.c:14: memory.h:36:41: warning: conversion to 'unsigned int' from 'int' may change the sign of the result [-Wsign-conversion] #define N_NEW(n,t) (t*)zmalloc((n)*sizeof(t)) ^ shapes.c:3551:15: note: in expansion of macro 'N_NEW' textbuf = N_NEW(len + 1, char); ^~~~~ shapes.c: In function 'record_path': shapes.c:3671:11: warning: conversion to 'int' from 'double' may alter its value [-Wfloat-conversion] ls = info->fld[i]->b.LL.x; ^~~~ shapes.c:3672:11: warning: conversion to 'int' from 'double' may alter its value [-Wfloat-conversion] rs = info->fld[i]->b.UR.x; ^~~~ shapes.c:3674:11: warning: conversion to 'int' from 'double' may alter its value [-Wfloat-conversion] ls = info->fld[i]->b.LL.y; ^~~~ shapes.c:3675:11: warning: conversion to 'int' from 'double' may alter its value [-Wfloat-conversion] rs = info->fld[i]->b.UR.y; ^~~~ In file included from render.h:44:0, from shapes.c:14: shapes.c: In function 'user_shape': memory.h:41:62: warning: conversion to 'unsigned int' from 'int' may change the sign of the result [-Wsign-conversion] #define ALLOC(size,ptr,type) (ptr? (type*)grealloc(ptr,(size)*sizeof(type)):(type*)gmalloc((size)*sizeof(type))) ^ shapes.c:3822:17: note: in expansion of macro 'ALLOC' UserShape = ALLOC(N_UserShape, UserShape, shape_desc *); ^~~~~ memory.h:41:98: warning: conversion to 'unsigned int' from 'int' may change the sign of the result [-Wsign-conversion] #define ALLOC(size,ptr,type) (ptr? (type*)grealloc(ptr,(size)*sizeof(type)):(type*)gmalloc((size)*sizeof(type))) ^ shapes.c:3822:17: note: in expansion of macro 'ALLOC' UserShape = ALLOC(N_UserShape, UserShape, shape_desc *); ^~~~~ shapes.c: In function 'cylinder_draw': shapes.c:4076:56: warning: conversion to 'boolean {aka unsigned char}' from 'int' may alter its value [-Wconversion] gvrender_beziercurve(job, AF, sides, FALSE, FALSE, filled); ^~~~~~ shapes.c:4057:68: warning: unused parameter 'style' [-Wunused-parameter] static void cylinder_draw(GVJ_t * job, pointf * AF, int sides, int style, int filled) ^~~~~ shapes.c: In function 'cvtPt': shapes.c:4101:5: warning: switch missing default case [-Wswitch-default] switch (rankdir) { ^~~~~~ shapes.c: In function 'closestSide': shapes.c:4168:12: warning: conversion to 'int' from 'double' may alter its value [-Wfloat-conversion] p.y = b.LL.y; ^ shapes.c:4169:12: warning: conversion to 'int' from 'double' may alter its value [-Wfloat-conversion] p.x = (b.LL.x + b.UR.x) / 2; ^ shapes.c:4172:12: warning: conversion to 'int' from 'double' may alter its value [-Wfloat-conversion] p.x = b.UR.x; ^ shapes.c:4173:12: warning: conversion to 'int' from 'double' may alter its value [-Wfloat-conversion] p.y = (b.LL.y + b.UR.y) / 2; ^ shapes.c:4176:12: warning: conversion to 'int' from 'double' may alter its value [-Wfloat-conversion] p.y = b.UR.y; ^ shapes.c:4177:12: warning: conversion to 'int' from 'double' may alter its value [-Wfloat-conversion] p.x = (b.LL.x + b.UR.x) / 2; ^ shapes.c:4180:12: warning: conversion to 'int' from 'double' may alter its value [-Wfloat-conversion] p.x = b.LL.x; ^ shapes.c:4181:12: warning: conversion to 'int' from 'double' may alter its value [-Wfloat-conversion] p.y = (b.LL.y + b.UR.y) / 2; ^ shapes.c:4166:2: warning: switch missing default case [-Wswitch-default] switch (i) { ^~~~~~ shapes.c: At top level: shapes.c:4217:6: warning: no previous prototype for 'gv_initShapes' [-Wmissing-prototypes] void gv_initShapes(void) ^~~~~~~~~~~~~ shapes.c: In function 'parse_reclbl': shapes.c:3331:9: warning: this statement may fall through [-Wimplicit-fallthrough=] if (*(reclblp + 1)) { ^ shapes.c:3343:2: note: here default: ^~~~~~~ geom.c: In function 'lineToBox': geom.c:116:13: warning: comparing floating point with == or != is unsafe [-Wfloat-equal] if (p.x == q.x) { ^~ geom.c:126:20: warning: comparing floating point with == or != is unsafe [-Wfloat-equal] } else if (p.y == q.y) { ^~ output.c: In function 'agputc': output.c:39:14: warning: conversion to 'char' from 'int' may alter its value [-Wconversion] buf[0] = c; ^ output.c: In function 'writenodeandport': output.c:99:61: warning: declaration of 'port' shadows a global declaration [-Wshadow] static void writenodeandport(FILE * f, node_t * node, char *port) ^~~~ In file included from render.h:40:0, from output.c:14: types.h:83:7: note: shadowed declaration is here } port; ^~~~ output.c: In function 'attach_attrs_and_arrows': output.c:304:10: warning: declaration of 'i' shadows a previous local [-Wshadow] int i; ^ output.c:236:9: note: shadowed declaration is here int i, j, sides; ^ In file included from taper.c:24:0: taper.c: In function 'addto': ./memory.h:42:58: warning: conversion to 'unsigned int' from 'int' may change the sign of the result [-Wsign-conversion] #define RALLOC(size,ptr,type) ((type*)grealloc(ptr,(size)*sizeof(type))) ^ taper.c:53:16: note: in expansion of macro 'RALLOC' p->vertices = RALLOC(p->flags,p->vertices,pointf); ^~~~~~ taper.c: In function 'arcn': taper.c:66:11: warning: comparing floating point with == or != is unsafe [-Wfloat-equal] if (r == 0) return; ^~ taper.c: In function 'myatan': taper.c:92:12: warning: comparing floating point with == or != is unsafe [-Wfloat-equal] if ((x == 0) && (y == 0)) ^~ taper.c:92:24: warning: comparing floating point with == or != is unsafe [-Wfloat-equal] if ((x == 0) && (y == 0)) ^~ In file included from taper.c:24:0: taper.c: In function 'insertArr': ./memory.h:42:58: warning: conversion to 'unsigned int' from 'int' may change the sign of the result [-Wsign-conversion] #define RALLOC(size,ptr,type) ((type*)grealloc(ptr,(size)*sizeof(type))) ^ taper.c:149:13: note: in expansion of macro 'RALLOC' arr->pts = RALLOC(arr->sz,arr->pts,pathpoint); ^~~~~~ taper.c: In function 'fixArr': ./memory.h:42:58: warning: conversion to 'unsigned int' from 'int' may change the sign of the result [-Wsign-conversion] #define RALLOC(size,ptr,type) ((type*)grealloc(ptr,(size)*sizeof(type))) ^ taper.c:176:13: note: in expansion of macro 'RALLOC' arr->pts = RALLOC(arr->cnt,arr->pts,pathpoint); ^~~~~~ taper.c: In function 'pathtolines': taper.c:196:51: warning: unused parameter 'initwid' [-Wunused-parameter] static vararr_t* pathtolines (bezier* bez, double initwid) ^~~~~~~ taper.c: At top level: taper.c:271:11: warning: no previous prototype for 'taper' [-Wmissing-prototypes] stroke_t* taper (bezier* bez, radfunc_t radfunc, double initwid, int linejoin, int linecap) ^~~~~ taper.c: In function 'taper': taper.c:292:6: warning: conversion to 'int' from 'double' may alter its value [-Wfloat-conversion] l = mymod(i-1,pathcount); ^~~~~ taper.c:293:6: warning: conversion to 'int' from 'double' may alter its value [-Wfloat-conversion] n = mymod(i+1,pathcount); ^~~~~ taper.c:339:19: warning: comparing floating point with == or != is unsafe [-Wfloat-equal] if (cos(phi) == 0) { ^~ taper.c: At top level: taper.c:423:11: warning: no previous prototype for 'taper0' [-Wmissing-prototypes] stroke_t* taper0 (bezier* bez, double initwid) ^~~~~~ In file included from render.h:40:0, from emit.c:23: emit.c: In function 'initMapData': types.h:26:16: warning: conversion to 'signed char:1' alters 'int' constant value [-Wconversion] #define NOT(v) (!(v)) ^ types.h:32:14: note: in expansion of macro 'NOT' #define TRUE NOT(FALSE) ^~~ emit.c:165:37: note: in expansion of macro 'TRUE' obj->explicit_tooltip = TRUE; ^~~~ emit.c: In function 'getObjId': emit.c:220:5: warning: switch missing default case [-Wswitch-default] switch (agobjkind(obj)) { ^~~~~~ In file included from render.h:44:0, from emit.c:23: emit.c: In function 'map_point': memory.h:36:41: warning: conversion to 'unsigned int' from 'int' may change the sign of the result [-Wsign-conversion] #define N_NEW(n,t) (t*)zmalloc((n)*sizeof(t)) ^ emit.c:357:23: note: in expansion of macro 'N_NEW' obj->url_map_p = p = N_NEW(obj->url_map_n, pointf); ^~~~~ emit.c: In function 'parseSegs': memory.h:36:41: warning: conversion to 'unsigned int' from 'int' may change the sign of the result [-Wsign-conversion] #define N_NEW(n,t) (t*)zmalloc((n)*sizeof(t)) ^ emit.c:498:22: note: in expansion of macro 'N_NEW' segs->segs = s = N_NEW(nseg+1,colorseg_t); ^~~~~ emit.c:513:20: warning: conversion to 'float' from 'double' may alter its value [-Wfloat-conversion] s[cnum++].t = v; ^ emit.c:536:17: warning: comparing floating point with == or != is unsafe [-Wfloat-equal] if (s[i].t == 0) nseg++; ^~ emit.c:541:14: warning: comparing floating point with == or != is unsafe [-Wfloat-equal] if (s[i].t == 0) s[i].t = delta; ^~ emit.c:541:29: warning: conversion to 'float' from 'double' may alter its value [-Wfloat-conversion] if (s[i].t == 0) s[i].t = delta; ^~~~~ emit.c:545:21: warning: conversion to 'float' from 'double' may alter its value [-Wfloat-conversion] s[cnum-1].t += left; ^~~~ emit.c: In function 'wedgedEllipse': emit.c:595:11: warning: comparing floating point with == or != is unsafe [-Wfloat-equal] if (s->t == 0) continue; ^~ emit.c: In function 'stripedBox': emit.c:655:11: warning: comparing floating point with == or != is unsafe [-Wfloat-equal] if (s->t == 0) continue; ^~ In file included from render.h:44:0, from emit.c:23: emit.c: In function 'emit_map_rect': memory.h:36:41: warning: conversion to 'unsigned int' from 'int' may change the sign of the result [-Wsign-conversion] #define N_NEW(n,t) (t*)zmalloc((n)*sizeof(t)) ^ emit.c:687:23: note: in expansion of macro 'N_NEW' obj->url_map_p = p = N_NEW(obj->url_map_n, pointf); ^~~~~ emit.c: In function 'map_label': memory.h:36:41: warning: conversion to 'unsigned int' from 'int' may change the sign of the result [-Wsign-conversion] #define N_NEW(n,t) (t*)zmalloc((n)*sizeof(t)) ^ emit.c:713:23: note: in expansion of macro 'N_NEW' obj->url_map_p = p = N_NEW(obj->url_map_n, pointf); ^~~~~ emit.c: In function 'isRect': emit.c:730:30: warning: comparing floating point with == or != is unsafe [-Wfloat-equal] && p->distortion == 0.0 && p->skew == 0.0); ^~ emit.c:730:48: warning: comparing floating point with == or != is unsafe [-Wfloat-equal] && p->distortion == 0.0 && p->skew == 0.0); ^~ In file included from render.h:44:0, from emit.c:23: emit.c: In function 'pEllipse': memory.h:36:41: warning: conversion to 'unsigned int' from 'int' may change the sign of the result [-Wsign-conversion] #define N_NEW(n,t) (t*)zmalloc((n)*sizeof(t)) ^ emit.c:766:10: note: in expansion of macro 'N_NEW' ps = N_NEW(np, pointf); ^~~~~ emit.c: At top level: emit.c:831:6: warning: "DEBUG" is not defined, evaluates to 0 [-Wundef] #if (DEBUG==2) ^~~~~ emit.c: In function 'map_bspline_poly': emit.c:871:45: warning: conversion to 'unsigned int' from 'int' may change the sign of the result [-Wsign-conversion] *pbs_n = grealloc(*pbs_n, (*pbs_poly_n) * sizeof(int)); ^ emit.c:873:44: warning: conversion to 'unsigned int' from 'int' may change the sign of the result [-Wsign-conversion] *pbs_p = grealloc(*pbs_p, (nump + 2*n) * sizeof(pointf)); ^ emit.c:879:6: warning: "DEBUG" is not defined, evaluates to 0 [-Wundef] #if (DEBUG==2) ^~~~~ emit.c: In function 'selectedLayer': emit.c:1065:2: warning: switch missing default case [-Wswitch-default] switch ((w0 != NULL) + (w1 != NULL)) { ^~~~~~ In file included from render.h:44:0, from emit.c:23: emit.c: In function 'parse_layerselect': memory.h:39:41: warning: conversion to 'unsigned int' from 'int' may change the sign of the result [-Wsign-conversion] #define N_GNEW(n,t) (t*)gmalloc((n)*sizeof(t)) ^ emit.c:1115:20: note: in expansion of macro 'N_GNEW' int* laylist = N_GNEW(gvc->numLayers+2,int); ^~~~~~ emit.c:1113:53: warning: unused parameter 'g' [-Wunused-parameter] static int* parse_layerselect(GVC_t *gvc, graph_t * g, char *p) ^ In file included from render.h:44:0, from emit.c:23: emit.c: In function 'parse_layers': memory.h:41:62: warning: conversion to 'unsigned int' from 'int' may change the sign of the result [-Wsign-conversion] #define ALLOC(size,ptr,type) (ptr? (type*)grealloc(ptr,(size)*sizeof(type)):(type*)gmalloc((size)*sizeof(type))) ^ emit.c:1168:29: note: in expansion of macro 'ALLOC' gvc->layerIDs = ALLOC(sz, gvc->layerIDs, char *); ^~~~~ memory.h:41:98: warning: conversion to 'unsigned int' from 'int' may change the sign of the result [-Wsign-conversion] #define ALLOC(size,ptr,type) (ptr? (type*)grealloc(ptr,(size)*sizeof(type)):(type*)gmalloc((size)*sizeof(type))) ^ emit.c:1168:29: note: in expansion of macro 'ALLOC' gvc->layerIDs = ALLOC(sz, gvc->layerIDs, char *); ^~~~~ memory.h:42:58: warning: conversion to 'unsigned int' from 'int' may change the sign of the result [-Wsign-conversion] #define RALLOC(size,ptr,type) ((type*)grealloc(ptr,(size)*sizeof(type))) ^ emit.c:1173:25: note: in expansion of macro 'RALLOC' gvc->layerIDs = RALLOC(ntok + 2, gvc->layerIDs, char *); /* shrink to minimum size */ ^~~~~~ emit.c: In function 'pagecode': emit.c:1285:5: warning: switch missing default case [-Wswitch-default] switch (c) { ^~~~~~ In file included from geom.h:20:0, from types.h:35, from render.h:40, from emit.c:23: emit.c: In function 'init_job_pagination': arith.h:87:25: warning: conversion to 'unsigned int' from 'int' may change the sign of the result [-Wsign-conversion] #define ROUND(f) ((f>=0)?(int)(f + .5):(int)(f - .5)) ^ emit.c:1371:18: note: in expansion of macro 'ROUND' job->width = ROUND((pageSize.x + 2*margin.x) * job->dpi.x / POINTS_PER_INCH); ^~~~~ arith.h:87:25: warning: conversion to 'unsigned int' from 'int' may change the sign of the result [-Wsign-conversion] #define ROUND(f) ((f>=0)?(int)(f + .5):(int)(f - .5)) ^ emit.c:1371:18: note: in expansion of macro 'ROUND' job->width = ROUND((pageSize.x + 2*margin.x) * job->dpi.x / POINTS_PER_INCH); ^~~~~ arith.h:87:25: warning: conversion to 'unsigned int' from 'int' may change the sign of the result [-Wsign-conversion] #define ROUND(f) ((f>=0)?(int)(f + .5):(int)(f - .5)) ^ emit.c:1372:19: note: in expansion of macro 'ROUND' job->height = ROUND((pageSize.y + 2*margin.y) * job->dpi.y / POINTS_PER_INCH); ^~~~~ arith.h:87:25: warning: conversion to 'unsigned int' from 'int' may change the sign of the result [-Wsign-conversion] #define ROUND(f) ((f>=0)?(int)(f + .5):(int)(f - .5)) ^ emit.c:1372:19: note: in expansion of macro 'ROUND' job->height = ROUND((pageSize.y + 2*margin.y) * job->dpi.y / POINTS_PER_INCH); ^~~~~ In file included from render.h:44:0, from emit.c:23: emit.c: In function 'copyPts': memory.h:42:58: warning: conversion to 'unsigned int' from 'int' may change the sign of the result [-Wsign-conversion] #define RALLOC(size,ptr,type) ((type*)grealloc(ptr,(size)*sizeof(type))) ^ emit.c:1484:8: note: in expansion of macro 'RALLOC' pts = RALLOC(sz, pts, pointf); ^~~~~~ emit.c: In function 'emit_xdot': emit.c:1530:61: warning: conversion to 'boolean {aka unsigned char}' from 'int' may alter its value [-Wconversion] gvrender_beziercurve(job, pts, op->op.u.bezier.cnt, 0, 0, (op->op.kind == xd_filled_bezier?filled:0)); ^ emit.c:1564:18: warning: comparing floating point with == or != is unsafe [-Wfloat-equal] if ((p->x1 == p->x0) && (p->y1 == p->y0)) ^~ emit.c:1564:38: warning: comparing floating point with == or != is unsafe [-Wfloat-equal] if ((p->x1 == p->x0) && (p->y1 == p->y0)) ^~ emit.c:1508:2: warning: switch missing default case [-Wswitch-default] switch (op->op.kind) { ^~~~~~ emit.c: In function 'setup_page': emit.c:1665:47: warning: unused parameter 'g' [-Wunused-parameter] static void setup_page(GVJ_t * job, graph_t * g) ^ emit.c: In function 'edge_in_layer': emit.c:1758:52: warning: unused parameter 'g' [-Wunused-parameter] static boolean edge_in_layer(GVJ_t *job, graph_t * g, edge_t * e) ^ emit.c: In function 'node_in_box': emit.c:1798:12: warning: conversion to 'boolean {aka unsigned char}' from 'int' may alter its value [-Wconversion] return boxf_overlap(ND_bb(n), b); ^~~~~~~~~~~~~~~~~~~~~~~~~ In file included from render.h:44:0, from emit.c:23: emit.c: In function 'emit_begin_node': memory.h:36:41: warning: conversion to 'unsigned int' from 'int' may change the sign of the result [-Wsign-conversion] #define N_NEW(n,t) (t*)zmalloc((n)*sizeof(t)) ^ emit.c:1875:21: note: in expansion of macro 'N_NEW' p = N_NEW(nump, pointf); ^~~~~ emit.c:1879:52: warning: comparing floating point with == or != is unsafe [-Wfloat-equal] else if (poly->sides < 3 && poly->skew == 0.0 && poly->distortion == 0.0) { ^~ emit.c:1879:79: warning: comparing floating point with == or != is unsafe [-Wfloat-equal] else if (poly->sides < 3 && poly->skew == 0.0 && poly->distortion == 0.0) { ^~ In file included from render.h:44:0, from emit.c:23: memory.h:36:41: warning: conversion to 'unsigned int' from 'int' may change the sign of the result [-Wsign-conversion] #define N_NEW(n,t) (t*)zmalloc((n)*sizeof(t)) ^ emit.c:1883:25: note: in expansion of macro 'N_NEW' p = N_NEW(nump, pointf); ^~~~~ memory.h:36:41: warning: conversion to 'unsigned int' from 'int' may change the sign of the result [-Wsign-conversion] #define N_NEW(n,t) (t*)zmalloc((n)*sizeof(t)) ^ emit.c:1910:25: note: in expansion of macro 'N_NEW' p = N_NEW(nump, pointf); ^~~~~ memory.h:36:41: warning: conversion to 'unsigned int' from 'int' may change the sign of the result [-Wsign-conversion] #define N_NEW(n,t) (t*)zmalloc((n)*sizeof(t)) ^ emit.c:1917:25: note: in expansion of macro 'N_NEW' p = N_NEW(nump, pointf); ^~~~~ memory.h:36:41: warning: conversion to 'unsigned int' from 'int' may change the sign of the result [-Wsign-conversion] #define N_NEW(n,t) (t*)zmalloc((n)*sizeof(t)) ^ emit.c:1931:17: note: in expansion of macro 'N_NEW' p = N_NEW(nump, pointf); ^~~~~ emit.c: In function 'emit_node': emit.c:1969:16: warning: conversion to 'char' from 'int' may alter its value [-Wconversion] ND_state(n) = gvc->common.viewNum; /* mark node as drawn */ ^~~ emit.c: In function 'default_pencolor': emit.c:2068:16: warning: conversion to 'size_t {aka unsigned int}' from 'int' may change the sign of the result [-Wsign-conversion] len = ncol * (strlen(deflt) + 1); ^ emit.c:2068:11: warning: conversion to 'int' from 'size_t {aka unsigned int}' may change the sign of the result [-Wsign-conversion] len = ncol * (strlen(deflt) + 1); ^~~~ emit.c:2071:21: warning: conversion to 'size_t {aka unsigned int}' from 'int' may change the sign of the result [-Wsign-conversion] buf = realloc(buf, bufsz); ^~~~~ In file included from render.h:44:0, from emit.c:23: emit.c: In function 'splitBSpline': memory.h:36:41: warning: conversion to 'unsigned int' from 'int' may change the sign of the result [-Wsign-conversion] #define N_NEW(n,t) (t*)zmalloc((n)*sizeof(t)) ^ emit.c:2117:12: note: in expansion of macro 'N_NEW' lens = N_NEW(cnt, double); ^~~~~ memory.h:36:41: warning: conversion to 'unsigned int' from 'int' may change the sign of the result [-Wsign-conversion] #define N_NEW(n,t) (t*)zmalloc((n)*sizeof(t)) ^ emit.c:2134:18: note: in expansion of macro 'N_NEW' left->list = N_NEW(left->size,pointf); ^~~~~ memory.h:36:41: warning: conversion to 'unsigned int' from 'int' may change the sign of the result [-Wsign-conversion] #define N_NEW(n,t) (t*)zmalloc((n)*sizeof(t)) ^ emit.c:2136:19: note: in expansion of macro 'N_NEW' right->list = N_NEW(right->size,pointf); ^~~~~ emit.c:2144:9: warning: conversion to 'float' from 'double' may alter its value [-Wfloat-conversion] r = (len - (sum - last))/last; ^ emit.c: In function 'multicolor': emit.c:2205:23: warning: conversion to 'float' from 'double' may alter its value [-Wfloat-conversion] splitBSpline (&bz0, (s->t)/(left+s->t), &bz_l, &bz_r); ^ emit.c: In function 'nonefunc': emit.c:2253:32: warning: unused parameter 'curlen' [-Wunused-parameter] static double nonefunc (double curlen, double totallen, double initwid) ^~~~~~ emit.c:2253:47: warning: unused parameter 'totallen' [-Wunused-parameter] static double nonefunc (double curlen, double totallen, double initwid) ^~~~~~~~ emit.c: In function 'emit_edge_graphics': emit.c:2377:42: warning: conversion to 'unsigned int' from 'int' may change the sign of the result [-Wsign-conversion] offspl.list = malloc(sizeof(bezier) * offspl.size); ^ emit.c:2378:42: warning: conversion to 'unsigned int' from 'int' may change the sign of the result [-Wsign-conversion] tmpspl.list = malloc(sizeof(bezier) * tmpspl.size); ^ emit.c:2383:57: warning: conversion to 'unsigned int' from 'int' may change the sign of the result [-Wsign-conversion] offlist = offspl.list[i].list = malloc(sizeof(pointf) * bz.size); ^ emit.c:2384:57: warning: conversion to 'unsigned int' from 'int' may change the sign of the result [-Wsign-conversion] tmplist = tmpspl.list[i].list = malloc(sizeof(pointf) * bz.size); ^ In file included from render.h:40:0, from emit.c:23: emit.c: In function 'emit_begin_edge': types.h:26:16: warning: conversion to 'signed char:1' alters 'int' constant value [-Wconversion] #define NOT(v) (!(v)) ^ types.h:32:14: note: in expansion of macro 'NOT' #define TRUE NOT(FALSE) ^~~ emit.c:2540:26: note: in expansion of macro 'TRUE' obj->labeledgealigned = TRUE; ^~~~ types.h:26:16: warning: conversion to 'signed char:1' alters 'int' constant value [-Wconversion] #define NOT(v) (!(v)) ^ types.h:32:14: note: in expansion of macro 'NOT' #define TRUE NOT(FALSE) ^~~ emit.c:2596:37: note: in expansion of macro 'TRUE' obj->explicit_tailurl = TRUE; ^~~~ types.h:26:16: warning: conversion to 'signed char:1' alters 'int' constant value [-Wconversion] #define NOT(v) (!(v)) ^ types.h:32:14: note: in expansion of macro 'NOT' #define TRUE NOT(FALSE) ^~~ emit.c:2602:37: note: in expansion of macro 'TRUE' obj->explicit_headurl = TRUE; ^~~~ types.h:26:16: warning: conversion to 'signed char:1' alters 'int' constant value [-Wconversion] #define NOT(v) (!(v)) ^ types.h:32:14: note: in expansion of macro 'NOT' #define TRUE NOT(FALSE) ^~~ emit.c:2612:33: note: in expansion of macro 'TRUE' obj->explicit_edgetarget = TRUE; ^~~~ types.h:26:16: warning: conversion to 'signed char:1' alters 'int' constant value [-Wconversion] #define NOT(v) (!(v)) ^ types.h:32:14: note: in expansion of macro 'NOT' #define TRUE NOT(FALSE) ^~~ emit.c:2623:33: note: in expansion of macro 'TRUE' obj->explicit_tailtarget = TRUE; ^~~~ types.h:26:16: warning: conversion to 'signed char:1' alters 'int' constant value [-Wconversion] #define NOT(v) (!(v)) ^ types.h:32:14: note: in expansion of macro 'NOT' #define TRUE NOT(FALSE) ^~~ emit.c:2628:33: note: in expansion of macro 'TRUE' obj->explicit_headtarget = TRUE; ^~~~ types.h:26:16: warning: conversion to 'signed char:1' alters 'int' constant value [-Wconversion] #define NOT(v) (!(v)) ^ types.h:32:14: note: in expansion of macro 'NOT' #define TRUE NOT(FALSE) ^~~ emit.c:2641:30: note: in expansion of macro 'TRUE' obj->explicit_tooltip = TRUE; ^~~~ types.h:26:16: warning: conversion to 'signed char:1' alters 'int' constant value [-Wconversion] #define NOT(v) (!(v)) ^ types.h:32:14: note: in expansion of macro 'NOT' #define TRUE NOT(FALSE) ^~~ emit.c:2650:35: note: in expansion of macro 'TRUE' obj->explicit_labeltooltip = TRUE; ^~~~ types.h:26:16: warning: conversion to 'signed char:1' alters 'int' constant value [-Wconversion] #define NOT(v) (!(v)) ^ types.h:32:14: note: in expansion of macro 'NOT' #define TRUE NOT(FALSE) ^~~ emit.c:2659:34: note: in expansion of macro 'TRUE' obj->explicit_tailtooltip = TRUE; ^~~~ types.h:26:16: warning: conversion to 'signed char:1' alters 'int' constant value [-Wconversion] #define NOT(v) (!(v)) ^ types.h:32:14: note: in expansion of macro 'NOT' #define TRUE NOT(FALSE) ^~~ emit.c:2668:34: note: in expansion of macro 'TRUE' obj->explicit_headtooltip = TRUE; ^~~~ emit.c: In function 'nodeIntersect': emit.c:2770:38: warning: unused parameter 'itooltip' [-Wunused-parameter] boolean explicit_itooltip, char* itooltip, ^~~~~~~~ emit.c:2771:13: warning: unused parameter 'explicit_itarget' [-Wunused-parameter] boolean explicit_itarget, char* itarget) ^~~~~~~~~~~~~~~~ emit.c:2771:37: warning: unused parameter 'itarget' [-Wunused-parameter] boolean explicit_itarget, char* itarget) ^~~~~~~ emit.c: In function 'emit_end_edge': emit.c:2853:25: warning: conversion to 'boolean {aka unsigned char}' from 'signed char:1' may change the sign of the result [-Wsign-conversion] nodeIntersect (job, p, obj->explicit_tailurl, obj->tailurl, ^~~ emit.c:2854:6: warning: conversion to 'boolean {aka unsigned char}' from 'signed char:1' may change the sign of the result [-Wsign-conversion] obj->explicit_tailtooltip, obj->tailtooltip, ^~~ emit.c:2855:6: warning: conversion to 'boolean {aka unsigned char}' from 'signed char:1' may change the sign of the result [-Wsign-conversion] obj->explicit_tailtarget, obj->tailtarget); ^~~ emit.c:2863:25: warning: conversion to 'boolean {aka unsigned char}' from 'signed char:1' may change the sign of the result [-Wsign-conversion] nodeIntersect (job, p, obj->explicit_headurl, obj->headurl, ^~~ emit.c:2864:6: warning: conversion to 'boolean {aka unsigned char}' from 'signed char:1' may change the sign of the result [-Wsign-conversion] obj->explicit_headtooltip, obj->headtooltip, ^~~ emit.c:2865:6: warning: conversion to 'boolean {aka unsigned char}' from 'signed char:1' may change the sign of the result [-Wsign-conversion] obj->explicit_headtarget, obj->headtarget); ^~~ emit.c: In function 'textBB': emit.c:2979:5: warning: switch missing default case [-Wswitch-default] switch (span->just) { ^~~~~~ emit.c: In function 'xdotBB': emit.c:3022:18: warning: comparing floating point with == or != is unsafe [-Wfloat-equal] if ((bb.LL.x == bb.UR.x) && (bb.LL.y == bb.UR.y)) { ^~ emit.c:3022:42: warning: comparing floating point with == or != is unsafe [-Wfloat-equal] if ((bb.LL.x == bb.UR.x) && (bb.LL.y == bb.UR.y)) { ^~ emit.c:3059:17: warning: conversion to 'unsigned char:7' from 'int' may alter its value [-Wconversion] tf.flags = fontflags; ^~~~~~~~~ emit.c:3074:18: warning: conversion to 'int' from 'unsigned int' may change the sign of the result [-Wsign-conversion] fontflags = op->op.u.fontchar; ^~ emit.c: In function 'init_job_dpi': emit.c:3200:28: warning: comparing floating point with == or != is unsafe [-Wfloat-equal] if (GD_drawing(g)->dpi != 0) { ^~ emit.c: In function 'init_job_viewport': emit.c:3244:11: warning: comparing floating point with == or != is unsafe [-Wfloat-equal] if (sz.x == 0) sz.x = size.x; ^~ emit.c:3245:11: warning: comparing floating point with == or != is unsafe [-Wfloat-equal] if (sz.y == 0) sz.y = size.y; ^~ emit.c: In function 'emit_end_graph': emit.c:3462:51: warning: unused parameter 'g' [-Wunused-parameter] static void emit_end_graph(GVJ_t * job, graph_t * g) ^ In file included from render.h:44:0, from emit.c:23: emit.c: In function 'emit_page': memory.h:36:41: warning: conversion to 'unsigned int' from 'int' may change the sign of the result [-Wsign-conversion] #define N_NEW(n,t) (t*)zmalloc((n)*sizeof(t)) ^ emit.c:3509:10: note: in expansion of macro 'N_NEW' p = N_NEW(nump, pointf); ^~~~~ emit.c: In function 'free_string_entry': emit.c:3603:40: warning: unused parameter 'dict' [-Wunused-parameter] static void free_string_entry(Dict_t * dict, char *key, Dtdisc_t * disc) ^~~~ emit.c:3603:68: warning: unused parameter 'disc' [-Wunused-parameter] static void free_string_entry(Dict_t * dict, char *key, Dtdisc_t * disc) ^~~~ emit.c: At top level: emit.c:3632:6: warning: no previous prototype for 'emit_once_reset' [-Wmissing-prototypes] void emit_once_reset(void) ^~~~~~~~~~~~~~~ emit.c: In function 'emit_edge_label': emit.c:2733:2: warning: 'type' may be used uninitialized in this function [-Wmaybe-uninitialized] sprintf (newid, "%s-%s", id, type); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ns.c: In function 'rank2': ns.c:790:9: warning: variable 'iter' might be clobbered by 'longjmp' or 'vfork' [-Wclobbered] int iter = 0, feasible; ^~~~ CCLD libcommon_C.la make[7]: Leaving directory '/jenkins/jobs/oi-userland/workspace/components/image/graphviz/build/i86/lib/common' make[6]: Leaving directory '/jenkins/jobs/oi-userland/workspace/components/image/graphviz/build/i86/lib/common' Making all in pack make[6]: Entering directory '/jenkins/jobs/oi-userland/workspace/components/image/graphviz/build/i86/lib/pack' CC ccomps.lo CC pack.lo pack.c: In function 'cmpf': pack.c:101:17: warning: cast discards 'const' qualifier from pointer target type [-Wcast-qual] ginfo *x = *(ginfo **) X; ^ pack.c:102:17: warning: cast discards 'const' qualifier from pointer target type [-Wcast-qual] ginfo *y = *(ginfo **) Y; ^ pack.c: At top level: pack.c:112:6: warning: no previous prototype for 'fillLine' [-Wmissing-prototypes] void fillLine(pointf p, pointf q, PointSet * ps) ^~~~~~~~ pack.c: In function 'genBox': pack.c:33:20: warning: cast from function call of type 'double' to non-matching type 'int' [-Wbad-function-cast] #define GRID(x,s) ((int)ceil((x)/(s))) ^ pack.c:251:9: note: in expansion of macro 'GRID' W = GRID(bb0.UR.x - bb0.LL.x + 2 * margin, ssize); ^~~~ pack.c:33:20: warning: cast from function call of type 'double' to non-matching type 'int' [-Wbad-function-cast] #define GRID(x,s) ((int)ceil((x)/(s))) ^ pack.c:252:9: note: in expansion of macro 'GRID' H = GRID(bb0.UR.y - bb0.LL.y + 2 * margin, ssize); ^~~~ pack.c: In function 'genPoly': pack.c:292:18: warning: conversion to 'int' from 'unsigned int' may change the sign of the result [-Wsign-conversion] int margin = pinfo->margin; ^~~~~ In file included from /jenkins/jobs/oi-userland/workspace/components/image/graphviz/graphviz-2.40.1/lib/common/render.h:44:0, from pack.c:22: /jenkins/jobs/oi-userland/workspace/components/image/graphviz/graphviz-2.40.1/lib/common/memory.h:39:41: warning: conversion to 'unsigned int' from 'int' may change the sign of the result [-Wsign-conversion] #define N_GNEW(n,t) (t*)gmalloc((n)*sizeof(t)) ^ pack.c:310:8: note: in expansion of macro 'N_GNEW' alg = N_GNEW(agnnodes(g), void *); ^~~~~~ pack.c:346:10: warning: conversion to 'int' from 'double' may alter its value [-Wfloat-conversion] s2.x = margin + ND_xsize(n) / 2; ^~~~~~ pack.c:347:10: warning: conversion to 'int' from 'double' may alter its value [-Wfloat-conversion] s2.y = margin + ND_ysize(n) / 2; ^~~~~~ pack.c:382:13: warning: conversion to 'int' from 'double' may alter its value [-Wfloat-conversion] s2.x = margin + ND_xsize(n) / 2; ^~~~~~ pack.c:383:13: warning: conversion to 'int' from 'double' may alter its value [-Wfloat-conversion] s2.y = margin + ND_ysize(n) / 2; ^~~~~~ pack.c:33:20: warning: cast from function call of type 'double' to non-matching type 'int' [-Wbad-function-cast] #define GRID(x,s) ((int)ceil((x)/(s))) ^ pack.c:401:9: note: in expansion of macro 'GRID' W = GRID(GD_bb(g).UR.x - GD_bb(g).LL.x + 2 * margin, ssize); ^~~~ pack.c:33:20: warning: cast from function call of type 'double' to non-matching type 'int' [-Wbad-function-cast] #define GRID(x,s) ((int)ceil((x)/(s))) ^ pack.c:402:9: note: in expansion of macro 'GRID' H = GRID(GD_bb(g).UR.y - GD_bb(g).LL.y + 2 * margin, ssize); ^~~~ pack.c: In function 'placeGraph': pack.c:33:20: warning: cast from function call of type 'double' to non-matching type 'int' [-Wbad-function-cast] #define GRID(x,s) ((int)ceil((x)/(s))) ^ pack.c:499:6: note: in expansion of macro 'GRID' W = GRID(bb.UR.x - bb.LL.x + 2 * margin, step); ^~~~ pack.c:33:20: warning: cast from function call of type 'double' to non-matching type 'int' [-Wbad-function-cast] #define GRID(x,s) ((int)ceil((x)/(s))) ^ pack.c:500:6: note: in expansion of macro 'GRID' H = GRID(bb.UR.y - bb.LL.y + 2 * margin, step); ^~~~ pack.c:507:9: warning: conversion to 'int' from 'double' may alter its value [-Wfloat-conversion] W = ceil(bb.UR.x - bb.LL.x); ^~~~ pack.c:508:9: warning: conversion to 'int' from 'double' may alter its value [-Wfloat-conversion] H = ceil(bb.UR.y - bb.LL.y); ^~~~ pack.c: In function 'ucmpf': pack.c:572:17: warning: cast discards 'const' qualifier from pointer target type [-Wcast-qual] ainfo* x = *(ainfo **) X; ^ pack.c:573:17: warning: cast discards 'const' qualifier from pointer target type [-Wcast-qual] ainfo* y = *(ainfo **) Y; ^ pack.c:575:14: warning: conversion to 'int' from 'packval_t {aka unsigned int}' may change the sign of the result [-Wsign-conversion] int dX = userVals[x->index]; ^~~~~~~~ pack.c:576:14: warning: conversion to 'int' from 'packval_t {aka unsigned int}' may change the sign of the result [-Wsign-conversion] int dY = userVals[y->index]; ^~~~~~~~ pack.c: In function 'acmpf': pack.c:587:17: warning: cast discards 'const' qualifier from pointer target type [-Wcast-qual] ainfo* x = *(ainfo **) X; ^ pack.c:588:17: warning: cast discards 'const' qualifier from pointer target type [-Wcast-qual] ainfo* y = *(ainfo **) Y; ^ In file included from /jenkins/jobs/oi-userland/workspace/components/image/graphviz/graphviz-2.40.1/lib/common/render.h:44:0, from pack.c:22: pack.c: In function 'arrayRects': /jenkins/jobs/oi-userland/workspace/components/image/graphviz/graphviz-2.40.1/lib/common/memory.h:36:41: warning: conversion to 'unsigned int' from 'int' may change the sign of the result [-Wsign-conversion] #define N_NEW(n,t) (t*)zmalloc((n)*sizeof(t)) ^ pack.c:621:21: note: in expansion of macro 'N_NEW' point* places = N_NEW(ng, point); ^~~~~ pack.c:634:11: warning: conversion to 'int' from 'double' may alter its value [-Wfloat-conversion] nr = ceil(sqrt(ng)); ^~~~ pack.c:645:11: warning: conversion to 'int' from 'double' may alter its value [-Wfloat-conversion] nc = ceil(sqrt(ng)); ^~~~ In file included from /jenkins/jobs/oi-userland/workspace/components/image/graphviz/graphviz-2.40.1/lib/common/render.h:44:0, from pack.c:22: /jenkins/jobs/oi-userland/workspace/components/image/graphviz/graphviz-2.40.1/lib/common/memory.h:36:41: warning: conversion to 'unsigned int' from 'int' may change the sign of the result [-Wsign-conversion] #define N_NEW(n,t) (t*)zmalloc((n)*sizeof(t)) ^ pack.c:651:14: note: in expansion of macro 'N_NEW' widths = N_NEW(nc+1, double); ^~~~~ /jenkins/jobs/oi-userland/workspace/components/image/graphviz/graphviz-2.40.1/lib/common/memory.h:36:41: warning: conversion to 'unsigned int' from 'int' may change the sign of the result [-Wsign-conversion] #define N_NEW(n,t) (t*)zmalloc((n)*sizeof(t)) ^ pack.c:652:15: note: in expansion of macro 'N_NEW' heights = N_NEW(nr+1, double); ^~~~~ /jenkins/jobs/oi-userland/workspace/components/image/graphviz/graphviz-2.40.1/lib/common/memory.h:36:41: warning: conversion to 'unsigned int' from 'int' may change the sign of the result [-Wsign-conversion] #define N_NEW(n,t) (t*)zmalloc((n)*sizeof(t)) ^ pack.c:654:17: note: in expansion of macro 'N_NEW' ip = info = N_NEW(ng, ainfo); ^~~~~ /jenkins/jobs/oi-userland/workspace/components/image/graphviz/graphviz-2.40.1/lib/common/memory.h:36:41: warning: conversion to 'unsigned int' from 'int' may change the sign of the result [-Wsign-conversion] #define N_NEW(n,t) (t*)zmalloc((n)*sizeof(t)) ^ pack.c:662:13: note: in expansion of macro 'N_NEW' sinfo = N_NEW(ng, ainfo*); ^~~~~ pack.c:669:15: warning: conversion to 'size_t {aka unsigned int}' from 'int' may change the sign of the result [-Wsign-conversion] qsort(sinfo, ng, sizeof(ainfo *), ucmpf); ^~ ccomps.c: In function 'markFn': ccomps.c:158:18: warning: conversion to 'char' from 'int' may alter its value [-Wconversion] ND_mark(n) = v; ^ pack.c:672:15: warning: conversion to 'size_t {aka unsigned int}' from 'int' may change the sign of the result [-Wsign-conversion] qsort(sinfo, ng, sizeof(ainfo *), acmpf); ^~ ccomps.c: In function 'setPrefix': ccomps.c:173:11: warning: conversion to 'int' from 'size_t {aka unsigned int}' may change the sign of the result [-Wsign-conversion] len = strlen(pfx); ^~~~~~ ccomps.c:177:39: warning: conversion to 'size_t {aka unsigned int}' from 'int' may change the sign of the result [-Wsign-conversion] if (!(name = (char *) gmalloc(len + 25))) return NULL; ^~~ pack.c:708:22: warning: conversion to 'int' from 'double' may alter its value [-Wfloat-conversion] places[idx].x = widths[c]; ^~~~~~ In file included from /jenkins/jobs/oi-userland/workspace/components/image/graphviz/graphviz-2.40.1/lib/common/render.h:44:0, from ccomps.c:17: ccomps.c: In function 'pccomps': pack.c:710:22: warning: conversion to 'int' from 'double' may alter its value [-Wfloat-conversion] places[idx].x = widths[c+1] - (bb.UR.x - bb.LL.x); ^~~~~~ /jenkins/jobs/oi-userland/workspace/components/image/graphviz/graphviz-2.40.1/lib/common/memory.h:39:41: warning: conversion to 'unsigned int' from 'int' may change the sign of the result [-Wsign-conversion] #define N_GNEW(n,t) (t*)gmalloc((n)*sizeof(t)) ^ ccomps.c:218:11: note: in expansion of macro 'N_GNEW' ccs = N_GNEW(bnd, Agraph_t *); ^~~~~~ pack.c:712:22: warning: conversion to 'int' from 'double' may alter its value [-Wfloat-conversion] places[idx].x = (widths[c] + widths[c+1] - bb.UR.x - bb.LL.x)/2.0; ^ pack.c:714:22: warning: conversion to 'int' from 'double' may alter its value [-Wfloat-conversion] places[idx].y = heights[r] - (bb.UR.y - bb.LL.y); ^~~~~~~ pack.c:716:22: warning: conversion to 'int' from 'double' may alter its value [-Wfloat-conversion] places[idx].y = heights[r+1]; ^~~~~~~ /jenkins/jobs/oi-userland/workspace/components/image/graphviz/graphviz-2.40.1/lib/common/memory.h:42:58: warning: conversion to 'unsigned int' from 'int' may change the sign of the result [-Wsign-conversion] #define RALLOC(size,ptr,type) ((type*)grealloc(ptr,(size)*sizeof(type))) ^ ccomps.c:253:12: note: in expansion of macro 'RALLOC' ccs = RALLOC(bnd, ccs, Agraph_t *); ^~~~~~ pack.c:718:22: warning: conversion to 'int' from 'double' may alter its value [-Wfloat-conversion] places[idx].y = (heights[r] + heights[r+1] - bb.UR.y - bb.LL.y)/2.0; ^ pack.c: In function 'polyRects': /jenkins/jobs/oi-userland/workspace/components/image/graphviz/graphviz-2.40.1/lib/common/memory.h:42:58: warning: conversion to 'unsigned int' from 'int' may change the sign of the result [-Wsign-conversion] #define RALLOC(size,ptr,type) ((type*)grealloc(ptr,(size)*sizeof(type))) ^ ccomps.c:272:8: note: in expansion of macro 'RALLOC' ccs = RALLOC(c_cnt, ccs, Agraph_t *); ^~~~~~ pack.c:741:36: warning: conversion to 'int' from 'unsigned int' may change the sign of the result [-Wsign-conversion] stepSize = computeStep(ng, gs, pinfo->margin); ^~~~~ ccomps.c: In function 'ccomps': /jenkins/jobs/oi-userland/workspace/components/image/graphviz/graphviz-2.40.1/lib/common/memory.h:39:41: warning: conversion to 'unsigned int' from 'int' may change the sign of the result [-Wsign-conversion] #define N_GNEW(n,t) (t*)gmalloc((n)*sizeof(t)) ^ ccomps.c:308:11: note: in expansion of macro 'N_GNEW' ccs = N_GNEW(bnd, Agraph_t *); ^~~~~~ In file included from /jenkins/jobs/oi-userland/workspace/components/image/graphviz/graphviz-2.40.1/lib/common/render.h:44:0, from pack.c:22: /jenkins/jobs/oi-userland/workspace/components/image/graphviz/graphviz-2.40.1/lib/common/memory.h:36:41: warning: conversion to 'unsigned int' from 'int' may change the sign of the result [-Wsign-conversion] #define N_NEW(n,t) (t*)zmalloc((n)*sizeof(t)) ^ pack.c:749:12: note: in expansion of macro 'N_NEW' info = N_NEW(ng, ginfo); ^~~~~ pack.c:752:36: warning: conversion to 'int' from 'unsigned int' may change the sign of the result [-Wsign-conversion] genBox(gs[i], info + i, stepSize, pinfo->margin, center, ""); ^~~~~ In file included from /jenkins/jobs/oi-userland/workspace/components/image/graphviz/graphviz-2.40.1/lib/common/render.h:44:0, from pack.c:22: /jenkins/jobs/oi-userland/workspace/components/image/graphviz/graphviz-2.40.1/lib/common/memory.h:36:41: warning: conversion to 'unsigned int' from 'int' may change the sign of the result [-Wsign-conversion] #define N_NEW(n,t) (t*)zmalloc((n)*sizeof(t)) ^ pack.c:756:13: note: in expansion of macro 'N_NEW' sinfo = N_NEW(ng, ginfo *); ^~~~~ /jenkins/jobs/oi-userland/workspace/components/image/graphviz/graphviz-2.40.1/lib/common/memory.h:42:58: warning: conversion to 'unsigned int' from 'int' may change the sign of the result [-Wsign-conversion] #define RALLOC(size,ptr,type) ((type*)grealloc(ptr,(size)*sizeof(type))) ^ ccomps.c:330:12: note: in expansion of macro 'RALLOC' ccs = RALLOC(bnd, ccs, Agraph_t *); ^~~~~~ pack.c:760:18: warning: conversion to 'size_t {aka unsigned int}' from 'int' may change the sign of the result [-Wsign-conversion] qsort(sinfo, ng, sizeof(ginfo *), cmpf); ^~ In file included from /jenkins/jobs/oi-userland/workspace/components/image/graphviz/graphviz-2.40.1/lib/common/render.h:44:0, from pack.c:22: /jenkins/jobs/oi-userland/workspace/components/image/graphviz/graphviz-2.40.1/lib/common/memory.h:36:41: warning: conversion to 'unsigned int' from 'int' may change the sign of the result [-Wsign-conversion] #define N_NEW(n,t) (t*)zmalloc((n)*sizeof(t)) ^ pack.c:763:14: note: in expansion of macro 'N_NEW' places = N_NEW(ng, point); ^~~~~ /jenkins/jobs/oi-userland/workspace/components/image/graphviz/graphviz-2.40.1/lib/common/memory.h:42:58: warning: conversion to 'unsigned int' from 'int' may change the sign of the result [-Wsign-conversion] #define RALLOC(size,ptr,type) ((type*)grealloc(ptr,(size)*sizeof(type))) ^ ccomps.c:336:11: note: in expansion of macro 'RALLOC' ccs = RALLOC(c_cnt, ccs, Agraph_t *); ^~~~~~ pack.c:766:20: warning: conversion to 'int' from 'unsigned int' may change the sign of the result [-Wsign-conversion] stepSize, pinfo->margin, gs); ^~~~~ ccomps.c: In function 'clMarkFn': ccomps.c:491:17: warning: conversion to 'char' from 'int' may alter its value [-Wconversion] clMark(n) = v; ^ In file included from /jenkins/jobs/oi-userland/workspace/components/image/graphviz/graphviz-2.40.1/lib/common/render.h:44:0, from pack.c:22: pack.c: In function 'polyGraphs': ccomps.c: At top level: ccomps.c:500:5: warning: no previous prototype for 'node_induce' [-Wmissing-prototypes] int node_induce(Agraph_t * g, Agraph_t* eg) ^~~~~~~~~~~ /jenkins/jobs/oi-userland/workspace/components/image/graphviz/graphviz-2.40.1/lib/common/memory.h:39:41: warning: conversion to 'unsigned int' from 'int' may change the sign of the result [-Wsign-conversion] #define N_GNEW(n,t) (t*)gmalloc((n)*sizeof(t)) ^ pack.c:849:11: note: in expansion of macro 'N_GNEW' bbs = N_GNEW(ng, boxf); ^~~~~~ pack.c:852:37: warning: conversion to 'int' from 'unsigned int' may change the sign of the result [-Wsign-conversion] stepSize = computeStep(ng, bbs, pinfo->margin); ^~~~~ In file included from /jenkins/jobs/oi-userland/workspace/components/image/graphviz/graphviz-2.40.1/lib/common/render.h:44:0, from pack.c:22: /jenkins/jobs/oi-userland/workspace/components/image/graphviz/graphviz-2.40.1/lib/common/memory.h:36:41: warning: conversion to 'unsigned int' from 'int' may change the sign of the result [-Wsign-conversion] #define N_NEW(n,t) (t*)zmalloc((n)*sizeof(t)) ^ pack.c:864:12: note: in expansion of macro 'N_NEW' info = N_NEW(ng, ginfo); ^~~~~ pack.c:869:43: warning: conversion to 'int' from 'unsigned int' may change the sign of the result [-Wsign-conversion] genBox(GD_bb(g), info + i, stepSize, pinfo->margin, center, agnameof(g)); ^~~~~ In file included from /jenkins/jobs/oi-userland/workspace/components/image/graphviz/graphviz-2.40.1/lib/common/render.h:44:0, from pack.c:22: /jenkins/jobs/oi-userland/workspace/components/image/graphviz/graphviz-2.40.1/lib/common/memory.h:36:41: warning: conversion to 'unsigned int' from 'int' may change the sign of the result [-Wsign-conversion] #define N_NEW(n,t) (t*)zmalloc((n)*sizeof(t)) ^ pack.c:876:13: note: in expansion of macro 'N_NEW' sinfo = N_NEW(ng, ginfo *); ^~~~~ pack.c:880:18: warning: conversion to 'size_t {aka unsigned int}' from 'int' may change the sign of the result [-Wsign-conversion] qsort(sinfo, ng, sizeof(ginfo *), cmpf); ^~ In file included from /jenkins/jobs/oi-userland/workspace/components/image/graphviz/graphviz-2.40.1/lib/common/render.h:44:0, from pack.c:22: /jenkins/jobs/oi-userland/workspace/components/image/graphviz/graphviz-2.40.1/lib/common/memory.h:36:41: warning: conversion to 'unsigned int' from 'int' may change the sign of the result [-Wsign-conversion] #define N_NEW(n,t) (t*)zmalloc((n)*sizeof(t)) ^ pack.c:883:14: note: in expansion of macro 'N_NEW' places = N_NEW(ng, point); ^~~~~ pack.c:893:17: warning: conversion to 'int' from 'unsigned int' may change the sign of the result [-Wsign-conversion] stepSize, pinfo->margin, bbs); ^~~~~ pack.c:898:20: warning: conversion to 'int' from 'unsigned int' may change the sign of the result [-Wsign-conversion] stepSize, pinfo->margin, bbs); ^~~~~ In file included from /jenkins/jobs/oi-userland/workspace/components/image/graphviz/graphviz-2.40.1/lib/common/render.h:44:0, from ccomps.c:17: ccomps.c: In function 'cccomps': /jenkins/jobs/oi-userland/workspace/components/image/graphviz/graphviz-2.40.1/lib/common/memory.h:39:41: warning: conversion to 'unsigned int' from 'int' may change the sign of the result [-Wsign-conversion] #define N_GNEW(n,t) (t*)gmalloc((n)*sizeof(t)) ^ ccomps.c:638:11: note: in expansion of macro 'N_GNEW' ccs = N_GNEW(agnnodes(dg), Agraph_t *); ^~~~~~ In file included from /jenkins/jobs/oi-userland/workspace/components/image/graphviz/graphviz-2.40.1/lib/common/render.h:44:0, from pack.c:22: pack.c: In function 'putGraphs': /jenkins/jobs/oi-userland/workspace/components/image/graphviz/graphviz-2.40.1/lib/common/memory.h:39:41: warning: conversion to 'unsigned int' from 'int' may change the sign of the result [-Wsign-conversion] #define N_GNEW(n,t) (t*)gmalloc((n)*sizeof(t)) ^ pack.c:930:11: note: in expansion of macro 'N_GNEW' bbs = N_GNEW(ng, boxf); ^~~~~~ /jenkins/jobs/oi-userland/workspace/components/image/graphviz/graphviz-2.40.1/lib/common/memory.h:36:41: warning: conversion to 'unsigned int' from 'int' may change the sign of the result [-Wsign-conversion] #define N_NEW(n,t) (t*)zmalloc((n)*sizeof(t)) ^ pack.c:940:20: note: in expansion of macro 'N_NEW' pinfo->vals = N_NEW(ng, packval_t); ^~~~~ pack.c:944:24: warning: conversion to 'packval_t {aka unsigned int}' from 'int' may change the sign of the result [-Wsign-conversion] pinfo->vals[i] = v; ^ /jenkins/jobs/oi-userland/workspace/components/image/graphviz/graphviz-2.40.1/lib/common/memory.h:42:58: warning: conversion to 'long unsigned int' from 'long int' may change the sign of the result [-Wsign-conversion] #define RALLOC(size,ptr,type) ((type*)grealloc(ptr,(size)*sizeof(type))) ^ ccomps.c:670:11: note: in expansion of macro 'RALLOC' ccs = RALLOC(c_cnt, ccs, Agraph_t *); ^~~~~~ pack.c: In function 'parsePackModeInfo': pack.c:1298:2: warning: switch missing default case [-Wswitch-default] switch (*p) { ^~~~~~ pack.c: In function 'getPackInfo': pack.c:1402:21: warning: conversion to 'unsigned int' from 'int' may change the sign of the result [-Wsign-conversion] pinfo->margin = getPack(g, dfltMargin, dfltMargin); ^~~~~~~ ccomps.c: In function 'pccomps': ccomps.c:198:9: warning: variable 'c_cnt' might be clobbered by 'longjmp' or 'vfork' [-Wclobbered] int c_cnt = 0; ^~~~~ ccomps.c:201:15: warning: variable 'out' might be clobbered by 'longjmp' or 'vfork' [-Wclobbered] Agraph_t *out = 0; ^~~ ccomps.c:204:9: warning: variable 'len' might be clobbered by 'longjmp' or 'vfork' [-Wclobbered] int len; ^~~ ccomps.c:205:9: warning: variable 'bnd' might be clobbered by 'longjmp' or 'vfork' [-Wclobbered] int bnd = 10; ^~~ ccomps.c:206:13: warning: variable 'pin' might be clobbered by 'longjmp' or 'vfork' [-Wclobbered] boolean pin = FALSE; ^~~ ccomps.c:210:9: warning: variable 'error' might be clobbered by 'longjmp' or 'vfork' [-Wclobbered] int error = 0; ^~~~~ ccomps.c:167:9: warning: variable 'len' might be clobbered by 'longjmp' or 'vfork' [-Wclobbered] int len; ^~~ ccomps.c:168:11: warning: variable 'name' might be clobbered by 'longjmp' or 'vfork' [-Wclobbered] char* name; ^~~~ ccomps.c: In function 'ccomps': ccomps.c:290:9: warning: variable 'c_cnt' might be clobbered by 'longjmp' or 'vfork' [-Wclobbered] int c_cnt = 0; ^~~~~ ccomps.c:296:9: warning: variable 'len' might be clobbered by 'longjmp' or 'vfork' [-Wclobbered] int len; ^~~ ccomps.c:297:9: warning: variable 'bnd' might be clobbered by 'longjmp' or 'vfork' [-Wclobbered] int bnd = 10; ^~~ ccomps.c:167:9: warning: variable 'len' might be clobbered by 'longjmp' or 'vfork' [-Wclobbered] int len; ^~~ ccomps.c:168:11: warning: variable 'name' might be clobbered by 'longjmp' or 'vfork' [-Wclobbered] char* name; ^~~~ ccomps.c: In function 'isConnected': ccomps.c:685:9: warning: variable 'ret' might be clobbered by 'longjmp' or 'vfork' [-Wclobbered] int ret = 1; ^~~ ccomps.c: In function 'cccomps': ccomps.c:645:2: warning: 'len' may be used uninitialized in this function [-Wmaybe-uninitialized] sprintf(name + len, "%ld", c_cnt); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ CCLD libpack_C.la make[6]: Leaving directory '/jenkins/jobs/oi-userland/workspace/components/image/graphviz/build/i86/lib/pack' Making all in xdot make[6]: Entering directory '/jenkins/jobs/oi-userland/workspace/components/image/graphviz/build/i86/lib/xdot' CC xdot.lo xdot.c: In function 'agxbmore': xdot.c:56:14: warning: conversion to 'unsigned int' from 'int' may change the sign of the result [-Wsign-conversion] if (size + ssz > nsize) ^ xdot.c:56:20: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] if (size + ssz > nsize) ^ xdot.c:57:15: warning: conversion to 'unsigned int' from 'int' may change the sign of the result [-Wsign-conversion] nsize = size + ssz; ^ xdot.c:57:10: warning: conversion to 'int' from 'unsigned int' may change the sign of the result [-Wsign-conversion] nsize = size + ssz; ^~~~ xdot.c:60:26: warning: conversion to 'size_t {aka unsigned int}' from 'int' may change the sign of the result [-Wsign-conversion] nbuf = realloc(xb->buf, nsize); ^~~~~ xdot.c:19:37: warning: conversion to 'size_t {aka unsigned int}' from 'int' may change the sign of the result [-Wsign-conversion] #define N_NEW(n,t) (t*)calloc((n), sizeof(t)) ^ xdot.c:62:9: note: in expansion of macro 'N_NEW' nbuf = N_NEW(nsize, unsigned char); ^~~~~ xdot.c:63:24: warning: conversion to 'size_t {aka unsigned int}' from 'int' may change the sign of the result [-Wsign-conversion] memcpy(nbuf, xb->buf, cnt); ^~~ xdot.c: In function 'agxbput': xdot.c:79:12: warning: conversion to 'int' from 'unsigned int' may change the sign of the result [-Wsign-conversion] return ssz; ^~~ xdot.c: In function 'parsePolyline': xdot.c:19:37: warning: conversion to 'size_t {aka unsigned int}' from 'int' may change the sign of the result [-Wsign-conversion] #define N_NEW(n,t) (t*)calloc((n), sizeof(t)) ^ xdot.c:191:16: note: in expansion of macro 'N_NEW' pts = ps = N_NEW(i, xdot_point); ^~~~~ xdot.c: In function 'parseString': xdot.c:19:37: warning: conversion to 'size_t {aka unsigned int}' from 'int' may change the sign of the result [-Wsign-conversion] #define N_NEW(n,t) (t*)calloc((n), sizeof(t)) ^ xdot.c:227:9: note: in expansion of macro 'N_NEW' c = N_NEW(i + 1, char); ^~~~~ xdot.c: In function 'parseXDotFOn': xdot.c:446:9: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] if (sz <= sizeof(xdot_op)) ^~ xdot.c:457:33: warning: conversion to 'size_t {aka unsigned int}' from 'int' may change the sign of the result [-Wsign-conversion] ops = (char *) calloc(XDBSIZE, sz); ^~ xdot.c:462:30: warning: conversion to 'size_t {aka unsigned int}' from 'int' may change the sign of the result [-Wsign-conversion] ops = (char *) realloc(ops, bufsz * sz); ^~~~~ xdot.c:463:35: warning: conversion to 'size_t {aka unsigned int}' from 'int' may change the sign of the result [-Wsign-conversion] memset(ops + (initcnt*sz), '\0', (bufsz - initcnt)*sz); ^ xdot.c:470:34: warning: conversion to 'size_t {aka unsigned int}' from 'int' may change the sign of the result [-Wsign-conversion] ops = (char *) realloc(ops, bufsz * sz); ^~~~~ xdot.c:471:37: warning: conversion to 'size_t {aka unsigned int}' from 'int' may change the sign of the result [-Wsign-conversion] memset(ops + (oldsz*sz), '\0', (bufsz - oldsz)*sz); ^ xdot.c:479:36: warning: conversion to 'size_t {aka unsigned int}' from 'int' may change the sign of the result [-Wsign-conversion] x->ops = (xdot_op *) realloc(ops, x->cnt * sz); ^ xdot.c: In function 'printAlign': xdot.c:589:5: warning: switch missing default case [-Wswitch-default] switch (a) { ^~~~~~ xdot.c: In function 'toGradString': xdot.c:616:14: warning: conversion to 'float' from 'double' may alter its value [-Wfloat-conversion] printFloat (cp->u.ling.x0, gradprint, xb, 0); ^~ xdot.c:617:14: warning: conversion to 'float' from 'double' may alter its value [-Wfloat-conversion] printFloat (cp->u.ling.y0, gradprint, xb, 1); ^~ xdot.c:618:14: warning: conversion to 'float' from 'double' may alter its value [-Wfloat-conversion] printFloat (cp->u.ling.x1, gradprint, xb, 1); ^~ xdot.c:619:14: warning: conversion to 'float' from 'double' may alter its value [-Wfloat-conversion] printFloat (cp->u.ling.y1, gradprint, xb, 1); ^~ xdot.c:625:14: warning: conversion to 'float' from 'double' may alter its value [-Wfloat-conversion] printFloat (cp->u.ring.x0, gradprint, xb, 0); ^~ xdot.c:626:14: warning: conversion to 'float' from 'double' may alter its value [-Wfloat-conversion] printFloat (cp->u.ring.y0, gradprint, xb, 1); ^~ xdot.c:627:14: warning: conversion to 'float' from 'double' may alter its value [-Wfloat-conversion] printFloat (cp->u.ring.r0, gradprint, xb, 1); ^~ xdot.c:628:14: warning: conversion to 'float' from 'double' may alter its value [-Wfloat-conversion] printFloat (cp->u.ring.x1, gradprint, xb, 1); ^~ xdot.c:629:14: warning: conversion to 'float' from 'double' may alter its value [-Wfloat-conversion] printFloat (cp->u.ring.y1, gradprint, xb, 1); ^~ xdot.c:630:14: warning: conversion to 'float' from 'double' may alter its value [-Wfloat-conversion] printFloat (cp->u.ring.r1, gradprint, xb, 1); ^~ xdot.c: In function 'printXDot_Op': xdot.c:703:11: warning: conversion to 'int' from 'double' may alter its value [-Wfloat-conversion] printInt(op->u.text.x, print, info); ^~ xdot.c:704:11: warning: conversion to 'int' from 'double' may alter its value [-Wfloat-conversion] printInt(op->u.text.y, print, info); ^~ xdot.c:706:11: warning: conversion to 'int' from 'double' may alter its value [-Wfloat-conversion] printInt(op->u.text.width, print, info); ^~ xdot.c:711:13: warning: conversion to 'float' from 'double' may alter its value [-Wfloat-conversion] printFloat(op->u.font.size, print, info, 1); ^~ xdot.c:716:11: warning: conversion to 'int' from 'unsigned int' may change the sign of the result [-Wsign-conversion] printInt(op->u.fontchar, print, info); ^~ xdot.c:654:5: warning: switch missing default case [-Wswitch-default] switch (op->kind) { ^~~~~~ xdot.c: In function 'jsonString': xdot.c:762:17: warning: conversion to 'unsigned char' from 'char' may change the sign of the result [-Wsign-conversion] while ((c = *p++)) { ^ xdot.c: In function 'jsonXDot_Op': xdot.c:828:11: warning: conversion to 'int' from 'double' may alter its value [-Wfloat-conversion] printInt(op->u.text.x, print, info); ^~ xdot.c:830:11: warning: conversion to 'int' from 'double' may alter its value [-Wfloat-conversion] printInt(op->u.text.y, print, info); ^~ xdot.c:834:11: warning: conversion to 'int' from 'double' may alter its value [-Wfloat-conversion] printInt(op->u.text.width, print, info); ^~ xdot.c:842:13: warning: conversion to 'float' from 'double' may alter its value [-Wfloat-conversion] printFloat(op->u.font.size, print, info, 1); ^~ xdot.c:849:11: warning: conversion to 'int' from 'unsigned int' may change the sign of the result [-Wsign-conversion] printInt(op->u.fontchar, print, info); ^~ xdot.c:779:5: warning: switch missing default case [-Wswitch-default] switch (op->kind) { ^~~~~~ xdot.c: At top level: xdot.c:1026:1: warning: no previous prototype for 'colorType' [-Wmissing-prototypes] colorType (char* cp) ^~~~~~~~~ xdot.c: In function 'radGradient': xdot.c:19:37: warning: conversion to 'size_t {aka unsigned int}' from 'int' may change the sign of the result [-Wsign-conversion] #define N_NEW(n,t) (t*)calloc((n), sizeof(t)) ^ xdot.c:1074:13: note: in expansion of macro 'N_NEW' stops = N_NEW(clr->u.ring.n_stops,xdot_color_stop); ^~~~~ xdot.c:1078:18: warning: conversion to 'float' from 'double' may alter its value [-Wfloat-conversion] stops[i].frac = d; ^ xdot.c: In function 'linGradient': xdot.c:19:37: warning: conversion to 'size_t {aka unsigned int}' from 'int' may change the sign of the result [-Wsign-conversion] #define N_NEW(n,t) (t*)calloc((n), sizeof(t)) ^ xdot.c:1111:13: note: in expansion of macro 'N_NEW' stops = N_NEW(clr->u.ling.n_stops,xdot_color_stop); ^~~~~ xdot.c:1115:18: warning: conversion to 'float' from 'double' may alter its value [-Wfloat-conversion] stops[i].frac = d; ^ CCLD libxdot.la CCLD libxdot_C.la make[6]: Leaving directory '/jenkins/jobs/oi-userland/workspace/components/image/graphviz/build/i86/lib/xdot' Making all in label make[6]: Entering directory '/jenkins/jobs/oi-userland/workspace/components/image/graphviz/build/i86/lib/label' CC rectangle.lo CC xlabels.lo CC index.lo CC node.lo CC split.q.lo node.c: In function 'PickBranch': node.c:131:13: warning: conversion to 'int' from 'unsigned int' may change the sign of the result [-Wsign-conversion] area = RectArea(rr); ^~~~~~~~ node.c:134:33: warning: conversion to 'unsigned int' from 'int' may change the sign of the result [-Wsign-conversion] increase = RectArea(&rect) - area; ^ node.c:134:17: warning: conversion to 'int' from 'unsigned int' may change the sign of the result [-Wsign-conversion] increase = RectArea(&rect) - area; ^~~~~~~~ index.c:63:5: warning: "UNUSED" is not defined, evaluates to 0 [-Wundef] #if UNUSED ^~~~~~ index.c: In function 'RTreeReInsert': index.c:73:36: warning: unused parameter 'rtp' [-Wunused-parameter] static int RTreeReInsert(RTree_t * rtp, Node_t * n, struct ListNode **ee) ^~~ In file included from index.c:17:0: index.c: In function 'RTreeDelete2': index.c:435:17: warning: ordered comparison of pointer with integer zero [-Wextra] assert(data >= 0); ^ xlabels.c: In function 'icompare': xlabels.c:32:28: warning: unused parameter 'dt' [-Wunused-parameter] static int icompare(Dt_t * dt, void * v1, void * v2, Dtdisc_t * disc) ^~ xlabels.c:32:65: warning: unused parameter 'disc' [-Wunused-parameter] static int icompare(Dt_t * dt, void * v1, void * v2, Dtdisc_t * disc) ^~~~ rectangle.c: In function 'RectArea': rectangle.c:138:31: warning: conversion to 'unsigned int' from 'int' may change the sign of the result [-Wsign-conversion] long long a_test = area * r->boundary[i + NUMDIMS] - r->boundary[i]; ^ rectangle.c:138:58: warning: conversion to 'unsigned int' from 'int' may change the sign of the result [-Wsign-conversion] long long a_test = area * r->boundary[i + NUMDIMS] - r->boundary[i]; ^ rectangle.c:143:14: warning: conversion to 'unsigned int' from 'long long int' may alter its value [-Wconversion] area = a_test; ^~~~~~ xlabels.c: At top level: xlabels.c:122:14: warning: no previous prototype for 'xlhorder' [-Wmissing-prototypes] unsigned int xlhorder(XLabels_t * xlp) ^~~~~~~~ xlabels.c: In function 'xlhorder': xlabels.c:125:22: warning: conversion to 'unsigned int' from 'double' may alter its value [-Wfloat-conversion] return floorLog2(maxx > maxy ? maxx : maxy) + 1; ^~~~ xlabels.c:125:49: warning: conversion to 'unsigned int' from 'int' may change the sign of the result [-Wsign-conversion] return floorLog2(maxx > maxy ? maxx : maxy) + 1; ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~ xlabels.c: In function 'hd_hil_s_from_xy': xlabels.c:169:12: warning: conversion to 'unsigned int' from 'int' may change the sign of the result [-Wsign-conversion] s = 4 * s + 2 * xi + (xi ^ yi); /* Append two bits to s. */ ^ xlabels.c:169:21: warning: conversion to 'unsigned int' from 'int' may change the sign of the result [-Wsign-conversion] s = 4 * s + 2 * xi + (xi ^ yi); /* Append two bits to s. */ ^ In file included from xlabels.c:13:0: xlabels.c: In function 'lblenclosing': xlabels.c:219:22: warning: comparing floating point with == or != is unsafe [-Wfloat-equal] assert(objp1->sz.x == 0 && objp1->sz.y == 0); ^ xlabels.c:219:42: warning: comparing floating point with == or != is unsafe [-Wfloat-equal] assert(objp1->sz.x == 0 && objp1->sz.y == 0); ^ xlabels.c: In function 'objp2rect': xlabels.c:232:22: warning: conversion to 'int' from 'double' may alter its value [-Wfloat-conversion] r->boundary[0] = op->pos.x; ^~ xlabels.c:233:22: warning: conversion to 'int' from 'double' may alter its value [-Wfloat-conversion] r->boundary[1] = op->pos.y; ^~ xlabels.c:234:22: warning: conversion to 'int' from 'double' may alter its value [-Wfloat-conversion] r->boundary[2] = op->pos.x + op->sz.x; ^~ xlabels.c:235:22: warning: conversion to 'int' from 'double' may alter its value [-Wfloat-conversion] r->boundary[3] = op->pos.y + op->sz.y; ^~ xlabels.c: In function 'objplp2rect': xlabels.c:243:22: warning: conversion to 'int' from 'double' may alter its value [-Wfloat-conversion] r->boundary[0] = lp->pos.x; ^~ xlabels.c:244:22: warning: conversion to 'int' from 'double' may alter its value [-Wfloat-conversion] r->boundary[1] = lp->pos.y; ^~ xlabels.c:245:22: warning: conversion to 'int' from 'double' may alter its value [-Wfloat-conversion] r->boundary[2] = lp->pos.x + lp->sz.x; ^~ xlabels.c:246:22: warning: conversion to 'int' from 'double' may alter its value [-Wfloat-conversion] r->boundary[3] = lp->pos.y + lp->sz.y; ^~ xlabels.c: In function 'objplpmks': xlabels.c:260:24: warning: cast from function call of type 'double' to non-matching type 'int' [-Wbad-function-cast] rect.boundary[0] = (int) floor(objp->pos.x - p.x); ^ xlabels.c:261:24: warning: cast from function call of type 'double' to non-matching type 'int' [-Wbad-function-cast] rect.boundary[1] = (int) floor(objp->pos.y - p.y); ^ xlabels.c:263:24: warning: cast from function call of type 'double' to non-matching type 'int' [-Wbad-function-cast] rect.boundary[2] = (int) ceil(objp->pos.x + objp->sz.x + p.x); ^ xlabels.c:265:24: warning: cast from function call of type 'double' to non-matching type 'int' [-Wbad-function-cast] rect.boundary[3] = (int) ceil(objp->pos.y + objp->sz.y + p.y); ^ xlabels.c:251:37: warning: unused parameter 'xlp' [-Wunused-parameter] static Rect_t objplpmks(XLabels_t * xlp, object_t * objp) ^~~ xlabels.c: In function 'getintrsxi': xlabels.c:280:20: warning: comparing floating point with == or != is unsafe [-Wfloat-equal] if ((op->pos.x == 0.0 && op->pos.y == 0.0) || ^~ xlabels.c:280:40: warning: comparing floating point with == or != is unsafe [-Wfloat-equal] if ((op->pos.x == 0.0 && op->pos.y == 0.0) || ^~ xlabels.c:281:13: warning: comparing floating point with == or != is unsafe [-Wfloat-equal] (cp->pos.x == 0.0 && cp->pos.y == 0.0)) ^~ xlabels.c:281:33: warning: comparing floating point with == or != is unsafe [-Wfloat-equal] (cp->pos.x == 0.0 && cp->pos.y == 0.0)) ^~ xlabels.c:272:35: warning: unused parameter 'xlp' [-Wunused-parameter] static int getintrsxi(XLabels_t * xlp, object_t * op, object_t * cp) ^~~ xlabels.c: In function 'xlhdxload': xlabels.c:581:17: warning: conversion to 'int' from 'unsigned int' may change the sign of the result [-Wsign-conversion] int order = xlhorder(xlp); ^~~~~~~~ xlabels.c:597:12: warning: conversion to 'int' from 'unsigned int' may change the sign of the result [-Wsign-conversion] hp->key = hd_hil_s_from_xy(pi, order); ^~~~~~~~~~~~~~~~ split.q.c: In function 'SplitNode': split.q.c:76:12: warning: conversion to 'int' from 'unsigned int' may change the sign of the result [-Wsign-conversion] area = RectArea(&p->cover[0]) + RectArea(&p->cover[1]); ^~~~~~~~ split.q.c:80:58: warning: conversion to 'float' from 'int' may alter its value [-Wconversion] rtp->SplitMeritSum += (float) rtp->split.CoverSplitArea / area; ^ xlabels.c: In function 'placeLabels': xlabels.c:680:20: warning: comparing floating point with == or != is unsafe [-Wfloat-equal] } else if(bp.area == 0) { ^~ split.q.c: In function 'MethodZero': split.q.c:169:23: warning: conversion to 'unsigned int' from 'int' may change the sign of the result [-Wsign-conversion] RectArea(&rect) - rtp->split.Partitions[0].area[0]; ^ split.q.c:169:7: warning: conversion to 'int' from 'unsigned int' may change the sign of the result [-Wsign-conversion] RectArea(&rect) - rtp->split.Partitions[0].area[0]; ^~~~~~~~ split.q.c:172:23: warning: conversion to 'unsigned int' from 'int' may change the sign of the result [-Wsign-conversion] RectArea(&rect) - rtp->split.Partitions[0].area[1]; ^ split.q.c:172:7: warning: conversion to 'int' from 'unsigned int' may change the sign of the result [-Wsign-conversion] RectArea(&rect) - rtp->split.Partitions[0].area[1]; ^~~~~~~~ split.q.c: In function 'Classify': split.q.c:270:2: warning: conversion to 'int' from 'unsigned int' may change the sign of the result [-Wsign-conversion] RectArea(&rtp->split.Partitions[0].cover[group]); ^~~~~~~~ CCLD liblabel_C.la make[6]: Leaving directory '/jenkins/jobs/oi-userland/workspace/components/image/graphviz/build/i86/lib/label' Making all in gvc make[6]: Entering directory '/jenkins/jobs/oi-userland/workspace/components/image/graphviz/build/i86/lib/gvc' CC gvrender.lo CC gvlayout.lo CC gvcontext.lo CC gvdevice.lo CC gvloadimage.lo CC gvplugin.lo CC gvevent.lo CC gvjobs.lo gvevent.c: In function 'gvevent_leave_obj': gvevent.c:230:37: warning: conversion to 'unsigned char' from 'int' may alter its value [-Wconversion] GD_gui_state((graph_t*)obj) &= ~GUI_STATE_ACTIVE; ^ gvevent.c:233:36: warning: conversion to 'unsigned char' from 'int' may alter its value [-Wconversion] ND_gui_state((node_t*)obj) &= ~GUI_STATE_ACTIVE; ^ gvevent.c:236:36: warning: conversion to 'unsigned char' from 'int' may alter its value [-Wconversion] ED_gui_state((edge_t*)obj) &= ~GUI_STATE_ACTIVE; ^ gvevent.c:228:9: warning: switch missing default case [-Wswitch-default] switch (agobjkind(obj)) { ^~~~~~ gvevent.c: In function 'gvevent_enter_obj': gvevent.c:257:9: warning: switch missing default case [-Wswitch-default] switch (agobjkind(obj)) { ^~~~~~ gvevent.c: In function 'gvevent_select_current_obj': gvevent.c:337:37: warning: conversion to 'unsigned char' from 'int' may alter its value [-Wconversion] GD_gui_state((graph_t*)obj) &= ~GUI_STATE_SELECTED; ^ gvevent.c:341:36: warning: conversion to 'unsigned char' from 'int' may alter its value [-Wconversion] ND_gui_state((node_t*)obj) &= ~GUI_STATE_SELECTED; ^ gvevent.c:345:36: warning: conversion to 'unsigned char' from 'int' may alter its value [-Wconversion] ED_gui_state((edge_t*)obj) &= ~GUI_STATE_SELECTED; ^ gvevent.c:334:9: warning: switch missing default case [-Wswitch-default] switch (agobjkind(obj)) { ^~~~~~ gvevent.c:357:9: warning: switch missing default case [-Wswitch-default] switch (agobjkind(obj)) { ^~~~~~ gvevent.c: In function 'gvevent_button_press': gvevent.c:390:16: warning: conversion to 'unsigned char' from 'int' may alter its value [-Wconversion] job->button = button; ^~~~~~ gvevent.c:395:16: warning: conversion to 'unsigned char' from 'int' may alter its value [-Wconversion] job->button = button; ^~~~~~ gvevent.c:401:16: warning: conversion to 'unsigned char' from 'int' may alter its value [-Wconversion] job->button = button; ^~~~~~ gvplugin.c: In function 'gvplugin_api': gvplugin.c:55:23: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] for (api = 0; api < ARRAY_SIZE(api_names); api++) { ^ gvevent.c:385:5: warning: switch missing default case [-Wswitch-default] switch (button) { ^~~~~~ gvevent.c: In function 'gvevent_button_release': gvevent.c:444:52: warning: unused parameter 'button' [-Wunused-parameter] static void gvevent_button_release(GVJ_t *job, int button, pointf pointer) ^~~~~~ gvevent.c:444:67: warning: unused parameter 'pointer' [-Wunused-parameter] static void gvevent_button_release(GVJ_t *job, int button, pointf pointer) ^~~~~~~ gvevent.c: In function 'gvevent_motion': gvevent.c:459:5: warning: switch missing default case [-Wswitch-default] switch (job->button) { ^~~~~~ gvevent.c: In function 'quit_cb': gvevent.c:483:28: warning: unused parameter 'job' [-Wunused-parameter] static int quit_cb(GVJ_t * job) ^~~ gvplugin.c: In function 'gvplugin_activate': gvplugin.c:130:73: warning: declaration of 'path' shadows a global declaration [-Wshadow] const char *typestr, char *name, char *path, gvplugin_installed_t * typeptr) ^~~~ In file included from gvplugin.c:23:0: /jenkins/jobs/oi-userland/workspace/components/image/graphviz/graphviz-2.40.1/lib/common/types.h:105:7: note: shadowed declaration is here } path; ^~~~ gvevent.c: In function 'toggle_fit_cb': gvevent.c:548:15: warning: conversion to 'int' from 'unsigned int' may change the sign of the result [-Wsign-conversion] dflt_width = job->width; ^~~ gvevent.c:549:16: warning: conversion to 'int' from 'unsigned int' may change the sign of the result [-Wsign-conversion] dflt_height = job->height; ^~~ gvplugin.c: In function 'gvplugin_library_load': gvplugin.c:150:62: warning: declaration of 'path' shadows a global declaration [-Wshadow] gvplugin_library_t *gvplugin_library_load(GVC_t * gvc, char *path) ^~~~ In file included from gvplugin.c:23:0: /jenkins/jobs/oi-userland/workspace/components/image/graphviz/graphviz-2.40.1/lib/common/types.h:105:7: note: shadowed declaration is here } path; ^~~~ gvevent.c: In function 'gvevent_modify': gvevent.c:560:37: warning: unused parameter 'job' [-Wunused-parameter] static void gvevent_modify (GVJ_t * job, const char *name, const char *value) ^~~ gvevent.c:560:54: warning: unused parameter 'name' [-Wunused-parameter] static void gvevent_modify (GVJ_t * job, const char *name, const char *value) ^~~~ gvplugin.c:166:11: warning: conversion to 'int' from 'size_t {aka unsigned int}' may change the sign of the result [-Wsign-conversion] len = strlen(libdir) + 1 + strlen(path) + 1; ^~~~~~ gvevent.c:560:72: warning: unused parameter 'value' [-Wunused-parameter] static void gvevent_modify (GVJ_t * job, const char *name, const char *value) ^~~~~ gvevent.c: In function 'gvevent_delete': gvplugin.c:170:29: warning: conversion to 'size_t {aka unsigned int}' from 'int' may change the sign of the result [-Wsign-conversion] p = grealloc(p, lenp); ^~~~ gvevent.c:565:37: warning: unused parameter 'job' [-Wunused-parameter] static void gvevent_delete (GVJ_t * job) ^~~ gvplugin.c:172:25: warning: conversion to 'size_t {aka unsigned int}' from 'int' may change the sign of the result [-Wsign-conversion] p = gmalloc(lenp); ^~~~ gvlayout.c: In function 'gvFreeLayout': gvplugin.c:192:58: warning: cast discards 'const' qualifier from pointer target type [-Wcast-qual] agerr(AGWARN, "Could not load \"%s\" - %s\n", p, (char *) lt_dlerror()); ^ gvlayout.c:102:26: warning: unused parameter 'gvc' [-Wunused-parameter] int gvFreeLayout(GVC_t * gvc, Agraph_t * g) ^~~ gvplugin.c:199:11: warning: conversion to 'int' from 'size_t {aka unsigned int}' may change the sign of the result [-Wsign-conversion] len = strlen(s); ^~~~~~ gvplugin.c:203:13: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] if (len < strlen("/libgvplugin_x")) { ^ gvplugin.c:208:23: warning: conversion to 'size_t {aka unsigned int}' from 'int' may change the sign of the result [-Wsign-conversion] sym = gmalloc(len + strlen(suffix) + 1); ^ gvplugin.c: At top level: gvplugin.c:413:8: warning: no previous prototype for 'gvPluginList' [-Wmissing-prototypes] char **gvPluginList(GVC_t * gvc, const char *kind, int *sz, const char *str) ^~~~~~~~~~~~ gvplugin.c: In function 'gvPluginList': gvplugin.c:423:23: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] for (api = 0; api < ARRAY_SIZE(api_names); api++) { ^ In file included from gvplugin.c:22:0: /jenkins/jobs/oi-userland/workspace/components/image/graphviz/graphviz-2.40.1/lib/common/memory.h:42:58: warning: conversion to 'unsigned int' from 'int' may change the sign of the result [-Wsign-conversion] #define RALLOC(size,ptr,type) ((type*)grealloc(ptr,(size)*sizeof(type))) ^ gvplugin.c:441:20: note: in expansion of macro 'RALLOC' list = RALLOC(cnt + 1, list, char *); ^~~~~~ gvplugin.c:413:73: warning: unused parameter 'str' [-Wunused-parameter] char **gvPluginList(GVC_t * gvc, const char *kind, int *sz, const char *str) ^~~ gvplugin.c: In function 'gvplugin_write_status': gvplugin.c:467:23: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] for (api = 0; api < ARRAY_SIZE(api_names); api++) { ^ gvplugin.c: In function 'gvplugin_graph': gvplugin.c:518:27: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] for (api = 0; api < ARRAY_SIZE(api_names); api++) { ^ gvplugin.c:697:27: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] for (api = 0; api < ARRAY_SIZE(api_names); api++) { ^ gvjobs.c: In function 'gv_argvlist_set_item': gvjobs.c:114:49: warning: conversion to 'unsigned int' from 'int' may change the sign of the result [-Wsign-conversion] list->argv = grealloc(list->argv, (list->alloc)*(sizeof(char*))); ^ gvdevice.c:45:11: warning: conversion to 'char' alters 'int' constant value [-Wconversion] {0x1f, 0x8b, /*magic*/ Z_DEFLATED, 0 /*flags*/, 0,0,0,0 /*time*/, 0 /*xflags*/, OS_CODE}; ^~~~ gvrender.c: In function 'gvrender_ptf_A': gvrender.c:161:59: warning: declaration of 'AF' shadows a global declaration [-Wshadow] pointf *gvrender_ptf_A(GVJ_t * job, pointf * af, pointf * AF, int n) ^~ gvrender.c:43:16: note: shadowed declaration is here static pointf *AF; ^~ gvrender.c: In function 'gvrender_resolve_color': gvrender.c:198:32: warning: conversion to 'size_t {aka unsigned int}' from 'int' may change the sign of the result [-Wsign-conversion] (tok, features->knowncolors, features->sz_knowncolors, ^~~~~~~~ gvrender.c: In function 'gvrender_begin_graph': gvrender.c:216:50: warning: unused parameter 'g' [-Wunused-parameter] void gvrender_begin_graph(GVJ_t * job, graph_t * g) ^ gvrender.c: In function 'gvrender_begin_cluster': gvrender.c:292:52: warning: unused parameter 'sg' [-Wunused-parameter] void gvrender_begin_cluster(GVJ_t * job, graph_t * sg) ^~ gvrender.c: In function 'gvrender_end_cluster': gvrender.c:302:50: warning: unused parameter 'g' [-Wunused-parameter] void gvrender_end_cluster(GVJ_t * job, graph_t * g) ^ gvrender.c: In function 'gvrender_begin_node': gvrender.c:352:48: warning: unused parameter 'n' [-Wunused-parameter] void gvrender_begin_node(GVJ_t * job, node_t * n) ^ gvrender.c: In function 'gvrender_begin_edge': gvrender.c:372:48: warning: unused parameter 'e' [-Wunused-parameter] void gvrender_begin_edge(GVJ_t * job, edge_t * e) ^ gvrender.c: In function 'gvrender_ellipse': gvrender.c:539:53: warning: unused parameter 'n' [-Wunused-parameter] void gvrender_ellipse(GVJ_t * job, pointf * pf, int n, int filled) ^ gvrender.c: In function 'gvrender_polygon': gvrender.c:579:32: warning: conversion to 'unsigned int' from 'int' may change the sign of the result [-Wsign-conversion] AF = grealloc(AF, sizeAF * sizeof(pointf)); ^ gvrender.c: In function 'gvrender_beziercurve': gvrender.c:619:32: warning: conversion to 'unsigned int' from 'int' may change the sign of the result [-Wsign-conversion] AF = grealloc(AF, sizeAF * sizeof(pointf)); ^ gvrender.c: In function 'gvrender_polyline': gvrender.c:640:32: warning: conversion to 'unsigned int' from 'int' may change the sign of the result [-Wsign-conversion] AF = grealloc(AF, sizeAF * sizeof(pointf)); ^ gvdevice.c: In function 'gvwrite_no_z': gvdevice.c:67:35: warning: cast discards 'const' qualifier from pointer target type [-Wcast-qual] return (job->gvc->write_fn)(job, (char*)s, len); ^ gvdevice.c:71:72: warning: conversion to 'unsigned int' from 'int' may change the sign of the result [-Wsign-conversion] job->output_data_allocated = (job->output_data_position + len + 1 + PAGE_ALIGN) & ~PAGE_ALIGN; ^ gvdevice.c:71:86: warning: conversion to 'unsigned int' from 'int' may change the sign of the result [-Wsign-conversion] job->output_data_allocated = (job->output_data_position + len + 1 + PAGE_ALIGN) & ~PAGE_ALIGN; ^ gvdevice.c: In function 'gvwrite': gvdevice.c:212:31: warning: conversion to 'size_t {aka unsigned int}' from 'int' may change the sign of the result [-Wsign-conversion] dfallocated = (dflen + 1 + PAGE_ALIGN) & ~PAGE_ALIGN; ^ gvdevice.c:212:45: warning: conversion to 'size_t {aka unsigned int}' from 'int' may change the sign of the result [-Wsign-conversion] dfallocated = (dflen + 1 + PAGE_ALIGN) & ~PAGE_ALIGN; ^ gvdevice.c:220:19: warning: cast discards 'const' qualifier from pointer target type [-Wcast-qual] crc = crc32(crc, (unsigned char*)s, len); ^ gvdevice.c:220:14: warning: conversion to 'uLong {aka long unsigned int}' from 'uint64_t {aka long long unsigned int}' may alter its value [-Wconversion] crc = crc32(crc, (unsigned char*)s, len); ^~~ gvdevice.c:222:15: warning: cast discards 'const' qualifier from pointer target type [-Wcast-qual] z->next_in = (unsigned char*)s; ^ gvdevice.c:227:10: warning: conversion to 'size_t {aka unsigned int}' from 'int' may change the sign of the result [-Wsign-conversion] ret=deflate (z, Z_NO_FLUSH); ^~~~~~~ gvdevice.c:233:18: warning: conversion to 'size_t {aka unsigned int}' from 'int' may change the sign of the result [-Wsign-conversion] if ((olen = z->next_out - df)) { ^ gvdevice.c: In function 'gvputc': gvdevice.c:285:21: warning: conversion to 'char' from 'int' may alter its value [-Wconversion] const char cc = c; ^ gvdevice.c: In function 'gvdevice_finalize': gvdevice.c:343:35: warning: conversion to 'size_t {aka unsigned int}' from 'int' may change the sign of the result [-Wsign-conversion] gvwrite_no_z(job, (char*)df, z->next_out - df); ^ gvdevice.c:351:31: warning: conversion to 'size_t {aka unsigned int}' from 'int' may change the sign of the result [-Wsign-conversion] gvwrite_no_z(job, (char*)df, z->next_out - df); ^ gvdevice.c:358:11: warning: conversion to 'unsigned char' from 'uint64_t {aka long long unsigned int}' may alter its value [-Wconversion] out[0] = crc; ^~~ gvdevice.c:359:11: warning: conversion to 'unsigned char' from 'uint64_t {aka long long unsigned int}' may alter its value [-Wconversion] out[1] = crc >> 8; ^~~ gvdevice.c:360:11: warning: conversion to 'unsigned char' from 'uint64_t {aka long long unsigned int}' may alter its value [-Wconversion] out[2] = crc >> 16; ^~~ gvdevice.c:361:11: warning: conversion to 'unsigned char' from 'uint64_t {aka long long unsigned int}' may alter its value [-Wconversion] out[3] = crc >> 24; ^~~ gvdevice.c:362:11: warning: conversion to 'unsigned char' from 'uLong {aka long unsigned int}' may alter its value [-Wconversion] out[4] = z->total_in; ^ gvdevice.c:363:11: warning: conversion to 'unsigned char' from 'uLong {aka long unsigned int}' may alter its value [-Wconversion] out[5] = z->total_in >> 8; ^ gvdevice.c:364:11: warning: conversion to 'unsigned char' from 'uLong {aka long unsigned int}' may alter its value [-Wconversion] out[6] = z->total_in >> 16; ^ gvdevice.c:365:11: warning: conversion to 'unsigned char' from 'uLong {aka long unsigned int}' may alter its value [-Wconversion] out[7] = z->total_in >> 24; ^ gvdevice.c: In function 'gvprintf': gvdevice.c:410:15: warning: conversion to 'size_t {aka unsigned int}' from 'int' may change the sign of the result [-Wsign-conversion] bp = gmalloc(len + 1); ^~~ gvdevice.c:420:22: warning: conversion to 'size_t {aka unsigned int}' from 'int' may change the sign of the result [-Wsign-conversion] gvwrite(job, bp, len); ^~~ gvdevice.c: In function 'gvprintnum': gvdevice.c:467:13: warning: conversion to 'long int' from 'double' may alter its value [-Wfloat-conversion] N = number - 0.5; ^~~~~~ gvdevice.c:469:13: warning: conversion to 'long int' from 'double' may alter its value [-Wfloat-conversion] N = number + 0.5; ^~~~~~ gvdevice.c:486:25: warning: conversion to 'char' from 'int' may alter its value [-Wconversion] *--result = digit | '0'; /* convert digit to ascii */ ^~~~~ gvdevice.c:500:12: warning: conversion to 'size_t {aka unsigned int}' from 'int' may change the sign of the result [-Wsign-conversion] *len = tmpbuf+sizeof(maxnegnumstr) - result; ^~~~~~ CC gvconfig.lo CC gvtool_tred.lo CC gvtextlayout.lo CC gvusershape.lo CC gvc.lo gvusershape.c: In function 'imagetype': gvusershape.c:92:23: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] for (i = 0; i < sizeof(knowntypes) / sizeof(knowntype_t); i++) { ^ gvusershape.c:93:51: warning: conversion to 'size_t {aka unsigned int}' from 'int' may change the sign of the result [-Wsign-conversion] if (!memcmp (header, knowntypes[i].template, knowntypes[i].size)) { ^~~~~~~~~~ gvusershape.c: In function 'get_int_lsb_first': gvusershape.c:128:19: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] for (i = 0; i < sz; i++) { ^ gvusershape.c:132:7: warning: conversion to 'unsigned int' from 'int' may change the sign of the result [-Wsign-conversion] *val |= (ch << 8*i); ^~ gvusershape.c: In function 'get_int_msb_first': gvusershape.c:142:19: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] for (i = 0; i < sz; i++) { ^ gvusershape.c:147:7: warning: conversion to 'unsigned int' from 'int' may change the sign of the result [-Wsign-conversion] *val |= ch; ^~ In file included from /jenkins/jobs/oi-userland/workspace/components/image/graphviz/graphviz-2.40.1/lib/common/geom.h:20:0, from /jenkins/jobs/oi-userland/workspace/components/image/graphviz/graphviz-2.40.1/lib/common/types.h:35, from gvusershape.c:32: gvusershape.c: In function 'svg_units_convert': /jenkins/jobs/oi-userland/workspace/components/image/graphviz/graphviz-2.40.1/lib/common/arith.h:87:46: warning: conversion to 'unsigned int' from 'int' may change the sign of the result [-Wsign-conversion] #define ROUND(f) ((f>=0)?(int)(f + .5):(int)(f - .5)) ~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~ gvusershape.c:155:9: note: in expansion of macro 'ROUND' return ROUND(n * POINTS_PER_INCH); ^~~~~ /jenkins/jobs/oi-userland/workspace/components/image/graphviz/graphviz-2.40.1/lib/common/arith.h:87:46: warning: conversion to 'unsigned int' from 'int' may change the sign of the result [-Wsign-conversion] #define ROUND(f) ((f>=0)?(int)(f + .5):(int)(f - .5)) ~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~ gvusershape.c:155:9: note: in expansion of macro 'ROUND' return ROUND(n * POINTS_PER_INCH); ^~~~~ /jenkins/jobs/oi-userland/workspace/components/image/graphviz/graphviz-2.40.1/lib/common/arith.h:87:46: warning: conversion to 'unsigned int' from 'int' may change the sign of the result [-Wsign-conversion] #define ROUND(f) ((f>=0)?(int)(f + .5):(int)(f - .5)) ~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~ gvusershape.c:157:16: note: in expansion of macro 'ROUND' return ROUND(n * POINTS_PER_INCH / 96); ^~~~~ /jenkins/jobs/oi-userland/workspace/components/image/graphviz/graphviz-2.40.1/lib/common/arith.h:87:46: warning: conversion to 'unsigned int' from 'int' may change the sign of the result [-Wsign-conversion] #define ROUND(f) ((f>=0)?(int)(f + .5):(int)(f - .5)) ~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~ gvusershape.c:157:16: note: in expansion of macro 'ROUND' return ROUND(n * POINTS_PER_INCH / 96); ^~~~~ /jenkins/jobs/oi-userland/workspace/components/image/graphviz/graphviz-2.40.1/lib/common/arith.h:87:46: warning: conversion to 'unsigned int' from 'int' may change the sign of the result [-Wsign-conversion] #define ROUND(f) ((f>=0)?(int)(f + .5):(int)(f - .5)) ~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~ gvusershape.c:159:16: note: in expansion of macro 'ROUND' return ROUND(n * POINTS_PER_INCH / 6); ^~~~~ /jenkins/jobs/oi-userland/workspace/components/image/graphviz/graphviz-2.40.1/lib/common/arith.h:87:46: warning: conversion to 'unsigned int' from 'int' may change the sign of the result [-Wsign-conversion] #define ROUND(f) ((f>=0)?(int)(f + .5):(int)(f - .5)) ~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~ gvusershape.c:159:16: note: in expansion of macro 'ROUND' return ROUND(n * POINTS_PER_INCH / 6); ^~~~~ /jenkins/jobs/oi-userland/workspace/components/image/graphviz/graphviz-2.40.1/lib/common/arith.h:87:46: warning: conversion to 'unsigned int' from 'int' may change the sign of the result [-Wsign-conversion] #define ROUND(f) ((f>=0)?(int)(f + .5):(int)(f - .5)) ~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~ gvusershape.c:161:16: note: in expansion of macro 'ROUND' return ROUND(n); ^~~~~ /jenkins/jobs/oi-userland/workspace/components/image/graphviz/graphviz-2.40.1/lib/common/arith.h:87:46: warning: conversion to 'unsigned int' from 'int' may change the sign of the result [-Wsign-conversion] #define ROUND(f) ((f>=0)?(int)(f + .5):(int)(f - .5)) ~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~ gvusershape.c:161:16: note: in expansion of macro 'ROUND' return ROUND(n); ^~~~~ /jenkins/jobs/oi-userland/workspace/components/image/graphviz/graphviz-2.40.1/lib/common/arith.h:87:46: warning: conversion to 'unsigned int' from 'int' may change the sign of the result [-Wsign-conversion] #define ROUND(f) ((f>=0)?(int)(f + .5):(int)(f - .5)) ~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~ gvusershape.c:163:16: note: in expansion of macro 'ROUND' return ROUND(n * POINTS_PER_CM); ^~~~~ /jenkins/jobs/oi-userland/workspace/components/image/graphviz/graphviz-2.40.1/lib/common/arith.h:87:46: warning: conversion to 'unsigned int' from 'int' may change the sign of the result [-Wsign-conversion] #define ROUND(f) ((f>=0)?(int)(f + .5):(int)(f - .5)) ~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~ gvusershape.c:163:16: note: in expansion of macro 'ROUND' return ROUND(n * POINTS_PER_CM); ^~~~~ /jenkins/jobs/oi-userland/workspace/components/image/graphviz/graphviz-2.40.1/lib/common/arith.h:87:46: warning: conversion to 'unsigned int' from 'int' may change the sign of the result [-Wsign-conversion] #define ROUND(f) ((f>=0)?(int)(f + .5):(int)(f - .5)) ~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~ gvusershape.c:165:16: note: in expansion of macro 'ROUND' return ROUND(n * POINTS_PER_MM); ^~~~~ /jenkins/jobs/oi-userland/workspace/components/image/graphviz/graphviz-2.40.1/lib/common/arith.h:87:46: warning: conversion to 'unsigned int' from 'int' may change the sign of the result [-Wsign-conversion] #define ROUND(f) ((f>=0)?(int)(f + .5):(int)(f - .5)) ~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~ gvusershape.c:165:16: note: in expansion of macro 'ROUND' return ROUND(n * POINTS_PER_MM); ^~~~~ gvusershape.c: In function 'svg_size': gvusershape.c:227:7: warning: conversion to 'unsigned int' from 'double' may alter its value [-Wfloat-conversion] w = x1 - x0 + 1; ^~ gvusershape.c:228:7: warning: conversion to 'unsigned int' from 'double' may alter its value [-Wfloat-conversion] h = y1 - y0 + 1; ^~ gvusershape.c:236:13: warning: conversion to 'int' from 'unsigned int' may change the sign of the result [-Wsign-conversion] us->w = w; ^ gvusershape.c:237:13: warning: conversion to 'int' from 'unsigned int' may change the sign of the result [-Wsign-conversion] us->h = h; ^ gvusershape.c: In function 'png_size': gvusershape.c:247:17: warning: conversion to 'int' from 'unsigned int' may change the sign of the result [-Wsign-conversion] us->w = w; ^ gvusershape.c:248:17: warning: conversion to 'int' from 'unsigned int' may change the sign of the result [-Wsign-conversion] us->h = h; ^ gvusershape.c: In function 'ico_size': gvusershape.c:259:17: warning: conversion to 'int' from 'unsigned int' may change the sign of the result [-Wsign-conversion] us->w = w; ^ gvusershape.c:260:17: warning: conversion to 'int' from 'unsigned int' may change the sign of the result [-Wsign-conversion] us->h = h; ^ gvusershape.c: In function 'webp_size': gvusershape.c:289:21: warning: conversion to 'int' from 'unsigned int' may change the sign of the result [-Wsign-conversion] us->w = w; ^ gvusershape.c:290:21: warning: conversion to 'int' from 'unsigned int' may change the sign of the result [-Wsign-conversion] us->h = h; ^ gvusershape.c:296:21: warning: conversion to 'int' from 'unsigned int' may change the sign of the result [-Wsign-conversion] us->w = w; ^ gvusershape.c:297:21: warning: conversion to 'int' from 'unsigned int' may change the sign of the result [-Wsign-conversion] us->h = h; ^ gvusershape.c: In function 'gif_size': gvusershape.c:309:17: warning: conversion to 'int' from 'unsigned int' may change the sign of the result [-Wsign-conversion] us->w = w; ^ gvusershape.c:310:17: warning: conversion to 'int' from 'unsigned int' may change the sign of the result [-Wsign-conversion] us->h = h; ^ gvusershape.c: In function 'bmp_size': gvusershape.c:323:17: warning: conversion to 'int' from 'unsigned int' may change the sign of the result [-Wsign-conversion] us->w = size_x_msw << 16 | size_x_lsw; ^~~~~~~~~~ gvusershape.c:324:17: warning: conversion to 'int' from 'unsigned int' may change the sign of the result [-Wsign-conversion] us->h = size_y_msw << 16 | size_y_lsw; ^~~~~~~~~~ gvusershape.c: In function 'jpeg_size': gvusershape.c:363:48: warning: conversion to 'int' from 'unsigned int' may change the sign of the result [-Wsign-conversion] if (strchr ((char*)standalone_markers, marker)) ^~~~~~ gvusershape.c:374:25: warning: conversion to 'int' from 'unsigned int' may change the sign of the result [-Wsign-conversion] us->h = size_x; ^~~~~~ gvusershape.c:375:25: warning: conversion to 'int' from 'unsigned int' may change the sign of the result [-Wsign-conversion] us->w = size_y; ^~~~~~ gvusershape.c:389:25: warning: conversion to 'int' from 'unsigned int' may change the sign of the result [-Wsign-conversion] us->h = size_x; ^~~~~~ gvusershape.c:390:25: warning: conversion to 'int' from 'unsigned int' may change the sign of the result [-Wsign-conversion] us->w = size_y; ^~~~~~ gvusershape.c:399:23: warning: conversion to 'long int' from 'unsigned int' may change the sign of the result [-Wsign-conversion] fseek (us->f, length - 2, SEEK_CUR); ^~~~~~ gvusershape.c: In function 'nxtc': gvusershape.c:450:9: warning: conversion to 'unsigned char' from 'char' may change the sign of the result [-Wsign-conversion] return *(str->s); ^~~~~~~~~ gvusershape.c: In function 'skipWS': gvusershape.c:456:17: warning: conversion to 'unsigned char' from 'char' may change the sign of the result [-Wsign-conversion] #define strc(x) (*(x->s)?*(x->s):nxtc(x)) ^ gvusershape.c:463:17: note: in expansion of macro 'strc' while ((c = strc(str))) { ^~~~ gvusershape.c: In function 'getNum': gvusershape.c:456:17: warning: conversion to 'char' from 'unsigned char' may change the sign of the result [-Wsign-conversion] #define strc(x) (*(x->s)?*(x->s):nxtc(x)) ^ gvusershape.c:486:17: note: in expansion of macro 'strc' while ((c = strc(str)) && (isdigit(c) || (c == '.'))) { ^~~~ gvusershape.c: In function 'pdf_size': gvusershape.c:539:10: warning: conversion to 'int' from 'double' may alter its value [-Wfloat-conversion] us->x = bb.LL.x; ^~ gvusershape.c:540:10: warning: conversion to 'int' from 'double' may alter its value [-Wfloat-conversion] us->y = bb.LL.y; ^~ gvusershape.c:541:17: warning: conversion to 'int' from 'double' may alter its value [-Wfloat-conversion] us->w = bb.UR.x - bb.LL.x; ^~ gvconfig.c: In function 'gvplugin_package_record': gvusershape.c:542:17: warning: conversion to 'int' from 'double' may alter its value [-Wfloat-conversion] us->h = bb.UR.y - bb.LL.y; ^~ gvconfig.c:93:72: warning: declaration of 'path' shadows a global declaration [-Wshadow] static gvplugin_package_t * gvplugin_package_record(GVC_t * gvc, char *path, char *name) ^~~~ gvusershape.c: In function 'usershape_close': gvusershape.c:546:39: warning: unused parameter 'dict' [-Wunused-parameter] static void usershape_close (Dict_t * dict, void * p, Dtdisc_t * disc) ^~~~ In file included from gvconfig.c:54:0: /jenkins/jobs/oi-userland/workspace/components/image/graphviz/graphviz-2.40.1/lib/common/types.h:105:7: note: shadowed declaration is here } path; ^~~~ gvusershape.c:546:66: warning: unused parameter 'disc' [-Wunused-parameter] static void usershape_close (Dict_t * dict, void * p, Dtdisc_t * disc) ^~~~ gvusershape.c: At top level: gvusershape.c:569:14: warning: no previous prototype for 'gvusershape_find' [-Wmissing-prototypes] usershape_t *gvusershape_find(const char *name) ^~~~~~~~~~~~~~~~ In file included from /jenkins/jobs/oi-userland/workspace/components/image/graphviz/graphviz-2.40.1/lib/cgraph/cgraph.h:18:0, from /jenkins/jobs/oi-userland/workspace/components/image/graphviz/graphviz-2.40.1/lib/common/types.h:39, from gvusershape.c:32: gvusershape.c: In function 'gvusershape_find': /jenkins/jobs/oi-userland/workspace/components/image/graphviz/graphviz-2.40.1/lib/cdt/cdt.h:277:47: warning: cast discards 'const' qualifier from pointer target type [-Wcast-qual] #define dtmatch(d,o) (*(_DT(d)->searchf))((d),(void*)(o),DT_MATCH) ^ gvusershape.c:579:10: note: in expansion of macro 'dtmatch' us = dtmatch(ImageDict, name); ^~~~~~~ gvconfig.c: In function 'gvconfig_plugin_install_from_config': gvconfig.c:171:11: warning: declaration of 'path' shadows a global declaration [-Wshadow] char *path, *name, *api; ^~~~ In file included from gvconfig.c:54:0: /jenkins/jobs/oi-userland/workspace/components/image/graphviz/graphviz-2.40.1/lib/common/types.h:105:7: note: shadowed declaration is here } path; ^~~~ gvusershape.c: In function 'freeUsershape': gvusershape.c:630:32: warning: cast discards 'const' qualifier from pointer target type [-Wcast-qual] if (us->name) agstrfree(0, (char*)us->name); ^ gvconfig.c: In function 'gvconfig_plugin_install_from_library': gvconfig.c:210:62: warning: declaration of 'path' shadows a global declaration [-Wshadow] void gvconfig_plugin_install_from_library(GVC_t * gvc, char *path, gvplugin_library_t *library) ^~~~ In file included from gvconfig.c:54:0: /jenkins/jobs/oi-userland/workspace/components/image/graphviz/graphviz-2.40.1/lib/common/types.h:105:7: note: shadowed declaration is here } path; ^~~~ gvusershape.c: In function 'gvusershape_open': gvusershape.c:647:26: warning: cast discards 'const' qualifier from pointer target type [-Wcast-qual] us->name = agstrdup (0, (char*)name); ^ gvconfig.c: In function 'gvconfig_write_library_config': gvconfig.c:240:61: warning: declaration of 'path' shadows a global declaration [-Wshadow] static void gvconfig_write_library_config(GVC_t *gvc, char *path, gvplugin_library_t *library, FILE *f) ^~~~ In file included from gvconfig.c:54:0: /jenkins/jobs/oi-userland/workspace/components/image/graphviz/graphviz-2.40.1/lib/common/types.h:105:7: note: shadowed declaration is here } path; ^~~~ gvusershape.c: At top level: gvusershape.c:709:1: warning: no previous prototype for 'gvusershape_size_dpi' [-Wmissing-prototypes] gvusershape_size_dpi (usershape_t* us, pointf dpi) ^~~~~~~~~~~~~~~~~~~~ gvusershape.c: In function 'gvusershape_size_dpi': gvusershape.c:720:9: warning: conversion to 'int' from 'double' may alter its value [-Wfloat-conversion] rv.x = us->w * POINTS_PER_INCH / dpi.x; ^~ gvusershape.c:721:9: warning: conversion to 'int' from 'double' may alter its value [-Wfloat-conversion] rv.y = us->h * POINTS_PER_INCH / dpi.y; ^~ gvusershape.c: At top level: gvconfig.c: In function 'gvconfig_libdir': gvconfig.c:328:12: warning: declaration of 'path' shadows a global declaration [-Wshadow] char* path; ^~~~ In file included from gvconfig.c:54:0: /jenkins/jobs/oi-userland/workspace/components/image/graphviz/graphviz-2.40.1/lib/common/types.h:105:7: note: shadowed declaration is here } path; ^~~~ gvusershape.c:730:7: warning: no previous prototype for 'gvusershape_size' [-Wmissing-prototypes] point gvusershape_size(graph_t * g, char *name) ^~~~~~~~~~~~~~~~ gvconfig.c: In function 'config_rescan': gvconfig.c:369:37: warning: declaration of 'path' shadows a global declaration [-Wshadow] char *config_glob, *config_re, *path, *libdir; ^~~~ In file included from gvconfig.c:54:0: /jenkins/jobs/oi-userland/workspace/components/image/graphviz/graphviz-2.40.1/lib/common/types.h:105:7: note: shadowed declaration is here } path; ^~~~ gvconfig.c:443:16: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] for (i = 0; i < globbuf.gl_pathc; i++) { ^ gvconfig.c:453:16: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] for (i = 0; i < globbuf.gl_pathc; i++) { ^ gvconfig.c: In function 'gvconfig': gvconfig.c:542:36: warning: conversion to 'size_t {aka unsigned int}' from 'long int' may change the sign of the result [-Wsign-conversion] config_text = gmalloc(config_st.st_size + 1); ^~~~~~~~~ gvconfig.c:543:41: warning: conversion to 'size_t {aka unsigned int}' from 'off_t {aka long int}' may change the sign of the result [-Wsign-conversion] sz = fread(config_text, 1, config_st.st_size, f); ^~~~~~~~~ gvconfig.c:543:19: warning: conversion to 'int' from 'size_t {aka unsigned int}' may change the sign of the result [-Wsign-conversion] sz = fread(config_text, 1, config_st.st_size, f); ^~~~~ CCLD libgvc.la CCLD libgvc_C.la ld: warning: file /jenkins/jobs/oi-userland/workspace/components/image/graphviz/build/i86/lib/cdt/.libs/libcdt.so: linked to ../../lib/cdt/.libs/libcdt.so: attempted multiple inclusion of file make[6]: Leaving directory '/jenkins/jobs/oi-userland/workspace/components/image/graphviz/build/i86/lib/gvc' Making all in ingraphs make[6]: Entering directory '/jenkins/jobs/oi-userland/workspace/components/image/graphviz/build/i86/lib/ingraphs' CC ingraphs.lo CCLD libingraphs_C.la make[6]: Leaving directory '/jenkins/jobs/oi-userland/workspace/components/image/graphviz/build/i86/lib/ingraphs' Making all in topfish Making all in glcomp Making all in mingle Making all in edgepaint make[6]: Entering directory '/jenkins/jobs/oi-userland/workspace/components/image/graphviz/build/i86/lib/edgepaint' CC lab_gamut.lo CC edge_distinct_coloring.lo CC furtherest_point.lo CC lab.lo CC intersection.lo CC node_distinct_coloring.lo In file included from /jenkins/jobs/oi-userland/workspace/components/image/graphviz/graphviz-2.40.1/lib/sparse/general.h:30:0, from node_distinct_coloring.c:10: node_distinct_coloring.c: In function 'node_distinct_coloring_internal2': /jenkins/jobs/oi-userland/workspace/components/image/graphviz/graphviz-2.40.1/lib/common/arith.h:43:18: warning: conversion to 'int' from 'double' may alter its value [-Wfloat-conversion] #define MAX(a,b) ((a)>(b)?(a):(b)) ^ node_distinct_coloring.c:51:15: note: in expansion of macro 'MAX' max_level = MAX(1, -log(accuracy)/log(2.)); ^~~ furtherest_point.c: In function 'furtherest_point': furtherest_point.c:89:48: warning: conversion to 'unsigned int' from 'int' may change the sign of the result [-Wsign-conversion] if (!(*argmax)) *argmax = MALLOC(sizeof(real)*dim); ^ node_distinct_coloring.c:103:9: warning: conversion to 'unsigned int' from 'int' may change the sign of the result [-Wsign-conversion] srand(seed); ^~~~ furtherest_point.c:90:39: warning: conversion to 'unsigned int' from 'int' may change the sign of the result [-Wsign-conversion] MEMCPY(*argmax, center, sizeof(real)*dim); ^ furtherest_point.c:92:33: warning: conversion to 'unsigned int' from 'int' may change the sign of the result [-Wsign-conversion] candidates = MALLOC(sizeof(qt)*ncandidates_max); ^ node_distinct_coloring.c:119:26: warning: conversion to 'unsigned int' from 'int' may change the sign of the result [-Wsign-conversion] x = MALLOC(sizeof(real)*cdim*n); ^ furtherest_point.c:93:34: warning: conversion to 'unsigned int' from 'int' may change the sign of the result [-Wsign-conversion] candidates2 = MALLOC(sizeof(qt)*ncandidates2_max); ^ node_distinct_coloring.c:119:31: warning: conversion to 'unsigned int' from 'int' may change the sign of the result [-Wsign-conversion] x = MALLOC(sizeof(real)*cdim*n); ^ node_distinct_coloring.c:120:43: warning: conversion to 'unsigned int' from 'int' may change the sign of the result [-Wsign-conversion] if (weightedQ) wgt = MALLOC(sizeof(real)*n); ^ node_distinct_coloring.c:135:75: warning: comparing floating point with == or != is unsafe [-Wfloat-equal] while (iter++ < iter_max && (color_diff > color_diff_old || (color_diff == color_diff_old && color_diff_sum > color_diff_sum_old))){ ^~ node_distinct_coloring.c:143:58: warning: conversion to 'unsigned int' from 'int' may change the sign of the result [-Wsign-conversion] MEMCPY(&(x[k*cdim]), &(colors[ja[j]*cdim]), sizeof(real)*cdim); ^ furtherest_point.c:119:40: warning: conversion to 'unsigned int' from 'int' may change the sign of the result [-Wsign-conversion] qt->qts = MALLOC(sizeof(QuadTree)*(1<qts[ii]->center, sizeof(real)*dim); ^ furtherest_point.c:138:57: warning: conversion to 'unsigned int' from 'int' may change the sign of the result [-Wsign-conversion] candidates2 = REALLOC(candidates2, sizeof(QuadTree)*ncandidates2_max); ^ furtherest_point.c: In function 'furtherest_point_in_list': furtherest_point.c:221:48: warning: conversion to 'unsigned int' from 'int' may change the sign of the result [-Wsign-conversion] if (!(*argmax)) *argmax = MALLOC(sizeof(real)*dim); ^ furtherest_point.c:222:40: warning: conversion to 'unsigned int' from 'int' may change the sign of the result [-Wsign-conversion] MEMCPY(*argmax, average, sizeof(real)*dim); ^ furtherest_point.c:224:33: warning: conversion to 'unsigned int' from 'int' may change the sign of the result [-Wsign-conversion] candidates = MALLOC(sizeof(qt)*ncandidates_max); ^ node_distinct_coloring.c: In function 'node_distinct_coloring': node_distinct_coloring.c:262:13: warning: declaration of 'colors' shadows a parameter [-Wshadow] double *colors = NULL; ^~~~~~ node_distinct_coloring.c:208:156: note: shadowed declaration is here void node_distinct_coloring(char *color_scheme, char *lightness, int weightedQ, SparseMatrix A0, real accuracy, int iter_max, int seed, int *cdim0, real **colors, real *color_diff0, ^~~~~~ furtherest_point.c:225:34: warning: conversion to 'unsigned int' from 'int' may change the sign of the result [-Wsign-conversion] candidates2 = MALLOC(sizeof(qt)*ncandidates2_max); ^ node_distinct_coloring.c:285:34: warning: conversion to 'unsigned int' from 'int' may change the sign of the result [-Wsign-conversion] *colors = MALLOC(sizeof(real)*cdim*n); ^ node_distinct_coloring.c:285:39: warning: conversion to 'unsigned int' from 'int' may change the sign of the result [-Wsign-conversion] *colors = MALLOC(sizeof(real)*cdim*n); ^ node_distinct_coloring.c:287:29: warning: conversion to 'unsigned int' from 'int' may change the sign of the result [-Wsign-conversion] ctmp = MALLOC(sizeof(real)*cdim*n); ^ node_distinct_coloring.c:287:34: warning: conversion to 'unsigned int' from 'int' may change the sign of the result [-Wsign-conversion] ctmp = MALLOC(sizeof(real)*cdim*n); ^ node_distinct_coloring.c:310:65: warning: conversion to 'unsigned int' from 'int' may change the sign of the result [-Wsign-conversion] MEMCPY(&((*colors)[comps[j]*cdim]), &(ctmp[jj*cdim]), cdim*sizeof(real)); ^ furtherest_point.c:263:54: warning: conversion to 'unsigned int' from 'int' may change the sign of the result [-Wsign-conversion] MEMCPY(*argmax, qt->qts[ii]->average, sizeof(real)*dim); ^ furtherest_point.c:270:57: warning: conversion to 'unsigned int' from 'int' may change the sign of the result [-Wsign-conversion] candidates2 = REALLOC(candidates2, sizeof(QuadTree)*ncandidates2_max); ^ lab.c: In function 'color_lab_init': lab.c:34:11: warning: conversion to 'signed char' from 'double' may alter its value [-Wfloat-conversion] lab.l = l; lab.a = a; lab.b = b; ^ lab.c:34:22: warning: conversion to 'signed char' from 'double' may alter its value [-Wfloat-conversion] lab.l = l; lab.a = a; lab.b = b; ^ lab.c:34:33: warning: conversion to 'signed char' from 'double' may alter its value [-Wfloat-conversion] lab.l = l; lab.a = a; lab.b = b; ^ lab.c: In function 'LAB2RGB_real_01': lab.c:75:11: warning: conversion to 'signed char' from 'double' may alter its value [-Wfloat-conversion] lab.l = color[0]; ^~~~~ lab.c:76:11: warning: conversion to 'signed char' from 'double' may alter its value [-Wfloat-conversion] lab.a = color[1]; ^~~~~ lab.c:77:11: warning: conversion to 'signed char' from 'double' may alter its value [-Wfloat-conversion] lab.b = color[2]; ^~~~~ lab.c: At top level: lab.c:140:6: warning: no previous prototype for 'get_level' [-Wmissing-prototypes] void get_level(QuadTree qt, int *level0){ ^~~~~~~~~ lab.c: In function 'lab_gamut_from_file': lab.c:189:30: warning: conversion to 'unsigned int' from 'int' may change the sign of the result [-Wsign-conversion] x = malloc(sizeof(double)*3*(*n)); ^ lab.c: In function 'lab_gamut': lab.c:231:30: warning: conversion to 'unsigned int' from 'int' may change the sign of the result [-Wsign-conversion] x = malloc(sizeof(double)*3*m); ^ lab.c: In function 'lab_gamut_quadtree': lab.c:247:35: warning: unused parameter 'gamut_file' [-Wunused-parameter] QuadTree lab_gamut_quadtree(char *gamut_file, const char *lightness, int max_qtree_level){ ^~~~~~~~~~ intersection.c:65:6: warning: no previous prototype for 'point_line_distance' [-Wmissing-prototypes] real point_line_distance(real *p, real *q, real *r){ ^~~~~~~~~~~~~~~~~~~ lab.c: In function 'color_blend_rgb2lab': lab.c:299:33: warning: conversion to 'unsigned int' from 'int' may change the sign of the result [-Wsign-conversion] lab = malloc(sizeof(color_lab)*MAX(nc,1)); ^ lab.c:310:32: warning: conversion to 'unsigned int' from 'int' may change the sign of the result [-Wsign-conversion] dists = malloc(sizeof(double)*MAX(1, nc)); ^ intersection.c:111:6: warning: no previous prototype for 'intersection_angle' [-Wmissing-prototypes] real intersection_angle(real *p1, real *p2, real *q1, real *q2){ ^~~~~~~~~~~~~~~~~~ lab.c:323:37: warning: conversion to 'unsigned int' from 'int' may change the sign of the result [-Wsign-conversion] *colors0 = malloc(sizeof(double)*maxpoints*cdim); ^ lab.c:323:47: warning: conversion to 'unsigned int' from 'int' may change the sign of the result [-Wsign-conversion] *colors0 = malloc(sizeof(double)*maxpoints*cdim); ^ intersection.c: In function 'intersection_angle': intersection.c:165:15: warning: comparing floating point with == or != is unsafe [-Wfloat-equal] if (p1[0] == q1[0] && p1[1] == q1[1]){ ^~ intersection.c:165:33: warning: comparing floating point with == or != is unsafe [-Wfloat-equal] if (p1[0] == q1[0] && p1[1] == q1[1]){ ^~ intersection.c:167:22: warning: comparing floating point with == or != is unsafe [-Wfloat-equal] } else if (p1[0] == q2[0] && p1[1] == q2[1]){ ^~ intersection.c:167:40: warning: comparing floating point with == or != is unsafe [-Wfloat-equal] } else if (p1[0] == q2[0] && p1[1] == q2[1]){ ^~ intersection.c:169:22: warning: comparing floating point with == or != is unsafe [-Wfloat-equal] } else if (p2[0] == q1[0] && p2[1] == q1[1]){ ^~ lab.c: In function 'color_blend_rgb': intersection.c:169:40: warning: comparing floating point with == or != is unsafe [-Wfloat-equal] } else if (p2[0] == q1[0] && p2[1] == q1[1]){ ^~ lab.c:381:33: warning: conversion to 'unsigned int' from 'int' may change the sign of the result [-Wsign-conversion] lab = malloc(sizeof(color_lab)*MAX(nc,1)); ^ intersection.c:171:22: warning: comparing floating point with == or != is unsafe [-Wfloat-equal] } else if (p2[0] == q2[0] && p2[1] == q2[1]){ ^~ intersection.c:171:40: warning: comparing floating point with == or != is unsafe [-Wfloat-equal] } else if (p2[0] == q2[0] && p2[1] == q2[1]){ ^~ lab.c:392:24: warning: comparing floating point with == or != is unsafe [-Wfloat-equal] if (nc == 1 || ratio == 0){ ^~ lab.c:401:32: warning: conversion to 'unsigned int' from 'int' may change the sign of the result [-Wsign-conversion] dists = malloc(sizeof(double)*MAX(1, nc)); ^ lab.c:410:19: warning: comparing floating point with == or != is unsafe [-Wfloat-equal] if (dists[nc-1] == 0){/* same color in the list */ ^~ edge_distinct_coloring.c: In function 'splines_intersect': edge_distinct_coloring.c:38:27: warning: conversion to 'unsigned int' from 'int' may change the sign of the result [-Wsign-conversion] x1 = MALLOC(sizeof(real)*len1); ^ edge_distinct_coloring.c:39:27: warning: conversion to 'unsigned int' from 'int' may change the sign of the result [-Wsign-conversion] x2 = MALLOC(sizeof(real)*len2); ^ edge_distinct_coloring.c:84:36: warning: conversion to 'unsigned int' from 'int' may change the sign of the result [-Wsign-conversion] x1 = REALLOC(x1, sizeof(real)*len1); ^ edge_distinct_coloring.c:91:36: warning: conversion to 'unsigned int' from 'int' may change the sign of the result [-Wsign-conversion] x1 = REALLOC(x1, sizeof(real)*len1); ^ edge_distinct_coloring.c:122:36: warning: conversion to 'unsigned int' from 'int' may change the sign of the result [-Wsign-conversion] x2 = REALLOC(x2, sizeof(real)*len2); ^ edge_distinct_coloring.c:129:36: warning: conversion to 'unsigned int' from 'int' may change the sign of the result [-Wsign-conversion] x2 = REALLOC(x2, sizeof(real)*len2); ^ edge_distinct_coloring.c:20:15: warning: unused parameter 'x' [-Wunused-parameter] real *x, char *xsplines1, char *xsplines2){ ^ edge_distinct_coloring.c: At top level: edge_distinct_coloring.c:159:11: warning: no previous prototype for 'edge_distinct_coloring' [-Wmissing-prototypes] Agraph_t* edge_distinct_coloring(char *color_scheme, char *lightness, Agraph_t* g, real angle, real accuracy, int check_edges_with_same_endpoint, int seed){ ^~~~~~~~~~~~~~~~~~~~~~ CCLD libedgepaint_C.la CCLD liblab_gamut.la make[6]: Leaving directory '/jenkins/jobs/oi-userland/workspace/components/image/graphviz/build/i86/lib/edgepaint' Making all in circogen make[6]: Entering directory '/jenkins/jobs/oi-userland/workspace/components/image/graphviz/build/i86/lib/circogen' CC nodelist.lo CC edgelist.lo CC circularinit.lo CC block.lo CC deglist.lo CC blockpath.lo CC circular.lo CC blocktree.lo In file included from /jenkins/jobs/oi-userland/workspace/components/image/graphviz/graphviz-2.40.1/lib/common/render.h:44:0, from circular.h:17, from circularinit.c:28: circularinit.c: In function 'circular_init_node_edge': /jenkins/jobs/oi-userland/workspace/components/image/graphviz/graphviz-2.40.1/lib/common/memory.h:36:41: warning: conversion to 'unsigned int' from 'int' may change the sign of the result [-Wsign-conversion] #define N_NEW(n,t) (t*)zmalloc((n)*sizeof(t)) ^ circularinit.c:48:18: note: in expansion of macro 'N_NEW' ndata* alg = N_NEW(agnnodes(g), ndata); ^~~~~ /jenkins/jobs/oi-userland/workspace/components/image/graphviz/graphviz-2.40.1/lib/common/memory.h:36:41: warning: conversion to 'unsigned int' from 'int' may change the sign of the result [-Wsign-conversion] #define N_NEW(n,t) (t*)zmalloc((n)*sizeof(t)) ^ circularinit.c:50:25: note: in expansion of macro 'N_NEW' GD_neato_nlist(g) = N_NEW(agnnodes(g) + 1, node_t *); ^~~~~ circularinit.c: In function 'makeDerivedNode': /jenkins/jobs/oi-userland/workspace/components/image/graphviz/graphviz-2.40.1/lib/common/memory.h:36:41: warning: conversion to 'unsigned int' from 'int' may change the sign of the result [-Wsign-conversion] #define N_NEW(n,t) (t*)zmalloc((n)*sizeof(t)) ^ circularinit.c:85:14: note: in expansion of macro 'N_NEW' ND_pos(n) = N_NEW(Ndim, double); ^~~~~ circularinit.c: At top level: circularinit.c:103:12: warning: no previous prototype for 'circomps' [-Wmissing-prototypes] Agraph_t **circomps(Agraph_t * g, int *cnt) ^~~~~~~~ edgelist.c: In function 'mkItem': edgelist.c:18:36: warning: unused parameter 'd' [-Wunused-parameter] static edgelistitem *mkItem(Dt_t * d, edgelistitem * obj, Dtdisc_t * disc) ^ edgelist.c:18:70: warning: unused parameter 'disc' [-Wunused-parameter] static edgelistitem *mkItem(Dt_t * d, edgelistitem * obj, Dtdisc_t * disc) ^~~~ edgelist.c: In function 'freeItem': edgelist.c:26:29: warning: unused parameter 'd' [-Wunused-parameter] static void freeItem(Dt_t * d, edgelistitem * obj, Dtdisc_t * disc) ^ edgelist.c:26:63: warning: unused parameter 'disc' [-Wunused-parameter] static void freeItem(Dt_t * d, edgelistitem * obj, Dtdisc_t * disc) ^~~~ edgelist.c: In function 'cmpItem': edgelist.c:32:16: warning: unused parameter 'd' [-Wunused-parameter] cmpItem(Dt_t * d, Agedge_t ** key1, Agedge_t ** key2, Dtdisc_t * disc) ^ edgelist.c:32:66: warning: unused parameter 'disc' [-Wunused-parameter] cmpItem(Dt_t * d, Agedge_t ** key1, Agedge_t ** key2, Dtdisc_t * disc) ^~~~ circular.c: In function 'cleanup': circular.c:59:50: warning: unused parameter 'sp' [-Wunused-parameter] static void cleanup(block_t * root, circ_state * sp) ^~ nodelist.c: In function 'node_position': nodelist.c:310:32: warning: unused parameter 'list' [-Wunused-parameter] int node_position(nodelist_t * list, Agnode_t * n) ^~~~ In file included from /jenkins/jobs/oi-userland/workspace/components/image/graphviz/graphviz-2.40.1/lib/common/render.h:44:0, from ./circular.h:17, from blockpath.h:21, from blockpath.c:15: blockpath.c: In function 'find_pair_edges': /jenkins/jobs/oi-userland/workspace/components/image/graphviz/graphviz-2.40.1/lib/common/memory.h:39:41: warning: conversion to 'unsigned int' from 'int' may change the sign of the result [-Wsign-conversion] #define N_GNEW(n,t) (t*)gmalloc((n)*sizeof(t)) ^ blockpath.c:105:22: note: in expansion of macro 'N_GNEW' neighbors_with = N_GNEW(node_degree, Agnode_t *); ^~~~~~ /jenkins/jobs/oi-userland/workspace/components/image/graphviz/graphviz-2.40.1/lib/common/memory.h:39:41: warning: conversion to 'unsigned int' from 'int' may change the sign of the result [-Wsign-conversion] #define N_GNEW(n,t) (t*)gmalloc((n)*sizeof(t)) ^ blockpath.c:106:25: note: in expansion of macro 'N_GNEW' neighbors_without = N_GNEW(node_degree, Agnode_t *); ^~~~~~ blockpath.c: In function 'find_longest_path': blockpath.c:281:17: warning: declaration of 'path' shadows a global declaration [-Wshadow] nodelist_t *path; ^~~~ In file included from /jenkins/jobs/oi-userland/workspace/components/image/graphviz/graphviz-2.40.1/lib/common/render.h:40:0, from ./circular.h:17, from blockpath.h:21, from blockpath.c:15: /jenkins/jobs/oi-userland/workspace/components/image/graphviz/graphviz-2.40.1/lib/common/types.h:105:7: note: shadowed declaration is here } path; ^~~~ deglist.c: In function 'mkItem': deglist.c:26:31: warning: unused parameter 'd' [-Wunused-parameter] static degitem *mkItem(Dt_t * d, degitem * obj, Dtdisc_t * disc) ^ deglist.c:26:60: warning: unused parameter 'disc' [-Wunused-parameter] static degitem *mkItem(Dt_t * d, degitem * obj, Dtdisc_t * disc) ^~~~ deglist.c: In function 'freeItem': deglist.c:35:29: warning: unused parameter 'd' [-Wunused-parameter] static void freeItem(Dt_t * d, degitem * obj, Dtdisc_t * disc) ^ deglist.c:35:58: warning: unused parameter 'disc' [-Wunused-parameter] static void freeItem(Dt_t * d, degitem * obj, Dtdisc_t * disc) ^~~~ deglist.c: In function 'cmpDegree': deglist.c:40:29: warning: unused parameter 'd' [-Wunused-parameter] static int cmpDegree(Dt_t * d, int *key1, int *key2, Dtdisc_t * disc) ^ deglist.c:40:65: warning: unused parameter 'disc' [-Wunused-parameter] static int cmpDegree(Dt_t * d, int *key1, int *key2, Dtdisc_t * disc) ^~~~ CC circpos.lo CC nodeset.lo circpos.c: In function 'getRotation': circpos.c:50:38: warning: unused parameter 'g' [-Wunused-parameter] getRotation(block_t * sn, Agraph_t * g, double x, double y, double theta) ^ circpos.c: In function 'applyDelta': circpos.c:152:13: warning: comparing floating point with == or != is unsafe [-Wfloat-equal] if (rotate != 0) { ^~ circpos.c: In function 'positionChildren': circpos.c:295:21: warning: comparing floating point with == or != is unsafe [-Wfloat-equal] if (childAngle != 0) { ^~ circpos.c: In function 'position': circpos.c:354:65: warning: declaration of 'path' shadows a global declaration [-Wshadow] position(Agraph_t * g, int childCount, int length, nodelist_t * path, ^~~~ In file included from /jenkins/jobs/oi-userland/workspace/components/image/graphviz/graphviz-2.40.1/lib/common/render.h:40:0, from ./circular.h:17, from blockpath.h:21, from circpos.c:22: /jenkins/jobs/oi-userland/workspace/components/image/graphviz/graphviz-2.40.1/lib/common/types.h:105:7: note: shadowed declaration is here } path; ^~~~ In file included from /jenkins/jobs/oi-userland/workspace/components/image/graphviz/graphviz-2.40.1/lib/common/render.h:44:0, from ./circular.h:17, from blockpath.h:21, from circpos.c:22: /jenkins/jobs/oi-userland/workspace/components/image/graphviz/graphviz-2.40.1/lib/common/memory.h:36:41: warning: conversion to 'unsigned int' from 'int' may change the sign of the result [-Wsign-conversion] #define N_NEW(n,t) (t*)zmalloc((n)*sizeof(t)) ^ circpos.c:364:26: note: in expansion of macro 'N_NEW' posinfo_t* parents = N_NEW(childCount, posinfo_t); ^~~~~ circpos.c: At top level: circpos.c:475:6: warning: no previous prototype for 'circPos' [-Wmissing-prototypes] void circPos(Agraph_t * g, block_t * sn, circ_state * state) ^~~~~~~ nodeset.c: In function 'mkItem': nodeset.c:18:32: warning: unused parameter 'd' [-Wunused-parameter] static nsitem_t *mkItem(Dt_t * d, nsitem_t * obj, Dtdisc_t * disc) ^ nodeset.c:18:62: warning: unused parameter 'disc' [-Wunused-parameter] static nsitem_t *mkItem(Dt_t * d, nsitem_t * obj, Dtdisc_t * disc) ^~~~ nodeset.c: In function 'freeItem': nodeset.c:26:29: warning: unused parameter 'd' [-Wunused-parameter] static void freeItem(Dt_t * d, nsitem_t * obj, Dtdisc_t * disc) ^ nodeset.c:26:59: warning: unused parameter 'disc' [-Wunused-parameter] static void freeItem(Dt_t * d, nsitem_t * obj, Dtdisc_t * disc) ^~~~ nodeset.c: In function 'cmpItem': nodeset.c:32:16: warning: unused parameter 'd' [-Wunused-parameter] cmpItem(Dt_t * d, Agnode_t ** key1, Agnode_t ** key2, Dtdisc_t * disc) ^ nodeset.c:32:66: warning: unused parameter 'disc' [-Wunused-parameter] cmpItem(Dt_t * d, Agnode_t ** key1, Agnode_t ** key2, Dtdisc_t * disc) ^~~~ nodeset.c: At top level: nodeset.c:112:6: warning: no previous prototype for 'printNodeset' [-Wmissing-prototypes] void printNodeset(nodeset_t * ns) ^~~~~~~~~~~~ CCLD libcircogen_C.la make[6]: Leaving directory '/jenkins/jobs/oi-userland/workspace/components/image/graphviz/build/i86/lib/circogen' Making all in dotgen make[6]: Entering directory '/jenkins/jobs/oi-userland/workspace/components/image/graphviz/build/i86/lib/dotgen' CC acyclic.lo CC class1.lo CC compound.lo CC cluster.lo CC conc.lo CC fastgr.lo CC class2.lo CC decomp.lo In file included from /jenkins/jobs/oi-userland/workspace/components/image/graphviz/graphviz-2.40.1/lib/common/render.h:44:0, from dot.h:18, from decomp.c:23: decomp.c: In function 'end_component': /jenkins/jobs/oi-userland/workspace/components/image/graphviz/graphviz-2.40.1/lib/common/memory.h:41:62: warning: conversion to 'unsigned int' from 'int' may change the sign of the result [-Wsign-conversion] #define ALLOC(size,ptr,type) (ptr? (type*)grealloc(ptr,(size)*sizeof(type)):(type*)gmalloc((size)*sizeof(type))) ^ decomp.c:56:23: note: in expansion of macro 'ALLOC' GD_comp(g).list = ALLOC(GD_comp(g).size, GD_comp(g).list, node_t *); ^~~~~ /jenkins/jobs/oi-userland/workspace/components/image/graphviz/graphviz-2.40.1/lib/common/memory.h:41:98: warning: conversion to 'unsigned int' from 'int' may change the sign of the result [-Wsign-conversion] #define ALLOC(size,ptr,type) (ptr? (type*)grealloc(ptr,(size)*sizeof(type)):(type*)gmalloc((size)*sizeof(type))) ^ decomp.c:56:23: note: in expansion of macro 'ALLOC' GD_comp(g).list = ALLOC(GD_comp(g).size, GD_comp(g).list, node_t *); ^~~~~ decomp.c: In function 'push': decomp.c:117:19: warning: conversion to 'char' from 'int' may alter its value [-Wconversion] ND_mark(np) = Cmark+1; ^~~~~ class2.c: In function 'plain_vnode': class2.c:50:35: warning: unused parameter 'orig' [-Wunused-parameter] plain_vnode(graph_t * g, edge_t * orig) ^~~~ class2.c: In function 'leader_of': class2.c:59:21: warning: unused parameter 'g' [-Wunused-parameter] leader_of(graph_t * g, node_t * v) ^ In file included from /jenkins/jobs/oi-userland/workspace/components/image/graphviz/graphviz-2.40.1/lib/common/render.h:40:0, from dot.h:18, from class2.c:17: class2.c: In function 'merge_chain': /jenkins/jobs/oi-userland/workspace/components/image/graphviz/graphviz-2.40.1/lib/common/types.h:537:21: warning: conversion to 'short int' from 'int' may alter its value [-Wconversion] #define ED_count(e) (((Agedgeinfo_t*)AGDATA(e))->count) ^ class2.c:154:23: note: in expansion of macro 'ED_count' ED_count(rep) += ED_count(e); ^~~~~~~~ /jenkins/jobs/oi-userland/workspace/components/image/graphviz/graphviz-2.40.1/lib/common/types.h:557:24: warning: conversion to 'short int' from 'int' may alter its value [-Wconversion] #define ED_xpenalty(e) (((Agedgeinfo_t*)AGDATA(e))->xpenalty) ^ class2.c:155:22: note: in expansion of macro 'ED_xpenalty' ED_xpenalty(rep) += ED_xpenalty(e); ^~~~~~~~~~~ compound.c: In function 'getCluster': compound.c:96:38: warning: unused parameter 'g' [-Wunused-parameter] static graph_t *getCluster(graph_t * g, char *cluster_name, Dt_t* map) ^ compound.c: In function 'findVertical': compound.c:179:14: warning: comparing floating point with == or != is unsafe [-Wfloat-equal] if (tmin == tmax) ^~ compound.c: In function 'findHorizontal': compound.c:221:14: warning: comparing floating point with == or != is unsafe [-Wfloat-equal] if (tmin == tmax) ^~ In file included from /jenkins/jobs/oi-userland/workspace/components/image/graphviz/graphviz-2.40.1/lib/common/render.h:44:0, from dot.h:18, from compound.c:18: compound.c: In function 'makeCompoundEdge': /jenkins/jobs/oi-userland/workspace/components/image/graphviz/graphviz-2.40.1/lib/common/memory.h:39:41: warning: conversion to 'unsigned int' from 'int' may change the sign of the result [-Wsign-conversion] #define N_GNEW(n,t) (t*)gmalloc((n)*sizeof(t)) ^ compound.c:474:18: note: in expansion of macro 'N_GNEW' nbez->list = N_GNEW(nbez->size, pointf); ^~~~~~ cluster.c: In function 'map_path': cluster.c:104:24: warning: conversion to 'char' from 'int' may alter its value [-Wconversion] ED_edge_type(e) = type; ^~~~ cluster.c:114:22: warning: conversion to 'char' from 'int' may alter its value [-Wconversion] ED_edge_type(ve) = type; ^~~~ cluster.c:122:22: warning: conversion to 'char' from 'int' may alter its value [-Wconversion] ED_edge_type(ve) = type; ^~~~ In file included from /jenkins/jobs/oi-userland/workspace/components/image/graphviz/graphviz-2.40.1/lib/common/render.h:44:0, from dot.h:18, from fastgr.c:15: fastgr.c: In function 'safe_list_append': cluster.c:138:21: warning: conversion to 'char' from 'int' may alter its value [-Wconversion] ED_edge_type(e) = type; ^~~~ /jenkins/jobs/oi-userland/workspace/components/image/graphviz/graphviz-2.40.1/lib/common/memory.h:41:62: warning: conversion to 'unsigned int' from 'int' may change the sign of the result [-Wsign-conversion] #define ALLOC(size,ptr,type) (ptr? (type*)grealloc(ptr,(size)*sizeof(type)):(type*)gmalloc((size)*sizeof(type))) ^ /jenkins/jobs/oi-userland/workspace/components/image/graphviz/graphviz-2.40.1/lib/common/types.h:261:44: note: in expansion of macro 'ALLOC' #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:71:5: note: in expansion of macro 'elist_append' elist_append(e, (*L)); ^~~~~~~~~~~~ /jenkins/jobs/oi-userland/workspace/components/image/graphviz/graphviz-2.40.1/lib/common/memory.h:41:98: warning: conversion to 'unsigned int' from 'int' may change the sign of the result [-Wsign-conversion] #define ALLOC(size,ptr,type) (ptr? (type*)grealloc(ptr,(size)*sizeof(type)):(type*)gmalloc((size)*sizeof(type))) ^ /jenkins/jobs/oi-userland/workspace/components/image/graphviz/graphviz-2.40.1/lib/common/types.h:261:44: note: in expansion of macro 'ALLOC' #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:71:5: note: in expansion of macro 'elist_append' elist_append(e, (*L)); ^~~~~~~~~~~~ cluster.c: In function 'make_interclust_chain': cluster.c:146:33: warning: unused parameter 'g' [-Wunused-parameter] make_interclust_chain(graph_t * g, node_t * from, node_t * to, edge_t * orig) ^ cluster.c: At top level: cluster.c:164:6: warning: no previous prototype for 'interclexp' [-Wmissing-prototypes] void interclexp(graph_t * subg) ^~~~~~~~~~ fastgr.c: In function 'fast_edge': /jenkins/jobs/oi-userland/workspace/components/image/graphviz/graphviz-2.40.1/lib/common/memory.h:41:62: warning: conversion to 'unsigned int' from 'int' may change the sign of the result [-Wsign-conversion] #define ALLOC(size,ptr,type) (ptr? (type*)grealloc(ptr,(size)*sizeof(type)):(type*)gmalloc((size)*sizeof(type))) ^ /jenkins/jobs/oi-userland/workspace/components/image/graphviz/graphviz-2.40.1/lib/common/types.h:261:44: note: in expansion of macro 'ALLOC' #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:94:5: note: in expansion of macro 'elist_append' elist_append(e, ND_out(agtail(e))); ^~~~~~~~~~~~ /jenkins/jobs/oi-userland/workspace/components/image/graphviz/graphviz-2.40.1/lib/common/memory.h:41:98: warning: conversion to 'unsigned int' from 'int' may change the sign of the result [-Wsign-conversion] #define ALLOC(size,ptr,type) (ptr? (type*)grealloc(ptr,(size)*sizeof(type)):(type*)gmalloc((size)*sizeof(type))) ^ /jenkins/jobs/oi-userland/workspace/components/image/graphviz/graphviz-2.40.1/lib/common/types.h:261:44: note: in expansion of macro 'ALLOC' #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:94:5: note: in expansion of macro 'elist_append' elist_append(e, ND_out(agtail(e))); ^~~~~~~~~~~~ /jenkins/jobs/oi-userland/workspace/components/image/graphviz/graphviz-2.40.1/lib/common/memory.h:41:62: warning: conversion to 'unsigned int' from 'int' may change the sign of the result [-Wsign-conversion] #define ALLOC(size,ptr,type) (ptr? (type*)grealloc(ptr,(size)*sizeof(type)):(type*)gmalloc((size)*sizeof(type))) ^ /jenkins/jobs/oi-userland/workspace/components/image/graphviz/graphviz-2.40.1/lib/common/types.h:261:44: note: in expansion of macro 'ALLOC' #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:95:5: note: in expansion of macro 'elist_append' elist_append(e, ND_in(aghead(e))); ^~~~~~~~~~~~ /jenkins/jobs/oi-userland/workspace/components/image/graphviz/graphviz-2.40.1/lib/common/memory.h:41:98: warning: conversion to 'unsigned int' from 'int' may change the sign of the result [-Wsign-conversion] #define ALLOC(size,ptr,type) (ptr? (type*)grealloc(ptr,(size)*sizeof(type)):(type*)gmalloc((size)*sizeof(type))) ^ /jenkins/jobs/oi-userland/workspace/components/image/graphviz/graphviz-2.40.1/lib/common/types.h:261:44: note: in expansion of macro 'ALLOC' #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:95:5: note: in expansion of macro 'elist_append' elist_append(e, ND_in(aghead(e))); ^~~~~~~~~~~~ fastgr.c: In function 'other_edge': /jenkins/jobs/oi-userland/workspace/components/image/graphviz/graphviz-2.40.1/lib/common/memory.h:41:62: warning: conversion to 'unsigned int' from 'int' may change the sign of the result [-Wsign-conversion] #define ALLOC(size,ptr,type) (ptr? (type*)grealloc(ptr,(size)*sizeof(type)):(type*)gmalloc((size)*sizeof(type))) ^ /jenkins/jobs/oi-userland/workspace/components/image/graphviz/graphviz-2.40.1/lib/common/types.h:261:44: note: in expansion of macro 'ALLOC' #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:139:5: note: in expansion of macro 'elist_append' elist_append(e, ND_other(agtail(e))); ^~~~~~~~~~~~ /jenkins/jobs/oi-userland/workspace/components/image/graphviz/graphviz-2.40.1/lib/common/memory.h:41:98: warning: conversion to 'unsigned int' from 'int' may change the sign of the result [-Wsign-conversion] #define ALLOC(size,ptr,type) (ptr? (type*)grealloc(ptr,(size)*sizeof(type)):(type*)gmalloc((size)*sizeof(type))) ^ /jenkins/jobs/oi-userland/workspace/components/image/graphviz/graphviz-2.40.1/lib/common/types.h:261:44: note: in expansion of macro 'ALLOC' #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:139:5: note: in expansion of macro 'elist_append' elist_append(e, ND_other(agtail(e))); ^~~~~~~~~~~~ In file included from /jenkins/jobs/oi-userland/workspace/components/image/graphviz/graphviz-2.40.1/lib/common/render.h:40:0, from dot.h:18, from fastgr.c:15: fastgr.c: In function 'new_virtual_edge': /jenkins/jobs/oi-userland/workspace/components/image/graphviz/graphviz-2.40.1/lib/common/types.h:559:22: warning: conversion to 'short int' from 'int' may alter its value [-Wconversion] #define ED_weight(e) (((Agedgeinfo_t*)AGDATA(e))->weight) ^ fastgr.c:195:48: note: in expansion of macro 'ED_weight' ED_minlen(e) = ED_count(e) = ED_xpenalty(e) = ED_weight(e) = 1; ^~~~~~~~~ /jenkins/jobs/oi-userland/workspace/components/image/graphviz/graphviz-2.40.1/lib/common/types.h:537:21: warning: conversion to 'short unsigned int' from 'short int' may change the sign of the result [-Wsign-conversion] #define ED_count(e) (((Agedgeinfo_t*)AGDATA(e))->count) ^ fastgr.c:195:17: note: in expansion of macro 'ED_count' ED_minlen(e) = ED_count(e) = ED_xpenalty(e) = ED_weight(e) = 1; ^~~~~~~~ In file included from /jenkins/jobs/oi-userland/workspace/components/image/graphviz/graphviz-2.40.1/lib/common/render.h:44:0, from dot.h:18, from cluster.c:15: cluster.c: In function 'build_skeleton': /jenkins/jobs/oi-userland/workspace/components/image/graphviz/graphviz-2.40.1/lib/common/memory.h:36:41: warning: conversion to 'unsigned int' from 'int' may change the sign of the result [-Wsign-conversion] #define N_NEW(n,t) (t*)zmalloc((n)*sizeof(t)) ^ cluster.c:349:27: note: in expansion of macro 'N_NEW' GD_rankleader(subg) = N_NEW(GD_maxrank(subg) + 2, node_t *); ^~~~~ In file included from /jenkins/jobs/oi-userland/workspace/components/image/graphviz/graphviz-2.40.1/lib/common/render.h:44:0, from dot.h:18, from fastgr.c:15: fastgr.c: In function 'flat_edge': /jenkins/jobs/oi-userland/workspace/components/image/graphviz/graphviz-2.40.1/lib/common/memory.h:41:62: warning: conversion to 'unsigned int' from 'int' may change the sign of the result [-Wsign-conversion] #define ALLOC(size,ptr,type) (ptr? (type*)grealloc(ptr,(size)*sizeof(type)):(type*)gmalloc((size)*sizeof(type))) ^ /jenkins/jobs/oi-userland/workspace/components/image/graphviz/graphviz-2.40.1/lib/common/types.h:261:44: note: in expansion of macro 'ALLOC' #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:262:5: note: in expansion of macro 'elist_append' elist_append(e, ND_flat_out(agtail(e))); ^~~~~~~~~~~~ /jenkins/jobs/oi-userland/workspace/components/image/graphviz/graphviz-2.40.1/lib/common/memory.h:41:98: warning: conversion to 'unsigned int' from 'int' may change the sign of the result [-Wsign-conversion] #define ALLOC(size,ptr,type) (ptr? (type*)grealloc(ptr,(size)*sizeof(type)):(type*)gmalloc((size)*sizeof(type))) ^ /jenkins/jobs/oi-userland/workspace/components/image/graphviz/graphviz-2.40.1/lib/common/types.h:261:44: note: in expansion of macro 'ALLOC' #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:262:5: note: in expansion of macro 'elist_append' elist_append(e, ND_flat_out(agtail(e))); ^~~~~~~~~~~~ In file included from /jenkins/jobs/oi-userland/workspace/components/image/graphviz/graphviz-2.40.1/lib/common/render.h:42:0, from dot.h:18, from cluster.c:15: /jenkins/jobs/oi-userland/workspace/components/image/graphviz/graphviz-2.40.1/lib/common/const.h:157:19: warning: conversion to 'short int' from 'int' may alter its value [-Wconversion] #define CL_CROSS 1000 /* cost of cluster skeleton edge crossing */ ^ cluster.c:357:24: note: in expansion of macro 'CL_CROSS' ED_xpenalty(e) *= CL_CROSS; ^~~~~~~~ /jenkins/jobs/oi-userland/workspace/components/image/graphviz/graphviz-2.40.1/lib/common/memory.h:41:62: warning: conversion to 'unsigned int' from 'int' may change the sign of the result [-Wsign-conversion] #define ALLOC(size,ptr,type) (ptr? (type*)grealloc(ptr,(size)*sizeof(type)):(type*)gmalloc((size)*sizeof(type))) ^ /jenkins/jobs/oi-userland/workspace/components/image/graphviz/graphviz-2.40.1/lib/common/types.h:261:44: note: in expansion of macro 'ALLOC' #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:263:5: note: in expansion of macro 'elist_append' elist_append(e, ND_flat_in(aghead(e))); ^~~~~~~~~~~~ /jenkins/jobs/oi-userland/workspace/components/image/graphviz/graphviz-2.40.1/lib/common/memory.h:41:98: warning: conversion to 'unsigned int' from 'int' may change the sign of the result [-Wsign-conversion] #define ALLOC(size,ptr,type) (ptr? (type*)grealloc(ptr,(size)*sizeof(type)):(type*)gmalloc((size)*sizeof(type))) ^ /jenkins/jobs/oi-userland/workspace/components/image/graphviz/graphviz-2.40.1/lib/common/types.h:261:44: note: in expansion of macro 'ALLOC' #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:263:5: note: in expansion of macro 'elist_append' elist_append(e, ND_flat_in(aghead(e))); ^~~~~~~~~~~~ In file included from /jenkins/jobs/oi-userland/workspace/components/image/graphviz/graphviz-2.40.1/lib/common/render.h:40:0, from dot.h:18, from fastgr.c:15: fastgr.c: In function 'basic_merge': cluster.c: In function 'install_cluster': /jenkins/jobs/oi-userland/workspace/components/image/graphviz/graphviz-2.40.1/lib/common/types.h:537:21: warning: conversion to 'short int' from 'int' may alter its value [-Wconversion] #define ED_count(e) (((Agedgeinfo_t*)AGDATA(e))->count) ^ fastgr.c:326:19: note: in expansion of macro 'ED_count' ED_count(rep) += ED_count(e); ^~~~~~~~ cluster.c:390:24: warning: conversion to 'char' from 'int' may alter its value [-Wconversion] GD_installed(clust) = pass + 1; ^~~~ /jenkins/jobs/oi-userland/workspace/components/image/graphviz/graphviz-2.40.1/lib/common/types.h:557:24: warning: conversion to 'short int' from 'int' may alter its value [-Wconversion] #define ED_xpenalty(e) (((Agedgeinfo_t*)AGDATA(e))->xpenalty) ^ fastgr.c:327:22: note: in expansion of macro 'ED_xpenalty' ED_xpenalty(rep) += ED_xpenalty(e); ^~~~~~~~~~~ fastgr.c: In function 'unrep': /jenkins/jobs/oi-userland/workspace/components/image/graphviz/graphviz-2.40.1/lib/common/types.h:537:21: warning: conversion to 'short int' from 'int' may alter its value [-Wconversion] #define ED_count(e) (((Agedgeinfo_t*)AGDATA(e))->count) ^ fastgr.c:348:22: note: in expansion of macro 'ED_count' ED_count(rep) -= ED_count(e); ^~~~~~~~ /jenkins/jobs/oi-userland/workspace/components/image/graphviz/graphviz-2.40.1/lib/common/types.h:557:24: warning: conversion to 'short int' from 'int' may alter its value [-Wconversion] #define ED_xpenalty(e) (((Agedgeinfo_t*)AGDATA(e))->xpenalty) ^ fastgr.c:349:25: note: in expansion of macro 'ED_xpenalty' ED_xpenalty(rep) -= ED_xpenalty(e); ^~~~~~~~~~~ conc.c: In function 'rebuild_vlists': conc.c:179:11: warning: declaration of 'e' shadows a previous local [-Wshadow] edge_t *e; ^ conc.c:144:13: note: shadowed declaration is here edge_t *e, *rep; ^ CC flat.lo CC dotinit.lo CC mincross.lo CC position.lo CC rank.lo CC sameport.lo CC dotsplines.lo CC aspect.lo In file included from /jenkins/jobs/oi-userland/workspace/components/image/graphviz/graphviz-2.40.1/lib/common/render.h:44:0, from dot.h:18, from flat.c:15: flat.c: In function 'make_vn_slot': /jenkins/jobs/oi-userland/workspace/components/image/graphviz/graphviz-2.40.1/lib/common/memory.h:41:62: warning: conversion to 'unsigned int' from 'int' may change the sign of the result [-Wsign-conversion] #define ALLOC(size,ptr,type) (ptr? (type*)grealloc(ptr,(size)*sizeof(type)):(type*)gmalloc((size)*sizeof(type))) ^ flat.c:24:2: note: in expansion of macro 'ALLOC' ALLOC(GD_rank(g)[r].n + 2, GD_rank(g)[r].v, node_t *); ^~~~~ /jenkins/jobs/oi-userland/workspace/components/image/graphviz/graphviz-2.40.1/lib/common/memory.h:41:98: warning: conversion to 'unsigned int' from 'int' may change the sign of the result [-Wsign-conversion] #define ALLOC(size,ptr,type) (ptr? (type*)grealloc(ptr,(size)*sizeof(type)):(type*)gmalloc((size)*sizeof(type))) ^ flat.c:24:2: note: in expansion of macro 'ALLOC' ALLOC(GD_rank(g)[r].n + 2, GD_rank(g)[r].v, node_t *); ^~~~~ In file included from /jenkins/jobs/oi-userland/workspace/components/image/graphviz/graphviz-2.40.1/lib/common/render.h:40:0, from dot.h:18, from flat.c:15: flat.c: In function 'flat_node': /jenkins/jobs/oi-userland/workspace/components/image/graphviz/graphviz-2.40.1/lib/common/types.h:456:21: warning: conversion to 'int' from 'double' may alter its value [-Wfloat-conversion] #define ND_coord(n) (((Agnodeinfo_t*)AGDATA(n))->coord) ^ flat.c:152:9: note: in expansion of macro 'ND_coord' ypos = ND_coord(n).y - GD_rank(g)[r - 1].ht1; ^~~~~~~~ /jenkins/jobs/oi-userland/workspace/components/image/graphviz/graphviz-2.40.1/lib/common/types.h:456:21: warning: conversion to 'int' from 'double' may alter its value [-Wfloat-conversion] #define ND_coord(n) (((Agnodeinfo_t*)AGDATA(n))->coord) ^ flat.c:155:9: note: in expansion of macro 'ND_coord' ypos = ND_coord(n).y + GD_rank(g)[r].ht2 + GD_ranksep(g); ^~~~~~~~ /jenkins/jobs/oi-userland/workspace/components/image/graphviz/graphviz-2.40.1/lib/common/types.h:466:18: warning: conversion to 'int' from 'double' may alter its value [-Wfloat-conversion] #define ND_ht(n) (((Agnodeinfo_t*)AGDATA(n))->ht) ^ flat.c:165:10: note: in expansion of macro 'ND_ht' h2 = ND_ht(vn) / 2; ^~~~~ In file included from /jenkins/jobs/oi-userland/workspace/components/image/graphviz/graphviz-2.40.1/lib/common/render.h:44:0, from dot.h:18, from flat.c:15: flat.c: In function 'abomination': /jenkins/jobs/oi-userland/workspace/components/image/graphviz/graphviz-2.40.1/lib/common/memory.h:41:62: warning: conversion to 'unsigned int' from 'int' may change the sign of the result [-Wsign-conversion] #define ALLOC(size,ptr,type) (ptr? (type*)grealloc(ptr,(size)*sizeof(type)):(type*)gmalloc((size)*sizeof(type))) ^ flat.c:193:12: note: in expansion of macro 'ALLOC' rptr = ALLOC(r, GD_rank(g), rank_t); ^~~~~ /jenkins/jobs/oi-userland/workspace/components/image/graphviz/graphviz-2.40.1/lib/common/memory.h:41:98: warning: conversion to 'unsigned int' from 'int' may change the sign of the result [-Wsign-conversion] #define ALLOC(size,ptr,type) (ptr? (type*)grealloc(ptr,(size)*sizeof(type)):(type*)gmalloc((size)*sizeof(type))) ^ flat.c:193:12: note: in expansion of macro 'ALLOC' rptr = ALLOC(r, GD_rank(g), rank_t); ^~~~~ mincross.c:73:5: warning: "DEBUG" is not defined, evaluates to 0 [-Wundef] #if DEBUG > 1 ^~~~~ In file included from /jenkins/jobs/oi-userland/workspace/components/image/graphviz/graphviz-2.40.1/lib/common/render.h:44:0, from dot.h:18, from mincross.c:22: mincross.c: In function 'fixLabelOrder': /jenkins/jobs/oi-userland/workspace/components/image/graphviz/graphviz-2.40.1/lib/common/memory.h:36:41: warning: conversion to 'unsigned int' from 'int' may change the sign of the result [-Wsign-conversion] #define N_NEW(n,t) (t*)zmalloc((n)*sizeof(t)) ^ mincross.c:257:11: note: in expansion of macro 'N_NEW' arr = N_NEW(agnnodes(g), Agnode_t*); ^~~~~ /jenkins/jobs/oi-userland/workspace/components/image/graphviz/graphviz-2.40.1/lib/common/memory.h:36:41: warning: conversion to 'unsigned int' from 'int' may change the sign of the result [-Wsign-conversion] #define N_NEW(n,t) (t*)zmalloc((n)*sizeof(t)) ^ mincross.c:258:15: note: in expansion of macro 'N_NEW' indices = N_NEW(agnnodes(g), int); ^~~~~ mincross.c:266:21: warning: conversion to 'size_t {aka unsigned int}' from 'int' may change the sign of the result [-Wsign-conversion] qsort(indices, cnt, sizeof(int), (qsort_cmpf)ordercmpf); ^~~ In file included from /jenkins/jobs/oi-userland/workspace/components/image/graphviz/graphviz-2.40.1/lib/common/render.h:44:0, from dot.h:18, from mincross.c:22: mincross.c: In function 'new_matrix': /jenkins/jobs/oi-userland/workspace/components/image/graphviz/graphviz-2.40.1/lib/common/memory.h:36:41: warning: conversion to 'unsigned int' from 'int' may change the sign of the result [-Wsign-conversion] #define N_NEW(n,t) (t*)zmalloc((n)*sizeof(t)) ^ mincross.c:373:16: note: in expansion of macro 'N_NEW' rv->data = N_NEW(i * j, char); ^~~~~ mincross.c: In function 'do_ordering_node': mincross.c:430:21: warning: conversion to 'size_t {aka unsigned int}' from 'int' may change the sign of the result [-Wsign-conversion] qsort(sortlist, ne, sizeof(sortlist[0]), (qsort_cmpf) edgeidcmpf); ^~ mincross.c: In function 'mincross_clust': mincross.c:510:37: warning: unused parameter 'par' [-Wunused-parameter] static int mincross_clust(graph_t * par, graph_t * g, int doBalance) ^~~ mincross.c: In function 'restore_best': mincross.c:26:22: warning: conversion to 'int' from 'double' may alter its value [-Wfloat-conversion] #define saveorder(v) (ND_coord(v)).x ^ mincross.c:901:20: note: in expansion of macro 'saveorder' ND_order(n) = saveorder(n); ^~~~~~~~~ In file included from /jenkins/jobs/oi-userland/workspace/components/image/graphviz/graphviz-2.40.1/lib/common/render.h:40:0, from dot.h:18, from mincross.c:22: /jenkins/jobs/oi-userland/workspace/components/image/graphviz/graphviz-2.40.1/lib/common/types.h:383:20: warning: conversion to 'size_t {aka unsigned int}' from 'int' may change the sign of the result [-Wsign-conversion] #define GD_rank(g) (((Agraphinfo_t*)AGDATA(g))->rank) ^ mincross.c:906:25: note: in expansion of macro 'GD_rank' qsort(GD_rank(g)[r].v, GD_rank(g)[r].n, sizeof(GD_rank(g)[0].v[0]), ^~~~~~~ mincross.c: In function 'merge_components': mincross.c:946:21: warning: conversion to 'short int' from 'int' may alter its value [-Wconversion] GD_minrank(g) = GlobalMinRank; ^~~~~~~~~~~~~ mincross.c:947:21: warning: conversion to 'short int' from 'int' may alter its value [-Wconversion] GD_maxrank(g) = GlobalMaxRank; ^~~~~~~~~~~~~ mincross.c: In function 'realFillRanks': mincross.c:1140:33: warning: conversion to 'unsigned int' from 'int' may change the sign of the result [-Wsign-conversion] memset (rnks, 0, sizeof(int)*rnks_sz); ^ In file included from /jenkins/jobs/oi-userland/workspace/components/image/graphviz/graphviz-2.40.1/lib/common/render.h:44:0, from dot.h:18, from mincross.c:22: mincross.c: In function 'fillRanks': /jenkins/jobs/oi-userland/workspace/components/image/graphviz/graphviz-2.40.1/lib/common/memory.h:36:41: warning: conversion to 'unsigned int' from 'int' may change the sign of the result [-Wsign-conversion] #define N_NEW(n,t) (t*)zmalloc((n)*sizeof(t)) ^ mincross.c:1172:17: note: in expansion of macro 'N_NEW' int* rnks = N_NEW(rnks_sz, int); ^~~~~ mincross.c:1170:15: warning: variable 'sg' set but not used [-Wunused-but-set-variable] Agraph_t* sg; ^~ In file included from /jenkins/jobs/oi-userland/workspace/components/image/graphviz/graphviz-2.40.1/lib/common/render.h:44:0, from dot.h:18, from mincross.c:22: mincross.c: In function 'init_mincross': /jenkins/jobs/oi-userland/workspace/components/image/graphviz/graphviz-2.40.1/lib/common/memory.h:36:41: warning: conversion to 'unsigned int' from 'int' may change the sign of the result [-Wsign-conversion] #define N_NEW(n,t) (t*)zmalloc((n)*sizeof(t)) ^ mincross.c:1190:15: note: in expansion of macro 'N_NEW' TE_list = N_NEW(size, edge_t *); ^~~~~ /jenkins/jobs/oi-userland/workspace/components/image/graphviz/graphviz-2.40.1/lib/common/memory.h:36:41: warning: conversion to 'unsigned int' from 'int' may change the sign of the result [-Wsign-conversion] #define N_NEW(n,t) (t*)zmalloc((n)*sizeof(t)) ^ mincross.c:1191:15: note: in expansion of macro 'N_NEW' TI_list = N_NEW(size, int); ^~~~~ mincross.c: At top level: mincross.c:1203:6: warning: no previous prototype for 'flat_rev' [-Wmissing-prototypes] void flat_rev(Agraph_t * g, Agedge_t * e) ^~~~~~~~ In file included from /jenkins/jobs/oi-userland/workspace/components/image/graphviz/graphviz-2.40.1/lib/common/render.h:44:0, from dot.h:18, from mincross.c:22: mincross.c: In function 'flat_rev': /jenkins/jobs/oi-userland/workspace/components/image/graphviz/graphviz-2.40.1/lib/common/memory.h:41:62: warning: conversion to 'unsigned int' from 'int' may change the sign of the result [-Wsign-conversion] #define ALLOC(size,ptr,type) (ptr? (type*)grealloc(ptr,(size)*sizeof(type)):(type*)gmalloc((size)*sizeof(type))) ^ /jenkins/jobs/oi-userland/workspace/components/image/graphviz/graphviz-2.40.1/lib/common/types.h:261:44: note: in expansion of macro 'ALLOC' #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:1221:2: note: in expansion of macro 'elist_append' elist_append(e, ND_other(agtail(e))); ^~~~~~~~~~~~ /jenkins/jobs/oi-userland/workspace/components/image/graphviz/graphviz-2.40.1/lib/common/memory.h:41:98: warning: conversion to 'unsigned int' from 'int' may change the sign of the result [-Wsign-conversion] #define ALLOC(size,ptr,type) (ptr? (type*)grealloc(ptr,(size)*sizeof(type)):(type*)gmalloc((size)*sizeof(type))) ^ /jenkins/jobs/oi-userland/workspace/components/image/graphviz/graphviz-2.40.1/lib/common/types.h:261:44: note: in expansion of macro 'ALLOC' #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:1221:2: note: in expansion of macro 'elist_append' elist_append(e, ND_other(agtail(e))); ^~~~~~~~~~~~ mincross.c: In function 'allocate_ranks': /jenkins/jobs/oi-userland/workspace/components/image/graphviz/graphviz-2.40.1/lib/common/memory.h:36:41: warning: conversion to 'unsigned int' from 'int' may change the sign of the result [-Wsign-conversion] #define N_NEW(n,t) (t*)zmalloc((n)*sizeof(t)) ^ mincross.c:1307:10: note: in expansion of macro 'N_NEW' cn = N_NEW(GD_maxrank(g) + 2, int); /* must be 0 based, not GD_minrank */ ^~~~~ /jenkins/jobs/oi-userland/workspace/components/image/graphviz/graphviz-2.40.1/lib/common/memory.h:36:41: warning: conversion to 'unsigned int' from 'int' may change the sign of the result [-Wsign-conversion] #define N_NEW(n,t) (t*)zmalloc((n)*sizeof(t)) ^ mincross.c:1322:18: note: in expansion of macro 'N_NEW' GD_rank(g) = N_NEW(GD_maxrank(g) + 2, rank_t); ^~~~~ /jenkins/jobs/oi-userland/workspace/components/image/graphviz/graphviz-2.40.1/lib/common/memory.h:36:41: warning: conversion to 'unsigned int' from 'int' may change the sign of the result [-Wsign-conversion] #define N_NEW(n,t) (t*)zmalloc((n)*sizeof(t)) ^ mincross.c:1325:39: note: in expansion of macro 'N_NEW' GD_rank(g)[r].av = GD_rank(g)[r].v = N_NEW(cn[r] + 1, node_t *); ^~~~~ mincross.c: In function 'build_ranks': mincross.c:1427:10: warning: declaration of 'n' shadows a previous local [-Wshadow] int n, ndiv2; ^ mincross.c:1382:13: note: shadowed declaration is here node_t *n, *n0; ^ dotinit.c: In function 'dot_init_edge': dotinit.c:70:23: warning: conversion to 'unsigned char' from 'int' may alter its value [-Wconversion] ED_showboxes(e) = late_int(e, E_showboxes, 0, 0); ^~~~~~~~ dotinit.c:71:20: warning: conversion to 'short unsigned int' from 'int' may alter its value [-Wconversion] ED_minlen(e) = late_int(e, E_minlen, 1, 0); ^~~~~~~~ mincross.c: In function 'constraining_flat_edge': mincross.c:1465:58: warning: unused parameter 'v' [-Wunused-parameter] static int constraining_flat_edge(Agraph_t *g, Agnode_t *v, Agedge_t *e) ^ In file included from /jenkins/jobs/oi-userland/workspace/components/image/graphviz/graphviz-2.40.1/lib/common/render.h:44:0, from dot.h:18, from mincross.c:22: mincross.c: In function 'flat_reorder': /jenkins/jobs/oi-userland/workspace/components/image/graphviz/graphviz-2.40.1/lib/common/memory.h:41:62: warning: conversion to 'unsigned int' from 'int' may change the sign of the result [-Wsign-conversion] #define ALLOC(size,ptr,type) (ptr? (type*)grealloc(ptr,(size)*sizeof(type)):(type*)gmalloc((size)*sizeof(type))) ^ mincross.c:1509:13: note: in expansion of macro 'ALLOC' temprank = ALLOC(i + 1, temprank, node_t *); ^~~~~ /jenkins/jobs/oi-userland/workspace/components/image/graphviz/graphviz-2.40.1/lib/common/memory.h:41:98: warning: conversion to 'unsigned int' from 'int' may change the sign of the result [-Wsign-conversion] #define ALLOC(size,ptr,type) (ptr? (type*)grealloc(ptr,(size)*sizeof(type)):(type*)gmalloc((size)*sizeof(type))) ^ mincross.c:1509:13: note: in expansion of macro 'ALLOC' temprank = ALLOC(i + 1, temprank, node_t *); ^~~~~ In file included from /jenkins/jobs/oi-userland/workspace/components/image/graphviz/graphviz-2.40.1/lib/common/render.h:44:0, from dot.h:18, from dotinit.c:16: dotinit.c: In function 'attachPos': /jenkins/jobs/oi-userland/workspace/components/image/graphviz/graphviz-2.40.1/lib/common/memory.h:36:41: warning: conversion to 'unsigned int' from 'int' may change the sign of the result [-Wsign-conversion] #define N_NEW(n,t) (t*)zmalloc((n)*sizeof(t)) ^ dotinit.c:364:18: note: in expansion of macro 'N_NEW' double* ps = N_NEW(2*agnnodes(g), double); ^~~~~ dotinit.c: In function 'copyCluster': /jenkins/jobs/oi-userland/workspace/components/image/graphviz/graphviz-2.40.1/lib/common/memory.h:36:41: warning: conversion to 'unsigned int' from 'int' may change the sign of the result [-Wsign-conversion] #define N_NEW(n,t) (t*)zmalloc((n)*sizeof(t)) ^ dotinit.c:407:20: note: in expansion of macro 'N_NEW' GD_clust(cl) = N_NEW(nclust+1,Agraph_t*); ^~~~~ dotinit.c: In function 'copyClusterInfo': /jenkins/jobs/oi-userland/workspace/components/image/graphviz/graphviz-2.40.1/lib/common/memory.h:36:41: warning: conversion to 'unsigned int' from 'int' may change the sign of the result [-Wsign-conversion] #define N_NEW(n,t) (t*)zmalloc((n)*sizeof(t)) ^ dotinit.c:433:22: note: in expansion of macro 'N_NEW' GD_clust(root) = N_NEW(nclust+1,Agraph_t*); ^~~~~ dotinit.c: In function 'doDot': dotinit.c:470:17: warning: conversion to 'unsigned int' from 'int' may change the sign of the result [-Wsign-conversion] pinfo.margin = Pack; ^~~~ mincross.c: In function 'reorder': mincross.c:1610:21: warning: conversion to 'int' from 'double' may alter its value [-Wfloat-conversion] register int p1 = (ND_mval(*lp)); ^ mincross.c:1611:21: warning: conversion to 'int' from 'double' may alter its value [-Wfloat-conversion] register int p2 = (ND_mval(*rp)); ^ In file included from /jenkins/jobs/oi-userland/workspace/components/image/graphviz/graphviz-2.40.1/lib/common/render.h:44:0, from dot.h:18, from mincross.c:22: mincross.c: In function 'rcross': /jenkins/jobs/oi-userland/workspace/components/image/graphviz/graphviz-2.40.1/lib/common/memory.h:41:62: warning: conversion to 'unsigned int' from 'int' may change the sign of the result [-Wsign-conversion] #define ALLOC(size,ptr,type) (ptr? (type*)grealloc(ptr,(size)*sizeof(type)):(type*)gmalloc((size)*sizeof(type))) ^ mincross.c:1707:10: note: in expansion of macro 'ALLOC' Count = ALLOC(C, Count, int); ^~~~~ /jenkins/jobs/oi-userland/workspace/components/image/graphviz/graphviz-2.40.1/lib/common/memory.h:41:98: warning: conversion to 'unsigned int' from 'int' may change the sign of the result [-Wsign-conversion] #define ALLOC(size,ptr,type) (ptr? (type*)grealloc(ptr,(size)*sizeof(type)):(type*)gmalloc((size)*sizeof(type))) ^ mincross.c:1707:10: note: in expansion of macro 'ALLOC' Count = ALLOC(C, Count, int); ^~~~~ mincross.c: In function 'medians': mincross.c:1838:18: warning: conversion to 'size_t {aka unsigned int}' from 'int' may change the sign of the result [-Wsign-conversion] qsort(list, j, sizeof(int), (qsort_cmpf) ordercmpf); ^ mincross.c:1859:18: warning: conversion to 'boolean {aka unsigned char}' from 'int' may alter its value [-Wconversion] hasfixed |= flat_mval(n); ^~~~~~~~~ In file included from /jenkins/jobs/oi-userland/workspace/components/image/graphviz/graphviz-2.40.1/lib/common/geom.h:20:0, from /jenkins/jobs/oi-userland/workspace/components/image/graphviz/graphviz-2.40.1/lib/common/types.h:35, from /jenkins/jobs/oi-userland/workspace/components/image/graphviz/graphviz-2.40.1/lib/common/render.h:40, from dot.h:18, from mincross.c:22: mincross.c: In function 'mincross_options': /jenkins/jobs/oi-userland/workspace/components/image/graphviz/graphviz-2.40.1/lib/common/arith.h:43:18: warning: conversion to 'int' from 'double' may alter its value [-Wfloat-conversion] #define MAX(a,b) ((a)>(b)?(a):(b)) ^ mincross.c:1962:12: note: in expansion of macro 'MAX' MinQuit = MAX(1, MinQuit * f); ^~~ /jenkins/jobs/oi-userland/workspace/components/image/graphviz/graphviz-2.40.1/lib/common/arith.h:43:18: warning: conversion to 'int' from 'double' may alter its value [-Wfloat-conversion] #define MAX(a,b) ((a)>(b)?(a):(b)) ^ mincross.c:1963:12: note: in expansion of macro 'MAX' MaxIter = MAX(1, MaxIter * f); ^~~ position.c:37:5: warning: "DEBUG" is not defined, evaluates to 0 [-Wundef] #if DEBUG > 1 ^~~~~ position.c: In function 'nsiter2': position.c:149:12: warning: conversion to 'int' from 'double' may alter its value [-Wfloat-conversion] maxiter = atof(s) * agnnodes(g); ^~~~ In file included from /jenkins/jobs/oi-userland/workspace/components/image/graphviz/graphviz-2.40.1/lib/common/geom.h:20:0, from /jenkins/jobs/oi-userland/workspace/components/image/graphviz/graphviz-2.40.1/lib/common/types.h:35, from /jenkins/jobs/oi-userland/workspace/components/image/graphviz/graphviz-2.40.1/lib/common/render.h:40, from dot.h:18, from position.c:23: position.c: In function 'make_aux_edge': /jenkins/jobs/oi-userland/workspace/components/image/graphviz/graphviz-2.40.1/lib/common/arith.h:87:25: warning: conversion to 'short unsigned int' from 'int' may alter its value [-Wconversion] #define ROUND(f) ((f>=0)?(int)(f + .5):(int)(f - .5)) ^ position.c:186:20: note: in expansion of macro 'ROUND' ED_minlen(e) = ROUND(len); ^~~~~ /jenkins/jobs/oi-userland/workspace/components/image/graphviz/graphviz-2.40.1/lib/common/arith.h:87:25: warning: conversion to 'short unsigned int' from 'int' may alter its value [-Wconversion] #define ROUND(f) ((f>=0)?(int)(f + .5):(int)(f - .5)) ^ position.c:186:20: note: in expansion of macro 'ROUND' ED_minlen(e) = ROUND(len); ^~~~~ In file included from /jenkins/jobs/oi-userland/workspace/components/image/graphviz/graphviz-2.40.1/lib/common/render.h:44:0, from dot.h:18, from position.c:23: position.c: In function 'allocate_aux_edges': /jenkins/jobs/oi-userland/workspace/components/image/graphviz/graphviz-2.40.1/lib/common/memory.h:36:41: warning: conversion to 'unsigned int' from 'int' may change the sign of the result [-Wsign-conversion] #define N_NEW(n,t) (t*)zmalloc((n)*sizeof(t)) ^ /jenkins/jobs/oi-userland/workspace/components/image/graphviz/graphviz-2.40.1/lib/common/types.h:262:56: note: in expansion of macro 'N_NEW' #define alloc_elist(n,L) do {L.size = 0; L.list = N_NEW(n + 1,edge_t*); } while (0) ^~~~~ position.c:204:2: note: in expansion of macro 'alloc_elist' alloc_elist(n_in + 3, ND_in(n)); ^~~~~~~~~~~ position.c: In function 'make_LR_constraints': position.c:261:24: warning: conversion to 'int' from 'double' may alter its value [-Wfloat-conversion] last = (ND_rank(v) = last + width); ^~~~ position.c:274:8: warning: conversion to 'int' from 'double' may alter its value [-Wfloat-conversion] m1 = m0 + ND_rw(aghead(e0)) + ND_lw(agtail(e0)); ^~ position.c:280:8: warning: conversion to 'int' from 'double' may alter its value [-Wfloat-conversion] m1 = m0 + ND_rw(agtail(e1)) + ND_lw(aghead(e1)); ^~ In file included from /jenkins/jobs/oi-userland/workspace/components/image/graphviz/graphviz-2.40.1/lib/common/render.h:40:0, from dot.h:18, from position.c:23: /jenkins/jobs/oi-userland/workspace/components/image/graphviz/graphviz-2.40.1/lib/common/types.h:548:22: warning: conversion to 'int' from 'double' may alter its value [-Wfloat-conversion] #define ED_minlen(e) (((Agedgeinfo_t*)AGDATA(e))->minlen) ^ position.c:298:8: note: in expansion of macro 'ED_minlen' m0 = ED_minlen(e) * GD_nodesep(g) + width; ^~~~~~~~~ In file included from /jenkins/jobs/oi-userland/workspace/components/image/graphviz/graphviz-2.40.1/lib/common/geom.h:20:0, from /jenkins/jobs/oi-userland/workspace/components/image/graphviz/graphviz-2.40.1/lib/common/types.h:35, from /jenkins/jobs/oi-userland/workspace/components/image/graphviz/graphviz-2.40.1/lib/common/render.h:40, from dot.h:18, from position.c:23: /jenkins/jobs/oi-userland/workspace/components/image/graphviz/graphviz-2.40.1/lib/common/arith.h:43:18: warning: conversion to 'int' from 'double' may alter its value [-Wfloat-conversion] #define MAX(a,b) ((a)>(b)?(a):(b)) ^ position.c:304:12: note: in expansion of macro 'MAX' m0 = MAX(m0, width + GD_nodesep(g) + ROUND(ED_dist(e))); ^~~ position.c:306:9: warning: conversion to 'int' from 'double' may alter its value [-Wfloat-conversion] m0 = largeMinlen (m0); ^~~~~~~~~~~ In file included from /jenkins/jobs/oi-userland/workspace/components/image/graphviz/graphviz-2.40.1/lib/common/geom.h:20:0, from /jenkins/jobs/oi-userland/workspace/components/image/graphviz/graphviz-2.40.1/lib/common/types.h:35, from /jenkins/jobs/oi-userland/workspace/components/image/graphviz/graphviz-2.40.1/lib/common/render.h:40, from dot.h:18, from position.c:23: /jenkins/jobs/oi-userland/workspace/components/image/graphviz/graphviz-2.40.1/lib/common/arith.h:43:18: warning: conversion to 'short unsigned int' from 'int' may alter its value [-Wconversion] #define MAX(a,b) ((a)>(b)?(a):(b)) ^ position.c:307:23: note: in expansion of macro 'MAX' ED_minlen(e0) = MAX(ED_minlen(e0), m0); ^~~ position.c: In function 'make_edge_pairs': position.c:337:8: warning: conversion to 'int' from 'double' may alter its value [-Wfloat-conversion] m0 = (ED_head_port(e).p.x - ED_tail_port(e).p.x); ^ In file included from /jenkins/jobs/oi-userland/workspace/components/image/graphviz/graphviz-2.40.1/lib/common/render.h:40:0, from dot.h:18, from position.c:23: position.c: In function 'adjustSimple': /jenkins/jobs/oi-userland/workspace/components/image/graphviz/graphviz-2.40.1/lib/common/types.h:356:19: warning: conversion to 'int' from 'double' may alter its value [-Wfloat-conversion] #define GD_ht1(g) (((Agraphinfo_t*)AGDATA(g))->ht1) ^ position.c:621:17: note: in expansion of macro 'GD_ht1' delbottom = GD_ht1(g) + bottom - (rank[maxr].ht1 - margin_total); ^~~~~~ /jenkins/jobs/oi-userland/workspace/components/image/graphviz/graphviz-2.40.1/lib/common/types.h:357:19: warning: conversion to 'int' from 'double' may alter its value [-Wfloat-conversion] #define GD_ht2(g) (((Agraphinfo_t*)AGDATA(g))->ht2) ^ position.c:627:11: note: in expansion of macro 'GD_ht2' deltop = GD_ht2(g) + (delta-bottom) + delbottom - (rank[minr].ht2 - margin_total); ^~~~~~ /jenkins/jobs/oi-userland/workspace/components/image/graphviz/graphviz-2.40.1/lib/common/types.h:357:19: warning: conversion to 'int' from 'double' may alter its value [-Wfloat-conversion] #define GD_ht2(g) (((Agraphinfo_t*)AGDATA(g))->ht2) ^ position.c:630:11: note: in expansion of macro 'GD_ht2' deltop = GD_ht2(g) + (delta-bottom) - (rank[minr].ht2 - margin_total); ^~~~~~ position.c: In function 'adjustRanks': position.c:683:22: warning: conversion to 'int' from 'double' may alter its value [-Wfloat-conversion] adjustSimple(g, delta, margin_total); ^~~~~ In file included from /jenkins/jobs/oi-userland/workspace/components/image/graphviz/graphviz-2.40.1/lib/common/render.h:40:0, from dot.h:18, from position.c:23: position.c: In function 'set_aspect': /jenkins/jobs/oi-userland/workspace/components/image/graphviz/graphviz-2.40.1/lib/common/types.h:336:18: warning: conversion to 'int' from 'double' may alter its value [-Wfloat-conversion] #define GD_bb(g) (((Agraphinfo_t*)AGDATA(g))->bb) ^ position.c:966:9: note: in expansion of macro 'GD_bb' sz.x = GD_bb(g).UR.x - GD_bb(g).LL.x; ^~~~~ /jenkins/jobs/oi-userland/workspace/components/image/graphviz/graphviz-2.40.1/lib/common/types.h:336:18: warning: conversion to 'int' from 'double' may alter its value [-Wfloat-conversion] #define GD_bb(g) (((Agraphinfo_t*)AGDATA(g))->bb) ^ position.c:967:9: note: in expansion of macro 'GD_bb' sz.y = GD_bb(g).UR.y - GD_bb(g).LL.y; /* normalize */ ^~~~~ position.c: In function 'resize_leaf': position.c:1043:16: warning: conversion to 'int' from 'double' may alter its value [-Wfloat-conversion] lbound.x = lbound.x + ND_lw(leaf) + ND_rw(leaf) + GD_nodesep(agraphof(leaf)); ^~~~~~ In file included from /jenkins/jobs/oi-userland/workspace/components/image/graphviz/graphviz-2.40.1/lib/common/render.h:44:0, from dot.h:18, from position.c:23: position.c: In function 'make_leafslots': /jenkins/jobs/oi-userland/workspace/components/image/graphviz/graphviz-2.40.1/lib/common/memory.h:41:62: warning: conversion to 'unsigned int' from 'int' may change the sign of the result [-Wsign-conversion] #define ALLOC(size,ptr,type) (ptr? (type*)grealloc(ptr,(size)*sizeof(type)):(type*)gmalloc((size)*sizeof(type))) ^ position.c:1079:20: note: in expansion of macro 'ALLOC' GD_rank(g)[r].v = ALLOC(j + 1, GD_rank(g)[r].v, node_t *); ^~~~~ /jenkins/jobs/oi-userland/workspace/components/image/graphviz/graphviz-2.40.1/lib/common/memory.h:41:98: warning: conversion to 'unsigned int' from 'int' may change the sign of the result [-Wsign-conversion] #define ALLOC(size,ptr,type) (ptr? (type*)grealloc(ptr,(size)*sizeof(type)):(type*)gmalloc((size)*sizeof(type))) ^ position.c:1079:20: note: in expansion of macro 'ALLOC' GD_rank(g)[r].v = ALLOC(j + 1, GD_rank(g)[r].v, node_t *); ^~~~~ In file included from /jenkins/jobs/oi-userland/workspace/components/image/graphviz/graphviz-2.40.1/lib/common/render.h:40:0, from dot.h:18, from position.c:23: position.c: In function 'do_leaves': /jenkins/jobs/oi-userland/workspace/components/image/graphviz/graphviz-2.40.1/lib/common/types.h:456:21: warning: conversion to 'int' from 'double' may alter its value [-Wfloat-conversion] #define ND_coord(n) (((Agnodeinfo_t*)AGDATA(n))->coord) ^ position.c:1098:16: note: in expansion of macro 'ND_coord' lbound.x = ND_coord(leader).x - ND_lw(leader); ^~~~~~~~ /jenkins/jobs/oi-userland/workspace/components/image/graphviz/graphviz-2.40.1/lib/common/types.h:456:21: warning: conversion to 'int' from 'double' may alter its value [-Wfloat-conversion] #define ND_coord(n) (((Agnodeinfo_t*)AGDATA(n))->coord) ^ position.c:1099:16: note: in expansion of macro 'ND_coord' lbound.y = ND_coord(leader).y; ^~~~~~~~ In file included from /jenkins/jobs/oi-userland/workspace/components/image/graphviz/graphviz-2.40.1/lib/common/render.h:44:0, from dot.h:18, from position.c:23: /jenkins/jobs/oi-userland/workspace/components/image/graphviz/graphviz-2.40.1/lib/common/memory.h:41:62: warning: conversion to 'unsigned int' from 'int' may change the sign of the result [-Wsign-conversion] #define ALLOC(size,ptr,type) (ptr? (type*)grealloc(ptr,(size)*sizeof(type)):(type*)gmalloc((size)*sizeof(type))) ^ /jenkins/jobs/oi-userland/workspace/components/image/graphviz/graphviz-2.40.1/lib/common/types.h:261:44: note: in expansion of macro 'ALLOC' #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:1109:3: note: in expansion of macro 'elist_append' elist_append(e1, ND_in(aghead(e1))); ^~~~~~~~~~~~ /jenkins/jobs/oi-userland/workspace/components/image/graphviz/graphviz-2.40.1/lib/common/memory.h:41:98: warning: conversion to 'unsigned int' from 'int' may change the sign of the result [-Wsign-conversion] #define ALLOC(size,ptr,type) (ptr? (type*)grealloc(ptr,(size)*sizeof(type)):(type*)gmalloc((size)*sizeof(type))) ^ /jenkins/jobs/oi-userland/workspace/components/image/graphviz/graphviz-2.40.1/lib/common/types.h:261:44: note: in expansion of macro 'ALLOC' #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:1109:3: note: in expansion of macro 'elist_append' elist_append(e1, ND_in(aghead(e1))); ^~~~~~~~~~~~ /jenkins/jobs/oi-userland/workspace/components/image/graphviz/graphviz-2.40.1/lib/common/memory.h:41:62: warning: conversion to 'unsigned int' from 'int' may change the sign of the result [-Wsign-conversion] #define ALLOC(size,ptr,type) (ptr? (type*)grealloc(ptr,(size)*sizeof(type)):(type*)gmalloc((size)*sizeof(type))) ^ /jenkins/jobs/oi-userland/workspace/components/image/graphviz/graphviz-2.40.1/lib/common/types.h:261:44: note: in expansion of macro 'ALLOC' #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:1119:3: note: in expansion of macro 'elist_append' elist_append(e, ND_out(agtail(e))); ^~~~~~~~~~~~ /jenkins/jobs/oi-userland/workspace/components/image/graphviz/graphviz-2.40.1/lib/common/memory.h:41:98: warning: conversion to 'unsigned int' from 'int' may change the sign of the result [-Wsign-conversion] #define ALLOC(size,ptr,type) (ptr? (type*)grealloc(ptr,(size)*sizeof(type)):(type*)gmalloc((size)*sizeof(type))) ^ /jenkins/jobs/oi-userland/workspace/components/image/graphviz/graphviz-2.40.1/lib/common/types.h:261:44: note: in expansion of macro 'ALLOC' #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:1119:3: note: in expansion of macro 'elist_append' elist_append(e, ND_out(agtail(e))); ^~~~~~~~~~~~ position.c: In function 'ports_eq': position.c:1128:32: warning: comparing floating point with == or != is unsafe [-Wfloat-equal] && (((ED_head_port(e).p.x == ED_head_port(f).p.x) && ^~ position.c:1129:25: warning: comparing floating point with == or != is unsafe [-Wfloat-equal] (ED_head_port(e).p.y == ED_head_port(f).p.y)) ^~ position.c:1131:32: warning: comparing floating point with == or != is unsafe [-Wfloat-equal] && (((ED_tail_port(e).p.x == ED_tail_port(f).p.x) && ^~ position.c:1132:25: warning: comparing floating point with == or != is unsafe [-Wfloat-equal] (ED_tail_port(e).p.y == ED_tail_port(f).p.y)) ^~ In file included from /jenkins/jobs/oi-userland/workspace/components/image/graphviz/graphviz-2.40.1/lib/common/geom.h:20:0, from /jenkins/jobs/oi-userland/workspace/components/image/graphviz/graphviz-2.40.1/lib/common/types.h:35, from /jenkins/jobs/oi-userland/workspace/components/image/graphviz/graphviz-2.40.1/lib/common/render.h:40, from dot.h:18, from position.c:23: position.c: In function 'make_lrvn': /jenkins/jobs/oi-userland/workspace/components/image/graphviz/graphviz-2.40.1/lib/common/arith.h:43:18: warning: conversion to 'int' from 'double' may alter its value [-Wfloat-conversion] #define MAX(a,b) ((a)>(b)?(a):(b)) ^ position.c:1191:10: note: in expansion of macro 'MAX' int w = MAX(GD_border(g)[BOTTOM_IX].x, GD_border(g)[TOP_IX].x); ^~~ rank.c: In function 'edgelabel_ranks': rank.c:102:19: warning: conversion to 'short unsigned int' from 'int' may alter its value [-Wconversion] ED_minlen(e) *= 2; ^ rank.c: In function 'collapse_rankset': rank.c:115:19: warning: conversion to 'char' from 'int' may alter its value [-Wconversion] ND_ranktype(u) = kind; ^~~~ rank.c:120:2: warning: switch missing default case [-Wswitch-default] switch (kind) { ^~~~~~ rank.c:138:34: warning: conversion to 'char' from 'int' may alter its value [-Wconversion] ND_ranktype(GD_minset(g)) = kind; ^~~~ rank.c:141:34: warning: conversion to 'char' from 'int' may alter its value [-Wconversion] ND_ranktype(GD_maxset(g)) = kind; ^~~~ rank.c:136:2: warning: switch missing default case [-Wswitch-default] switch (kind) { ^~~~~~ rank.c: In function 'rank_set_class': rank.c:158:22: warning: conversion to 'char' from 'int' may alter its value [-Wconversion] GD_set_type(g) = val; ^~~ In file included from /jenkins/jobs/oi-userland/workspace/components/image/graphviz/graphviz-2.40.1/lib/common/render.h:44:0, from dot.h:18, from rank.c:29: rank.c: In function 'make_new_cluster': rank.c:167:26: warning: conversion to 'size_t {aka unsigned int}' from 'int' may change the sign of the result [-Wsign-conversion] GD_clust(g) = ZALLOC(cno + 1, GD_clust(g), graph_t *, GD_n_cluster(g)); ^ /jenkins/jobs/oi-userland/workspace/components/image/graphviz/graphviz-2.40.1/lib/common/memory.h:43:63: note: in definition of macro 'ZALLOC' #define ZALLOC(size,ptr,type,osize) (ptr? (type*)zrealloc(ptr,size,sizeof(type),osize):(type*)zmalloc((size)*sizeof(type))) ^~~~ /jenkins/jobs/oi-userland/workspace/components/image/graphviz/graphviz-2.40.1/lib/common/types.h:375:25: warning: conversion to 'size_t {aka unsigned int}' from 'int' may change the sign of the result [-Wsign-conversion] #define GD_n_cluster(g) (((Agraphinfo_t*)AGDATA(g))->n_cluster) ^ /jenkins/jobs/oi-userland/workspace/components/image/graphviz/graphviz-2.40.1/lib/common/memory.h:43:81: note: in definition of macro 'ZALLOC' #define ZALLOC(size,ptr,type,osize) (ptr? (type*)zrealloc(ptr,size,sizeof(type),osize):(type*)zmalloc((size)*sizeof(type))) ^~~~~ rank.c:167:59: note: in expansion of macro 'GD_n_cluster' GD_clust(g) = ZALLOC(cno + 1, GD_clust(g), graph_t *, GD_n_cluster(g)); ^~~~~~~~~~~~ /jenkins/jobs/oi-userland/workspace/components/image/graphviz/graphviz-2.40.1/lib/common/memory.h:43:109: warning: conversion to 'unsigned int' from 'int' may change the sign of the result [-Wsign-conversion] #define ZALLOC(size,ptr,type,osize) (ptr? (type*)zrealloc(ptr,size,sizeof(type),osize):(type*)zmalloc((size)*sizeof(type))) ^ rank.c:167:19: note: in expansion of macro 'ZALLOC' GD_clust(g) = ZALLOC(cno + 1, GD_clust(g), graph_t *, GD_n_cluster(g)); ^~~~~~ In file included from /jenkins/jobs/oi-userland/workspace/components/image/graphviz/graphviz-2.40.1/lib/common/render.h:40:0, from dot.h:18, from rank.c:29: rank.c: In function 'dot_scan_ranks': /jenkins/jobs/oi-userland/workspace/components/image/graphviz/graphviz-2.40.1/lib/common/types.h:489:20: warning: conversion to 'short int' from 'int' may alter its value [-Wconversion] #define ND_rank(n) (((Agnodeinfo_t*)AGDATA(n))->rank) ^ rank.c:211:22: note: in expansion of macro 'ND_rank' GD_maxrank(g) = ND_rank(n); ^~~~~~~ /jenkins/jobs/oi-userland/workspace/components/image/graphviz/graphviz-2.40.1/lib/common/types.h:489:20: warning: conversion to 'short int' from 'int' may alter its value [-Wconversion] #define ND_rank(n) (((Agnodeinfo_t*)AGDATA(n))->rank) ^ rank.c:213:22: note: in expansion of macro 'ND_rank' GD_minrank(g) = ND_rank(n); ^~~~~~~ rank.c: In function 'set_minmax': /jenkins/jobs/oi-userland/workspace/components/image/graphviz/graphviz-2.40.1/lib/common/types.h:489:20: warning: conversion to 'short int' from 'int' may alter its value [-Wconversion] #define ND_rank(n) (((Agnodeinfo_t*)AGDATA(n))->rank) ^ rank.c:319:22: note: in expansion of macro 'ND_rank' GD_minrank(g) += ND_rank(GD_leader(g)); ^~~~~~~ /jenkins/jobs/oi-userland/workspace/components/image/graphviz/graphviz-2.40.1/lib/common/types.h:489:20: warning: conversion to 'short int' from 'int' may alter its value [-Wconversion] #define ND_rank(n) (((Agnodeinfo_t*)AGDATA(n))->rank) ^ rank.c:320:22: note: in expansion of macro 'ND_rank' GD_maxrank(g) += ND_rank(GD_leader(g)); ^~~~~~~ rank.c: In function 'minmax_edges2': rank.c:372:18: warning: conversion to 'short unsigned int' from 'int' may alter its value [-Wconversion] ED_minlen(e) = slen.y; ^~~~ rank.c:377:18: warning: conversion to 'short unsigned int' from 'int' may alter its value [-Wconversion] ED_minlen(e) = slen.x; ^~~~ rank.c: In function 'rank1': rank.c:393:12: warning: conversion to 'int' from 'double' may alter its value [-Wfloat-conversion] maxiter = atof(s) * agnnodes(g); ^~~~ In file included from /jenkins/jobs/oi-userland/workspace/components/image/graphviz/graphviz-2.40.1/lib/common/render.h:40:0, from dot.h:18, from rank.c:29: rank.c: In function 'expand_ranksets': /jenkins/jobs/oi-userland/workspace/components/image/graphviz/graphviz-2.40.1/lib/common/types.h:489:20: warning: conversion to 'short int' from 'int' may alter its value [-Wconversion] #define ND_rank(n) (((Agnodeinfo_t*)AGDATA(n))->rank) ^ rank.c:423:19: note: in expansion of macro 'ND_rank' GD_maxrank(g) = ND_rank(n); ^~~~~~~ /jenkins/jobs/oi-userland/workspace/components/image/graphviz/graphviz-2.40.1/lib/common/types.h:489:20: warning: conversion to 'short int' from 'int' may alter its value [-Wconversion] #define ND_rank(n) (((Agnodeinfo_t*)AGDATA(n))->rank) ^ rank.c:425:19: note: in expansion of macro 'ND_rank' GD_minrank(g) = ND_rank(n); ^~~~~~~ In file included from /jenkins/jobs/oi-userland/workspace/components/image/graphviz/graphviz-2.40.1/lib/common/geom.h:20:0, from /jenkins/jobs/oi-userland/workspace/components/image/graphviz/graphviz-2.40.1/lib/common/types.h:35, from /jenkins/jobs/oi-userland/workspace/components/image/graphviz/graphviz-2.40.1/lib/common/render.h:40, from dot.h:18, from rank.c:29: rank.c: In function 'merge': /jenkins/jobs/oi-userland/workspace/components/image/graphviz/graphviz-2.40.1/lib/common/arith.h:43:18: warning: conversion to 'short unsigned int' from 'int' may alter its value [-Wconversion] #define MAX(a,b) ((a)>(b)?(a):(b)) ^ rank.c:887:20: note: in expansion of macro 'MAX' ED_minlen(e) = MAX(ED_minlen(e), minlen); ^~~ rank.c: In function 'setMinMax': rank.c:1061:22: warning: conversion to 'short int' from 'int' may alter its value [-Wconversion] GD_maxrank(g) = v; ^ rank.c:1063:22: warning: conversion to 'short int' from 'int' may alter its value [-Wconversion] GD_minrank(g) = v; ^ In file included from /jenkins/jobs/oi-userland/workspace/components/image/graphviz/graphviz-2.40.1/lib/common/render.h:44:0, from dot.h:18, from rank.c:29: rank.c: In function 'readout_levels': /jenkins/jobs/oi-userland/workspace/components/image/graphviz/graphviz-2.40.1/lib/common/memory.h:36:41: warning: conversion to 'unsigned int' from 'int' may change the sign of the result [-Wsign-conversion] #define N_NEW(n,t) (t*)zmalloc((n)*sizeof(t)) ^ rank.c:1088:10: note: in expansion of macro 'N_NEW' minrk = N_NEW(ncc+1,int); ^~~~~ In file included from /jenkins/jobs/oi-userland/workspace/components/image/graphviz/graphviz-2.40.1/lib/common/render.h:40:0, from dot.h:18, from rank.c:29: /jenkins/jobs/oi-userland/workspace/components/image/graphviz/graphviz-2.40.1/lib/common/types.h:489:20: warning: conversion to 'short int' from 'int' may alter its value [-Wconversion] #define ND_rank(n) (((Agnodeinfo_t*)AGDATA(n))->rank) ^ rank.c:1096:22: note: in expansion of macro 'ND_rank' GD_maxrank(g) = ND_rank(n); ^~~~~~~ /jenkins/jobs/oi-userland/workspace/components/image/graphviz/graphviz-2.40.1/lib/common/types.h:489:20: warning: conversion to 'short int' from 'int' may alter its value [-Wconversion] #define ND_rank(n) (((Agnodeinfo_t*)AGDATA(n))->rank) ^ rank.c:1098:22: note: in expansion of macro 'ND_rank' GD_minrank(g) = ND_rank(n); ^~~~~~~ rank.c:1114:19: warning: conversion to 'short int' from 'int' may alter its value [-Wconversion] GD_minrank(g) -= delta; ^~~~~ rank.c:1115:19: warning: conversion to 'short int' from 'int' may alter its value [-Wconversion] GD_maxrank(g) -= delta; ^~~~~ In file included from /jenkins/jobs/oi-userland/workspace/components/image/graphviz/graphviz-2.40.1/lib/common/render.h:44:0, from dot.h:18, from rank.c:29: rank.c: In function 'add_fast_edges': /jenkins/jobs/oi-userland/workspace/components/image/graphviz/graphviz-2.40.1/lib/common/memory.h:41:62: warning: conversion to 'unsigned int' from 'int' may change the sign of the result [-Wsign-conversion] #define ALLOC(size,ptr,type) (ptr? (type*)grealloc(ptr,(size)*sizeof(type)):(type*)gmalloc((size)*sizeof(type))) ^ /jenkins/jobs/oi-userland/workspace/components/image/graphviz/graphviz-2.40.1/lib/common/types.h:261:44: note: in expansion of macro 'ALLOC' #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:1175:6: note: in expansion of macro 'elist_append' elist_append(e, ND_out(n)); ^~~~~~~~~~~~ /jenkins/jobs/oi-userland/workspace/components/image/graphviz/graphviz-2.40.1/lib/common/memory.h:41:98: warning: conversion to 'unsigned int' from 'int' may change the sign of the result [-Wsign-conversion] #define ALLOC(size,ptr,type) (ptr? (type*)grealloc(ptr,(size)*sizeof(type)):(type*)gmalloc((size)*sizeof(type))) ^ /jenkins/jobs/oi-userland/workspace/components/image/graphviz/graphviz-2.40.1/lib/common/types.h:261:44: note: in expansion of macro 'ALLOC' #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:1175:6: note: in expansion of macro 'elist_append' elist_append(e, ND_out(n)); ^~~~~~~~~~~~ /jenkins/jobs/oi-userland/workspace/components/image/graphviz/graphviz-2.40.1/lib/common/memory.h:41:62: warning: conversion to 'unsigned int' from 'int' may change the sign of the result [-Wsign-conversion] #define ALLOC(size,ptr,type) (ptr? (type*)grealloc(ptr,(size)*sizeof(type)):(type*)gmalloc((size)*sizeof(type))) ^ /jenkins/jobs/oi-userland/workspace/components/image/graphviz/graphviz-2.40.1/lib/common/types.h:261:44: note: in expansion of macro 'ALLOC' #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:1176:6: note: in expansion of macro 'elist_append' elist_append(e, ND_in(aghead(e))); ^~~~~~~~~~~~ /jenkins/jobs/oi-userland/workspace/components/image/graphviz/graphviz-2.40.1/lib/common/memory.h:41:98: warning: conversion to 'unsigned int' from 'int' may change the sign of the result [-Wsign-conversion] #define ALLOC(size,ptr,type) (ptr? (type*)grealloc(ptr,(size)*sizeof(type)):(type*)gmalloc((size)*sizeof(type))) ^ /jenkins/jobs/oi-userland/workspace/components/image/graphviz/graphviz-2.40.1/lib/common/types.h:261:44: note: in expansion of macro 'ALLOC' #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:1176:6: note: in expansion of macro 'elist_append' elist_append(e, ND_in(aghead(e))); ^~~~~~~~~~~~ rank.c: In function 'my_init_graph': rank.c:1182:52: warning: conversion to 'unsigned int' from 'int' may change the sign of the result [-Wsign-conversion] { int *sz = arg; agbindrec(graph,"level graph rec",sz[0],TRUE); } ^~ rank.c:1181:37: warning: unused parameter 'g' [-Wunused-parameter] static void my_init_graph(Agraph_t *g, Agobj_t *graph, void *arg) ^ rank.c: In function 'my_init_node': rank.c:1184:50: warning: conversion to 'unsigned int' from 'int' may change the sign of the result [-Wsign-conversion] { int *sz = arg; agbindrec(node,"level node rec",sz[1],TRUE); } ^~ rank.c:1183:36: warning: unused parameter 'g' [-Wunused-parameter] static void my_init_node(Agraph_t *g, Agobj_t *node, void *arg) ^ rank.c: In function 'my_init_edge': rank.c:1186:50: warning: conversion to 'unsigned int' from 'int' may change the sign of the result [-Wsign-conversion] { int *sz = arg; agbindrec(edge,"level edge rec",sz[2],TRUE); } ^~ rank.c:1185:36: warning: unused parameter 'g' [-Wunused-parameter] static void my_init_edge(Agraph_t *g, Agobj_t *edge, void *arg) ^ rank.c: In function 'dot2_rank': rank.c:1210:12: warning: conversion to 'int' from 'double' may alter its value [-Wfloat-conversion] maxiter = atof(s) * agnnodes(g); ^~~~ In file included from /jenkins/jobs/oi-userland/workspace/components/image/graphviz/graphviz-2.40.1/lib/common/render.h:44:0, from dot.h:18, from sameport.c:19: sameport.c: In function 'sameedge': /jenkins/jobs/oi-userland/workspace/components/image/graphviz/graphviz-2.40.1/lib/common/memory.h:41:62: warning: conversion to 'unsigned int' from 'int' may change the sign of the result [-Wsign-conversion] #define ALLOC(size,ptr,type) (ptr? (type*)grealloc(ptr,(size)*sizeof(type)):(type*)gmalloc((size)*sizeof(type))) ^ /jenkins/jobs/oi-userland/workspace/components/image/graphviz/graphviz-2.40.1/lib/common/types.h:261:44: note: in expansion of macro 'ALLOC' #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:83:6: note: in expansion of macro 'elist_append' elist_append(e, same[i].l); ^~~~~~~~~~~~ /jenkins/jobs/oi-userland/workspace/components/image/graphviz/graphviz-2.40.1/lib/common/memory.h:41:98: warning: conversion to 'unsigned int' from 'int' may change the sign of the result [-Wsign-conversion] #define ALLOC(size,ptr,type) (ptr? (type*)grealloc(ptr,(size)*sizeof(type)):(type*)gmalloc((size)*sizeof(type))) ^ /jenkins/jobs/oi-userland/workspace/components/image/graphviz/graphviz-2.40.1/lib/common/types.h:261:44: note: in expansion of macro 'ALLOC' #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:83:6: note: in expansion of macro 'elist_append' elist_append(e, same[i].l); ^~~~~~~~~~~~ dotsplines.c:114:1: warning: missing initializer for field 'ignoreSwap' of 'splineInfo {aka struct }' [-Wmissing-field-initializers] static splineInfo sinfo = { swap_ends_p, spline_merge }; ^~~~~~ In file included from /jenkins/jobs/oi-userland/workspace/components/image/graphviz/graphviz-2.40.1/lib/common/render.h:40:0, from dot.h:18, from dotsplines.c:19: /jenkins/jobs/oi-userland/workspace/components/image/graphviz/graphviz-2.40.1/lib/common/types.h:88:10: note: 'ignoreSwap' declared here boolean ignoreSwap; /* Test for swapped edges if false */ ^~~~~~~~~~ dotsplines.c: In function 'portcmp': dotsplines.c:123:10: warning: conversion to 'int' from 'double' may alter its value [-Wfloat-conversion] rv = p0.p.x - p1.p.x; ^~ dotsplines.c:125:7: warning: conversion to 'int' from 'double' may alter its value [-Wfloat-conversion] rv = p0.p.y - p1.p.y; ^~ In file included from /jenkins/jobs/oi-userland/workspace/components/image/graphviz/graphviz-2.40.1/lib/common/render.h:44:0, from dot.h:18, from dotsplines.c:19: dotsplines.c: In function 'swap_bezier': /jenkins/jobs/oi-userland/workspace/components/image/graphviz/graphviz-2.40.1/lib/common/memory.h:39:41: warning: conversion to 'unsigned int' from 'int' may change the sign of the result [-Wsign-conversion] #define N_GNEW(n,t) (t*)gmalloc((n)*sizeof(t)) ^ dotsplines.c:139:12: note: in expansion of macro 'N_GNEW' list = N_GNEW(sz, pointf); ^~~~~~ dotsplines.c: In function 'swap_spline': /jenkins/jobs/oi-userland/workspace/components/image/graphviz/graphviz-2.40.1/lib/common/memory.h:39:41: warning: conversion to 'unsigned int' from 'int' may change the sign of the result [-Wsign-conversion] #define N_GNEW(n,t) (t*)gmalloc((n)*sizeof(t)) ^ dotsplines.c:164:12: note: in expansion of macro 'N_GNEW' list = N_GNEW(sz, bezier); ^~~~~~ sameport.c: In function 'sameport': sameport.c:173:2: warning: conversion to 'unsigned char' from 'double' may alter its value [-Wfloat-conversion] (MC_SCALE * (ND_lw(u) + prt.p.x)) / (ND_lw(u) + ND_rw(u)); ^ In file included from /jenkins/jobs/oi-userland/workspace/components/image/graphviz/graphviz-2.40.1/lib/common/geom.h:20:0, from /jenkins/jobs/oi-userland/workspace/components/image/graphviz/graphviz-2.40.1/lib/common/types.h:35, from /jenkins/jobs/oi-userland/workspace/components/image/graphviz/graphviz-2.40.1/lib/common/render.h:40, from dot.h:18, from dotsplines.c:19: dotsplines.c: In function '_dot_splines': /jenkins/jobs/oi-userland/workspace/components/image/graphviz/graphviz-2.40.1/lib/common/arith.h:38:18: warning: conversion to 'int' from 'double' may alter its value [-Wfloat-conversion] #define MIN(a,b) ((a)<(b)?(a):(b)) ^ dotsplines.c:300:21: note: in expansion of macro 'MIN' sd.LeftBound = MIN(sd.LeftBound, (ND_coord(n).x - ND_lw(n))); ^~~ /jenkins/jobs/oi-userland/workspace/components/image/graphviz/graphviz-2.40.1/lib/common/arith.h:43:18: warning: conversion to 'int' from 'double' may alter its value [-Wfloat-conversion] #define MAX(a,b) ((a)>(b)?(a):(b)) ^ dotsplines.c:302:22: note: in expansion of macro 'MAX' sd.RightBound = MAX(sd.RightBound, (ND_coord(n).x + ND_rw(n))); ^~~ sameport.c:106:52: warning: unused parameter 'arr_len' [-Wunused-parameter] static void sameport(node_t * u, elist * l, double arr_len) ^~~~~~~ In file included from /jenkins/jobs/oi-userland/workspace/components/image/graphviz/graphviz-2.40.1/lib/common/render.h:44:0, from dot.h:18, from dotsplines.c:19: /jenkins/jobs/oi-userland/workspace/components/image/graphviz/graphviz-2.40.1/lib/common/memory.h:41:62: warning: conversion to 'unsigned int' from 'int' may change the sign of the result [-Wsign-conversion] #define ALLOC(size,ptr,type) (ptr? (type*)grealloc(ptr,(size)*sizeof(type)):(type*)gmalloc((size)*sizeof(type))) ^ dotsplines.c:82:28: note: in expansion of macro 'ALLOC' #define GROWEDGES (edges = ALLOC (n_edges + CHUNK, edges, edge_t*)) ^~~~~ dotsplines.c:327:7: note: in expansion of macro 'GROWEDGES' GROWEDGES; ^~~~~~~~~ /jenkins/jobs/oi-userland/workspace/components/image/graphviz/graphviz-2.40.1/lib/common/memory.h:41:98: warning: conversion to 'unsigned int' from 'int' may change the sign of the result [-Wsign-conversion] #define ALLOC(size,ptr,type) (ptr? (type*)grealloc(ptr,(size)*sizeof(type)):(type*)gmalloc((size)*sizeof(type))) ^ dotsplines.c:82:28: note: in expansion of macro 'ALLOC' #define GROWEDGES (edges = ALLOC (n_edges + CHUNK, edges, edge_t*)) ^~~~~ dotsplines.c:327:7: note: in expansion of macro 'GROWEDGES' GROWEDGES; ^~~~~~~~~ /jenkins/jobs/oi-userland/workspace/components/image/graphviz/graphviz-2.40.1/lib/common/memory.h:41:62: warning: conversion to 'unsigned int' from 'int' may change the sign of the result [-Wsign-conversion] #define ALLOC(size,ptr,type) (ptr? (type*)grealloc(ptr,(size)*sizeof(type)):(type*)gmalloc((size)*sizeof(type))) ^ dotsplines.c:82:28: note: in expansion of macro 'ALLOC' #define GROWEDGES (edges = ALLOC (n_edges + CHUNK, edges, edge_t*)) ^~~~~ dotsplines.c:334:4: note: in expansion of macro 'GROWEDGES' GROWEDGES; ^~~~~~~~~ /jenkins/jobs/oi-userland/workspace/components/image/graphviz/graphviz-2.40.1/lib/common/memory.h:41:98: warning: conversion to 'unsigned int' from 'int' may change the sign of the result [-Wsign-conversion] #define ALLOC(size,ptr,type) (ptr? (type*)grealloc(ptr,(size)*sizeof(type)):(type*)gmalloc((size)*sizeof(type))) ^ dotsplines.c:82:28: note: in expansion of macro 'ALLOC' #define GROWEDGES (edges = ALLOC (n_edges + CHUNK, edges, edge_t*)) ^~~~~ dotsplines.c:334:4: note: in expansion of macro 'GROWEDGES' GROWEDGES; ^~~~~~~~~ /jenkins/jobs/oi-userland/workspace/components/image/graphviz/graphviz-2.40.1/lib/common/memory.h:41:62: warning: conversion to 'unsigned int' from 'int' may change the sign of the result [-Wsign-conversion] #define ALLOC(size,ptr,type) (ptr? (type*)grealloc(ptr,(size)*sizeof(type)):(type*)gmalloc((size)*sizeof(type))) ^ dotsplines.c:82:28: note: in expansion of macro 'ALLOC' #define GROWEDGES (edges = ALLOC (n_edges + CHUNK, edges, edge_t*)) ^~~~~ dotsplines.c:351:4: note: in expansion of macro 'GROWEDGES' GROWEDGES; ^~~~~~~~~ /jenkins/jobs/oi-userland/workspace/components/image/graphviz/graphviz-2.40.1/lib/common/memory.h:41:98: warning: conversion to 'unsigned int' from 'int' may change the sign of the result [-Wsign-conversion] #define ALLOC(size,ptr,type) (ptr? (type*)grealloc(ptr,(size)*sizeof(type)):(type*)gmalloc((size)*sizeof(type))) ^ dotsplines.c:82:28: note: in expansion of macro 'ALLOC' #define GROWEDGES (edges = ALLOC (n_edges + CHUNK, edges, edge_t*)) ^~~~~ dotsplines.c:351:4: note: in expansion of macro 'GROWEDGES' GROWEDGES; ^~~~~~~~~ dotsplines.c:363:31: warning: conversion to 'size_t {aka unsigned int}' from 'int' may change the sign of the result [-Wsign-conversion] qsort((char *) &edges[0], n_edges, sizeof(edges[0]), ^~~~~~~ In file included from /jenkins/jobs/oi-userland/workspace/components/image/graphviz/graphviz-2.40.1/lib/common/render.h:44:0, from dot.h:18, from dotsplines.c:19: /jenkins/jobs/oi-userland/workspace/components/image/graphviz/graphviz-2.40.1/lib/common/memory.h:36:41: warning: conversion to 'unsigned int' from 'int' may change the sign of the result [-Wsign-conversion] #define N_NEW(n,t) (t*)zmalloc((n)*sizeof(t)) ^ dotsplines.c:367:16: note: in expansion of macro 'N_NEW' P->boxes = N_NEW(n_nodes + 20 * 2 * NSUB, boxf); ^~~~~ /jenkins/jobs/oi-userland/workspace/components/image/graphviz/graphviz-2.40.1/lib/common/memory.h:36:41: warning: conversion to 'unsigned int' from 'int' may change the sign of the result [-Wsign-conversion] #define N_NEW(n,t) (t*)zmalloc((n)*sizeof(t)) ^ dotsplines.c:368:19: note: in expansion of macro 'N_NEW' sd.Rank_box = N_NEW(i, boxf); ^~~~~ dotsplines.c:417:14: warning: declaration of 'e0' shadows a previous local [-Wshadow] edge_t* e0; ^~ dotsplines.c:259:17: note: shadowed declaration is here edge_t *e, *e0, *e1, *ea, *eb, *le0, *le1, **edges = NULL; ^~ In file included from /jenkins/jobs/oi-userland/workspace/components/image/graphviz/graphviz-2.40.1/lib/common/render.h:44:0, from dot.h:18, from dotsplines.c:19: /jenkins/jobs/oi-userland/workspace/components/image/graphviz/graphviz-2.40.1/lib/common/memory.h:36:41: warning: conversion to 'unsigned int' from 'int' may change the sign of the result [-Wsign-conversion] #define N_NEW(n,t) (t*)zmalloc((n)*sizeof(t)) ^ dotsplines.c:422:14: note: in expansion of macro 'N_NEW' edgelist = N_NEW(cnt, edge_t*); ^~~~~ In file included from /jenkins/jobs/oi-userland/workspace/components/image/graphviz/graphviz-2.40.1/lib/common/render.h:40:0, from dot.h:18, from dotsplines.c:19: /jenkins/jobs/oi-userland/workspace/components/image/graphviz/graphviz-2.40.1/lib/common/types.h:456:21: warning: conversion to 'int' from 'double' may alter its value [-Wfloat-conversion] #define ND_coord(n) (((Agnodeinfo_t*)AGDATA(n))->coord) ^ dotsplines.c:436:15: note: in expansion of macro 'ND_coord' sizey = ND_coord(GD_rank(g)[r-1].v[0]).y - ND_coord(n).y; ^~~~~~~~ /jenkins/jobs/oi-userland/workspace/components/image/graphviz/graphviz-2.40.1/lib/common/types.h:466:18: warning: conversion to 'int' from 'double' may alter its value [-Wfloat-conversion] #define ND_ht(n) (((Agnodeinfo_t*)AGDATA(n))->ht) ^ dotsplines.c:438:15: note: in expansion of macro 'ND_ht' sizey = ND_ht(n); ^~~~~ /jenkins/jobs/oi-userland/workspace/components/image/graphviz/graphviz-2.40.1/lib/common/types.h:456:21: warning: conversion to 'int' from 'double' may alter its value [-Wfloat-conversion] #define ND_coord(n) (((Agnodeinfo_t*)AGDATA(n))->coord) ^ dotsplines.c:441:11: note: in expansion of macro 'ND_coord' sizey = ND_coord(n).y - ND_coord(GD_rank(g)[r+1].v[0]).y; ^~~~~~~~ /jenkins/jobs/oi-userland/workspace/components/image/graphviz/graphviz-2.40.1/lib/common/types.h:456:21: warning: conversion to 'int' from 'double' may alter its value [-Wfloat-conversion] #define ND_coord(n) (((Agnodeinfo_t*)AGDATA(n))->coord) ^ dotsplines.c:444:13: note: in expansion of macro 'ND_coord' int upy = ND_coord(GD_rank(g)[r-1].v[0]).y - ND_coord(n).y; ^~~~~~~~ /jenkins/jobs/oi-userland/workspace/components/image/graphviz/graphviz-2.40.1/lib/common/types.h:456:21: warning: conversion to 'int' from 'double' may alter its value [-Wfloat-conversion] #define ND_coord(n) (((Agnodeinfo_t*)AGDATA(n))->coord) ^ dotsplines.c:445:14: note: in expansion of macro 'ND_coord' int dwny = ND_coord(n).y - ND_coord(GD_rank(g)[r+1].v[0]).y; ^~~~~~~~ dotsplines.c: In function 'cloneNode': dotsplines.c:894:15: warning: conversion to 'int' from 'size_t {aka unsigned int}' may change the sign of the result [-Wsign-conversion] int lbllen = strlen(ND_label(orign)->text); ^~~~~~ In file included from /jenkins/jobs/oi-userland/workspace/components/image/graphviz/graphviz-2.40.1/lib/common/render.h:44:0, from dot.h:18, from dotsplines.c:19: /jenkins/jobs/oi-userland/workspace/components/image/graphviz/graphviz-2.40.1/lib/common/memory.h:39:41: warning: conversion to 'unsigned int' from 'int' may change the sign of the result [-Wsign-conversion] #define N_GNEW(n,t) (t*)gmalloc((n)*sizeof(t)) ^ dotsplines.c:895:21: note: in expansion of macro 'N_GNEW' char* buf = N_GNEW(lbllen+3,char); ^~~~~~ dotsplines.c:888:43: warning: unused parameter 'flipped' [-Wunused-parameter] cloneNode (graph_t* g, node_t* orign, int flipped) ^~~~~~~ In file included from /jenkins/jobs/oi-userland/workspace/components/image/graphviz/graphviz-2.40.1/lib/common/render.h:44:0, from dot.h:18, from dotsplines.c:19: dotsplines.c: In function 'makeSimpleFlatLabels': /jenkins/jobs/oi-userland/workspace/components/image/graphviz/graphviz-2.40.1/lib/common/memory.h:36:41: warning: conversion to 'unsigned int' from 'int' may change the sign of the result [-Wsign-conversion] #define N_NEW(n,t) (t*)zmalloc((n)*sizeof(t)) ^ dotsplines.c:993:23: note: in expansion of macro 'N_NEW' edge_t** earray = N_NEW(cnt, edge_t*); ^~~~~ dotsplines.c:999:20: warning: conversion to 'size_t {aka unsigned int}' from 'int' may change the sign of the result [-Wsign-conversion] qsort (earray, cnt, sizeof(edge_t*), (qsort_cmpf) edgelblcmpfn); ^~~ In file included from /jenkins/jobs/oi-userland/workspace/components/image/graphviz/graphviz-2.40.1/lib/common/render.h:40:0, from dot.h:18, from dotsplines.c:19: dotsplines.c: In function 'make_flat_adj_edges': /jenkins/jobs/oi-userland/workspace/components/image/graphviz/graphviz-2.40.1/lib/common/types.h:456:21: warning: conversion to 'int' from 'double' may alter its value [-Wfloat-conversion] #define ND_coord(n) (((Agnodeinfo_t*)AGDATA(n))->coord) ^ dotsplines.c:1233:14: note: in expansion of macro 'ND_coord' rightx = ND_coord(hn).x; ^~~~~~~~ /jenkins/jobs/oi-userland/workspace/components/image/graphviz/graphviz-2.40.1/lib/common/types.h:456:21: warning: conversion to 'int' from 'double' may alter its value [-Wfloat-conversion] #define ND_coord(n) (((Agnodeinfo_t*)AGDATA(n))->coord) ^ dotsplines.c:1234:13: note: in expansion of macro 'ND_coord' leftx = ND_coord(tn).x; ^~~~~~~~ dotsplines.c:1236:17: warning: declaration of 'n' shadows a previous local [-Wshadow] node_t* n; ^ dotsplines.c:1185:13: note: shadowed declaration is here node_t* n; ^ dotsplines.c:1270:12: warning: conversion to 'int' from 'double' may alter its value [-Wfloat-conversion] midx = (ND_coord(tn).x - ND_rw(tn) + ND_coord(hn).x + ND_lw(hn))/2; ^ dotsplines.c:1271:12: warning: conversion to 'int' from 'double' may alter its value [-Wfloat-conversion] midy = (ND_coord(auxt).x + ND_coord(auxh).x)/2; ^ dotsplines.c:1182:39: warning: unused parameter 'P' [-Wunused-parameter] make_flat_adj_edges(graph_t* g, path* P, edge_t** edges, int ind, int cnt, edge_t* e0, ^ In file included from /jenkins/jobs/oi-userland/workspace/components/image/graphviz/graphviz-2.40.1/lib/common/render.h:40:0, from dot.h:18, from dotsplines.c:19: dotsplines.c: In function 'make_flat_labeled_edge': /jenkins/jobs/oi-userland/workspace/components/image/graphviz/graphviz-2.40.1/lib/common/types.h:456:21: warning: conversion to 'int' from 'double' may alter its value [-Wfloat-conversion] #define ND_coord(n) (((Agnodeinfo_t*)AGDATA(n))->coord) ^ dotsplines.c:1410:11: note: in expansion of macro 'ND_coord' ydelta = ND_coord(ln).y - GD_rank(g)[ND_rank(tn)].ht1 - ^~~~~~~~ dotsplines.c:1412:12: warning: conversion to 'int' from 'double' may alter its value [-Wfloat-conversion] ydelta /= 6.; ^~ In file included from /jenkins/jobs/oi-userland/workspace/components/image/graphviz/graphviz-2.40.1/lib/common/render.h:44:0, from dot.h:18, from aspect.c:14: aspect.c: In function 'computeNodeGroups': /jenkins/jobs/oi-userland/workspace/components/image/graphviz/graphviz-2.40.1/lib/common/memory.h:39:41: warning: conversion to 'unsigned int' from 'int' may change the sign of the result [-Wsign-conversion] #define N_GNEW(n,t) (t*)gmalloc((n)*sizeof(t)) ^ aspect.c:58:18: note: in expansion of macro 'N_GNEW' nodeGroups = N_GNEW(agnnodes(g), nodeGroup_t); ^~~~~~ dotsplines.c: In function 'make_flat_bottom_edges': dotsplines.c:1450:31: warning: declaration of 'splines' shadows a global declaration [-Wshadow] ind, int cnt, edge_t* e, int splines) ^~~~~~~ In file included from /jenkins/jobs/oi-userland/workspace/components/image/graphviz/graphviz-2.40.1/lib/common/render.h:40:0, from dot.h:18, from dotsplines.c:19: /jenkins/jobs/oi-userland/workspace/components/image/graphviz/graphviz-2.40.1/lib/common/types.h:118:7: note: shadowed declaration is here } splines; ^~~~~~~ /jenkins/jobs/oi-userland/workspace/components/image/graphviz/graphviz-2.40.1/lib/common/memory.h:36:41: warning: conversion to 'unsigned int' from 'int' may change the sign of the result [-Wsign-conversion] #define N_NEW(n,t) (t*)zmalloc((n)*sizeof(t)) ^ aspect.c:94:7: note: in expansion of macro 'N_NEW' N_NEW(ND_UF_size(l), node_t *); ^~~~~ aspect.c: In function 'computeLayerWidths': /jenkins/jobs/oi-userland/workspace/components/image/graphviz/graphviz-2.40.1/lib/common/memory.h:36:41: warning: conversion to 'unsigned int' from 'int' may change the sign of the result [-Wsign-conversion] #define N_NEW(n,t) (t*)zmalloc((n)*sizeof(t)) ^ aspect.c:205:22: note: in expansion of macro 'N_NEW' layerWidthInfo = N_NEW(nNodeGroups, layerWidthInfo_t); ^~~~~ /jenkins/jobs/oi-userland/workspace/components/image/graphviz/graphviz-2.40.1/lib/common/memory.h:36:41: warning: conversion to 'unsigned int' from 'int' may change the sign of the result [-Wsign-conversion] #define N_NEW(n,t) (t*)zmalloc((n)*sizeof(t)) ^ aspect.c:209:6: note: in expansion of macro 'N_NEW' N_NEW(nNodeGroups, nodeGroup_t *); ^~~~~ /jenkins/jobs/oi-userland/workspace/components/image/graphviz/graphviz-2.40.1/lib/common/memory.h:36:41: warning: conversion to 'unsigned int' from 'int' may change the sign of the result [-Wsign-conversion] #define N_NEW(n,t) (t*)zmalloc((n)*sizeof(t)) ^ aspect.c:211:30: note: in expansion of macro 'N_NEW' layerWidthInfo[i].removed = N_NEW(nNodeGroups, int); ^~~~~ aspect.c: In function 'compFunction': aspect.c:279:17: warning: cast discards 'const' qualifier from pointer target type [-Wcast-qual] int *ind1 = (int *) a; ^ aspect.c:280:17: warning: cast discards 'const' qualifier from pointer target type [-Wcast-qual] int *ind2 = (int *) b; ^ aspect.c: In function 'sortLayers': aspect.c:294:29: warning: conversion to 'size_t {aka unsigned int}' from 'int' may change the sign of the result [-Wsign-conversion] qsort(sortedLayerIndex, agnnodes(g), sizeof(int), compFunction); ^~~~~~~~ aspect.c: In function 'compFunction2': aspect.c:345:26: warning: cast discards 'const' qualifier from pointer target type [-Wcast-qual] nodeGroup_t **ind1 = (nodeGroup_t **) a, **ind2 = (nodeGroup_t **) b; ^ aspect.c:345:55: warning: cast discards 'const' qualifier from pointer target type [-Wcast-qual] nodeGroup_t **ind1 = (nodeGroup_t **) a, **ind2 = (nodeGroup_t **) b; ^ dotsplines.c: In function 'leftOf': dotsplines.c:1641:9: warning: conversion to 'int' from 'double' may alter its value [-Wfloat-conversion] d = ((p1.y - p2.y) * (p3.x - p2.x)) - ^ aspect.c: In function 'reduceMaxWidth2': aspect.c:740:4: warning: conversion to 'size_t {aka unsigned int}' from 'int' may change the sign of the result [-Wsign-conversion] layerWidthInfo[maxLayerIndex].nNodeGroupsInLayer, ^~~~~~~~~~~~~~ In file included from /jenkins/jobs/oi-userland/workspace/components/image/graphviz/graphviz-2.40.1/lib/common/render.h:44:0, from dot.h:18, from aspect.c:14: aspect.c: In function 'applyPacking2': dotsplines.c: In function 'make_regular_edge': dotsplines.c:1798:6: warning: declaration of 'splines' shadows a global declaration [-Wshadow] int splines = et == ET_SPLINE; ^~~~~~~ In file included from /jenkins/jobs/oi-userland/workspace/components/image/graphviz/graphviz-2.40.1/lib/common/render.h:40:0, from dot.h:18, from dotsplines.c:19: /jenkins/jobs/oi-userland/workspace/components/image/graphviz/graphviz-2.40.1/lib/common/types.h:118:7: note: shadowed declaration is here } splines; ^~~~~~~ /jenkins/jobs/oi-userland/workspace/components/image/graphviz/graphviz-2.40.1/lib/common/memory.h:36:41: warning: conversion to 'unsigned int' from 'int' may change the sign of the result [-Wsign-conversion] #define N_NEW(n,t) (t*)zmalloc((n)*sizeof(t)) ^ aspect.c:1083:24: note: in expansion of macro 'N_NEW' sortedLayerIndex = N_NEW(agnnodes(g), int); ^~~~~ aspect.c: In function 'computeCombiAR': In file included from /jenkins/jobs/oi-userland/workspace/components/image/graphviz/graphviz-2.40.1/lib/common/render.h:44:0, from dot.h:18, from dotsplines.c:19: /jenkins/jobs/oi-userland/workspace/components/image/graphviz/graphviz-2.40.1/lib/common/memory.h:42:58: warning: conversion to 'unsigned int' from 'int' may change the sign of the result [-Wsign-conversion] #define RALLOC(size,ptr,type) ((type*)grealloc(ptr,(size)*sizeof(type))) ^ dotsplines.c:1856:13: note: in expansion of macro 'RALLOC' pointfs = RALLOC(numpts, pointfs, pointf); ^~~~~~ aspect.c:1617:12: warning: variable 'maxLayerIndex' set but not used [-Wunused-but-set-variable] int i, maxLayerIndex; ^~~~~~~~~~~~~ aspect.c: In function 'zapLayers': aspect.c:1749:33: warning: unused parameter 'g' [-Wunused-parameter] static void zapLayers(graph_t * g) ^ /jenkins/jobs/oi-userland/workspace/components/image/graphviz/graphviz-2.40.1/lib/common/memory.h:42:58: warning: conversion to 'unsigned int' from 'int' may change the sign of the result [-Wsign-conversion] #define RALLOC(size,ptr,type) ((type*)grealloc(ptr,(size)*sizeof(type))) ^ dotsplines.c:1902:16: note: in expansion of macro 'RALLOC' pointfs = RALLOC(numpts, pointfs, pointf); ^~~~~~ /jenkins/jobs/oi-userland/workspace/components/image/graphviz/graphviz-2.40.1/lib/common/memory.h:42:58: warning: conversion to 'unsigned int' from 'int' may change the sign of the result [-Wsign-conversion] #define RALLOC(size,ptr,type) ((type*)grealloc(ptr,(size)*sizeof(type))) ^ dotsplines.c:1923:13: note: in expansion of macro 'RALLOC' pointfs2 = RALLOC(numpts2, pointfs2, pointf); ^~~~~~ dotsplines.c: In function 'completeregularpath': dotsplines.c:1948:52: warning: declaration of 'boxes' shadows a global declaration [-Wshadow] pathend_t * tendp, pathend_t * hendp, boxf * boxes, ^~~~~ dotsplines.c:54:13: note: shadowed declaration is here static boxf boxes[1000]; ^~~~~ dotsplines.c:1955:9: warning: variable 'pn' set but not used [-Wunused-but-set-variable] int pn; ^~ dotsplines.c:1954:13: warning: variable 'pp' set but not used [-Wunused-but-set-variable] pointf *pp; ^~ dotsplines.c:1949:21: warning: unused parameter 'flag' [-Wunused-parameter] int boxn, int flag) ^~~~ dotsplines.c: In function 'makeregularend': dotsplines.c:2069:5: warning: switch missing default case [-Wswitch-default] switch (side) { ^~~~~~ dotsplines.c: In function 'adjustregularpath': dotsplines.c:2205:7: warning: conversion to 'int' from 'double' may alter its value [-Wfloat-conversion] x = (bp1->LL.x + bp1->UR.x) / 2; ^ dotsplines.c:2210:7: warning: conversion to 'int' from 'double' may alter its value [-Wfloat-conversion] x = (bp1->LL.x + bp1->UR.x) / 2; ^ dotsplines.c: In function 'rank_box': dotsplines.c:2237:16: warning: comparing floating point with == or != is unsafe [-Wfloat-equal] if (b.LL.x == b.UR.x) { ^~ dotsplines.c: In function 'straight_len': dotsplines.c:2264:20: warning: comparing floating point with == or != is unsafe [-Wfloat-equal] if (ND_coord(v).x != ND_coord(n).x) ^~ dotsplines.c: In function 'recover_slack': dotsplines.c:2301:20: warning: conversion to 'int' from 'double' may alter its value [-Wfloat-conversion] resize_vn(vn, p->boxes[b].LL.x, p->boxes[b].UR.x, ^ dotsplines.c:2301:38: warning: conversion to 'int' from 'double' may alter its value [-Wfloat-conversion] resize_vn(vn, p->boxes[b].LL.x, p->boxes[b].UR.x, ^ dotsplines.c:2302:9: warning: conversion to 'int' from 'double' may alter its value [-Wfloat-conversion] p->boxes[b].UR.x + ND_rw(vn)); ^ dotsplines.c:2304:20: warning: conversion to 'int' from 'double' may alter its value [-Wfloat-conversion] resize_vn(vn, p->boxes[b].LL.x, (p->boxes[b].LL.x + ^ dotsplines.c:2304:38: warning: conversion to 'int' from 'double' may alter its value [-Wfloat-conversion] resize_vn(vn, p->boxes[b].LL.x, (p->boxes[b].LL.x + ^ dotsplines.c:2306:9: warning: conversion to 'int' from 'double' may alter its value [-Wfloat-conversion] p->boxes[b].UR.x); ^ CCLD libdotgen_C.la make[6]: Leaving directory '/jenkins/jobs/oi-userland/workspace/components/image/graphviz/build/i86/lib/dotgen' Making all in fdpgen make[6]: Entering directory '/jenkins/jobs/oi-userland/workspace/components/image/graphviz/build/i86/lib/fdpgen' CC tlayout.lo CC comp.lo CC dbg.lo CC clusteredges.lo CC grid.lo CC fdpinit.lo CC layout.lo CC xlayout.lo In file included from /jenkins/jobs/oi-userland/workspace/components/image/graphviz/graphviz-2.40.1/lib/common/render.h:44:0, from ./fdp.h:17, from comp.c:26: comp.c: In function 'findCComp': /jenkins/jobs/oi-userland/workspace/components/image/graphviz/graphviz-2.40.1/lib/common/memory.h:36:41: warning: conversion to 'unsigned int' from 'int' may change the sign of the result [-Wsign-conversion] #define N_NEW(n,t) (t*)zmalloc((n)*sizeof(t)) ^ comp.c:73:13: note: in expansion of macro 'N_NEW' marks = N_NEW(agnnodes(g), char); /* freed below */ ^~~~~ /jenkins/jobs/oi-userland/workspace/components/image/graphviz/graphviz-2.40.1/lib/common/memory.h:36:41: warning: conversion to 'unsigned int' from 'int' may change the sign of the result [-Wsign-conversion] #define N_NEW(n,t) (t*)zmalloc((n)*sizeof(t)) ^ comp.c:129:18: note: in expansion of macro 'N_NEW' comps = cp = N_NEW(c_cnt + 1, graph_t *); ^~~~~ In file included from /jenkins/jobs/oi-userland/workspace/components/image/graphviz/graphviz-2.40.1/lib/common/render.h:44:0, from ./fdp.h:17, from grid.c:27: grid.c: In function 'newBlock': /jenkins/jobs/oi-userland/workspace/components/image/graphviz/graphviz-2.40.1/lib/common/memory.h:39:41: warning: conversion to 'unsigned int' from 'int' may change the sign of the result [-Wsign-conversion] #define N_GNEW(n,t) (t*)gmalloc((n)*sizeof(t)) ^ grid.c:48:17: note: in expansion of macro 'N_GNEW' newb->mem = N_GNEW(size, cell); ^~~~~~ grid.c: In function 'newCell': grid.c:115:29: warning: unused parameter 'd' [-Wunused-parameter] static void *newCell(Dt_t * d, void *obj, Dtdisc_t * disc) ^ In file included from /jenkins/jobs/oi-userland/workspace/components/image/graphviz/graphviz-2.40.1/lib/common/render.h:44:0, from ./fdp.h:17, from grid.c:27: grid.c: In function 'adjustGrid': /jenkins/jobs/oi-userland/workspace/components/image/graphviz/graphviz-2.40.1/lib/common/memory.h:39:41: warning: conversion to 'unsigned int' from 'int' may change the sign of the result [-Wsign-conversion] #define N_GNEW(n,t) (t*)gmalloc((n)*sizeof(t)) ^ grid.c:190:15: note: in expansion of macro 'N_GNEW' g->listMem = N_GNEW(nsize, node_list); ^~~~~~ clusteredges.c:43:5: warning: "DEBUG" is not defined, evaluates to 0 [-Wundef] #if DEBUG > 1 ^~~~~ In file included from /jenkins/jobs/oi-userland/workspace/components/image/graphviz/graphviz-2.40.1/lib/common/render.h:44:0, from ./clusteredges.h:21, from clusteredges.c:26: clusteredges.c: In function 'addObj': /jenkins/jobs/oi-userland/workspace/components/image/graphviz/graphviz-2.40.1/lib/common/memory.h:42:58: warning: conversion to 'unsigned int' from 'int' may change the sign of the result [-Wsign-conversion] #define RALLOC(size,ptr,type) ((type*)grealloc(ptr,(size)*sizeof(type))) ^ clusteredges.c:69:15: note: in expansion of macro 'RALLOC' l->obs = RALLOC(l->sz, l->obs, Ppoly_t *); ^~~~~~ fdpinit.c: In function 'initialPositions': fdpinit.c:49:11: warning: declaration of 'i' shadows a previous local [-Wshadow] int i; ^ fdpinit.c:30:9: note: shadowed declaration is here int i; ^ clusteredges.c: In function 'compoundEdges': /jenkins/jobs/oi-userland/workspace/components/image/graphviz/graphviz-2.40.1/lib/common/memory.h:36:41: warning: conversion to 'unsigned int' from 'int' may change the sign of the result [-Wsign-conversion] #define N_NEW(n,t) (t*)zmalloc((n)*sizeof(t)) ^ clusteredges.c:272:18: note: in expansion of macro 'N_NEW' P->boxes = N_NEW(agnnodes(g) + 20 * 2 * 9, boxf); ^~~~~ In file included from /jenkins/jobs/oi-userland/workspace/components/image/graphviz/graphviz-2.40.1/lib/common/render.h:44:0, from fdp.h:17, from tlayout.h:21, from fdpinit.c:24: fdpinit.c: In function 'fdp_init_node_edge': /jenkins/jobs/oi-userland/workspace/components/image/graphviz/graphviz-2.40.1/lib/common/memory.h:36:41: warning: conversion to 'unsigned int' from 'int' may change the sign of the result [-Wsign-conversion] #define N_NEW(n,t) (t*)zmalloc((n)*sizeof(t)) ^ fdpinit.c:100:25: note: in expansion of macro 'N_NEW' GD_neato_nlist(g) = N_NEW(nn + 1, node_t *); ^~~~~ clusteredges.c:255:50: warning: unused parameter 'edgetype' [-Wunused-parameter] int compoundEdges(graph_t * g, expand_t* pm, int edgetype) ^~~~~~~~ xlayout.c:60:6: warning: no previous prototype for 'pr2graphs' [-Wmissing-prototypes] void pr2graphs(Agraph_t *g0, Agraph_t *g1) ^~~~~~~~~ xlayout.c: In function 'xinit_params': xlayout.c:85:20: warning: comparing floating point with == or != is unsafe [-Wfloat-equal] if (xParams.T0 == 0.0) ^~ xlayout.c:76:35: warning: unused parameter 'g' [-Wunused-parameter] static void xinit_params(graph_t* g, int n, xparams * xpms) ^ xlayout.c: In function 'doRep': xlayout.c:267:18: warning: comparing floating point with == or != is unsafe [-Wfloat-equal] while (dist2 == 0.0) { ^~ In file included from /jenkins/jobs/oi-userland/workspace/components/image/graphviz/graphviz-2.40.1/lib/common/types.h:35:0, from /jenkins/jobs/oi-userland/workspace/components/image/graphviz/graphviz-2.40.1/lib/common/render.h:40, from ./fdp.h:17, from ./xlayout.h:21, from xlayout.c:30: xlayout.c: In function 'x_layout': /jenkins/jobs/oi-userland/workspace/components/image/graphviz/graphviz-2.40.1/lib/common/geom.h:69:27: warning: conversion to 'float' from 'double' may alter its value [-Wfloat-conversion] #define PS2INCH(a_points) ((a_points)/(double)POINTS_PER_INCH) ^ xlayout.c:468:13: note: in expansion of macro 'PS2INCH' X_marg.x = PS2INCH(X_marg.x); /* sepFactor is in points */ ^~~~~~~ /jenkins/jobs/oi-userland/workspace/components/image/graphviz/graphviz-2.40.1/lib/common/geom.h:69:27: warning: conversion to 'float' from 'double' may alter its value [-Wfloat-conversion] #define PS2INCH(a_points) ((a_points)/(double)POINTS_PER_INCH) ^ xlayout.c:469:13: note: in expansion of macro 'PS2INCH' X_marg.y = PS2INCH(X_marg.y); ^~~~~~~ tlayout.c: In function 'cool': tlayout.c:121:27: warning: unused parameter 'temp' [-Wunused-parameter] static double cool(double temp, int t) ^~~~ tlayout.c: In function 'init_params': tlayout.c:144:14: warning: comparing floating point with == or != is unsafe [-Wfloat-equal] if (T_T0 == -1.0) { ^~ tlayout.c: In function 'fdp_initParams': tlayout.c:192:14: warning: comparing floating point with == or != is unsafe [-Wfloat-equal] if (D_T0 == -1.0) { ^~ tlayout.c: In function 'doRep': tlayout.c:228:18: warning: comparing floating point with == or != is unsafe [-Wfloat-equal] while (dist2 == 0.0) { ^~ tlayout.c: In function 'applyAttr': tlayout.c:338:18: warning: comparing floating point with == or != is unsafe [-Wfloat-equal] while (dist2 == 0.0) { ^~ tlayout.c: In function 'gAdjust': tlayout.c:400:19: warning: cast from function call of type 'double' to non-matching type 'int' [-Wbad-function-cast] #define FLOOR(d) ((int)floor(d)) ^ tlayout.c:416:16: note: in expansion of macro 'FLOOR' addGrid(grid, FLOOR((ND_pos(n))[0] / T_Cell), FLOOR((ND_pos(n))[1] / T_Cell), ^~~~~ tlayout.c:400:19: warning: cast from function call of type 'double' to non-matching type 'int' [-Wbad-function-cast] #define FLOOR(d) ((int)floor(d)) ^ tlayout.c:416:48: note: in expansion of macro 'FLOOR' addGrid(grid, FLOOR((ND_pos(n))[0] / T_Cell), FLOOR((ND_pos(n))[1] / T_Cell), ^~~~~ In file included from /jenkins/jobs/oi-userland/workspace/components/image/graphviz/graphviz-2.40.1/lib/common/geom.h:20:0, from /jenkins/jobs/oi-userland/workspace/components/image/graphviz/graphviz-2.40.1/lib/common/types.h:35, from /jenkins/jobs/oi-userland/workspace/components/image/graphviz/graphviz-2.40.1/lib/common/render.h:40, from ./grid.h:23, from tlayout.c:43: tlayout.c: In function 'initPositions': /jenkins/jobs/oi-userland/workspace/components/image/graphviz/graphviz-2.40.1/lib/common/arith.h:38:18: warning: conversion to 'int' from 'double' may alter its value [-Wfloat-conversion] #define MIN(a,b) ((a)<(b)?(a):(b)) ^ tlayout.c:479:13: note: in expansion of macro 'MIN' bb.LL.x = MIN(ND_pos(np)[0], bb.LL.x); ^~~ /jenkins/jobs/oi-userland/workspace/components/image/graphviz/graphviz-2.40.1/lib/common/arith.h:38:18: warning: conversion to 'int' from 'double' may alter its value [-Wfloat-conversion] #define MIN(a,b) ((a)<(b)?(a):(b)) ^ tlayout.c:480:13: note: in expansion of macro 'MIN' bb.LL.y = MIN(ND_pos(np)[1], bb.LL.y); ^~~ /jenkins/jobs/oi-userland/workspace/components/image/graphviz/graphviz-2.40.1/lib/common/arith.h:43:18: warning: conversion to 'int' from 'double' may alter its value [-Wfloat-conversion] #define MAX(a,b) ((a)>(b)?(a):(b)) ^ tlayout.c:481:13: note: in expansion of macro 'MAX' bb.UR.x = MAX(ND_pos(np)[0], bb.UR.x); ^~~ /jenkins/jobs/oi-userland/workspace/components/image/graphviz/graphviz-2.40.1/lib/common/arith.h:43:18: warning: conversion to 'int' from 'double' may alter its value [-Wfloat-conversion] #define MAX(a,b) ((a)>(b)?(a):(b)) ^ tlayout.c:482:13: note: in expansion of macro 'MAX' bb.UR.y = MAX(ND_pos(np)[1], bb.UR.y); ^~~ In file included from /jenkins/jobs/oi-userland/workspace/components/image/graphviz/graphviz-2.40.1/lib/common/render.h:40:0, from ./grid.h:23, from tlayout.c:43: /jenkins/jobs/oi-userland/workspace/components/image/graphviz/graphviz-2.40.1/lib/common/types.h:486:19: warning: conversion to 'int' from 'double' may alter its value [-Wfloat-conversion] #define ND_pos(n) (((Agnodeinfo_t*)AGDATA(n))->pos) ^ tlayout.c:484:23: note: in expansion of macro 'ND_pos' bb.UR.x = bb.LL.x = ND_pos(np)[0]; ^~~~~~ /jenkins/jobs/oi-userland/workspace/components/image/graphviz/graphviz-2.40.1/lib/common/types.h:486:19: warning: conversion to 'int' from 'double' may alter its value [-Wfloat-conversion] #define ND_pos(n) (((Agnodeinfo_t*)AGDATA(n))->pos) ^ tlayout.c:485:23: note: in expansion of macro 'ND_pos' bb.UR.y = bb.LL.y = ND_pos(np)[1]; ^~~~~~ tlayout.c: At top level: tlayout.c:633:6: warning: no previous prototype for 'dumpstat' [-Wmissing-prototypes] void dumpstat(graph_t * g) ^~~~~~~~ tlayout.c: In function 'fdp_tLayout': tlayout.c:694:16: warning: comparing floating point with == or != is unsafe [-Wfloat-equal] if ((ctr.x != 0.0) || (ctr.y != 0.0)) { ^~ tlayout.c:694:34: warning: comparing floating point with == or != is unsafe [-Wfloat-equal] if ((ctr.x != 0.0) || (ctr.y != 0.0)) { ^~ layout.c: In function 'finalCC': layout.c:147:12: warning: conversion to 'int' from 'double' may alter its value [-Wfloat-conversion] pt.y = -bb.LL.y + margin + GD_border(rg)[BOTTOM_IX].y; ^ layout.c:151:16: warning: conversion to 'int' from 'double' may alter its value [-Wfloat-conversion] bb.UR.y += pt.y + margin + GD_border(rg)[TOP_IX].y; ^~ In file included from /jenkins/jobs/oi-userland/workspace/components/image/graphviz/graphviz-2.40.1/lib/common/render.h:44:0, from fdp.h:17, from tlayout.h:21, from layout.c:44: layout.c: In function 'addCluster': /jenkins/jobs/oi-userland/workspace/components/image/graphviz/graphviz-2.40.1/lib/common/memory.h:42:58: warning: conversion to 'unsigned int' from 'int' may change the sign of the result [-Wsign-conversion] #define RALLOC(size,ptr,type) ((type*)grealloc(ptr,(size)*sizeof(type))) ^ layout.c:310:14: note: in expansion of macro 'RALLOC' clist->cl = RALLOC(clist->sz, clist->cl, graph_t *); ^~~~~~ layout.c: In function 'portName': layout.c:333:9: warning: conversion to 'size_t {aka unsigned int}' from 'int' may change the sign of the result [-Wsign-conversion] len += strlen(agnameof(g)) + strlen(agnameof(h)) + strlen(agnameof(t)); ^~ layout.c:333:12: warning: conversion to 'int' from 'size_t {aka unsigned int}' may change the sign of the result [-Wsign-conversion] len += strlen(agnameof(g)) + strlen(agnameof(h)) + strlen(agnameof(t)); ^~~~~~ layout.c:335:33: warning: format '%ld' expects argument of type 'long int', but argument 6 has type 'long long unsigned int' [-Wformat=] sprintf(buf, "_port_%s_%s_%s_%ld", agnameof(g), agnameof(t), agnameof(h), ~~^ %lld layout.c:338:37: warning: format '%ld' expects argument of type 'long int', but argument 6 has type 'long long unsigned int' [-Wformat=] sprintf(buf, "_port_%s_(%d)_(%d)_%ld",agnameof(g), ND_id(t), ND_id(h), ~~^ %lld In file included from /jenkins/jobs/oi-userland/workspace/components/image/graphviz/graphviz-2.40.1/lib/common/render.h:44:0, from fdp.h:17, from tlayout.h:21, from layout.c:44: layout.c: In function 'addEdge': /jenkins/jobs/oi-userland/workspace/components/image/graphviz/graphviz-2.40.1/lib/common/memory.h:41:62: warning: conversion to 'unsigned int' from 'int' may change the sign of the result [-Wsign-conversion] #define ALLOC(size,ptr,type) (ptr? (type*)grealloc(ptr,(size)*sizeof(type)):(type*)gmalloc((size)*sizeof(type))) ^ layout.c:400:10: note: in expansion of macro 'ALLOC' el = ALLOC(cnt + 1, el, edge_t *); ^~~~~ /jenkins/jobs/oi-userland/workspace/components/image/graphviz/graphviz-2.40.1/lib/common/memory.h:41:98: warning: conversion to 'unsigned int' from 'int' may change the sign of the result [-Wsign-conversion] #define ALLOC(size,ptr,type) (ptr? (type*)grealloc(ptr,(size)*sizeof(type)):(type*)gmalloc((size)*sizeof(type))) ^ layout.c:400:10: note: in expansion of macro 'ALLOC' el = ALLOC(cnt + 1, el, edge_t *); ^~~~~ layout.c: In function 'deriveGraph': /jenkins/jobs/oi-userland/workspace/components/image/graphviz/graphviz-2.40.1/lib/common/memory.h:36:41: warning: conversion to 'unsigned int' from 'int' may change the sign of the result [-Wsign-conversion] #define N_NEW(n,t) (t*)zmalloc((n)*sizeof(t)) ^ layout.c:558:19: note: in expansion of macro 'N_NEW' PORTS(dg) = pq = N_NEW(sz + 1, bport_t); ^~~~~ layout.c: In function 'ecmp': layout.c:597:16: warning: cast discards 'const' qualifier from pointer target type [-Wcast-qual] erec *e1 = (erec *) v1; ^ layout.c:598:16: warning: cast discards 'const' qualifier from pointer target type [-Wcast-qual] erec *e2 = (erec *) v2; ^ In file included from /jenkins/jobs/oi-userland/workspace/components/image/graphviz/graphviz-2.40.1/lib/common/render.h:44:0, from fdp.h:17, from tlayout.h:21, from layout.c:44: layout.c: In function 'getEdgeList': /jenkins/jobs/oi-userland/workspace/components/image/graphviz/graphviz-2.40.1/lib/common/memory.h:36:41: warning: conversion to 'unsigned int' from 'int' may change the sign of the result [-Wsign-conversion] #define N_NEW(n,t) (t*)zmalloc((n)*sizeof(t)) ^ layout.c:628:13: note: in expansion of macro 'N_NEW' erecs = N_NEW(deg + 1, erec); ^~~~~ layout.c:643:18: warning: conversion to 'size_t {aka unsigned int}' from 'int' may change the sign of the result [-Wsign-conversion] qsort(erecs, deg, sizeof(erec), ecmp); ^~~ layout.c:654:42: warning: comparing floating point with == or != is unsafe [-Wfloat-equal] while ((j < deg) && (erecs[j].alpha == a)) ^~ In file included from /jenkins/jobs/oi-userland/workspace/components/image/graphviz/graphviz-2.40.1/lib/common/render.h:44:0, from fdp.h:17, from tlayout.h:21, from layout.c:44: layout.c: In function 'expandCluster': /jenkins/jobs/oi-userland/workspace/components/image/graphviz/graphviz-2.40.1/lib/common/memory.h:36:41: warning: conversion to 'unsigned int' from 'int' may change the sign of the result [-Wsign-conversion] #define N_NEW(n,t) (t*)zmalloc((n)*sizeof(t)) ^ layout.c:751:7: note: in expansion of macro 'N_NEW' pp = N_NEW(sz + 1, bport_t); ^~~~~ layout.c: In function 'layout': /jenkins/jobs/oi-userland/workspace/components/image/graphviz/graphviz-2.40.1/lib/common/memory.h:36:41: warning: conversion to 'unsigned int' from 'int' may change the sign of the result [-Wsign-conversion] #define N_NEW(n,t) (t*)zmalloc((n)*sizeof(t)) ^ layout.c:937:11: note: in expansion of macro 'N_NEW' bp = N_NEW(c_cnt, boolean); ^~~~~ layout.c: At top level: layout.c:1011:6: warning: no previous prototype for 'init_info' [-Wmissing-prototypes] void init_info(graph_t * g, layout_info * infop) ^~~~~~~~~ In file included from /jenkins/jobs/oi-userland/workspace/components/image/graphviz/graphviz-2.40.1/lib/common/render.h:44:0, from fdp.h:17, from tlayout.h:21, from layout.c:44: layout.c: In function 'mkClusters': /jenkins/jobs/oi-userland/workspace/components/image/graphviz/graphviz-2.40.1/lib/common/memory.h:42:58: warning: conversion to 'unsigned int' from 'int' may change the sign of the result [-Wsign-conversion] #define RALLOC(size,ptr,type) ((type*)grealloc(ptr,(size)*sizeof(type))) ^ layout.c:1060:20: note: in expansion of macro 'RALLOC' GD_clust(g) = RALLOC(list.cnt + 1, list.cl, graph_t*); ^~~~~~ layout.c: In function 'fdp_init_graph': layout.c:1068:18: warning: conversion to 'short unsigned int' from 'int' may alter its value [-Wconversion] GD_ndim(g) = late_int(g, agattr(g,AGRAPH, "dim", NULL), 2, 2); ^~~~~~~~ layout.c: At top level: layout.c:1076:6: warning: no previous prototype for 'fdpLayout' [-Wmissing-prototypes] void fdpLayout(graph_t * g) ^~~~~~~~~ CCLD libfdpgen_C.la make[6]: Leaving directory '/jenkins/jobs/oi-userland/workspace/components/image/graphviz/build/i86/lib/fdpgen' Making all in neatogen make[6]: Entering directory '/jenkins/jobs/oi-userland/workspace/components/image/graphviz/build/i86/lib/neatogen' CC adjust.lo CC circuit.lo CC edges.lo CC neatoinit.lo CC geometry.lo CC heap.lo CC hedges.lo CC info.lo geometry.c: In function 'geominit': geometry.c:32:19: warning: cast from function call of type 'double' to non-matching type 'int' [-Wbad-function-cast] sqrt_nsites = (int) sqrt(sn); ^ geometry.c: In function 'intersection': geometry.c:78:15: warning: comparing floating point with == or != is unsafe [-Wfloat-equal] if (denom == 0.0) ^~ adjust.c: In function 'chkBoundBox': adjust.c:100:12: warning: declaration of 'xmin' shadows a global declaration [-Wshadow] double xmin, xmax, ymin, ymax; ^~~~ In file included from site.h:23:0, from voronoi.h:23, from adjust.c:23: geometry.h:33:19: note: shadowed declaration is here extern double xmin, xmax, ymin, ymax; /* extreme x,y values of sites */ ^~~~ adjust.c:100:18: warning: declaration of 'xmax' shadows a global declaration [-Wshadow] double xmin, xmax, ymin, ymax; ^~~~ In file included from site.h:23:0, from voronoi.h:23, from adjust.c:23: geometry.h:33:25: note: shadowed declaration is here extern double xmin, xmax, ymin, ymax; /* extreme x,y values of sites */ ^~~~ adjust.c:100:24: warning: declaration of 'ymin' shadows a global declaration [-Wshadow] double xmin, xmax, ymin, ymax; ^~~~ In file included from site.h:23:0, from voronoi.h:23, from adjust.c:23: geometry.h:33:31: note: shadowed declaration is here extern double xmin, xmax, ymin, ymax; /* extreme x,y values of sites */ ^~~~ adjust.c:100:30: warning: declaration of 'ymax' shadows a global declaration [-Wshadow] double xmin, xmax, ymin, ymax; ^~~~ In file included from site.h:23:0, from voronoi.h:23, from adjust.c:23: geometry.h:33:37: note: shadowed declaration is here extern double xmin, xmax, ymin, ymax; /* extreme x,y values of sites */ ^~~~ In file included from /jenkins/jobs/oi-userland/workspace/components/image/graphviz/graphviz-2.40.1/lib/common/render.h:44:0, from neato.h:35, from adjust.c:19: adjust.c: In function 'makeInfo': /jenkins/jobs/oi-userland/workspace/components/image/graphviz/graphviz-2.40.1/lib/common/memory.h:39:41: warning: conversion to 'unsigned int' from 'int' may change the sign of the result [-Wsign-conversion] #define N_GNEW(n,t) (t*)gmalloc((n)*sizeof(t)) ^ adjust.c:162:16: note: in expansion of macro 'N_GNEW' nodeInfo = N_GNEW(nsites, Info_t); ^~~~~~ In file included from /jenkins/jobs/oi-userland/workspace/components/image/graphviz/graphviz-2.40.1/lib/common/types.h:35:0, from /jenkins/jobs/oi-userland/workspace/components/image/graphviz/graphviz-2.40.1/lib/common/render.h:40, from neato.h:35, from adjust.c:19: /jenkins/jobs/oi-userland/workspace/components/image/graphviz/graphviz-2.40.1/lib/common/geom.h:69:27: warning: conversion to 'float' from 'double' may alter its value [-Wfloat-conversion] #define PS2INCH(a_points) ((a_points)/(double)POINTS_PER_INCH) ^ adjust.c:172:14: note: in expansion of macro 'PS2INCH' pmargin.x = PS2INCH(pmargin.x); ^~~~~~~ /jenkins/jobs/oi-userland/workspace/components/image/graphviz/graphviz-2.40.1/lib/common/geom.h:69:27: warning: conversion to 'float' from 'double' may alter its value [-Wfloat-conversion] #define PS2INCH(a_points) ((a_points)/(double)POINTS_PER_INCH) ^ adjust.c:173:14: note: in expansion of macro 'PS2INCH' pmargin.y = PS2INCH(pmargin.y); ^~~~~~~ adjust.c: In function 'scomp': adjust.c:202:11: warning: cast discards 'const' qualifier from pointer target type [-Wcast-qual] s1 = *(Site **) S1; ^ adjust.c:203:11: warning: cast discards 'const' qualifier from pointer target type [-Wcast-qual] s2 = *(Site **) S2; ^ In file included from /jenkins/jobs/oi-userland/workspace/components/image/graphviz/graphviz-2.40.1/lib/common/render.h:44:0, from neato.h:35, from adjust.c:19: adjust.c: In function 'sortSites': /jenkins/jobs/oi-userland/workspace/components/image/graphviz/graphviz-2.40.1/lib/common/memory.h:39:41: warning: conversion to 'unsigned int' from 'int' may change the sign of the result [-Wsign-conversion] #define N_GNEW(n,t) (t*)gmalloc((n)*sizeof(t)) ^ adjust.c:225:10: note: in expansion of macro 'N_GNEW' sites = N_GNEW(nsites, Site *); ^~~~~~ adjust.c:239:18: warning: conversion to 'size_t {aka unsigned int}' from 'int' may change the sign of the result [-Wsign-conversion] qsort(sites, nsites, sizeof(Site *), scomp); ^~~~~~ adjust.c: In function 'rmEquality': adjust.c:298:22: warning: comparing floating point with == or != is unsafe [-Wfloat-equal] ((*jp)->coord.x != (*ip)->coord.x) || ^~ adjust.c:299:22: warning: comparing floating point with == or != is unsafe [-Wfloat-equal] ((*jp)->coord.y != (*ip)->coord.y)) { ^~ adjust.c:308:25: warning: comparing floating point with == or != is unsafe [-Wfloat-equal] ((*kp)->coord.x == (*ip)->coord.x) && ^~ adjust.c:309:25: warning: comparing floating point with == or != is unsafe [-Wfloat-equal] ((*kp)->coord.y == (*ip)->coord.y)) { ^~ adjust.c:316:40: warning: comparing floating point with == or != is unsafe [-Wfloat-equal] if ((kp < endSite) && ((*kp)->coord.y == (*ip)->coord.y)) { ^~ info.c: In function 'compare': info.c:47:17: warning: comparing floating point with == or != is unsafe [-Wfloat-equal] if ((p->p.x == q->p.x) && (p->p.y == q->p.y)) ^~ info.c:47:39: warning: comparing floating point with == or != is unsafe [-Wfloat-equal] if ((p->p.x == q->p.x) && (p->p.y == q->p.y)) ^~ info.c: In function 'addVertex': info.c:167:12: warning: declaration of 'origin' shadows a global declaration [-Wshadow] Point *origin = &(s->coord); ^~~~~~ In file included from site.h:23:0, from voronoi.h:23, from info.h:22, from info.c:17: geometry.h:31:18: note: shadowed declaration is here extern Point origin; ^~~~~~ adjust.c: In function 'rePos': adjust.c:594:27: warning: unused parameter 'c' [-Wunused-parameter] static double rePos(Point c) ^ adjust.c: In function 'updateGraph': adjust.c:648:36: warning: unused parameter 'graph' [-Wunused-parameter] static void updateGraph(Agraph_t * graph) ^~~~~ In file included from /jenkins/jobs/oi-userland/workspace/components/image/graphviz/graphviz-2.40.1/lib/common/render.h:44:0, from neato.h:35, from adjust.c:19: adjust.c: In function 'getSizes': /jenkins/jobs/oi-userland/workspace/components/image/graphviz/graphviz-2.40.1/lib/common/memory.h:39:41: warning: conversion to 'unsigned int' from 'int' may change the sign of the result [-Wsign-conversion] #define N_GNEW(n,t) (t*)gmalloc((n)*sizeof(t)) ^ adjust.c:674:19: note: in expansion of macro 'N_GNEW' real *sizes = N_GNEW(2 * agnnodes(g), real); ^~~~~~ /jenkins/jobs/oi-userland/workspace/components/image/graphviz/graphviz-2.40.1/lib/common/memory.h:39:41: warning: conversion to 'unsigned int' from 'int' may change the sign of the result [-Wsign-conversion] #define N_GNEW(n,t) (t*)gmalloc((n)*sizeof(t)) ^ adjust.c:687:10: note: in expansion of macro 'N_GNEW' elabs = N_GNEW(nedge_nodes, int); ^~~~~~ adjust.c: In function 'makeMatrix': /jenkins/jobs/oi-userland/workspace/components/image/graphviz/graphviz-2.40.1/lib/common/memory.h:39:41: warning: conversion to 'unsigned int' from 'int' may change the sign of the result [-Wsign-conversion] #define N_GNEW(n,t) (t*)gmalloc((n)*sizeof(t)) ^ adjust.c:731:9: note: in expansion of macro 'N_GNEW' I = N_GNEW(nedges, int); ^~~~~~ /jenkins/jobs/oi-userland/workspace/components/image/graphviz/graphviz-2.40.1/lib/common/memory.h:39:41: warning: conversion to 'unsigned int' from 'int' may change the sign of the result [-Wsign-conversion] #define N_GNEW(n,t) (t*)gmalloc((n)*sizeof(t)) ^ adjust.c:732:9: note: in expansion of macro 'N_GNEW' J = N_GNEW(nedges, int); ^~~~~~ /jenkins/jobs/oi-userland/workspace/components/image/graphviz/graphviz-2.40.1/lib/common/memory.h:39:41: warning: conversion to 'unsigned int' from 'int' may change the sign of the result [-Wsign-conversion] #define N_GNEW(n,t) (t*)gmalloc((n)*sizeof(t)) ^ adjust.c:733:11: note: in expansion of macro 'N_GNEW' val = N_GNEW(nedges, real); ^~~~~~ /jenkins/jobs/oi-userland/workspace/components/image/graphviz/graphviz-2.40.1/lib/common/memory.h:36:41: warning: conversion to 'unsigned int' from 'int' may change the sign of the result [-Wsign-conversion] #define N_NEW(n,t) (t*)zmalloc((n)*sizeof(t)) ^ adjust.c:738:9: note: in expansion of macro 'N_NEW' valD = N_NEW(nedges, real); ^~~~~ adjust.c:704:42: warning: unused parameter 'dim' [-Wunused-parameter] SparseMatrix makeMatrix(Agraph_t* g, int dim, SparseMatrix *D) ^~~ In file included from /jenkins/jobs/oi-userland/workspace/components/image/graphviz/graphviz-2.40.1/lib/common/render.h:44:0, from neato.h:35, from adjust.c:19: adjust.c: In function 'fdpAdjust': /jenkins/jobs/oi-userland/workspace/components/image/graphviz/graphviz-2.40.1/lib/common/memory.h:36:41: warning: conversion to 'unsigned int' from 'int' may change the sign of the result [-Wsign-conversion] #define N_NEW(n,t) (t*)zmalloc((n)*sizeof(t)) ^ adjust.c:779:17: note: in expansion of macro 'N_NEW' real *pos = N_NEW(Ndim * agnnodes(g), real); ^~~~~ adjust.c: In function 'normalize': adjust.c:942:9: warning: comparing floating point with == or != is unsafe [-Wfloat-equal] if (p.x || p.y) ret = 1; ^ adjust.c:942:13: warning: comparing floating point with == or != is unsafe [-Wfloat-equal] if (p.x || p.y) ret = 1; ^~ adjust.c:956:9: warning: comparing floating point with == or != is unsafe [-Wfloat-equal] if (phi) { ^~~ adjust.c: In function 'getAdjustMode': adjust.c:1041:38: warning: conversion to 'size_t {aka unsigned int}' from 'int' may change the sign of the result [-Wsign-conversion] if (!strncasecmp(s, ap->attrib, ap->len)) { ^~ adjust.c: In function 'simpleScale': adjust.c:1100:16: warning: comparing floating point with == or != is unsafe [-Wfloat-equal] if ((sc.y == 1) && (sc.x == 1)) return 0; ^~ adjust.c:1100:31: warning: comparing floating point with == or != is unsafe [-Wfloat-equal] if ((sc.y == 1) && (sc.x == 1)) return 0; ^~ adjust.c: In function 'parseFactor': adjust.c:1277:14: warning: conversion to 'float' from 'double' may alter its value [-Wfloat-conversion] pp->x = 1.0 + x/sepfact; ^~~ adjust.c:1278:14: warning: conversion to 'float' from 'double' may alter its value [-Wfloat-conversion] pp->y = 1.0 + y/sepfact; ^~~ adjust.c: In function 'sepFactor': adjust.c:38:25: warning: conversion to 'float' alters 'double' constant value [-Wfloat-conversion] #define SEPFACT 0.8 /* default esep/sep */ ^ adjust.c:1295:71: note: in expansion of macro 'SEPFACT' else if ((marg = agget(g, "esep")) && parseFactor(marg, &pmargin, SEPFACT, DFLT_MARGIN)) { ^~~~~~~ adjust.c: In function 'esepFactor': adjust.c:38:25: warning: conversion to 'float' alters 'double' constant value [-Wfloat-conversion] #define SEPFACT 0.8 /* default esep/sep */ ^ adjust.c:1321:83: note: in expansion of macro 'SEPFACT' else if ((marg = agget(g, "sep")) && parseFactor(marg, &pmargin, 1.0/SEPFACT, SEPFACT*DFLT_MARGIN)) { ^~~~~~~ adjust.c:38:25: warning: conversion to 'float' alters 'double' constant value [-Wfloat-conversion] #define SEPFACT 0.8 /* default esep/sep */ ^ adjust.c:1324:26: note: in expansion of macro 'SEPFACT' pmargin.x = pmargin.y = SEPFACT*DFLT_MARGIN; ^~~~~~~ In file included from /jenkins/jobs/oi-userland/workspace/components/image/graphviz/graphviz-2.40.1/lib/common/render.h:44:0, from hedges.c:16: hedges.c: In function 'ELinitialize': /jenkins/jobs/oi-userland/workspace/components/image/graphviz/graphviz-2.40.1/lib/common/memory.h:39:41: warning: conversion to 'unsigned int' from 'int' may change the sign of the result [-Wsign-conversion] #define N_GNEW(n,t) (t*)gmalloc((n)*sizeof(t)) ^ hedges.c:42:11: note: in expansion of macro 'N_GNEW' ELhash = N_GNEW(ELhashsize, Halfedge *); ^~~~~~ hedges.c: In function 'hintersect': hedges.c:79:23: warning: comparing floating point with == or != is unsafe [-Wfloat-equal] (e1->reg[1]->coord.y == e2->reg[1]->coord.y && ^~ hedges.c: In function 'right_of': hedges.c:115:14: warning: comparing floating point with == or != is unsafe [-Wfloat-equal] if (e->a == 1.0) { ^~ hedges.c: In function 'ELleftbnd': hedges.c:192:14: warning: conversion to 'int' from 'double' may alter its value [-Wfloat-conversion] bucket = (p->x - xmin) / deltax * ELhashsize; ^ In file included from /jenkins/jobs/oi-userland/workspace/components/image/graphviz/graphviz-2.40.1/lib/common/render.h:44:0, from neato.h:35, from neatoinit.c:23: neatoinit.c: In function 'user_spline': /jenkins/jobs/oi-userland/workspace/components/image/graphviz/graphviz-2.40.1/lib/common/memory.h:41:98: warning: conversion to 'unsigned int' from 'int' may change the sign of the result [-Wsign-conversion] #define ALLOC(size,ptr,type) (ptr? (type*)grealloc(ptr,(size)*sizeof(type)):(type*)gmalloc((size)*sizeof(type))) ^ neatoinit.c:303:7: note: in expansion of macro 'ALLOC' ps = ALLOC(n, 0, pointf); ^~~~~ neatoinit.c: In function 'add_cluster': neatoinit.c:451:26: warning: conversion to 'size_t {aka unsigned int}' from 'int' may change the sign of the result [-Wsign-conversion] GD_clust(g) = ZALLOC(cno + 1, GD_clust(g), graph_t *, GD_n_cluster(g)); ^ /jenkins/jobs/oi-userland/workspace/components/image/graphviz/graphviz-2.40.1/lib/common/memory.h:43:63: note: in definition of macro 'ZALLOC' #define ZALLOC(size,ptr,type,osize) (ptr? (type*)zrealloc(ptr,size,sizeof(type),osize):(type*)zmalloc((size)*sizeof(type))) ^~~~ /jenkins/jobs/oi-userland/workspace/components/image/graphviz/graphviz-2.40.1/lib/common/types.h:375:25: warning: conversion to 'size_t {aka unsigned int}' from 'int' may change the sign of the result [-Wsign-conversion] #define GD_n_cluster(g) (((Agraphinfo_t*)AGDATA(g))->n_cluster) ^ /jenkins/jobs/oi-userland/workspace/components/image/graphviz/graphviz-2.40.1/lib/common/memory.h:43:81: note: in definition of macro 'ZALLOC' #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' GD_clust(g) = ZALLOC(cno + 1, GD_clust(g), graph_t *, GD_n_cluster(g)); ^~~~~~~~~~~~ /jenkins/jobs/oi-userland/workspace/components/image/graphviz/graphviz-2.40.1/lib/common/memory.h:43:109: warning: conversion to 'unsigned int' from 'int' may change the sign of the result [-Wsign-conversion] #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' GD_clust(g) = ZALLOC(cno + 1, GD_clust(g), graph_t *, GD_n_cluster(g)); ^~~~~~ neatoinit.c: In function 'init_nop': neatoinit.c:590:54: warning: comparing floating point with == or != is unsafe [-Wfloat-equal] if (translate && !haveBackground && ((GD_bb(g).LL.x != 0)||(GD_bb(g).LL.y != 0))) ^~ neatoinit.c:590:76: warning: comparing floating point with == or != is unsafe [-Wfloat-equal] 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 to 'short unsigned int' from 'int' may alter its value [-Wconversion] GD_ndim(agroot(g)) = late_int(g, agfindgraphattr(g, "dim"), outdim, 2); ^~~~~~~~ In file included from /jenkins/jobs/oi-userland/workspace/components/image/graphviz/graphviz-2.40.1/lib/common/geom.h:20:0, from /jenkins/jobs/oi-userland/workspace/components/image/graphviz/graphviz-2.40.1/lib/common/types.h:35, from /jenkins/jobs/oi-userland/workspace/components/image/graphviz/graphviz-2.40.1/lib/common/render.h:40, from neato.h:35, from neatoinit.c:23: /jenkins/jobs/oi-userland/workspace/components/image/graphviz/graphviz-2.40.1/lib/common/arith.h:38:18: warning: conversion to 'short unsigned int' from 'int' may alter its value [-Wconversion] #define MIN(a,b) ((a)<(b)?(a):(b)) ^ neatoinit.c:615:24: note: in expansion of macro 'MIN' GD_odim(g->root) = MIN(outdim, Ndim); ^~~ neatoinit.c: In function 'dfsCycle': neatoinit.c:715:25: warning: comparing floating point with == or != is unsafe [-Wfloat-equal] if (graph[i].edists[e] == 1.0) continue; /* in edge */ ^~ neatoinit.c:719:34: warning: conversion to 'float' from 'double' may alter its value [-Wfloat-conversion] graph[i].edists[e] = x; ^ In file included from /jenkins/jobs/oi-userland/workspace/components/image/graphviz/graphviz-2.40.1/lib/common/render.h:44:0, from neato.h:35, from neatoinit.c:23: neatoinit.c: In function 'makeGraphData': /jenkins/jobs/oi-userland/workspace/components/image/graphviz/graphviz-2.40.1/lib/common/memory.h:39:41: warning: conversion to 'unsigned int' from 'int' may change the sign of the result [-Wsign-conversion] #define N_GNEW(n,t) (t*)gmalloc((n)*sizeof(t)) ^ neatoinit.c:802:13: note: in expansion of macro 'N_GNEW' graph = N_GNEW(nv, vtx_data); ^~~~~~ /jenkins/jobs/oi-userland/workspace/components/image/graphviz/graphviz-2.40.1/lib/common/memory.h:39:41: warning: conversion to 'unsigned int' from 'int' may change the sign of the result [-Wsign-conversion] #define N_GNEW(n,t) (t*)gmalloc((n)*sizeof(t)) ^ neatoinit.c:803:13: note: in expansion of macro 'N_GNEW' nodes = N_GNEW(nv, node_t*); ^~~~~~ /jenkins/jobs/oi-userland/workspace/components/image/graphviz/graphviz-2.40.1/lib/common/memory.h:39:41: warning: conversion to 'unsigned int' from 'int' may change the sign of the result [-Wsign-conversion] #define N_GNEW(n,t) (t*)gmalloc((n)*sizeof(t)) ^ neatoinit.c:804:13: note: in expansion of macro 'N_GNEW' edges = N_GNEW(2 * ne + nv, int); /* reserve space for self loops */ ^~~~~~ /jenkins/jobs/oi-userland/workspace/components/image/graphviz/graphviz-2.40.1/lib/common/memory.h:39:41: warning: conversion to 'unsigned int' from 'int' may change the sign of the result [-Wsign-conversion] #define N_GNEW(n,t) (t*)gmalloc((n)*sizeof(t)) ^ neatoinit.c:806:10: note: in expansion of macro 'N_GNEW' ewgts = N_GNEW(2 * ne + nv, float); ^~~~~~ /jenkins/jobs/oi-userland/workspace/components/image/graphviz/graphviz-2.40.1/lib/common/memory.h:39:41: warning: conversion to 'unsigned int' from 'int' may change the sign of the result [-Wsign-conversion] #define N_GNEW(n,t) (t*)gmalloc((n)*sizeof(t)) ^ neatoinit.c:808:13: note: in expansion of macro 'N_GNEW' eweights = N_GNEW(2 * ne + nv, float); ^~~~~~ /jenkins/jobs/oi-userland/workspace/components/image/graphviz/graphviz-2.40.1/lib/common/memory.h:39:41: warning: conversion to 'unsigned int' from 'int' may change the sign of the result [-Wsign-conversion] #define N_GNEW(n,t) (t*)gmalloc((n)*sizeof(t)) ^ neatoinit.c:811:11: note: in expansion of macro 'N_GNEW' edists = N_GNEW(2*ne+nv,float); ^~~~~~ CC legal.lo In file included from /jenkins/jobs/oi-userland/workspace/components/image/graphviz/graphviz-2.40.1/lib/common/render.h:40:0, from neato.h:35, from neatoinit.c:23: /jenkins/jobs/oi-userland/workspace/components/image/graphviz/graphviz-2.40.1/lib/common/types.h:541:22: warning: conversion to 'float' from 'double' may alter its value [-Wfloat-conversion] #define ED_factor(e) (((Agedgeinfo_t*)AGDATA(e))->factor) ^ neatoinit.c:845:33: note: in expansion of macro 'ED_factor' graph[i].eweights[idx] += ED_factor(ep); ^~~~~~~~~ neatoinit.c:847:20: warning: conversion to 'int' from 'float' may alter its value [-Wfloat-conversion] int curlen = graph[i].ewgts[idx]; ^~~~~ In file included from /jenkins/jobs/oi-userland/workspace/components/image/graphviz/graphviz-2.40.1/lib/common/geom.h:20:0, from /jenkins/jobs/oi-userland/workspace/components/image/graphviz/graphviz-2.40.1/lib/common/types.h:35, from /jenkins/jobs/oi-userland/workspace/components/image/graphviz/graphviz-2.40.1/lib/common/render.h:40, from neato.h:35, from neatoinit.c:23: /jenkins/jobs/oi-userland/workspace/components/image/graphviz/graphviz-2.40.1/lib/common/arith.h:43:18: warning: conversion to 'float' from 'double' may alter its value [-Wfloat-conversion] #define MAX(a,b) ((a)>(b)?(a):(b)) ^ neatoinit.c:848:29: note: in expansion of macro 'MAX' graph[i].ewgts[idx] = MAX(ED_dist(ep), curlen); ^~~ In file included from /jenkins/jobs/oi-userland/workspace/components/image/graphviz/graphviz-2.40.1/lib/common/render.h:40:0, from neato.h:35, from neatoinit.c:23: /jenkins/jobs/oi-userland/workspace/components/image/graphviz/graphviz-2.40.1/lib/common/types.h:541:22: warning: conversion to 'float' from 'double' may alter its value [-Wfloat-conversion] #define ED_factor(e) (((Agedgeinfo_t*)AGDATA(e))->factor) ^ neatoinit.c:857:21: note: in expansion of macro 'ED_factor' *eweights++ = ED_factor(ep); ^~~~~~~~~ /jenkins/jobs/oi-userland/workspace/components/image/graphviz/graphviz-2.40.1/lib/common/types.h:558:20: warning: conversion to 'float' from 'double' may alter its value [-Wfloat-conversion] #define ED_dist(e) (((Agedgeinfo_t*)AGDATA(e))->dist) ^ neatoinit.c:859:18: note: in expansion of macro 'ED_dist' *ewgts++ = ED_dist(ep); ^~~~~~~ In file included from /jenkins/jobs/oi-userland/workspace/components/image/graphviz/graphviz-2.40.1/lib/common/render.h:44:0, from neato.h:35, from neatoinit.c:23: /jenkins/jobs/oi-userland/workspace/components/image/graphviz/graphviz-2.40.1/lib/common/memory.h:42:58: warning: conversion to 'unsigned int' from 'int' may change the sign of the result [-Wsign-conversion] #define RALLOC(size,ptr,type) ((type*)grealloc(ptr,(size)*sizeof(type))) ^ neatoinit.c:894:10: note: in expansion of macro 'RALLOC' edges = RALLOC(2 * ne + nv, graph[0].edges, int); ^~~~~~ /jenkins/jobs/oi-userland/workspace/components/image/graphviz/graphviz-2.40.1/lib/common/memory.h:42:58: warning: conversion to 'unsigned int' from 'int' may change the sign of the result [-Wsign-conversion] #define RALLOC(size,ptr,type) ((type*)grealloc(ptr,(size)*sizeof(type))) ^ neatoinit.c:896:14: note: in expansion of macro 'RALLOC' ewgts = RALLOC(2 * ne + nv, graph[0].ewgts, float); ^~~~~~ /jenkins/jobs/oi-userland/workspace/components/image/graphviz/graphviz-2.40.1/lib/common/memory.h:42:58: warning: conversion to 'unsigned int' from 'int' may change the sign of the result [-Wsign-conversion] #define RALLOC(size,ptr,type) ((type*)grealloc(ptr,(size)*sizeof(type))) ^ neatoinit.c:898:17: note: in expansion of macro 'RALLOC' eweights = RALLOC(2 * ne + nv, graph[0].eweights, float); ^~~~~~ neatoinit.c: In function 'setSeed': neatoinit.c:987:13: warning: conversion to 'long int' from 'unsigned int' may change the sign of the result [-Wsign-conversion] seed = (unsigned) getpid() ^ (unsigned) time(NULL); ^ In file included from /jenkins/jobs/oi-userland/workspace/components/image/graphviz/graphviz-2.40.1/lib/common/render.h:44:0, from neato.h:35, from neatoinit.c:23: neatoinit.c: In function 'majorization': /jenkins/jobs/oi-userland/workspace/components/image/graphviz/graphviz-2.40.1/lib/common/memory.h:39:41: warning: conversion to 'unsigned int' from 'int' may change the sign of the result [-Wsign-conversion] #define N_GNEW(n,t) (t*)gmalloc((n)*sizeof(t)) ^ neatoinit.c:1143:14: note: in expansion of macro 'N_GNEW' coords = N_GNEW(dim, double *); ^~~~~~ /jenkins/jobs/oi-userland/workspace/components/image/graphviz/graphviz-2.40.1/lib/common/memory.h:39:41: warning: conversion to 'unsigned int' from 'int' may change the sign of the result [-Wsign-conversion] #define N_GNEW(n,t) (t*)gmalloc((n)*sizeof(t)) ^ neatoinit.c:1144:17: note: in expansion of macro 'N_GNEW' coords[0] = N_GNEW(nv * dim, double); ^~~~~~ neatoinit.c:1251:6: warning: declaration of 'i' shadows a previous local [-Wshadow] int i; ^ neatoinit.c:1128:9: note: shadowed declaration is here int i, rv = 0; ^ neatoinit.c:1124:23: warning: unused parameter 'mg' [-Wunused-parameter] majorization(graph_t *mg, graph_t * g, int nv, int mode, int model, int dim, int steps, adjust_data* am) ^~ neatoinit.c:1124:82: warning: unused parameter 'steps' [-Wunused-parameter] majorization(graph_t *mg, graph_t * g, int nv, int mode, int model, int dim, int steps, adjust_data* am) ^~~~~ neatoinit.c:1124:102: warning: unused parameter 'am' [-Wunused-parameter] majorization(graph_t *mg, graph_t * g, int nv, int mode, int model, int dim, int steps, adjust_data* am) ^~ neatoinit.c: In function 'mds_model': neatoinit.c:1284:40: warning: unused parameter 'nG' [-Wunused-parameter] static void mds_model(graph_t * g, int nG) ^~ edges.c: In function 'clip_line': edges.c:84:14: warning: comparing floating point with == or != is unsafe [-Wfloat-equal] if (e->a == 1.0 && e->b >= 0.0) { ^~ In file included from /jenkins/jobs/oi-userland/workspace/components/image/graphviz/graphviz-2.40.1/lib/common/render.h:44:0, from neato.h:35, from neatoinit.c:23: neatoinit.c: In function 'neato_layout': /jenkins/jobs/oi-userland/workspace/components/image/graphviz/graphviz-2.40.1/lib/common/memory.h:36:41: warning: conversion to 'unsigned int' from 'int' may change the sign of the result [-Wsign-conversion] #define N_NEW(n,t) (t*)zmalloc((n)*sizeof(t)) ^ neatoinit.c:1465:12: note: in expansion of macro 'N_NEW' bp = N_NEW(n_cc, boolean); ^~~~~ edges.c:92:14: warning: comparing floating point with == or != is unsafe [-Wfloat-equal] if (e->a == 1.0) { ^~ neatoinit.c:1469:18: warning: conversion to 'unsigned int' from 'int' may change the sign of the result [-Wsign-conversion] pinfo.margin = Pack; ^~~~ heap.c: In function 'PQbucket': heap.c:39:11: warning: conversion to 'int' from 'double' may alter its value [-Wfloat-conversion] bucket = b; ^ heap.c: In function 'PQinsert': heap.c:55:17: warning: comparing floating point with == or != is unsafe [-Wfloat-equal] (he->ystar == next->ystar ^~ In file included from /jenkins/jobs/oi-userland/workspace/components/image/graphviz/graphviz-2.40.1/lib/common/render.h:44:0, from heap.c:15: heap.c: In function 'PQinitialize': /jenkins/jobs/oi-userland/workspace/components/image/graphviz/graphviz-2.40.1/lib/common/memory.h:39:41: warning: conversion to 'unsigned int' from 'int' may change the sign of the result [-Wsign-conversion] #define N_GNEW(n,t) (t*)gmalloc((n)*sizeof(t)) ^ heap.c:122:11: note: in expansion of macro 'N_GNEW' PQhash = N_GNEW(PQhashsize, Halfedge); ^~~~~~ heap.c: At top level: heap.c:135:6: warning: no previous prototype for 'PQdump' [-Wmissing-prototypes] void PQdump(void) ^~~~~~ CC lu.lo CC matinv.lo CC memory.lo CC poly.lo CC printvis.lo legal.c: In function 'sgnarea': legal.c:80:16: warning: comparing floating point with == or != is unsafe [-Wfloat-equal] i[0] = ((t == 0) ? 0 : (t > 0 ? 1 : -1)); ^~ legal.c:82:16: warning: comparing floating point with == or != is unsafe [-Wfloat-equal] i[1] = ((t == 0) ? 0 : (t > 0 ? 1 : -1)); ^~ legal.c: In function 'between': legal.c:89:12: warning: comparing floating point with == or != is unsafe [-Wfloat-equal] if ((f == g) || (g == h)) ^~ legal.c:89:24: warning: comparing floating point with == or != is unsafe [-Wfloat-equal] if ((f == g) || (g == h)) ^~ legal.c: In function 'online': legal.c:101:18: warning: comparing floating point with == or != is unsafe [-Wfloat-equal] return ((a.x == b.x) ? ((a.x == c.x) ^~ legal.c:101:34: warning: comparing floating point with == or != is unsafe [-Wfloat-equal] return ((a.x == b.x) ? ((a.x == c.x) ^~ legal.c: In function 'intpoint': legal.c:124:11: warning: comparing floating point with == or != is unsafe [-Wfloat-equal] if (ls.x == le.x) { ^~ legal.c:127:18: warning: comparing floating point with == or != is unsafe [-Wfloat-equal] } else if (ms.x == me.x) { ^~ legal.c:164:36: warning: comparing floating point with == or != is unsafe [-Wfloat-equal] if ((ls.x - le.x) * (ms.y - ls.y) == (ls.y - le.y) * (ms.x - ls.x)) { ^~ legal.c:121:5: warning: switch missing default case [-Wswitch-default] switch (cond) { ^~~~~~ legal.c: In function 'realIntersect': legal.c:195:17: warning: comparing floating point with == or != is unsafe [-Wfloat-equal] if (((vft.x != avft.x) && (vsd.x != avsd.x)) || ^~ legal.c:195:38: warning: comparing floating point with == or != is unsafe [-Wfloat-equal] if (((vft.x != avft.x) && (vsd.x != avsd.x)) || ^~ legal.c:196:10: warning: comparing floating point with == or != is unsafe [-Wfloat-equal] ((vft.x == avft.x) && ^~ legal.c:25:28: warning: comparing floating point with == or != is unsafe [-Wfloat-equal] #define EQ_PT(v,w) (((v).x == (w).x) && ((v).y == (w).y)) ^ legal.c:197:4: note: in expansion of macro 'EQ_PT' !EQ_PT(vft, p) && ^~~~~ legal.c:25:48: warning: comparing floating point with == or != is unsafe [-Wfloat-equal] #define EQ_PT(v,w) (((v).x == (w).x) && ((v).y == (w).y)) ^ legal.c:197:4: note: in expansion of macro 'EQ_PT' !EQ_PT(vft, p) && ^~~~~ legal.c:25:28: warning: comparing floating point with == or != is unsafe [-Wfloat-equal] #define EQ_PT(v,w) (((v).x == (w).x) && ((v).y == (w).y)) ^ legal.c:198:4: note: in expansion of macro 'EQ_PT' !EQ_PT(avft, p)) || ^~~~~ legal.c:25:48: warning: comparing floating point with == or != is unsafe [-Wfloat-equal] #define EQ_PT(v,w) (((v).x == (w).x) && ((v).y == (w).y)) ^ legal.c:198:4: note: in expansion of macro 'EQ_PT' !EQ_PT(avft, p)) || ^~~~~ legal.c:199:10: warning: comparing floating point with == or != is unsafe [-Wfloat-equal] ((vsd.x == avsd.x) && ^~ legal.c:25:28: warning: comparing floating point with == or != is unsafe [-Wfloat-equal] #define EQ_PT(v,w) (((v).x == (w).x) && ((v).y == (w).y)) ^ legal.c:200:4: note: in expansion of macro 'EQ_PT' !EQ_PT(vsd, p) && !EQ_PT(avsd, p))) ^~~~~ legal.c:25:48: warning: comparing floating point with == or != is unsafe [-Wfloat-equal] #define EQ_PT(v,w) (((v).x == (w).x) && ((v).y == (w).y)) ^ legal.c:200:4: note: in expansion of macro 'EQ_PT' !EQ_PT(vsd, p) && !EQ_PT(avsd, p))) ^~~~~ legal.c:25:28: warning: comparing floating point with == or != is unsafe [-Wfloat-equal] #define EQ_PT(v,w) (((v).x == (w).x) && ((v).y == (w).y)) ^ legal.c:200:22: note: in expansion of macro 'EQ_PT' !EQ_PT(vsd, p) && !EQ_PT(avsd, p))) ^~~~~ legal.c:25:48: warning: comparing floating point with == or != is unsafe [-Wfloat-equal] #define EQ_PT(v,w) (((v).x == (w).x) && ((v).y == (w).y)) ^ legal.c:200:22: note: in expansion of macro 'EQ_PT' !EQ_PT(vsd, p) && !EQ_PT(avsd, p))) ^~~~~ legal.c: In function 'find_intersection': legal.c:219:19: warning: unused parameter 'ilist' [-Wunused-parameter] intersection* ilist, data *input) ^~~~~ legal.c:219:32: warning: unused parameter 'input' [-Wunused-parameter] intersection* ilist, data *input) ^~~~~ legal.c: In function 'gt': legal.c:266:41: warning: comparing floating point with == or != is unsafe [-Wfloat-equal] if ((t = (*i)->pos.x - (*j)->pos.x) != 0.) ^~ legal.c:268:41: warning: comparing floating point with == or != is unsafe [-Wfloat-equal] if ((t = (*i)->pos.y - (*j)->pos.y) == 0.) ^~ In file included from /jenkins/jobs/oi-userland/workspace/components/image/graphviz/graphviz-2.40.1/lib/common/render.h:44:0, from neato.h:35, from legal.c:14: legal.c: In function 'find_ints': /jenkins/jobs/oi-userland/workspace/components/image/graphviz/graphviz-2.40.1/lib/common/memory.h:39:41: warning: conversion to 'unsigned int' from 'int' may change the sign of the result [-Wsign-conversion] #define N_GNEW(n,t) (t*)gmalloc((n)*sizeof(t)) ^ legal.c:292:15: note: in expansion of macro 'N_GNEW' pvertex = N_GNEW(input->nvertices, vertex *); ^~~~~~ legal.c:298:20: warning: conversion to 'size_t {aka unsigned int}' from 'int' may change the sign of the result [-Wsign-conversion] qsort(pvertex, input->nvertices, sizeof(vertex *), ^~~~~ legal.c:306:6: warning: switch missing default case [-Wswitch-default] switch (gt(&pt1, &pt2)) { ^~~~~~ legal.c:280:12: warning: unused parameter 'polygon_list' [-Wunused-parameter] polygon polygon_list[], ^~~~~~~~~~~~ In file included from /jenkins/jobs/oi-userland/workspace/components/image/graphviz/graphviz-2.40.1/lib/common/render.h:44:0, from neato.h:35, from legal.c:14: legal.c: In function 'Plegal_arrangement': /jenkins/jobs/oi-userland/workspace/components/image/graphviz/graphviz-2.40.1/lib/common/memory.h:39:41: warning: conversion to 'unsigned int' from 'int' may change the sign of the result [-Wsign-conversion] #define N_GNEW(n,t) (t*)gmalloc((n)*sizeof(t)) ^ legal.c:422:20: note: in expansion of macro 'N_GNEW' polygon_list = N_GNEW(n_polys, polygon); ^~~~~~ /jenkins/jobs/oi-userland/workspace/components/image/graphviz/graphviz-2.40.1/lib/common/memory.h:39:41: warning: conversion to 'unsigned int' from 'int' may change the sign of the result [-Wsign-conversion] #define N_GNEW(n,t) (t*)gmalloc((n)*sizeof(t)) ^ legal.c:427:19: note: in expansion of macro 'N_GNEW' vertex_list = N_GNEW(nverts, vertex); ^~~~~~ lu.c:67:5: warning: no previous prototype for 'lu_decompose' [-Wmissing-prototypes] int lu_decompose(double **a, int n) ^~~~~~~~~~~~ In file included from /jenkins/jobs/oi-userland/workspace/components/image/graphviz/graphviz-2.40.1/lib/common/render.h:44:0, from ./neato.h:35, from lu.c:49: lu.c: In function 'lu_decompose': /jenkins/jobs/oi-userland/workspace/components/image/graphviz/graphviz-2.40.1/lib/common/memory.h:36:41: warning: conversion to 'unsigned int' from 'int' may change the sign of the result [-Wsign-conversion] #define N_NEW(n,t) (t*)zmalloc((n)*sizeof(t)) ^ lu.c:78:10: note: in expansion of macro 'N_NEW' ps = N_NEW(n, int); ^~~~~ /jenkins/jobs/oi-userland/workspace/components/image/graphviz/graphviz-2.40.1/lib/common/memory.h:36:41: warning: conversion to 'unsigned int' from 'int' may change the sign of the result [-Wsign-conversion] #define N_NEW(n,t) (t*)zmalloc((n)*sizeof(t)) ^ lu.c:81:14: note: in expansion of macro 'N_NEW' scales = N_NEW(n, double); ^~~~~ lu.c:89:14: warning: comparing floating point with == or != is unsafe [-Wfloat-equal] if (biggest != 0.0) ^~ lu.c:107:14: warning: comparing floating point with == or != is unsafe [-Wfloat-equal] if (biggest == 0.0) ^~ lu.c:119:15: warning: comparing floating point with == or != is unsafe [-Wfloat-equal] if (mult != 0.0) { ^~ lu.c:126:30: warning: comparing floating point with == or != is unsafe [-Wfloat-equal] if (lu[ps[n - 1]][n - 1] == 0.0) ^~ lu.c: At top level: lu.c:142:6: warning: no previous prototype for 'lu_solve' [-Wmissing-prototypes] void lu_solve(double *x, double *b, int n) ^~~~~~~~ matinv.c:42:5: warning: no previous prototype for 'matinv' [-Wmissing-prototypes] int matinv(double **A, double **Ainv, int n) ^~~~~~ In file included from /jenkins/jobs/oi-userland/workspace/components/image/graphviz/graphviz-2.40.1/lib/common/render.h:44:0, from matinv.c:38: matinv.c: In function 'matinv': /jenkins/jobs/oi-userland/workspace/components/image/graphviz/graphviz-2.40.1/lib/common/memory.h:36:41: warning: conversion to 'unsigned int' from 'int' may change the sign of the result [-Wsign-conversion] #define N_NEW(n,t) (t*)zmalloc((n)*sizeof(t)) ^ matinv.c:52:9: note: in expansion of macro 'N_NEW' b = N_NEW(n, double); ^~~~~ memory.c: In function 'freeinit': memory.c:41:22: warning: conversion to 'unsigned int' from 'int' may change the sign of the result [-Wsign-conversion] #define LCM(x,y) ((x)%(y) == 0 ? (x) : (y)%(x) == 0 ? (y) : x*(y/gcd(x,y))) ^ memory.c:47:20: note: in expansion of macro 'LCM' fl->nodesize = LCM(size, sizeof(Freenode)); ^~~ memory.c:41:43: warning: conversion to 'unsigned int' from 'int' may change the sign of the result [-Wsign-conversion] #define LCM(x,y) ((x)%(y) == 0 ? (x) : (y)%(x) == 0 ? (y) : x*(y/gcd(x,y))) ^ memory.c:47:20: note: in expansion of macro 'LCM' fl->nodesize = LCM(size, sizeof(Freenode)); ^~~ memory.c:41:65: warning: conversion to 'unsigned int' from 'int' may change the sign of the result [-Wsign-conversion] #define LCM(x,y) ((x)%(y) == 0 ? (x) : (y)%(x) == 0 ? (y) : x*(y/gcd(x,y))) ^ memory.c:47:20: note: in expansion of macro 'LCM' fl->nodesize = LCM(size, sizeof(Freenode)); ^~~ memory.c:41:62: warning: conversion to 'unsigned int' from 'int' may change the sign of the result [-Wsign-conversion] #define LCM(x,y) ((x)%(y) == 0 ? (x) : (y)%(x) == 0 ? (y) : x*(y/gcd(x,y))) ^ memory.c:47:20: note: in expansion of macro 'LCM' fl->nodesize = LCM(size, sizeof(Freenode)); ^~~ memory.c:41:38: warning: signed and unsigned type in conditional expression [-Wsign-compare] #define LCM(x,y) ((x)%(y) == 0 ? (x) : (y)%(x) == 0 ? (y) : x*(y/gcd(x,y))) ^ memory.c:47:20: note: in expansion of macro 'LCM' fl->nodesize = LCM(size, sizeof(Freenode)); ^~~ memory.c:41:38: warning: conversion to 'unsigned int' from 'int' may change the sign of the result [-Wsign-conversion] #define LCM(x,y) ((x)%(y) == 0 ? (x) : (y)%(x) == 0 ? (y) : x*(y/gcd(x,y))) ^ memory.c:47:20: note: in expansion of macro 'LCM' fl->nodesize = LCM(size, sizeof(Freenode)); ^~~ memory.c:41:18: warning: conversion to 'int' from 'unsigned int' may change the sign of the result [-Wsign-conversion] #define LCM(x,y) ((x)%(y) == 0 ? (x) : (y)%(x) == 0 ? (y) : x*(y/gcd(x,y))) ^ memory.c:47:20: note: in expansion of macro 'LCM' fl->nodesize = LCM(size, sizeof(Freenode)); ^~~ memory.c:41:18: warning: conversion to 'int' from 'unsigned int' may change the sign of the result [-Wsign-conversion] #define LCM(x,y) ((x)%(y) == 0 ? (x) : (y)%(x) == 0 ? (y) : x*(y/gcd(x,y))) ^ memory.c:47:20: note: in expansion of macro 'LCM' fl->nodesize = LCM(size, sizeof(Freenode)); ^~~ memory.c: In function 'getfree': memory.c:73:23: warning: conversion to 'size_t {aka unsigned int}' from 'int' may change the sign of the result [-Wsign-conversion] mem->nodes = gmalloc(sqrt_nsites * size); ^~~~~~~~~~~ printvis.c:19:6: warning: no previous prototype for 'printvis' [-Wmissing-prototypes] void printvis(vconfig_t * cp) ^~~~~~~~ poly.c: In function 'bbox': poly.c:53:12: warning: declaration of 'xmin' shadows a global declaration [-Wshadow] double xmin, ymin, xmax, ymax; ^~~~ In file included from poly.h:21:0, from poly.c:21: geometry.h:33:19: note: shadowed declaration is here extern double xmin, xmax, ymin, ymax; /* extreme x,y values of sites */ ^~~~ poly.c:53:18: warning: declaration of 'ymin' shadows a global declaration [-Wshadow] double xmin, ymin, xmax, ymax; ^~~~ In file included from poly.h:21:0, from poly.c:21: geometry.h:33:31: note: shadowed declaration is here extern double xmin, xmax, ymin, ymax; /* extreme x,y values of sites */ ^~~~ poly.c:53:24: warning: declaration of 'xmax' shadows a global declaration [-Wshadow] double xmin, ymin, xmax, ymax; ^~~~ In file included from poly.h:21:0, from poly.c:21: geometry.h:33:25: note: shadowed declaration is here extern double xmin, xmax, ymin, ymax; /* extreme x,y values of sites */ ^~~~ poly.c:53:30: warning: declaration of 'ymax' shadows a global declaration [-Wshadow] double xmin, ymin, xmax, ymax; ^~~~ In file included from poly.h:21:0, from poly.c:21: geometry.h:33:37: note: shadowed declaration is here extern double xmin, xmax, ymin, ymax; /* extreme x,y values of sites */ ^~~~ poly.c: In function 'isBox': poly.c:134:20: warning: comparing floating point with == or != is unsafe [-Wfloat-equal] if (verts[0].y == verts[1].y) ^~ poly.c:135:22: warning: comparing floating point with == or != is unsafe [-Wfloat-equal] return ((verts[2].y == verts[3].y) && ^~ poly.c:136:15: warning: comparing floating point with == or != is unsafe [-Wfloat-equal] (verts[0].x == verts[3].x) && (verts[1].x == verts[2].x)); ^~ poly.c:136:45: warning: comparing floating point with == or != is unsafe [-Wfloat-equal] (verts[0].x == verts[3].x) && (verts[1].x == verts[2].x)); ^~ poly.c:138:22: warning: comparing floating point with == or != is unsafe [-Wfloat-equal] return ((verts[0].x == verts[1].x) && ^~ poly.c:139:15: warning: comparing floating point with == or != is unsafe [-Wfloat-equal] (verts[2].x == verts[3].x) && ^~ poly.c:140:15: warning: comparing floating point with == or != is unsafe [-Wfloat-equal] (verts[0].y == verts[3].y) && (verts[1].y == verts[2].y)); ^~ poly.c:140:45: warning: comparing floating point with == or != is unsafe [-Wfloat-equal] (verts[0].y == verts[3].y) && (verts[1].y == verts[2].y)); ^~ In file included from /jenkins/jobs/oi-userland/workspace/components/image/graphviz/graphviz-2.40.1/lib/common/render.h:44:0, from neato.h:35, from poly.c:17: poly.c: In function 'genRound': /jenkins/jobs/oi-userland/workspace/components/image/graphviz/graphviz-2.40.1/lib/common/memory.h:39:41: warning: conversion to 'unsigned int' from 'int' may change the sign of the result [-Wsign-conversion] #define N_GNEW(n,t) (t*)gmalloc((n)*sizeof(t)) ^ poly.c:170:13: note: in expansion of macro 'N_GNEW' verts = N_GNEW(sides, Point); ^~~~~~ poly.c: In function 'makeAddPoly': poly.c:192:8: warning: declaration of 'b' shadows a previous local [-Wshadow] Point b; ^ poly.c:189:10: note: shadowed declaration is here boxf b; ^ In file included from /jenkins/jobs/oi-userland/workspace/components/image/graphviz/graphviz-2.40.1/lib/common/render.h:44:0, from neato.h:35, from poly.c:17: /jenkins/jobs/oi-userland/workspace/components/image/graphviz/graphviz-2.40.1/lib/common/memory.h:39:41: warning: conversion to 'unsigned int' from 'int' may change the sign of the result [-Wsign-conversion] #define N_GNEW(n,t) (t*)gmalloc((n)*sizeof(t)) ^ poly.c:197:10: note: in expansion of macro 'N_GNEW' verts = N_GNEW(sides, Point); ^~~~~~ /jenkins/jobs/oi-userland/workspace/components/image/graphviz/graphviz-2.40.1/lib/common/memory.h:39:41: warning: conversion to 'unsigned int' from 'int' may change the sign of the result [-Wsign-conversion] #define N_GNEW(n,t) (t*)gmalloc((n)*sizeof(t)) ^ poly.c:219:11: note: in expansion of macro 'N_GNEW' verts = N_GNEW(sides, Point); ^~~~~~ /jenkins/jobs/oi-userland/workspace/components/image/graphviz/graphviz-2.40.1/lib/common/memory.h:39:41: warning: conversion to 'unsigned int' from 'int' may change the sign of the result [-Wsign-conversion] #define N_GNEW(n,t) (t*)gmalloc((n)*sizeof(t)) ^ poly.c:248:14: note: in expansion of macro 'N_GNEW' verts = N_GNEW(sides, Point); ^~~~~~ poly.c:250:38: warning: conversion to 'int' from 'double' may alter its value [-Wfloat-conversion] verts[0] = makeScaledTransPoint(b.LL.x, b.LL.y, -xmargin, -ymargin); ^ poly.c:250:46: warning: conversion to 'int' from 'double' may alter its value [-Wfloat-conversion] verts[0] = makeScaledTransPoint(b.LL.x, b.LL.y, -xmargin, -ymargin); ^ poly.c:251:38: warning: conversion to 'int' from 'double' may alter its value [-Wfloat-conversion] verts[1] = makeScaledTransPoint(b.UR.x, b.LL.y, xmargin, -ymargin); ^ poly.c:251:46: warning: conversion to 'int' from 'double' may alter its value [-Wfloat-conversion] verts[1] = makeScaledTransPoint(b.UR.x, b.LL.y, xmargin, -ymargin); ^ poly.c:252:38: warning: conversion to 'int' from 'double' may alter its value [-Wfloat-conversion] verts[2] = makeScaledTransPoint(b.UR.x, b.UR.y, xmargin, ymargin); ^ poly.c:252:46: warning: conversion to 'int' from 'double' may alter its value [-Wfloat-conversion] verts[2] = makeScaledTransPoint(b.UR.x, b.UR.y, xmargin, ymargin); ^ poly.c:253:38: warning: conversion to 'int' from 'double' may alter its value [-Wfloat-conversion] verts[3] = makeScaledTransPoint(b.LL.x, b.UR.y, -xmargin, ymargin); ^ poly.c:253:46: warning: conversion to 'int' from 'double' may alter its value [-Wfloat-conversion] verts[3] = makeScaledTransPoint(b.LL.x, b.UR.y, -xmargin, ymargin); ^ poly.c: In function 'makePoly': poly.c:284:8: warning: declaration of 'b' shadows a previous local [-Wshadow] Point b; ^ poly.c:281:10: note: shadowed declaration is here boxf b; ^ In file included from /jenkins/jobs/oi-userland/workspace/components/image/graphviz/graphviz-2.40.1/lib/common/render.h:44:0, from neato.h:35, from poly.c:17: /jenkins/jobs/oi-userland/workspace/components/image/graphviz/graphviz-2.40.1/lib/common/memory.h:39:41: warning: conversion to 'unsigned int' from 'int' may change the sign of the result [-Wsign-conversion] #define N_GNEW(n,t) (t*)gmalloc((n)*sizeof(t)) ^ poly.c:289:10: note: in expansion of macro 'N_GNEW' verts = N_GNEW(sides, Point); ^~~~~~ /jenkins/jobs/oi-userland/workspace/components/image/graphviz/graphviz-2.40.1/lib/common/memory.h:39:41: warning: conversion to 'unsigned int' from 'int' may change the sign of the result [-Wsign-conversion] #define N_GNEW(n,t) (t*)gmalloc((n)*sizeof(t)) ^ poly.c:300:11: note: in expansion of macro 'N_GNEW' verts = N_GNEW(sides, Point); ^~~~~~ /jenkins/jobs/oi-userland/workspace/components/image/graphviz/graphviz-2.40.1/lib/common/memory.h:39:41: warning: conversion to 'unsigned int' from 'int' may change the sign of the result [-Wsign-conversion] #define N_GNEW(n,t) (t*)gmalloc((n)*sizeof(t)) ^ poly.c:321:14: note: in expansion of macro 'N_GNEW' verts = N_GNEW(sides, Point); ^~~~~~ poly.c:343:18: warning: comparing floating point with == or != is unsafe [-Wfloat-equal] if ((xmargin != 1.0) || (ymargin != 1.0)) ^~ poly.c:343:38: warning: comparing floating point with == or != is unsafe [-Wfloat-equal] if ((xmargin != 1.0) || (ymargin != 1.0)) ^~ poly.c: In function 'edgesIntersect': poly.c:400:13: warning: comparing floating point with == or != is unsafe [-Wfloat-equal] if ((cross == 0) && !bHA && !aHB) { ^~ In file included from /jenkins/jobs/oi-userland/workspace/components/image/graphviz/graphviz-2.40.1/lib/common/render.h:44:0, from neato.h:35, from poly.c:17: poly.c: In function 'inPoly': /jenkins/jobs/oi-userland/workspace/components/image/graphviz/graphviz-2.40.1/lib/common/memory.h:39:41: warning: conversion to 'unsigned int' from 'int' may change the sign of the result [-Wsign-conversion] #define N_GNEW(n,t) (t*)gmalloc((n)*sizeof(t)) ^ poly.c:435:8: note: in expansion of macro 'N_GNEW' tp3 = N_GNEW(maxcnt, Point); ^~~~~~ poly.c:448:16: warning: comparing floating point with == or != is unsafe [-Wfloat-equal] if ((tp3[i].y == 0) && (tp3[i1].y == 0)) { ^~ poly.c:448:36: warning: comparing floating point with == or != is unsafe [-Wfloat-equal] if ((tp3[i].y == 0) && (tp3[i1].y == 0)) { ^~ poly.c:464:12: warning: comparing floating point with == or != is unsafe [-Wfloat-equal] if (x == 0) ^~ poly.c:469:17: warning: comparing floating point with == or != is unsafe [-Wfloat-equal] if ((tp3[i].y == 0) || (tp3[i1].y == 0)) { ^~ poly.c:469:37: warning: comparing floating point with == or != is unsafe [-Wfloat-equal] if ((tp3[i].y == 0) || (tp3[i1].y == 0)) { ^~ poly.c: In function 'inBox': poly.c:485:33: warning: declaration of 'origin' shadows a global declaration [-Wshadow] static int inBox(Point p, Point origin, Point corner) ^~~~~~ In file included from poly.h:21:0, from poly.c:21: geometry.h:31:18: note: shadowed declaration is here extern Point origin; ^~~~~~ In file included from /jenkins/jobs/oi-userland/workspace/components/image/graphviz/graphviz-2.40.1/lib/common/render.h:44:0, from neato.h:35, from poly.c:17: poly.c: In function 'polyOverlap': /jenkins/jobs/oi-userland/workspace/components/image/graphviz/graphviz-2.40.1/lib/common/memory.h:39:41: warning: conversion to 'unsigned int' from 'int' may change the sign of the result [-Wsign-conversion] #define N_GNEW(n,t) (t*)gmalloc((n)*sizeof(t)) ^ poly.c:533:8: note: in expansion of macro 'N_GNEW' tp1 = N_GNEW(maxcnt, Point); ^~~~~~ /jenkins/jobs/oi-userland/workspace/components/image/graphviz/graphviz-2.40.1/lib/common/memory.h:39:41: warning: conversion to 'unsigned int' from 'int' may change the sign of the result [-Wsign-conversion] #define N_GNEW(n,t) (t*)gmalloc((n)*sizeof(t)) ^ poly.c:534:8: note: in expansion of macro 'N_GNEW' tp2 = N_GNEW(maxcnt, Point); ^~~~~~ CC site.lo CC solve.lo CC neatosplines.lo legal.c:414:20: warning: variable 'nverts' might be clobbered by 'longjmp' or 'vfork' [-Wclobbered] int i, j, vno, nverts, found; ^~~~~~ CC stuff.lo CC voronoi.lo CC stress.lo CC kkutils.lo solve.c:23:6: warning: no previous prototype for 'solve' [-Wmissing-prototypes] void solve(double *a, double *b, double *c, int n) ^~~~~ In file included from /jenkins/jobs/oi-userland/workspace/components/image/graphviz/graphviz-2.40.1/lib/common/render.h:44:0, from solve.c:19: solve.c: In function 'solve': /jenkins/jobs/oi-userland/workspace/components/image/graphviz/graphviz-2.40.1/lib/common/memory.h:39:41: warning: conversion to 'unsigned int' from 'int' may change the sign of the result [-Wsign-conversion] #define N_GNEW(n,t) (t*)gmalloc((n)*sizeof(t)) ^ solve.c:34:13: note: in expansion of macro 'N_GNEW' asave = N_GNEW(nsq, double); ^~~~~~ /jenkins/jobs/oi-userland/workspace/components/image/graphviz/graphviz-2.40.1/lib/common/memory.h:39:41: warning: conversion to 'unsigned int' from 'int' may change the sign of the result [-Wsign-conversion] #define N_GNEW(n,t) (t*)gmalloc((n)*sizeof(t)) ^ solve.c:35:13: note: in expansion of macro 'N_GNEW' csave = N_GNEW(n, double); ^~~~~~ voronoi.c: In function 'voronoi': voronoi.c:48:28: warning: comparing floating point with == or != is unsafe [-Wfloat-equal] || (newsite->coord.y == ^~ voronoi.c:22:18: warning: unused parameter 'triangulate' [-Wunused-parameter] void voronoi(int triangulate, Site * (*nextsite) (void)) ^~~~~~~~~~~ CC matrix_ops.lo CC embed_graph.lo neatosplines.c: In function 'spline_merge': neatosplines.c:34:38: warning: unused parameter 'n' [-Wunused-parameter] static boolean spline_merge(node_t * n) ^ neatosplines.c: In function 'swap_ends_p': neatosplines.c:39:37: warning: unused parameter 'e' [-Wunused-parameter] static boolean swap_ends_p(edge_t * e) ^ neatosplines.c: At top level: neatosplines.c:44:1: warning: missing initializer for field 'ignoreSwap' of 'splineInfo {aka struct }' [-Wmissing-field-initializers] static splineInfo sinfo = { swap_ends_p, spline_merge }; ^~~~~~ In file included from /jenkins/jobs/oi-userland/workspace/components/image/graphviz/graphviz-2.40.1/lib/common/render.h:40:0, from neato.h:35, from neatosplines.c:17: /jenkins/jobs/oi-userland/workspace/components/image/graphviz/graphviz-2.40.1/lib/common/types.h:88:10: note: 'ignoreSwap' declared here boolean ignoreSwap; /* Test for swapped edges if false */ ^~~~~~~~~~ In file included from /jenkins/jobs/oi-userland/workspace/components/image/graphviz/graphviz-2.40.1/lib/common/render.h:44:0, from neato.h:35, from neatosplines.c:17: neatosplines.c: In function 'make_barriers': /jenkins/jobs/oi-userland/workspace/components/image/graphviz/graphviz-2.40.1/lib/common/memory.h:39:41: warning: conversion to 'unsigned int' from 'int' may change the sign of the result [-Wsign-conversion] #define N_GNEW(n,t) (t*)gmalloc((n)*sizeof(t)) ^ neatosplines.c:61:11: note: in expansion of macro 'N_GNEW' bar = N_GNEW(n, Pedge_t); ^~~~~~ neatosplines.c: In function 'newitem': neatosplines.c:117:29: warning: unused parameter 'd' [-Wunused-parameter] static void *newitem(Dt_t * d, edgeitem * obj, Dtdisc_t * disc) ^ neatosplines.c: In function 'freeitem': neatosplines.c:130:29: warning: unused parameter 'd' [-Wunused-parameter] static void freeitem(Dt_t * d, edgeitem * obj, Dtdisc_t * disc) ^ neatosplines.c:130:59: warning: unused parameter 'disc' [-Wunused-parameter] static void freeitem(Dt_t * d, edgeitem * obj, Dtdisc_t * disc) ^~~~ neatosplines.c: In function 'cmpitems': neatosplines.c:149:14: warning: conversion to 'int' from 'double' may alter its value [-Wfloat-conversion] if ((x = key1->p1.x - key2->p1.x)) ^~~~ neatosplines.c:151:14: warning: conversion to 'int' from 'double' may alter its value [-Wfloat-conversion] if ((x = key1->p1.y - key2->p1.y)) ^~~~ neatosplines.c:153:14: warning: conversion to 'int' from 'double' may alter its value [-Wfloat-conversion] if ((x = key1->p2.x - key2->p2.x)) ^~~~ neatosplines.c:155:24: warning: conversion to 'int' from 'double' may alter its value [-Wfloat-conversion] return (key1->p2.y - key2->p2.y); ~~~~~~~~~~~~^~~~~~~~~~~~~ neatosplines.c:136:17: warning: unused parameter 'd' [-Wunused-parameter] cmpitems(Dt_t * d, edgeinfo * key1, edgeinfo * key2, Dtdisc_t * disc) ^ neatosplines.c:136:65: warning: unused parameter 'disc' [-Wunused-parameter] cmpitems(Dt_t * d, edgeinfo * key1, edgeinfo * key2, Dtdisc_t * disc) ^~~~ In file included from /jenkins/jobs/oi-userland/workspace/components/image/graphviz/graphviz-2.40.1/lib/common/render.h:44:0, from neato.h:35, from neatosplines.c:17: neatosplines.c: In function 'makeSelfArcs': /jenkins/jobs/oi-userland/workspace/components/image/graphviz/graphviz-2.40.1/lib/common/memory.h:39:41: warning: conversion to 'unsigned int' from 'int' may change the sign of the result [-Wsign-conversion] #define N_GNEW(n,t) (t*)gmalloc((n)*sizeof(t)) ^ neatosplines.c:239:19: note: in expansion of macro 'N_GNEW' edge_t **edges = N_GNEW(cnt, edge_t *); ^~~~~~ neatosplines.c: In function 'makeObstacle': /jenkins/jobs/oi-userland/workspace/components/image/graphviz/graphviz-2.40.1/lib/common/memory.h:36:41: warning: conversion to 'unsigned int' from 'int' may change the sign of the result [-Wsign-conversion] #define N_NEW(n,t) (t*)zmalloc((n)*sizeof(t)) ^ neatosplines.c:329:12: note: in expansion of macro 'N_NEW' obs->ps = N_NEW(sides, Ppoint_t); ^~~~~ neatosplines.c:336:4: warning: switch missing default case [-Wswitch-default] switch (j) { ^~~~~~ neatosplines.c:277:13: warning: variable 'desc' set but not used [-Wunused-but-set-variable] epsf_t *desc; ^~~~ neatosplines.c: In function 'getPath': neatosplines.c:442:65: warning: unused parameter 'obs' [-Wunused-parameter] getPath(edge_t * e, vconfig_t * vconfig, int chkPts, Ppoly_t ** obs, ^~~ neatosplines.c:443:6: warning: unused parameter 'npoly' [-Wunused-parameter] int npoly) ^~~~~ In file included from /jenkins/jobs/oi-userland/workspace/components/image/graphviz/graphviz-2.40.1/lib/common/render.h:44:0, from neato.h:35, from neatosplines.c:17: neatosplines.c: In function '_spline_edges': /jenkins/jobs/oi-userland/workspace/components/image/graphviz/graphviz-2.40.1/lib/common/memory.h:36:41: warning: conversion to 'unsigned int' from 'int' may change the sign of the result [-Wsign-conversion] #define N_NEW(n,t) (t*)zmalloc((n)*sizeof(t)) ^ neatosplines.c:567:8: note: in expansion of macro 'N_NEW' obs = N_NEW(agnnodes(g), Ppoly_t *); ^~~~~ /jenkins/jobs/oi-userland/workspace/components/image/graphviz/graphviz-2.40.1/lib/common/memory.h:36:41: warning: conversion to 'unsigned int' from 'int' may change the sign of the result [-Wsign-conversion] #define N_NEW(n,t) (t*)zmalloc((n)*sizeof(t)) ^ neatosplines.c:628:18: note: in expansion of macro 'N_NEW' P->boxes = N_NEW(agnnodes(g) + 20 * 2 * 9, boxf); ^~~~~ In file included from /jenkins/jobs/oi-userland/workspace/components/image/graphviz/graphviz-2.40.1/lib/common/render.h:40:0, from neato.h:35, from neatosplines.c:17: neatosplines.c: In function '_neato_set_aspect': /jenkins/jobs/oi-userland/workspace/components/image/graphviz/graphviz-2.40.1/lib/common/types.h:336:18: warning: comparing floating point with == or != is unsafe [-Wfloat-equal] #define GD_bb(g) (((Agraphinfo_t*)AGDATA(g))->bb) ^ neatosplines.c:1011:6: note: in expansion of macro 'GD_bb' if (GD_bb(g).LL.x || GD_bb(g).LL.y) { ^~~~~ neatosplines.c:1011:20: warning: comparing floating point with == or != is unsafe [-Wfloat-equal] if (GD_bb(g).LL.x || GD_bb(g).LL.y) { ^~ In file included from /jenkins/jobs/oi-userland/workspace/components/image/graphviz/graphviz-2.40.1/lib/common/render.h:44:0, from neato.h:35, from stuff.c:17: stuff.c: In function 'new_array': /jenkins/jobs/oi-userland/workspace/components/image/graphviz/graphviz-2.40.1/lib/common/memory.h:36:41: warning: conversion to 'unsigned int' from 'int' may change the sign of the result [-Wsign-conversion] #define N_NEW(n,t) (t*)zmalloc((n)*sizeof(t)) ^ stuff.c:52:10: note: in expansion of macro 'N_NEW' rv = N_NEW(m, double *); ^~~~~ /jenkins/jobs/oi-userland/workspace/components/image/graphviz/graphviz-2.40.1/lib/common/memory.h:36:41: warning: conversion to 'unsigned int' from 'int' may change the sign of the result [-Wsign-conversion] #define N_NEW(n,t) (t*)zmalloc((n)*sizeof(t)) ^ stuff.c:53:11: note: in expansion of macro 'N_NEW' mem = N_NEW(m * n, double); ^~~~~ stuff.c: In function 'new_3array': /jenkins/jobs/oi-userland/workspace/components/image/graphviz/graphviz-2.40.1/lib/common/memory.h:36:41: warning: conversion to 'unsigned int' from 'int' may change the sign of the result [-Wsign-conversion] #define N_NEW(n,t) (t*)zmalloc((n)*sizeof(t)) ^ stuff.c:77:10: note: in expansion of macro 'N_NEW' rv = N_NEW(m + 1, double **); ^~~~~ /jenkins/jobs/oi-userland/workspace/components/image/graphviz/graphviz-2.40.1/lib/common/memory.h:36:41: warning: conversion to 'unsigned int' from 'int' may change the sign of the result [-Wsign-conversion] #define N_NEW(n,t) (t*)zmalloc((n)*sizeof(t)) ^ stuff.c:79:10: note: in expansion of macro 'N_NEW' rv[i] = N_NEW(n + 1, double *); ^~~~~ /jenkins/jobs/oi-userland/workspace/components/image/graphviz/graphviz-2.40.1/lib/common/memory.h:36:41: warning: conversion to 'unsigned int' from 'int' may change the sign of the result [-Wsign-conversion] #define N_NEW(n,t) (t*)zmalloc((n)*sizeof(t)) ^ stuff.c:81:17: note: in expansion of macro 'N_NEW' rv[i][j] = N_NEW(p, double); ^~~~~ stuff.c: In function 'lenattr': stuff.c:120:61: warning: comparing floating point with == or != is unsafe [-Wfloat-equal] if ((sscanf(s, "%lf", val) < 1) || (*val < 0) || ((*val == 0) && !Nop)) { ^~ In file included from /jenkins/jobs/oi-userland/workspace/components/image/graphviz/graphviz-2.40.1/lib/common/render.h:44:0, from neato.h:35, from stuff.c:17: stuff.c: In function 'scan_graph_mode': /jenkins/jobs/oi-userland/workspace/components/image/graphviz/graphviz-2.40.1/lib/common/memory.h:36:41: warning: conversion to 'unsigned int' from 'int' may change the sign of the result [-Wsign-conversion] #define N_NEW(n,t) (t*)zmalloc((n)*sizeof(t)) ^ stuff.c:257:22: note: in expansion of macro 'N_NEW' GD_neato_nlist(G) = N_NEW(nV + 1, node_t *); ^~~~~ stuff.c: At top level: stuff.c:445:6: warning: no previous prototype for 'update_arrays' [-Wmissing-prototypes] void update_arrays(graph_t * G, int nG, int i) ^~~~~~~~~~~~~ In file included from /jenkins/jobs/oi-userland/workspace/components/image/graphviz/graphviz-2.40.1/lib/common/render.h:44:0, from neato.h:35, from stuff.c:17: stuff.c: In function 'move_node': /jenkins/jobs/oi-userland/workspace/components/image/graphviz/graphviz-2.40.1/lib/common/memory.h:41:62: warning: conversion to 'unsigned int' from 'int' may change the sign of the result [-Wsign-conversion] #define ALLOC(size,ptr,type) (ptr? (type*)grealloc(ptr,(size)*sizeof(type)):(type*)gmalloc((size)*sizeof(type))) ^ stuff.c:573:9: note: in expansion of macro 'ALLOC' a = ALLOC(Ndim * Ndim, a, double); ^~~~~ /jenkins/jobs/oi-userland/workspace/components/image/graphviz/graphviz-2.40.1/lib/common/memory.h:41:98: warning: conversion to 'unsigned int' from 'int' may change the sign of the result [-Wsign-conversion] #define ALLOC(size,ptr,type) (ptr? (type*)grealloc(ptr,(size)*sizeof(type)):(type*)gmalloc((size)*sizeof(type))) ^ stuff.c:573:9: note: in expansion of macro 'ALLOC' a = ALLOC(Ndim * Ndim, a, double); ^~~~~ stuff.c: In function 'shortest_path': /jenkins/jobs/oi-userland/workspace/components/image/graphviz/graphviz-2.40.1/lib/common/memory.h:36:41: warning: conversion to 'unsigned int' from 'int' may change the sign of the result [-Wsign-conversion] #define N_NEW(n,t) (t*)zmalloc((n)*sizeof(t)) ^ stuff.c:673:12: note: in expansion of macro 'N_NEW' Heap = N_NEW(nG + 1, node_t *); ^~~~~ stuff.c: In function 'allow_edits': stuff.c:729:21: warning: unused parameter 'nsec' [-Wunused-parameter] int allow_edits(int nsec) ^~~~ CC dijkstra.lo CC conjgrad.lo stress.c: In function 'initLayout': stress.c:159:23: warning: unused parameter 'graph' [-Wunused-parameter] initLayout(vtx_data * graph, int n, int dim, double **coords, ^~~~~ In file included from /jenkins/jobs/oi-userland/workspace/components/image/graphviz/graphviz-2.40.1/lib/common/render.h:44:0, from neato.h:35, from stress.c:15: stress.c: In function 'circuitModel': /jenkins/jobs/oi-userland/workspace/components/image/graphviz/graphviz-2.40.1/lib/common/memory.h:36:41: warning: conversion to 'unsigned int' from 'int' may change the sign of the result [-Wsign-conversion] #define N_NEW(n,t) (t*)zmalloc((n)*sizeof(t)) ^ stress.c:202:18: note: in expansion of macro 'N_NEW' float *Dij = N_NEW(nG * (nG + 1) / 2, float); ^~~~~ stress.c: In function 'sparse_stress_subspace_majorization_kD': /jenkins/jobs/oi-userland/workspace/components/image/graphviz/graphviz-2.40.1/lib/common/memory.h:39:41: warning: conversion to 'unsigned int' from 'int' may change the sign of the result [-Wsign-conversion] #define N_GNEW(n,t) (t*)gmalloc((n)*sizeof(t)) ^ stress.c:290:25: note: in expansion of macro 'N_GNEW' double **subspace = N_GNEW(subspace_dim, double *); ^~~~~~ /jenkins/jobs/oi-userland/workspace/components/image/graphviz/graphviz-2.40.1/lib/common/memory.h:39:41: warning: conversion to 'unsigned int' from 'int' may change the sign of the result [-Wsign-conversion] #define N_GNEW(n,t) (t*)gmalloc((n)*sizeof(t)) ^ stress.c:291:25: note: in expansion of macro 'N_GNEW' double *d_storage = N_GNEW(subspace_dim * n, double); ^~~~~~ /jenkins/jobs/oi-userland/workspace/components/image/graphviz/graphviz-2.40.1/lib/common/memory.h:39:41: warning: conversion to 'unsigned int' from 'int' may change the sign of the result [-Wsign-conversion] #define N_GNEW(n,t) (t*)gmalloc((n)*sizeof(t)) ^ stress.c:350:19: note: in expansion of macro 'N_GNEW' CenterIndex = N_GNEW(n, int); ^~~~~~ /jenkins/jobs/oi-userland/workspace/components/image/graphviz/graphviz-2.40.1/lib/common/memory.h:39:41: warning: conversion to 'unsigned int' from 'int' may change the sign of the result [-Wsign-conversion] #define N_GNEW(n,t) (t*)gmalloc((n)*sizeof(t)) ^ stress.c:370:12: note: in expansion of macro 'N_GNEW' dist = N_GNEW(n, DistType); ^~~~~~ /jenkins/jobs/oi-userland/workspace/components/image/graphviz/graphviz-2.40.1/lib/common/memory.h:39:41: warning: conversion to 'unsigned int' from 'int' may change the sign of the result [-Wsign-conversion] #define N_GNEW(n,t) (t*)gmalloc((n)*sizeof(t)) ^ stress.c:375:22: note: in expansion of macro 'N_GNEW' invCenterIndex = N_GNEW(num_centers, int); ^~~~~~ /jenkins/jobs/oi-userland/workspace/components/image/graphviz/graphviz-2.40.1/lib/common/memory.h:39:41: warning: conversion to 'unsigned int' from 'int' may change the sign of the result [-Wsign-conversion] #define N_GNEW(n,t) (t*)gmalloc((n)*sizeof(t)) ^ stress.c:377:15: note: in expansion of macro 'N_GNEW' storage = N_GNEW(n * num_centers, DistType); ^~~~~~ /jenkins/jobs/oi-userland/workspace/components/image/graphviz/graphviz-2.40.1/lib/common/memory.h:39:41: warning: conversion to 'unsigned int' from 'int' may change the sign of the result [-Wsign-conversion] #define N_GNEW(n,t) (t*)gmalloc((n)*sizeof(t)) ^ stress.c:378:11: note: in expansion of macro 'N_GNEW' Dij = N_GNEW(num_centers, DistType *); ^~~~~~ /jenkins/jobs/oi-userland/workspace/components/image/graphviz/graphviz-2.40.1/lib/common/memory.h:39:41: warning: conversion to 'unsigned int' from 'int' may change the sign of the result [-Wsign-conversion] #define N_GNEW(n,t) (t*)gmalloc((n)*sizeof(t)) ^ stress.c:433:21: note: in expansion of macro 'N_GNEW' visited_nodes = N_GNEW(n, int); ^~~~~~ /jenkins/jobs/oi-userland/workspace/components/image/graphviz/graphviz-2.40.1/lib/common/memory.h:39:41: warning: conversion to 'unsigned int' from 'int' may change the sign of the result [-Wsign-conversion] #define N_GNEW(n,t) (t*)gmalloc((n)*sizeof(t)) ^ stress.c:434:17: note: in expansion of macro 'N_GNEW' distances = N_GNEW(n, dist_data); ^~~~~~ /jenkins/jobs/oi-userland/workspace/components/image/graphviz/graphviz-2.40.1/lib/common/memory.h:39:41: warning: conversion to 'unsigned int' from 'int' may change the sign of the result [-Wsign-conversion] #define N_GNEW(n,t) (t*)gmalloc((n)*sizeof(t)) ^ stress.c:439:27: note: in expansion of macro 'N_GNEW' distances[i].edges = N_GNEW(n - 1, int); ^~~~~~ /jenkins/jobs/oi-userland/workspace/components/image/graphviz/graphviz-2.40.1/lib/common/memory.h:39:41: warning: conversion to 'unsigned int' from 'int' may change the sign of the result [-Wsign-conversion] #define N_GNEW(n,t) (t*)gmalloc((n)*sizeof(t)) ^ stress.c:440:27: note: in expansion of macro 'N_GNEW' distances[i].edist = N_GNEW(n - 1, DistType); ^~~~~~ /jenkins/jobs/oi-userland/workspace/components/image/graphviz/graphviz-2.40.1/lib/common/memory.h:39:41: warning: conversion to 'unsigned int' from 'int' may change the sign of the result [-Wsign-conversion] #define N_GNEW(n,t) (t*)gmalloc((n)*sizeof(t)) ^ stress.c:485:17: note: in expansion of macro 'N_GNEW' storage1 = N_GNEW(available_space, int); ^~~~~~ /jenkins/jobs/oi-userland/workspace/components/image/graphviz/graphviz-2.40.1/lib/common/memory.h:39:41: warning: conversion to 'unsigned int' from 'int' may change the sign of the result [-Wsign-conversion] #define N_GNEW(n,t) (t*)gmalloc((n)*sizeof(t)) ^ stress.c:486:17: note: in expansion of macro 'N_GNEW' storage2 = N_GNEW(available_space, DistType); ^~~~~~ /jenkins/jobs/oi-userland/workspace/components/image/graphviz/graphviz-2.40.1/lib/common/memory.h:39:41: warning: conversion to 'unsigned int' from 'int' may change the sign of the result [-Wsign-conversion] #define N_GNEW(n,t) (t*)gmalloc((n)*sizeof(t)) ^ stress.c:524:11: note: in expansion of macro 'N_GNEW' lap = N_GNEW(n, vtx_data); ^~~~~~ /jenkins/jobs/oi-userland/workspace/components/image/graphviz/graphviz-2.40.1/lib/common/memory.h:39:41: warning: conversion to 'unsigned int' from 'int' may change the sign of the result [-Wsign-conversion] #define N_GNEW(n,t) (t*)gmalloc((n)*sizeof(t)) ^ stress.c:525:13: note: in expansion of macro 'N_GNEW' edges = N_GNEW(nedges + n, int); ^~~~~~ /jenkins/jobs/oi-userland/workspace/components/image/graphviz/graphviz-2.40.1/lib/common/memory.h:39:41: warning: conversion to 'unsigned int' from 'int' may change the sign of the result [-Wsign-conversion] #define N_GNEW(n,t) (t*)gmalloc((n)*sizeof(t)) ^ stress.c:526:13: note: in expansion of macro 'N_GNEW' ewgts = N_GNEW(nedges + n, float); ^~~~~~ stress.c:546:14: warning: conversion to 'float' from 'double' may alter its value [-Wfloat-conversion] ewgts[j] = -1.0 / (float) dist_list[j]; ^ In file included from /jenkins/jobs/oi-userland/workspace/components/image/graphviz/graphviz-2.40.1/lib/common/render.h:44:0, from neato.h:35, from stress.c:15: /jenkins/jobs/oi-userland/workspace/components/image/graphviz/graphviz-2.40.1/lib/common/memory.h:39:41: warning: conversion to 'unsigned int' from 'int' may change the sign of the result [-Wsign-conversion] #define N_GNEW(n,t) (t*)gmalloc((n)*sizeof(t)) ^ stress.c:562:18: note: in expansion of macro 'N_GNEW' directions = N_GNEW(dim, double *); ^~~~~~ /jenkins/jobs/oi-userland/workspace/components/image/graphviz/graphviz-2.40.1/lib/common/memory.h:39:41: warning: conversion to 'unsigned int' from 'int' may change the sign of the result [-Wsign-conversion] #define N_GNEW(n,t) (t*)gmalloc((n)*sizeof(t)) ^ stress.c:563:21: note: in expansion of macro 'N_GNEW' directions[0] = N_GNEW(dim * subspace_dim, double); ^~~~~~ stress.c:599:22: warning: cast from function call of type 'int' to non-matching type 'double' [-Wbad-function-cast] directions[k][i] = (double) (rand()) / RAND_MAX; ^ In file included from /jenkins/jobs/oi-userland/workspace/components/image/graphviz/graphviz-2.40.1/lib/common/render.h:44:0, from neato.h:35, from stress.c:15: /jenkins/jobs/oi-userland/workspace/components/image/graphviz/graphviz-2.40.1/lib/common/memory.h:39:41: warning: conversion to 'unsigned int' from 'int' may change the sign of the result [-Wsign-conversion] #define N_GNEW(n,t) (t*)gmalloc((n)*sizeof(t)) ^ stress.c:628:9: note: in expansion of macro 'N_GNEW' b = N_GNEW(n, double); ^~~~~~ /jenkins/jobs/oi-userland/workspace/components/image/graphviz/graphviz-2.40.1/lib/common/memory.h:39:41: warning: conversion to 'unsigned int' from 'int' may change the sign of the result [-Wsign-conversion] #define N_GNEW(n,t) (t*)gmalloc((n)*sizeof(t)) ^ stress.c:629:20: note: in expansion of macro 'N_GNEW' b_restricted = N_GNEW(subspace_dim, double); ^~~~~~ stress.c:649:21: warning: conversion to 'float' from 'DistType {aka int}' may alter its value [-Wconversion] L_ij = -ewgts[j] * dist_list[j] / dist_ij; /* L_ij=w_{ij}*d_{ij}/dist_{ij} */ ^ stress.c:262:13: warning: unused parameter 'nedges_graph' [-Wunused-parameter] int nedges_graph, /* Number of edges */ ^~~~~~~~~~~~ In file included from /jenkins/jobs/oi-userland/workspace/components/image/graphviz/graphviz-2.40.1/lib/common/render.h:44:0, from neato.h:35, from stress.c:15: stress.c: In function 'compute_weighted_apsp_packed': /jenkins/jobs/oi-userland/workspace/components/image/graphviz/graphviz-2.40.1/lib/common/memory.h:36:41: warning: conversion to 'unsigned int' from 'int' may change the sign of the result [-Wsign-conversion] #define N_NEW(n,t) (t*)zmalloc((n)*sizeof(t)) ^ stress.c:716:18: note: in expansion of macro 'N_NEW' float *Dij = N_NEW(n * (n + 1) / 2, float); ^~~~~ /jenkins/jobs/oi-userland/workspace/components/image/graphviz/graphviz-2.40.1/lib/common/memory.h:36:41: warning: conversion to 'unsigned int' from 'int' may change the sign of the result [-Wsign-conversion] #define N_NEW(n,t) (t*)zmalloc((n)*sizeof(t)) ^ stress.c:718:17: note: in expansion of macro 'N_NEW' float *Di = N_NEW(n, float); ^~~~~ stress.c: In function 'compute_apsp_packed': /jenkins/jobs/oi-userland/workspace/components/image/graphviz/graphviz-2.40.1/lib/common/memory.h:36:41: warning: conversion to 'unsigned int' from 'int' may change the sign of the result [-Wsign-conversion] #define N_NEW(n,t) (t*)zmalloc((n)*sizeof(t)) ^ stress.c:775:18: note: in expansion of macro 'N_NEW' float *Dij = N_NEW(n * (n + 1) / 2, float); ^~~~~ /jenkins/jobs/oi-userland/workspace/components/image/graphviz/graphviz-2.40.1/lib/common/memory.h:36:41: warning: conversion to 'unsigned int' from 'int' may change the sign of the result [-Wsign-conversion] #define N_NEW(n,t) (t*)zmalloc((n)*sizeof(t)) ^ stress.c:777:20: note: in expansion of macro 'N_NEW' DistType *Di = N_NEW(n, DistType); ^~~~~ stress.c: In function 'compute_apsp_artifical_weights_packed': /jenkins/jobs/oi-userland/workspace/components/image/graphviz/graphviz-2.40.1/lib/common/memory.h:36:41: warning: conversion to 'unsigned int' from 'int' may change the sign of the result [-Wsign-conversion] #define N_NEW(n,t) (t*)zmalloc((n)*sizeof(t)) ^ stress.c:813:15: note: in expansion of macro 'N_NEW' weights = N_NEW(nedges, float); ^~~~~ /jenkins/jobs/oi-userland/workspace/components/image/graphviz/graphviz-2.40.1/lib/common/memory.h:36:41: warning: conversion to 'unsigned int' from 'int' may change the sign of the result [-Wsign-conversion] #define N_NEW(n,t) (t*)zmalloc((n)*sizeof(t)) ^ stress.c:814:15: note: in expansion of macro 'N_NEW' vtx_vec = N_NEW(n, int); ^~~~~ stress.c:847:22: warning: conversion to 'float' from 'int' may alter its value [-Wconversion] ((float) deg_i + deg_j - ^ stress.c:847:30: warning: conversion to 'float' from 'int' may alter its value [-Wconversion] ((float) deg_i + deg_j - ^ stress.c: At top level: stress.c:868:5: warning: "DEBUG" is not defined, evaluates to 0 [-Wundef] #if DEBUG > 1 ^~~~~ In file included from /jenkins/jobs/oi-userland/workspace/components/image/graphviz/graphviz-2.40.1/lib/common/render.h:44:0, from neato.h:35, from stress.c:15: stress.c: In function 'stress_majorization_kD_mkernel': /jenkins/jobs/oi-userland/workspace/components/image/graphviz/graphviz-2.40.1/lib/common/memory.h:36:41: warning: conversion to 'unsigned int' from 'int' may change the sign of the result [-Wsign-conversion] #define N_NEW(n,t) (t*)zmalloc((n)*sizeof(t)) ^ stress.c:1030:14: note: in expansion of macro 'N_NEW' coords = N_NEW(dim, float *); ^~~~~ /jenkins/jobs/oi-userland/workspace/components/image/graphviz/graphviz-2.40.1/lib/common/memory.h:36:41: warning: conversion to 'unsigned int' from 'int' may change the sign of the result [-Wsign-conversion] #define N_NEW(n,t) (t*)zmalloc((n)*sizeof(t)) ^ stress.c:1031:17: note: in expansion of macro 'N_NEW' f_storage = N_NEW(dim * n, float); ^~~~~ stress.c:1043:29: warning: conversion to 'float' from 'int' may alter its value [-Wconversion] constant_term = ((float) n * (n - 1) / 2); ^ In file included from /jenkins/jobs/oi-userland/workspace/components/image/graphviz/graphviz-2.40.1/lib/common/render.h:44:0, from neato.h:35, from stress.c:15: /jenkins/jobs/oi-userland/workspace/components/image/graphviz/graphviz-2.40.1/lib/common/memory.h:36:41: warning: conversion to 'unsigned int' from 'int' may change the sign of the result [-Wsign-conversion] #define N_NEW(n,t) (t*)zmalloc((n)*sizeof(t)) ^ stress.c:1079:15: note: in expansion of macro 'N_NEW' degrees = N_NEW(n, DegType); ^~~~~ stress.c:1081:26: warning: conversion to 'unsigned int' from 'int' may change the sign of the result [-Wsign-conversion] memset(degrees, 0, n * sizeof(DegType)); ^ stress.c:1093:16: warning: conversion to 'float' from 'long double' may alter its value [-Wfloat-conversion] lap2[count] = degrees[i]; ^~~~~~~ In file included from /jenkins/jobs/oi-userland/workspace/components/image/graphviz/graphviz-2.40.1/lib/common/render.h:44:0, from neato.h:35, from stress.c:15: /jenkins/jobs/oi-userland/workspace/components/image/graphviz/graphviz-2.40.1/lib/common/memory.h:36:41: warning: conversion to 'unsigned int' from 'int' may change the sign of the result [-Wsign-conversion] #define N_NEW(n,t) (t*)zmalloc((n)*sizeof(t)) ^ stress.c:1110:9: note: in expansion of macro 'N_NEW' b = N_NEW(dim, float *); ^~~~~ /jenkins/jobs/oi-userland/workspace/components/image/graphviz/graphviz-2.40.1/lib/common/memory.h:36:41: warning: conversion to 'unsigned int' from 'int' may change the sign of the result [-Wsign-conversion] #define N_NEW(n,t) (t*)zmalloc((n)*sizeof(t)) ^ stress.c:1111:12: note: in expansion of macro 'N_NEW' b[0] = N_NEW(dim * n, float); ^~~~~ /jenkins/jobs/oi-userland/workspace/components/image/graphviz/graphviz-2.40.1/lib/common/memory.h:36:41: warning: conversion to 'unsigned int' from 'int' may change the sign of the result [-Wsign-conversion] #define N_NEW(n,t) (t*)zmalloc((n)*sizeof(t)) ^ stress.c:1116:18: note: in expansion of macro 'N_NEW' tmp_coords = N_NEW(n, float); ^~~~~ /jenkins/jobs/oi-userland/workspace/components/image/graphviz/graphviz-2.40.1/lib/common/memory.h:36:41: warning: conversion to 'unsigned int' from 'int' may change the sign of the result [-Wsign-conversion] #define N_NEW(n,t) (t*)zmalloc((n)*sizeof(t)) ^ stress.c:1117:24: note: in expansion of macro 'N_NEW' dist_accumulator = N_NEW(n, float); ^~~~~ /jenkins/jobs/oi-userland/workspace/components/image/graphviz/graphviz-2.40.1/lib/common/memory.h:36:41: warning: conversion to 'unsigned int' from 'int' may change the sign of the result [-Wsign-conversion] #define N_NEW(n,t) (t*)zmalloc((n)*sizeof(t)) ^ stress.c:1128:12: note: in expansion of macro 'N_NEW' lap1 = N_NEW(lap_length, float); ^~~~~ stress.c:1148:23: warning: conversion to 'unsigned int' from 'int' may change the sign of the result [-Wsign-conversion] memset(degrees, 0, n * sizeof(DegType)); ^ stress.c:1209:20: warning: conversion to 'float' from 'long double' may alter its value [-Wfloat-conversion] lap1[count] = degrees[i]; ^~~~~~~ In file included from matrix_ops.c:16:0: matrix_ops.c: In function 'power_iteration': /jenkins/jobs/oi-userland/workspace/components/image/graphviz/graphviz-2.40.1/lib/common/memory.h:39:41: warning: conversion to 'unsigned int' from 'int' may change the sign of the result [-Wsign-conversion] #define N_GNEW(n,t) (t*)gmalloc((n)*sizeof(t)) ^ matrix_ops.c:30:23: note: in expansion of macro 'N_GNEW' double *tmp_vec = N_GNEW(n, double); ^~~~~~ /jenkins/jobs/oi-userland/workspace/components/image/graphviz/graphviz-2.40.1/lib/common/memory.h:39:41: warning: conversion to 'unsigned int' from 'int' may change the sign of the result [-Wsign-conversion] #define N_GNEW(n,t) (t*)gmalloc((n)*sizeof(t)) ^ matrix_ops.c:31:24: note: in expansion of macro 'N_GNEW' double *last_vec = N_GNEW(n, double); ^~~~~~ matrix_ops.c: In function 'mult_dense_mat': matrix_ops.c:154:48: warning: conversion to 'unsigned int' from 'int' may change the sign of the result [-Wsign-conversion] storage = (float *) realloc(C[0], dim1 * dim3 * sizeof(A[0])); ^ matrix_ops.c:155:39: warning: conversion to 'unsigned int' from 'int' may change the sign of the result [-Wsign-conversion] *CC = C = (float **) realloc(C, dim1 * sizeof(A)); ^ matrix_ops.c:157:41: warning: conversion to 'unsigned int' from 'int' may change the sign of the result [-Wsign-conversion] storage = (float *) malloc(dim1 * dim3 * sizeof(A[0])); ^ matrix_ops.c:158:35: warning: conversion to 'unsigned int' from 'int' may change the sign of the result [-Wsign-conversion] *CC = C = (float **) malloc(dim1 * sizeof(A)); ^ matrix_ops.c: In function 'mult_dense_mat_d': matrix_ops.c:190:49: warning: conversion to 'unsigned int' from 'int' may change the sign of the result [-Wsign-conversion] storage = (double *) realloc(C[0], dim1 * dim3 * sizeof(double)); ^ matrix_ops.c:191:40: warning: conversion to 'unsigned int' from 'int' may change the sign of the result [-Wsign-conversion] *CC = C = (double **) realloc(C, dim1 * sizeof(double *)); ^ matrix_ops.c:193:42: warning: conversion to 'unsigned int' from 'int' may change the sign of the result [-Wsign-conversion] storage = (double *) malloc(dim1 * dim3 * sizeof(double)); ^ matrix_ops.c:194:36: warning: conversion to 'unsigned int' from 'int' may change the sign of the result [-Wsign-conversion] *CC = C = (double **) malloc(dim1 * sizeof(double *)); ^ matrix_ops.c: In function 'mult_sparse_dense_mat_transpose': matrix_ops.c:229:48: warning: conversion to 'unsigned int' from 'int' may change the sign of the result [-Wsign-conversion] storage = (float *) realloc(C[0], dim1 * dim2 * sizeof(A[0])); ^ matrix_ops.c:230:39: warning: conversion to 'unsigned int' from 'int' may change the sign of the result [-Wsign-conversion] *CC = C = (float **) realloc(C, dim1 * sizeof(A)); ^ matrix_ops.c:232:41: warning: conversion to 'unsigned int' from 'int' may change the sign of the result [-Wsign-conversion] storage = (float *) malloc(dim1 * dim2 * sizeof(A[0])); ^ matrix_ops.c:233:35: warning: conversion to 'unsigned int' from 'int' may change the sign of the result [-Wsign-conversion] *CC = C = (float **) malloc(dim1 * sizeof(A)); ^ matrix_ops.c: In function 'orthog1f': matrix_ops.c:555:9: warning: conversion to 'float' from 'int' may alter its value [-Wconversion] sum /= n; ^~ matrix_ops.c: In function 'invert_vec': matrix_ops.c:719:19: warning: comparing floating point with == or != is unsafe [-Wfloat-equal] if ((v = vec[i]) != 0.0) ^~ kkutils.c: In function 'common_neighbors': kkutils.c:21:44: warning: unused parameter 'v' [-Wunused-parameter] int common_neighbors(vtx_data * graph, int v, int u, int *v_vector) ^ In file included from /jenkins/jobs/oi-userland/workspace/components/image/graphviz/graphviz-2.40.1/lib/common/render.h:44:0, from neato.h:35, from defs.h:21, from bfs.h:21, from kkutils.c:15: kkutils.c: In function 'compute_apsp_dijkstra': /jenkins/jobs/oi-userland/workspace/components/image/graphviz/graphviz-2.40.1/lib/common/memory.h:39:41: warning: conversion to 'unsigned int' from 'int' may change the sign of the result [-Wsign-conversion] #define N_GNEW(n,t) (t*)gmalloc((n)*sizeof(t)) ^ kkutils.c:65:15: note: in expansion of macro 'N_GNEW' storage = N_GNEW(n * n, DistType); ^~~~~~ /jenkins/jobs/oi-userland/workspace/components/image/graphviz/graphviz-2.40.1/lib/common/memory.h:39:41: warning: conversion to 'unsigned int' from 'int' may change the sign of the result [-Wsign-conversion] #define N_GNEW(n,t) (t*)gmalloc((n)*sizeof(t)) ^ kkutils.c:66:11: note: in expansion of macro 'N_GNEW' dij = N_GNEW(n, DistType *); ^~~~~~ kkutils.c: In function 'compute_apsp_simple': /jenkins/jobs/oi-userland/workspace/components/image/graphviz/graphviz-2.40.1/lib/common/memory.h:39:41: warning: conversion to 'unsigned int' from 'int' may change the sign of the result [-Wsign-conversion] #define N_GNEW(n,t) (t*)gmalloc((n)*sizeof(t)) ^ kkutils.c:81:25: note: in expansion of macro 'N_GNEW' DistType *storage = N_GNEW(n * n, int); ^~~~~~ /jenkins/jobs/oi-userland/workspace/components/image/graphviz/graphviz-2.40.1/lib/common/memory.h:39:41: warning: conversion to 'unsigned int' from 'int' may change the sign of the result [-Wsign-conversion] #define N_GNEW(n,t) (t*)gmalloc((n)*sizeof(t)) ^ kkutils.c:85:11: note: in expansion of macro 'N_GNEW' dij = N_GNEW(n, DistType *); ^~~~~~ kkutils.c: In function 'quicksort_placef': kkutils.c:198:24: warning: conversion to 'size_t {aka unsigned int}' from 'int' may change the sign of the result [-Wsign-conversion] qsort(ordering+first, last-first+1, sizeof(ordering[0]), (qsort_cmpf)fcmpf); ^~~~ In file included from /jenkins/jobs/oi-userland/workspace/components/image/graphviz/graphviz-2.40.1/lib/common/render.h:44:0, from neato.h:35, from defs.h:21, from bfs.h:21, from kkutils.c:15: kkutils.c: In function 'compute_new_weights': /jenkins/jobs/oi-userland/workspace/components/image/graphviz/graphviz-2.40.1/lib/common/memory.h:39:41: warning: conversion to 'unsigned int' from 'int' may change the sign of the result [-Wsign-conversion] #define N_GNEW(n,t) (t*)gmalloc((n)*sizeof(t)) ^ kkutils.c:249:20: note: in expansion of macro 'N_GNEW' int *vtx_vec = N_GNEW(n, int); ^~~~~~ /jenkins/jobs/oi-userland/workspace/components/image/graphviz/graphviz-2.40.1/lib/common/memory.h:39:41: warning: conversion to 'unsigned int' from 'int' may change the sign of the result [-Wsign-conversion] #define N_GNEW(n,t) (t*)gmalloc((n)*sizeof(t)) ^ kkutils.c:255:15: note: in expansion of macro 'N_GNEW' weights = N_GNEW(nedges, float); ^~~~~~ In file included from /jenkins/jobs/oi-userland/workspace/components/image/graphviz/graphviz-2.40.1/lib/common/render.h:44:0, from neato.h:35, from defs.h:21, from dijkstra.h:23, from embed_graph.c:23: embed_graph.c: In function 'embed_graph': /jenkins/jobs/oi-userland/workspace/components/image/graphviz/graphviz-2.40.1/lib/common/memory.h:39:41: warning: conversion to 'unsigned int' from 'int' may change the sign of the result [-Wsign-conversion] #define N_GNEW(n,t) (t*)gmalloc((n)*sizeof(t)) ^ embed_graph.c:43:25: note: in expansion of macro 'N_GNEW' DistType *storage = N_GNEW(n * dim, DistType); ^~~~~~ /jenkins/jobs/oi-userland/workspace/components/image/graphviz/graphviz-2.40.1/lib/common/memory.h:39:41: warning: conversion to 'unsigned int' from 'int' may change the sign of the result [-Wsign-conversion] #define N_GNEW(n,t) (t*)gmalloc((n)*sizeof(t)) ^ embed_graph.c:45:22: note: in expansion of macro 'N_GNEW' DistType *dist = N_GNEW(n, DistType); /* this vector stores the distances of ^~~~~~ /jenkins/jobs/oi-userland/workspace/components/image/graphviz/graphviz-2.40.1/lib/common/memory.h:39:41: warning: conversion to 'unsigned int' from 'int' may change the sign of the result [-Wsign-conversion] #define N_GNEW(n,t) (t*)gmalloc((n)*sizeof(t)) ^ embed_graph.c:57:24: note: in expansion of macro 'N_GNEW' *Coords = coords = N_GNEW(dim, DistType *); ^~~~~~ In file included from /jenkins/jobs/oi-userland/workspace/components/image/graphviz/graphviz-2.40.1/lib/common/render.h:44:0, from neato.h:35, from defs.h:21, from bfs.h:21, from dijkstra.c:24: dijkstra.c: In function 'initHeap': /jenkins/jobs/oi-userland/workspace/components/image/graphviz/graphviz-2.40.1/lib/common/memory.h:39:41: warning: conversion to 'unsigned int' from 'int' may change the sign of the result [-Wsign-conversion] #define N_GNEW(n,t) (t*)gmalloc((n)*sizeof(t)) ^ dijkstra.c:104:20: note: in expansion of macro 'N_GNEW' else h->data = N_GNEW(n - 1, int); ^~~~~~ dijkstra.c: In function 'dijkstra': dijkstra.c:166:38: warning: conversion to 'unsigned int' from 'int' may change the sign of the result [-Wsign-conversion] index = (int *) realloc(index, n * sizeof(int)); ^ dijkstra.c:179:18: warning: comparing floating point with == or != is unsafe [-Wfloat-equal] if (closestDist == MAX_DIST) ^~ dijkstra.c:193:14: warning: comparing floating point with == or != is unsafe [-Wfloat-equal] if (dist[i] == MAX_DIST) /* 'i' is not connected to 'vertex' */ ^~ dijkstra.c: In function 'dijkstra_bounded': dijkstra.c:227:50: warning: conversion to 'unsigned int' from 'int' may change the sign of the result [-Wsign-conversion] (boolean *) realloc(node_in_neighborhood, n * sizeof(boolean)); ^ dijkstra.c:241:38: warning: conversion to 'unsigned int' from 'int' may change the sign of the result [-Wsign-conversion] index = (int *) realloc(index, n * sizeof(int)); ^ dijkstra.c:259:18: warning: comparing floating point with == or != is unsafe [-Wfloat-equal] if (closestDist == MAX_DIST) ^~ In file included from /jenkins/jobs/oi-userland/workspace/components/image/graphviz/graphviz-2.40.1/lib/common/render.h:44:0, from neato.h:35, from defs.h:21, from bfs.h:21, from dijkstra.c:24: dijkstra.c: In function 'initHeap_f': /jenkins/jobs/oi-userland/workspace/components/image/graphviz/graphviz-2.40.1/lib/common/memory.h:39:41: warning: conversion to 'unsigned int' from 'int' may change the sign of the result [-Wsign-conversion] #define N_GNEW(n,t) (t*)gmalloc((n)*sizeof(t)) ^ dijkstra.c:305:15: note: in expansion of macro 'N_GNEW' h->data = N_GNEW(n - 1, int); ^~~~~~ dijkstra.c: In function 'dijkstra_f': /jenkins/jobs/oi-userland/workspace/components/image/graphviz/graphviz-2.40.1/lib/common/memory.h:39:41: warning: conversion to 'unsigned int' from 'int' may change the sign of the result [-Wsign-conversion] #define N_GNEW(n,t) (t*)gmalloc((n)*sizeof(t)) ^ dijkstra.c:371:13: note: in expansion of macro 'N_GNEW' index = N_GNEW(n, int); ^~~~~~ dijkstra.c:384:18: warning: comparing floating point with == or != is unsafe [-Wfloat-equal] if (closestDist == MAXFLOAT) ^~ In file included from /jenkins/jobs/oi-userland/workspace/components/image/graphviz/graphviz-2.40.1/lib/common/render.h:44:0, from neato.h:35, from defs.h:21, from conjgrad.h:23, from conjgrad.c:16: conjgrad.c: In function 'conjugate_gradient': /jenkins/jobs/oi-userland/workspace/components/image/graphviz/graphviz-2.40.1/lib/common/memory.h:39:41: warning: conversion to 'unsigned int' from 'int' may change the sign of the result [-Wsign-conversion] #define N_GNEW(n,t) (t*)gmalloc((n)*sizeof(t)) ^ conjgrad.c:34:17: note: in expansion of macro 'N_GNEW' double *r = N_GNEW(n, double); ^~~~~~ /jenkins/jobs/oi-userland/workspace/components/image/graphviz/graphviz-2.40.1/lib/common/memory.h:39:41: warning: conversion to 'unsigned int' from 'int' may change the sign of the result [-Wsign-conversion] #define N_GNEW(n,t) (t*)gmalloc((n)*sizeof(t)) ^ conjgrad.c:35:17: note: in expansion of macro 'N_GNEW' double *p = N_GNEW(n, double); ^~~~~~ /jenkins/jobs/oi-userland/workspace/components/image/graphviz/graphviz-2.40.1/lib/common/memory.h:39:41: warning: conversion to 'unsigned int' from 'int' may change the sign of the result [-Wsign-conversion] #define N_GNEW(n,t) (t*)gmalloc((n)*sizeof(t)) ^ conjgrad.c:36:18: note: in expansion of macro 'N_GNEW' double *Ap = N_GNEW(n, double); ^~~~~~ /jenkins/jobs/oi-userland/workspace/components/image/graphviz/graphviz-2.40.1/lib/common/memory.h:39:41: warning: conversion to 'unsigned int' from 'int' may change the sign of the result [-Wsign-conversion] #define N_GNEW(n,t) (t*)gmalloc((n)*sizeof(t)) ^ conjgrad.c:37:18: note: in expansion of macro 'N_GNEW' double *Ax = N_GNEW(n, double); ^~~~~~ /jenkins/jobs/oi-userland/workspace/components/image/graphviz/graphviz-2.40.1/lib/common/memory.h:39:41: warning: conversion to 'unsigned int' from 'int' may change the sign of the result [-Wsign-conversion] #define N_GNEW(n,t) (t*)gmalloc((n)*sizeof(t)) ^ conjgrad.c:38:22: note: in expansion of macro 'N_GNEW' double *alphap = N_GNEW(n, double); ^~~~~~ /jenkins/jobs/oi-userland/workspace/components/image/graphviz/graphviz-2.40.1/lib/common/memory.h:39:41: warning: conversion to 'unsigned int' from 'int' may change the sign of the result [-Wsign-conversion] #define N_GNEW(n,t) (t*)gmalloc((n)*sizeof(t)) ^ conjgrad.c:40:22: note: in expansion of macro 'N_GNEW' double *orth_b = N_GNEW(n, double); ^~~~~~ conjgrad.c:52:11: warning: comparing floating point with == or != is unsafe [-Wfloat-equal] if (p_Ap == 0) ^~ conjgrad.c:70:14: warning: comparing floating point with == or != is unsafe [-Wfloat-equal] if (r_r == 0) { ^~ In file included from /jenkins/jobs/oi-userland/workspace/components/image/graphviz/graphviz-2.40.1/lib/common/render.h:44:0, from neato.h:35, from defs.h:21, from conjgrad.h:23, from conjgrad.c:16: conjgrad.c: In function 'conjugate_gradient_f': /jenkins/jobs/oi-userland/workspace/components/image/graphviz/graphviz-2.40.1/lib/common/memory.h:39:41: warning: conversion to 'unsigned int' from 'int' may change the sign of the result [-Wsign-conversion] #define N_GNEW(n,t) (t*)gmalloc((n)*sizeof(t)) ^ conjgrad.c:107:17: note: in expansion of macro 'N_GNEW' double *r = N_GNEW(n, double); ^~~~~~ /jenkins/jobs/oi-userland/workspace/components/image/graphviz/graphviz-2.40.1/lib/common/memory.h:39:41: warning: conversion to 'unsigned int' from 'int' may change the sign of the result [-Wsign-conversion] #define N_GNEW(n,t) (t*)gmalloc((n)*sizeof(t)) ^ conjgrad.c:108:17: note: in expansion of macro 'N_GNEW' double *p = N_GNEW(n, double); ^~~~~~ /jenkins/jobs/oi-userland/workspace/components/image/graphviz/graphviz-2.40.1/lib/common/memory.h:39:41: warning: conversion to 'unsigned int' from 'int' may change the sign of the result [-Wsign-conversion] #define N_GNEW(n,t) (t*)gmalloc((n)*sizeof(t)) ^ conjgrad.c:109:18: note: in expansion of macro 'N_GNEW' double *Ap = N_GNEW(n, double); ^~~~~~ /jenkins/jobs/oi-userland/workspace/components/image/graphviz/graphviz-2.40.1/lib/common/memory.h:39:41: warning: conversion to 'unsigned int' from 'int' may change the sign of the result [-Wsign-conversion] #define N_GNEW(n,t) (t*)gmalloc((n)*sizeof(t)) ^ conjgrad.c:110:18: note: in expansion of macro 'N_GNEW' double *Ax = N_GNEW(n, double); ^~~~~~ /jenkins/jobs/oi-userland/workspace/components/image/graphviz/graphviz-2.40.1/lib/common/memory.h:39:41: warning: conversion to 'unsigned int' from 'int' may change the sign of the result [-Wsign-conversion] #define N_GNEW(n,t) (t*)gmalloc((n)*sizeof(t)) ^ conjgrad.c:111:22: note: in expansion of macro 'N_GNEW' double *alphap = N_GNEW(n, double); ^~~~~~ /jenkins/jobs/oi-userland/workspace/components/image/graphviz/graphviz-2.40.1/lib/common/memory.h:39:41: warning: conversion to 'unsigned int' from 'int' may change the sign of the result [-Wsign-conversion] #define N_GNEW(n,t) (t*)gmalloc((n)*sizeof(t)) ^ conjgrad.c:113:22: note: in expansion of macro 'N_GNEW' double *orth_b = N_GNEW(n, double); ^~~~~~ conjgrad.c:127:11: warning: comparing floating point with == or != is unsafe [-Wfloat-equal] if (p_Ap == 0) ^~ conjgrad.c:145:14: warning: comparing floating point with == or != is unsafe [-Wfloat-equal] if (r_r == 0) { ^~ In file included from /jenkins/jobs/oi-userland/workspace/components/image/graphviz/graphviz-2.40.1/lib/common/render.h:44:0, from neato.h:35, from defs.h:21, from conjgrad.h:23, from conjgrad.c:16: conjgrad.c: In function 'conjugate_gradient_mkernel': /jenkins/jobs/oi-userland/workspace/components/image/graphviz/graphviz-2.40.1/lib/common/memory.h:36:41: warning: conversion to 'unsigned int' from 'int' may change the sign of the result [-Wsign-conversion] #define N_NEW(n,t) (t*)zmalloc((n)*sizeof(t)) ^ conjgrad.c:178:16: note: in expansion of macro 'N_NEW' float *r = N_NEW(n, float); ^~~~~ /jenkins/jobs/oi-userland/workspace/components/image/graphviz/graphviz-2.40.1/lib/common/memory.h:36:41: warning: conversion to 'unsigned int' from 'int' may change the sign of the result [-Wsign-conversion] #define N_NEW(n,t) (t*)zmalloc((n)*sizeof(t)) ^ conjgrad.c:179:16: note: in expansion of macro 'N_NEW' float *p = N_NEW(n, float); ^~~~~ /jenkins/jobs/oi-userland/workspace/components/image/graphviz/graphviz-2.40.1/lib/common/memory.h:36:41: warning: conversion to 'unsigned int' from 'int' may change the sign of the result [-Wsign-conversion] #define N_NEW(n,t) (t*)zmalloc((n)*sizeof(t)) ^ conjgrad.c:180:17: note: in expansion of macro 'N_NEW' float *Ap = N_NEW(n, float); ^~~~~ /jenkins/jobs/oi-userland/workspace/components/image/graphviz/graphviz-2.40.1/lib/common/memory.h:36:41: warning: conversion to 'unsigned int' from 'int' may change the sign of the result [-Wsign-conversion] #define N_NEW(n,t) (t*)zmalloc((n)*sizeof(t)) ^ conjgrad.c:181:17: note: in expansion of macro 'N_NEW' float *Ax = N_NEW(n, float); ^~~~~ conjgrad.c:207:11: warning: comparing floating point with == or != is unsafe [-Wfloat-equal] if (p_Ap == 0) ^~ conjgrad.c:221:14: warning: comparing floating point with == or != is unsafe [-Wfloat-equal] if (r_r == 0) { ^~ CC pca.lo CC closest.lo CC bfs.lo CC constraint.lo CC quad_prog_solve.lo CC smart_ini_x.lo In file included from /jenkins/jobs/oi-userland/workspace/components/image/graphviz/graphviz-2.40.1/lib/common/render.h:44:0, from neato.h:35, from defs.h:21, from pca.h:23, from pca.c:16: pca.c: In function 'PCA_alloc': /jenkins/jobs/oi-userland/workspace/components/image/graphviz/graphviz-2.40.1/lib/common/memory.h:39:41: warning: conversion to 'unsigned int' from 'int' may change the sign of the result [-Wsign-conversion] #define N_GNEW(n,t) (t*)gmalloc((n)*sizeof(t)) ^ pca.c:35:12: note: in expansion of macro 'N_GNEW' eigs = N_GNEW(new_dim, double *); ^~~~~~ /jenkins/jobs/oi-userland/workspace/components/image/graphviz/graphviz-2.40.1/lib/common/memory.h:39:41: warning: conversion to 'unsigned int' from 'int' may change the sign of the result [-Wsign-conversion] #define N_GNEW(n,t) (t*)gmalloc((n)*sizeof(t)) ^ pca.c:37:12: note: in expansion of macro 'N_GNEW' eigs[i] = N_GNEW(dim, double); ^~~~~~ /jenkins/jobs/oi-userland/workspace/components/image/graphviz/graphviz-2.40.1/lib/common/memory.h:39:41: warning: conversion to 'unsigned int' from 'int' may change the sign of the result [-Wsign-conversion] #define N_GNEW(n,t) (t*)gmalloc((n)*sizeof(t)) ^ pca.c:38:13: note: in expansion of macro 'N_GNEW' evals = N_GNEW(new_dim, double); ^~~~~~ /jenkins/jobs/oi-userland/workspace/components/image/graphviz/graphviz-2.40.1/lib/common/memory.h:39:41: warning: conversion to 'unsigned int' from 'int' may change the sign of the result [-Wsign-conversion] #define N_GNEW(n,t) (t*)gmalloc((n)*sizeof(t)) ^ pca.c:40:10: note: in expansion of macro 'N_GNEW' DD = N_GNEW(dim, double *); ^~~~~~ /jenkins/jobs/oi-userland/workspace/components/image/graphviz/graphviz-2.40.1/lib/common/memory.h:39:41: warning: conversion to 'unsigned int' from 'int' may change the sign of the result [-Wsign-conversion] #define N_GNEW(n,t) (t*)gmalloc((n)*sizeof(t)) ^ pca.c:41:19: note: in expansion of macro 'N_GNEW' storage_ptr = N_GNEW(dim * dim, double); ^~~~~~ pca.c: In function 'iterativePCA_1D': pca.c:102:12: warning: conversion to 'boolean {aka unsigned char}' from 'int' may alter its value [-Wconversion] return power_iteration(mat, dim, 1, &new_direction, &eval, TRUE); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from /jenkins/jobs/oi-userland/workspace/components/image/graphviz/graphviz-2.40.1/lib/common/render.h:44:0, from neato.h:35, from defs.h:21, from kkutils.h:23, from closest.c:15: closest.c: In function 'initStack': /jenkins/jobs/oi-userland/workspace/components/image/graphviz/graphviz-2.40.1/lib/common/memory.h:39:41: warning: conversion to 'unsigned int' from 'int' may change the sign of the result [-Wsign-conversion] #define N_GNEW(n,t) (t*)gmalloc((n)*sizeof(t)) ^ closest.c:53:15: note: in expansion of macro 'N_GNEW' s->data = N_GNEW(n, Pair); ^~~~~~ closest.c: In function 'heapify': closest.c:34:27: warning: comparing floating point with == or != is unsafe [-Wfloat-equal] #define EQ(p,q) ((p).dist == (q).dist) ^ closest.c:91:35: note: in expansion of macro 'EQ' (LT(h->data[i],h->data[j]) || ((EQ(h->data[i],h->data[j])) && (rand()%2))) ^~ closest.c:106:26: note: in expansion of macro 'greaterPriority' if (insideHeap(h, l) && greaterPriority(h, l, i)) ^~~~~~~~~~~~~~~ closest.c:34:27: warning: comparing floating point with == or != is unsafe [-Wfloat-equal] #define EQ(p,q) ((p).dist == (q).dist) ^ closest.c:91:35: note: in expansion of macro 'EQ' (LT(h->data[i],h->data[j]) || ((EQ(h->data[i],h->data[j])) && (rand()%2))) ^~ closest.c:110:26: note: in expansion of macro 'greaterPriority' if (insideHeap(h, r) && greaterPriority(h, r, largest)) ^~~~~~~~~~~~~~~ In file included from /jenkins/jobs/oi-userland/workspace/components/image/graphviz/graphviz-2.40.1/lib/common/render.h:44:0, from neato.h:35, from defs.h:21, from kkutils.h:23, from closest.c:15: closest.c: In function 'initHeap': /jenkins/jobs/oi-userland/workspace/components/image/graphviz/graphviz-2.40.1/lib/common/memory.h:39:41: warning: conversion to 'unsigned int' from 'int' may change the sign of the result [-Wsign-conversion] #define N_GNEW(n,t) (t*)gmalloc((n)*sizeof(t)) ^ closest.c:148:15: note: in expansion of macro 'N_GNEW' h->data = N_GNEW(h->maxSize, Pair); ^~~~~~ closest.c: In function 'insert': closest.c:179:49: warning: conversion to 'unsigned int' from 'int' may change the sign of the result [-Wsign-conversion] h->data = (Pair *) realloc(h->data, h->maxSize * sizeof(Pair)); ^ closest.c:34:27: warning: comparing floating point with == or != is unsafe [-Wfloat-equal] #define EQ(p,q) ((p).dist == (q).dist) ^ closest.c:91:35: note: in expansion of macro 'EQ' (LT(h->data[i],h->data[j]) || ((EQ(h->data[i],h->data[j])) && (rand()%2))) ^~ closest.c:183:21: note: in expansion of macro 'greaterPriority' while (i > 0 && greaterPriority(h, i, parent(i))) { ^~~~~~~~~~~~~~~ In file included from /jenkins/jobs/oi-userland/workspace/components/image/graphviz/graphviz-2.40.1/lib/common/render.h:44:0, from neato.h:35, from defs.h:21, from kkutils.h:23, from closest.c:15: closest.c: In function 'find_closest_pairs': /jenkins/jobs/oi-userland/workspace/components/image/graphviz/graphviz-2.40.1/lib/common/memory.h:39:41: warning: conversion to 'unsigned int' from 'int' may change the sign of the result [-Wsign-conversion] #define N_GNEW(n,t) (t*)gmalloc((n)*sizeof(t)) ^ closest.c:212:17: note: in expansion of macro 'N_GNEW' int *left = N_GNEW(n, int); ^~~~~~ /jenkins/jobs/oi-userland/workspace/components/image/graphviz/graphviz-2.40.1/lib/common/memory.h:39:41: warning: conversion to 'unsigned int' from 'int' may change the sign of the result [-Wsign-conversion] #define N_GNEW(n,t) (t*)gmalloc((n)*sizeof(t)) ^ closest.c:213:18: note: in expansion of macro 'N_GNEW' int *right = N_GNEW(n, int); ^~~~~~ closest.c:214:5: warning: missing initializer for field 'dist' of 'Pair {aka struct }' [-Wmissing-field-initializers] Pair pair = { 0, 0 }, new_pair; ^~~~ closest.c:30:12: note: 'dist' declared here double dist; /* distance between the nodes in the layout */ ^~~~ In file included from /jenkins/jobs/oi-userland/workspace/components/image/graphviz/graphviz-2.40.1/lib/common/render.h:44:0, from neato.h:35, from defs.h:21, from kkutils.h:23, from closest.c:15: /jenkins/jobs/oi-userland/workspace/components/image/graphviz/graphviz-2.40.1/lib/common/memory.h:39:41: warning: conversion to 'unsigned int' from 'int' may change the sign of the result [-Wsign-conversion] #define N_GNEW(n,t) (t*)gmalloc((n)*sizeof(t)) ^ closest.c:217:21: note: in expansion of macro 'N_GNEW' int *ordering = N_GNEW(n, int); ^~~~~~ /jenkins/jobs/oi-userland/workspace/components/image/graphviz/graphviz-2.40.1/lib/common/memory.h:39:41: warning: conversion to 'unsigned int' from 'int' may change the sign of the result [-Wsign-conversion] #define N_GNEW(n,t) (t*)gmalloc((n)*sizeof(t)) ^ closest.c:218:25: note: in expansion of macro 'N_GNEW' int *inv_ordering = N_GNEW(n, int); ^~~~~~ closest.c:66:49: warning: conversion to 'unsigned int' from 'int' may change the sign of the result [-Wsign-conversion] s->data = (Pair*) realloc(s->data, s->max_size*sizeof(Pair)); \ ^ closest.c:248:2: note: in expansion of macro 'push' push(pairs_stack, pair); ^~~~ In file included from /jenkins/jobs/oi-userland/workspace/components/image/graphviz/graphviz-2.40.1/lib/common/render.h:44:0, from neato.h:35, from defs.h:21, from kkutils.h:23, from closest.c:15: closest.c: In function 'construct_graph': /jenkins/jobs/oi-userland/workspace/components/image/graphviz/graphviz-2.40.1/lib/common/memory.h:39:41: warning: conversion to 'unsigned int' from 'int' may change the sign of the result [-Wsign-conversion] #define N_GNEW(n,t) (t*)gmalloc((n)*sizeof(t)) ^ closest.c:310:20: note: in expansion of macro 'N_GNEW' int *degrees = N_GNEW(n, int); ^~~~~~ /jenkins/jobs/oi-userland/workspace/components/image/graphviz/graphviz-2.40.1/lib/common/memory.h:39:41: warning: conversion to 'unsigned int' from 'int' may change the sign of the result [-Wsign-conversion] #define N_GNEW(n,t) (t*)gmalloc((n)*sizeof(t)) ^ closest.c:314:18: note: in expansion of macro 'N_GNEW' int *edges = N_GNEW(new_nedges, int); ^~~~~~ /jenkins/jobs/oi-userland/workspace/components/image/graphviz/graphviz-2.40.1/lib/common/memory.h:39:41: warning: conversion to 'unsigned int' from 'int' may change the sign of the result [-Wsign-conversion] #define N_GNEW(n,t) (t*)gmalloc((n)*sizeof(t)) ^ closest.c:315:22: note: in expansion of macro 'N_GNEW' float *weights = N_GNEW(new_nedges, float); ^~~~~~ /jenkins/jobs/oi-userland/workspace/components/image/graphviz/graphviz-2.40.1/lib/common/memory.h:39:41: warning: conversion to 'unsigned int' from 'int' may change the sign of the result [-Wsign-conversion] #define N_GNEW(n,t) (t*)gmalloc((n)*sizeof(t)) ^ closest.c:331:30: note: in expansion of macro 'N_GNEW' *New_graph = new_graph = N_GNEW(n, vtx_data); ^~~~~~ bfs.c: In function 'bfs_bounded': bfs.c:74:47: warning: unused parameter 'n' [-Wunused-parameter] bfs_bounded(int vertex, vtx_data * graph, int n, DistType * dist, ^ In file included from /jenkins/jobs/oi-userland/workspace/components/image/graphviz/graphviz-2.40.1/lib/common/render.h:44:0, from neato.h:35, from defs.h:21, from bfs.h:21, from bfs.c:23: bfs.c: In function 'mkQueue': /jenkins/jobs/oi-userland/workspace/components/image/graphviz/graphviz-2.40.1/lib/common/memory.h:39:41: warning: conversion to 'unsigned int' from 'int' may change the sign of the result [-Wsign-conversion] #define N_GNEW(n,t) (t*)gmalloc((n)*sizeof(t)) ^ bfs.c:124:16: note: in expansion of macro 'N_GNEW' qp->data = N_GNEW(size, int); ^~~~~~ bfs.c: At top level: bfs.c:129:8: warning: no previous prototype for 'newQueue' [-Wmissing-prototypes] Queue *newQueue(int size) ^~~~~~~~ bfs.c:141:6: warning: no previous prototype for 'delQueue' [-Wmissing-prototypes] void delQueue(Queue * qp) ^~~~~~~~ CC constrained_majorization.lo constraint.c: In function 'mapGraphs': constraint.c:145:21: warning: comparing floating point with == or != is unsafe [-Wfloat-equal] if (ED_minlen(ce) == 0.0) { ^~ In file included from /jenkins/jobs/oi-userland/workspace/components/image/graphviz/graphviz-2.40.1/lib/common/render.h:44:0, from neato.h:35, from constraint.c:17: /jenkins/jobs/oi-userland/workspace/components/image/graphviz/graphviz-2.40.1/lib/common/memory.h:41:62: warning: conversion to 'unsigned int' from 'int' may change the sign of the result [-Wsign-conversion] #define ALLOC(size,ptr,type) (ptr? (type*)grealloc(ptr,(size)*sizeof(type)):(type*)gmalloc((size)*sizeof(type))) ^ /jenkins/jobs/oi-userland/workspace/components/image/graphviz/graphviz-2.40.1/lib/common/types.h:261:44: note: in expansion of macro 'ALLOC' #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:146:7: note: in expansion of macro 'elist_append' elist_append(ce, ND_out(t)); ^~~~~~~~~~~~ /jenkins/jobs/oi-userland/workspace/components/image/graphviz/graphviz-2.40.1/lib/common/memory.h:41:98: warning: conversion to 'unsigned int' from 'int' may change the sign of the result [-Wsign-conversion] #define ALLOC(size,ptr,type) (ptr? (type*)grealloc(ptr,(size)*sizeof(type)):(type*)gmalloc((size)*sizeof(type))) ^ /jenkins/jobs/oi-userland/workspace/components/image/graphviz/graphviz-2.40.1/lib/common/types.h:261:44: note: in expansion of macro 'ALLOC' #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:146:7: note: in expansion of macro 'elist_append' elist_append(ce, ND_out(t)); ^~~~~~~~~~~~ /jenkins/jobs/oi-userland/workspace/components/image/graphviz/graphviz-2.40.1/lib/common/memory.h:41:62: warning: conversion to 'unsigned int' from 'int' may change the sign of the result [-Wsign-conversion] #define ALLOC(size,ptr,type) (ptr? (type*)grealloc(ptr,(size)*sizeof(type)):(type*)gmalloc((size)*sizeof(type))) ^ /jenkins/jobs/oi-userland/workspace/components/image/graphviz/graphviz-2.40.1/lib/common/types.h:261:44: note: in expansion of macro 'ALLOC' #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:147:7: note: in expansion of macro 'elist_append' elist_append(ce, ND_in(h)); ^~~~~~~~~~~~ /jenkins/jobs/oi-userland/workspace/components/image/graphviz/graphviz-2.40.1/lib/common/memory.h:41:98: warning: conversion to 'unsigned int' from 'int' may change the sign of the result [-Wsign-conversion] #define ALLOC(size,ptr,type) (ptr? (type*)grealloc(ptr,(size)*sizeof(type)):(type*)gmalloc((size)*sizeof(type))) ^ /jenkins/jobs/oi-userland/workspace/components/image/graphviz/graphviz-2.40.1/lib/common/types.h:261:44: note: in expansion of macro 'ALLOC' #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:147:7: note: in expansion of macro 'elist_append' elist_append(ce, ND_in(h)); ^~~~~~~~~~~~ constraint.c:149:19: warning: conversion to 'short unsigned int' from 'int' may alter its value [-Wconversion] ED_minlen(ce) = delta; ^~~~~ constraint.c: At top level: constraint.c:155:5: warning: "DEBUG" is not defined, evaluates to 0 [-Wundef] #if DEBUG > 1 ^~~~~ constraint.c: In function 'mkNConstraintG': constraint.c:255:18: warning: conversion to 'short unsigned int' from 'double' may alter its value [-Wfloat-conversion] ED_minlen(e) = delta; ^~~~~ In file included from /jenkins/jobs/oi-userland/workspace/components/image/graphviz/graphviz-2.40.1/lib/common/render.h:44:0, from neato.h:35, from constraint.c:17: /jenkins/jobs/oi-userland/workspace/components/image/graphviz/graphviz-2.40.1/lib/common/memory.h:41:62: warning: conversion to 'unsigned int' from 'int' may change the sign of the result [-Wsign-conversion] #define ALLOC(size,ptr,type) (ptr? (type*)grealloc(ptr,(size)*sizeof(type)):(type*)gmalloc((size)*sizeof(type))) ^ /jenkins/jobs/oi-userland/workspace/components/image/graphviz/graphviz-2.40.1/lib/common/types.h:261:44: note: in expansion of macro 'ALLOC' #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:281:6: note: in expansion of macro 'elist_append' elist_append(e, ND_out(n)); ^~~~~~~~~~~~ /jenkins/jobs/oi-userland/workspace/components/image/graphviz/graphviz-2.40.1/lib/common/memory.h:41:98: warning: conversion to 'unsigned int' from 'int' may change the sign of the result [-Wsign-conversion] #define ALLOC(size,ptr,type) (ptr? (type*)grealloc(ptr,(size)*sizeof(type)):(type*)gmalloc((size)*sizeof(type))) ^ /jenkins/jobs/oi-userland/workspace/components/image/graphviz/graphviz-2.40.1/lib/common/types.h:261:44: note: in expansion of macro 'ALLOC' #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:281:6: note: in expansion of macro 'elist_append' elist_append(e, ND_out(n)); ^~~~~~~~~~~~ /jenkins/jobs/oi-userland/workspace/components/image/graphviz/graphviz-2.40.1/lib/common/memory.h:41:62: warning: conversion to 'unsigned int' from 'int' may change the sign of the result [-Wsign-conversion] #define ALLOC(size,ptr,type) (ptr? (type*)grealloc(ptr,(size)*sizeof(type)):(type*)gmalloc((size)*sizeof(type))) ^ /jenkins/jobs/oi-userland/workspace/components/image/graphviz/graphviz-2.40.1/lib/common/types.h:261:44: note: in expansion of macro 'ALLOC' #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:282:6: note: in expansion of macro 'elist_append' elist_append(e, ND_in(aghead(e))); ^~~~~~~~~~~~ /jenkins/jobs/oi-userland/workspace/components/image/graphviz/graphviz-2.40.1/lib/common/memory.h:41:98: warning: conversion to 'unsigned int' from 'int' may change the sign of the result [-Wsign-conversion] #define ALLOC(size,ptr,type) (ptr? (type*)grealloc(ptr,(size)*sizeof(type)):(type*)gmalloc((size)*sizeof(type))) ^ /jenkins/jobs/oi-userland/workspace/components/image/graphviz/graphviz-2.40.1/lib/common/types.h:261:44: note: in expansion of macro 'ALLOC' #define elist_append(item,L) do {L.list = ALLOC(L.size + 2,L.list,edge_t*); L.list[L.size++]