Diff of the two buildlogs: -- --- b1/build.log 2024-04-11 22:25:22.930680091 +0000 +++ b2/build.log 2024-04-11 22:27:36.956972388 +0000 @@ -1,6 +1,6 @@ I: pbuilder: network access will be disabled during build -I: Current time: Thu Apr 11 10:22:46 -12 2024 -I: pbuilder-time-stamp: 1712874166 +I: Current time: Fri Apr 12 12:25:35 +14 2024 +I: pbuilder-time-stamp: 1712874335 I: Building the build Environment I: extracting base tarball [/var/cache/pbuilder/trixie-reproducible-base.tgz] I: copying local configuration @@ -25,52 +25,84 @@ dpkg-source: info: unpacking komposter_0+git20201216+ds-3.debian.tar.xz I: Not using root during the build. I: Installing the build-deps -I: user script /srv/workspace/pbuilder/18864/tmp/hooks/D02_print_environment starting +I: user script /srv/workspace/pbuilder/2405/tmp/hooks/D01_modify_environment starting +debug: Running on virt32c. +I: Changing host+domainname to test build reproducibility +I: Adding a custom variable just for the fun of it... +I: Changing /bin/sh to bash +'/bin/sh' -> '/bin/bash' +lrwxrwxrwx 1 root root 9 Apr 11 22:25 /bin/sh -> /bin/bash +I: Setting pbuilder2's login shell to /bin/bash +I: Setting pbuilder2's GECOS to second user,second room,second work-phone,second home-phone,second other +I: user script /srv/workspace/pbuilder/2405/tmp/hooks/D01_modify_environment finished +I: user script /srv/workspace/pbuilder/2405/tmp/hooks/D02_print_environment starting I: set - BUILDDIR='/build/reproducible-path' - BUILDUSERGECOS='first user,first room,first work-phone,first home-phone,first other' - BUILDUSERNAME='pbuilder1' - BUILD_ARCH='armhf' - DEBIAN_FRONTEND='noninteractive' - DEB_BUILD_OPTIONS='buildinfo=+all reproducible=+all parallel=3 ' - DISTRIBUTION='trixie' - HOME='/root' - HOST_ARCH='armhf' + BASH=/bin/sh + BASHOPTS=checkwinsize:cmdhist:complete_fullquote:extquote:force_fignore:globasciiranges:globskipdots:hostcomplete:interactive_comments:patsub_replacement:progcomp:promptvars:sourcepath + BASH_ALIASES=() + BASH_ARGC=() + BASH_ARGV=() + BASH_CMDS=() + BASH_LINENO=([0]="12" [1]="0") + BASH_LOADABLES_PATH=/usr/local/lib/bash:/usr/lib/bash:/opt/local/lib/bash:/usr/pkg/lib/bash:/opt/pkg/lib/bash:. + BASH_SOURCE=([0]="/tmp/hooks/D02_print_environment" [1]="/tmp/hooks/D02_print_environment") + BASH_VERSINFO=([0]="5" [1]="2" [2]="21" [3]="1" [4]="release" [5]="arm-unknown-linux-gnueabihf") + BASH_VERSION='5.2.21(1)-release' + BUILDDIR=/build/reproducible-path + BUILDUSERGECOS='second user,second room,second work-phone,second home-phone,second other' + BUILDUSERNAME=pbuilder2 + BUILD_ARCH=armhf + DEBIAN_FRONTEND=noninteractive + DEB_BUILD_OPTIONS='buildinfo=+all reproducible=+all parallel=4 ' + DIRSTACK=() + DISTRIBUTION=trixie + EUID=0 + FUNCNAME=([0]="Echo" [1]="main") + GROUPS=() + HOME=/root + HOSTNAME=i-capture-the-hostname + HOSTTYPE=arm + HOST_ARCH=armhf IFS=' ' - INVOCATION_ID='730f7efd40064027bce8b2c5bf6073fa' - LANG='C' - LANGUAGE='en_US:en' - LC_ALL='C' - MAIL='/var/mail/root' - OPTIND='1' - PATH='/usr/sbin:/usr/bin:/sbin:/bin:/usr/games' - PBCURRENTCOMMANDLINEOPERATION='build' - PBUILDER_OPERATION='build' - PBUILDER_PKGDATADIR='/usr/share/pbuilder' - PBUILDER_PKGLIBDIR='/usr/lib/pbuilder' - PBUILDER_SYSCONFDIR='/etc' - PPID='18864' - PS1='# ' - PS2='> ' + INVOCATION_ID=b1b4f82c8eb64261b534770d90af3999 + LANG=C + LANGUAGE=it_CH:it + LC_ALL=C + MACHTYPE=arm-unknown-linux-gnueabihf + MAIL=/var/mail/root + OPTERR=1 + OPTIND=1 + OSTYPE=linux-gnueabihf + PATH=/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/i/capture/the/path + PBCURRENTCOMMANDLINEOPERATION=build + PBUILDER_OPERATION=build + PBUILDER_PKGDATADIR=/usr/share/pbuilder + PBUILDER_PKGLIBDIR=/usr/lib/pbuilder + PBUILDER_SYSCONFDIR=/etc + PIPESTATUS=([0]="0") + POSIXLY_CORRECT=y + PPID=2405 PS4='+ ' - PWD='/' - SHELL='/bin/bash' - SHLVL='2' - SUDO_COMMAND='/usr/bin/timeout -k 18.1h 18h /usr/bin/ionice -c 3 /usr/bin/nice /usr/sbin/pbuilder --build --configfile /srv/reproducible-results/rbuild-debian/r-b-build.KLpuHhUw/pbuilderrc_p5Gg --distribution trixie --hookdir /etc/pbuilder/first-build-hooks --debbuildopts -b --basetgz /var/cache/pbuilder/trixie-reproducible-base.tgz --buildresult /srv/reproducible-results/rbuild-debian/r-b-build.KLpuHhUw/b1 --logfile b1/build.log komposter_0+git20201216+ds-3.dsc' - SUDO_GID='113' - SUDO_UID='107' - SUDO_USER='jenkins' - TERM='unknown' - TZ='/usr/share/zoneinfo/Etc/GMT+12' - USER='root' - _='/usr/bin/systemd-run' - http_proxy='http://10.0.0.15:3142/' + PWD=/ + SHELL=/bin/bash + SHELLOPTS=braceexpand:errexit:hashall:interactive-comments:posix + SHLVL=3 + SUDO_COMMAND='/usr/bin/timeout -k 24.1h 24h /usr/bin/ionice -c 3 /usr/bin/nice -n 11 /usr/bin/unshare --uts -- /usr/sbin/pbuilder --build --configfile /srv/reproducible-results/rbuild-debian/r-b-build.KLpuHhUw/pbuilderrc_Zx2B --distribution trixie --hookdir /etc/pbuilder/rebuild-hooks --debbuildopts -b --basetgz /var/cache/pbuilder/trixie-reproducible-base.tgz --buildresult /srv/reproducible-results/rbuild-debian/r-b-build.KLpuHhUw/b2 --logfile b2/build.log komposter_0+git20201216+ds-3.dsc' + SUDO_GID=113 + SUDO_UID=107 + SUDO_USER=jenkins + TERM=unknown + TZ=/usr/share/zoneinfo/Etc/GMT-14 + UID=0 + USER=root + _='I: set' + http_proxy=http://10.0.0.15:3142/ I: uname -a - Linux virt64c 6.1.0-18-arm64 #1 SMP Debian 6.1.76-1 (2024-02-01) aarch64 GNU/Linux + Linux i-capture-the-hostname 6.1.0-18-armmp-lpae #1 SMP Debian 6.1.76-1 (2024-02-01) armv7l GNU/Linux I: ls -l /bin - lrwxrwxrwx 1 root root 7 Apr 10 11:25 /bin -> usr/bin -I: user script /srv/workspace/pbuilder/18864/tmp/hooks/D02_print_environment finished + lrwxrwxrwx 1 root root 7 Apr 9 11:24 /bin -> usr/bin +I: user script /srv/workspace/pbuilder/2405/tmp/hooks/D02_print_environment finished -> Attempting to satisfy build-dependencies -> Creating pbuilder-satisfydepends-dummy package Package: pbuilder-satisfydepends-dummy @@ -814,7 +846,11 @@ Building tag database... -> Finished parsing the build-deps I: Building the package -I: Running cd /build/reproducible-path/komposter-0+git20201216+ds/ && env PATH="/usr/sbin:/usr/bin:/sbin:/bin:/usr/games" HOME="/nonexistent/first-build" dpkg-buildpackage -us -uc -b && env PATH="/usr/sbin:/usr/bin:/sbin:/bin:/usr/games" HOME="/nonexistent/first-build" dpkg-genchanges -S > ../komposter_0+git20201216+ds-3_source.changes +I: user script /srv/workspace/pbuilder/2405/tmp/hooks/A99_set_merged_usr starting +Not re-configuring usrmerge for trixie +I: user script /srv/workspace/pbuilder/2405/tmp/hooks/A99_set_merged_usr finished +hostname: Name or service not known +I: Running cd /build/reproducible-path/komposter-0+git20201216+ds/ && env PATH="/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/i/capture/the/path" HOME="/nonexistent/second-build" dpkg-buildpackage -us -uc -b && env PATH="/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/i/capture/the/path" HOME="/nonexistent/second-build" dpkg-genchanges -S > ../komposter_0+git20201216+ds-3_source.changes dpkg-buildpackage: info: source package komposter dpkg-buildpackage: info: source version 0+git20201216+ds-3 dpkg-buildpackage: info: source distribution unstable @@ -1003,22 +1039,17 @@ sed -i s,-march=native,,g Makefile ln -sf /usr/share/fonts/opentype/ferrite-core/FerriteCoreDX-Medium.otf resources/m42.TTF dh_auto_build - make -j3 + make -j4 make[2]: Entering directory '/build/reproducible-path/komposter-0+git20201216+ds' gcc -DPACKAGE_NAME=\"komposter\" -DPACKAGE_TARNAME=\"komposter\" -DPACKAGE_VERSION=\"2.0.0\" -DPACKAGE_STRING=\"komposter\ 2.0.0\" -DPACKAGE_BUGREPORT=\"email\" -DPACKAGE_URL=\"\" -DPACKAGE=\"komposter\" -DVERSION=\"2.0.0\" -DSTDC_HEADERS=1 -DHAVE_SYS_TYPES_H=1 -DHAVE_SYS_STAT_H=1 -DHAVE_STDLIB_H=1 -DHAVE_STRING_H=1 -DHAVE_MEMORY_H=1 -DHAVE_STRINGS_H=1 -DHAVE_INTTYPES_H=1 -DHAVE_STDINT_H=1 -DHAVE_UNISTD_H=1 -DENABLE_FREETYPE=1 -DHAVE_LIBGLUT=1 -DENABLE_GLUT=1 -DENABLE_OPENAL=1 -DHAVE_LIBGL=1 -DHAVE_LIBGLU=1 -DENABLE_OPENGL=1 -DHAVE_LIBM=1 -DHAVE_LIBPTHREAD=1 -I. -DRESOURCEPATH=\"/usr/share/komposter/\" -Wdate-time -D_FORTIFY_SOURCE=2 -I/usr/local/include -g -O2 -ffile-prefix-map=/build/reproducible-path/komposter-0+git20201216+ds=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -Wall -pedantic -O3 -fcx-limited-range -ffinite-math-only -fno-math-errno -fno-rounding-math -fno-signaling-nans -fno-trapping-math -fgcse-las -fgcse-sm -fsee -fsingle-precision-constant -fomit-frame-pointer -Wcast-align -Wconversion -Wdisabled-optimization -Wextra -Winit-self -Winvalid-pch -Wmissing-format-attribute -Wmissing-include-dirs -Wmissing-noreturn -Wno-multichar -Wpacked -Wredundant-decls -Wshadow -Wswitch-default -Wundef -Wwrite-strings -Wbad-function-cast -Wmissing-declarations -Wmissing-prototypes -Wnested-externs -Wold-style-definition -Wstrict-prototypes -ftracer -fweb -pipe -Werror-implicit-function-declaration -I/usr/include/freetype2 -I/usr/include/libpng16 -I/usr/include/AL -c -o about.o about.c gcc -DPACKAGE_NAME=\"komposter\" -DPACKAGE_TARNAME=\"komposter\" -DPACKAGE_VERSION=\"2.0.0\" -DPACKAGE_STRING=\"komposter\ 2.0.0\" -DPACKAGE_BUGREPORT=\"email\" -DPACKAGE_URL=\"\" -DPACKAGE=\"komposter\" -DVERSION=\"2.0.0\" -DSTDC_HEADERS=1 -DHAVE_SYS_TYPES_H=1 -DHAVE_SYS_STAT_H=1 -DHAVE_STDLIB_H=1 -DHAVE_STRING_H=1 -DHAVE_MEMORY_H=1 -DHAVE_STRINGS_H=1 -DHAVE_INTTYPES_H=1 -DHAVE_STDINT_H=1 -DHAVE_UNISTD_H=1 -DENABLE_FREETYPE=1 -DHAVE_LIBGLUT=1 -DENABLE_GLUT=1 -DENABLE_OPENAL=1 -DHAVE_LIBGL=1 -DHAVE_LIBGLU=1 -DENABLE_OPENGL=1 -DHAVE_LIBM=1 -DHAVE_LIBPTHREAD=1 -I. -DRESOURCEPATH=\"/usr/share/komposter/\" -Wdate-time -D_FORTIFY_SOURCE=2 -I/usr/local/include -g -O2 -ffile-prefix-map=/build/reproducible-path/komposter-0+git20201216+ds=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -Wall -pedantic -O3 -fcx-limited-range -ffinite-math-only -fno-math-errno -fno-rounding-math -fno-signaling-nans -fno-trapping-math -fgcse-las -fgcse-sm -fsee -fsingle-precision-constant -fomit-frame-pointer -Wcast-align -Wconversion -Wdisabled-optimization -Wextra -Winit-self -Winvalid-pch -Wmissing-format-attribute -Wmissing-include-dirs -Wmissing-noreturn -Wno-multichar -Wpacked -Wredundant-decls -Wshadow -Wswitch-default -Wundef -Wwrite-strings -Wbad-function-cast -Wmissing-declarations -Wmissing-prototypes -Wnested-externs -Wold-style-definition -Wstrict-prototypes -ftracer -fweb -pipe -Werror-implicit-function-declaration -I/usr/include/freetype2 -I/usr/include/libpng16 -I/usr/include/AL -c -o audio.o audio.c gcc -DPACKAGE_NAME=\"komposter\" -DPACKAGE_TARNAME=\"komposter\" -DPACKAGE_VERSION=\"2.0.0\" -DPACKAGE_STRING=\"komposter\ 2.0.0\" -DPACKAGE_BUGREPORT=\"email\" -DPACKAGE_URL=\"\" -DPACKAGE=\"komposter\" -DVERSION=\"2.0.0\" -DSTDC_HEADERS=1 -DHAVE_SYS_TYPES_H=1 -DHAVE_SYS_STAT_H=1 -DHAVE_STDLIB_H=1 -DHAVE_STRING_H=1 -DHAVE_MEMORY_H=1 -DHAVE_STRINGS_H=1 -DHAVE_INTTYPES_H=1 -DHAVE_STDINT_H=1 -DHAVE_UNISTD_H=1 -DENABLE_FREETYPE=1 -DHAVE_LIBGLUT=1 -DENABLE_GLUT=1 -DENABLE_OPENAL=1 -DHAVE_LIBGL=1 -DHAVE_LIBGLU=1 -DENABLE_OPENGL=1 -DHAVE_LIBM=1 -DHAVE_LIBPTHREAD=1 -I. -DRESOURCEPATH=\"/usr/share/komposter/\" -Wdate-time -D_FORTIFY_SOURCE=2 -I/usr/local/include -g -O2 -ffile-prefix-map=/build/reproducible-path/komposter-0+git20201216+ds=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -Wall -pedantic -O3 -fcx-limited-range -ffinite-math-only -fno-math-errno -fno-rounding-math -fno-signaling-nans -fno-trapping-math -fgcse-las -fgcse-sm -fsee -fsingle-precision-constant -fomit-frame-pointer -Wcast-align -Wconversion -Wdisabled-optimization -Wextra -Winit-self -Winvalid-pch -Wmissing-format-attribute -Wmissing-include-dirs -Wmissing-noreturn -Wno-multichar -Wpacked -Wredundant-decls -Wshadow -Wswitch-default -Wundef -Wwrite-strings -Wbad-function-cast -Wmissing-declarations -Wmissing-prototypes -Wnested-externs -Wold-style-definition -Wstrict-prototypes -ftracer -fweb -pipe -Werror-implicit-function-declaration -I/usr/include/freetype2 -I/usr/include/libpng16 -I/usr/include/AL -c -o bezier.o bezier.c +gcc -DPACKAGE_NAME=\"komposter\" -DPACKAGE_TARNAME=\"komposter\" -DPACKAGE_VERSION=\"2.0.0\" -DPACKAGE_STRING=\"komposter\ 2.0.0\" -DPACKAGE_BUGREPORT=\"email\" -DPACKAGE_URL=\"\" -DPACKAGE=\"komposter\" -DVERSION=\"2.0.0\" -DSTDC_HEADERS=1 -DHAVE_SYS_TYPES_H=1 -DHAVE_SYS_STAT_H=1 -DHAVE_STDLIB_H=1 -DHAVE_STRING_H=1 -DHAVE_MEMORY_H=1 -DHAVE_STRINGS_H=1 -DHAVE_INTTYPES_H=1 -DHAVE_STDINT_H=1 -DHAVE_UNISTD_H=1 -DENABLE_FREETYPE=1 -DHAVE_LIBGLUT=1 -DENABLE_GLUT=1 -DENABLE_OPENAL=1 -DHAVE_LIBGL=1 -DHAVE_LIBGLU=1 -DENABLE_OPENGL=1 -DHAVE_LIBM=1 -DHAVE_LIBPTHREAD=1 -I. -DRESOURCEPATH=\"/usr/share/komposter/\" -Wdate-time -D_FORTIFY_SOURCE=2 -I/usr/local/include -g -O2 -ffile-prefix-map=/build/reproducible-path/komposter-0+git20201216+ds=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -Wall -pedantic -O3 -fcx-limited-range -ffinite-math-only -fno-math-errno -fno-rounding-math -fno-signaling-nans -fno-trapping-math -fgcse-las -fgcse-sm -fsee -fsingle-precision-constant -fomit-frame-pointer -Wcast-align -Wconversion -Wdisabled-optimization -Wextra -Winit-self -Winvalid-pch -Wmissing-format-attribute -Wmissing-include-dirs -Wmissing-noreturn -Wno-multichar -Wpacked -Wredundant-decls -Wshadow -Wswitch-default -Wundef -Wwrite-strings -Wbad-function-cast -Wmissing-declarations -Wmissing-prototypes -Wnested-externs -Wold-style-definition -Wstrict-prototypes -ftracer -fweb -pipe -Werror-implicit-function-declaration -I/usr/include/freetype2 -I/usr/include/libpng16 -I/usr/include/AL -c -o buffermm.o buffermm.c In file included from about.h:16, from about.c:13: arch.h:15:5: warning: "__x86_64__" is not defined, evaluates to 0 [-Wundef] 15 | #if __x86_64__ | ^~~~~~~~~~ -In file included from audio.h:16, - from audio.c:16: -arch.h:15:5: warning: "__x86_64__" is not defined, evaluates to 0 [-Wundef] - 15 | #if __x86_64__ - | ^~~~~~~~~~ -gcc -DPACKAGE_NAME=\"komposter\" -DPACKAGE_TARNAME=\"komposter\" -DPACKAGE_VERSION=\"2.0.0\" -DPACKAGE_STRING=\"komposter\ 2.0.0\" -DPACKAGE_BUGREPORT=\"email\" -DPACKAGE_URL=\"\" -DPACKAGE=\"komposter\" -DVERSION=\"2.0.0\" -DSTDC_HEADERS=1 -DHAVE_SYS_TYPES_H=1 -DHAVE_SYS_STAT_H=1 -DHAVE_STDLIB_H=1 -DHAVE_STRING_H=1 -DHAVE_MEMORY_H=1 -DHAVE_STRINGS_H=1 -DHAVE_INTTYPES_H=1 -DHAVE_STDINT_H=1 -DHAVE_UNISTD_H=1 -DENABLE_FREETYPE=1 -DHAVE_LIBGLUT=1 -DENABLE_GLUT=1 -DENABLE_OPENAL=1 -DHAVE_LIBGL=1 -DHAVE_LIBGLU=1 -DENABLE_OPENGL=1 -DHAVE_LIBM=1 -DHAVE_LIBPTHREAD=1 -I. -DRESOURCEPATH=\"/usr/share/komposter/\" -Wdate-time -D_FORTIFY_SOURCE=2 -I/usr/local/include -g -O2 -ffile-prefix-map=/build/reproducible-path/komposter-0+git20201216+ds=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -Wall -pedantic -O3 -fcx-limited-range -ffinite-math-only -fno-math-errno -fno-rounding-math -fno-signaling-nans -fno-trapping-math -fgcse-las -fgcse-sm -fsee -fsingle-precision-constant -fomit-frame-pointer -Wcast-align -Wconversion -Wdisabled-optimization -Wextra -Winit-self -Winvalid-pch -Wmissing-format-attribute -Wmissing-include-dirs -Wmissing-noreturn -Wno-multichar -Wpacked -Wredundant-decls -Wshadow -Wswitch-default -Wundef -Wwrite-strings -Wbad-function-cast -Wmissing-declarations -Wmissing-prototypes -Wnested-externs -Wold-style-definition -Wstrict-prototypes -ftracer -fweb -pipe -Werror-implicit-function-declaration -I/usr/include/freetype2 -I/usr/include/libpng16 -I/usr/include/AL -c -o buffermm.o buffermm.c In file included from buffermm.h:16, from buffermm.c:13: modules.h:152:1: warning: function declaration isn't a prototype [-Wstrict-prototypes] @@ -1029,6 +1060,17 @@ arch.h:15:5: warning: "__x86_64__" is not defined, evaluates to 0 [-Wundef] 15 | #if __x86_64__ | ^~~~~~~~~~ +In file included from audio.h:16, + from audio.c:16: +arch.h:15:5: warning: "__x86_64__" is not defined, evaluates to 0 [-Wundef] + 15 | #if __x86_64__ + | ^~~~~~~~~~ +gcc -DPACKAGE_NAME=\"komposter\" -DPACKAGE_TARNAME=\"komposter\" -DPACKAGE_VERSION=\"2.0.0\" -DPACKAGE_STRING=\"komposter\ 2.0.0\" -DPACKAGE_BUGREPORT=\"email\" -DPACKAGE_URL=\"\" -DPACKAGE=\"komposter\" -DVERSION=\"2.0.0\" -DSTDC_HEADERS=1 -DHAVE_SYS_TYPES_H=1 -DHAVE_SYS_STAT_H=1 -DHAVE_STDLIB_H=1 -DHAVE_STRING_H=1 -DHAVE_MEMORY_H=1 -DHAVE_STRINGS_H=1 -DHAVE_INTTYPES_H=1 -DHAVE_STDINT_H=1 -DHAVE_UNISTD_H=1 -DENABLE_FREETYPE=1 -DHAVE_LIBGLUT=1 -DENABLE_GLUT=1 -DENABLE_OPENAL=1 -DHAVE_LIBGL=1 -DHAVE_LIBGLU=1 -DENABLE_OPENGL=1 -DHAVE_LIBM=1 -DHAVE_LIBPTHREAD=1 -I. -DRESOURCEPATH=\"/usr/share/komposter/\" -Wdate-time -D_FORTIFY_SOURCE=2 -I/usr/local/include -g -O2 -ffile-prefix-map=/build/reproducible-path/komposter-0+git20201216+ds=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -Wall -pedantic -O3 -fcx-limited-range -ffinite-math-only -fno-math-errno -fno-rounding-math -fno-signaling-nans -fno-trapping-math -fgcse-las -fgcse-sm -fsee -fsingle-precision-constant -fomit-frame-pointer -Wcast-align -Wconversion -Wdisabled-optimization -Wextra -Winit-self -Winvalid-pch -Wmissing-format-attribute -Wmissing-include-dirs -Wmissing-noreturn -Wno-multichar -Wpacked -Wredundant-decls -Wshadow -Wswitch-default -Wundef -Wwrite-strings -Wbad-function-cast -Wmissing-declarations -Wmissing-prototypes -Wnested-externs -Wold-style-definition -Wstrict-prototypes -ftracer -fweb -pipe -Werror-implicit-function-declaration -I/usr/include/freetype2 -I/usr/include/libpng16 -I/usr/include/AL -c -o console.o console.c +In file included from console.h:16, + from console.c:12: +arch.h:15:5: warning: "__x86_64__" is not defined, evaluates to 0 [-Wundef] + 15 | #if __x86_64__ + | ^~~~~~~~~~ In file included from widgets.h:20, from dialog.h:16, from about.h:17: @@ -1101,7 +1143,17 @@ arch.h:15:5: warning: "__x86_64__" is not defined, evaluates to 0 [-Wundef] 15 | #if __x86_64__ | ^~~~~~~~~~ -gcc -DPACKAGE_NAME=\"komposter\" -DPACKAGE_TARNAME=\"komposter\" -DPACKAGE_VERSION=\"2.0.0\" -DPACKAGE_STRING=\"komposter\ 2.0.0\" -DPACKAGE_BUGREPORT=\"email\" -DPACKAGE_URL=\"\" -DPACKAGE=\"komposter\" -DVERSION=\"2.0.0\" -DSTDC_HEADERS=1 -DHAVE_SYS_TYPES_H=1 -DHAVE_SYS_STAT_H=1 -DHAVE_STDLIB_H=1 -DHAVE_STRING_H=1 -DHAVE_MEMORY_H=1 -DHAVE_STRINGS_H=1 -DHAVE_INTTYPES_H=1 -DHAVE_STDINT_H=1 -DHAVE_UNISTD_H=1 -DENABLE_FREETYPE=1 -DHAVE_LIBGLUT=1 -DENABLE_GLUT=1 -DENABLE_OPENAL=1 -DHAVE_LIBGL=1 -DHAVE_LIBGLU=1 -DENABLE_OPENGL=1 -DHAVE_LIBM=1 -DHAVE_LIBPTHREAD=1 -I. -DRESOURCEPATH=\"/usr/share/komposter/\" -Wdate-time -D_FORTIFY_SOURCE=2 -I/usr/local/include -g -O2 -ffile-prefix-map=/build/reproducible-path/komposter-0+git20201216+ds=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -Wall -pedantic -O3 -fcx-limited-range -ffinite-math-only -fno-math-errno -fno-rounding-math -fno-signaling-nans -fno-trapping-math -fgcse-las -fgcse-sm -fsee -fsingle-precision-constant -fomit-frame-pointer -Wcast-align -Wconversion -Wdisabled-optimization -Wextra -Winit-self -Winvalid-pch -Wmissing-format-attribute -Wmissing-include-dirs -Wmissing-noreturn -Wno-multichar -Wpacked -Wredundant-decls -Wshadow -Wswitch-default -Wundef -Wwrite-strings -Wbad-function-cast -Wmissing-declarations -Wmissing-prototypes -Wnested-externs -Wold-style-definition -Wstrict-prototypes -ftracer -fweb -pipe -Werror-implicit-function-declaration -I/usr/include/freetype2 -I/usr/include/libpng16 -I/usr/include/AL -c -o console.o console.c +gcc -DPACKAGE_NAME=\"komposter\" -DPACKAGE_TARNAME=\"komposter\" -DPACKAGE_VERSION=\"2.0.0\" -DPACKAGE_STRING=\"komposter\ 2.0.0\" -DPACKAGE_BUGREPORT=\"email\" -DPACKAGE_URL=\"\" -DPACKAGE=\"komposter\" -DVERSION=\"2.0.0\" -DSTDC_HEADERS=1 -DHAVE_SYS_TYPES_H=1 -DHAVE_SYS_STAT_H=1 -DHAVE_STDLIB_H=1 -DHAVE_STRING_H=1 -DHAVE_MEMORY_H=1 -DHAVE_STRINGS_H=1 -DHAVE_INTTYPES_H=1 -DHAVE_STDINT_H=1 -DHAVE_UNISTD_H=1 -DENABLE_FREETYPE=1 -DHAVE_LIBGLUT=1 -DENABLE_GLUT=1 -DENABLE_OPENAL=1 -DHAVE_LIBGL=1 -DHAVE_LIBGLU=1 -DENABLE_OPENGL=1 -DHAVE_LIBM=1 -DHAVE_LIBPTHREAD=1 -I. -DRESOURCEPATH=\"/usr/share/komposter/\" -Wdate-time -D_FORTIFY_SOURCE=2 -I/usr/local/include -g -O2 -ffile-prefix-map=/build/reproducible-path/komposter-0+git20201216+ds=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -Wall -pedantic -O3 -fcx-limited-range -ffinite-math-only -fno-math-errno -fno-rounding-math -fno-signaling-nans -fno-trapping-math -fgcse-las -fgcse-sm -fsee -fsingle-precision-constant -fomit-frame-pointer -Wcast-align -Wconversion -Wdisabled-optimization -Wextra -Winit-self -Winvalid-pch -Wmissing-format-attribute -Wmissing-include-dirs -Wmissing-noreturn -Wno-multichar -Wpacked -Wredundant-decls -Wshadow -Wswitch-default -Wundef -Wwrite-strings -Wbad-function-cast -Wmissing-declarations -Wmissing-prototypes -Wnested-externs -Wold-style-definition -Wstrict-prototypes -ftracer -fweb -pipe -Werror-implicit-function-declaration -I/usr/include/freetype2 -I/usr/include/libpng16 -I/usr/include/AL -c -o dialog.o dialog.c +In file included from widgets.h:20, + from pattern.h:22: +arch.h:15:5: warning: "__x86_64__" is not defined, evaluates to 0 [-Wundef] + 15 | #if __x86_64__ + | ^~~~~~~~~~ +In file included from font.h:16, + from console.h:17: +arch.h:15:5: warning: "__x86_64__" is not defined, evaluates to 0 [-Wundef] + 15 | #if __x86_64__ + | ^~~~~~~~~~ In file included from audio.h:16, from pattern.h:18: arch.h:15:5: warning: "__x86_64__" is not defined, evaluates to 0 [-Wundef] @@ -1120,16 +1172,6 @@ arch.h:15:5: warning: "__x86_64__" is not defined, evaluates to 0 [-Wundef] 15 | #if __x86_64__ | ^~~~~~~~~~ -In file included from widgets.h:20, - from pattern.h:22: -arch.h:15:5: warning: "__x86_64__" is not defined, evaluates to 0 [-Wundef] - 15 | #if __x86_64__ - | ^~~~~~~~~~ -In file included from console.h:16, - from console.c:12: -arch.h:15:5: warning: "__x86_64__" is not defined, evaluates to 0 [-Wundef] - 15 | #if __x86_64__ - | ^~~~~~~~~~ In file included from synthesizer.h:23, from buffermm.h:18: arch.h:15:5: warning: "__x86_64__" is not defined, evaluates to 0 [-Wundef] @@ -1160,11 +1202,6 @@ fileops.h:63:5: note: previous declaration of 'synth_trace' with type 'int(int, int, int)' 63 | int synth_trace(int syn, int pm, int top); | ^~~~~~~~~~~ -In file included from widgets.h:20, - from pattern.h:22: -arch.h:15:5: warning: "__x86_64__" is not defined, evaluates to 0 [-Wundef] - 15 | #if __x86_64__ - | ^~~~~~~~~~ In file included from sequencer.h:17, from audio.c:21: arch.h:15:5: warning: "__x86_64__" is not defined, evaluates to 0 [-Wundef] @@ -1212,15 +1249,28 @@ audio.c:321:65: warning: conversion to 'size_t' {aka 'unsigned int'} from 'long int' may change the sign of the result [-Wsign-conversion] 321 | memcpy(buffer, &render_buffer[render_playpos*2], copylen*4); | ~~~~~~~^~ +console.c: In function 'console_print': audio.c:325:58: warning: conversion to 'size_t' {aka 'unsigned int'} from 'long int' may change the sign of the result [-Wsign-conversion] 325 | memset(&buffer[copylen], 0, (bufferlen-copylen)*4); | ~~~~~~~~~~~~~~~~~~~^~ audio.c:334:65: warning: conversion to 'size_t' {aka 'unsigned int'} from 'long int' may change the sign of the result [-Wsign-conversion] 334 | memcpy(buffer, &render_buffer[render_playpos*2], copylen*4); | ~~~~~~~^~ +console.c:44:33: warning: conversion from 'int' to 'float' may change value [-Wconversion] + 44 | render_text(backlog[logptr], x+1, y+1, 2, ((unsigned char)(a)<<24)|0x00000000, 0); + | ~^~ +console.c:44:38: warning: conversion from 'int' to 'float' may change value [-Wconversion] + 44 | render_text(backlog[logptr], x+1, y+1, 2, ((unsigned char)(a)<<24)|0x00000000, 0); + | ~^~ audio.c:360:21: warning: conversion to 'long unsigned int' from 'int' may change the sign of the result [-Wsign-conversion] 360 | ticks=playpos / (OUTPUTFREQ/(bpm*256/60)); // calc tick from sample index | ^ +console.c:45:32: warning: conversion from 'int' to 'float' may change value [-Wconversion] + 45 | render_text(backlog[logptr], x, y, 2, ((unsigned char)(a)<<24)|0x00b05500, 0); + | ^ +console.c:45:35: warning: conversion from 'int' to 'float' may change value [-Wconversion] + 45 | render_text(backlog[logptr], x, y, 2, ((unsigned char)(a)<<24)|0x00b05500, 0); + | ^ audio.c:360:13: warning: conversion to 'long int' from 'long unsigned int' may change the sign of the result [-Wsign-conversion] 360 | ticks=playpos / (OUTPUTFREQ/(bpm*256/60)); // calc tick from sample index | ^~~~~~~ @@ -1277,21 +1327,9 @@ audio.c:544:47: warning: conversion from 'int' to 'unsigned char' may change value [-Wconversion] 544 | output[voice][mi]=mod_functable[mt](voice, &modulator[voice][mi], (void*)&localdata[voice][mi], (float*)&signals); | ^~~~~ -In file included from synthesizer.h:23, - from buffermm.h:18: -arch.h:15:5: warning: "__x86_64__" is not defined, evaluates to 0 [-Wundef] - 15 | #if __x86_64__ - | ^~~~~~~~~~ audio.c:555:42: warning: conversion from 'double' to 'float' may change value [-Wfloat-conversion] 555 | if (fabs(p) > audio_peak) audio_peak=fabs(p); | ^~~~ -In file included from synthesizer.h:29: -dotfile.h:16:1: warning: function declaration isn't a prototype [-Wstrict-prototypes] - 16 | int dotfile_load(); - | ^~~ -dotfile.h:17:1: warning: function declaration isn't a prototype [-Wstrict-prototypes] - 17 | int dotfile_save(); - | ^~~ audio.c:556:56: warning: conversion from 'double' to 'float' may change value [-Wfloat-conversion] 556 | if (fabs(p) > audio_latest_peak) audio_latest_peak=fabs(p); | ^~~~ @@ -1299,11 +1337,6 @@ audio.c:652:65: warning: conversion to 'unsigned int' from 'int' may change the sign of the result [-Wsign-conversion] 652 | if (lbuf) memset(lbuf, 0, modDataBufferLength[MOD_DELAY]*sizeof(float)); | ^ -In file included from filedialog.h:22, - from synthesizer.h:30: -arch.h:15:5: warning: "__x86_64__" is not defined, evaluates to 0 [-Wundef] - 15 | #if __x86_64__ - | ^~~~~~~~~~ audio.c:107:26: warning: cast increases required alignment of target type [-Wcast-align] 107 | #define mod_ddata(v,m) ((double*)localdata[v][m]) | ^ @@ -1325,6 +1358,41 @@ audio.c:722:19: warning: conversion to 'unsigned int' from 'long int' may change the sign of the result [-Wsign-conversion] 722 | w.wav_chunksize=36+render_bufferlen*2*2; | ^~ +audio.c:723:23: warning: conversion to 'long unsigned int' from 'long int' may change the sign of the result [-Wsign-conversion] + 723 | w.wav_sub2chunksize=render_bufferlen*2*2; + | ^~~~~~~~~~~~~~~~ +audio.c:727:56: warning: conversion to 'size_t' {aka 'unsigned int'} from 'long int' may change the sign of the result [-Wsign-conversion] + 727 | fwrite(render_buffer, sizeof(short), render_bufferlen*2, f); + | ~~~~~~~~~~~~~~~~^~ +In file included from widgets.h:20, + from dialog.h:16, + from dialog.c:13: +arch.h:15:5: warning: "__x86_64__" is not defined, evaluates to 0 [-Wundef] + 15 | #if __x86_64__ + | ^~~~~~~~~~ +In file included from widgets.h:20, + from pattern.h:22: +arch.h:15:5: warning: "__x86_64__" is not defined, evaluates to 0 [-Wundef] + 15 | #if __x86_64__ + | ^~~~~~~~~~ +gcc -DPACKAGE_NAME=\"komposter\" -DPACKAGE_TARNAME=\"komposter\" -DPACKAGE_VERSION=\"2.0.0\" -DPACKAGE_STRING=\"komposter\ 2.0.0\" -DPACKAGE_BUGREPORT=\"email\" -DPACKAGE_URL=\"\" -DPACKAGE=\"komposter\" -DVERSION=\"2.0.0\" -DSTDC_HEADERS=1 -DHAVE_SYS_TYPES_H=1 -DHAVE_SYS_STAT_H=1 -DHAVE_STDLIB_H=1 -DHAVE_STRING_H=1 -DHAVE_MEMORY_H=1 -DHAVE_STRINGS_H=1 -DHAVE_INTTYPES_H=1 -DHAVE_STDINT_H=1 -DHAVE_UNISTD_H=1 -DENABLE_FREETYPE=1 -DHAVE_LIBGLUT=1 -DENABLE_GLUT=1 -DENABLE_OPENAL=1 -DHAVE_LIBGL=1 -DHAVE_LIBGLU=1 -DENABLE_OPENGL=1 -DHAVE_LIBM=1 -DHAVE_LIBPTHREAD=1 -I. -DRESOURCEPATH=\"/usr/share/komposter/\" -Wdate-time -D_FORTIFY_SOURCE=2 -I/usr/local/include -g -O2 -ffile-prefix-map=/build/reproducible-path/komposter-0+git20201216+ds=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -Wall -pedantic -O3 -fcx-limited-range -ffinite-math-only -fno-math-errno -fno-rounding-math -fno-signaling-nans -fno-trapping-math -fgcse-las -fgcse-sm -fsee -fsingle-precision-constant -fomit-frame-pointer -Wcast-align -Wconversion -Wdisabled-optimization -Wextra -Winit-self -Winvalid-pch -Wmissing-format-attribute -Wmissing-include-dirs -Wmissing-noreturn -Wno-multichar -Wpacked -Wredundant-decls -Wshadow -Wswitch-default -Wundef -Wwrite-strings -Wbad-function-cast -Wmissing-declarations -Wmissing-prototypes -Wnested-externs -Wold-style-definition -Wstrict-prototypes -ftracer -fweb -pipe -Werror-implicit-function-declaration -I/usr/include/freetype2 -I/usr/include/libpng16 -I/usr/include/AL -c -o dotfile.o dotfile.c +In file included from synthesizer.h:23, + from buffermm.h:18: +arch.h:15:5: warning: "__x86_64__" is not defined, evaluates to 0 [-Wundef] + 15 | #if __x86_64__ + | ^~~~~~~~~~ +In file included from synthesizer.h:29: +dotfile.h:16:1: warning: function declaration isn't a prototype [-Wstrict-prototypes] + 16 | int dotfile_load(); + | ^~~ +dotfile.h:17:1: warning: function declaration isn't a prototype [-Wstrict-prototypes] + 17 | int dotfile_save(); + | ^~~ +In file included from filedialog.h:22, + from synthesizer.h:30: +arch.h:15:5: warning: "__x86_64__" is not defined, evaluates to 0 [-Wundef] + 15 | #if __x86_64__ + | ^~~~~~~~~~ synthesizer.h:84:6: warning: redundant redeclaration of 'synth_stackify' [-Wredundant-decls] 84 | void synth_stackify(int syn); | ^~~~~~~~~~~~~~ @@ -1338,12 +1406,6 @@ fileops.h:63:5: note: previous declaration of 'synth_trace' with type 'int(int, int, int)' 63 | int synth_trace(int syn, int pm, int top); | ^~~~~~~~~~~ -audio.c:723:23: warning: conversion to 'long unsigned int' from 'long int' may change the sign of the result [-Wsign-conversion] - 723 | w.wav_sub2chunksize=render_bufferlen*2*2; - | ^~~~~~~~~~~~~~~~ -audio.c:727:56: warning: conversion to 'size_t' {aka 'unsigned int'} from 'long int' may change the sign of the result [-Wsign-conversion] - 727 | fwrite(render_buffer, sizeof(short), render_bufferlen*2, f); - | ~~~~~~~~~~~~~~~~^~ buffermm.c: In function 'kmm_alloc': buffermm.c:97:69: warning: format '%d' expects argument of type 'int', but argument 3 has type 'long unsigned int' [-Wformat=] 97 | printf("kmm: module data buffer allocated from %08lx - len %d (%d bytes), v %d s %d mi %d mt %d\n", @@ -1377,32 +1439,6 @@ audio.c:719:3: warning: '__builtin_strncpy' output truncated before terminating nul copying 4 bytes from a string of the same length [-Wstringop-truncation] 719 | strncpy((char*)&w.wav_sub2chunkid, "data", 4); | ^ -gcc -DPACKAGE_NAME=\"komposter\" -DPACKAGE_TARNAME=\"komposter\" -DPACKAGE_VERSION=\"2.0.0\" -DPACKAGE_STRING=\"komposter\ 2.0.0\" -DPACKAGE_BUGREPORT=\"email\" -DPACKAGE_URL=\"\" -DPACKAGE=\"komposter\" -DVERSION=\"2.0.0\" -DSTDC_HEADERS=1 -DHAVE_SYS_TYPES_H=1 -DHAVE_SYS_STAT_H=1 -DHAVE_STDLIB_H=1 -DHAVE_STRING_H=1 -DHAVE_MEMORY_H=1 -DHAVE_STRINGS_H=1 -DHAVE_INTTYPES_H=1 -DHAVE_STDINT_H=1 -DHAVE_UNISTD_H=1 -DENABLE_FREETYPE=1 -DHAVE_LIBGLUT=1 -DENABLE_GLUT=1 -DENABLE_OPENAL=1 -DHAVE_LIBGL=1 -DHAVE_LIBGLU=1 -DENABLE_OPENGL=1 -DHAVE_LIBM=1 -DHAVE_LIBPTHREAD=1 -I. -DRESOURCEPATH=\"/usr/share/komposter/\" -Wdate-time -D_FORTIFY_SOURCE=2 -I/usr/local/include -g -O2 -ffile-prefix-map=/build/reproducible-path/komposter-0+git20201216+ds=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -Wall -pedantic -O3 -fcx-limited-range -ffinite-math-only -fno-math-errno -fno-rounding-math -fno-signaling-nans -fno-trapping-math -fgcse-las -fgcse-sm -fsee -fsingle-precision-constant -fomit-frame-pointer -Wcast-align -Wconversion -Wdisabled-optimization -Wextra -Winit-self -Winvalid-pch -Wmissing-format-attribute -Wmissing-include-dirs -Wmissing-noreturn -Wno-multichar -Wpacked -Wredundant-decls -Wshadow -Wswitch-default -Wundef -Wwrite-strings -Wbad-function-cast -Wmissing-declarations -Wmissing-prototypes -Wnested-externs -Wold-style-definition -Wstrict-prototypes -ftracer -fweb -pipe -Werror-implicit-function-declaration -I/usr/include/freetype2 -I/usr/include/libpng16 -I/usr/include/AL -c -o dialog.o dialog.c -In file included from widgets.h:20, - from dialog.h:16, - from dialog.c:13: -arch.h:15:5: warning: "__x86_64__" is not defined, evaluates to 0 [-Wundef] - 15 | #if __x86_64__ - | ^~~~~~~~~~ -In file included from font.h:16, - from console.h:17: -arch.h:15:5: warning: "__x86_64__" is not defined, evaluates to 0 [-Wundef] - 15 | #if __x86_64__ - | ^~~~~~~~~~ -console.c: In function 'console_print': -console.c:44:33: warning: conversion from 'int' to 'float' may change value [-Wconversion] - 44 | render_text(backlog[logptr], x+1, y+1, 2, ((unsigned char)(a)<<24)|0x00000000, 0); - | ~^~ -console.c:44:38: warning: conversion from 'int' to 'float' may change value [-Wconversion] - 44 | render_text(backlog[logptr], x+1, y+1, 2, ((unsigned char)(a)<<24)|0x00000000, 0); - | ~^~ -console.c:45:32: warning: conversion from 'int' to 'float' may change value [-Wconversion] - 45 | render_text(backlog[logptr], x, y, 2, ((unsigned char)(a)<<24)|0x00b05500, 0); - | ^ -console.c:45:35: warning: conversion from 'int' to 'float' may change value [-Wconversion] - 45 | render_text(backlog[logptr], x, y, 2, ((unsigned char)(a)<<24)|0x00b05500, 0); - | ^ -gcc -DPACKAGE_NAME=\"komposter\" -DPACKAGE_TARNAME=\"komposter\" -DPACKAGE_VERSION=\"2.0.0\" -DPACKAGE_STRING=\"komposter\ 2.0.0\" -DPACKAGE_BUGREPORT=\"email\" -DPACKAGE_URL=\"\" -DPACKAGE=\"komposter\" -DVERSION=\"2.0.0\" -DSTDC_HEADERS=1 -DHAVE_SYS_TYPES_H=1 -DHAVE_SYS_STAT_H=1 -DHAVE_STDLIB_H=1 -DHAVE_STRING_H=1 -DHAVE_MEMORY_H=1 -DHAVE_STRINGS_H=1 -DHAVE_INTTYPES_H=1 -DHAVE_STDINT_H=1 -DHAVE_UNISTD_H=1 -DENABLE_FREETYPE=1 -DHAVE_LIBGLUT=1 -DENABLE_GLUT=1 -DENABLE_OPENAL=1 -DHAVE_LIBGL=1 -DHAVE_LIBGLU=1 -DENABLE_OPENGL=1 -DHAVE_LIBM=1 -DHAVE_LIBPTHREAD=1 -I. -DRESOURCEPATH=\"/usr/share/komposter/\" -Wdate-time -D_FORTIFY_SOURCE=2 -I/usr/local/include -g -O2 -ffile-prefix-map=/build/reproducible-path/komposter-0+git20201216+ds=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -Wall -pedantic -O3 -fcx-limited-range -ffinite-math-only -fno-math-errno -fno-rounding-math -fno-signaling-nans -fno-trapping-math -fgcse-las -fgcse-sm -fsee -fsingle-precision-constant -fomit-frame-pointer -Wcast-align -Wconversion -Wdisabled-optimization -Wextra -Winit-self -Winvalid-pch -Wmissing-format-attribute -Wmissing-include-dirs -Wmissing-noreturn -Wno-multichar -Wpacked -Wredundant-decls -Wshadow -Wswitch-default -Wundef -Wwrite-strings -Wbad-function-cast -Wmissing-declarations -Wmissing-prototypes -Wnested-externs -Wold-style-definition -Wstrict-prototypes -ftracer -fweb -pipe -Werror-implicit-function-declaration -I/usr/include/freetype2 -I/usr/include/libpng16 -I/usr/include/AL -c -o dotfile.o dotfile.c In file included from dotfile.c:16: dotfile.h:16:1: warning: function declaration isn't a prototype [-Wstrict-prototypes] 16 | int dotfile_load(); @@ -1475,6 +1511,7 @@ arch.h:15:5: warning: "__x86_64__" is not defined, evaluates to 0 [-Wundef] 15 | #if __x86_64__ | ^~~~~~~~~~ +gcc -DPACKAGE_NAME=\"komposter\" -DPACKAGE_TARNAME=\"komposter\" -DPACKAGE_VERSION=\"2.0.0\" -DPACKAGE_STRING=\"komposter\ 2.0.0\" -DPACKAGE_BUGREPORT=\"email\" -DPACKAGE_URL=\"\" -DPACKAGE=\"komposter\" -DVERSION=\"2.0.0\" -DSTDC_HEADERS=1 -DHAVE_SYS_TYPES_H=1 -DHAVE_SYS_STAT_H=1 -DHAVE_STDLIB_H=1 -DHAVE_STRING_H=1 -DHAVE_MEMORY_H=1 -DHAVE_STRINGS_H=1 -DHAVE_INTTYPES_H=1 -DHAVE_STDINT_H=1 -DHAVE_UNISTD_H=1 -DENABLE_FREETYPE=1 -DHAVE_LIBGLUT=1 -DENABLE_GLUT=1 -DENABLE_OPENAL=1 -DHAVE_LIBGL=1 -DHAVE_LIBGLU=1 -DENABLE_OPENGL=1 -DHAVE_LIBM=1 -DHAVE_LIBPTHREAD=1 -I. -DRESOURCEPATH=\"/usr/share/komposter/\" -Wdate-time -D_FORTIFY_SOURCE=2 -I/usr/local/include -g -O2 -ffile-prefix-map=/build/reproducible-path/komposter-0+git20201216+ds=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -Wall -pedantic -O3 -fcx-limited-range -ffinite-math-only -fno-math-errno -fno-rounding-math -fno-signaling-nans -fno-trapping-math -fgcse-las -fgcse-sm -fsee -fsingle-precision-constant -fomit-frame-pointer -Wcast-align -Wconversion -Wdisabled-optimization -Wextra -Winit-self -Winvalid-pch -Wmissing-format-attribute -Wmissing-include-dirs -Wmissing-noreturn -Wno-multichar -Wpacked -Wredundant-decls -Wshadow -Wswitch-default -Wundef -Wwrite-strings -Wbad-function-cast -Wmissing-declarations -Wmissing-prototypes -Wnested-externs -Wold-style-definition -Wstrict-prototypes -ftracer -fweb -pipe -Werror-implicit-function-declaration -I/usr/include/freetype2 -I/usr/include/libpng16 -I/usr/include/AL -c -o font.o font.c In file included from widgets.h:20, from dialog.h:16, from filedialog.c:13: @@ -1482,10 +1519,145 @@ 15 | #if __x86_64__ | ^~~~~~~~~~ In file included from font.h:16, + from font.c:13: +arch.h:15:5: warning: "__x86_64__" is not defined, evaluates to 0 [-Wundef] + 15 | #if __x86_64__ + | ^~~~~~~~~~ +In file included from font.h:16, from patch.h:19: arch.h:15:5: warning: "__x86_64__" is not defined, evaluates to 0 [-Wundef] 15 | #if __x86_64__ | ^~~~~~~~~~ +In file included from font.h:16, + from widgets.h:22: +arch.h:15:5: warning: "__x86_64__" is not defined, evaluates to 0 [-Wundef] + 15 | #if __x86_64__ + | ^~~~~~~~~~ +In file included from widgets.h:23: +modules.h:152:1: warning: function declaration isn't a prototype [-Wstrict-prototypes] + 152 | void calc_supersaw_tables(); + | ^~~~ +In file included from filedialog.h:22, + from filedialog.c:14: +arch.h:15:5: warning: "__x86_64__" is not defined, evaluates to 0 [-Wundef] + 15 | #if __x86_64__ + | ^~~~~~~~~~ +filedialog.c: In function 'filedialog_draw': +filedialog.c:91:55: warning: passing argument 5 of 'draw_textbox' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] + 91 | draw_textbox((DS_WIDTH/2), (DS_HEIGHT/2), 244, 420, "", 0); + | ^~ +widgets.h:38:71: note: expected 'char *' but argument is of type 'const char *' + 38 | void draw_textbox(float x, float y, float height, float length, char *label, int type); + | ~~~~~~^~~~~ +filedialog.c:95:60: warning: passing argument 5 of 'draw_textbox' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] + 95 | draw_textbox((DS_WIDTH/2)-10, (DS_HEIGHT/2)-8, 160, 370, "", 0); + | ^~ +widgets.h:38:71: note: expected 'char *' but argument is of type 'const char *' + 38 | void draw_textbox(float x, float y, float height, float length, char *label, int type); + | ~~~~~~^~~~~ +filedialog.c:97:7: warning: conversion from 'int' to 'float' may change value [-Wconversion] + 97 | fd->sliderpos, 12, fd->g.gl_pathc, + | ~~^~~~~~~~~~~ +filedialog.c:97:29: warning: conversion from 'size_t' {aka 'unsigned int'} to 'float' may change value [-Wconversion] + 97 | fd->sliderpos, 12, fd->g.gl_pathc, + | ~~~~~^~~~~~~~~ +filedialog.c:101:13: warning: comparison of integer expressions of different signedness: 'int' and 'size_t' {aka 'unsigned int'} [-Wsign-compare] + 101 | while ( (ig.gl_pathc) && (i<(fd->sliderpos+12)) ) { + | ^ +filedialog.c:106:59: warning: conversion from 'int' to 'GLfloat' {aka 'float'} may change value [-Wconversion] + 106 | glVertex2f( ((DS_WIDTH/2)-195), ((DS_HEIGHT/2)-88) + (i-fd->sliderpos)*13); + | ~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~ +filedialog.c:107:63: warning: conversion from 'int' to 'GLfloat' {aka 'float'} may change value [-Wconversion] + 107 | glVertex2f( ((DS_WIDTH/2)-195)+370, ((DS_HEIGHT/2)-88) + (i-fd->sliderpos)*13); + | ~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~ +filedialog.c:108:85: warning: conversion from 'int' to 'GLfloat' {aka 'float'} may change value [-Wconversion] + 108 | glVertex2f( ((DS_WIDTH/2)-195)+370, ((DS_HEIGHT/2)-88) + (i-fd->sliderpos)*13+13); + | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~ +filedialog.c:109:81: warning: conversion from 'int' to 'GLfloat' {aka 'float'} may change value [-Wconversion] + 109 | glVertex2f( ((DS_WIDTH/2)-195), ((DS_HEIGHT/2)-88) + (i-fd->sliderpos)*13+13); + | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~ +filedialog.c:119:25: warning: conversion from 'int' to 'float' may change value [-Wconversion] + 119 | (DS_HEIGHT/2)-78+(i-fd->sliderpos)*13, 2, 0xcfa0a0c0, 0); + | ~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~ +filedialog.c:122:25: warning: conversion from 'int' to 'float' may change value [-Wconversion] + 122 | (DS_HEIGHT/2)-78+(i-fd->sliderpos)*13, 2, 0xcfa0a0c0, 2); + | ~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~ +filedialog.c:129:25: warning: conversion from 'int' to 'float' may change value [-Wconversion] + 129 | (DS_HEIGHT/2)-78+(i-fd->sliderpos)*13, 2, fcol, 0); + | ~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~ +filedialog.c:136:56: warning: passing argument 4 of 'draw_button' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] + 136 | draw_button((DS_WIDTH/2)+192, (DS_HEIGHT/2)+100, 16, "OK", fd->hover[FDUI_OK]); + | ^~~~ +widgets.h:37:54: note: expected 'char *' but argument is of type 'const char *' + 37 | void draw_button(float x, float y, float size, char *label, int type); + | ~~~~~~^~~~~ +filedialog.c: In function 'filedialog_hover': +filedialog.c:143:42: warning: conversion from 'int' to 'float' may change value [-Wconversion] + 143 | fd->hover[FDUI_FILENAME]=hovertest_box(x, y, (DS_WIDTH/2)+20, (DS_HEIGHT/2)+100, 16, 300); + | ^ +filedialog.c:143:45: warning: conversion from 'int' to 'float' may change value [-Wconversion] + 143 | fd->hover[FDUI_FILENAME]=hovertest_box(x, y, (DS_WIDTH/2)+20, (DS_HEIGHT/2)+100, 16, 300); + | ^ +filedialog.c:144:36: warning: conversion from 'int' to 'float' may change value [-Wconversion] + 144 | fd->hover[FDUI_OK]=hovertest_box(x, y, (DS_WIDTH/2)+192, (DS_HEIGHT/2)+100, 16, 16); + | ^ +filedialog.c:144:39: warning: conversion from 'int' to 'float' may change value [-Wconversion] + 144 | fd->hover[FDUI_OK]=hovertest_box(x, y, (DS_WIDTH/2)+192, (DS_HEIGHT/2)+100, 16, 16); + | ^ +filedialog.c:145:45: warning: conversion from 'int' to 'float' may change value [-Wconversion] + 145 | fd->hover[FDUI_VSLIDER]=hovertest_vslider(x, y, + | ^ +filedialog.c:145:48: warning: conversion from 'int' to 'float' may change value [-Wconversion] + 145 | fd->hover[FDUI_VSLIDER]=hovertest_vslider(x, y, + | ^ +filedialog.c:147:7: warning: conversion from 'int' to 'float' may change value [-Wconversion] + 147 | fd->sliderpos, 12, fd->g.gl_pathc); + | ~~^~~~~~~~~~~ +filedialog.c:147:29: warning: conversion from 'size_t' {aka 'unsigned int'} to 'float' may change value [-Wconversion] + 147 | fd->sliderpos, 12, fd->g.gl_pathc); + | ~~~~~^~~~~~~~~ +filedialog.c:150:21: warning: conversion from 'int' to 'float' may change value [-Wconversion] + 150 | if (hovertest_box(x, y, (DS_WIDTH/2)-10, (DS_HEIGHT/2)-8, 160, 370)) { + | ^ +filedialog.c:150:24: warning: conversion from 'int' to 'float' may change value [-Wconversion] + 150 | if (hovertest_box(x, y, (DS_WIDTH/2)-10, (DS_HEIGHT/2)-8, 160, 370)) { + | ^ +filedialog.c: In function 'filedialog_click': +filedialog.c:164:42: warning: conversion from 'int' to 'float' may change value [-Wconversion] + 164 | if (state==GLUT_DOWN && !hovertest_box(x, y, (DS_WIDTH/2), (DS_HEIGHT/2), 244, 420)) { dialog_close(); return; } + | ^ +filedialog.c:164:45: warning: conversion from 'int' to 'float' may change value [-Wconversion] + 164 | if (state==GLUT_DOWN && !hovertest_box(x, y, (DS_WIDTH/2), (DS_HEIGHT/2), 244, 420)) { dialog_close(); return; } + | ^ +filedialog.c:160:7: warning: variable 'r' set but not used [-Wunused-but-set-variable] + 160 | int r; + | ^ +filedialog.c: In function 'filedialog_keyboard': +filedialog.c:241:29: warning: conversion from 'int' to 'unsigned char' may change value [-Wconversion] + 241 | textbox_edit(fd->fname, key, 45); + | ^~~ +filedialog.c:259:27: warning: conversion from 'int' to 'unsigned char' may change value [-Wconversion] + 259 | textbox_edit(fd->fname, key, 45); + | ^~~ +filedialog.c: In function 'filedialog_drag': +filedialog.c:271:9: warning: conversion from 'size_t' {aka 'unsigned int'} to 'float' may change value [-Wconversion] + 271 | cip=fd->g.gl_pathc; // files total + | ^~ +filedialog.c:273:20: warning: conversion from 'int' to 'float' may change value [-Wconversion] + 273 | f= ( (cip-cos) * (y - fd->slider_yofs) ) / (sbh-slh) ; + | ^ +filedialog.c:274:39: warning: conversion from 'int' to 'float' may change value [-Wconversion] + 274 | fd->sliderpos=fd->slider_dragstart+f; + | ^ +filedialog.c:274:19: warning: conversion from 'float' to 'int' may change value [-Wfloat-conversion] + 274 | fd->sliderpos=fd->slider_dragstart+f; + | ^~ +filedialog.c:275:48: warning: conversion from 'float' to 'int' may change value [-Wfloat-conversion] + 275 | if (fd->sliderpos>(cip-cos)) fd->sliderpos=(cip-cos); + | ^ +filedialog.c:263:42: warning: unused parameter 'x' [-Wunused-parameter] + 263 | void filedialog_drag(filedialog *fd, int x, int y) + | ~~~~^ In file included from synthesizer.h:23, from patch.h:21: arch.h:15:5: warning: "__x86_64__" is not defined, evaluates to 0 [-Wundef] @@ -1582,11 +1754,6 @@ fileops.c:228:42: warning: conversion to 'size_t' {aka 'unsigned int'} from 'int' may change the sign of the result [-Wsign-conversion] 228 | memcpy(&mod[syn], &chunkdata[8+128], nm*128); | ~~^~~~ -In file included from font.h:16, - from widgets.h:22: -arch.h:15:5: warning: "__x86_64__" is not defined, evaluates to 0 [-Wundef] - 15 | #if __x86_64__ - | ^~~~~~~~~~ fileops.c: In function 'load_chunk_kbnk': fileops.c:245:27: warning: passing argument 2 of 'load_chunk' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] 245 | chunkdata=load_chunk(f, "KBNK"); @@ -1597,6 +1764,10 @@ fileops.c:253:12: warning: comparison of integer expressions of different signedness: 'int' and 'long unsigned int' [-Wsign-compare] 253 | for(p=0;pfmask, ext, 255); + | ^ fileops.c:254:16: warning: conversion to 'long unsigned int' from 'int' may change the sign of the result [-Wsign-conversion] 254 | fpos=8 + p * (128 + 3*sl*4); | ^ @@ -1638,6 +1809,18 @@ fileops.c:303:10: warning: conversion to 'long unsigned int' from 'int' may change the sign of the result [-Wsign-conversion] 303 | filepos+=seqch*seqsonglen*4; | ^~ +In file included from /usr/include/string.h:535, + from /usr/include/freetype2/freetype/config/ftstdlib.h:88, + from /usr/include/freetype2/freetype/config/ftconfig.h:41, + from /usr/include/freetype2/freetype/freetype.h:24, + from font.h:18: +In function 'strncat', + inlined from 'filedialog_open' at filedialog.c:24:3: +/usr/include/arm-linux-gnueabihf/bits/string_fortified.h:138:10: warning: '__builtin___strncat_chk' specified bound 255 equals destination size [-Wstringop-overflow=] + 138 | return __builtin___strncat_chk (__dest, __src, __len, + | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + 139 | __glibc_objsize (__dest)); + | ~~~~~~~~~~~~~~~~~~~~~~~~~ fileops.c:304:64: warning: conversion to 'long unsigned int' from 'int' may change the sign of the result [-Wsign-conversion] 304 | for(i=0;isliderpos, 12, fd->g.gl_pathc, - | ~~^~~~~~~~~~~ -filedialog.c:97:29: warning: conversion from 'size_t' {aka 'unsigned int'} to 'float' may change value [-Wconversion] - 97 | fd->sliderpos, 12, fd->g.gl_pathc, - | ~~~~~^~~~~~~~~ -filedialog.c:101:13: warning: comparison of integer expressions of different signedness: 'int' and 'size_t' {aka 'unsigned int'} [-Wsign-compare] - 101 | while ( (ig.gl_pathc) && (i<(fd->sliderpos+12)) ) { - | ^ -filedialog.c:106:59: warning: conversion from 'int' to 'GLfloat' {aka 'float'} may change value [-Wconversion] - 106 | glVertex2f( ((DS_WIDTH/2)-195), ((DS_HEIGHT/2)-88) + (i-fd->sliderpos)*13); - | ~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~ -filedialog.c:107:63: warning: conversion from 'int' to 'GLfloat' {aka 'float'} may change value [-Wconversion] - 107 | glVertex2f( ((DS_WIDTH/2)-195)+370, ((DS_HEIGHT/2)-88) + (i-fd->sliderpos)*13); - | ~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~ -filedialog.c:108:85: warning: conversion from 'int' to 'GLfloat' {aka 'float'} may change value [-Wconversion] - 108 | glVertex2f( ((DS_WIDTH/2)-195)+370, ((DS_HEIGHT/2)-88) + (i-fd->sliderpos)*13+13); - | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~ -filedialog.c:109:81: warning: conversion from 'int' to 'GLfloat' {aka 'float'} may change value [-Wconversion] - 109 | glVertex2f( ((DS_WIDTH/2)-195), ((DS_HEIGHT/2)-88) + (i-fd->sliderpos)*13+13); - | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~ -filedialog.c:119:25: warning: conversion from 'int' to 'float' may change value [-Wconversion] - 119 | (DS_HEIGHT/2)-78+(i-fd->sliderpos)*13, 2, 0xcfa0a0c0, 0); - | ~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~ -filedialog.c:122:25: warning: conversion from 'int' to 'float' may change value [-Wconversion] - 122 | (DS_HEIGHT/2)-78+(i-fd->sliderpos)*13, 2, 0xcfa0a0c0, 2); - | ~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~ -filedialog.c:129:25: warning: conversion from 'int' to 'float' may change value [-Wconversion] - 129 | (DS_HEIGHT/2)-78+(i-fd->sliderpos)*13, 2, fcol, 0); - | ~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~ -filedialog.c:136:56: warning: passing argument 4 of 'draw_button' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] - 136 | draw_button((DS_WIDTH/2)+192, (DS_HEIGHT/2)+100, 16, "OK", fd->hover[FDUI_OK]); - | ^~~~ -widgets.h:37:54: note: expected 'char *' but argument is of type 'const char *' - 37 | void draw_button(float x, float y, float size, char *label, int type); - | ~~~~~~^~~~~ -filedialog.c: In function 'filedialog_hover': -filedialog.c:143:42: warning: conversion from 'int' to 'float' may change value [-Wconversion] - 143 | fd->hover[FDUI_FILENAME]=hovertest_box(x, y, (DS_WIDTH/2)+20, (DS_HEIGHT/2)+100, 16, 300); - | ^ -filedialog.c:143:45: warning: conversion from 'int' to 'float' may change value [-Wconversion] - 143 | fd->hover[FDUI_FILENAME]=hovertest_box(x, y, (DS_WIDTH/2)+20, (DS_HEIGHT/2)+100, 16, 300); - | ^ -filedialog.c:144:36: warning: conversion from 'int' to 'float' may change value [-Wconversion] - 144 | fd->hover[FDUI_OK]=hovertest_box(x, y, (DS_WIDTH/2)+192, (DS_HEIGHT/2)+100, 16, 16); - | ^ -filedialog.c:144:39: warning: conversion from 'int' to 'float' may change value [-Wconversion] - 144 | fd->hover[FDUI_OK]=hovertest_box(x, y, (DS_WIDTH/2)+192, (DS_HEIGHT/2)+100, 16, 16); - | ^ -filedialog.c:145:45: warning: conversion from 'int' to 'float' may change value [-Wconversion] - 145 | fd->hover[FDUI_VSLIDER]=hovertest_vslider(x, y, - | ^ -filedialog.c:145:48: warning: conversion from 'int' to 'float' may change value [-Wconversion] - 145 | fd->hover[FDUI_VSLIDER]=hovertest_vslider(x, y, - | ^ -filedialog.c:147:7: warning: conversion from 'int' to 'float' may change value [-Wconversion] - 147 | fd->sliderpos, 12, fd->g.gl_pathc); - | ~~^~~~~~~~~~~ -filedialog.c:147:29: warning: conversion from 'size_t' {aka 'unsigned int'} to 'float' may change value [-Wconversion] - 147 | fd->sliderpos, 12, fd->g.gl_pathc); - | ~~~~~^~~~~~~~~ -filedialog.c:150:21: warning: conversion from 'int' to 'float' may change value [-Wconversion] - 150 | if (hovertest_box(x, y, (DS_WIDTH/2)-10, (DS_HEIGHT/2)-8, 160, 370)) { - | ^ -filedialog.c:150:24: warning: conversion from 'int' to 'float' may change value [-Wconversion] - 150 | if (hovertest_box(x, y, (DS_WIDTH/2)-10, (DS_HEIGHT/2)-8, 160, 370)) { - | ^ -filedialog.c: In function 'filedialog_click': -filedialog.c:164:42: warning: conversion from 'int' to 'float' may change value [-Wconversion] - 164 | if (state==GLUT_DOWN && !hovertest_box(x, y, (DS_WIDTH/2), (DS_HEIGHT/2), 244, 420)) { dialog_close(); return; } - | ^ -filedialog.c:164:45: warning: conversion from 'int' to 'float' may change value [-Wconversion] - 164 | if (state==GLUT_DOWN && !hovertest_box(x, y, (DS_WIDTH/2), (DS_HEIGHT/2), 244, 420)) { dialog_close(); return; } - | ^ -filedialog.c:160:7: warning: variable 'r' set but not used [-Wunused-but-set-variable] - 160 | int r; - | ^ -filedialog.c: In function 'filedialog_keyboard': -filedialog.c:241:29: warning: conversion from 'int' to 'unsigned char' may change value [-Wconversion] - 241 | textbox_edit(fd->fname, key, 45); - | ^~~ -filedialog.c:259:27: warning: conversion from 'int' to 'unsigned char' may change value [-Wconversion] - 259 | textbox_edit(fd->fname, key, 45); - | ^~~ -filedialog.c: In function 'filedialog_drag': -filedialog.c:271:9: warning: conversion from 'size_t' {aka 'unsigned int'} to 'float' may change value [-Wconversion] - 271 | cip=fd->g.gl_pathc; // files total - | ^~ -filedialog.c:273:20: warning: conversion from 'int' to 'float' may change value [-Wconversion] - 273 | f= ( (cip-cos) * (y - fd->slider_yofs) ) / (sbh-slh) ; - | ^ -filedialog.c:274:39: warning: conversion from 'int' to 'float' may change value [-Wconversion] - 274 | fd->sliderpos=fd->slider_dragstart+f; - | ^ -filedialog.c:274:19: warning: conversion from 'float' to 'int' may change value [-Wfloat-conversion] - 274 | fd->sliderpos=fd->slider_dragstart+f; - | ^~ -filedialog.c:275:48: warning: conversion from 'float' to 'int' may change value [-Wfloat-conversion] - 275 | if (fd->sliderpos>(cip-cos)) fd->sliderpos=(cip-cos); - | ^ -filedialog.c:263:42: warning: unused parameter 'x' [-Wunused-parameter] - 263 | void filedialog_drag(filedialog *fd, int x, int y) - | ~~~~^ -filedialog.c: In function 'filedialog_open': -filedialog.c:24:3: warning: '__builtin___strncat_chk' specified bound 255 equals destination size [-Wstringop-truncation] - 24 | strncat((char*)&fd->fmask, ext, 255); - | ^ -In file included from /usr/include/string.h:535, - from /usr/include/freetype2/freetype/config/ftstdlib.h:88, - from /usr/include/freetype2/freetype/config/ftconfig.h:41, - from /usr/include/freetype2/freetype/freetype.h:24, - from font.h:18: -In function 'strncat', - inlined from 'filedialog_open' at filedialog.c:24:3: -/usr/include/arm-linux-gnueabihf/bits/string_fortified.h:138:10: warning: '__builtin___strncat_chk' specified bound 255 equals destination size [-Wstringop-overflow=] - 138 | return __builtin___strncat_chk (__dest, __src, __len, - | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ - 139 | __glibc_objsize (__dest)); - | ~~~~~~~~~~~~~~~~~~~~~~~~~ filedialog.c: In function 'filedialog_draw': filedialog.c:126:7: warning: '__builtin_strncpy' specified bound 255 equals destination size [-Wstringop-truncation] 126 | strncpy(tmps, strrchr(fd->g.gl_pathv[i], '/')+1, 255); @@ -1927,65 +1969,6 @@ filedialog.c:116:7: warning: '__builtin_strncpy' specified bound 255 equals destination size [-Wstringop-truncation] 116 | strncpy(tmps, rindex(ttmps, '/')+1, 255); | ^ -filedialog.c: In function 'filedialog_click': -filedialog.c:203:9: warning: '__builtin___strncpy_chk' specified bound depends on the length of the source argument [-Wstringop-truncation] - 203 | strncpy(ttmps, fd->g.gl_pathv[fd->sliderpos+fd->listhover], strlen(fd->g.gl_pathv[fd->sliderpos+fd->listhover])-1); - | ^ -filedialog.c:203:69: note: length computed here - 203 | strncpy(ttmps, fd->g.gl_pathv[fd->sliderpos+fd->listhover], strlen(fd->g.gl_pathv[fd->sliderpos+fd->listhover])-1); - | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -filedialog.c:205:9: warning: '__builtin_strncpy' specified bound 255 equals destination size [-Wstringop-truncation] - 205 | strncpy(tmps, rindex(ttmps, '/')+1, 255); - | ^ -filedialog.c:226:9: warning: '__builtin_strncpy' specified bound 255 equals destination size [-Wstringop-truncation] - 226 | strncpy(fd->fname, strrchr(fd->g.gl_pathv[fd->sliderpos+fd->listhover], '/')+1, 255); - | ^ -filedialog.c:180:7: warning: '__builtin___strncat_chk' specified bound 512 equals destination size [-Wstringop-truncation] - 180 | strncat(fd->fullpath, fd->fmask+1, 512); - | ^ -In function 'strncat', - inlined from 'filedialog_click' at filedialog.c:177:5: -/usr/include/arm-linux-gnueabihf/bits/string_fortified.h:138:10: warning: '__builtin___strncat_chk' specified bound 512 equals destination size [-Wstringop-overflow=] - 138 | return __builtin___strncat_chk (__dest, __src, __len, - | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ - 139 | __glibc_objsize (__dest)); - | ~~~~~~~~~~~~~~~~~~~~~~~~~ -In function 'strncat', - inlined from 'filedialog_click' at filedialog.c:180:7: -/usr/include/arm-linux-gnueabihf/bits/string_fortified.h:138:10: warning: '__builtin___strncat_chk' specified bound 512 equals destination size [-Wstringop-overflow=] - 138 | return __builtin___strncat_chk (__dest, __src, __len, - | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ - 139 | __glibc_objsize (__dest)); - | ~~~~~~~~~~~~~~~~~~~~~~~~~ -gcc -DPACKAGE_NAME=\"komposter\" -DPACKAGE_TARNAME=\"komposter\" -DPACKAGE_VERSION=\"2.0.0\" -DPACKAGE_STRING=\"komposter\ 2.0.0\" -DPACKAGE_BUGREPORT=\"email\" -DPACKAGE_URL=\"\" -DPACKAGE=\"komposter\" -DVERSION=\"2.0.0\" -DSTDC_HEADERS=1 -DHAVE_SYS_TYPES_H=1 -DHAVE_SYS_STAT_H=1 -DHAVE_STDLIB_H=1 -DHAVE_STRING_H=1 -DHAVE_MEMORY_H=1 -DHAVE_STRINGS_H=1 -DHAVE_INTTYPES_H=1 -DHAVE_STDINT_H=1 -DHAVE_UNISTD_H=1 -DENABLE_FREETYPE=1 -DHAVE_LIBGLUT=1 -DENABLE_GLUT=1 -DENABLE_OPENAL=1 -DHAVE_LIBGL=1 -DHAVE_LIBGLU=1 -DENABLE_OPENGL=1 -DHAVE_LIBM=1 -DHAVE_LIBPTHREAD=1 -I. -DRESOURCEPATH=\"/usr/share/komposter/\" -Wdate-time -D_FORTIFY_SOURCE=2 -I/usr/local/include -g -O2 -ffile-prefix-map=/build/reproducible-path/komposter-0+git20201216+ds=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -Wall -pedantic -O3 -fcx-limited-range -ffinite-math-only -fno-math-errno -fno-rounding-math -fno-signaling-nans -fno-trapping-math -fgcse-las -fgcse-sm -fsee -fsingle-precision-constant -fomit-frame-pointer -Wcast-align -Wconversion -Wdisabled-optimization -Wextra -Winit-self -Winvalid-pch -Wmissing-format-attribute -Wmissing-include-dirs -Wmissing-noreturn -Wno-multichar -Wpacked -Wredundant-decls -Wshadow -Wswitch-default -Wundef -Wwrite-strings -Wbad-function-cast -Wmissing-declarations -Wmissing-prototypes -Wnested-externs -Wold-style-definition -Wstrict-prototypes -ftracer -fweb -pipe -Werror-implicit-function-declaration -I/usr/include/freetype2 -I/usr/include/libpng16 -I/usr/include/AL -c -o font.o font.c -filedialog.c: In function 'filedialog_keyboard': -filedialog.c:250:7: warning: '__builtin___strncat_chk' specified bound 512 equals destination size [-Wstringop-truncation] - 250 | strncat(fd->fullpath, fd->fmask+1, 512); - | ^ -In file included from font.h:16, - from font.c:13: -arch.h:15:5: warning: "__x86_64__" is not defined, evaluates to 0 [-Wundef] - 15 | #if __x86_64__ - | ^~~~~~~~~~ -In function 'strncat', - inlined from 'filedialog_keyboard' at filedialog.c:247:5: -/usr/include/arm-linux-gnueabihf/bits/string_fortified.h:138:10: warning: '__builtin___strncat_chk' specified bound 512 equals destination size [-Wstringop-overflow=] - 138 | return __builtin___strncat_chk (__dest, __src, __len, - | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ - 139 | __glibc_objsize (__dest)); - | ~~~~~~~~~~~~~~~~~~~~~~~~~ -In function 'strncat', - inlined from 'filedialog_keyboard' at filedialog.c:250:7: -/usr/include/arm-linux-gnueabihf/bits/string_fortified.h:138:10: warning: '__builtin___strncat_chk' specified bound 512 equals destination size [-Wstringop-overflow=] - 138 | return __builtin___strncat_chk (__dest, __src, __len, - | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ - 139 | __glibc_objsize (__dest)); - | ~~~~~~~~~~~~~~~~~~~~~~~~~ -gcc -DPACKAGE_NAME=\"komposter\" -DPACKAGE_TARNAME=\"komposter\" -DPACKAGE_VERSION=\"2.0.0\" -DPACKAGE_STRING=\"komposter\ 2.0.0\" -DPACKAGE_BUGREPORT=\"email\" -DPACKAGE_URL=\"\" -DPACKAGE=\"komposter\" -DVERSION=\"2.0.0\" -DSTDC_HEADERS=1 -DHAVE_SYS_TYPES_H=1 -DHAVE_SYS_STAT_H=1 -DHAVE_STDLIB_H=1 -DHAVE_STRING_H=1 -DHAVE_MEMORY_H=1 -DHAVE_STRINGS_H=1 -DHAVE_INTTYPES_H=1 -DHAVE_STDINT_H=1 -DHAVE_UNISTD_H=1 -DENABLE_FREETYPE=1 -DHAVE_LIBGLUT=1 -DENABLE_GLUT=1 -DENABLE_OPENAL=1 -DHAVE_LIBGL=1 -DHAVE_LIBGLU=1 -DENABLE_OPENGL=1 -DHAVE_LIBM=1 -DHAVE_LIBPTHREAD=1 -I. -DRESOURCEPATH=\"/usr/share/komposter/\" -Wdate-time -D_FORTIFY_SOURCE=2 -I/usr/local/include -g -O2 -ffile-prefix-map=/build/reproducible-path/komposter-0+git20201216+ds=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -Wall -pedantic -O3 -fcx-limited-range -ffinite-math-only -fno-math-errno -fno-rounding-math -fno-signaling-nans -fno-trapping-math -fgcse-las -fgcse-sm -fsee -fsingle-precision-constant -fomit-frame-pointer -Wcast-align -Wconversion -Wdisabled-optimization -Wextra -Winit-self -Winvalid-pch -Wmissing-format-attribute -Wmissing-include-dirs -Wmissing-noreturn -Wno-multichar -Wpacked -Wredundant-decls -Wshadow -Wswitch-default -Wundef -Wwrite-strings -Wbad-function-cast -Wmissing-declarations -Wmissing-prototypes -Wnested-externs -Wold-style-definition -Wstrict-prototypes -ftracer -fweb -pipe -Werror-implicit-function-declaration -I/usr/include/freetype2 -I/usr/include/libpng16 -I/usr/include/AL -c -o main.o main.c -In file included from main.c:27: -arch.h:15:5: warning: "__x86_64__" is not defined, evaluates to 0 [-Wundef] - 15 | #if __x86_64__ - | ^~~~~~~~~~ font.c:61:14: warning: no previous prototype for 'tpow2' [-Wmissing-prototypes] 61 | unsigned int tpow2(unsigned int x) | ^~~~~ @@ -2081,6 +2064,55 @@ font.c:194:7: warning: conversion from 'int' to 'float' may change value [-Wconversion] 194 | xp+=font_advance[fontnr][(int)text[n]]; | ^~ +filedialog.c: In function 'filedialog_click': +filedialog.c:203:9: warning: '__builtin___strncpy_chk' specified bound depends on the length of the source argument [-Wstringop-truncation] + 203 | strncpy(ttmps, fd->g.gl_pathv[fd->sliderpos+fd->listhover], strlen(fd->g.gl_pathv[fd->sliderpos+fd->listhover])-1); + | ^ +filedialog.c:203:69: note: length computed here + 203 | strncpy(ttmps, fd->g.gl_pathv[fd->sliderpos+fd->listhover], strlen(fd->g.gl_pathv[fd->sliderpos+fd->listhover])-1); + | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ +filedialog.c:205:9: warning: '__builtin_strncpy' specified bound 255 equals destination size [-Wstringop-truncation] + 205 | strncpy(tmps, rindex(ttmps, '/')+1, 255); + | ^ +filedialog.c:226:9: warning: '__builtin_strncpy' specified bound 255 equals destination size [-Wstringop-truncation] + 226 | strncpy(fd->fname, strrchr(fd->g.gl_pathv[fd->sliderpos+fd->listhover], '/')+1, 255); + | ^ +filedialog.c:180:7: warning: '__builtin___strncat_chk' specified bound 512 equals destination size [-Wstringop-truncation] + 180 | strncat(fd->fullpath, fd->fmask+1, 512); + | ^ +In function 'strncat', + inlined from 'filedialog_click' at filedialog.c:177:5: +/usr/include/arm-linux-gnueabihf/bits/string_fortified.h:138:10: warning: '__builtin___strncat_chk' specified bound 512 equals destination size [-Wstringop-overflow=] + 138 | return __builtin___strncat_chk (__dest, __src, __len, + | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + 139 | __glibc_objsize (__dest)); + | ~~~~~~~~~~~~~~~~~~~~~~~~~ +In function 'strncat', + inlined from 'filedialog_click' at filedialog.c:180:7: +/usr/include/arm-linux-gnueabihf/bits/string_fortified.h:138:10: warning: '__builtin___strncat_chk' specified bound 512 equals destination size [-Wstringop-overflow=] + 138 | return __builtin___strncat_chk (__dest, __src, __len, + | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + 139 | __glibc_objsize (__dest)); + | ~~~~~~~~~~~~~~~~~~~~~~~~~ +filedialog.c: In function 'filedialog_keyboard': +filedialog.c:250:7: warning: '__builtin___strncat_chk' specified bound 512 equals destination size [-Wstringop-truncation] + 250 | strncat(fd->fullpath, fd->fmask+1, 512); + | ^ +In function 'strncat', + inlined from 'filedialog_keyboard' at filedialog.c:247:5: +/usr/include/arm-linux-gnueabihf/bits/string_fortified.h:138:10: warning: '__builtin___strncat_chk' specified bound 512 equals destination size [-Wstringop-overflow=] + 138 | return __builtin___strncat_chk (__dest, __src, __len, + | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + 139 | __glibc_objsize (__dest)); + | ~~~~~~~~~~~~~~~~~~~~~~~~~ +In function 'strncat', + inlined from 'filedialog_keyboard' at filedialog.c:250:7: +/usr/include/arm-linux-gnueabihf/bits/string_fortified.h:138:10: warning: '__builtin___strncat_chk' specified bound 512 equals destination size [-Wstringop-overflow=] + 138 | return __builtin___strncat_chk (__dest, __src, __len, + | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + 139 | __glibc_objsize (__dest)); + | ~~~~~~~~~~~~~~~~~~~~~~~~~ +gcc -DPACKAGE_NAME=\"komposter\" -DPACKAGE_TARNAME=\"komposter\" -DPACKAGE_VERSION=\"2.0.0\" -DPACKAGE_STRING=\"komposter\ 2.0.0\" -DPACKAGE_BUGREPORT=\"email\" -DPACKAGE_URL=\"\" -DPACKAGE=\"komposter\" -DVERSION=\"2.0.0\" -DSTDC_HEADERS=1 -DHAVE_SYS_TYPES_H=1 -DHAVE_SYS_STAT_H=1 -DHAVE_STDLIB_H=1 -DHAVE_STRING_H=1 -DHAVE_MEMORY_H=1 -DHAVE_STRINGS_H=1 -DHAVE_INTTYPES_H=1 -DHAVE_STDINT_H=1 -DHAVE_UNISTD_H=1 -DENABLE_FREETYPE=1 -DHAVE_LIBGLUT=1 -DENABLE_GLUT=1 -DENABLE_OPENAL=1 -DHAVE_LIBGL=1 -DHAVE_LIBGLU=1 -DENABLE_OPENGL=1 -DHAVE_LIBM=1 -DHAVE_LIBPTHREAD=1 -I. -DRESOURCEPATH=\"/usr/share/komposter/\" -Wdate-time -D_FORTIFY_SOURCE=2 -I/usr/local/include -g -O2 -ffile-prefix-map=/build/reproducible-path/komposter-0+git20201216+ds=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -Wall -pedantic -O3 -fcx-limited-range -ffinite-math-only -fno-math-errno -fno-rounding-math -fno-signaling-nans -fno-trapping-math -fgcse-las -fgcse-sm -fsee -fsingle-precision-constant -fomit-frame-pointer -Wcast-align -Wconversion -Wdisabled-optimization -Wextra -Winit-self -Winvalid-pch -Wmissing-format-attribute -Wmissing-include-dirs -Wmissing-noreturn -Wno-multichar -Wpacked -Wredundant-decls -Wshadow -Wswitch-default -Wundef -Wwrite-strings -Wbad-function-cast -Wmissing-declarations -Wmissing-prototypes -Wnested-externs -Wold-style-definition -Wstrict-prototypes -ftracer -fweb -pipe -Werror-implicit-function-declaration -I/usr/include/freetype2 -I/usr/include/libpng16 -I/usr/include/AL -c -o main.o main.c font.c: In function 'font_init': font.c:83:5: warning: '__builtin_strncpy' output may be truncated copying 511 bytes from a string of length 511 [-Wstringop-truncation] 83 | strncpy(fullpath, respath, 511); @@ -2088,6 +2120,16 @@ font.c:84:5: warning: '__builtin___strncat_chk' output may be truncated copying 511 bytes from a string of length 2039 [-Wstringop-truncation] 84 | strncat(fullpath, fontfile[i], 511); | ^ +In file included from main.c:27: +arch.h:15:5: warning: "__x86_64__" is not defined, evaluates to 0 [-Wundef] + 15 | #if __x86_64__ + | ^~~~~~~~~~ +gcc -DPACKAGE_NAME=\"komposter\" -DPACKAGE_TARNAME=\"komposter\" -DPACKAGE_VERSION=\"2.0.0\" -DPACKAGE_STRING=\"komposter\ 2.0.0\" -DPACKAGE_BUGREPORT=\"email\" -DPACKAGE_URL=\"\" -DPACKAGE=\"komposter\" -DVERSION=\"2.0.0\" -DSTDC_HEADERS=1 -DHAVE_SYS_TYPES_H=1 -DHAVE_SYS_STAT_H=1 -DHAVE_STDLIB_H=1 -DHAVE_STRING_H=1 -DHAVE_MEMORY_H=1 -DHAVE_STRINGS_H=1 -DHAVE_INTTYPES_H=1 -DHAVE_STDINT_H=1 -DHAVE_UNISTD_H=1 -DENABLE_FREETYPE=1 -DHAVE_LIBGLUT=1 -DENABLE_GLUT=1 -DENABLE_OPENAL=1 -DHAVE_LIBGL=1 -DHAVE_LIBGLU=1 -DENABLE_OPENGL=1 -DHAVE_LIBM=1 -DHAVE_LIBPTHREAD=1 -I. -DRESOURCEPATH=\"/usr/share/komposter/\" -Wdate-time -D_FORTIFY_SOURCE=2 -I/usr/local/include -g -O2 -ffile-prefix-map=/build/reproducible-path/komposter-0+git20201216+ds=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -Wall -pedantic -O3 -fcx-limited-range -ffinite-math-only -fno-math-errno -fno-rounding-math -fno-signaling-nans -fno-trapping-math -fgcse-las -fgcse-sm -fsee -fsingle-precision-constant -fomit-frame-pointer -Wcast-align -Wconversion -Wdisabled-optimization -Wextra -Winit-self -Winvalid-pch -Wmissing-format-attribute -Wmissing-include-dirs -Wmissing-noreturn -Wno-multichar -Wpacked -Wredundant-decls -Wshadow -Wswitch-default -Wundef -Wwrite-strings -Wbad-function-cast -Wmissing-declarations -Wmissing-prototypes -Wnested-externs -Wold-style-definition -Wstrict-prototypes -ftracer -fweb -pipe -Werror-implicit-function-declaration -I/usr/include/freetype2 -I/usr/include/libpng16 -I/usr/include/AL -c -o modules.o modules.c +In file included from audio.h:16, + from modules.c:18: +arch.h:15:5: warning: "__x86_64__" is not defined, evaluates to 0 [-Wundef] + 15 | #if __x86_64__ + | ^~~~~~~~~~ In file included from about.h:16, from main.c:28: arch.h:15:5: warning: "__x86_64__" is not defined, evaluates to 0 [-Wundef] @@ -2455,18 +2497,6 @@ main.c:322:6: warning: function might be candidate for attribute 'noreturn' [-Wsuggest-attribute=noreturn] 322 | void cleanup(void) | ^~~~~~~ -gcc -DPACKAGE_NAME=\"komposter\" -DPACKAGE_TARNAME=\"komposter\" -DPACKAGE_VERSION=\"2.0.0\" -DPACKAGE_STRING=\"komposter\ 2.0.0\" -DPACKAGE_BUGREPORT=\"email\" -DPACKAGE_URL=\"\" -DPACKAGE=\"komposter\" -DVERSION=\"2.0.0\" -DSTDC_HEADERS=1 -DHAVE_SYS_TYPES_H=1 -DHAVE_SYS_STAT_H=1 -DHAVE_STDLIB_H=1 -DHAVE_STRING_H=1 -DHAVE_MEMORY_H=1 -DHAVE_STRINGS_H=1 -DHAVE_INTTYPES_H=1 -DHAVE_STDINT_H=1 -DHAVE_UNISTD_H=1 -DENABLE_FREETYPE=1 -DHAVE_LIBGLUT=1 -DENABLE_GLUT=1 -DENABLE_OPENAL=1 -DHAVE_LIBGL=1 -DHAVE_LIBGLU=1 -DENABLE_OPENGL=1 -DHAVE_LIBM=1 -DHAVE_LIBPTHREAD=1 -I. -DRESOURCEPATH=\"/usr/share/komposter/\" -Wdate-time -D_FORTIFY_SOURCE=2 -I/usr/local/include -g -O2 -ffile-prefix-map=/build/reproducible-path/komposter-0+git20201216+ds=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -Wall -pedantic -O3 -fcx-limited-range -ffinite-math-only -fno-math-errno -fno-rounding-math -fno-signaling-nans -fno-trapping-math -fgcse-las -fgcse-sm -fsee -fsingle-precision-constant -fomit-frame-pointer -Wcast-align -Wconversion -Wdisabled-optimization -Wextra -Winit-self -Winvalid-pch -Wmissing-format-attribute -Wmissing-include-dirs -Wmissing-noreturn -Wno-multichar -Wpacked -Wredundant-decls -Wshadow -Wswitch-default -Wundef -Wwrite-strings -Wbad-function-cast -Wmissing-declarations -Wmissing-prototypes -Wnested-externs -Wold-style-definition -Wstrict-prototypes -ftracer -fweb -pipe -Werror-implicit-function-declaration -I/usr/include/freetype2 -I/usr/include/libpng16 -I/usr/include/AL -c -o modules.o modules.c -In file included from audio.h:16, - from modules.c:18: -arch.h:15:5: warning: "__x86_64__" is not defined, evaluates to 0 [-Wundef] - 15 | #if __x86_64__ - | ^~~~~~~~~~ -gcc -DPACKAGE_NAME=\"komposter\" -DPACKAGE_TARNAME=\"komposter\" -DPACKAGE_VERSION=\"2.0.0\" -DPACKAGE_STRING=\"komposter\ 2.0.0\" -DPACKAGE_BUGREPORT=\"email\" -DPACKAGE_URL=\"\" -DPACKAGE=\"komposter\" -DVERSION=\"2.0.0\" -DSTDC_HEADERS=1 -DHAVE_SYS_TYPES_H=1 -DHAVE_SYS_STAT_H=1 -DHAVE_STDLIB_H=1 -DHAVE_STRING_H=1 -DHAVE_MEMORY_H=1 -DHAVE_STRINGS_H=1 -DHAVE_INTTYPES_H=1 -DHAVE_STDINT_H=1 -DHAVE_UNISTD_H=1 -DENABLE_FREETYPE=1 -DHAVE_LIBGLUT=1 -DENABLE_GLUT=1 -DENABLE_OPENAL=1 -DHAVE_LIBGL=1 -DHAVE_LIBGLU=1 -DENABLE_OPENGL=1 -DHAVE_LIBM=1 -DHAVE_LIBPTHREAD=1 -I. -DRESOURCEPATH=\"/usr/share/komposter/\" -Wdate-time -D_FORTIFY_SOURCE=2 -I/usr/local/include -g -O2 -ffile-prefix-map=/build/reproducible-path/komposter-0+git20201216+ds=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -Wall -pedantic -O3 -fcx-limited-range -ffinite-math-only -fno-math-errno -fno-rounding-math -fno-signaling-nans -fno-trapping-math -fgcse-las -fgcse-sm -fsee -fsingle-precision-constant -fomit-frame-pointer -Wcast-align -Wconversion -Wdisabled-optimization -Wextra -Winit-self -Winvalid-pch -Wmissing-format-attribute -Wmissing-include-dirs -Wmissing-noreturn -Wno-multichar -Wpacked -Wredundant-decls -Wshadow -Wswitch-default -Wundef -Wwrite-strings -Wbad-function-cast -Wmissing-declarations -Wmissing-prototypes -Wnested-externs -Wold-style-definition -Wstrict-prototypes -ftracer -fweb -pipe -Werror-implicit-function-declaration -I/usr/include/freetype2 -I/usr/include/libpng16 -I/usr/include/AL -c -o patch.o patch.c -In file included from patch.h:17, - from patch.c:13: -arch.h:15:5: warning: "__x86_64__" is not defined, evaluates to 0 [-Wundef] - 15 | #if __x86_64__ - | ^~~~~~~~~~ audio.h:56:1: warning: function declaration isn't a prototype [-Wstrict-prototypes] 56 | int audio_exportwav(); //char *filename); | ^~~ @@ -2893,6 +2923,7 @@ modules.c:584:1: note: in expansion of macro 'MODULE_FUNC' 584 | MODULE_FUNC(amp) { return ms[0]*ms[1]; } | ^~~~~~~~~~~ +gcc -DPACKAGE_NAME=\"komposter\" -DPACKAGE_TARNAME=\"komposter\" -DPACKAGE_VERSION=\"2.0.0\" -DPACKAGE_STRING=\"komposter\ 2.0.0\" -DPACKAGE_BUGREPORT=\"email\" -DPACKAGE_URL=\"\" -DPACKAGE=\"komposter\" -DVERSION=\"2.0.0\" -DSTDC_HEADERS=1 -DHAVE_SYS_TYPES_H=1 -DHAVE_SYS_STAT_H=1 -DHAVE_STDLIB_H=1 -DHAVE_STRING_H=1 -DHAVE_MEMORY_H=1 -DHAVE_STRINGS_H=1 -DHAVE_INTTYPES_H=1 -DHAVE_STDINT_H=1 -DHAVE_UNISTD_H=1 -DENABLE_FREETYPE=1 -DHAVE_LIBGLUT=1 -DENABLE_GLUT=1 -DENABLE_OPENAL=1 -DHAVE_LIBGL=1 -DHAVE_LIBGLU=1 -DENABLE_OPENGL=1 -DHAVE_LIBM=1 -DHAVE_LIBPTHREAD=1 -I. -DRESOURCEPATH=\"/usr/share/komposter/\" -Wdate-time -D_FORTIFY_SOURCE=2 -I/usr/local/include -g -O2 -ffile-prefix-map=/build/reproducible-path/komposter-0+git20201216+ds=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -Wall -pedantic -O3 -fcx-limited-range -ffinite-math-only -fno-math-errno -fno-rounding-math -fno-signaling-nans -fno-trapping-math -fgcse-las -fgcse-sm -fsee -fsingle-precision-constant -fomit-frame-pointer -Wcast-align -Wconversion -Wdisabled-optimization -Wextra -Winit-self -Winvalid-pch -Wmissing-format-attribute -Wmissing-include-dirs -Wmissing-noreturn -Wno-multichar -Wpacked -Wredundant-decls -Wshadow -Wswitch-default -Wundef -Wwrite-strings -Wbad-function-cast -Wmissing-declarations -Wmissing-prototypes -Wnested-externs -Wold-style-definition -Wstrict-prototypes -ftracer -fweb -pipe -Werror-implicit-function-declaration -I/usr/include/freetype2 -I/usr/include/libpng16 -I/usr/include/AL -c -o patch.o patch.c modules.h:29:77: warning: unused parameter 'mod' [-Wunused-parameter] 29 | #define MODULE_FUNC(X) float modfunc_ ##X (unsigned char v, float *mod, void *data, float *ms) | ~~~~~~~^~~ @@ -3043,7 +3074,6 @@ modules.c:664:24: warning: conversion from 'double' to 'float' may change value [-Wfloat-conversion] 664 | float release_coef = exp(log(0.01)/ms[2]); | ^~~ -gcc -DPACKAGE_NAME=\"komposter\" -DPACKAGE_TARNAME=\"komposter\" -DPACKAGE_VERSION=\"2.0.0\" -DPACKAGE_STRING=\"komposter\ 2.0.0\" -DPACKAGE_BUGREPORT=\"email\" -DPACKAGE_URL=\"\" -DPACKAGE=\"komposter\" -DVERSION=\"2.0.0\" -DSTDC_HEADERS=1 -DHAVE_SYS_TYPES_H=1 -DHAVE_SYS_STAT_H=1 -DHAVE_STDLIB_H=1 -DHAVE_STRING_H=1 -DHAVE_MEMORY_H=1 -DHAVE_STRINGS_H=1 -DHAVE_INTTYPES_H=1 -DHAVE_STDINT_H=1 -DHAVE_UNISTD_H=1 -DENABLE_FREETYPE=1 -DHAVE_LIBGLUT=1 -DENABLE_GLUT=1 -DENABLE_OPENAL=1 -DHAVE_LIBGL=1 -DHAVE_LIBGLU=1 -DENABLE_OPENGL=1 -DHAVE_LIBM=1 -DHAVE_LIBPTHREAD=1 -I. -DRESOURCEPATH=\"/usr/share/komposter/\" -Wdate-time -D_FORTIFY_SOURCE=2 -I/usr/local/include -g -O2 -ffile-prefix-map=/build/reproducible-path/komposter-0+git20201216+ds=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -Wall -pedantic -O3 -fcx-limited-range -ffinite-math-only -fno-math-errno -fno-rounding-math -fno-signaling-nans -fno-trapping-math -fgcse-las -fgcse-sm -fsee -fsingle-precision-constant -fomit-frame-pointer -Wcast-align -Wconversion -Wdisabled-optimization -Wextra -Winit-self -Winvalid-pch -Wmissing-format-attribute -Wmissing-include-dirs -Wmissing-noreturn -Wno-multichar -Wpacked -Wredundant-decls -Wshadow -Wswitch-default -Wundef -Wwrite-strings -Wbad-function-cast -Wmissing-declarations -Wmissing-prototypes -Wnested-externs -Wold-style-definition -Wstrict-prototypes -ftracer -fweb -pipe -Werror-implicit-function-declaration -I/usr/include/freetype2 -I/usr/include/libpng16 -I/usr/include/AL -c -o pattern.o pattern.c modules.c:666:13: warning: conversion from 'double' to 'float' may change value [-Wfloat-conversion] 666 | float tmp=fabs(ms[0]); | ^~~~ @@ -3088,6 +3118,7 @@ modules.c:706:5: warning: conversion from 'double' to 'float' may change value [-Wfloat-conversion] 706 | r=sqrt(q); | ^~~~ +gcc -DPACKAGE_NAME=\"komposter\" -DPACKAGE_TARNAME=\"komposter\" -DPACKAGE_VERSION=\"2.0.0\" -DPACKAGE_STRING=\"komposter\ 2.0.0\" -DPACKAGE_BUGREPORT=\"email\" -DPACKAGE_URL=\"\" -DPACKAGE=\"komposter\" -DVERSION=\"2.0.0\" -DSTDC_HEADERS=1 -DHAVE_SYS_TYPES_H=1 -DHAVE_SYS_STAT_H=1 -DHAVE_STDLIB_H=1 -DHAVE_STRING_H=1 -DHAVE_MEMORY_H=1 -DHAVE_STRINGS_H=1 -DHAVE_INTTYPES_H=1 -DHAVE_STDINT_H=1 -DHAVE_UNISTD_H=1 -DENABLE_FREETYPE=1 -DHAVE_LIBGLUT=1 -DENABLE_GLUT=1 -DENABLE_OPENAL=1 -DHAVE_LIBGL=1 -DHAVE_LIBGLU=1 -DENABLE_OPENGL=1 -DHAVE_LIBM=1 -DHAVE_LIBPTHREAD=1 -I. -DRESOURCEPATH=\"/usr/share/komposter/\" -Wdate-time -D_FORTIFY_SOURCE=2 -I/usr/local/include -g -O2 -ffile-prefix-map=/build/reproducible-path/komposter-0+git20201216+ds=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -Wall -pedantic -O3 -fcx-limited-range -ffinite-math-only -fno-math-errno -fno-rounding-math -fno-signaling-nans -fno-trapping-math -fgcse-las -fgcse-sm -fsee -fsingle-precision-constant -fomit-frame-pointer -Wcast-align -Wconversion -Wdisabled-optimization -Wextra -Winit-self -Winvalid-pch -Wmissing-format-attribute -Wmissing-include-dirs -Wmissing-noreturn -Wno-multichar -Wpacked -Wredundant-decls -Wshadow -Wswitch-default -Wundef -Wwrite-strings -Wbad-function-cast -Wmissing-declarations -Wmissing-prototypes -Wnested-externs -Wold-style-definition -Wstrict-prototypes -ftracer -fweb -pipe -Werror-implicit-function-declaration -I/usr/include/freetype2 -I/usr/include/libpng16 -I/usr/include/AL -c -o pattern.o pattern.c modules.h:29:67: warning: unused parameter 'v' [-Wunused-parameter] 29 | #define MODULE_FUNC(X) float modfunc_ ##X (unsigned char v, float *mod, void *data, float *ms) | ~~~~~~~~~~~~~~^ @@ -3100,476 +3131,16 @@ modules.c:684:1: note: in expansion of macro 'MODULE_FUNC' 684 | MODULE_FUNC(supersaw) { | ^~~~~~~~~~~ -In file included from pattern.h:17, - from pattern.c:13: -arch.h:15:5: warning: "__x86_64__" is not defined, evaluates to 0 [-Wundef] - 15 | #if __x86_64__ - | ^~~~~~~~~~ -In file included from font.h:16, - from patch.h:19: -arch.h:15:5: warning: "__x86_64__" is not defined, evaluates to 0 [-Wundef] - 15 | #if __x86_64__ - | ^~~~~~~~~~ -In file included from patch.h:20: -modules.h:152:1: warning: function declaration isn't a prototype [-Wstrict-prototypes] - 152 | void calc_supersaw_tables(); - | ^~~~ -In file included from synthesizer.h:23, - from patch.h:21: -arch.h:15:5: warning: "__x86_64__" is not defined, evaluates to 0 [-Wundef] - 15 | #if __x86_64__ - | ^~~~~~~~~~ -In file included from audio.h:16, - from synthesizer.h:24: +In file included from patch.h:17, + from patch.c:13: arch.h:15:5: warning: "__x86_64__" is not defined, evaluates to 0 [-Wundef] 15 | #if __x86_64__ | ^~~~~~~~~~ -audio.h:56:1: warning: function declaration isn't a prototype [-Wstrict-prototypes] - 56 | int audio_exportwav(); //char *filename); - | ^~~ In file included from pattern.h:17, - from buffermm.h:17, - from synthesizer.h:25: -arch.h:15:5: warning: "__x86_64__" is not defined, evaluates to 0 [-Wundef] - 15 | #if __x86_64__ - | ^~~~~~~~~~ -In file included from console.h:16, - from pattern.h:19: -arch.h:15:5: warning: "__x86_64__" is not defined, evaluates to 0 [-Wundef] - 15 | #if __x86_64__ - | ^~~~~~~~~~ -In file included from widgets.h:20, - from pattern.h:22: -arch.h:15:5: warning: "__x86_64__" is not defined, evaluates to 0 [-Wundef] - 15 | #if __x86_64__ - | ^~~~~~~~~~ -In file included from synthesizer.h:29: -dotfile.h:16:1: warning: function declaration isn't a prototype [-Wstrict-prototypes] - 16 | int dotfile_load(); - | ^~~ -dotfile.h:17:1: warning: function declaration isn't a prototype [-Wstrict-prototypes] - 17 | int dotfile_save(); - | ^~~ -In file included from filedialog.h:22, - from synthesizer.h:30: + from pattern.c:13: arch.h:15:5: warning: "__x86_64__" is not defined, evaluates to 0 [-Wundef] 15 | #if __x86_64__ | ^~~~~~~~~~ -synthesizer.h:84:6: warning: redundant redeclaration of 'synth_stackify' [-Wredundant-decls] - 84 | void synth_stackify(int syn); - | ^~~~~~~~~~~~~~ -In file included from synthesizer.h:31: -fileops.h:62:6: note: previous declaration of 'synth_stackify' with type 'void(int)' - 62 | void synth_stackify(int syn); - | ^~~~~~~~~~~~~~ -synthesizer.h:85:5: warning: redundant redeclaration of 'synth_trace' [-Wredundant-decls] - 85 | int synth_trace(int syn, int pm, int fifo); - | ^~~~~~~~~~~ -fileops.h:63:5: note: previous declaration of 'synth_trace' with type 'int(int, int, int)' - 63 | int synth_trace(int syn, int pm, int top); - | ^~~~~~~~~~~ -patch.c: In function 'patch_init': -patch.c:96:6: warning: old-style function definition [-Wold-style-definition] - 96 | void patch_init() - | ^~~~~~~~~~ -patch.c: In function 'patch_mouse_hover': -patch.c:130:34: warning: conversion from 'int' to 'float' may change value [-Wconversion] - 130 | patch_ui[B_PREV]=hovertest_box(x, y, 310, DS_HEIGHT-14, 16, 16); - | ^ -patch.c:130:37: warning: conversion from 'int' to 'float' may change value [-Wconversion] - 130 | patch_ui[B_PREV]=hovertest_box(x, y, 310, DS_HEIGHT-14, 16, 16); - | ^ -patch.c:131:34: warning: conversion from 'int' to 'float' may change value [-Wconversion] - 131 | patch_ui[B_NEXT]=hovertest_box(x, y, 362, DS_HEIGHT-14, 16, 16); - | ^ -patch.c:131:37: warning: conversion from 'int' to 'float' may change value [-Wconversion] - 131 | patch_ui[B_NEXT]=hovertest_box(x, y, 362, DS_HEIGHT-14, 16, 16); - | ^ -patch.c:132:37: warning: conversion from 'int' to 'float' may change value [-Wconversion] - 132 | patch_ui[B_PREVSYN]=hovertest_box(x, y, 14, DS_HEIGHT-14, 16, 16); - | ^ -patch.c:132:40: warning: conversion from 'int' to 'float' may change value [-Wconversion] - 132 | patch_ui[B_PREVSYN]=hovertest_box(x, y, 14, DS_HEIGHT-14, 16, 16); - | ^ -patch.c:133:37: warning: conversion from 'int' to 'float' may change value [-Wconversion] - 133 | patch_ui[B_NEXTSYN]=hovertest_box(x, y, 230, DS_HEIGHT-14, 16, 16); - | ^ -patch.c:133:40: warning: conversion from 'int' to 'float' may change value [-Wconversion] - 133 | patch_ui[B_NEXTSYN]=hovertest_box(x, y, 230, DS_HEIGHT-14, 16, 16); - | ^ -patch.c:135:35: warning: conversion from 'int' to 'float' may change value [-Wconversion] - 135 | patch_ui[B_OCTDN]=hovertest_box(x, y, 17, 520-12, 16, 16); - | ^ -patch.c:135:38: warning: conversion from 'int' to 'float' may change value [-Wconversion] - 135 | patch_ui[B_OCTDN]=hovertest_box(x, y, 17, 520-12, 16, 16); - | ^ -patch.c:136:35: warning: conversion from 'int' to 'float' may change value [-Wconversion] - 136 | patch_ui[B_OCTUP]=hovertest_box(x, y, DS_WIDTH-17, 520-12, 16, 16); - | ^ -patch.c:136:38: warning: conversion from 'int' to 'float' may change value [-Wconversion] - 136 | patch_ui[B_OCTUP]=hovertest_box(x, y, DS_WIDTH-17, 520-12, 16, 16); - | ^ -patch.c:139:34: warning: conversion from 'int' to 'float' may change value [-Wconversion] - 139 | patch_ui[B_COPY]=hovertest_box(x, y, 622, DS_HEIGHT-14, 16, 16); - | ^ -patch.c:139:37: warning: conversion from 'int' to 'float' may change value [-Wconversion] - 139 | patch_ui[B_COPY]=hovertest_box(x, y, 622, DS_HEIGHT-14, 16, 16); - | ^ -patch.c:140:35: warning: conversion from 'int' to 'float' may change value [-Wconversion] - 140 | patch_ui[B_PASTE]=hovertest_box(x, y, 644, DS_HEIGHT-14, 16, 16); - | ^ -patch.c:140:38: warning: conversion from 'int' to 'float' may change value [-Wconversion] - 140 | patch_ui[B_PASTE]=hovertest_box(x, y, 644, DS_HEIGHT-14, 16, 16); - | ^ -patch.c:145:40: warning: conversion from 'int' to 'float' may change value [-Wconversion] - 145 | patch_ui[B_PATCHNAME]|=hovertest_box(x, y, 472, DS_HEIGHT-14, 16, 180); - | ^ -patch.c:145:43: warning: conversion from 'int' to 'float' may change value [-Wconversion] - 145 | patch_ui[B_PATCHNAME]|=hovertest_box(x, y, 472, DS_HEIGHT-14, 16, 180); - | ^ -patch.c:174:7: warning: switch missing default case [-Wswitch-default] - 174 | switch (key) { - | ^~~~~~ -patch.c: In function 'patch_mouse_drag': -patch.c:201:27: warning: unused parameter 'x' [-Wunused-parameter] - 201 | void patch_mouse_drag(int x, int y) - | ~~~~^ -patch.c:201:34: warning: unused parameter 'y' [-Wunused-parameter] - 201 | void patch_mouse_drag(int x, int y) - | ~~~~^ -patch.c: In function 'patch_mouse_click': -patch.c:217:9: warning: this 'if' clause does not guard... [-Wmisleading-indentation] - 217 | if (cpatch[csynth]>0) cpatch[csynth]--; return; - | ^~ -patch.c:217:49: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the 'if' - 217 | if (cpatch[csynth]>0) cpatch[csynth]--; return; - | ^~~~~~ -patch.c:260:22: warning: passing argument 1 of 'console_post' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] - 260 | console_post("Patch copied to clipboard"); - | ^~~~~~~~~~~~~~~~~~~~~~~~~~~ -console.h:23:25: note: expected 'char *' but argument is of type 'const char *' - 23 | void console_post(char *msg); - | ~~~~~~^~~ -patch.c:273:24: warning: passing argument 1 of 'console_post' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] - 273 | console_post("Patch pasted from clipboard"); - | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -console.h:23:25: note: expected 'char *' but argument is of type 'const char *' - 23 | void console_post(char *msg); - | ~~~~~~^~~ -patch.c:336:76: warning: conversion to 'int' from 'unsigned int' may change the sign of the result [-Wsign-conversion] - 336 | patch_modulator_floatval=knob_float2scale(mod[csynth][mi].scale, modvalue[ csynth ][cpatch[csynth]][ mi ]); - | ~~~~~~~~~~~~~~~^~~~~~ -patch.c:341:42: warning: conversion from 'float' to 'int' may change value [-Wfloat-conversion] - 341 | patch_modulator_intval=modvalue[ csynth ][cpatch[csynth]][ mi ]; - | ^~~~~~~~ -patch.c:334:15: warning: switch missing default case [-Wswitch-default] - 334 | switch(modModulatorTypes[mod[csynth][mi].type]) { - | ^~~~~~ -patch.c:344:27: warning: ISO C forbids passing argument 1 of 'dialog_open' between function pointer and 'void *' [-Wpedantic] - 344 | dialog_open(&patch_draw_modulator, &patch_modulator_hover, &patch_modulator_click); - | ^~~~~~~~~~~~~~~~~~~~~ -In file included from synthesizer.h:28: -dialog.h:22:24: note: expected 'void *' but argument is of type 'void (*)(void)' - 22 | void dialog_open(void *draw, void *hover, void *click); - | ~~~~~~^~~~ -patch.c:344:50: warning: ISO C forbids passing argument 2 of 'dialog_open' between function pointer and 'void *' [-Wpedantic] - 344 | dialog_open(&patch_draw_modulator, &patch_modulator_hover, &patch_modulator_click); - | ^~~~~~~~~~~~~~~~~~~~~~ -dialog.h:22:36: note: expected 'void *' but argument is of type 'void (*)(int, int)' - 22 | void dialog_open(void *draw, void *hover, void *click); - | ~~~~~~^~~~~ -patch.c:344:74: warning: ISO C forbids passing argument 3 of 'dialog_open' between function pointer and 'void *' [-Wpedantic] - 344 | dialog_open(&patch_draw_modulator, &patch_modulator_hover, &patch_modulator_click); - | ^~~~~~~~~~~~~~~~~~~~~~ -dialog.h:22:49: note: expected 'void *' but argument is of type 'void (*)(int, int, int, int)' - 22 | void dialog_open(void *draw, void *hover, void *click); - | ~~~~~~^~~~~ -patch.c:345:35: warning: ISO C forbids passing argument 1 of 'dialog_bindkeyboard' between function pointer and 'void *' [-Wpedantic] - 345 | dialog_bindkeyboard(&patch_modulator_keyboard); - | ^~~~~~~~~~~~~~~~~~~~~~~~~ -dialog.h:23:32: note: expected 'void *' but argument is of type 'void (*)(unsigned char, int, int)' - 23 | void dialog_bindkeyboard(void *kbfunc); - | ~~~~~~^~~~~~ -patch.c:346:34: warning: ISO C forbids passing argument 1 of 'dialog_bindspecial' between function pointer and 'void *' [-Wpedantic] - 346 | dialog_bindspecial(&patch_modulator_special); - | ^~~~~~~~~~~~~~~~~~~~~~~~ -dialog.h:24:31: note: expected 'void *' but argument is of type 'void (*)(int, int, int)' - 24 | void dialog_bindspecial(void *specialfunc); - | ~~~~~~^~~~~~~~~~~ -patch.c:351:24: warning: passing argument 1 of 'console_post' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] - 351 | console_post("No settings for this module!"); - | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -console.h:23:25: note: expected 'char *' but argument is of type 'const char *' - 23 | void console_post(char *msg); - | ~~~~~~^~~ -patch.c: In function 'patch_keyboard': -patch.c:378:3: warning: switch missing default case [-Wswitch-default] - 378 | switch (key) { - | ^~~~~~ -patch.c:367:44: warning: unused parameter 'x' [-Wunused-parameter] - 367 | void patch_keyboard(unsigned char key, int x, int y) - | ~~~~^ -patch.c:367:51: warning: unused parameter 'y' [-Wunused-parameter] - 367 | void patch_keyboard(unsigned char key, int x, int y) - | ~~~~^ -patch.c: In function 'patch_keyboardup': -patch.c:401:46: warning: unused parameter 'x' [-Wunused-parameter] - 401 | void patch_keyboardup(unsigned char key, int x, int y) - | ~~~~^ -patch.c:401:53: warning: unused parameter 'y' [-Wunused-parameter] - 401 | void patch_keyboardup(unsigned char key, int x, int y) - | ~~~~^ -patch.c: In function 'patch_specialkey': -patch.c:419:3: warning: switch missing default case [-Wswitch-default] - 419 | switch(key) - | ^~~~~~ -patch.c:417:46: warning: unused parameter 'x' [-Wunused-parameter] - 417 | void patch_specialkey(unsigned char key, int x, int y) - | ~~~~^ -patch.c:417:53: warning: unused parameter 'y' [-Wunused-parameter] - 417 | void patch_specialkey(unsigned char key, int x, int y) - | ~~~~^ -patch.c: In function 'patch_draw': -patch.c:460:19: warning: conversion from 'int' to 'GLfloat' {aka 'float'} may change value [-Wconversion] - 460 | glVertex2f(x+16, 8+m*16-yd); - | ~^~~ -patch.c:460:31: warning: conversion from 'int' to 'GLfloat' {aka 'float'} may change value [-Wconversion] - 460 | glVertex2f(x+16, 8+m*16-yd); - | ~~~~~~^~~ -patch.c:461:19: warning: conversion from 'int' to 'GLfloat' {aka 'float'} may change value [-Wconversion] - 461 | glVertex2f(x+380, 8+m*16-yd); - | ~^~~~ -patch.c:461:31: warning: conversion from 'int' to 'GLfloat' {aka 'float'} may change value [-Wconversion] - 461 | glVertex2f(x+380, 8+m*16-yd); - | ~~~~~~^~~ -patch.c:462:19: warning: conversion from 'int' to 'GLfloat' {aka 'float'} may change value [-Wconversion] - 462 | glVertex2f(x+380, 24+m*16-yd); - | ~^~~~ -patch.c:462:32: warning: conversion from 'int' to 'GLfloat' {aka 'float'} may change value [-Wconversion] - 462 | glVertex2f(x+380, 24+m*16-yd); - | ~~~~~~~^~~ -patch.c:463:19: warning: conversion from 'int' to 'GLfloat' {aka 'float'} may change value [-Wconversion] - 463 | glVertex2f(x+16, 24+m*16-yd); - | ~^~~ -patch.c:463:32: warning: conversion from 'int' to 'GLfloat' {aka 'float'} may change value [-Wconversion] - 463 | glVertex2f(x+16, 24+m*16-yd); - | ~~~~~~~^~~ -patch.c:467:51: warning: conversion from 'int' to 'float' may change value [-Wconversion] - 467 | sprintf(tmps, "%02d", mi); render_text(tmps, x+20, 20+mm*16-yd, 2, 0xff505050, 0); - | ~^~~ -patch.c:467:64: warning: conversion from 'int' to 'float' may change value [-Wconversion] - 467 | sprintf(tmps, "%02d", mi); render_text(tmps, x+20, 20+mm*16-yd, 2, 0xff505050, 0); - | ~~~~~~~~^~~ -patch.c:468:81: warning: conversion from 'int' to 'float' may change value [-Wconversion] - 468 | sprintf(tmps, "%s", modTypeNames[mod[csynth][mi].type]); render_text(tmps, x+44, 20+mm*16-yd, 2, 0xffc0c0c0, 0); - | ~^~~ -patch.c:468:94: warning: conversion from 'int' to 'float' may change value [-Wconversion] - 468 | sprintf(tmps, "%s", modTypeNames[mod[csynth][mi].type]); render_text(tmps, x+44, 20+mm*16-yd, 2, 0xffc0c0c0, 0); - | ~~~~~~~~^~~ -patch.c:476:24: warning: conversion from 'int' to 'float' may change value [-Wconversion] - 476 | render_text(tmps, x+110, 20+mm*16-yd, 2, 0xff808080, 0); - | ~^~~~ -patch.c:476:38: warning: conversion from 'int' to 'float' may change value [-Wconversion] - 476 | render_text(tmps, x+110, 20+mm*16-yd, 2, 0xff808080, 0); - | ~~~~~~~~^~~ -patch.c:483:45: warning: conversion to 'int' from 'unsigned int' may change the sign of the result [-Wsign-conversion] - 483 | f=knob_float2scale(mod[csynth][mi].scale, modvalue[ csynth ][ cpatch[csynth] ][ mi ]); - | ~~~~~~~~~~~~~~~^~~~~~ -patch.c:478:5: warning: switch missing default case [-Wswitch-default] - 478 | switch(modModulatorTypes[mod[csynth][mi].type]) - | ^~~~~~ -patch.c:496:24: warning: conversion from 'int' to 'float' may change value [-Wconversion] - 496 | render_text(tmps, x+250, 20+mm*16-yd, 2, 0xffc0c0c0, 0); - | ~^~~~ -patch.c:496:38: warning: conversion from 'int' to 'float' may change value [-Wconversion] - 496 | render_text(tmps, x+250, 20+mm*16-yd, 2, 0xffc0c0c0, 0); - | ~~~~~~~~^~~ -patch.c:506:29: warning: conversion from 'int' to 'float' may change value [-Wconversion] - 506 | draw_kbhoct(PIANO_LEFT+m*16*7, PIANO_TOP, 16, 70, m, cpkey, rkdown, &pianokeys[(m-coct)*12]); - | ^ -patch.c:508:29: warning: conversion from 'int' to 'float' may change value [-Wconversion] - 508 | draw_kbhoct(PIANO_LEFT+m*16*7, PIANO_TOP, 16, 70, m, cpkey, rkdown, NULL); - | ^ -patch.c:513:31: warning: passing argument 4 of 'draw_button' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] - 513 | draw_button(17, 520-12, 16, "-", patch_ui[B_OCTDN]); - | ^~~ -widgets.h:37:54: note: expected 'char *' but argument is of type 'const char *' - 37 | void draw_button(float x, float y, float size, char *label, int type); - | ~~~~~~^~~~~ -patch.c:514:40: warning: passing argument 4 of 'draw_button' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] - 514 | draw_button(DS_WIDTH-17, 520-12, 16, "+", patch_ui[B_OCTUP]); - | ^~~ -widgets.h:37:54: note: expected 'char *' but argument is of type 'const char *' - 37 | void draw_button(float x, float y, float size, char *label, int type); - | ~~~~~~^~~~~ -patch.c:519:38: warning: passing argument 4 of 'draw_button' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] - 519 | draw_button(622, DS_HEIGHT-14, 16, "C", patch_ui[B_COPY]); - | ^~~ -widgets.h:37:54: note: expected 'char *' but argument is of type 'const char *' - 37 | void draw_button(float x, float y, float size, char *label, int type); - | ~~~~~~^~~~~ -patch.c:520:38: warning: passing argument 4 of 'draw_button' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] - 520 | draw_button(644, DS_HEIGHT-14, 16, "V", patch_ui[B_PASTE]); - | ^~~ -widgets.h:37:54: note: expected 'char *' but argument is of type 'const char *' - 37 | void draw_button(float x, float y, float size, char *label, int type); - | ~~~~~~^~~~~ -patch.c:529:38: warning: passing argument 4 of 'draw_button' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] - 529 | draw_button(310, DS_HEIGHT-14, 16, "<<", patch_ui[B_PREV]); - | ^~~~ -widgets.h:37:54: note: expected 'char *' but argument is of type 'const char *' - 37 | void draw_button(float x, float y, float size, char *label, int type); - | ~~~~~~^~~~~ -patch.c:532:38: warning: passing argument 4 of 'draw_button' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] - 532 | draw_button(362, DS_HEIGHT-14, 16, ">>", patch_ui[B_NEXT]); - | ^~~~ -widgets.h:37:54: note: expected 'char *' but argument is of type 'const char *' - 37 | void draw_button(float x, float y, float size, char *label, int type); - | ~~~~~~^~~~~ -patch.c:534:37: warning: passing argument 4 of 'draw_button' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] - 534 | draw_button(14, DS_HEIGHT-14, 16, "<<", patch_ui[B_PREVSYN]); - | ^~~~ -widgets.h:37:54: note: expected 'char *' but argument is of type 'const char *' - 37 | void draw_button(float x, float y, float size, char *label, int type); - | ~~~~~~^~~~~ -patch.c:537:38: warning: passing argument 4 of 'draw_button' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] - 537 | draw_button(230, DS_HEIGHT-14, 16, ">>", patch_ui[B_NEXTSYN]); - | ^~~~ -widgets.h:37:54: note: expected 'char *' but argument is of type 'const char *' - 37 | void draw_button(float x, float y, float size, char *label, int type); - | ~~~~~~^~~~~ -patch.c: In function 'patch_draw_modulator': -patch.c:558:55: warning: passing argument 5 of 'draw_textbox' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] - 558 | draw_textbox((DS_WIDTH/2), (DS_HEIGHT/2), 120, 226, "", 0); - | ^~ -widgets.h:38:71: note: expected 'char *' but argument is of type 'const char *' - 38 | void draw_textbox(float x, float y, float height, float length, char *label, int type); - | ~~~~~~^~~~~ -patch.c:568:53: warning: passing argument 4 of 'draw_button' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] - 568 | draw_button((DS_WIDTH/2)+96, (DS_HEIGHT/2)+2, 16, "+", modulator_ui[B_MOD_ADDPREC]); - | ^~~ -widgets.h:37:54: note: expected 'char *' but argument is of type 'const char *' - 37 | void draw_button(float x, float y, float size, char *label, int type); - | ~~~~~~^~~~~ -patch.c:569:53: warning: passing argument 4 of 'draw_button' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] - 569 | draw_button((DS_WIDTH/2)-28, (DS_HEIGHT/2)+2, 16, "-", modulator_ui[B_MOD_DECPREC]); - | ^~~ -widgets.h:37:54: note: expected 'char *' but argument is of type 'const char *' - 37 | void draw_button(float x, float y, float size, char *label, int type); - | ~~~~~~^~~~~ -patch.c:574:42: warning: conversion to 'int' from 'unsigned int' may change the sign of the result [-Wsign-conversion] - 574 | rf=knob_scale2float(mod[csynth][mi].scale, rf); - | ~~~~~~~~~~~~~~~^~~~~~ -patch.c:579:41: warning: conversion to 'int' from 'unsigned int' may change the sign of the result [-Wsign-conversion] - 579 | f=knob_float2scale(mod[csynth][mi].scale, rf); - | ~~~~~~~~~~~~~~~^~~~~~ -patch.c: In function 'patch_modulator_hover': -patch.c:596:45: warning: conversion from 'int' to 'float' may change value [-Wconversion] - 596 | modulator_ui[B_MOD_ADDPREC]=hovertest_box(x, y, (DS_WIDTH/2)+96, (DS_HEIGHT/2)+2, 16, 16); - | ^ -patch.c:596:48: warning: conversion from 'int' to 'float' may change value [-Wconversion] - 596 | modulator_ui[B_MOD_ADDPREC]=hovertest_box(x, y, (DS_WIDTH/2)+96, (DS_HEIGHT/2)+2, 16, 16); - | ^ -patch.c:597:45: warning: conversion from 'int' to 'float' may change value [-Wconversion] - 597 | modulator_ui[B_MOD_DECPREC]=hovertest_box(x, y, (DS_WIDTH/2)-28, (DS_HEIGHT/2)+2 , 16, 16); - | ^ -patch.c:597:48: warning: conversion from 'int' to 'float' may change value [-Wconversion] - 597 | modulator_ui[B_MOD_DECPREC]=hovertest_box(x, y, (DS_WIDTH/2)-28, (DS_HEIGHT/2)+2 , 16, 16); - | ^ -patch.c:600:44: warning: conversion from 'int' to 'float' may change value [-Wconversion] - 600 | modulator_ui[B_MOD_VALUE]|=hovertest_box(x, y, (DS_WIDTH/2)+34, (DS_HEIGHT/2)-20, 16, 140); - | ^ -patch.c:600:47: warning: conversion from 'int' to 'float' may change value [-Wconversion] - 600 | modulator_ui[B_MOD_VALUE]|=hovertest_box(x, y, (DS_WIDTH/2)+34, (DS_HEIGHT/2)-20, 16, 140); - | ^ -patch.c: In function 'patch_modulator_click': -patch.c:609:42: warning: conversion from 'int' to 'float' may change value [-Wconversion] - 609 | if (state==GLUT_DOWN && !hovertest_box(x,y,(DS_WIDTH/2),(DS_HEIGHT/2),120,226 )) { - | ^ -patch.c:609:44: warning: conversion from 'int' to 'float' may change value [-Wconversion] - 609 | if (state==GLUT_DOWN && !hovertest_box(x,y,(DS_WIDTH/2),(DS_HEIGHT/2),120,226 )) { - | ^ -patch.c:616:50: warning: conversion from 'int' to 'float' may change value [-Wconversion] - 616 | if (button==GLUT_RIGHT_BUTTON && hovertest_box(x,y,(DS_WIDTH/2),(DS_HEIGHT/2),120,226 )) { - | ^ -patch.c:616:52: warning: conversion from 'int' to 'float' may change value [-Wconversion] - 616 | if (button==GLUT_RIGHT_BUTTON && hovertest_box(x,y,(DS_WIDTH/2),(DS_HEIGHT/2),120,226 )) { - | ^ -patch.c:622:45: warning: conversion to 'int' from 'unsigned int' may change the sign of the result [-Wsign-conversion] - 622 | f=knob_scale2float(mod[csynth][mi].scale, f); - | ~~~~~~~~~~~~~~~^~~~~~ -patch.c:618:5: warning: switch missing default case [-Wswitch-default] - 618 | switch(modModulatorTypes[mod[csynth][mi].type]) { - | ^~~~~~ -patch.c:643:9: warning: this 'if' clause does not guard... [-Wmisleading-indentation] - 643 | if (modquantifier[ csynth ][cpatch[csynth]][ mi ]<32) modquantifier[ csynth ][cpatch[csynth]][ mi ]++; return; - | ^~ -patch.c:643:112: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the 'if' - 643 | if (modquantifier[ csynth ][cpatch[csynth]][ mi ]<32) modquantifier[ csynth ][cpatch[csynth]][ mi ]++; return; - | ^~~~~~ -patch.c:647:9: warning: this 'if' clause does not guard... [-Wmisleading-indentation] - 647 | if (modquantifier[ csynth ][cpatch[csynth]][ mi ]>12) modquantifier[ csynth ][cpatch[csynth]][ mi ]--; return; - | ^~ -patch.c:647:112: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the 'if' - 647 | if (modquantifier[ csynth ][cpatch[csynth]][ mi ]>12) modquantifier[ csynth ][cpatch[csynth]][ mi ]--; return; - | ^~~~~~ -patch.c: In function 'patch_modulator_special': -patch.c:674:39: warning: conversion to 'int' from 'unsigned int' may change the sign of the result [-Wsign-conversion] - 674 | f=knob_float2scale(mod[csynth][mi].scale, modvalue[ csynth ][cpatch[csynth]][ mi ]); - | ~~~~~~~~~~~~~~~^~~~~~ -patch.c:713:78: warning: conversion to 'int' from 'unsigned int' may change the sign of the result [-Wsign-conversion] - 713 | modvalue[ csynth ][cpatch[csynth]][ mi ]=knob_scale2float(mod[csynth][mi].scale, f); - | ~~~~~~~~~~~~~~~^~~~~~ -patch.c:662:43: warning: unused parameter 'x' [-Wunused-parameter] - 662 | void patch_modulator_special(int key, int x, int y) - | ~~~~^ -patch.c:662:50: warning: unused parameter 'y' [-Wunused-parameter] - 662 | void patch_modulator_special(int key, int x, int y) - | ~~~~^ -patch.c: In function 'patch_modulator_keyboard': -patch.c:739:45: warning: conversion to 'int' from 'unsigned int' may change the sign of the result [-Wsign-conversion] - 739 | f=knob_scale2float(mod[csynth][mi].scale, f); - | ~~~~~~~~~~~~~~~^~~~~~ -patch.c:735:5: warning: switch missing default case [-Wswitch-default] - 735 | switch(modModulatorTypes[mod[csynth][mi].type]) { - | ^~~~~~ -patch.c:718:54: warning: unused parameter 'x' [-Wunused-parameter] - 718 | void patch_modulator_keyboard(unsigned char key, int x, int y) - | ~~~~^ -patch.c:718:61: warning: unused parameter 'y' [-Wunused-parameter] - 718 | void patch_modulator_keyboard(unsigned char key, int x, int y) - | ~~~~^ -patch.c: In function 'knob_scale2float': -patch.c:770:46: warning: conversion from 'int' to 'float' may change value [-Wconversion] - 770 | case SCALE_FREQUENCY_TEMPO: return (value*bpm)/(60*OUTPUTFREQ); - | ^ -patch.c:771:47: warning: conversion from 'int' to 'float' may change value [-Wconversion] - 771 | case SCALE_DURATION_TEMPO: return (60/(bpm*value))*OUTPUTFREQ; - | ^ -patch.c:775:73: warning: conversion from 'double' to 'float' may change value [-Wfloat-conversion] - 775 | case SCALE_MIDI_NOTE: return 8.1757989156 * pow(1.059463094, value) / OUTPUTFREQ; -patch.c:776:38: warning: conversion from 'double' to 'float' may change value [-Wfloat-conversion] - 776 | case SCALE_NOTE_INTERVAL: return pow(1.059463094, value); - | ^~~~~~~~~~~~~~~~~~~~~~~ -patch.c:767:3: warning: switch missing default case [-Wswitch-default] - 767 | switch(scale) { - | ^~~~~~ -patch.c: In function 'knob_float2scale': -patch.c:786:61: warning: conversion from 'int' to 'float' may change value [-Wconversion] - 786 | case SCALE_FREQUENCY_TEMPO: return (value*60*OUTPUTFREQ)/bpm; - | ^ -patch.c:787:61: warning: conversion from 'int' to 'float' may change value [-Wconversion] - 787 | case SCALE_DURATION_TEMPO: return (OUTPUTFREQ*60)/(value*bpm); - | ^ -patch.c:791:48: warning: conversion from 'double' to 'float' may change value [-Wfloat-conversion] - 791 | case SCALE_MIDI_NOTE: return 17.31234049667*log(0.12231220586*value*OUTPUTFREQ); - | ~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -patch.c:792:52: warning: conversion from 'double' to 'float' may change value [-Wfloat-conversion] - 792 | case SCALE_NOTE_INTERVAL: return 17.31234049667*log(value); - | ~~~~~~~~~~~~~~^~~~~~~~~~~ -patch.c:783:3: warning: switch missing default case [-Wswitch-default] - 783 | switch(scale) { - | ^~~~~~ In file included from audio.h:16, from pattern.h:18: arch.h:15:5: warning: "__x86_64__" is not defined, evaluates to 0 [-Wundef] @@ -3593,6 +3164,12 @@ arch.h:15:5: warning: "__x86_64__" is not defined, evaluates to 0 [-Wundef] 15 | #if __x86_64__ | ^~~~~~~~~~ +gcc -DPACKAGE_NAME=\"komposter\" -DPACKAGE_TARNAME=\"komposter\" -DPACKAGE_VERSION=\"2.0.0\" -DPACKAGE_STRING=\"komposter\ 2.0.0\" -DPACKAGE_BUGREPORT=\"email\" -DPACKAGE_URL=\"\" -DPACKAGE=\"komposter\" -DVERSION=\"2.0.0\" -DSTDC_HEADERS=1 -DHAVE_SYS_TYPES_H=1 -DHAVE_SYS_STAT_H=1 -DHAVE_STDLIB_H=1 -DHAVE_STRING_H=1 -DHAVE_MEMORY_H=1 -DHAVE_STRINGS_H=1 -DHAVE_INTTYPES_H=1 -DHAVE_STDINT_H=1 -DHAVE_UNISTD_H=1 -DENABLE_FREETYPE=1 -DHAVE_LIBGLUT=1 -DENABLE_GLUT=1 -DENABLE_OPENAL=1 -DHAVE_LIBGL=1 -DHAVE_LIBGLU=1 -DENABLE_OPENGL=1 -DHAVE_LIBM=1 -DHAVE_LIBPTHREAD=1 -I. -DRESOURCEPATH=\"/usr/share/komposter/\" -Wdate-time -D_FORTIFY_SOURCE=2 -I/usr/local/include -g -O2 -ffile-prefix-map=/build/reproducible-path/komposter-0+git20201216+ds=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -Wall -pedantic -O3 -fcx-limited-range -ffinite-math-only -fno-math-errno -fno-rounding-math -fno-signaling-nans -fno-trapping-math -fgcse-las -fgcse-sm -fsee -fsingle-precision-constant -fomit-frame-pointer -Wcast-align -Wconversion -Wdisabled-optimization -Wextra -Winit-self -Winvalid-pch -Wmissing-format-attribute -Wmissing-include-dirs -Wmissing-noreturn -Wno-multichar -Wpacked -Wredundant-decls -Wshadow -Wswitch-default -Wundef -Wwrite-strings -Wbad-function-cast -Wmissing-declarations -Wmissing-prototypes -Wnested-externs -Wold-style-definition -Wstrict-prototypes -ftracer -fweb -pipe -Werror-implicit-function-declaration -I/usr/include/freetype2 -I/usr/include/libpng16 -I/usr/include/AL -c -o sequencer.o sequencer.c +In file included from font.h:16, + from patch.h:19: +arch.h:15:5: warning: "__x86_64__" is not defined, evaluates to 0 [-Wundef] + 15 | #if __x86_64__ + | ^~~~~~~~~~ In file included from widgets.h:23: modules.h:152:1: warning: function declaration isn't a prototype [-Wstrict-prototypes] 152 | void calc_supersaw_tables(); @@ -3725,6 +3302,10 @@ pattern.c:218:23: warning: conversion to 'long unsigned int' from 'int' may change the sign of the result [-Wsign-conversion] 218 | cip=pattlen[cpatt]*(beats_per_measure*beatdiv); // cells in pattern | ^ +In file included from patch.h:20: +modules.h:152:1: warning: function declaration isn't a prototype [-Wstrict-prototypes] + 152 | void calc_supersaw_tables(); + | ^~~~ pattern.c:218:9: warning: conversion from 'long unsigned int' to 'float' may change value [-Wconversion] 218 | cip=pattlen[cpatt]*(beats_per_measure*beatdiv); // cells in pattern | ^~~~~~~ @@ -3910,6 +3491,11 @@ pattern.c:553:26: warning: comparison of integer expressions of different signedness: 'int' and 'long unsigned int' [-Wsign-compare] 553 | for(i=0,j=piano_start;j<(pattlen[cpatt]*(beats_per_measure*beatdiv)+1);i++,j++) { | ^ +In file included from synthesizer.h:23, + from patch.h:21: +arch.h:15:5: warning: "__x86_64__" is not defined, evaluates to 0 [-Wundef] + 15 | #if __x86_64__ + | ^~~~~~~~~~ pattern.c:560:38: warning: conversion to 'long unsigned int' from 'int' may change the sign of the result [-Wsign-conversion] 560 | if ((j%b)==0 && j<(pattlen[cpatt]*b)) { | ^ @@ -3922,15 +3508,43 @@ pattern.c:569:27: warning: conversion from 'int' to 'float' may change value [-Wconversion] 569 | glVertex2f(PIANOROLL_X+i*PIANOROLL_CELLWIDTH, round(PIANOROLL_Y+PIANOROLL_CELLHEIGHT)); | ^ +In file included from audio.h:16, + from synthesizer.h:24: +arch.h:15:5: warning: "__x86_64__" is not defined, evaluates to 0 [-Wundef] + 15 | #if __x86_64__ + | ^~~~~~~~~~ pattern.c:570:27: warning: conversion from 'int' to 'float' may change value [-Wconversion] 570 | glVertex2f(PIANOROLL_X+i*PIANOROLL_CELLWIDTH, round(PIANOROLL_Y-lineheight)); //(PIANOROLL_OCTAVES*12)*PIANOROLL_CELLHEIGHT))); | ^ +audio.h:56:1: warning: function declaration isn't a prototype [-Wstrict-prototypes] + 56 | int audio_exportwav(); //char *filename); + | ^~~ +In file included from pattern.h:17, + from buffermm.h:17, + from synthesizer.h:25: +arch.h:15:5: warning: "__x86_64__" is not defined, evaluates to 0 [-Wundef] + 15 | #if __x86_64__ + | ^~~~~~~~~~ pattern.c:570:51: warning: conversion from 'double' to 'GLfloat' {aka 'float'} may change value [-Wfloat-conversion] 570 | glVertex2f(PIANOROLL_X+i*PIANOROLL_CELLWIDTH, round(PIANOROLL_Y-lineheight)); //(PIANOROLL_OCTAVES*12)*PIANOROLL_CELLHEIGHT))); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~ +In file included from console.h:16, + from pattern.h:19: +arch.h:15:5: warning: "__x86_64__" is not defined, evaluates to 0 [-Wundef] + 15 | #if __x86_64__ + | ^~~~~~~~~~ +In file included from widgets.h:20, + from pattern.h:22: +arch.h:15:5: warning: "__x86_64__" is not defined, evaluates to 0 [-Wundef] + 15 | #if __x86_64__ + | ^~~~~~~~~~ pattern.c:577:19: warning: conversion to 'long unsigned int' from 'int' may change the sign of the result [-Wsign-conversion] 577 | ticks=playpos / (OUTPUTFREQ/(bpm*256/60)); // calc tick from sample index | ^ +In file included from synthesizer.h:29: +dotfile.h:16:1: warning: function declaration isn't a prototype [-Wstrict-prototypes] + 16 | int dotfile_load(); + | ^~~ pattern.c:577:11: warning: conversion to 'long int' from 'long unsigned int' may change the sign of the result [-Wsign-conversion] 577 | ticks=playpos / (OUTPUTFREQ/(bpm*256/60)); // calc tick from sample index | ^~~~~~~ @@ -3940,6 +3554,9 @@ pattern.c:578:47: warning: comparison of integer expressions of different signedness: 'long int' and 'long unsigned int' [-Wsign-compare] 578 | if ( (ticks>>6)>=piano_start && (ticks>>6)<(pattlen[cpatt]*(beats_per_measure*beatdiv)) ) // TODO: test if pos > pianostart+rollwidth | ^ +dotfile.h:17:1: warning: function declaration isn't a prototype [-Wstrict-prototypes] + 17 | int dotfile_save(); + | ^~~ pattern.c:584:29: warning: conversion from 'int' to 'float' may change value [-Wconversion] 584 | glVertex2f(PIANOROLL_X+i*PIANOROLL_CELLWIDTH, round(PIANOROLL_Y+PIANOROLL_CELLHEIGHT)); | ^ @@ -3976,15 +3593,28 @@ pattern.c:601:72: warning: conversion from 'int' to 'float' may change value [-Wconversion] 601 | glVertex2f(PIANOROLL_X+(i+1)*PIANOROLL_CELLWIDTH, PIANOROLL_Y-(n-coct*12+1)*PIANOROLL_CELLHEIGHT); | ^ +In file included from filedialog.h:22, + from synthesizer.h:30: +arch.h:15:5: warning: "__x86_64__" is not defined, evaluates to 0 [-Wundef] + 15 | #if __x86_64__ + | ^~~~~~~~~~ pattern.c:37:29: warning: conversion from 'int' to 'float' may change value [-Wconversion] 37 | #define PIANOROLL_X KB_WIDTH+5.5 | ^ pattern.c:602:24: note: in expansion of macro 'PIANOROLL_X' 602 | glVertex2f(l+PIANOROLL_X+i*PIANOROLL_CELLWIDTH, PIANOROLL_Y-(n-coct*12+1)*PIANOROLL_CELLHEIGHT); | ^~~~~~~~~~~ +In file included from sequencer.h:17, + from sequencer.c:13: +arch.h:15:5: warning: "__x86_64__" is not defined, evaluates to 0 [-Wundef] + 15 | #if __x86_64__ + | ^~~~~~~~~~ pattern.c:602:35: warning: conversion from 'int' to 'float' may change value [-Wconversion] 602 | glVertex2f(l+PIANOROLL_X+i*PIANOROLL_CELLWIDTH, PIANOROLL_Y-(n-coct*12+1)*PIANOROLL_CELLHEIGHT); | ^ +synthesizer.h:84:6: warning: redundant redeclaration of 'synth_stackify' [-Wredundant-decls] + 84 | void synth_stackify(int syn); + | ^~~~~~~~~~~~~~ pattern.c:602:70: warning: conversion from 'int' to 'float' may change value [-Wconversion] 602 | glVertex2f(l+PIANOROLL_X+i*PIANOROLL_CELLWIDTH, PIANOROLL_Y-(n-coct*12+1)*PIANOROLL_CELLHEIGHT); | ^ @@ -3994,6 +3624,17 @@ pattern.c:607:15: note: in expansion of macro 'PIANOROLL_X' 607 | l+PIANOROLL_X+i*PIANOROLL_CELLWIDTH+1, | ^~~~~~~~~~~ +In file included from synthesizer.h:31: +fileops.h:62:6: note: previous declaration of 'synth_stackify' with type 'void(int)' + 62 | void synth_stackify(int syn); + | ^~~~~~~~~~~~~~ +synthesizer.h:85:5: warning: redundant redeclaration of 'synth_trace' [-Wredundant-decls] + 85 | int synth_trace(int syn, int pm, int fifo); + | ^~~~~~~~~~~ +fileops.h:63:5: note: previous declaration of 'synth_trace' with type 'int(int, int, int)' + 63 | int synth_trace(int syn, int pm, int top); + | ^~~~~~~~~~~ +patch.c: In function 'patch_init': pattern.c:607:26: warning: conversion from 'int' to 'float' may change value [-Wconversion] 607 | l+PIANOROLL_X+i*PIANOROLL_CELLWIDTH+1, | ^ @@ -4006,234 +3647,630 @@ pattern.c:611:15: note: in expansion of macro 'PIANOROLL_X' 611 | l+PIANOROLL_X+i*PIANOROLL_CELLWIDTH, | ^~~~~~~~~~~ +patch.c:96:6: warning: old-style function definition [-Wold-style-definition] + 96 | void patch_init() + | ^~~~~~~~~~ +patch.c: In function 'patch_mouse_hover': pattern.c:611:26: warning: conversion from 'int' to 'float' may change value [-Wconversion] 611 | l+PIANOROLL_X+i*PIANOROLL_CELLWIDTH, | ^ pattern.c:612:26: warning: conversion from 'int' to 'float' may change value [-Wconversion] 612 | PIANOROLL_Y-2-(n-coct*12+1)*PIANOROLL_CELLHEIGHT, | ^ +patch.c:130:34: warning: conversion from 'int' to 'float' may change value [-Wconversion] + 130 | patch_ui[B_PREV]=hovertest_box(x, y, 310, DS_HEIGHT-14, 16, 16); + | ^ +patch.c:130:37: warning: conversion from 'int' to 'float' may change value [-Wconversion] + 130 | patch_ui[B_PREV]=hovertest_box(x, y, 310, DS_HEIGHT-14, 16, 16); + | ^ +patch.c:131:34: warning: conversion from 'int' to 'float' may change value [-Wconversion] + 131 | patch_ui[B_NEXT]=hovertest_box(x, y, 362, DS_HEIGHT-14, 16, 16); + | ^ +patch.c:131:37: warning: conversion from 'int' to 'float' may change value [-Wconversion] + 131 | patch_ui[B_NEXT]=hovertest_box(x, y, 362, DS_HEIGHT-14, 16, 16); + | ^ pattern.c:634:31: warning: conversion from 'int' to 'float' may change value [-Wconversion] 634 | glVertex2f(1+PIANOROLL_X+j*PIANOROLL_CELLWIDTH, PIANOROLL_Y-1-(n-coct*12)*PIANOROLL_CELLHEIGHT); | ^ +patch.c:132:37: warning: conversion from 'int' to 'float' may change value [-Wconversion] + 132 | patch_ui[B_PREVSYN]=hovertest_box(x, y, 14, DS_HEIGHT-14, 16, 16); + | ^ +patch.c:132:40: warning: conversion from 'int' to 'float' may change value [-Wconversion] + 132 | patch_ui[B_PREVSYN]=hovertest_box(x, y, 14, DS_HEIGHT-14, 16, 16); + | ^ +patch.c:133:37: warning: conversion from 'int' to 'float' may change value [-Wconversion] + 133 | patch_ui[B_NEXTSYN]=hovertest_box(x, y, 230, DS_HEIGHT-14, 16, 16); + | ^ +patch.c:133:40: warning: conversion from 'int' to 'float' may change value [-Wconversion] + 133 | patch_ui[B_NEXTSYN]=hovertest_box(x, y, 230, DS_HEIGHT-14, 16, 16); + | ^ +patch.c:135:35: warning: conversion from 'int' to 'float' may change value [-Wconversion] + 135 | patch_ui[B_OCTDN]=hovertest_box(x, y, 17, 520-12, 16, 16); + | ^ +patch.c:135:38: warning: conversion from 'int' to 'float' may change value [-Wconversion] + 135 | patch_ui[B_OCTDN]=hovertest_box(x, y, 17, 520-12, 16, 16); + | ^ +patch.c:136:35: warning: conversion from 'int' to 'float' may change value [-Wconversion] + 136 | patch_ui[B_OCTUP]=hovertest_box(x, y, DS_WIDTH-17, 520-12, 16, 16); + | ^ +patch.c:136:38: warning: conversion from 'int' to 'float' may change value [-Wconversion] + 136 | patch_ui[B_OCTUP]=hovertest_box(x, y, DS_WIDTH-17, 520-12, 16, 16); + | ^ +patch.c:139:34: warning: conversion from 'int' to 'float' may change value [-Wconversion] + 139 | patch_ui[B_COPY]=hovertest_box(x, y, 622, DS_HEIGHT-14, 16, 16); + | ^ pattern.c:634:68: warning: conversion from 'int' to 'float' may change value [-Wconversion] 634 | glVertex2f(1+PIANOROLL_X+j*PIANOROLL_CELLWIDTH, PIANOROLL_Y-1-(n-coct*12)*PIANOROLL_CELLHEIGHT); | ^ +patch.c:139:37: warning: conversion from 'int' to 'float' may change value [-Wconversion] + 139 | patch_ui[B_COPY]=hovertest_box(x, y, 622, DS_HEIGHT-14, 16, 16); + | ^ +patch.c:140:35: warning: conversion from 'int' to 'float' may change value [-Wconversion] + 140 | patch_ui[B_PASTE]=hovertest_box(x, y, 644, DS_HEIGHT-14, 16, 16); + | ^ +patch.c:140:38: warning: conversion from 'int' to 'float' may change value [-Wconversion] + 140 | patch_ui[B_PASTE]=hovertest_box(x, y, 644, DS_HEIGHT-14, 16, 16); + | ^ +patch.c:145:40: warning: conversion from 'int' to 'float' may change value [-Wconversion] + 145 | patch_ui[B_PATCHNAME]|=hovertest_box(x, y, 472, DS_HEIGHT-14, 16, 180); + | ^ +patch.c:145:43: warning: conversion from 'int' to 'float' may change value [-Wconversion] + 145 | patch_ui[B_PATCHNAME]|=hovertest_box(x, y, 472, DS_HEIGHT-14, 16, 180); + | ^ pattern.c:635:29: warning: conversion from 'int' to 'float' may change value [-Wconversion] 635 | glVertex2f(PIANOROLL_X+(j+l)*PIANOROLL_CELLWIDTH, PIANOROLL_Y-1-(n-coct*12)*PIANOROLL_CELLHEIGHT); | ^ +patch.c:174:7: warning: switch missing default case [-Wswitch-default] + 174 | switch (key) { + | ^~~~~~ pattern.c:635:70: warning: conversion from 'int' to 'float' may change value [-Wconversion] 635 | glVertex2f(PIANOROLL_X+(j+l)*PIANOROLL_CELLWIDTH, PIANOROLL_Y-1-(n-coct*12)*PIANOROLL_CELLHEIGHT); | ^ pattern.c:636:29: warning: conversion from 'int' to 'float' may change value [-Wconversion] 636 | glVertex2f(PIANOROLL_X+(j+l)*PIANOROLL_CELLWIDTH, PIANOROLL_Y-(n-coct*12+1)*PIANOROLL_CELLHEIGHT); | ^ +patch.c: In function 'patch_mouse_drag': +patch.c:201:27: warning: unused parameter 'x' [-Wunused-parameter] + 201 | void patch_mouse_drag(int x, int y) + | ~~~~^ +patch.c:201:34: warning: unused parameter 'y' [-Wunused-parameter] + 201 | void patch_mouse_drag(int x, int y) + | ~~~~^ pattern.c:636:68: warning: conversion from 'int' to 'float' may change value [-Wconversion] 636 | glVertex2f(PIANOROLL_X+(j+l)*PIANOROLL_CELLWIDTH, PIANOROLL_Y-(n-coct*12+1)*PIANOROLL_CELLHEIGHT); | ^ +patch.c: In function 'patch_mouse_click': +patch.c:217:9: warning: this 'if' clause does not guard... [-Wmisleading-indentation] + 217 | if (cpatch[csynth]>0) cpatch[csynth]--; return; + | ^~ +patch.c:217:49: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the 'if' + 217 | if (cpatch[csynth]>0) cpatch[csynth]--; return; + | ^~~~~~ pattern.c:637:31: warning: conversion from 'int' to 'float' may change value [-Wconversion] 637 | glVertex2f(1+PIANOROLL_X+j*PIANOROLL_CELLWIDTH, PIANOROLL_Y-(n-coct*12+1)*PIANOROLL_CELLHEIGHT); | ^ +patch.c:260:22: warning: passing argument 1 of 'console_post' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] + 260 | console_post("Patch copied to clipboard"); + | ^~~~~~~~~~~~~~~~~~~~~~~~~~~ pattern.c:637:66: warning: conversion from 'int' to 'float' may change value [-Wconversion] 637 | glVertex2f(1+PIANOROLL_X+j*PIANOROLL_CELLWIDTH, PIANOROLL_Y-(n-coct*12+1)*PIANOROLL_CELLHEIGHT); | ^ +console.h:23:25: note: expected 'char *' but argument is of type 'const char *' + 23 | void console_post(char *msg); + | ~~~~~~^~~ +patch.c:273:24: warning: passing argument 1 of 'console_post' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] + 273 | console_post("Patch pasted from clipboard"); + | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~ pattern.c:645:7: warning: conversion to 'int' from 'long unsigned int' may change the sign of the result [-Wsign-conversion] 645 | n=pattdata[cpatt][piano_start+piano_porta_drag]; | ^~~~~~~~ +console.h:23:25: note: expected 'char *' but argument is of type 'const char *' + 23 | void console_post(char *msg); + | ~~~~~~^~~ +patch.c:336:76: warning: conversion to 'int' from 'unsigned int' may change the sign of the result [-Wsign-conversion] + 336 | patch_modulator_floatval=knob_float2scale(mod[csynth][mi].scale, modvalue[ csynth ][cpatch[csynth]][ mi ]); + | ~~~~~~~~~~~~~~~^~~~~~ pattern.c:648:29: warning: conversion from 'int' to 'float' may change value [-Wconversion] 648 | glVertex2f(1+PIANOROLL_X+piano_porta_drag*PIANOROLL_CELLWIDTH, PIANOROLL_Y-1-(n-coct*12)*PIANOROLL_CELLHEIGHT); | ^ pattern.c:648:81: warning: conversion from 'int' to 'float' may change value [-Wconversion] 648 | glVertex2f(1+PIANOROLL_X+piano_porta_drag*PIANOROLL_CELLWIDTH, PIANOROLL_Y-1-(n-coct*12)*PIANOROLL_CELLHEIGHT); | ^ +patch.c:341:42: warning: conversion from 'float' to 'int' may change value [-Wfloat-conversion] + 341 | patch_modulator_intval=modvalue[ csynth ][cpatch[csynth]][ mi ]; + | ^~~~~~~~ pattern.c:649:27: warning: conversion from 'int' to 'float' may change value [-Wconversion] 649 | glVertex2f(PIANOROLL_X+(piano_porta_drag+piano_porta_drag_len)*PIANOROLL_CELLWIDTH, PIANOROLL_Y-1-(n-coct*12)*PIANOROLL_CELLHEIGHT); | ^ +patch.c:334:15: warning: switch missing default case [-Wswitch-default] + 334 | switch(modModulatorTypes[mod[csynth][mi].type]) { + | ^~~~~~ +patch.c:344:27: warning: ISO C forbids passing argument 1 of 'dialog_open' between function pointer and 'void *' [-Wpedantic] + 344 | dialog_open(&patch_draw_modulator, &patch_modulator_hover, &patch_modulator_click); + | ^~~~~~~~~~~~~~~~~~~~~ pattern.c:649:102: warning: conversion from 'int' to 'float' may change value [-Wconversion] 649 | glVertex2f(PIANOROLL_X+(piano_porta_drag+piano_porta_drag_len)*PIANOROLL_CELLWIDTH, PIANOROLL_Y-1-(n-coct*12)*PIANOROLL_CELLHEIGHT); | ^ +In file included from synthesizer.h:28: +dialog.h:22:24: note: expected 'void *' but argument is of type 'void (*)(void)' + 22 | void dialog_open(void *draw, void *hover, void *click); + | ~~~~~~^~~~ +patch.c:344:50: warning: ISO C forbids passing argument 2 of 'dialog_open' between function pointer and 'void *' [-Wpedantic] + 344 | dialog_open(&patch_draw_modulator, &patch_modulator_hover, &patch_modulator_click); + | ^~~~~~~~~~~~~~~~~~~~~~ +dialog.h:22:36: note: expected 'void *' but argument is of type 'void (*)(int, int)' + 22 | void dialog_open(void *draw, void *hover, void *click); + | ~~~~~~^~~~~ +patch.c:344:74: warning: ISO C forbids passing argument 3 of 'dialog_open' between function pointer and 'void *' [-Wpedantic] + 344 | dialog_open(&patch_draw_modulator, &patch_modulator_hover, &patch_modulator_click); + | ^~~~~~~~~~~~~~~~~~~~~~ +dialog.h:22:49: note: expected 'void *' but argument is of type 'void (*)(int, int, int, int)' + 22 | void dialog_open(void *draw, void *hover, void *click); + | ~~~~~~^~~~~ +patch.c:345:35: warning: ISO C forbids passing argument 1 of 'dialog_bindkeyboard' between function pointer and 'void *' [-Wpedantic] + 345 | dialog_bindkeyboard(&patch_modulator_keyboard); + | ^~~~~~~~~~~~~~~~~~~~~~~~~ +dialog.h:23:32: note: expected 'void *' but argument is of type 'void (*)(unsigned char, int, int)' + 23 | void dialog_bindkeyboard(void *kbfunc); + | ~~~~~~^~~~~~ +patch.c:346:34: warning: ISO C forbids passing argument 1 of 'dialog_bindspecial' between function pointer and 'void *' [-Wpedantic] + 346 | dialog_bindspecial(&patch_modulator_special); + | ^~~~~~~~~~~~~~~~~~~~~~~~ +dialog.h:24:31: note: expected 'void *' but argument is of type 'void (*)(int, int, int)' + 24 | void dialog_bindspecial(void *specialfunc); + | ~~~~~~^~~~~~~~~~~ +patch.c:351:24: warning: passing argument 1 of 'console_post' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] + 351 | console_post("No settings for this module!"); + | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ +console.h:23:25: note: expected 'char *' but argument is of type 'const char *' + 23 | void console_post(char *msg); + | ~~~~~~^~~ +patch.c: In function 'patch_keyboard': +patch.c:378:3: warning: switch missing default case [-Wswitch-default] + 378 | switch (key) { + | ^~~~~~ +patch.c:367:44: warning: unused parameter 'x' [-Wunused-parameter] + 367 | void patch_keyboard(unsigned char key, int x, int y) + | ~~~~^ +patch.c:367:51: warning: unused parameter 'y' [-Wunused-parameter] + 367 | void patch_keyboard(unsigned char key, int x, int y) + | ~~~~^ +patch.c: In function 'patch_keyboardup': pattern.c:650:27: warning: conversion from 'int' to 'float' may change value [-Wconversion] 650 | glVertex2f(PIANOROLL_X+(piano_porta_drag+piano_porta_drag_len)*PIANOROLL_CELLWIDTH, PIANOROLL_Y-(n-coct*12+1)*PIANOROLL_CELLHEIGHT); | ^ +patch.c:401:46: warning: unused parameter 'x' [-Wunused-parameter] + 401 | void patch_keyboardup(unsigned char key, int x, int y) + | ~~~~^ +patch.c:401:53: warning: unused parameter 'y' [-Wunused-parameter] + 401 | void patch_keyboardup(unsigned char key, int x, int y) + | ~~~~^ pattern.c:650:100: warning: conversion from 'int' to 'float' may change value [-Wconversion] 650 | glVertex2f(PIANOROLL_X+(piano_porta_drag+piano_porta_drag_len)*PIANOROLL_CELLWIDTH, PIANOROLL_Y-(n-coct*12+1)*PIANOROLL_CELLHEIGHT); | ^ +patch.c: In function 'patch_specialkey': +patch.c:419:3: warning: switch missing default case [-Wswitch-default] + 419 | switch(key) + | ^~~~~~ pattern.c:651:29: warning: conversion from 'int' to 'float' may change value [-Wconversion] 651 | glVertex2f(1+PIANOROLL_X+piano_porta_drag*PIANOROLL_CELLWIDTH, PIANOROLL_Y-(n-coct*12+1)*PIANOROLL_CELLHEIGHT); | ^ +patch.c:417:46: warning: unused parameter 'x' [-Wunused-parameter] + 417 | void patch_specialkey(unsigned char key, int x, int y) + | ~~~~^ +patch.c:417:53: warning: unused parameter 'y' [-Wunused-parameter] + 417 | void patch_specialkey(unsigned char key, int x, int y) + | ~~~~^ pattern.c:651:79: warning: conversion from 'int' to 'float' may change value [-Wconversion] 651 | glVertex2f(1+PIANOROLL_X+piano_porta_drag*PIANOROLL_CELLWIDTH, PIANOROLL_Y-(n-coct*12+1)*PIANOROLL_CELLHEIGHT); | ^ +patch.c: In function 'patch_draw': pattern.c:653:31: warning: comparison of integer expressions of different signedness: 'int' and 'long unsigned int' [-Wsign-compare] 653 | if (piano_porta_drag_from != pattdata[cpatt][piano_start+piano_porta_drag]) { | ^~ +patch.c:460:19: warning: conversion from 'int' to 'GLfloat' {aka 'float'} may change value [-Wconversion] + 460 | glVertex2f(x+16, 8+m*16-yd); + | ~^~~ pattern.c:657:31: warning: conversion from 'int' to 'float' may change value [-Wconversion] 657 | glVertex2f(1+PIANOROLL_X+piano_porta_drag*PIANOROLL_CELLWIDTH, PIANOROLL_Y-1-(n-coct*12)*PIANOROLL_CELLHEIGHT); | ^ +patch.c:460:31: warning: conversion from 'int' to 'GLfloat' {aka 'float'} may change value [-Wconversion] + 460 | glVertex2f(x+16, 8+m*16-yd); + | ~~~~~~^~~ +patch.c:461:19: warning: conversion from 'int' to 'GLfloat' {aka 'float'} may change value [-Wconversion] + 461 | glVertex2f(x+380, 8+m*16-yd); + | ~^~~~ pattern.c:657:83: warning: conversion from 'int' to 'float' may change value [-Wconversion] 657 | glVertex2f(1+PIANOROLL_X+piano_porta_drag*PIANOROLL_CELLWIDTH, PIANOROLL_Y-1-(n-coct*12)*PIANOROLL_CELLHEIGHT); | ^ +patch.c:461:31: warning: conversion from 'int' to 'GLfloat' {aka 'float'} may change value [-Wconversion] + 461 | glVertex2f(x+380, 8+m*16-yd); + | ~~~~~~^~~ +patch.c:462:19: warning: conversion from 'int' to 'GLfloat' {aka 'float'} may change value [-Wconversion] + 462 | glVertex2f(x+380, 24+m*16-yd); + | ~^~~~ pattern.c:658:29: warning: conversion from 'int' to 'float' may change value [-Wconversion] 658 | glVertex2f(PIANOROLL_X+(piano_porta_drag+piano_porta_drag_len)*PIANOROLL_CELLWIDTH, PIANOROLL_Y-1-(n-coct*12)*PIANOROLL_CELLHEIGHT); | ^ +patch.c:462:32: warning: conversion from 'int' to 'GLfloat' {aka 'float'} may change value [-Wconversion] + 462 | glVertex2f(x+380, 24+m*16-yd); + | ~~~~~~~^~~ pattern.c:658:104: warning: conversion from 'int' to 'float' may change value [-Wconversion] 658 | glVertex2f(PIANOROLL_X+(piano_porta_drag+piano_porta_drag_len)*PIANOROLL_CELLWIDTH, PIANOROLL_Y-1-(n-coct*12)*PIANOROLL_CELLHEIGHT); | ^ +patch.c:463:19: warning: conversion from 'int' to 'GLfloat' {aka 'float'} may change value [-Wconversion] + 463 | glVertex2f(x+16, 24+m*16-yd); + | ~^~~ +patch.c:463:32: warning: conversion from 'int' to 'GLfloat' {aka 'float'} may change value [-Wconversion] + 463 | glVertex2f(x+16, 24+m*16-yd); + | ~~~~~~~^~~ pattern.c:659:29: warning: conversion from 'int' to 'float' may change value [-Wconversion] 659 | glVertex2f(PIANOROLL_X+(piano_porta_drag+piano_porta_drag_len)*PIANOROLL_CELLWIDTH, PIANOROLL_Y-(n-coct*12+1)*PIANOROLL_CELLHEIGHT); | ^ +patch.c:467:51: warning: conversion from 'int' to 'float' may change value [-Wconversion] + 467 | sprintf(tmps, "%02d", mi); render_text(tmps, x+20, 20+mm*16-yd, 2, 0xff505050, 0); + | ~^~~ pattern.c:659:102: warning: conversion from 'int' to 'float' may change value [-Wconversion] 659 | glVertex2f(PIANOROLL_X+(piano_porta_drag+piano_porta_drag_len)*PIANOROLL_CELLWIDTH, PIANOROLL_Y-(n-coct*12+1)*PIANOROLL_CELLHEIGHT); | ^ +patch.c:467:64: warning: conversion from 'int' to 'float' may change value [-Wconversion] + 467 | sprintf(tmps, "%02d", mi); render_text(tmps, x+20, 20+mm*16-yd, 2, 0xff505050, 0); + | ~~~~~~~~^~~ +patch.c:468:81: warning: conversion from 'int' to 'float' may change value [-Wconversion] + 468 | sprintf(tmps, "%s", modTypeNames[mod[csynth][mi].type]); render_text(tmps, x+44, 20+mm*16-yd, 2, 0xffc0c0c0, 0); + | ~^~~ pattern.c:660:31: warning: conversion from 'int' to 'float' may change value [-Wconversion] 660 | glVertex2f(1+PIANOROLL_X+piano_porta_drag*PIANOROLL_CELLWIDTH, PIANOROLL_Y-(n-coct*12+1)*PIANOROLL_CELLHEIGHT); | ^ +patch.c:468:94: warning: conversion from 'int' to 'float' may change value [-Wconversion] + 468 | sprintf(tmps, "%s", modTypeNames[mod[csynth][mi].type]); render_text(tmps, x+44, 20+mm*16-yd, 2, 0xffc0c0c0, 0); + | ~~~~~~~~^~~ pattern.c:660:81: warning: conversion from 'int' to 'float' may change value [-Wconversion] 660 | glVertex2f(1+PIANOROLL_X+piano_porta_drag*PIANOROLL_CELLWIDTH, PIANOROLL_Y-(n-coct*12+1)*PIANOROLL_CELLHEIGHT); | ^ +patch.c:476:24: warning: conversion from 'int' to 'float' may change value [-Wconversion] + 476 | render_text(tmps, x+110, 20+mm*16-yd, 2, 0xff808080, 0); + | ~^~~~ pattern.c:667:7: warning: conversion to 'int' from 'long unsigned int' may change the sign of the result [-Wsign-conversion] 667 | n=pattdata[cpatt][piano_start+piano_drag]; | ^~~~~~~~ +patch.c:476:38: warning: conversion from 'int' to 'float' may change value [-Wconversion] + 476 | render_text(tmps, x+110, 20+mm*16-yd, 2, 0xff808080, 0); + | ~~~~~~~~^~~ pattern.c:670:29: warning: conversion from 'int' to 'float' may change value [-Wconversion] 670 | glVertex2f(1+PIANOROLL_X+piano_drag*PIANOROLL_CELLWIDTH, PIANOROLL_Y-1-(n-coct*12)*PIANOROLL_CELLHEIGHT); | ^ +patch.c:483:45: warning: conversion to 'int' from 'unsigned int' may change the sign of the result [-Wsign-conversion] + 483 | f=knob_float2scale(mod[csynth][mi].scale, modvalue[ csynth ][ cpatch[csynth] ][ mi ]); + | ~~~~~~~~~~~~~~~^~~~~~ pattern.c:670:75: warning: conversion from 'int' to 'float' may change value [-Wconversion] 670 | glVertex2f(1+PIANOROLL_X+piano_drag*PIANOROLL_CELLWIDTH, PIANOROLL_Y-1-(n-coct*12)*PIANOROLL_CELLHEIGHT); | ^ +patch.c:478:5: warning: switch missing default case [-Wswitch-default] + 478 | switch(modModulatorTypes[mod[csynth][mi].type]) + | ^~~~~~ pattern.c:671:27: warning: conversion from 'int' to 'float' may change value [-Wconversion] 671 | glVertex2f(PIANOROLL_X+(piano_dragto+1)*PIANOROLL_CELLWIDTH, PIANOROLL_Y-1-(n-coct*12)*PIANOROLL_CELLHEIGHT); | ^ +patch.c:496:24: warning: conversion from 'int' to 'float' may change value [-Wconversion] + 496 | render_text(tmps, x+250, 20+mm*16-yd, 2, 0xffc0c0c0, 0); + | ~^~~~ pattern.c:671:79: warning: conversion from 'int' to 'float' may change value [-Wconversion] 671 | glVertex2f(PIANOROLL_X+(piano_dragto+1)*PIANOROLL_CELLWIDTH, PIANOROLL_Y-1-(n-coct*12)*PIANOROLL_CELLHEIGHT); | ^ +patch.c:496:38: warning: conversion from 'int' to 'float' may change value [-Wconversion] + 496 | render_text(tmps, x+250, 20+mm*16-yd, 2, 0xffc0c0c0, 0); + | ~~~~~~~~^~~ pattern.c:672:27: warning: conversion from 'int' to 'float' may change value [-Wconversion] 672 | glVertex2f(PIANOROLL_X+(piano_dragto+1)*PIANOROLL_CELLWIDTH, PIANOROLL_Y-(n-coct*12+1)*PIANOROLL_CELLHEIGHT); | ^ +patch.c:506:29: warning: conversion from 'int' to 'float' may change value [-Wconversion] + 506 | draw_kbhoct(PIANO_LEFT+m*16*7, PIANO_TOP, 16, 70, m, cpkey, rkdown, &pianokeys[(m-coct)*12]); + | ^ pattern.c:672:77: warning: conversion from 'int' to 'float' may change value [-Wconversion] 672 | glVertex2f(PIANOROLL_X+(piano_dragto+1)*PIANOROLL_CELLWIDTH, PIANOROLL_Y-(n-coct*12+1)*PIANOROLL_CELLHEIGHT); | ^ +patch.c:508:29: warning: conversion from 'int' to 'float' may change value [-Wconversion] + 508 | draw_kbhoct(PIANO_LEFT+m*16*7, PIANO_TOP, 16, 70, m, cpkey, rkdown, NULL); + | ^ pattern.c:673:29: warning: conversion from 'int' to 'float' may change value [-Wconversion] 673 | glVertex2f(1+PIANOROLL_X+piano_drag*PIANOROLL_CELLWIDTH, PIANOROLL_Y-(n-coct*12+1)*PIANOROLL_CELLHEIGHT); | ^ +patch.c:513:31: warning: passing argument 4 of 'draw_button' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] + 513 | draw_button(17, 520-12, 16, "-", patch_ui[B_OCTDN]); + | ^~~ pattern.c:673:73: warning: conversion from 'int' to 'float' may change value [-Wconversion] 673 | glVertex2f(1+PIANOROLL_X+piano_drag*PIANOROLL_CELLWIDTH, PIANOROLL_Y-(n-coct*12+1)*PIANOROLL_CELLHEIGHT); | ^ +widgets.h:37:54: note: expected 'char *' but argument is of type 'const char *' + 37 | void draw_button(float x, float y, float size, char *label, int type); + | ~~~~~~^~~~~ +patch.c:514:40: warning: passing argument 4 of 'draw_button' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] + 514 | draw_button(DS_WIDTH-17, 520-12, 16, "+", patch_ui[B_OCTUP]); + | ^~~ pattern.c:683:35: warning: conversion from 'int' to 'float' may change value [-Wconversion] 683 | PIANOROLL_Y-1-(kpkeydown-coct*12)*PIANOROLL_CELLHEIGHT); | ^ +widgets.h:37:54: note: expected 'char *' but argument is of type 'const char *' + 37 | void draw_button(float x, float y, float size, char *label, int type); + | ~~~~~~^~~~~ +patch.c:519:38: warning: passing argument 4 of 'draw_button' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] + 519 | draw_button(622, DS_HEIGHT-14, 16, "C", patch_ui[B_COPY]); + | ^~~ +widgets.h:37:54: note: expected 'char *' but argument is of type 'const char *' + 37 | void draw_button(float x, float y, float size, char *label, int type); + | ~~~~~~^~~~~ +patch.c:520:38: warning: passing argument 4 of 'draw_button' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] + 520 | draw_button(644, DS_HEIGHT-14, 16, "V", patch_ui[B_PASTE]); + | ^~~ pattern.c:685:49: warning: conversion to 'long unsigned int' from 'int' may change the sign of the result [-Wsign-conversion] 685 | glVertex2f(PIANOROLL_X+(pattlen[cpatt]*(beats_per_measure*beatdiv)-piano_start)*PIANOROLL_CELLWIDTH, | ^ +widgets.h:37:54: note: expected 'char *' but argument is of type 'const char *' + 37 | void draw_button(float x, float y, float size, char *label, int type); + | ~~~~~~^~~~~ +patch.c:529:38: warning: passing argument 4 of 'draw_button' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] + 529 | draw_button(310, DS_HEIGHT-14, 16, "<<", patch_ui[B_PREV]); + | ^~~~ pattern.c:685:77: warning: conversion to 'long unsigned int' from 'int' may change the sign of the result [-Wsign-conversion] 685 | glVertex2f(PIANOROLL_X+(pattlen[cpatt]*(beats_per_measure*beatdiv)-piano_start)*PIANOROLL_CELLWIDTH, | ^ +widgets.h:37:54: note: expected 'char *' but argument is of type 'const char *' + 37 | void draw_button(float x, float y, float size, char *label, int type); + | ~~~~~~^~~~~ +patch.c:532:38: warning: passing argument 4 of 'draw_button' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] + 532 | draw_button(362, DS_HEIGHT-14, 16, ">>", patch_ui[B_NEXT]); + | ^~~~ pattern.c:685:33: warning: conversion from 'long unsigned int' to 'float' may change value [-Wconversion] 685 | glVertex2f(PIANOROLL_X+(pattlen[cpatt]*(beats_per_measure*beatdiv)-piano_start)*PIANOROLL_CELLWIDTH, | ^ +widgets.h:37:54: note: expected 'char *' but argument is of type 'const char *' + 37 | void draw_button(float x, float y, float size, char *label, int type); + | ~~~~~~^~~~~ +patch.c:534:37: warning: passing argument 4 of 'draw_button' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] + 534 | draw_button(14, DS_HEIGHT-14, 16, "<<", patch_ui[B_PREVSYN]); + | ^~~~ pattern.c:686:35: warning: conversion from 'int' to 'float' may change value [-Wconversion] 686 | PIANOROLL_Y-1-(kpkeydown-coct*12)*PIANOROLL_CELLHEIGHT); | ^ +widgets.h:37:54: note: expected 'char *' but argument is of type 'const char *' + 37 | void draw_button(float x, float y, float size, char *label, int type); + | ~~~~~~^~~~~ +patch.c:537:38: warning: passing argument 4 of 'draw_button' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] + 537 | draw_button(230, DS_HEIGHT-14, 16, ">>", patch_ui[B_NEXTSYN]); + | ^~~~ pattern.c:688:49: warning: conversion to 'long unsigned int' from 'int' may change the sign of the result [-Wsign-conversion] 688 | glVertex2f(PIANOROLL_X+(pattlen[cpatt]*(beats_per_measure*beatdiv)-piano_start)*PIANOROLL_CELLWIDTH, | ^ +widgets.h:37:54: note: expected 'char *' but argument is of type 'const char *' + 37 | void draw_button(float x, float y, float size, char *label, int type); + | ~~~~~~^~~~~ +patch.c: In function 'patch_draw_modulator': pattern.c:688:77: warning: conversion to 'long unsigned int' from 'int' may change the sign of the result [-Wsign-conversion] 688 | glVertex2f(PIANOROLL_X+(pattlen[cpatt]*(beats_per_measure*beatdiv)-piano_start)*PIANOROLL_CELLWIDTH, | ^ pattern.c:688:33: warning: conversion from 'long unsigned int' to 'float' may change value [-Wconversion] 688 | glVertex2f(PIANOROLL_X+(pattlen[cpatt]*(beats_per_measure*beatdiv)-piano_start)*PIANOROLL_CELLWIDTH, | ^ +patch.c:558:55: warning: passing argument 5 of 'draw_textbox' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] + 558 | draw_textbox((DS_WIDTH/2), (DS_HEIGHT/2), 120, 226, "", 0); + | ^~ +widgets.h:38:71: note: expected 'char *' but argument is of type 'const char *' + 38 | void draw_textbox(float x, float y, float height, float length, char *label, int type); + | ~~~~~~^~~~~ +patch.c:568:53: warning: passing argument 4 of 'draw_button' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] + 568 | draw_button((DS_WIDTH/2)+96, (DS_HEIGHT/2)+2, 16, "+", modulator_ui[B_MOD_ADDPREC]); + | ^~~ pattern.c:689:33: warning: conversion from 'int' to 'float' may change value [-Wconversion] 689 | PIANOROLL_Y-(kpkeydown-coct*12+1)*PIANOROLL_CELLHEIGHT); | ^ pattern.c:692:33: warning: conversion from 'int' to 'float' may change value [-Wconversion] 692 | PIANOROLL_Y-(kpkeydown-coct*12+1)*PIANOROLL_CELLHEIGHT); | ^ +widgets.h:37:54: note: expected 'char *' but argument is of type 'const char *' + 37 | void draw_button(float x, float y, float size, char *label, int type); + | ~~~~~~^~~~~ +patch.c:569:53: warning: passing argument 4 of 'draw_button' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] + 569 | draw_button((DS_WIDTH/2)-28, (DS_HEIGHT/2)+2, 16, "-", modulator_ui[B_MOD_DECPREC]); + | ^~~ pattern.c:700:18: warning: conversion to 'long unsigned int' from 'int' may change the sign of the result [-Wsign-conversion] 700 | pattlen[cpatt]*(beats_per_measure*beatdiv), | ^ +widgets.h:37:54: note: expected 'char *' but argument is of type 'const char *' + 37 | void draw_button(float x, float y, float size, char *label, int type); + | ~~~~~~^~~~~ +patch.c:574:42: warning: conversion to 'int' from 'unsigned int' may change the sign of the result [-Wsign-conversion] + 574 | rf=knob_scale2float(mod[csynth][mi].scale, rf); + | ~~~~~~~~~~~~~~~^~~~~~ pattern.c:699:4: warning: conversion from 'int' to 'float' may change value [-Wconversion] 699 | piano_start, (DS_WIDTH-(PIANOROLL_X+4))/PIANOROLL_CELLWIDTH, | ^~~~~~~~~~~ +patch.c:579:41: warning: conversion to 'int' from 'unsigned int' may change the sign of the result [-Wsign-conversion] + 579 | f=knob_float2scale(mod[csynth][mi].scale, rf); + | ~~~~~~~~~~~~~~~^~~~~~ pattern.c:700:18: warning: conversion from 'long unsigned int' to 'float' may change value [-Wconversion] 700 | pattlen[cpatt]*(beats_per_measure*beatdiv), | ~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~ +patch.c: In function 'patch_modulator_hover': pattern.c:704:37: warning: passing argument 4 of 'draw_button' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] 704 | draw_button(14, DS_HEIGHT-14, 16, "<<", patt_ui[B_PREV]); | ^~~~ +patch.c:596:45: warning: conversion from 'int' to 'float' may change value [-Wconversion] + 596 | modulator_ui[B_MOD_ADDPREC]=hovertest_box(x, y, (DS_WIDTH/2)+96, (DS_HEIGHT/2)+2, 16, 16); + | ^ widgets.h:37:54: note: expected 'char *' but argument is of type 'const char *' 37 | void draw_button(float x, float y, float size, char *label, int type); | ~~~~~~^~~~~ pattern.c:707:37: warning: passing argument 4 of 'draw_button' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] 707 | draw_button(64, DS_HEIGHT-14, 16, ">>", patt_ui[B_NEXT]); | ^~~~ +patch.c:596:48: warning: conversion from 'int' to 'float' may change value [-Wconversion] + 596 | modulator_ui[B_MOD_ADDPREC]=hovertest_box(x, y, (DS_WIDTH/2)+96, (DS_HEIGHT/2)+2, 16, 16); + | ^ +patch.c:597:45: warning: conversion from 'int' to 'float' may change value [-Wconversion] + 597 | modulator_ui[B_MOD_DECPREC]=hovertest_box(x, y, (DS_WIDTH/2)-28, (DS_HEIGHT/2)+2 , 16, 16); + | ^ widgets.h:37:54: note: expected 'char *' but argument is of type 'const char *' 37 | void draw_button(float x, float y, float size, char *label, int type); | ~~~~~~^~~~~ pattern.c:709:37: warning: passing argument 4 of 'draw_button' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] 709 | draw_button(98, DS_HEIGHT-14, 16, "<<", patt_ui[B_SHORTER]); | ^~~~ +patch.c:597:48: warning: conversion from 'int' to 'float' may change value [-Wconversion] + 597 | modulator_ui[B_MOD_DECPREC]=hovertest_box(x, y, (DS_WIDTH/2)-28, (DS_HEIGHT/2)+2 , 16, 16); + | ^ widgets.h:37:54: note: expected 'char *' but argument is of type 'const char *' 37 | void draw_button(float x, float y, float size, char *label, int type); | ~~~~~~^~~~~ pattern.c:712:38: warning: passing argument 4 of 'draw_button' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] 712 | draw_button(180, DS_HEIGHT-14, 16, ">>", patt_ui[B_LONGER]); | ^~~~ +patch.c:600:44: warning: conversion from 'int' to 'float' may change value [-Wconversion] + 600 | modulator_ui[B_MOD_VALUE]|=hovertest_box(x, y, (DS_WIDTH/2)+34, (DS_HEIGHT/2)-20, 16, 140); + | ^ +patch.c:600:47: warning: conversion from 'int' to 'float' may change value [-Wconversion] + 600 | modulator_ui[B_MOD_VALUE]|=hovertest_box(x, y, (DS_WIDTH/2)+34, (DS_HEIGHT/2)-20, 16, 140); + | ^ widgets.h:37:54: note: expected 'char *' but argument is of type 'const char *' 37 | void draw_button(float x, float y, float size, char *label, int type); | ~~~~~~^~~~~ pattern.c:714:41: warning: passing argument 4 of 'draw_button' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] 714 | draw_button(12, PIANOROLL_Y+15.5, 16, "DN", patt_ui[B_OCTDN]); | ^~~~ +patch.c: In function 'patch_modulator_click': +patch.c:609:42: warning: conversion from 'int' to 'float' may change value [-Wconversion] + 609 | if (state==GLUT_DOWN && !hovertest_box(x,y,(DS_WIDTH/2),(DS_HEIGHT/2),120,226 )) { + | ^ widgets.h:37:54: note: expected 'char *' but argument is of type 'const char *' 37 | void draw_button(float x, float y, float size, char *label, int type); | ~~~~~~^~~~~ pattern.c:715:41: warning: passing argument 4 of 'draw_button' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] 715 | draw_button(32, PIANOROLL_Y+15.5, 16, "UP", patt_ui[B_OCTUP]); | ^~~~ +patch.c:609:44: warning: conversion from 'int' to 'float' may change value [-Wconversion] + 609 | if (state==GLUT_DOWN && !hovertest_box(x,y,(DS_WIDTH/2),(DS_HEIGHT/2),120,226 )) { + | ^ widgets.h:37:54: note: expected 'char *' but argument is of type 'const char *' 37 | void draw_button(float x, float y, float size, char *label, int type); | ~~~~~~^~~~~ pattern.c:717:38: warning: passing argument 4 of 'draw_button' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] 717 | draw_button(214, DS_HEIGHT-14, 16, "<<", patt_ui[B_PREVSYN]); | ^~~~ +patch.c:616:50: warning: conversion from 'int' to 'float' may change value [-Wconversion] + 616 | if (button==GLUT_RIGHT_BUTTON && hovertest_box(x,y,(DS_WIDTH/2),(DS_HEIGHT/2),120,226 )) { + | ^ widgets.h:37:54: note: expected 'char *' but argument is of type 'const char *' 37 | void draw_button(float x, float y, float size, char *label, int type); | ~~~~~~^~~~~ pattern.c:720:38: warning: passing argument 4 of 'draw_button' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] 720 | draw_button(430, DS_HEIGHT-14, 16, ">>", patt_ui[B_NEXTSYN]); | ^~~~ +patch.c:616:52: warning: conversion from 'int' to 'float' may change value [-Wconversion] + 616 | if (button==GLUT_RIGHT_BUTTON && hovertest_box(x,y,(DS_WIDTH/2),(DS_HEIGHT/2),120,226 )) { + | ^ +patch.c:622:45: warning: conversion to 'int' from 'unsigned int' may change the sign of the result [-Wsign-conversion] + 622 | f=knob_scale2float(mod[csynth][mi].scale, f); + | ~~~~~~~~~~~~~~~^~~~~~ widgets.h:37:54: note: expected 'char *' but argument is of type 'const char *' 37 | void draw_button(float x, float y, float size, char *label, int type); | ~~~~~~^~~~~ pattern.c:722:17: warning: conversion to 'long unsigned int' from 'int' may change the sign of the result [-Wsign-conversion] 722 | ticks=playpos / (OUTPUTFREQ/(bpm*256/60)); | ^ +patch.c:618:5: warning: switch missing default case [-Wswitch-default] + 618 | switch(modModulatorTypes[mod[csynth][mi].type]) { + | ^~~~~~ pattern.c:722:9: warning: conversion to 'long int' from 'long unsigned int' may change the sign of the result [-Wsign-conversion] 722 | ticks=playpos / (OUTPUTFREQ/(bpm*256/60)); | ^~~~~~~ -gcc -DPACKAGE_NAME=\"komposter\" -DPACKAGE_TARNAME=\"komposter\" -DPACKAGE_VERSION=\"2.0.0\" -DPACKAGE_STRING=\"komposter\ 2.0.0\" -DPACKAGE_BUGREPORT=\"email\" -DPACKAGE_URL=\"\" -DPACKAGE=\"komposter\" -DVERSION=\"2.0.0\" -DSTDC_HEADERS=1 -DHAVE_SYS_TYPES_H=1 -DHAVE_SYS_STAT_H=1 -DHAVE_STDLIB_H=1 -DHAVE_STRING_H=1 -DHAVE_MEMORY_H=1 -DHAVE_STRINGS_H=1 -DHAVE_INTTYPES_H=1 -DHAVE_STDINT_H=1 -DHAVE_UNISTD_H=1 -DENABLE_FREETYPE=1 -DHAVE_LIBGLUT=1 -DENABLE_GLUT=1 -DENABLE_OPENAL=1 -DHAVE_LIBGL=1 -DHAVE_LIBGLU=1 -DENABLE_OPENGL=1 -DHAVE_LIBM=1 -DHAVE_LIBPTHREAD=1 -I. -DRESOURCEPATH=\"/usr/share/komposter/\" -Wdate-time -D_FORTIFY_SOURCE=2 -I/usr/local/include -g -O2 -ffile-prefix-map=/build/reproducible-path/komposter-0+git20201216+ds=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -Wall -pedantic -O3 -fcx-limited-range -ffinite-math-only -fno-math-errno -fno-rounding-math -fno-signaling-nans -fno-trapping-math -fgcse-las -fgcse-sm -fsee -fsingle-precision-constant -fomit-frame-pointer -Wcast-align -Wconversion -Wdisabled-optimization -Wextra -Winit-self -Winvalid-pch -Wmissing-format-attribute -Wmissing-include-dirs -Wmissing-noreturn -Wno-multichar -Wpacked -Wredundant-decls -Wshadow -Wswitch-default -Wundef -Wwrite-strings -Wbad-function-cast -Wmissing-declarations -Wmissing-prototypes -Wnested-externs -Wold-style-definition -Wstrict-prototypes -ftracer -fweb -pipe -Werror-implicit-function-declaration -I/usr/include/freetype2 -I/usr/include/libpng16 -I/usr/include/AL -c -o sequencer.o sequencer.c +patch.c:643:9: warning: this 'if' clause does not guard... [-Wmisleading-indentation] + 643 | if (modquantifier[ csynth ][cpatch[csynth]][ mi ]<32) modquantifier[ csynth ][cpatch[csynth]][ mi ]++; return; + | ^~ pattern.c:730:38: warning: passing argument 4 of 'draw_button' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] 730 | draw_button(555, DS_HEIGHT-14, 16, "X", patt_ui[B_PATTCLEAR]); | ^~~ +patch.c:643:112: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the 'if' + 643 | if (modquantifier[ csynth ][cpatch[csynth]][ mi ]<32) modquantifier[ csynth ][cpatch[csynth]][ mi ]++; return; + | ^~~~~~ widgets.h:37:54: note: expected 'char *' but argument is of type 'const char *' 37 | void draw_button(float x, float y, float size, char *label, int type); | ~~~~~~^~~~~ pattern.c:732:38: warning: passing argument 4 of 'draw_button' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] 732 | draw_button(622, DS_HEIGHT-14, 16, "C", patt_ui[B_COPY]); | ^~~ +patch.c:647:9: warning: this 'if' clause does not guard... [-Wmisleading-indentation] + 647 | if (modquantifier[ csynth ][cpatch[csynth]][ mi ]>12) modquantifier[ csynth ][cpatch[csynth]][ mi ]--; return; + | ^~ widgets.h:37:54: note: expected 'char *' but argument is of type 'const char *' 37 | void draw_button(float x, float y, float size, char *label, int type); | ~~~~~~^~~~~ pattern.c:733:38: warning: passing argument 4 of 'draw_button' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] 733 | draw_button(644, DS_HEIGHT-14, 16, "V", patt_ui[B_PASTE]); | ^~~ +patch.c:647:112: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the 'if' + 647 | if (modquantifier[ csynth ][cpatch[csynth]][ mi ]>12) modquantifier[ csynth ][cpatch[csynth]][ mi ]--; return; + | ^~~~~~ +patch.c: In function 'patch_modulator_special': widgets.h:37:54: note: expected 'char *' but argument is of type 'const char *' 37 | void draw_button(float x, float y, float size, char *label, int type); | ~~~~~~^~~~~ -In file included from sequencer.h:17, - from sequencer.c:13: -arch.h:15:5: warning: "__x86_64__" is not defined, evaluates to 0 [-Wundef] - 15 | #if __x86_64__ - | ^~~~~~~~~~ +patch.c:674:39: warning: conversion to 'int' from 'unsigned int' may change the sign of the result [-Wsign-conversion] + 674 | f=knob_float2scale(mod[csynth][mi].scale, modvalue[ csynth ][cpatch[csynth]][ mi ]); + | ~~~~~~~~~~~~~~~^~~~~~ +patch.c:713:78: warning: conversion to 'int' from 'unsigned int' may change the sign of the result [-Wsign-conversion] + 713 | modvalue[ csynth ][cpatch[csynth]][ mi ]=knob_scale2float(mod[csynth][mi].scale, f); + | ~~~~~~~~~~~~~~~^~~~~~ +patch.c:662:43: warning: unused parameter 'x' [-Wunused-parameter] + 662 | void patch_modulator_special(int key, int x, int y) + | ~~~~^ +patch.c:662:50: warning: unused parameter 'y' [-Wunused-parameter] + 662 | void patch_modulator_special(int key, int x, int y) + | ~~~~^ +patch.c: In function 'patch_modulator_keyboard': +patch.c:739:45: warning: conversion to 'int' from 'unsigned int' may change the sign of the result [-Wsign-conversion] + 739 | f=knob_scale2float(mod[csynth][mi].scale, f); + | ~~~~~~~~~~~~~~~^~~~~~ +patch.c:735:5: warning: switch missing default case [-Wswitch-default] + 735 | switch(modModulatorTypes[mod[csynth][mi].type]) { + | ^~~~~~ +patch.c:718:54: warning: unused parameter 'x' [-Wunused-parameter] + 718 | void patch_modulator_keyboard(unsigned char key, int x, int y) + | ~~~~^ +patch.c:718:61: warning: unused parameter 'y' [-Wunused-parameter] + 718 | void patch_modulator_keyboard(unsigned char key, int x, int y) + | ~~~~^ +patch.c: In function 'knob_scale2float': +patch.c:770:46: warning: conversion from 'int' to 'float' may change value [-Wconversion] + 770 | case SCALE_FREQUENCY_TEMPO: return (value*bpm)/(60*OUTPUTFREQ); + | ^ +patch.c:771:47: warning: conversion from 'int' to 'float' may change value [-Wconversion] + 771 | case SCALE_DURATION_TEMPO: return (60/(bpm*value))*OUTPUTFREQ; + | ^ +patch.c:775:73: warning: conversion from 'double' to 'float' may change value [-Wfloat-conversion] + 775 | case SCALE_MIDI_NOTE: return 8.1757989156 * pow(1.059463094, value) / OUTPUTFREQ; +patch.c:776:38: warning: conversion from 'double' to 'float' may change value [-Wfloat-conversion] + 776 | case SCALE_NOTE_INTERVAL: return pow(1.059463094, value); + | ^~~~~~~~~~~~~~~~~~~~~~~ +patch.c:767:3: warning: switch missing default case [-Wswitch-default] + 767 | switch(scale) { + | ^~~~~~ +patch.c: In function 'knob_float2scale': +patch.c:786:61: warning: conversion from 'int' to 'float' may change value [-Wconversion] + 786 | case SCALE_FREQUENCY_TEMPO: return (value*60*OUTPUTFREQ)/bpm; + | ^ +patch.c:787:61: warning: conversion from 'int' to 'float' may change value [-Wconversion] + 787 | case SCALE_DURATION_TEMPO: return (OUTPUTFREQ*60)/(value*bpm); + | ^ +patch.c:791:48: warning: conversion from 'double' to 'float' may change value [-Wfloat-conversion] + 791 | case SCALE_MIDI_NOTE: return 17.31234049667*log(0.12231220586*value*OUTPUTFREQ); + | ~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ +patch.c:792:52: warning: conversion from 'double' to 'float' may change value [-Wfloat-conversion] + 792 | case SCALE_NOTE_INTERVAL: return 17.31234049667*log(value); + | ~~~~~~~~~~~~~~^~~~~~~~~~~ +patch.c:783:3: warning: switch missing default case [-Wswitch-default] + 783 | switch(scale) { + | ^~~~~~ +gcc -DPACKAGE_NAME=\"komposter\" -DPACKAGE_TARNAME=\"komposter\" -DPACKAGE_VERSION=\"2.0.0\" -DPACKAGE_STRING=\"komposter\ 2.0.0\" -DPACKAGE_BUGREPORT=\"email\" -DPACKAGE_URL=\"\" -DPACKAGE=\"komposter\" -DVERSION=\"2.0.0\" -DSTDC_HEADERS=1 -DHAVE_SYS_TYPES_H=1 -DHAVE_SYS_STAT_H=1 -DHAVE_STDLIB_H=1 -DHAVE_STRING_H=1 -DHAVE_MEMORY_H=1 -DHAVE_STRINGS_H=1 -DHAVE_INTTYPES_H=1 -DHAVE_STDINT_H=1 -DHAVE_UNISTD_H=1 -DENABLE_FREETYPE=1 -DHAVE_LIBGLUT=1 -DENABLE_GLUT=1 -DENABLE_OPENAL=1 -DHAVE_LIBGL=1 -DHAVE_LIBGLU=1 -DENABLE_OPENGL=1 -DHAVE_LIBM=1 -DHAVE_LIBPTHREAD=1 -I. -DRESOURCEPATH=\"/usr/share/komposter/\" -Wdate-time -D_FORTIFY_SOURCE=2 -I/usr/local/include -g -O2 -ffile-prefix-map=/build/reproducible-path/komposter-0+git20201216+ds=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -Wall -pedantic -O3 -fcx-limited-range -ffinite-math-only -fno-math-errno -fno-rounding-math -fno-signaling-nans -fno-trapping-math -fgcse-las -fgcse-sm -fsee -fsingle-precision-constant -fomit-frame-pointer -Wcast-align -Wconversion -Wdisabled-optimization -Wextra -Winit-self -Winvalid-pch -Wmissing-format-attribute -Wmissing-include-dirs -Wmissing-noreturn -Wno-multichar -Wpacked -Wredundant-decls -Wshadow -Wswitch-default -Wundef -Wwrite-strings -Wbad-function-cast -Wmissing-declarations -Wmissing-prototypes -Wnested-externs -Wold-style-definition -Wstrict-prototypes -ftracer -fweb -pipe -Werror-implicit-function-declaration -I/usr/include/freetype2 -I/usr/include/libpng16 -I/usr/include/AL -c -o shader.o shader.c In file included from audio.h:16, from sequencer.h:18: arch.h:15:5: warning: "__x86_64__" is not defined, evaluates to 0 [-Wundef] @@ -4262,6 +4299,11 @@ arch.h:15:5: warning: "__x86_64__" is not defined, evaluates to 0 [-Wundef] 15 | #if __x86_64__ | ^~~~~~~~~~ +In file included from shader.h:17, + from shader.c:16: +arch.h:15:5: warning: "__x86_64__" is not defined, evaluates to 0 [-Wundef] + 15 | #if __x86_64__ + | ^~~~~~~~~~ In file included from widgets.h:20, from pattern.h:22: arch.h:15:5: warning: "__x86_64__" is not defined, evaluates to 0 [-Wundef] @@ -5099,12 +5141,19 @@ sequencer.c:937:23: warning: conversion from 'int' to 'float' may change value [-Wconversion] 937 | glVertex2f( sx+sl, SEQUENCER_Y+ i *SEQUENCER_CELLHEIGHT); | ^ +shader.c:43:8: warning: no previous prototype for 'loadshader' [-Wmissing-prototypes] + 43 | GLuint loadshader(char *fname, GLuint type) + | ^~~~~~~~~~ sequencer.c:937:39: warning: conversion from 'int' to 'float' may change value [-Wconversion] 937 | glVertex2f( sx+sl, SEQUENCER_Y+ i *SEQUENCER_CELLHEIGHT); | ^ sequencer.c:938:23: warning: conversion from 'int' to 'float' may change value [-Wconversion] 938 | glVertex2f( sx+sl, SEQUENCER_Y+(1+i)*SEQUENCER_CELLHEIGHT-1 ); | ^ +shader.c: In function 'loadshader': +shader.c:53:3: warning: ignoring return value of 'fread' declared with attribute 'warn_unused_result' [-Wunused-result] + 53 | fread(temp, 1, 65536, f); + | ^~~~~~~~~~~~~~~~~~~~~~~~ sequencer.c:938:39: warning: conversion from 'int' to 'float' may change value [-Wconversion] 938 | glVertex2f( sx+sl, SEQUENCER_Y+(1+i)*SEQUENCER_CELLHEIGHT-1 ); | ^ @@ -5204,6 +5253,10 @@ sequencer.c:1058:63: warning: conversion from 'int' to 'float' may change value [-Wconversion] 1058 | seq_start, (DS_WIDTH-(SEQUENCER_X+4))/SEQUENCER_CELLWIDTH, seqsonglen, seqslide_hover); | ^~~~~~~~~~ +shader.c: In function 'shader_init': +shader.c:75:5: warning: '__builtin_strncpy' output may be truncated copying 511 bytes from a string of length 511 [-Wstringop-truncation] + 75 | strncpy(fullpath, respath, 511); + | ^ sequencer.c:1062:38: warning: passing argument 4 of 'draw_button' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] 1062 | draw_button(440, DS_HEIGHT-14, 16, "A", seq_ui[B_REWIND]); | ^~~ @@ -5283,6 +5336,7 @@ widgets.h:38:71: note: expected 'char *' but argument is of type 'const char *' 38 | void draw_textbox(float x, float y, float height, float length, char *label, int type); | ~~~~~~^~~~~ +gcc -DPACKAGE_NAME=\"komposter\" -DPACKAGE_TARNAME=\"komposter\" -DPACKAGE_VERSION=\"2.0.0\" -DPACKAGE_STRING=\"komposter\ 2.0.0\" -DPACKAGE_BUGREPORT=\"email\" -DPACKAGE_URL=\"\" -DPACKAGE=\"komposter\" -DVERSION=\"2.0.0\" -DSTDC_HEADERS=1 -DHAVE_SYS_TYPES_H=1 -DHAVE_SYS_STAT_H=1 -DHAVE_STDLIB_H=1 -DHAVE_STRING_H=1 -DHAVE_MEMORY_H=1 -DHAVE_STRINGS_H=1 -DHAVE_INTTYPES_H=1 -DHAVE_STDINT_H=1 -DHAVE_UNISTD_H=1 -DENABLE_FREETYPE=1 -DHAVE_LIBGLUT=1 -DENABLE_GLUT=1 -DENABLE_OPENAL=1 -DHAVE_LIBGL=1 -DHAVE_LIBGLU=1 -DENABLE_OPENGL=1 -DHAVE_LIBM=1 -DHAVE_LIBPTHREAD=1 -I. -DRESOURCEPATH=\"/usr/share/komposter/\" -Wdate-time -D_FORTIFY_SOURCE=2 -I/usr/local/include -g -O2 -ffile-prefix-map=/build/reproducible-path/komposter-0+git20201216+ds=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -Wall -pedantic -O3 -fcx-limited-range -ffinite-math-only -fno-math-errno -fno-rounding-math -fno-signaling-nans -fno-trapping-math -fgcse-las -fgcse-sm -fsee -fsingle-precision-constant -fomit-frame-pointer -Wcast-align -Wconversion -Wdisabled-optimization -Wextra -Winit-self -Winvalid-pch -Wmissing-format-attribute -Wmissing-include-dirs -Wmissing-noreturn -Wno-multichar -Wpacked -Wredundant-decls -Wshadow -Wswitch-default -Wundef -Wwrite-strings -Wbad-function-cast -Wmissing-declarations -Wmissing-prototypes -Wnested-externs -Wold-style-definition -Wstrict-prototypes -ftracer -fweb -pipe -Werror-implicit-function-declaration -I/usr/include/freetype2 -I/usr/include/libpng16 -I/usr/include/AL -c -o synthesizer.o synthesizer.c sequencer.c:1122:54: warning: passing argument 4 of 'draw_button' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] 1122 | draw_button((DS_WIDTH/2)-16, (DS_HEIGHT/2)-30, 16, ">>", seq_ui[B_PATT_ADDNUM]); | ^~~~ @@ -5513,37 +5567,9 @@ dialog.h:22:49: note: expected 'void *' but argument is of type 'void (*)(int, int, int, int)' 22 | void dialog_open(void *draw, void *hover, void *click); | ~~~~~~^~~~~ -patch.c: In function 'patch_draw_modulator': -patch.c:556:26: warning: '%s' directive writing up to 127 bytes into a region of size 124 [-Wformat-overflow=] - 556 | sprintf(tmps, "%02d %s %s", mi, modTypeNames[mod[csynth][mi].type], label); - | ^~ ~~~~~ -In file included from /usr/include/stdio.h:906, - from patch.h:16: -In function 'sprintf', - inlined from 'patch_draw_modulator' at patch.c:556:3: -/usr/include/arm-linux-gnueabihf/bits/stdio2.h:30:10: note: '__builtin___sprintf_chk' output 5 or more bytes (assuming 132) into a destination of size 128 - 30 | return __builtin___sprintf_chk (__s, __USE_FORTIFY_LEVEL - 1, - | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ - 31 | __glibc_objsize (__s), __fmt, - | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ - 32 | __va_arg_pack ()); - | ~~~~~~~~~~~~~~~~~ -patch.c: In function 'patch_draw_modulator': sequencer.c:1327:25: warning: ISO C forbids passing argument 1 of 'dialog_bindkeyboard' between function pointer and 'void *' [-Wpedantic] 1327 | dialog_bindkeyboard(&sequencer_preview_keyboard); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~ -patch.c:556:26: warning: '%s' directive writing up to 127 bytes into a region of size 124 [-Wformat-overflow=] - 556 | sprintf(tmps, "%02d %s %s", mi, modTypeNames[mod[csynth][mi].type], label); - | ^~ ~~~~~ -In function 'sprintf', - inlined from 'patch_draw_modulator' at patch.c:556:3: -/usr/include/arm-linux-gnueabihf/bits/stdio2.h:30:10: note: '__builtin___sprintf_chk' output 5 or more bytes (assuming 132) into a destination of size 128 - 30 | return __builtin___sprintf_chk (__s, __USE_FORTIFY_LEVEL - 1, - | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ - 31 | __glibc_objsize (__s), __fmt, - | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ - 32 | __va_arg_pack ()); - | ~~~~~~~~~~~~~~~~~ dialog.h:23:32: note: expected 'void *' but argument is of type 'void (*)(unsigned char, int, int)' 23 | void dialog_bindkeyboard(void *kbfunc); | ~~~~~~^~~~~~ @@ -5566,6 +5592,11 @@ sequencer.c:1351:40: warning: unused parameter 'y' [-Wunused-parameter] 1351 | void sequencer_render_hover(int x, int y) | ~~~~^ +In file included from synthesizer.h:23, + from synthesizer.c:13: +arch.h:15:5: warning: "__x86_64__" is not defined, evaluates to 0 [-Wundef] + 15 | #if __x86_64__ + | ^~~~~~~~~~ sequencer.c: In function 'sequencer_render_click': sequencer.c:1363:50: warning: conversion from 'int' to 'float' may change value [-Wconversion] 1363 | if (button==GLUT_RIGHT_BUTTON && hovertest_box(x,y,(DS_WIDTH/2),(DS_HEIGHT/2),150,240 )) { @@ -5803,73 +5834,14 @@ | ^~~~~~~~~~~~~~~~~~~~~~~~~~ sequencer.c: In function 'sequencer_bpm_close_dialog': sequencer.c:1745:6: warning: old-style function definition [-Wold-style-definition] -gcc -DPACKAGE_NAME=\"komposter\" -DPACKAGE_TARNAME=\"komposter\" -DPACKAGE_VERSION=\"2.0.0\" -DPACKAGE_STRING=\"komposter\ 2.0.0\" -DPACKAGE_BUGREPORT=\"email\" -DPACKAGE_URL=\"\" -DPACKAGE=\"komposter\" -DVERSION=\"2.0.0\" -DSTDC_HEADERS=1 -DHAVE_SYS_TYPES_H=1 -DHAVE_SYS_STAT_H=1 -DHAVE_STDLIB_H=1 -DHAVE_STRING_H=1 -DHAVE_MEMORY_H=1 -DHAVE_STRINGS_H=1 -DHAVE_INTTYPES_H=1 -DHAVE_STDINT_H=1 -DHAVE_UNISTD_H=1 -DENABLE_FREETYPE=1 -DHAVE_LIBGLUT=1 -DENABLE_GLUT=1 -DENABLE_OPENAL=1 -DHAVE_LIBGL=1 -DHAVE_LIBGLU=1 -DENABLE_OPENGL=1 -DHAVE_LIBM=1 -DHAVE_LIBPTHREAD=1 -I. -DRESOURCEPATH=\"/usr/share/komposter/\" -Wdate-time -D_FORTIFY_SOURCE=2 -I/usr/local/include -g -O2 -ffile-prefix-map=/build/reproducible-path/komposter-0+git20201216+ds=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -Wall -pedantic -O3 -fcx-limited-range -ffinite-math-only -fno-math-errno -fno-rounding-math -fno-signaling-nans -fno-trapping-math -fgcse-las -fgcse-sm -fsee -fsingle-precision-constant -fomit-frame-pointer -Wcast-align -Wconversion -Wdisabled-optimization -Wextra -Winit-self -Winvalid-pch -Wmissing-format-attribute -Wmissing-include-dirs -Wmissing-noreturn -Wno-multichar -Wpacked -Wredundant-decls -Wshadow -Wswitch-default -Wundef -Wwrite-strings -Wbad-function-cast -Wmissing-declarations -Wmissing-prototypes -Wnested-externs -Wold-style-definition -Wstrict-prototypes -ftracer -fweb -pipe -Werror-implicit-function-declaration -I/usr/include/freetype2 -I/usr/include/libpng16 -I/usr/include/AL -c -o shader.o shader.c -In file included from shader.h:17, - from shader.c:16: -arch.h:15:5: warning: "__x86_64__" is not defined, evaluates to 0 [-Wundef] - 15 | #if __x86_64__ - | ^~~~~~~~~~ -shader.c:43:8: warning: no previous prototype for 'loadshader' [-Wmissing-prototypes] - 43 | GLuint loadshader(char *fname, GLuint type) - | ^~~~~~~~~~ -shader.c: In function 'loadshader': -shader.c:53:3: warning: ignoring return value of 'fread' declared with attribute 'warn_unused_result' [-Wunused-result] - 53 | fread(temp, 1, 65536, f); - | ^~~~~~~~~~~~~~~~~~~~~~~~ -shader.c: In function 'shader_init': -shader.c:75:5: warning: '__builtin_strncpy' output may be truncated copying 511 bytes from a string of length 511 [-Wstringop-truncation] - 75 | strncpy(fullpath, respath, 511); - | ^ -gcc -DPACKAGE_NAME=\"komposter\" -DPACKAGE_TARNAME=\"komposter\" -DPACKAGE_VERSION=\"2.0.0\" -DPACKAGE_STRING=\"komposter\ 2.0.0\" -DPACKAGE_BUGREPORT=\"email\" -DPACKAGE_URL=\"\" -DPACKAGE=\"komposter\" -DVERSION=\"2.0.0\" -DSTDC_HEADERS=1 -DHAVE_SYS_TYPES_H=1 -DHAVE_SYS_STAT_H=1 -DHAVE_STDLIB_H=1 -DHAVE_STRING_H=1 -DHAVE_MEMORY_H=1 -DHAVE_STRINGS_H=1 -DHAVE_INTTYPES_H=1 -DHAVE_STDINT_H=1 -DHAVE_UNISTD_H=1 -DENABLE_FREETYPE=1 -DHAVE_LIBGLUT=1 -DENABLE_GLUT=1 -DENABLE_OPENAL=1 -DHAVE_LIBGL=1 -DHAVE_LIBGLU=1 -DENABLE_OPENGL=1 -DHAVE_LIBM=1 -DHAVE_LIBPTHREAD=1 -I. -DRESOURCEPATH=\"/usr/share/komposter/\" -Wdate-time -D_FORTIFY_SOURCE=2 -I/usr/local/include -g -O2 -ffile-prefix-map=/build/reproducible-path/komposter-0+git20201216+ds=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -Wall -pedantic -O3 -fcx-limited-range -ffinite-math-only -fno-math-errno -fno-rounding-math -fno-signaling-nans -fno-trapping-math -fgcse-las -fgcse-sm -fsee -fsingle-precision-constant -fomit-frame-pointer -Wcast-align -Wconversion -Wdisabled-optimization -Wextra -Winit-self -Winvalid-pch -Wmissing-format-attribute -Wmissing-include-dirs -Wmissing-noreturn -Wno-multichar -Wpacked -Wredundant-decls -Wshadow -Wswitch-default -Wundef -Wwrite-strings -Wbad-function-cast -Wmissing-declarations -Wmissing-prototypes -Wnested-externs -Wold-style-definition -Wstrict-prototypes -ftracer -fweb -pipe -Werror-implicit-function-declaration -I/usr/include/freetype2 -I/usr/include/libpng16 -I/usr/include/AL -c -o synthesizer.o synthesizer.c -gcc -DPACKAGE_NAME=\"komposter\" -DPACKAGE_TARNAME=\"komposter\" -DPACKAGE_VERSION=\"2.0.0\" -DPACKAGE_STRING=\"komposter\ 2.0.0\" -DPACKAGE_BUGREPORT=\"email\" -DPACKAGE_URL=\"\" -DPACKAGE=\"komposter\" -DVERSION=\"2.0.0\" -DSTDC_HEADERS=1 -DHAVE_SYS_TYPES_H=1 -DHAVE_SYS_STAT_H=1 -DHAVE_STDLIB_H=1 -DHAVE_STRING_H=1 -DHAVE_MEMORY_H=1 -DHAVE_STRINGS_H=1 -DHAVE_INTTYPES_H=1 -DHAVE_STDINT_H=1 -DHAVE_UNISTD_H=1 -DENABLE_FREETYPE=1 -DHAVE_LIBGLUT=1 -DENABLE_GLUT=1 -DENABLE_OPENAL=1 -DHAVE_LIBGL=1 -DHAVE_LIBGLU=1 -DENABLE_OPENGL=1 -DHAVE_LIBM=1 -DHAVE_LIBPTHREAD=1 -I. -DRESOURCEPATH=\"/usr/share/komposter/\" -Wdate-time -D_FORTIFY_SOURCE=2 -I/usr/local/include -g -O2 -ffile-prefix-map=/build/reproducible-path/komposter-0+git20201216+ds=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -Wall -pedantic -O3 -fcx-limited-range -ffinite-math-only -fno-math-errno -fno-rounding-math -fno-signaling-nans -fno-trapping-math -fgcse-las -fgcse-sm -fsee -fsingle-precision-constant -fomit-frame-pointer -Wcast-align -Wconversion -Wdisabled-optimization -Wextra -Winit-self -Winvalid-pch -Wmissing-format-attribute -Wmissing-include-dirs -Wmissing-noreturn -Wno-multichar -Wpacked -Wredundant-decls -Wshadow -Wswitch-default -Wundef -Wwrite-strings -Wbad-function-cast -Wmissing-declarations -Wmissing-prototypes -Wnested-externs -Wold-style-definition -Wstrict-prototypes -ftracer -fweb -pipe -Werror-implicit-function-declaration -I/usr/include/freetype2 -I/usr/include/libpng16 -I/usr/include/AL -c -o widgets.o widgets.c -In file included from shader.h:17, - from widgets.c:13: -arch.h:15:5: warning: "__x86_64__" is not defined, evaluates to 0 [-Wundef] - 15 | #if __x86_64__ - | ^~~~~~~~~~ -In file included from synthesizer.h:23, - from synthesizer.c:13: -arch.h:15:5: warning: "__x86_64__" is not defined, evaluates to 0 [-Wundef] - 15 | #if __x86_64__ - | ^~~~~~~~~~ -sequencer.c: In function 'sequencer_file_checkstate.part.0': -sequencer.c:1574:40: warning: '%s' directive writing up to 254 bytes into a region of size 241 [-Wformat-overflow=] - 1574 | sprintf(tmps, "Song saved as %s", fn); - | ^~ ~~ -In file included from /usr/include/stdio.h:906, - from sequencer.h:16: -In function 'sprintf', - inlined from 'sequencer_file_checkstate.part.0' at sequencer.c:1574:11: -/usr/include/arm-linux-gnueabihf/bits/stdio2.h:30:10: note: '__builtin___sprintf_chk' output between 15 and 269 bytes into a destination of size 255 - 30 | return __builtin___sprintf_chk (__s, __USE_FORTIFY_LEVEL - 1, - | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ - 31 | __glibc_objsize (__s), __fmt, - | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ - 32 | __va_arg_pack ()); - | ~~~~~~~~~~~~~~~~~ -In file included from widgets.h:20, - from widgets.c:14: -arch.h:15:5: warning: "__x86_64__" is not defined, evaluates to 0 [-Wundef] - 15 | #if __x86_64__ - | ^~~~~~~~~~ -In file included from font.h:16, - from widgets.h:22: -arch.h:15:5: warning: "__x86_64__" is not defined, evaluates to 0 [-Wundef] - 15 | #if __x86_64__ - | ^~~~~~~~~~ In file included from audio.h:16, from synthesizer.h:24: arch.h:15:5: warning: "__x86_64__" is not defined, evaluates to 0 [-Wundef] 15 | #if __x86_64__ | ^~~~~~~~~~ -In file included from widgets.h:23: -modules.h:152:1: warning: function declaration isn't a prototype [-Wstrict-prototypes] - 152 | void calc_supersaw_tables(); - | ^~~~ audio.h:56:1: warning: function declaration isn't a prototype [-Wstrict-prototypes] 56 | int audio_exportwav(); //char *filename); | ^~~ -widgets.c: In function 'draw_module': In file included from buffermm.h:16, from synthesizer.h:25: modules.h:152:1: warning: function declaration isn't a prototype [-Wstrict-prototypes] @@ -5890,193 +5862,11 @@ arch.h:15:5: warning: "__x86_64__" is not defined, evaluates to 0 [-Wundef] 15 | #if __x86_64__ | ^~~~~~~~~~ -widgets.c:51:76: warning: conversion from 'double' to 'float' may change value [-Wfloat-conversion] - 51 | render_text((char*)modTypeNames[s->type], x+1, round(y+(MODULE_SIZE/5))+1, 2, 0xff000000, 1); - | ~~~~~~~~~~~~~~~~~~~~~~~~^~ -widgets.c:52:50: warning: conversion from 'double' to 'float' may change value [-Wfloat-conversion] - 52 | render_text((char*)modTypeNames[s->type], x, round(y+(MODULE_SIZE/5)), 2, 0xffffffff, 1); - | ^~~~~~~~~~~~~~~~~~~~~~~~ -widgets.c:69:34: warning: conversion from 'double' to 'float' may change value [-Wfloat-conversion] - 69 | render_text(s->label, x+1, round(y+(MODULE_SIZE/3)+5), 2, 0xff000000, 1); - | ^~~~~~~~~~~~~~~~~~~~~~~~~~ -widgets.c:70:32: warning: conversion from 'double' to 'float' may change value [-Wfloat-conversion] - 70 | render_text(s->label, x, round(y+(MODULE_SIZE/3)+4), 2, 0xffffffff, 1); - | ^~~~~~~~~~~~~~~~~~~~~~~~~~ -widgets.c:72:54: warning: conversion from 'double' to 'float' may change value [-Wfloat-conversion] - 72 | render_text((char*)modTypeNames[s->type], x+1, round(y+(MODULE_SIZE/3)+5), 2, 0xff000000, 1); - | ^~~~~~~~~~~~~~~~~~~~~~~~~~ -widgets.c:73:52: warning: conversion from 'double' to 'float' may change value [-Wfloat-conversion] - 73 | render_text((char*)modTypeNames[s->type], x, round(y+(MODULE_SIZE/3)+4), 2, 0xffffffff, 1); - | ^~~~~~~~~~~~~~~~~~~~~~~~~~ -widgets.c:83:72: warning: conversion from 'float' to 'int' may change value [-Wfloat-conversion] - 83 | (char*)modInputNames[type][i], node_labelpos[modInputCount[type]][i]); - | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~ -widgets.c:89:63: warning: passing argument 4 of 'draw_signal_node' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] - 89 | draw_signal_node(x+MODULE_HALF+0.5, y+OUTPUT_OFFSET, 3, "Out", 1); - | ^~~~~ -widgets.h:29:57: note: expected 'char *' but argument is of type 'const char *' - 29 | void draw_signal_node(float x, float y, int type, char* label, int align); - | ~~~~~~^~~~~ -widgets.c:91:63: warning: passing argument 4 of 'draw_signal_node' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] - 91 | draw_signal_node(x+MODULE_HALF+0.5, y+OUTPUT_OFFSET, 1, "Out", 1); - | ^~~~~ -widgets.h:29:57: note: expected 'char *' but argument is of type 'const char *' - 29 | void draw_signal_node(float x, float y, int type, char* label, int align); - | ~~~~~~^~~~~ -widgets.c: In function 'draw_signal_node': -widgets.c:119:18: warning: conversion from 'double' to 'GLfloat' {aka 'float'} may change value [-Wfloat-conversion] - 119 | glVertex3f(x + cos(f*2*M_PI)*(r*0.75), y + sin(f*2*M_PI)*(r*0.75), 0.0f); - | ~~^~~~~~~~~~~~~~~~~~~~~~~~ -widgets.c:119:46: warning: conversion from 'double' to 'GLfloat' {aka 'float'} may change value [-Wfloat-conversion] - 119 | glVertex3f(x + cos(f*2*M_PI)*(r*0.75), y + sin(f*2*M_PI)*(r*0.75), 0.0f); - | ~~^~~~~~~~~~~~~~~~~~~~~~~~ -widgets.c: In function 'draw_knob': -widgets.c:156:7: warning: conversion from 'double' to 'float' may change value [-Wfloat-conversion] - 156 | c=0.2+(1.0f+cos(0.6+f*2*M_PI))/(2.0); - | ^~~ -widgets.c:158:18: warning: conversion from 'double' to 'GLfloat' {aka 'float'} may change value [-Wfloat-conversion] - 158 | glVertex3f(x + cos(f*2*M_PI)*KNOB_RADIUS, y + sin(f*2*M_PI)*KNOB_RADIUS, 0.0f); -widgets.c:158:49: warning: conversion from 'double' to 'GLfloat' {aka 'float'} may change value [-Wfloat-conversion] - 158 | glVertex3f(x + cos(f*2*M_PI)*KNOB_RADIUS, y + sin(f*2*M_PI)*KNOB_RADIUS, 0.0f); -widgets.c:159:18: warning: conversion from 'double' to 'GLfloat' {aka 'float'} may change value [-Wfloat-conversion] - 159 | glVertex3f(x + cos(f*2*M_PI)*(KNOB_RADIUS*0.75), y + sin(f*2*M_PI)*(KNOB_RADIUS*0.75), 0.0f); - | ~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -widgets.c:159:56: warning: conversion from 'double' to 'GLfloat' {aka 'float'} may change value [-Wfloat-conversion] - 159 | glVertex3f(x + cos(f*2*M_PI)*(KNOB_RADIUS*0.75), y + sin(f*2*M_PI)*(KNOB_RADIUS*0.75), 0.0f); - | ~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -widgets.c:169:18: warning: conversion from 'double' to 'GLfloat' {aka 'float'} may change value [-Wfloat-conversion] - 169 | glVertex3f(x + cos(f*2*M_PI)*(KNOB_RADIUS*0.75), y + sin(f*2*M_PI)*(KNOB_RADIUS*0.75), 0.0f); - | ~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -widgets.c:169:56: warning: conversion from 'double' to 'GLfloat' {aka 'float'} may change value [-Wfloat-conversion] - 169 | glVertex3f(x + cos(f*2*M_PI)*(KNOB_RADIUS*0.75), y + sin(f*2*M_PI)*(KNOB_RADIUS*0.75), 0.0f); - | ~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -widgets.c:177:33: warning: conversion from 'double' to 'GLfloat' {aka 'float'} may change value [-Wfloat-conversion] - 177 | glVertex2f(x,y); glVertex2f(x + cos(setting*2*M_PI)*KNOB_RADIUS, y + sin(setting*2*M_PI)*KNOB_RADIUS); -widgets.c:177:70: warning: conversion from 'double' to 'GLfloat' {aka 'float'} may change value [-Wfloat-conversion] - 177 | glVertex2f(x,y); glVertex2f(x + cos(setting*2*M_PI)*KNOB_RADIUS, y + sin(setting*2*M_PI)*KNOB_RADIUS); -widgets.c:182:33: warning: conversion from 'double' to 'GLfloat' {aka 'float'} may change value [-Wfloat-conversion] - 182 | glVertex2f(x,y); glVertex2f(x + cos(setting*2*M_PI)*KNOB_RADIUS, y + sin(setting*2*M_PI)*KNOB_RADIUS); -widgets.c:182:70: warning: conversion from 'double' to 'GLfloat' {aka 'float'} may change value [-Wfloat-conversion] - 182 | glVertex2f(x,y); glVertex2f(x + cos(setting*2*M_PI)*KNOB_RADIUS, y + sin(setting*2*M_PI)*KNOB_RADIUS); -widgets.c: In function 'draw_text': -widgets.c:198:8: warning: conversion from 'int' to 'float' may change value [-Wconversion] - 198 | xd += glutBitmapWidth(MODULE_FONT,*c); - | ^~ -widgets.c:203:3: warning: switch missing default case [-Wswitch-default] - 203 | switch (align) { - | ^~~~~~ -widgets.c:212:8: warning: conversion from 'int' to 'float' may change value [-Wconversion] - 212 | x1 += glutBitmapWidth(MODULE_FONT,*c); - | ^~ -widgets.c: In function 'draw_kboct': -widgets.c:455:22: warning: conversion from 'int' to 'float' may change value [-Wconversion] - 455 | glVertex2f(2, y-j*kh); glVertex2f(2+kw, y-j*kh); - | ^ -widgets.c:455:48: warning: conversion from 'int' to 'float' may change value [-Wconversion] - 455 | glVertex2f(2, y-j*kh); glVertex2f(2+kw, y-j*kh); - | ^ -widgets.c:456:29: warning: conversion from 'int' to 'float' may change value [-Wconversion] - 456 | glVertex2f(2+kw, y-(j+1)*kh); glVertex2f(2, y-(j+1)*kh); - | ^ -widgets.c:456:56: warning: conversion from 'int' to 'float' may change value [-Wconversion] - 456 | glVertex2f(2+kw, y-(j+1)*kh); glVertex2f(2, y-(j+1)*kh); - | ^ -widgets.c:460:22: warning: conversion from 'int' to 'float' may change value [-Wconversion] - 460 | glVertex2f(2, y-j*kh); glVertex2f(2+kw, y-j*kh); - | ^ -widgets.c:460:48: warning: conversion from 'int' to 'float' may change value [-Wconversion] - 460 | glVertex2f(2, y-j*kh); glVertex2f(2+kw, y-j*kh); - | ^ -widgets.c:461:29: warning: conversion from 'int' to 'float' may change value [-Wconversion] - 461 | glVertex2f(2+kw, y-(j+1)*kh+1); glVertex2f(2, y-(j+1)*kh+1); - | ^ -widgets.c:461:58: warning: conversion from 'int' to 'float' may change value [-Wconversion] - 461 | glVertex2f(2+kw, y-(j+1)*kh+1); glVertex2f(2, y-(j+1)*kh+1); - | ^ -widgets.c:472:23: warning: conversion from 'int' to 'float' may change value [-Wconversion] - 472 | glVertex2f(2, y-(j+0.5)*kh-(0.2*kh)); - | ^ -widgets.c:473:30: warning: conversion from 'int' to 'float' may change value [-Wconversion] - 473 | glVertex2f(2+kw*0.6, y-(j+0.5)*kh-(0.2*kh)); - | ^ -widgets.c:474:30: warning: conversion from 'int' to 'float' may change value [-Wconversion] - 474 | glVertex2f(2+kw*0.6, y-(j+1.5)*kh+(0.2*kh)); - | ^ -widgets.c:475:23: warning: conversion from 'int' to 'float' may change value [-Wconversion] - 475 | glVertex2f(2, y-(j+1.5)*kh+(0.2*kh)); - | ^ -widgets.c:479:23: warning: conversion from 'int' to 'float' may change value [-Wconversion] - 479 | glVertex2f(2, y-(j+0.5)*kh-(0.2*kh)); - | ^ -widgets.c:480:30: warning: conversion from 'int' to 'float' may change value [-Wconversion] - 480 | glVertex2f(2+kw*0.6, y-(j+0.5)*kh-(0.2*kh)); - | ^ -widgets.c:481:30: warning: conversion from 'int' to 'float' may change value [-Wconversion] - 481 | glVertex2f(2+kw*0.6, y-(j+1.5)*kh+(0.2*kh)); - | ^ -widgets.c:482:23: warning: conversion from 'int' to 'float' may change value [-Wconversion] - 482 | glVertex2f(2, y-(j+1.5)*kh+(0.2*kh)); - | ^ -widgets.c: In function 'draw_kbhoct': -widgets.c:507:19: warning: conversion from 'int' to 'float' may change value [-Wconversion] - 507 | glVertex2f(x+j*kw, y); - | ^ -widgets.c:508:23: warning: conversion from 'int' to 'float' may change value [-Wconversion] - 508 | glVertex2f(x+(j+1)*kw, y); - | ^ -widgets.c:509:23: warning: conversion from 'int' to 'float' may change value [-Wconversion] - 509 | glVertex2f(x+(j+1)*kw, y+kh); - | ^ -widgets.c:510:19: warning: conversion from 'int' to 'float' may change value [-Wconversion] - 510 | glVertex2f(x+j*kw, y+kh); - | ^ -widgets.c:514:19: warning: conversion from 'int' to 'float' may change value [-Wconversion] - 514 | glVertex2f(x+j*kw, y); - | ^ -widgets.c:515:23: warning: conversion from 'int' to 'float' may change value [-Wconversion] - 515 | glVertex2f(x+(j+1)*kw, y); - | ^ -widgets.c:516:23: warning: conversion from 'int' to 'float' may change value [-Wconversion] - 516 | glVertex2f(x+(j+1)*kw, y+kh); - | ^ -widgets.c:517:19: warning: conversion from 'int' to 'float' may change value [-Wconversion] - 517 | glVertex2f(x+j*kw, y+kh); - | ^ -widgets.c:522:28: warning: conversion from 'int' to 'float' may change value [-Wconversion] - 522 | render_text(tmps, x+j*kw+8, y+kh-4, 2, 0xff303030, 1); - | ^ -widgets.c:537:19: warning: conversion from 'int' to 'float' may change value [-Wconversion] - 537 | glVertex2f(x+j*kw+(0.7*kw), y); - | ^ -widgets.c:538:23: warning: conversion from 'int' to 'float' may change value [-Wconversion] - 538 | glVertex2f(x+(j+1)*kw+(0.3*kw), y); - | ^ -widgets.c:539:23: warning: conversion from 'int' to 'float' may change value [-Wconversion] - 539 | glVertex2f(x+(j+1)*kw+(0.3*kw), y+(kh*0.5)); - | ^ -widgets.c:540:19: warning: conversion from 'int' to 'float' may change value [-Wconversion] - 540 | glVertex2f(x+j*kw+(0.7*kw), y+(kh*0.5)); - | ^ -widgets.c:544:19: warning: conversion from 'int' to 'float' may change value [-Wconversion] - 544 | glVertex2f(x+j*kw+(0.7*kw), y); - | ^ -widgets.c:545:23: warning: conversion from 'int' to 'float' may change value [-Wconversion] - 545 | glVertex2f(x+(j+1)*kw+(0.3*kw), y); - | ^ In file included from widgets.h:20, from pattern.h:22: arch.h:15:5: warning: "__x86_64__" is not defined, evaluates to 0 [-Wundef] 15 | #if __x86_64__ | ^~~~~~~~~~ -widgets.c:546:23: warning: conversion from 'int' to 'float' may change value [-Wconversion] - 546 | glVertex2f(x+(j+1)*kw+(0.3*kw), y+(kh*0.5)); - | ^ -widgets.c:547:19: warning: conversion from 'int' to 'float' may change value [-Wconversion] - 547 | glVertex2f(x+j*kw+(0.7*kw), y+(kh*0.5)); - | ^ -widgets.c:552:28: warning: conversion from 'int' to 'float' may change value [-Wconversion] - 552 | render_text(tmps, x+j*kw+(0.7*kw)+5, y+0.5*kh-5, 2, 0xffc0c0c0, 1); - | ^ In file included from synthesizer.h:29: dotfile.h:16:1: warning: function declaration isn't a prototype [-Wstrict-prototypes] 16 | int dotfile_load(); @@ -6084,16 +5874,11 @@ dotfile.h:17:1: warning: function declaration isn't a prototype [-Wstrict-prototypes] 17 | int dotfile_save(); | ^~~ -widgets.c: In function 'hovertest_hslider': In file included from filedialog.h:22, from synthesizer.h:30: arch.h:15:5: warning: "__x86_64__" is not defined, evaluates to 0 [-Wundef] 15 | #if __x86_64__ | ^~~~~~~~~~ -widgets.c:709:21: warning: conversion from 'float' to 'int' may change value [-Wfloat-conversion] - 709 | if (hit) return (x-slx); - | ~~^~~~~ -widgets.c: In function 'textbox_edit': synthesizer.h:84:6: warning: redundant redeclaration of 'synth_stackify' [-Wredundant-decls] 84 | void synth_stackify(int syn); | ^~~~~~~~~~~~~~ @@ -6107,9 +5892,6 @@ fileops.h:63:5: note: previous declaration of 'synth_trace' with type 'int(int, int, int)' 63 | int synth_trace(int syn, int pm, int top); | ^~~~~~~~~~~ -widgets.c:738:20: warning: comparison of integer expressions of different signedness: 'size_t' {aka 'unsigned int'} and 'int' [-Wsign-compare] - 738 | strlen(text)type], x+1, round(y+(MODULE_SIZE/5))+1, 2, 0xff000000, 1); + | ~~~~~~~~~~~~~~~~~~~~~~~~^~ +widgets.c:52:50: warning: conversion from 'double' to 'float' may change value [-Wfloat-conversion] + 52 | render_text((char*)modTypeNames[s->type], x, round(y+(MODULE_SIZE/5)), 2, 0xffffffff, 1); + | ^~~~~~~~~~~~~~~~~~~~~~~~ +widgets.c:69:34: warning: conversion from 'double' to 'float' may change value [-Wfloat-conversion] + 69 | render_text(s->label, x+1, round(y+(MODULE_SIZE/3)+5), 2, 0xff000000, 1); + | ^~~~~~~~~~~~~~~~~~~~~~~~~~ +widgets.c:70:32: warning: conversion from 'double' to 'float' may change value [-Wfloat-conversion] + 70 | render_text(s->label, x, round(y+(MODULE_SIZE/3)+4), 2, 0xffffffff, 1); + | ^~~~~~~~~~~~~~~~~~~~~~~~~~ +widgets.c:72:54: warning: conversion from 'double' to 'float' may change value [-Wfloat-conversion] + 72 | render_text((char*)modTypeNames[s->type], x+1, round(y+(MODULE_SIZE/3)+5), 2, 0xff000000, 1); + | ^~~~~~~~~~~~~~~~~~~~~~~~~~ +widgets.c:73:52: warning: conversion from 'double' to 'float' may change value [-Wfloat-conversion] + 73 | render_text((char*)modTypeNames[s->type], x, round(y+(MODULE_SIZE/3)+4), 2, 0xffffffff, 1); + | ^~~~~~~~~~~~~~~~~~~~~~~~~~ +widgets.c:83:72: warning: conversion from 'float' to 'int' may change value [-Wfloat-conversion] + 83 | (char*)modInputNames[type][i], node_labelpos[modInputCount[type]][i]); + | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~ +widgets.c:89:63: warning: passing argument 4 of 'draw_signal_node' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] + 89 | draw_signal_node(x+MODULE_HALF+0.5, y+OUTPUT_OFFSET, 3, "Out", 1); + | ^~~~~ +widgets.h:29:57: note: expected 'char *' but argument is of type 'const char *' + 29 | void draw_signal_node(float x, float y, int type, char* label, int align); + | ~~~~~~^~~~~ +widgets.c:91:63: warning: passing argument 4 of 'draw_signal_node' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] + 91 | draw_signal_node(x+MODULE_HALF+0.5, y+OUTPUT_OFFSET, 1, "Out", 1); + | ^~~~~ +widgets.h:29:57: note: expected 'char *' but argument is of type 'const char *' + 29 | void draw_signal_node(float x, float y, int type, char* label, int align); + | ~~~~~~^~~~~ +widgets.c: In function 'draw_signal_node': +widgets.c:119:18: warning: conversion from 'double' to 'GLfloat' {aka 'float'} may change value [-Wfloat-conversion] + 119 | glVertex3f(x + cos(f*2*M_PI)*(r*0.75), y + sin(f*2*M_PI)*(r*0.75), 0.0f); + | ~~^~~~~~~~~~~~~~~~~~~~~~~~ +widgets.c:119:46: warning: conversion from 'double' to 'GLfloat' {aka 'float'} may change value [-Wfloat-conversion] + 119 | glVertex3f(x + cos(f*2*M_PI)*(r*0.75), y + sin(f*2*M_PI)*(r*0.75), 0.0f); + | ~~^~~~~~~~~~~~~~~~~~~~~~~~ +widgets.c: In function 'draw_knob': +widgets.c:156:7: warning: conversion from 'double' to 'float' may change value [-Wfloat-conversion] + 156 | c=0.2+(1.0f+cos(0.6+f*2*M_PI))/(2.0); + | ^~~ +widgets.c:158:18: warning: conversion from 'double' to 'GLfloat' {aka 'float'} may change value [-Wfloat-conversion] + 158 | glVertex3f(x + cos(f*2*M_PI)*KNOB_RADIUS, y + sin(f*2*M_PI)*KNOB_RADIUS, 0.0f); +widgets.c:158:49: warning: conversion from 'double' to 'GLfloat' {aka 'float'} may change value [-Wfloat-conversion] + 158 | glVertex3f(x + cos(f*2*M_PI)*KNOB_RADIUS, y + sin(f*2*M_PI)*KNOB_RADIUS, 0.0f); +widgets.c:159:18: warning: conversion from 'double' to 'GLfloat' {aka 'float'} may change value [-Wfloat-conversion] + 159 | glVertex3f(x + cos(f*2*M_PI)*(KNOB_RADIUS*0.75), y + sin(f*2*M_PI)*(KNOB_RADIUS*0.75), 0.0f); + | ~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ +widgets.c:159:56: warning: conversion from 'double' to 'GLfloat' {aka 'float'} may change value [-Wfloat-conversion] + 159 | glVertex3f(x + cos(f*2*M_PI)*(KNOB_RADIUS*0.75), y + sin(f*2*M_PI)*(KNOB_RADIUS*0.75), 0.0f); + | ~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ +widgets.c:169:18: warning: conversion from 'double' to 'GLfloat' {aka 'float'} may change value [-Wfloat-conversion] + 169 | glVertex3f(x + cos(f*2*M_PI)*(KNOB_RADIUS*0.75), y + sin(f*2*M_PI)*(KNOB_RADIUS*0.75), 0.0f); + | ~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ +widgets.c:169:56: warning: conversion from 'double' to 'GLfloat' {aka 'float'} may change value [-Wfloat-conversion] + 169 | glVertex3f(x + cos(f*2*M_PI)*(KNOB_RADIUS*0.75), y + sin(f*2*M_PI)*(KNOB_RADIUS*0.75), 0.0f); + | ~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ +widgets.c:177:33: warning: conversion from 'double' to 'GLfloat' {aka 'float'} may change value [-Wfloat-conversion] + 177 | glVertex2f(x,y); glVertex2f(x + cos(setting*2*M_PI)*KNOB_RADIUS, y + sin(setting*2*M_PI)*KNOB_RADIUS); +widgets.c:177:70: warning: conversion from 'double' to 'GLfloat' {aka 'float'} may change value [-Wfloat-conversion] + 177 | glVertex2f(x,y); glVertex2f(x + cos(setting*2*M_PI)*KNOB_RADIUS, y + sin(setting*2*M_PI)*KNOB_RADIUS); +widgets.c:182:33: warning: conversion from 'double' to 'GLfloat' {aka 'float'} may change value [-Wfloat-conversion] + 182 | glVertex2f(x,y); glVertex2f(x + cos(setting*2*M_PI)*KNOB_RADIUS, y + sin(setting*2*M_PI)*KNOB_RADIUS); +widgets.c:182:70: warning: conversion from 'double' to 'GLfloat' {aka 'float'} may change value [-Wfloat-conversion] + 182 | glVertex2f(x,y); glVertex2f(x + cos(setting*2*M_PI)*KNOB_RADIUS, y + sin(setting*2*M_PI)*KNOB_RADIUS); +widgets.c: In function 'draw_text': +widgets.c:198:8: warning: conversion from 'int' to 'float' may change value [-Wconversion] + 198 | xd += glutBitmapWidth(MODULE_FONT,*c); + | ^~ +widgets.c:203:3: warning: switch missing default case [-Wswitch-default] + 203 | switch (align) { + | ^~~~~~ +widgets.c:212:8: warning: conversion from 'int' to 'float' may change value [-Wconversion] + 212 | x1 += glutBitmapWidth(MODULE_FONT,*c); + | ^~ +widgets.c: In function 'draw_kboct': +widgets.c:455:22: warning: conversion from 'int' to 'float' may change value [-Wconversion] + 455 | glVertex2f(2, y-j*kh); glVertex2f(2+kw, y-j*kh); + | ^ +widgets.c:455:48: warning: conversion from 'int' to 'float' may change value [-Wconversion] + 455 | glVertex2f(2, y-j*kh); glVertex2f(2+kw, y-j*kh); + | ^ +widgets.c:456:29: warning: conversion from 'int' to 'float' may change value [-Wconversion] + 456 | glVertex2f(2+kw, y-(j+1)*kh); glVertex2f(2, y-(j+1)*kh); + | ^ +widgets.c:456:56: warning: conversion from 'int' to 'float' may change value [-Wconversion] + 456 | glVertex2f(2+kw, y-(j+1)*kh); glVertex2f(2, y-(j+1)*kh); + | ^ +widgets.c:460:22: warning: conversion from 'int' to 'float' may change value [-Wconversion] + 460 | glVertex2f(2, y-j*kh); glVertex2f(2+kw, y-j*kh); + | ^ +widgets.c:460:48: warning: conversion from 'int' to 'float' may change value [-Wconversion] + 460 | glVertex2f(2, y-j*kh); glVertex2f(2+kw, y-j*kh); + | ^ +widgets.c:461:29: warning: conversion from 'int' to 'float' may change value [-Wconversion] + 461 | glVertex2f(2+kw, y-(j+1)*kh+1); glVertex2f(2, y-(j+1)*kh+1); + | ^ +widgets.c:461:58: warning: conversion from 'int' to 'float' may change value [-Wconversion] + 461 | glVertex2f(2+kw, y-(j+1)*kh+1); glVertex2f(2, y-(j+1)*kh+1); + | ^ +widgets.c:472:23: warning: conversion from 'int' to 'float' may change value [-Wconversion] + 472 | glVertex2f(2, y-(j+0.5)*kh-(0.2*kh)); + | ^ +widgets.c:473:30: warning: conversion from 'int' to 'float' may change value [-Wconversion] + 473 | glVertex2f(2+kw*0.6, y-(j+0.5)*kh-(0.2*kh)); + | ^ +widgets.c:474:30: warning: conversion from 'int' to 'float' may change value [-Wconversion] + 474 | glVertex2f(2+kw*0.6, y-(j+1.5)*kh+(0.2*kh)); + | ^ +widgets.c:475:23: warning: conversion from 'int' to 'float' may change value [-Wconversion] + 475 | glVertex2f(2, y-(j+1.5)*kh+(0.2*kh)); + | ^ +widgets.c:479:23: warning: conversion from 'int' to 'float' may change value [-Wconversion] + 479 | glVertex2f(2, y-(j+0.5)*kh-(0.2*kh)); + | ^ +widgets.c:480:30: warning: conversion from 'int' to 'float' may change value [-Wconversion] + 480 | glVertex2f(2+kw*0.6, y-(j+0.5)*kh-(0.2*kh)); + | ^ +widgets.c:481:30: warning: conversion from 'int' to 'float' may change value [-Wconversion] + 481 | glVertex2f(2+kw*0.6, y-(j+1.5)*kh+(0.2*kh)); + | ^ +widgets.c:482:23: warning: conversion from 'int' to 'float' may change value [-Wconversion] + 482 | glVertex2f(2, y-(j+1.5)*kh+(0.2*kh)); + | ^ +widgets.c: In function 'draw_kbhoct': +widgets.c:507:19: warning: conversion from 'int' to 'float' may change value [-Wconversion] + 507 | glVertex2f(x+j*kw, y); + | ^ +widgets.c:508:23: warning: conversion from 'int' to 'float' may change value [-Wconversion] + 508 | glVertex2f(x+(j+1)*kw, y); + | ^ +widgets.c:509:23: warning: conversion from 'int' to 'float' may change value [-Wconversion] + 509 | glVertex2f(x+(j+1)*kw, y+kh); + | ^ +widgets.c:510:19: warning: conversion from 'int' to 'float' may change value [-Wconversion] + 510 | glVertex2f(x+j*kw, y+kh); + | ^ +widgets.c:514:19: warning: conversion from 'int' to 'float' may change value [-Wconversion] + 514 | glVertex2f(x+j*kw, y); + | ^ +widgets.c:515:23: warning: conversion from 'int' to 'float' may change value [-Wconversion] + 515 | glVertex2f(x+(j+1)*kw, y); + | ^ +widgets.c:516:23: warning: conversion from 'int' to 'float' may change value [-Wconversion] + 516 | glVertex2f(x+(j+1)*kw, y+kh); + | ^ +widgets.c:517:19: warning: conversion from 'int' to 'float' may change value [-Wconversion] + 517 | glVertex2f(x+j*kw, y+kh); + | ^ +widgets.c:522:28: warning: conversion from 'int' to 'float' may change value [-Wconversion] + 522 | render_text(tmps, x+j*kw+8, y+kh-4, 2, 0xff303030, 1); + | ^ +widgets.c:537:19: warning: conversion from 'int' to 'float' may change value [-Wconversion] + 537 | glVertex2f(x+j*kw+(0.7*kw), y); + | ^ +widgets.c:538:23: warning: conversion from 'int' to 'float' may change value [-Wconversion] + 538 | glVertex2f(x+(j+1)*kw+(0.3*kw), y); + | ^ +widgets.c:539:23: warning: conversion from 'int' to 'float' may change value [-Wconversion] + 539 | glVertex2f(x+(j+1)*kw+(0.3*kw), y+(kh*0.5)); + | ^ +widgets.c:540:19: warning: conversion from 'int' to 'float' may change value [-Wconversion] + 540 | glVertex2f(x+j*kw+(0.7*kw), y+(kh*0.5)); + | ^ +widgets.c:544:19: warning: conversion from 'int' to 'float' may change value [-Wconversion] + 544 | glVertex2f(x+j*kw+(0.7*kw), y); + | ^ +widgets.c:545:23: warning: conversion from 'int' to 'float' may change value [-Wconversion] + 545 | glVertex2f(x+(j+1)*kw+(0.3*kw), y); + | ^ +widgets.c:546:23: warning: conversion from 'int' to 'float' may change value [-Wconversion] + 546 | glVertex2f(x+(j+1)*kw+(0.3*kw), y+(kh*0.5)); + | ^ +widgets.c:547:19: warning: conversion from 'int' to 'float' may change value [-Wconversion] + 547 | glVertex2f(x+j*kw+(0.7*kw), y+(kh*0.5)); + | ^ +widgets.c:552:28: warning: conversion from 'int' to 'float' may change value [-Wconversion] + 552 | render_text(tmps, x+j*kw+(0.7*kw)+5, y+0.5*kh-5, 2, 0xffc0c0c0, 1); + | ^ +widgets.c: In function 'hovertest_hslider': +widgets.c:709:21: warning: conversion from 'float' to 'int' may change value [-Wfloat-conversion] + 709 | if (hit) return (x-slx); + | ~~^~~~~ +widgets.c: In function 'textbox_edit': +widgets.c:738:20: warning: comparison of integer expressions of different signedness: 'size_t' {aka 'unsigned int'} and 'int' [-Wsign-compare] + 738 | strlen(text)