Diff of the two buildlogs: -- --- b1/build.log 2024-05-24 06:37:35.347663271 +0000 +++ b2/build.log 2024-05-24 06:39:34.430595182 +0000 @@ -1,6 +1,6 @@ I: pbuilder: network access will be disabled during build -I: Current time: Thu May 23 18:33:28 -12 2024 -I: pbuilder-time-stamp: 1716532408 +I: Current time: Fri Jun 27 03:00:37 +14 2025 +I: pbuilder-time-stamp: 1750942837 I: Building the build Environment I: extracting base tarball [/var/cache/pbuilder/unstable-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/2427773/tmp/hooks/D02_print_environment starting +I: user script /srv/workspace/pbuilder/918419/tmp/hooks/D01_modify_environment starting +debug: Running on ionos5-amd64. +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 Jun 26 13:00 /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/918419/tmp/hooks/D01_modify_environment finished +I: user script /srv/workspace/pbuilder/918419/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='amd64' - DEBIAN_FRONTEND='noninteractive' - DEB_BUILD_OPTIONS='buildinfo=+all reproducible=+all parallel=20 ' - DISTRIBUTION='unstable' - HOME='/root' - HOST_ARCH='amd64' + 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]="x86_64-pc-linux-gnu") + 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=amd64 + DEBIAN_FRONTEND=noninteractive + DEB_BUILD_OPTIONS='buildinfo=+all reproducible=+all parallel=42 ' + DIRSTACK=() + DISTRIBUTION=unstable + EUID=0 + FUNCNAME=([0]="Echo" [1]="main") + GROUPS=() + HOME=/root + HOSTNAME=i-capture-the-hostname + HOSTTYPE=x86_64 + HOST_ARCH=amd64 IFS=' ' - INVOCATION_ID='7e1b0e8819da40e7b898998c3f85b7d0' - 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='2427773' - PS1='# ' - PS2='> ' + INVOCATION_ID=025610b80d624da1a88d466add87067c + LANG=C + LANGUAGE=et_EE:et + LC_ALL=C + MACHTYPE=x86_64-pc-linux-gnu + MAIL=/var/mail/root + OPTERR=1 + OPTIND=1 + OSTYPE=linux-gnu + 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=918419 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.JX2vmkmk/pbuilderrc_gC7c --distribution unstable --hookdir /etc/pbuilder/first-build-hooks --debbuildopts -b --basetgz /var/cache/pbuilder/unstable-reproducible-base.tgz --buildresult /srv/reproducible-results/rbuild-debian/r-b-build.JX2vmkmk/b1 --logfile b1/build.log komposter_0+git20201216+ds-3.dsc' - SUDO_GID='111' - SUDO_UID='106' - SUDO_USER='jenkins' - TERM='unknown' - TZ='/usr/share/zoneinfo/Etc/GMT+12' - USER='root' - _='/usr/bin/systemd-run' - http_proxy='http://46.16.76.132:3128' + 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.JX2vmkmk/pbuilderrc_ogAU --distribution unstable --hookdir /etc/pbuilder/rebuild-hooks --debbuildopts -b --basetgz /var/cache/pbuilder/unstable-reproducible-base.tgz --buildresult /srv/reproducible-results/rbuild-debian/r-b-build.JX2vmkmk/b2 --logfile b2/build.log komposter_0+git20201216+ds-3.dsc' + SUDO_GID=110 + SUDO_UID=105 + SUDO_USER=jenkins + TERM=unknown + TZ=/usr/share/zoneinfo/Etc/GMT-14 + UID=0 + USER=root + _='I: set' + http_proxy=http://213.165.73.152:3128 I: uname -a - Linux ionos11-amd64 6.1.0-21-amd64 #1 SMP PREEMPT_DYNAMIC Debian 6.1.90-1 (2024-05-03) x86_64 GNU/Linux + Linux i-capture-the-hostname 6.7.12+bpo-amd64 #1 SMP PREEMPT_DYNAMIC Debian 6.7.12-1~bpo12+1 (2024-05-06) x86_64 GNU/Linux I: ls -l /bin - lrwxrwxrwx 1 root root 7 May 23 07:43 /bin -> usr/bin -I: user script /srv/workspace/pbuilder/2427773/tmp/hooks/D02_print_environment finished + lrwxrwxrwx 1 root root 7 Jun 25 14:06 /bin -> usr/bin +I: user script /srv/workspace/pbuilder/918419/tmp/hooks/D02_print_environment finished -> Attempting to satisfy build-dependencies -> Creating pbuilder-satisfydepends-dummy package Package: pbuilder-satisfydepends-dummy @@ -257,7 +289,7 @@ Get: 133 http://deb.debian.org/debian unstable/main amd64 pkgconf-bin amd64 1.8.1-1+b2 [29.7 kB] Get: 134 http://deb.debian.org/debian unstable/main amd64 pkgconf amd64 1.8.1-1+b2 [26.2 kB] Get: 135 http://deb.debian.org/debian unstable/main amd64 pkg-config amd64 1.8.1-1+b2 [14.0 kB] -Fetched 78.5 MB in 4s (20.9 MB/s) +Fetched 78.5 MB in 9s (8762 kB/s) debconf: delaying package configuration, since apt-utils is not installed Selecting previously unselected package sensible-utils. (Reading database ... (Reading database ... 5% (Reading database ... 10% (Reading database ... 15% (Reading database ... 20% (Reading database ... 25% (Reading database ... 30% (Reading database ... 35% (Reading database ... 40% (Reading database ... 45% (Reading database ... 50% (Reading database ... 55% (Reading database ... 60% (Reading database ... 65% (Reading database ... 70% (Reading database ... 75% (Reading database ... 80% (Reading database ... 85% (Reading database ... 90% (Reading database ... 95% (Reading database ... 100% (Reading database ... 19718 files and directories currently installed.) @@ -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/918419/tmp/hooks/A99_set_merged_usr starting +Not re-configuring usrmerge for unstable +I: user script /srv/workspace/pbuilder/918419/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,7 +1039,7 @@ 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 -j20 + make -j42 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 -Werror=implicit-function-declaration -ffile-prefix-map=/build/reproducible-path/komposter-0+git20201216+ds=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -fcf-protection -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 -Werror=implicit-function-declaration -ffile-prefix-map=/build/reproducible-path/komposter-0+git20201216+ds=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -fcf-protection -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 @@ -1012,18 +1048,22 @@ 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 -Werror=implicit-function-declaration -ffile-prefix-map=/build/reproducible-path/komposter-0+git20201216+ds=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -fcf-protection -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 -Werror=implicit-function-declaration -ffile-prefix-map=/build/reproducible-path/komposter-0+git20201216+ds=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -fcf-protection -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 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 -Werror=implicit-function-declaration -ffile-prefix-map=/build/reproducible-path/komposter-0+git20201216+ds=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -fcf-protection -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 -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 -Werror=implicit-function-declaration -ffile-prefix-map=/build/reproducible-path/komposter-0+git20201216+ds=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -fcf-protection -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 filedialog.o filedialog.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] 152 | void calc_supersaw_tables(); | ^~~~ +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 -Werror=implicit-function-declaration -ffile-prefix-map=/build/reproducible-path/komposter-0+git20201216+ds=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -fcf-protection -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 filedialog.o filedialog.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 -Werror=implicit-function-declaration -ffile-prefix-map=/build/reproducible-path/komposter-0+git20201216+ds=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -fcf-protection -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 fileops.o fileops.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 -Werror=implicit-function-declaration -ffile-prefix-map=/build/reproducible-path/komposter-0+git20201216+ds=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -fcf-protection -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 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 -Werror=implicit-function-declaration -ffile-prefix-map=/build/reproducible-path/komposter-0+git20201216+ds=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -fcf-protection -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 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 -Werror=implicit-function-declaration -ffile-prefix-map=/build/reproducible-path/komposter-0+git20201216+ds=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -fcf-protection -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 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 -Werror=implicit-function-declaration -ffile-prefix-map=/build/reproducible-path/komposter-0+git20201216+ds=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -fcf-protection -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 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 -Werror=implicit-function-declaration -ffile-prefix-map=/build/reproducible-path/komposter-0+git20201216+ds=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -fcf-protection -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 +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 -Werror=implicit-function-declaration -ffile-prefix-map=/build/reproducible-path/komposter-0+git20201216+ds=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -fcf-protection -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 +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 -Werror=implicit-function-declaration -ffile-prefix-map=/build/reproducible-path/komposter-0+git20201216+ds=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -fcf-protection -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 +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 -Werror=implicit-function-declaration -ffile-prefix-map=/build/reproducible-path/komposter-0+git20201216+ds=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -fcf-protection -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 -Werror=implicit-function-declaration -ffile-prefix-map=/build/reproducible-path/komposter-0+git20201216+ds=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -fcf-protection -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 dotfile.c:16: dotfile.h:16:1: warning: function declaration isn't a prototype [-Wstrict-prototypes] 16 | int dotfile_load(); @@ -1039,6 +1079,10 @@ dotfile.c:70:22: warning: passing argument 1 of 'dotfile_setvalue' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] 70 | dotfile_setvalue("synthFileDir", home); | ^~~~~~~~~~~~~~ +In file included from fileops.c:19: +modules.h:152:1: warning: function declaration isn't a prototype [-Wstrict-prototypes] + 152 | void calc_supersaw_tables(); + | ^~~~ dotfile.h:19:28: note: expected 'char *' but argument is of type 'const char *' 19 | int dotfile_setvalue(char *key, char *value); | ~~~~~~^~~ @@ -1054,1953 +1098,6 @@ | ^~~~~~~~~~~~ dotfile.c: In function 'dotfile_save': dotfile.c:78:5: warning: old-style function definition [-Wold-style-definition] -In file included from fileops.c:19: -modules.h:152:1: warning: function declaration isn't a prototype [-Wstrict-prototypes] - 152 | void calc_supersaw_tables(); - | ^~~~ -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 -Werror=implicit-function-declaration -ffile-prefix-map=/build/reproducible-path/komposter-0+git20201216+ds=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -fcf-protection -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 -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 -Werror=implicit-function-declaration -ffile-prefix-map=/build/reproducible-path/komposter-0+git20201216+ds=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -fcf-protection -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 -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 -Werror=implicit-function-declaration -ffile-prefix-map=/build/reproducible-path/komposter-0+git20201216+ds=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -fcf-protection -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 -Werror=implicit-function-declaration -ffile-prefix-map=/build/reproducible-path/komposter-0+git20201216+ds=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -fcf-protection -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 audio.c:16: -audio.h:56:1: warning: function declaration isn't a prototype [-Wstrict-prototypes] - 56 | int audio_exportwav(); //char *filename); - | ^~~ -In file included from buffermm.h:16, - from audio.c:17: -modules.h:152:1: warning: function declaration isn't a prototype [-Wstrict-prototypes] - 152 | void calc_supersaw_tables(); - | ^~~~ -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); - | ^ -In file included from synthesizer.h:24, - from synthesizer.c:13: -audio.h:56:1: warning: function declaration isn't a prototype [-Wstrict-prototypes] - 56 | int audio_exportwav(); //char *filename); - | ^~~ -In file included from buffermm.h:16, - from synthesizer.h:25: -modules.h:152:1: warning: function declaration isn't a prototype [-Wstrict-prototypes] - 152 | void calc_supersaw_tables(); - | ^~~~ -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(); - | ^~~ -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); - | ^~~~~~~~~~~ -synthesizer.c: In function 'hovertest_output': -synthesizer.c:178:11: warning: conversion from 'int' to 'float' may change value [-Wconversion] - 178 | xd=x-(list[m].x+MODULE_HALF); - | ^ -synthesizer.c:179:11: warning: conversion from 'int' to 'float' may change value [-Wconversion] - 179 | yd=y-(list[m].y+OUTPUT_OFFSET); - | ^ -synthesizer.c:180:9: warning: conversion from 'double' to 'float' may change value [-Wfloat-conversion] - 180 | d=sqrt(xd*xd+yd*yd); - | ^~~~ -synthesizer.c: In function 'hovertest_input': -synthesizer.c:189:48: warning: declaration of 'mod' shadows a global declaration [-Wshadow] - 189 | int hovertest_input(int x, int y, synthmodule *mod) - | ~~~~~~~~~~~~~^~~ -synthesizer.c:52:13: note: shadowed declaration is here - 52 | synthmodule mod[MAX_SYNTH][MAX_MODULES]; - | ^~~ -synthesizer.c:196:10: warning: conversion from 'int' to 'float' may change value [-Wconversion] - 196 | xd=x - (mod->x + node_xoffset[ modInputCount[mod->type] ][ n ]); - | ^ -synthesizer.c:197:10: warning: conversion from 'int' to 'float' may change value [-Wconversion] - 197 | yd=y - (mod->y + node_yoffset[ modInputCount[mod->type] ][ n ]); - | ^ -synthesizer.c:198:7: warning: conversion from 'double' to 'float' may change value [-Wfloat-conversion] - 198 | d=sqrt(xd*xd + yd*yd); - | ^~~~ -synthesizer.c: At top level: -synthesizer.c:240:6: warning: no previous prototype for 'synth_open_addmodule' [-Wmissing-prototypes] - 240 | void synth_open_addmodule(void) - | ^~~~~~~~~~~~~~~~~~~~ -synthesizer.c: In function 'synth_open_addmodule': -synthesizer.c:252:21: warning: conversion from 'int' to 'float' may change value [-Wconversion] - 252 | tmpmod[m].x=(DS_WIDTH/2)-222 + m*74; - | ^ -synthesizer.c:255:21: warning: conversion from 'int' to 'float' may change value [-Wconversion] - 255 | tmpmod[m].x=(DS_WIDTH/2)-222 + (m-7)*74; - | ^ -synthesizer.c:259:21: warning: conversion from 'int' to 'float' may change value [-Wconversion] - 259 | tmpmod[m].x=(DS_WIDTH/2)-222 + (m-14)*74; - | ^ -synthesizer.c:266:15: warning: ISO C forbids passing argument 1 of 'dialog_open' between function pointer and 'void *' [-Wpedantic] - 266 | dialog_open(&synth_draw_addmodule, &synth_addmodule_hover, synth_addmodule_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); - | ~~~~~~^~~~ -synthesizer.c:266:38: warning: ISO C forbids passing argument 2 of 'dialog_open' between function pointer and 'void *' [-Wpedantic] - 266 | dialog_open(&synth_draw_addmodule, &synth_addmodule_hover, synth_addmodule_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); - | ~~~~~~^~~~~ -synthesizer.c:266:62: warning: ISO C forbids passing argument 3 of 'dialog_open' between function pointer and 'void *' [-Wpedantic] - 266 | dialog_open(&synth_draw_addmodule, &synth_addmodule_hover, synth_addmodule_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); - | ~~~~~~^~~~~ -synthesizer.c:267:23: warning: ISO C forbids passing argument 1 of 'dialog_bindkeyboard' between function pointer and 'void *' [-Wpedantic] - 267 | dialog_bindkeyboard(&synth_addmodule_keyboard); - | ^~~~~~~~~~~~~~~~~~~~~~~~~ -dialog.h:23:32: note: expected 'void *' but argument is of type 'void (*)(unsigned char, int, int)' - 23 | void dialog_bindkeyboard(void *kbfunc); - | ~~~~~~^~~~~~ -synthesizer.c: In function 'synth_mouse_hover': -synthesizer.c:285:34: warning: conversion from 'int' to 'float' may change value [-Wconversion] - 285 | synth_ui[B_PREV]=hovertest_box(x, y, 14, DS_HEIGHT-14, 16, 16); - | ^ -synthesizer.c:285:37: warning: conversion from 'int' to 'float' may change value [-Wconversion] - 285 | synth_ui[B_PREV]=hovertest_box(x, y, 14, DS_HEIGHT-14, 16, 16); - | ^ -synthesizer.c:286:34: warning: conversion from 'int' to 'float' may change value [-Wconversion] - 286 | synth_ui[B_NEXT]=hovertest_box(x, y, 64, DS_HEIGHT-14, 16, 16); - | ^ -synthesizer.c:286:37: warning: conversion from 'int' to 'float' may change value [-Wconversion] - 286 | synth_ui[B_NEXT]=hovertest_box(x, y, 64, DS_HEIGHT-14, 16, 16); - | ^ -synthesizer.c:287:34: warning: conversion from 'int' to 'float' may change value [-Wconversion] - 287 | synth_ui[B_ADD]=hovertest_box (x, y, 310, DS_HEIGHT-14, 16, 16); - | ^ -synthesizer.c:287:37: warning: conversion from 'int' to 'float' may change value [-Wconversion] - 287 | synth_ui[B_ADD]=hovertest_box (x, y, 310, DS_HEIGHT-14, 16, 16); - | ^ -synthesizer.c:288:34: warning: conversion from 'int' to 'float' may change value [-Wconversion] - 288 | synth_ui[B_SAVE]=hovertest_box(x, y, 350, DS_HEIGHT-14, 16, 16); - | ^ -synthesizer.c:288:37: warning: conversion from 'int' to 'float' may change value [-Wconversion] - 288 | synth_ui[B_SAVE]=hovertest_box(x, y, 350, DS_HEIGHT-14, 16, 16); - | ^ -synthesizer.c:289:34: warning: conversion from 'int' to 'float' may change value [-Wconversion] - 289 | synth_ui[B_LOAD]=hovertest_box(x, y, 372, DS_HEIGHT-14, 16, 16); - | ^ -synthesizer.c:289:37: warning: conversion from 'int' to 'float' may change value [-Wconversion] - 289 | synth_ui[B_LOAD]=hovertest_box(x, y, 372, DS_HEIGHT-14, 16, 16); - | ^ -synthesizer.c:290:35: warning: conversion from 'int' to 'float' may change value [-Wconversion] - 290 | synth_ui[B_CLEAR]=hovertest_box(x, y, 394, DS_HEIGHT-14, 16, 16) | (synth_ui[B_CLEAR]&8); - | ^ -synthesizer.c:290:38: warning: conversion from 'int' to 'float' may change value [-Wconversion] - 290 | synth_ui[B_CLEAR]=hovertest_box(x, y, 394, DS_HEIGHT-14, 16, 16) | (synth_ui[B_CLEAR]&8); - | ^ -synthesizer.c:294:35: warning: conversion from 'int' to 'float' may change value [-Wconversion] - 294 | synth_ui[B_NAME]|=hovertest_box(x, y, 190, DS_HEIGHT-14, 16, 180); - | ^ -synthesizer.c:294:38: warning: conversion from 'int' to 'float' may change value [-Wconversion] - 294 | synth_ui[B_NAME]|=hovertest_box(x, y, 190, DS_HEIGHT-14, 16, 180); - | ^ -synthesizer.c: In function 'synth_mouse_drag': -synthesizer.c:333:31: warning: conversion from 'int' to 'float' may change value [-Wconversion] - 333 | mod[csynth][moduledrag].x=x-dragoffset_x; - | ^ -synthesizer.c:334:31: warning: conversion from 'int' to 'float' may change value [-Wconversion] - 334 | mod[csynth][moduledrag].y=y-dragoffset_y; - | ^ -synthesizer.c: In function 'synth_mouse_click': -synthesizer.c:375:24: warning: passing argument 1 of 'console_post' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] - 375 | console_post("Click again to clear synthesizer"); - | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -In file included from pattern.h:19, - from buffermm.h:17: -console.h:23:25: note: expected 'char *' but argument is of type 'const char *' - 23 | void console_post(char *msg); - | ~~~~~~^~~ -synthesizer.c:418:33: warning: passing argument 1 of 'dotfile_getvalue' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] - 418 | syndir=dotfile_getvalue("synthFileDir"); - | ^~~~~~~~~~~~~~ -dotfile.h:18:30: note: expected 'char *' but argument is of type 'const char *' - 18 | char *dotfile_getvalue(char *key); - | ~~~~~~^~~ -synthesizer.c:419:39: warning: passing argument 2 of 'filedialog_open' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] - 419 | filedialog_open(&fd[FD_SAVE], "ksyn", syndir); - | ^~~~~~ -In file included from synthesizer.h:30: -filedialog.h:58:44: note: expected 'char *' but argument is of type 'const char *' - 58 | void filedialog_open(filedialog *fd, char *ext, char *path); - | ~~~~~~^~~ -synthesizer.c:421:21: warning: ISO C forbids passing argument 1 of 'dialog_open' between function pointer and 'void *' [-Wpedantic] - 421 | dialog_open(&synth_draw_file, &synth_file_hover, &synth_file_click); - | ^~~~~~~~~~~~~~~~ -dialog.h:22:24: note: expected 'void *' but argument is of type 'void (*)(void)' - 22 | void dialog_open(void *draw, void *hover, void *click); - | ~~~~~~^~~~ -synthesizer.c:421:39: warning: ISO C forbids passing argument 2 of 'dialog_open' between function pointer and 'void *' [-Wpedantic] - 421 | dialog_open(&synth_draw_file, &synth_file_hover, &synth_file_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); - | ~~~~~~^~~~~ -synthesizer.c:421:58: warning: ISO C forbids passing argument 3 of 'dialog_open' between function pointer and 'void *' [-Wpedantic] - 421 | dialog_open(&synth_draw_file, &synth_file_hover, &synth_file_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); - | ~~~~~~^~~~~ -synthesizer.c:422:29: warning: ISO C forbids passing argument 1 of 'dialog_bindkeyboard' between function pointer and 'void *' [-Wpedantic] - 422 | dialog_bindkeyboard(&synth_file_keyboard); - | ^~~~~~~~~~~~~~~~~~~~ -dialog.h:23:32: note: expected 'void *' but argument is of type 'void (*)(unsigned char, int, int)' - 23 | void dialog_bindkeyboard(void *kbfunc); - | ~~~~~~^~~~~~ -synthesizer.c:423:25: warning: ISO C forbids passing argument 1 of 'dialog_binddrag' between function pointer and 'void *' [-Wpedantic] - 423 | dialog_binddrag(&synth_file_drag); - | ^~~~~~~~~~~~~~~~ -dialog.h:31:28: note: expected 'void *' but argument is of type 'void (*)(int, int)' - 31 | void dialog_binddrag(void *dragfunc); - | ~~~~~~^~~~~~~~ -synthesizer.c:427:33: warning: passing argument 1 of 'dotfile_getvalue' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] - 427 | syndir=dotfile_getvalue("synthFileDir"); - | ^~~~~~~~~~~~~~ -dotfile.h:18:30: note: expected 'char *' but argument is of type 'const char *' - 18 | char *dotfile_getvalue(char *key); - | ~~~~~~^~~ -synthesizer.c:428:39: warning: passing argument 2 of 'filedialog_open' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] - 428 | filedialog_open(&fd[FD_LOAD], "ksyn", syndir); - | ^~~~~~ -filedialog.h:58:44: note: expected 'char *' but argument is of type 'const char *' - 58 | void filedialog_open(filedialog *fd, char *ext, char *path); - | ~~~~~~^~~ -synthesizer.c:430:21: warning: ISO C forbids passing argument 1 of 'dialog_open' between function pointer and 'void *' [-Wpedantic] - 430 | dialog_open(&synth_draw_file, &synth_file_hover, &synth_file_click); - | ^~~~~~~~~~~~~~~~ -dialog.h:22:24: note: expected 'void *' but argument is of type 'void (*)(void)' - 22 | void dialog_open(void *draw, void *hover, void *click); - | ~~~~~~^~~~ -synthesizer.c:430:39: warning: ISO C forbids passing argument 2 of 'dialog_open' between function pointer and 'void *' [-Wpedantic] - 430 | dialog_open(&synth_draw_file, &synth_file_hover, &synth_file_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); - | ~~~~~~^~~~~ -synthesizer.c:430:58: warning: ISO C forbids passing argument 3 of 'dialog_open' between function pointer and 'void *' [-Wpedantic] - 430 | dialog_open(&synth_draw_file, &synth_file_hover, &synth_file_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); - | ~~~~~~^~~~~ -synthesizer.c:431:29: warning: ISO C forbids passing argument 1 of 'dialog_bindkeyboard' between function pointer and 'void *' [-Wpedantic] - 431 | dialog_bindkeyboard(&synth_file_keyboard); - | ^~~~~~~~~~~~~~~~~~~~ -dialog.h:23:32: note: expected 'void *' but argument is of type 'void (*)(unsigned char, int, int)' - 23 | void dialog_bindkeyboard(void *kbfunc); - | ~~~~~~^~~~~~ -synthesizer.c:432:25: warning: ISO C forbids passing argument 1 of 'dialog_binddrag' between function pointer and 'void *' [-Wpedantic] - 432 | dialog_binddrag(&synth_file_drag); - | ^~~~~~~~~~~~~~~~ -dialog.h:31:28: note: expected 'void *' but argument is of type 'void (*)(int, int)' - 31 | void dialog_binddrag(void *dragfunc); - | ~~~~~~^~~~~~~~ -synthesizer.c:456:23: warning: conversion from 'int' to 'float' may change value [-Wconversion] - 456 | dragoffset_x=x-mod[csynth][m].x; - | ^ -synthesizer.c:456:22: warning: conversion from 'float' to 'int' may change value [-Wfloat-conversion] - 456 | dragoffset_x=x-mod[csynth][m].x; - | ^ -synthesizer.c:457:23: warning: conversion from 'int' to 'float' may change value [-Wconversion] - 457 | dragoffset_y=y-mod[csynth][m].y; - | ^ -synthesizer.c:457:22: warning: conversion from 'float' to 'int' may change value [-Wfloat-conversion] - 457 | dragoffset_y=y-mod[csynth][m].y; - | ^ -synthesizer.c:483:45: warning: conversion to 'unsigned int' from 'int' may change the sign of the result [-Wsign-conversion] - 483 | mod[csynth][signaldrag].scale=modInputScale[mod[csynth][m].type][mod[csynth][m].inpactive]; - | ^~~~~~~~~~~~~ -synthesizer.c:502:21: warning: ISO C forbids passing argument 1 of 'dialog_open' between function pointer and 'void *' [-Wpedantic] - 502 | dialog_open(&synthlabel_draw, &synthlabel_hover, &synthlabel_click); - | ^~~~~~~~~~~~~~~~ -dialog.h:22:24: note: expected 'void *' but argument is of type 'void (*)(void)' - 22 | void dialog_open(void *draw, void *hover, void *click); - | ~~~~~~^~~~ -synthesizer.c:502:39: warning: ISO C forbids passing argument 2 of 'dialog_open' between function pointer and 'void *' [-Wpedantic] - 502 | dialog_open(&synthlabel_draw, &synthlabel_hover, &synthlabel_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); - | ~~~~~~^~~~~ -synthesizer.c:502:58: warning: ISO C forbids passing argument 3 of 'dialog_open' between function pointer and 'void *' [-Wpedantic] - 502 | dialog_open(&synthlabel_draw, &synthlabel_hover, &synthlabel_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); - | ~~~~~~^~~~~ -synthesizer.c:503:29: warning: ISO C forbids passing argument 1 of 'dialog_bindkeyboard' between function pointer and 'void *' [-Wpedantic] - 503 | dialog_bindkeyboard(&synthlabel_keyboard); - | ^~~~~~~~~~~~~~~~~~~~ -dialog.h:23:32: note: expected 'void *' but argument is of type 'void (*)(unsigned char, int, int)' - 23 | void dialog_bindkeyboard(void *kbfunc); - | ~~~~~~^~~~~~ -In file included from widgets.h:23, - from dialog.h:16, - from dialog.c:13: -modules.h:152:1: warning: function declaration isn't a prototype [-Wstrict-prototypes] - 152 | void calc_supersaw_tables(); - | ^~~~ -synthesizer.c: In function 'synth_keyboard': -synthesizer.c:527:29: warning: passing argument 1 of 'dotfile_getvalue' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] - 527 | syndir=dotfile_getvalue("synthFileDir"); - | ^~~~~~~~~~~~~~ -dotfile.h:18:30: note: expected 'char *' but argument is of type 'const char *' - 18 | char *dotfile_getvalue(char *key); - | ~~~~~~^~~ -dialog.c: In function 'dialog_open': -synthesizer.c:528:35: warning: passing argument 2 of 'filedialog_open' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] - 528 | filedialog_open(&fd[FD_SAVE], "ksyn", syndir); - | ^~~~~~ -dialog.c:43:18: warning: ISO C forbids assignment between function pointer and 'void *' [-Wpedantic] - 43 | dialog_drawfunc=draw; - | ^ -filedialog.h:58:44: note: expected 'char *' but argument is of type 'const char *' - 58 | void filedialog_open(filedialog *fd, char *ext, char *path); - | ~~~~~~^~~ -dialog.c:44:19: warning: ISO C forbids assignment between function pointer and 'void *' [-Wpedantic] - 44 | dialog_hoverfunc=hover; - | ^ -dialog.c:45:19: warning: ISO C forbids assignment between function pointer and 'void *' [-Wpedantic] - 45 | dialog_clickfunc=click; - | ^ -dialog.c: In function 'dialog_bindkeyboard': -dialog.c:51:16: warning: ISO C forbids assignment between function pointer and 'void *' [-Wpedantic] - 51 | dialog_kbfunc=kbfunc; - | ^ -dialog.c: In function 'dialog_binddrag': -dialog.c:56:18: warning: ISO C forbids assignment between function pointer and 'void *' [-Wpedantic] - 56 | dialog_dragfunc=dragfunc; - | ^ -dialog.c: In function 'dialog_bindspecial': -dialog.c:61:21: warning: ISO C forbids assignment between function pointer and 'void *' [-Wpedantic] - 61 | dialog_specialfunc=specialfunc; - | ^ -synthesizer.c:530:17: warning: ISO C forbids passing argument 1 of 'dialog_open' between function pointer and 'void *' [-Wpedantic] - 530 | dialog_open(&synth_draw_file, &synth_file_hover, &synth_file_click); - | ^~~~~~~~~~~~~~~~ -dialog.h:22:24: note: expected 'void *' but argument is of type 'void (*)(void)' - 22 | void dialog_open(void *draw, void *hover, void *click); - | ~~~~~~^~~~ -synthesizer.c:530:35: warning: ISO C forbids passing argument 2 of 'dialog_open' between function pointer and 'void *' [-Wpedantic] - 530 | dialog_open(&synth_draw_file, &synth_file_hover, &synth_file_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); - | ~~~~~~^~~~~ -synthesizer.c:530:54: warning: ISO C forbids passing argument 3 of 'dialog_open' between function pointer and 'void *' [-Wpedantic] - 530 | dialog_open(&synth_draw_file, &synth_file_hover, &synth_file_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); - | ~~~~~~^~~~~ -synthesizer.c:531:25: warning: ISO C forbids passing argument 1 of 'dialog_bindkeyboard' between function pointer and 'void *' [-Wpedantic] - 531 | dialog_bindkeyboard(&synth_file_keyboard); - | ^~~~~~~~~~~~~~~~~~~~ -dialog.h:23:32: note: expected 'void *' but argument is of type 'void (*)(unsigned char, int, int)' - 23 | void dialog_bindkeyboard(void *kbfunc); - | ~~~~~~^~~~~~ -synthesizer.c:532:21: warning: ISO C forbids passing argument 1 of 'dialog_binddrag' between function pointer and 'void *' [-Wpedantic] - 532 | dialog_binddrag(&synth_file_drag); - | ^~~~~~~~~~~~~~~~ -dialog.h:31:28: note: expected 'void *' but argument is of type 'void (*)(int, int)' - 31 | void dialog_binddrag(void *dragfunc); - | ~~~~~~^~~~~~~~ -synthesizer.c:537:29: warning: passing argument 1 of 'dotfile_getvalue' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] - 537 | syndir=dotfile_getvalue("synthFileDir"); - | ^~~~~~~~~~~~~~ -dotfile.h:18:30: note: expected 'char *' but argument is of type 'const char *' - 18 | char *dotfile_getvalue(char *key); - | ~~~~~~^~~ -synthesizer.c:538:35: warning: passing argument 2 of 'filedialog_open' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] - 538 | filedialog_open(&fd[FD_LOAD], "ksyn", syndir); - | ^~~~~~ -filedialog.h:58:44: note: expected 'char *' but argument is of type 'const char *' - 58 | void filedialog_open(filedialog *fd, char *ext, char *path); - | ~~~~~~^~~ -synthesizer.c:540:17: warning: ISO C forbids passing argument 1 of 'dialog_open' between function pointer and 'void *' [-Wpedantic] - 540 | dialog_open(&synth_draw_file, &synth_file_hover, &synth_file_click); - | ^~~~~~~~~~~~~~~~ -dialog.h:22:24: note: expected 'void *' but argument is of type 'void (*)(void)' - 22 | void dialog_open(void *draw, void *hover, void *click); - | ~~~~~~^~~~ -synthesizer.c:540:35: warning: ISO C forbids passing argument 2 of 'dialog_open' between function pointer and 'void *' [-Wpedantic] - 540 | dialog_open(&synth_draw_file, &synth_file_hover, &synth_file_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); - | ~~~~~~^~~~~ -synthesizer.c:540:54: warning: ISO C forbids passing argument 3 of 'dialog_open' between function pointer and 'void *' [-Wpedantic] - 540 | dialog_open(&synth_draw_file, &synth_file_hover, &synth_file_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); - | ~~~~~~^~~~~ -synthesizer.c:541:25: warning: ISO C forbids passing argument 1 of 'dialog_bindkeyboard' between function pointer and 'void *' [-Wpedantic] - 541 | dialog_bindkeyboard(&synth_file_keyboard); - | ^~~~~~~~~~~~~~~~~~~~ -dialog.h:23:32: note: expected 'void *' but argument is of type 'void (*)(unsigned char, int, int)' - 23 | void dialog_bindkeyboard(void *kbfunc); - | ~~~~~~^~~~~~ -synthesizer.c:542:21: warning: ISO C forbids passing argument 1 of 'dialog_binddrag' between function pointer and 'void *' [-Wpedantic] - 542 | dialog_binddrag(&synth_file_drag); - | ^~~~~~~~~~~~~~~~ -dialog.h:31:28: note: expected 'void *' but argument is of type 'void (*)(int, int)' - 31 | void dialog_binddrag(void *dragfunc); - | ~~~~~~^~~~~~~~ -synthesizer.c:514:44: warning: unused parameter 'x' [-Wunused-parameter] - 514 | void synth_keyboard(unsigned char key, int x, int y) - | ~~~~^ -synthesizer.c:514:51: warning: unused parameter 'y' [-Wunused-parameter] - 514 | void synth_keyboard(unsigned char key, int x, int y) - | ~~~~^ -synthesizer.c: In function 'synth_specialkey': -synthesizer.c:555:3: warning: switch missing default case [-Wswitch-default] - 555 | switch(key) - | ^~~~~~ -synthesizer.c:553:46: warning: unused parameter 'x' [-Wunused-parameter] - 553 | void synth_specialkey(unsigned char key, int x, int y) - | ~~~~^ -synthesizer.c:553:53: warning: unused parameter 'y' [-Wunused-parameter] - 553 | void synth_specialkey(unsigned char key, int x, int y) - | ~~~~^ -synthesizer.c: In function 'synth_draw': -synthesizer.c:624:37: warning: passing argument 4 of 'draw_button' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] - 624 | draw_button(14, DS_HEIGHT-14, 16, "<<", synth_ui[B_PREV]); - | ^~~~ -In file included from pattern.h:22: -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); - | ~~~~~~^~~~~ -synthesizer.c:627:37: warning: passing argument 4 of 'draw_button' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] - 627 | draw_button(64, DS_HEIGHT-14, 16, ">>", synth_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); - | ~~~~~~^~~~~ -synthesizer.c:629:38: warning: passing argument 4 of 'draw_button' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] - 629 | draw_button(310, DS_HEIGHT-14, 16, "m", synth_ui[B_ADD]); - | ^~~ -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); - | ~~~~~~^~~~~ -synthesizer.c:630:38: warning: passing argument 4 of 'draw_button' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] - 630 | draw_button(350, DS_HEIGHT-14, 16, "S", synth_ui[B_SAVE]); - | ^~~ -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); - | ~~~~~~^~~~~ -synthesizer.c:631:38: warning: passing argument 4 of 'draw_button' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] - 631 | draw_button(372, DS_HEIGHT-14, 16, "L", synth_ui[B_LOAD]); - | ^~~ -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); - | ~~~~~~^~~~~ -synthesizer.c:633:38: warning: passing argument 4 of 'draw_button' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] - 633 | draw_button(394, DS_HEIGHT-14, 16, "C", synth_ui[B_CLEAR]); - | ^~~ -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); - | ~~~~~~^~~~~ -synthesizer.c: In function 'synth_addmodule': -synthesizer.c:662:34: warning: conversion from 'int' to 'float' may change value [-Wconversion] - 662 | xd=(DS_WIDTH/10)*i - mod[csynth][k].x; - | ^ -synthesizer.c:663:35: warning: conversion from 'int' to 'float' may change value [-Wconversion] - 663 | yd=(DS_HEIGHT/10)*j - mod[csynth][k].y; - | ^ -synthesizer.c:664:17: warning: conversion from 'double' to 'float' may change value [-Wfloat-conversion] - 664 | d=sqrt(xd*xd+yd*yd); - | ^~~~ -synthesizer.c:671:24: warning: conversion from 'int' to 'float' may change value [-Wconversion] - 671 | mod[csynth][m].x=bmi; - | ^~~ -synthesizer.c:672:24: warning: conversion from 'int' to 'float' may change value [-Wconversion] - 672 | mod[csynth][m].y=bmj; - | ^~~ -In file included from pattern.h:18, - from buffermm.h:17: -audio.h:56:1: warning: function declaration isn't a prototype [-Wstrict-prototypes] - 56 | int audio_exportwav(); //char *filename); - | ^~~ -synthesizer.c: In function 'synth_draw_addmodule': -synthesizer.c:704:55: warning: passing argument 5 of 'draw_textbox' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] - 704 | draw_textbox((DS_WIDTH/2), (DS_HEIGHT/2), 260, 526, "", 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); - | ~~~~~~^~~~~ -synthesizer.c: In function 'synth_addmodule_click': -synthesizer.c:732:42: warning: conversion from 'int' to 'float' may change value [-Wconversion] - 732 | if (state==GLUT_DOWN && !hovertest_box(x, y, (DS_WIDTH/2), (DS_HEIGHT/2), 260, 526)) { dialog_close(); return; } - | ^ -synthesizer.c:732:45: warning: conversion from 'int' to 'float' may change value [-Wconversion] - 732 | if (state==GLUT_DOWN && !hovertest_box(x, y, (DS_WIDTH/2), (DS_HEIGHT/2), 260, 526)) { dialog_close(); return; } - | ^ -synthesizer.c:734:50: warning: conversion from 'int' to 'float' may change value [-Wconversion] - 734 | if (button==GLUT_RIGHT_BUTTON && hovertest_box(x,y,(DS_WIDTH/2),(DS_HEIGHT/2),260,526)) { - | ^ -synthesizer.c:734:52: warning: conversion from 'int' to 'float' may change value [-Wconversion] - 734 | if (button==GLUT_RIGHT_BUTTON && hovertest_box(x,y,(DS_WIDTH/2),(DS_HEIGHT/2),260,526)) { - | ^ -synthesizer.c: In function 'synth_addmodule_keyboard': -synthesizer.c:747:54: warning: unused parameter 'x' [-Wunused-parameter] - 747 | void synth_addmodule_keyboard(unsigned char key, int x, int y) - | ~~~~^ -synthesizer.c:747:61: warning: unused parameter 'y' [-Wunused-parameter] - 747 | void synth_addmodule_keyboard(unsigned char key, int x, int y) - | ~~~~^ -synthesizer.c: In function 'synth_file_keyboard': -synthesizer.c:770:49: warning: unused parameter 'x' [-Wunused-parameter] - 770 | void synth_file_keyboard(unsigned char key, int x, int y) - | ~~~~^ -synthesizer.c:770:56: warning: unused parameter 'y' [-Wunused-parameter] - 770 | void synth_file_keyboard(unsigned char key, int x, int y) - | ~~~~^ -synthesizer.c: In function 'synth_file_checkstate': -synthesizer.c:796:35: warning: passing argument 1 of 'console_post' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] - 796 | if (r) { console_post("Writing to file failed (KBNK chunk)"); - | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -console.h:23:25: note: expected 'char *' but argument is of type 'const char *' - 23 | void console_post(char *msg); - | ~~~~~~^~~ -synthesizer.c:802:26: warning: passing argument 1 of 'console_post' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] - 802 | console_post("Writing to file failed (KSYN chunk)"); - | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -console.h:23:25: note: expected 'char *' but argument is of type 'const char *' - 23 | void console_post(char *msg); - | ~~~~~~^~~ -synthesizer.c:806:24: warning: passing argument 1 of 'console_post' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] - 806 | console_post("Unable to open file for writing!"); - | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -console.h:23:25: note: expected 'char *' but argument is of type 'const char *' - 23 | void console_post(char *msg); - | ~~~~~~^~~ -synthesizer.c:824:28: warning: passing argument 1 of 'console_post' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] - 824 | console_post("Reading file failed (KBNK chunk)"); - | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -console.h:23:25: note: expected 'char *' but argument is of type 'const char *' - 23 | void console_post(char *msg); - | ~~~~~~^~~ -synthesizer.c:827:26: warning: passing argument 1 of 'console_post' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] - 827 | console_post("Readinf file failed (KSYN chunk)"); - | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -console.h:23:25: note: expected 'char *' but argument is of type 'const char *' - 23 | void console_post(char *msg); - | ~~~~~~^~~ -synthesizer.c:831:24: warning: passing argument 1 of 'console_post' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] - 831 | console_post("Unable to open file for reading!"); - | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -console.h:23:25: note: expected 'char *' but argument is of type 'const char *' - 23 | void console_post(char *msg); - | ~~~~~~^~~ -synthesizer.c:837:24: warning: passing argument 1 of 'dotfile_setvalue' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] - 837 | dotfile_setvalue("synthFileDir", (char*)&fd[fd_active].cpath); - | ^~~~~~~~~~~~~~ -dotfile.h:19:28: note: expected 'char *' but argument is of type 'const char *' - 19 | int dotfile_setvalue(char *key, char *value); - | ~~~~~~^~~ -synthesizer.c: In function 'synthlabel_draw': -synthesizer.c:852:55: warning: passing argument 5 of 'draw_textbox' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] - 852 | draw_textbox((DS_WIDTH/2), (DS_HEIGHT/2), 160, 320, "", 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); - | ~~~~~~^~~~~ -synthesizer.c:874:57: warning: passing argument 4 of 'draw_button' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] - 874 | draw_button((DS_WIDTH/2)+112, (DS_HEIGHT/2)+32, 16, ">>", synth_ui[B_LABEL_INCSCALE]); - | ^~~~ -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); - | ~~~~~~^~~~~ -synthesizer.c:875:57: warning: passing argument 4 of 'draw_button' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] - 875 | draw_button((DS_WIDTH/2)-52, (DS_HEIGHT/2)+32, 16, "<<", synth_ui[B_LABEL_DECSCALE]); - | ^~~~ -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); - | ~~~~~~^~~~~ -synthesizer.c: In function 'synthlabel_hover': -synthesizer.c:888:40: warning: conversion from 'int' to 'float' may change value [-Wconversion] - 888 | synth_label_kbfocus|=hovertest_box(x, y, (DS_WIDTH/2)+30, (DS_HEIGHT/2)-32, 16, 180); - | ^ -synthesizer.c:888:43: warning: conversion from 'int' to 'float' may change value [-Wconversion] - 888 | synth_label_kbfocus|=hovertest_box(x, y, (DS_WIDTH/2)+30, (DS_HEIGHT/2)-32, 16, 180); - | ^ -synthesizer.c:890:46: warning: conversion from 'int' to 'float' may change value [-Wconversion] - 890 | synth_ui[B_LABEL_INCSCALE]=hovertest_box(x, y, (DS_WIDTH/2)+112, (DS_HEIGHT/2)+32, 16, 16); - | ^ -synthesizer.c:890:49: warning: conversion from 'int' to 'float' may change value [-Wconversion] - 890 | synth_ui[B_LABEL_INCSCALE]=hovertest_box(x, y, (DS_WIDTH/2)+112, (DS_HEIGHT/2)+32, 16, 16); - | ^ -synthesizer.c:891:46: warning: conversion from 'int' to 'float' may change value [-Wconversion] - 891 | synth_ui[B_LABEL_DECSCALE]=hovertest_box(x, y, (DS_WIDTH/2)-52, (DS_HEIGHT/2)+32, 16, 16); - | ^ -synthesizer.c:891:49: warning: conversion from 'int' to 'float' may change value [-Wconversion] - 891 | synth_ui[B_LABEL_DECSCALE]=hovertest_box(x, y, (DS_WIDTH/2)-52, (DS_HEIGHT/2)+32, 16, 16); - | ^ -synthesizer.c:897:40: warning: conversion from 'int' to 'float' may change value [-Wconversion] - 897 | synth_ui[B_HUE_PICKER]=hovertest_box(x, y, (DS_WIDTH/2)+21, (DS_HEIGHT/2)+2, 17, 162); - | ^ -synthesizer.c:897:43: warning: conversion from 'int' to 'float' may change value [-Wconversion] - 897 | synth_ui[B_HUE_PICKER]=hovertest_box(x, y, (DS_WIDTH/2)+21, (DS_HEIGHT/2)+2, 17, 162); - | ^ -synthesizer.c:898:44: warning: conversion from 'int' to 'float' may change value [-Wconversion] - 898 | synth_ui[B_HUE_PICKER_BOX]=hovertest_box(x, y, (DS_WIDTH/2)+21+81+11, (DS_HEIGHT/2)+2, 17, 18); - | ^ -synthesizer.c:898:47: warning: conversion from 'int' to 'float' may change value [-Wconversion] - 898 | synth_ui[B_HUE_PICKER_BOX]=hovertest_box(x, y, (DS_WIDTH/2)+21+81+11, (DS_HEIGHT/2)+2, 17, 18); - | ^ -synthesizer.c: In function 'synthlabel_click': -synthesizer.c:904:42: warning: conversion from 'int' to 'float' may change value [-Wconversion] - 904 | if (state==GLUT_DOWN && !hovertest_box(x, y, (DS_WIDTH/2), (DS_HEIGHT/2), 160, 320)) { dialog_close(); return; } - | ^ -synthesizer.c:904:45: warning: conversion from 'int' to 'float' may change value [-Wconversion] - 904 | if (state==GLUT_DOWN && !hovertest_box(x, y, (DS_WIDTH/2), (DS_HEIGHT/2), 160, 320)) { dialog_close(); return; } - | ^ -synthesizer.c:921:60: warning: conversion from 'int' to 'float' may change value [-Wconversion] - 921 | float hue=1.0 + 254.0 * ( (x-((DS_WIDTH/2)+21-81) )/162.0); - | ^ -In file included from patch.h:20, - from patch.c:13: -modules.h:152:1: warning: function declaration isn't a prototype [-Wstrict-prototypes] - 152 | void calc_supersaw_tables(); - | ^~~~ -synthesizer.c:922:45: warning: conversion from 'double' to 'unsigned char' may change value [-Wfloat-conversion] - 922 | mod[csynth][synth_label_edit].color=floor(hue); - | ^~~~~ -synthesizer.c:933:70: warning: conversion from 'int' to 'float' may change value [-Wconversion] - 933 | if (button==GLUT_RIGHT_BUTTON && state==GLUT_DOWN && hovertest_box(x,y,(DS_WIDTH/2),(DS_HEIGHT/2),150,240 )) { - | ^ -synthesizer.c:933:72: warning: conversion from 'int' to 'float' may change value [-Wconversion] - 933 | if (button==GLUT_RIGHT_BUTTON && state==GLUT_DOWN && hovertest_box(x,y,(DS_WIDTH/2),(DS_HEIGHT/2),150,240 )) { - | ^ -synthesizer.c: In function 'synthlabel_keyboard': -synthesizer.c:944:49: warning: unused parameter 'x' [-Wunused-parameter] - 944 | void synthlabel_keyboard(unsigned char key, int x, int y) - | ~~~~^ -In file included from synthesizer.h:29, - from buffermm.h:18: -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(); - | ^~~ -synthesizer.c:944:56: warning: unused parameter 'y' [-Wunused-parameter] - 944 | void synthlabel_keyboard(unsigned char key, int x, int y) - | ~~~~^ -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); - | ^~~~~~~~~~~ -In file included from audio.c:21: -sequencer.h:33:1: warning: function declaration isn't a prototype [-Wstrict-prototypes] - 33 | void sequencer_init(); - | ^~~~ -sequencer.h:80:1: warning: function declaration isn't a prototype [-Wstrict-prototypes] - 80 | void sequencer_bpm_close_dialog(); - | ^~~~ -audio.c:115:7: warning: no previous prototype for 'audio_shape' [-Wmissing-prototypes] - 115 | float audio_shape(float input) - | ^~~~~~~~~~~ -audio.c: In function 'audio_shape': -audio.c:117:14: warning: conversion from 'double' to 'float' may change value [-Wfloat-conversion] - 117 | return 0.5 * (fabs(input + AUDIO_SHAPER_THRESHOLD) - fabs(input - AUDIO_SHAPER_THRESHOLD)); - | ~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -audio.c: In function 'audio_isplaying': -audio.c:182:5: warning: old-style function definition [-Wold-style-definition] - 182 | int audio_isplaying() - | ^~~~~~~~~~~~~~~ -audio.c: In function 'audio_update': -audio.c:205:22: warning: unused parameter 'cs' [-Wunused-parameter] - 205 | int audio_update(int cs) - | ~~~~^~ -audio.c: In function 'audio_process': -audio.c:254:41: warning: conversion from 'long int' to 'int' may change value [-Wconversion] - 254 | if (audiomode==AUDIOMODE_MUTE) return bufferlen; - | ^~~~~~~~~ -In file included from widgets.h:23, - from dialog.h:16, - from filedialog.c:13: -modules.h:152:1: warning: function declaration isn't a prototype [-Wstrict-prototypes] - 152 | void calc_supersaw_tables(); - | ^~~~ -In file included from pattern.h:18, - from pattern.c:13: -audio.h:56:1: warning: function declaration isn't a prototype [-Wstrict-prototypes] - 56 | int audio_exportwav(); //char *filename); - | ^~~ -audio.c:280:29: warning: conversion to 'size_t' {aka 'long unsigned int'} from 'long int' may change the sign of the result [-Wsign-conversion] - 280 | render_buffer=calloc(2*render_bufferlen, sizeof(short)); - | ~^~~~~~~~~~~~~~~~~ -audio.c:300:65: warning: conversion to 'size_t' {aka 'long unsigned int'} from 'long int' may change the sign of the result [-Wsign-conversion] - 300 | memcpy(buffer, &render_buffer[render_playpos*2], copylen*4); - | ~~~~~~~^~ -audio.c:304:74: warning: conversion to 'size_t' {aka 'long unsigned int'} from 'long int' may change the sign of the result [-Wsign-conversion] - 304 | memcpy(&buffer[copylen], &render_buffer[0], (bufferlen-copylen)*4); - | ~~~~~~~~~~~~~~~~~~~^~ -audio.c:309:65: warning: conversion to 'size_t' {aka 'long unsigned int'} from 'long int' may change the sign of the result [-Wsign-conversion] - 309 | memcpy(buffer, &render_buffer[render_playpos*2], copylen*4); - | ~~~~~~~^~ -audio.c:321:65: warning: conversion to 'size_t' {aka 'long unsigned int'} from 'long int' may change the sign of the result [-Wsign-conversion] - 321 | memcpy(buffer, &render_buffer[render_playpos*2], copylen*4); - | ~~~~~~~^~ -audio.c:325:58: warning: conversion to 'size_t' {aka 'long 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 'long unsigned int'} from 'long int' may change the sign of the result [-Wsign-conversion] - 334 | memcpy(buffer, &render_buffer[render_playpos*2], copylen*4); - | ~~~~~~~^~ -audio.c:346:12: warning: conversion from 'long int' to 'int' may change value [-Wconversion] - 346 | return bufferlen; - | ^~~~~~~~~ -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 - | ^ -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 - | ^~~~~~~ -audio.c:361:15: warning: conversion from 'long int' to 'int' may change value [-Wconversion] - 361 | pattpos=ticks>>6; - | ^~~~~ -audio.c:378:17: warning: comparison of integer expressions of different signedness: 'int' and 'unsigned int' [-Wsign-compare] - 378 | if ( m<(pattlen[cpatt]*16) ) { // don't drop gate if next note is legato - | ^ -audio.c:394:17: warning: declaration of 'i' shadows a previous local [-Wshadow] - 394 | for(int i=0;i<4;i++) { - | ^ -audio.c:243:7: note: shadowed declaration is here - 243 | int i, m, mi=0, mt, ii, pkey; - | ^ -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); - | ~~~~~~^~~~~ -audio.c:402:46: warning: conversion to 'long unsigned int' from 'int' may change the sign of the result [-Wsign-conversion] - 402 | buf=kmm_alloc(modDataBufferLength[mt], voice, csynth, mi, mt); - | ~~~~~~~~~~~~~~~~~~~^~~~ -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); - | ~~~~~~^~~~~ -audio.c:408:47: warning: conversion from 'int' to 'unsigned char' may change value [-Wconversion] - 408 | output[voice][mi]=mod_functable[mt](voice, &modulator[voice][mi], (void*)&localdata[voice][mi], (float*)&signals); - | ^~~~~ -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 'long 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 'long unsigned int'} [-Wsign-compare] - 101 | while ( (ig.gl_pathc) && (i<(fd->sliderpos+12)) ) { - | ^ -audio.c:415:44: warning: conversion from 'double' to 'float' may change value [-Wfloat-conversion] - 415 | if (fabs(p) > audio_peak) audio_peak=fabs(p); - | ^~~~ -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); - | ~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~ -audio.c:416:58: warning: conversion from 'double' to 'float' may change value [-Wfloat-conversion] - 416 | if (fabs(p) > audio_latest_peak) audio_latest_peak=fabs(p); - | ^~~~ -font.c:61:14: warning: no previous prototype for 'tpow2' [-Wmissing-prototypes] - 61 | unsigned int tpow2(unsigned int x) - | ^~~~~ -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); - | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~ -audio.c:423:15: warning: conversion from 'long int' to 'int' may change value [-Wconversion] - 423 | oldtick=ticks; - | ^~~~~ -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); - | ~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~ -font.c: In function 'font_init': -font.c:92:50: warning: conversion to 'FT_UInt' {aka 'unsigned int'} from 'int' may change the sign of the result [-Wsign-conversion] - 92 | err=FT_Set_Pixel_Sizes(font[i], 0, fontsize[i]); - | ~~~~~~~~^~~ -audio.c:431:10: warning: conversion from 'long int' to 'int' may change value [-Wconversion] - 431 | return bufferlen; - | ^~~~~~~~~ -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); - | ~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~ -font.c:108:35: warning: conversion to 'FT_ULong' {aka 'long unsigned int'} from 'int' may change the sign of the result [-Wsign-conversion] - 108 | err=FT_Load_Char(font[f], rc, FT_LOAD_RENDER); - | ^~ -audio.c: At top level: -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); - | ~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~ -font.c:115:28: warning: conversion from 'FT_Pos' {aka 'long int'} to 'int' may change value [-Wconversion] - 115 | font_advance[f][c]=slot->advance.x >> 6; - | ^~~~ -audio.c:441:6: warning: no previous prototype for 'audio_render' [-Wmissing-prototypes] - 441 | long audio_render(void) - | ^~~~~~~~~~~~ -filedialog.c:129:51: warning: conversion from 'long unsigned int' to 'unsigned int' may change value [-Wconversion] - 129 | (DS_HEIGHT/2)-78+(i-fd->sliderpos)*13, 2, fcol, 0); - | ^~~~ -font.c:118:26: warning: conversion to 'int' from 'unsigned int' may change the sign of the result [-Wsign-conversion] - 118 | font_width[f][c]=slot->bitmap.width; - | ^~~~ -font.c:119:27: warning: conversion to 'int' from 'unsigned int' may change the sign of the result [-Wsign-conversion] - 119 | font_height[f][c]=slot->bitmap.rows; - | ^~~~ -font.c:120:14: warning: conversion to 'int' from 'unsigned int' may change the sign of the result [-Wsign-conversion] - 120 | texw=tpow2(slot->bitmap.width); - | ^~~~~ -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]); - | ^~~~ -font.c:121:14: warning: conversion to 'int' from 'unsigned int' may change the sign of the result [-Wsign-conversion] - 121 | texh=tpow2(slot->bitmap.rows); - | ^~~~~ -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); - | ~~~~~~^~~~~ -font.c:126:38: warning: conversion to 'size_t' {aka 'long unsigned int'} from 'int' may change the sign of the result [-Wsign-conversion] - 126 | font_bitmap[f][c]=calloc(texw*texh, sizeof(GLuint)); - | ~~~~^~~~~ -filedialog.c: In function 'filedialog_hover': -audio.c: In function 'audio_render': -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); - | ^ -font.c:127:19: warning: comparison of integer expressions of different signedness: 'int' and 'unsigned int' [-Wsign-compare] - 127 | for (j=0;jbitmap.rows;j++) - | ^ -font.c:129:20: warning: comparison of integer expressions of different signedness: 'int' and 'unsigned int' [-Wsign-compare] - 129 | for(i=0;ibitmap.width;i++) { - | ^ -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 'long 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 'long 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) ; - | ^ -font.c:131:51: warning: conversion to 'unsigned int' from 'int' may change the sign of the result [-Wsign-conversion] - 131 | font_bitmap[f][c][ ( slot->bitmap.rows-(j+1) )*texw + i] = p; - | ^ -font.c:131:59: warning: conversion to 'unsigned int' from 'int' may change the sign of the result [-Wsign-conversion] - 131 | font_bitmap[f][c][ ( slot->bitmap.rows-(j+1) )*texw + i] = p; - | ^ -font.c:131:65: warning: conversion to 'unsigned int' from 'int' may change the sign of the result [-Wsign-conversion] - 131 | font_bitmap[f][c][ ( slot->bitmap.rows-(j+1) )*texw + i] = p; - | ^ -font.c: In function 'render_text': -font.c:165:7: warning: conversion to 'long unsigned int' from 'int' may change the sign of the result [-Wsign-conversion] - 165 | sw+=font_advance[fontnr][(int)text[n]]; - | ^~ -font.c:171:19: warning: conversion from 'long unsigned int' to 'float' may change value [-Wconversion] - 171 | if (align==1) xp-=(sw/2); - | ^~ -font.c:172:19: warning: conversion from 'long unsigned int' to 'float' may change value [-Wconversion] - 172 | if (align==2) xp-=sw; - | ^~ -font.c:176:33: warning: conversion from 'int' to 'float' may change value [-Wconversion] - 176 | if ((int)text[n]=='\n') { yp+=fontsize[fontnr]+2; xp=x; n++; continue; } - | ^~ -font.c:178:68: warning: conversion from 'unsigned int' to 'GLubyte' {aka 'unsigned char'} may change value [-Wconversion] - 178 | glColor4ub((color>>16)&0xff, (color>>8)&0xff, color&0xff, color>>24); - | ~~~~~^~~~ -font.c:182:20: warning: conversion from 'int' to 'float' may change value [-Wconversion] - 182 | glVertex2f(xp+font_xoffset[fontnr][(int)text[n]], yp+font_yoffset[fontnr][(int)text[n]]); - | ^ -font.c:182:59: warning: conversion from 'int' to 'float' may change value [-Wconversion] - 182 | glVertex2f(xp+font_xoffset[fontnr][(int)text[n]], yp+font_yoffset[fontnr][(int)text[n]]); - | ^ -font.c:184:20: warning: conversion from 'int' to 'float' may change value [-Wconversion] - 184 | glVertex2f(xp+font_xoffset[fontnr][(int)text[n]]+font_width[fontnr][(int)text[n]], yp+font_yoffset[fontnr][(int)text[n]]); - | ^ -font.c:184:55: warning: conversion from 'int' to 'float' may change value [-Wconversion] - 184 | glVertex2f(xp+font_xoffset[fontnr][(int)text[n]]+font_width[fontnr][(int)text[n]], yp+font_yoffset[fontnr][(int)text[n]]); - | ^ -font.c:184:92: warning: conversion from 'int' to 'float' may change value [-Wconversion] - 184 | glVertex2f(xp+font_xoffset[fontnr][(int)text[n]]+font_width[fontnr][(int)text[n]], yp+font_yoffset[fontnr][(int)text[n]]); - | ^ -font.c:186:20: warning: conversion from 'int' to 'float' may change value [-Wconversion] - 186 | glVertex2f(xp+font_xoffset[fontnr][(int)text[n]]+font_width[fontnr][(int)text[n]], - | ^ -font.c:186:55: warning: conversion from 'int' to 'float' may change value [-Wconversion] - 186 | glVertex2f(xp+font_xoffset[fontnr][(int)text[n]]+font_width[fontnr][(int)text[n]], - | ^ -font.c:187:18: warning: conversion from 'int' to 'float' may change value [-Wconversion] - 187 | yp+font_yoffset[fontnr][(int)text[n]]+font_height[fontnr][(int)text[n]]); - | ^ -font.c:187:53: warning: conversion from 'int' to 'float' may change value [-Wconversion] - 187 | yp+font_yoffset[fontnr][(int)text[n]]+font_height[fontnr][(int)text[n]]); - | ^ -font.c:189:20: warning: conversion from 'int' to 'float' may change value [-Wconversion] - 189 | glVertex2f(xp+font_xoffset[fontnr][(int)text[n]], - | ^ -font.c:190:18: warning: conversion from 'int' to 'float' may change value [-Wconversion] - 190 | yp+font_yoffset[fontnr][(int)text[n]]+font_height[fontnr][(int)text[n]]); - | ^ -font.c:190:53: warning: conversion from 'int' to 'float' may change value [-Wconversion] - 190 | yp+font_yoffset[fontnr][(int)text[n]]+font_height[fontnr][(int)text[n]]); - | ^ -audio.c:485:43: warning: conversion from 'long int' to 'int' may change value [-Wconversion] - 485 | if (sequencer_ispattern(voice, ticks>>10)) { // is there a pattern here? - | ~~~~~^~~~ -font.c:194:7: warning: conversion from 'int' to 'float' may change value [-Wconversion] - 194 | xp+=font_advance[fontnr][(int)text[n]]; - | ^~ -audio.c:486:54: warning: conversion from 'long int' to 'int' may change value [-Wconversion] - 486 | pattstart=sequencer_patternstart(voice, ticks>>10); - | ~~~~~^~~~ -audio.c:488:17: warning: conversion from 'long int' to 'int' may change value [-Wconversion] - 488 | pattpos=(ticks/64) - (pattstart*16); - | ^ -audio.c:489:23: warning: comparison of integer expressions of different signedness: 'int' and 'unsigned int' [-Wsign-compare] - 489 | while (pattpos>=(pattlen[pattern]*16)) pattpos-=(pattlen[pattern]*16); - | ^~ -audio.c:489:55: warning: conversion to 'unsigned int' from 'int' may change the sign of the result [-Wsign-conversion] - 489 | while (pattpos>=(pattlen[pattern]*16)) pattpos-=(pattlen[pattern]*16); - | ^~ -audio.c:489:57: warning: conversion to 'int' from 'unsigned int' may change the sign of the result [-Wsign-conversion] - 489 | while (pattpos>=(pattlen[pattern]*16)) pattpos-=(pattlen[pattern]*16); - | ^ -audio.c:514:19: warning: comparison of integer expressions of different signedness: 'int' and 'unsigned int' [-Wsign-compare] - 514 | if ( m<(pattlen[pattern]*16) ) { // don't drop gate if next note is legato - | ^ -audio.c:526:17: warning: declaration of 'i' shadows a previous local [-Wshadow] - 526 | for(int i=0;i<4;i++) { - | ^ -audio.c:446:7: note: shadowed declaration is here - 446 | int i, voice; - | ^ -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:24, - from patch.h:21: -audio.h:56:1: warning: function declaration isn't a prototype [-Wstrict-prototypes] - 56 | int audio_exportwav(); //char *filename); - | ^~~ -audio.c:536:46: warning: conversion to 'long unsigned int' from 'int' may change the sign of the result [-Wsign-conversion] - 536 | buf=kmm_alloc(modDataBufferLength[mt], voice, synth, mi, mt); - | ~~~~~~~~~~~~~~~~~~~^~~~ -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: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:555:42: warning: conversion from 'double' to 'float' may change value [-Wfloat-conversion] - 555 | if (fabs(p) > audio_peak) audio_peak=fabs(p); - | ^~~~ -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); - | ^~~~ -audio.c:562:13: warning: conversion from 'long int' to 'int' may change value [-Wconversion] - 562 | oldtick=ticks; - | ^~~~~ -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); - | ^~~~~~~~~~~~~~ -audio.c: In function 'audio_resetsynth': -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"); - | ^~~~~~~~~~~~~~~~~~~~~~~~~~~ -In file included from pattern.h:19, - from buffermm.h:17, - from synthesizer.h:25: -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 ]; - | ^~~~~~~~ -audio.c:652:65: warning: conversion to 'long unsigned int' from 'int' may change the sign of the result [-Wsign-conversion] - 652 | if (lbuf) memset(lbuf, 0, modDataBufferLength[MOD_DELAY]*sizeof(float)); - | ^ -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); - | ~~~~~~^~~~~ -audio.c:662:46: warning: dereferencing type-punned pointer will break strict-aliasing rules [-Wstrict-aliasing] - 662 | for(i=0;i<8;i++) mod_ddata(voice, mi)[0]=0; - | ^ -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); - | ~~~~~~^~~ -audio.c:637:5: warning: switch missing default case [-Wswitch-default] - 637 | switch(mt) { - | ^~~~~~ -audio.c: At top level: -patch.c: In function 'patch_keyboard': -patch.c:378:3: warning: switch missing default case [-Wswitch-default] - 378 | switch (key) { - | ^~~~~~ -audio.c:698:5: warning: function declaration isn't a prototype [-Wstrict-prototypes] - 698 | int audio_exportwav() //char *filename) - | ^~~~~~~~~~~~~~~ -audio.c: In function 'audio_exportwav': -audio.c:698:5: warning: old-style function definition [-Wold-style-definition] -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) - | ~~~~^ -audio.c:722:19: warning: conversion from 'long int' to 'unsigned int' may change value [-Wconversion] - 722 | w.wav_chunksize=36+render_bufferlen*2*2; - | ^~ -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]) - | ^~~~~~ -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; - | ^~~~~~~~~~~~~~~~ -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); - | ~^~~~ -audio.c:727:56: warning: conversion to 'size_t' {aka 'long unsigned int'} from 'long int' may change the sign of the result [-Wsign-conversion] - 727 | fwrite(render_buffer, sizeof(short), render_bufferlen*2, f); - | ~~~~~~~~~~~~~~~~^~ -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]); - | ^~~ -In file included from pattern.h:22: -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:575:11: warning: assignment to 'unsigned int *' from incompatible pointer type 'long unsigned int *' [-Wincompatible-pointer-types] - 575 | fptr=(unsigned long*)(&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); - | ^ -In file included from modules.c:18: -audio.h:56:1: warning: function declaration isn't a prototype [-Wstrict-prototypes] - 56 | int audio_exportwav(); //char *filename); - | ^~~ -In file included from buffermm.h:16, - from modules.c:19: -modules.h:152:1: warning: function declaration isn't a prototype [-Wstrict-prototypes] - 152 | void calc_supersaw_tables(); - | ^~~~ -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 widgets.h:23, - from dialog.h:16, - from about.h:17, - from about.c:13: -modules.h:152:1: warning: function declaration isn't a prototype [-Wstrict-prototypes] - 152 | void calc_supersaw_tables(); - | ^~~~ -about.c: In function 'about_draw': -about.c:17:55: warning: passing argument 5 of 'draw_textbox' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] - 17 | draw_textbox((DS_WIDTH/2), (DS_HEIGHT/2), 120, 260, "", 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); - | ~~~~~~^~~~~ -about.c:19:15: warning: macro "__DATE__" might prevent reproducible builds [-Wdate-time] - 19 | render_text(K_VERSION, (DS_WIDTH/2)+120, (DS_HEIGHT/2)-32, 2, 0xffb05500, 2); - | ^~~~~~~~~ -about.c: In function 'about_hover': -about.c:31:22: warning: unused parameter 'x' [-Wunused-parameter] - 31 | void about_hover(int x, int y) - | ~~~~^ -about.c:31:29: warning: unused parameter 'y' [-Wunused-parameter] - 31 | void about_hover(int x, int y) - | ~~~~^ -about.c: In function 'about_click': -about.c:36:22: warning: unused parameter 'button' [-Wunused-parameter] - 36 | void about_click(int button, int state, int x, int y) - | ~~~~^~~~~~ -about.c:36:45: warning: unused parameter 'x' [-Wunused-parameter] - 36 | void about_click(int button, int state, int x, int y) - | ~~~~^ -about.c:36:52: warning: unused parameter 'y' [-Wunused-parameter] - 36 | void about_click(int button, int state, int x, int y) - | ~~~~^ -about.c: In function 'about_keyboard': -about.c:42:44: warning: unused parameter 'x' [-Wunused-parameter] - 42 | void about_keyboard(unsigned char key, int x, int y) - | ~~~~^ -about.c:42:51: warning: unused parameter 'y' [-Wunused-parameter] - 42 | void about_keyboard(unsigned char key, int x, int y) - | ~~~~^ -In file included from widgets.h:23, - from pattern.h:22: -modules.h:152:1: warning: function declaration isn't a prototype [-Wstrict-prototypes] - 152 | void calc_supersaw_tables(); - | ^~~~ -pattern.c: In function 'pattern_init': -pattern.c:100:6: warning: old-style function definition [-Wold-style-definition] - 100 | void pattern_init() - | ^~~~~~~~~~~~ -pattern.c: At top level: -pattern.c:119:6: warning: function declaration isn't a prototype [-Wstrict-prototypes] - 119 | void pattern_toggleplayback() - | ^~~~~~~~~~~~~~~~~~~~~~ -pattern.c: In function 'pattern_toggleplayback': -pattern.c:119:6: warning: old-style function definition [-Wold-style-definition] -pattern.c: At top level: -pattern.c:140:5: warning: no previous prototype for 'pattern_cursorpos' [-Wmissing-prototypes] - 140 | int pattern_cursorpos(int x, int y, int *note) - | ^~~~~~~~~~~~~~~~~ -pattern.c: In function 'pattern_cursorpos': -pattern.c:46:27: warning: conversion from 'int' to 'float' may change value [-Wconversion] - 46 | #define PIANOROLL_OCTAVES 6 - | ^ -pattern.c:148:16: note: in expansion of macro 'PIANOROLL_OCTAVES' - 148 | lineheight=PIANOROLL_OCTAVES*12 - (((coct+PIANOROLL_OCTAVES)*12)-MAX_NOTE); - | ^~~~~~~~~~~~~~~~~ -pattern.c:153:41: warning: conversion to 'unsigned int' from 'int' may change the sign of the result [-Wsign-conversion] - 153 | x < (PIANOROLL_X + (pattlen[cpatt]*(beats_per_measure*beatdiv))*PIANOROLL_CELLWIDTH + 1) && - | ^ -pattern.c:153:24: warning: conversion from 'unsigned int' to 'float' may change value [-Wconversion] - 153 | x < (PIANOROLL_X + (pattlen[cpatt]*(beats_per_measure*beatdiv))*PIANOROLL_CELLWIDTH + 1) && - | ^ -pattern.c:37:29: warning: conversion from 'int' to 'float' may change value [-Wconversion] - 37 | #define PIANOROLL_X KB_WIDTH+5.5 - | ^ -pattern.c:158:17: note: in expansion of macro 'PIANOROLL_X' - 158 | cx=(int)((x-PIANOROLL_X)/PIANOROLL_CELLWIDTH)-1; - | ^~~~~~~~~~~ -pattern.c:159:20: warning: conversion from 'int' to 'float' may change value [-Wconversion] - 159 | cy=abs((int)((y-PIANOROLL_Y-2)/PIANOROLL_CELLHEIGHT)); - | ^ -pattern.c: In function 'pattern_mouse_hover': -pattern.c:171:33: warning: conversion from 'int' to 'float' may change value [-Wconversion] - 171 | patt_ui[B_PREV]=hovertest_box(x, y, 14, DS_HEIGHT-14, 16, 16); - | ^ -pattern.c:171:36: warning: conversion from 'int' to 'float' may change value [-Wconversion] - 171 | patt_ui[B_PREV]=hovertest_box(x, y, 14, DS_HEIGHT-14, 16, 16); - | ^ -pattern.c:172:33: warning: conversion from 'int' to 'float' may change value [-Wconversion] - 172 | patt_ui[B_NEXT]=hovertest_box(x, y, 64, DS_HEIGHT-14, 16, 16); - | ^ -pattern.c:172:36: warning: conversion from 'int' to 'float' may change value [-Wconversion] - 172 | patt_ui[B_NEXT]=hovertest_box(x, y, 64, DS_HEIGHT-14, 16, 16); - | ^ -pattern.c:173:36: warning: conversion from 'int' to 'float' may change value [-Wconversion] - 173 | patt_ui[B_SHORTER]=hovertest_box(x, y, 98, DS_HEIGHT-14, 16, 16); - | ^ -pattern.c:173:39: warning: conversion from 'int' to 'float' may change value [-Wconversion] - 173 | patt_ui[B_SHORTER]=hovertest_box(x, y, 98, DS_HEIGHT-14, 16, 16); - | ^ -pattern.c:174:35: warning: conversion from 'int' to 'float' may change value [-Wconversion] - 174 | patt_ui[B_LONGER]=hovertest_box(x, y, 180, DS_HEIGHT-14, 16, 16); - | ^ -pattern.c:174:38: warning: conversion from 'int' to 'float' may change value [-Wconversion] - 174 | patt_ui[B_LONGER]=hovertest_box(x, y, 180, DS_HEIGHT-14, 16, 16); - | ^ -pattern.c:175:34: warning: conversion from 'int' to 'float' may change value [-Wconversion] - 175 | patt_ui[B_OCTDN]=hovertest_box(x, y, 12, PIANOROLL_Y+16, 16, 16); - | ^ -pattern.c:175:37: warning: conversion from 'int' to 'float' may change value [-Wconversion] - 175 | patt_ui[B_OCTDN]=hovertest_box(x, y, 12, PIANOROLL_Y+16, 16, 16); - | ^ -pattern.c:176:34: warning: conversion from 'int' to 'float' may change value [-Wconversion] - 176 | patt_ui[B_OCTUP]=hovertest_box(x, y, 32, PIANOROLL_Y+16, 16, 16); - | ^ -pattern.c:176:37: warning: conversion from 'int' to 'float' may change value [-Wconversion] - 176 | patt_ui[B_OCTUP]=hovertest_box(x, y, 32, PIANOROLL_Y+16, 16, 16); - | ^ -pattern.c:177:36: warning: conversion from 'int' to 'float' may change value [-Wconversion] - 177 | patt_ui[B_PREVSYN]=hovertest_box(x, y, 214, DS_HEIGHT-14, 16, 16); - | ^ -pattern.c:177:39: warning: conversion from 'int' to 'float' may change value [-Wconversion] - 177 | patt_ui[B_PREVSYN]=hovertest_box(x, y, 214, DS_HEIGHT-14, 16, 16); - | ^ -pattern.c:178:36: warning: conversion from 'int' to 'float' may change value [-Wconversion] - 178 | patt_ui[B_NEXTSYN]=hovertest_box(x, y, 430, DS_HEIGHT-14, 16, 16); - | ^ -pattern.c:178:39: warning: conversion from 'int' to 'float' may change value [-Wconversion] - 178 | patt_ui[B_NEXTSYN]=hovertest_box(x, y, 430, DS_HEIGHT-14, 16, 16); - | ^ -pattern.c:180:38: warning: conversion from 'int' to 'float' may change value [-Wconversion] - 180 | patt_ui[B_PATTCLEAR]=hovertest_box(x, y, 555, DS_HEIGHT-14, 16, 16) | (patt_ui[B_PATTCLEAR]&8); - | ^ -pattern.c:180:41: warning: conversion from 'int' to 'float' may change value [-Wconversion] - 180 | patt_ui[B_PATTCLEAR]=hovertest_box(x, y, 555, DS_HEIGHT-14, 16, 16) | (patt_ui[B_PATTCLEAR]&8); - | ^ -pattern.c:182:33: warning: conversion from 'int' to 'float' may change value [-Wconversion] - 182 | patt_ui[B_COPY]=hovertest_box(x,y,622, DS_HEIGHT-14, 16, 16); - | ^ -pattern.c:182:35: warning: conversion from 'int' to 'float' may change value [-Wconversion] - 182 | patt_ui[B_COPY]=hovertest_box(x,y,622, DS_HEIGHT-14, 16, 16); - | ^ -pattern.c:183:34: warning: conversion from 'int' to 'float' may change value [-Wconversion] - 183 | patt_ui[B_PASTE]=hovertest_box(x,y,644, DS_HEIGHT-14, 16, 16); - | ^ -pattern.c:183:36: warning: conversion from 'int' to 'float' may change value [-Wconversion] - 183 | patt_ui[B_PASTE]=hovertest_box(x,y,644, DS_HEIGHT-14, 16, 16); - | ^ -pattern.c:186:37: warning: conversion from 'int' to 'float' may change value [-Wconversion] - 186 | patt_ui[B_PATTPLAY]=hovertest_box(x, y, 482, DS_HEIGHT-14, 16, 42); - | ^ -pattern.c:186:40: warning: conversion from 'int' to 'float' may change value [-Wconversion] - 186 | patt_ui[B_PATTPLAY]=hovertest_box(x, y, 482, DS_HEIGHT-14, 16, 42); - | ^ -pattern.c:195:79: warning: conversion to 'unsigned int' from 'int' may change the sign of the result [-Wsign-conversion] - 195 | piano_start, (DS_WIDTH-(PIANOROLL_X+4))/PIANOROLL_CELLWIDTH, pattlen[cpatt]*(beats_per_measure*beatdiv)); - | ^ -pattern.c:194:33: warning: conversion from 'int' to 'float' may change value [-Wconversion] - 194 | slide_hover=hovertest_hslider(x,y,PIANOROLL_X, PIANOROLL_Y+12, (DS_WIDTH-(PIANOROLL_X+6)), 12, - | ^ -pattern.c:194:35: warning: conversion from 'int' to 'float' may change value [-Wconversion] - 194 | slide_hover=hovertest_hslider(x,y,PIANOROLL_X, PIANOROLL_Y+12, (DS_WIDTH-(PIANOROLL_X+6)), 12, - | ^ -pattern.c:195:4: warning: conversion from 'int' to 'float' may change value [-Wconversion] - 195 | piano_start, (DS_WIDTH-(PIANOROLL_X+4))/PIANOROLL_CELLWIDTH, pattlen[cpatt]*(beats_per_measure*beatdiv)); - | ^~~~~~~~~~~ -pattern.c:195:79: warning: conversion from 'unsigned int' to 'float' may change value [-Wconversion] - 195 | piano_start, (DS_WIDTH-(PIANOROLL_X+4))/PIANOROLL_CELLWIDTH, pattlen[cpatt]*(beats_per_measure*beatdiv)); - | ~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~ -pattern.c: In function 'pattern_mouse_drag': -pattern.c:218:23: warning: conversion to 'unsigned int' from 'int' may change the sign of the result [-Wsign-conversion] - 218 | cip=pattlen[cpatt]*(beats_per_measure*beatdiv); // cells in pattern - | ^ -pattern.c:218:9: warning: conversion from 'unsigned int' to 'float' may change value [-Wconversion] - 218 | cip=pattlen[cpatt]*(beats_per_measure*beatdiv); // cells in pattern - | ^~~~~~~ -pattern.c:220:10: warning: conversion from 'int' to 'float' may change value [-Wconversion] - 220 | f=((x-slide_drag_xofs)/(sbw-slw))*(cip-cos); - | ^ -pattern.c:221:33: warning: conversion from 'int' to 'float' may change value [-Wconversion] - 221 | piano_start=slide_drag_start+f; - | ^ -pattern.c:221:17: warning: conversion from 'float' to 'int' may change value [-Wfloat-conversion] - 221 | piano_start=slide_drag_start+f; - | ^~~~~~~~~~~~~~~~ -pattern.c:222:46: warning: conversion from 'float' to 'int' may change value [-Wfloat-conversion] - 222 | if (piano_start>(1+cip-cos)) piano_start=(1+cip-cos); - | ^ -pattern.c:228:7: warning: conversion to 'int' from 'unsigned int' may change the sign of the result [-Wsign-conversion] - 228 | n=pattdata[cpatt][piano_start+piano_porta_drag]; // current note being dragged - | ^~~~~~~~ -pattern.c: In function 'pattern_mouse_click': -pattern.c:254:41: warning: comparison of integer expressions of different signedness: 'int' and 'unsigned int' [-Wsign-compare] - 254 | if (piano_hover>=0 && piano_note==(pattdata[cpatt][piano_start+piano_hover]&0xff)) { - | ^~ -pattern.c:272:24: warning: passing argument 1 of 'console_post' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] - 272 | console_post("Click again to clear pattern"); - | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -In file included from pattern.h:19: -console.h:23:25: note: expected 'char *' but argument is of type 'const char *' - 23 | void console_post(char *msg); - | ~~~~~~^~~ -pattern.c:289:36: warning: conversion to 'unsigned int' from 'int' may change the sign of the result [-Wsign-conversion] - 289 | for(i=((pattlen[cpatt]*(beats_per_measure*beatdiv))/2); i<(pattlen[cpatt]*(beats_per_measure*beatdiv)); i++) pattdata[cpatt][i]=0; - | ^ -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); - | ^ -pattern.c:289:20: warning: conversion to 'int' from 'unsigned int' may change the sign of the result [-Wsign-conversion] - 289 | for(i=((pattlen[cpatt]*(beats_per_measure*beatdiv))/2); i<(pattlen[cpatt]*(beats_per_measure*beatdiv)); i++) pattdata[cpatt][i]=0; - | ^ -pattern.c:289:87: warning: conversion to 'unsigned int' from 'int' may change the sign of the result [-Wsign-conversion] - 289 | for(i=((pattlen[cpatt]*(beats_per_measure*beatdiv))/2); i<(pattlen[cpatt]*(beats_per_measure*beatdiv)); i++) pattdata[cpatt][i]=0; - | ^ -pattern.c:289:71: warning: comparison of integer expressions of different signedness: 'int' and 'unsigned int' [-Wsign-compare] - 289 | for(i=((pattlen[cpatt]*(beats_per_measure*beatdiv))/2); i<(pattlen[cpatt]*(beats_per_measure*beatdiv)); i++) pattdata[cpatt][i]=0; - | ^ -pattern.c:295:31: warning: conversion to 'unsigned int' from 'int' may change the sign of the result [-Wsign-conversion] - 295 | ( 1+pattlen[cpatt]*(beats_per_measure*beatdiv) - ( (DS_WIDTH-(PIANOROLL_X))/PIANOROLL_CELLWIDTH ) ) ) piano_start--; - | ^ -pattern.c:295:60: warning: conversion from 'unsigned int' to 'float' may change value [-Wconversion] - 295 | ( 1+pattlen[cpatt]*(beats_per_measure*beatdiv) - ( (DS_WIDTH-(PIANOROLL_X))/PIANOROLL_CELLWIDTH ) ) ) piano_start--; - | ^ -pattern.c:308:40: warning: conversion to 'unsigned int' from 'int' may change the sign of the result [-Wsign-conversion] - 308 | for(i=0; i<((pattlen[cpatt]*(beats_per_measure*beatdiv))/2); i++) pattdata[cpatt][i+((pattlen[cpatt]*(beats_per_measure*beatdiv))/2)]=pattdata[cpatt][i]; - | ^ -pattern.c:308:23: warning: comparison of integer expressions of different signedness: 'int' and 'unsigned int' [-Wsign-compare] - 308 | for(i=0; i<((pattlen[cpatt]*(beats_per_measure*beatdiv))/2); i++) pattdata[cpatt][i+((pattlen[cpatt]*(beats_per_measure*beatdiv))/2)]=pattdata[cpatt][i]; - | ^ -In file included from /usr/include/string.h:548, - 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, - from widgets.h:22: -In function 'strncat', - inlined from 'filedialog_open' at filedialog.c:24:3: -/usr/include/x86_64-linux-gnu/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)); - | ~~~~~~~~~~~~~~~~~~~~~~~~~ -pattern.c:308:113: warning: conversion to 'unsigned int' from 'int' may change the sign of the result [-Wsign-conversion] - 308 | for(i=0; i<((pattlen[cpatt]*(beats_per_measure*beatdiv))/2); i++) pattdata[cpatt][i+((pattlen[cpatt]*(beats_per_measure*beatdiv))/2)]=pattdata[cpatt][i]; - | ^ -pattern.c:308:96: warning: conversion to 'unsigned int' from 'int' may change the sign of the result [-Wsign-conversion] - 308 | for(i=0; i<((pattlen[cpatt]*(beats_per_measure*beatdiv))/2); i++) pattdata[cpatt][i+((pattlen[cpatt]*(beats_per_measure*beatdiv))/2)]=pattdata[cpatt][i]; - | ^ -pattern.c:328:34: warning: conversion to 'unsigned int' from 'int' may change the sign of the result [-Wsign-conversion] - 328 | for(i=0; i>6)>=piano_start && (ticks>>6)<(pattlen[cpatt]*(beats_per_measure*beatdiv)) ) // TODO: test if pos > pianostart+rollwidth - | ^ -pattern.c:581:9: warning: conversion from 'long int' to 'int' may change value [-Wconversion] - 581 | i=(ticks>>6)-piano_start; - | ^ -In file included from synthesizer.h:29, - from buffermm.h:18: -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(); - | ^~~ -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)); - | ^ -pattern.c:585:29: warning: conversion from 'int' to 'float' may change value [-Wconversion] - 585 | glVertex2f(PIANOROLL_X+i*PIANOROLL_CELLWIDTH, round(PIANOROLL_Y-((PIANOROLL_OCTAVES*12)*PIANOROLL_CELLHEIGHT))); - | ^ -pattern.c:591:42: warning: conversion to 'unsigned int' from 'int' may change the sign of the result [-Wsign-conversion] - 591 | for(i=0,j=piano_start;j<(pattlen[cpatt]*(beats_per_measure*beatdiv));i++,j++) { - | ^ -pattern.c:591:26: warning: comparison of integer expressions of different signedness: 'int' and 'unsigned int' [-Wsign-compare] - 591 | for(i=0,j=piano_start;j<(pattlen[cpatt]*(beats_per_measure*beatdiv));i++,j++) { - | ^ -synthesizer.h:84:6: warning: redundant redeclaration of 'synth_stackify' [-Wredundant-decls] - 84 | void synth_stackify(int syn); - | ^~~~~~~~~~~~~~ -pattern.c:37:29: warning: conversion from 'int' to 'float' may change value [-Wconversion] - 37 | #define PIANOROLL_X KB_WIDTH+5.5 - | ^ -pattern.c:599:24: note: in expansion of macro 'PIANOROLL_X' - 599 | glVertex2f(l+PIANOROLL_X+i*PIANOROLL_CELLWIDTH, PIANOROLL_Y-1-(n-coct*12)*PIANOROLL_CELLHEIGHT); - | ^~~~~~~~~~~ -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); - | ^~~~~~~~~~~ synthesizer.h:84:6: warning: redundant redeclaration of 'synth_stackify' [-Wredundant-decls] 84 | void synth_stackify(int syn); | ^~~~~~~~~~~~~~ @@ -3110,38 +1138,10 @@ sequencer.h:80:1: warning: function declaration isn't a prototype [-Wstrict-prototypes] 80 | void sequencer_bpm_close_dialog(); | ^~~~ -pattern.c:599:35: warning: conversion from 'int' to 'float' may change value [-Wconversion] - 599 | glVertex2f(l+PIANOROLL_X+i*PIANOROLL_CELLWIDTH, PIANOROLL_Y-1-(n-coct*12)*PIANOROLL_CELLHEIGHT); - | ^ -pattern.c:599:72: warning: conversion from 'int' to 'float' may change value [-Wconversion] - 599 | glVertex2f(l+PIANOROLL_X+i*PIANOROLL_CELLWIDTH, PIANOROLL_Y-1-(n-coct*12)*PIANOROLL_CELLHEIGHT); - | ^ -pattern.c:600:33: warning: conversion from 'int' to 'float' may change value [-Wconversion] - 600 | glVertex2f(PIANOROLL_X+(i+1)*PIANOROLL_CELLWIDTH, PIANOROLL_Y-1-(n-coct*12)*PIANOROLL_CELLHEIGHT); - | ^ -pattern.c:600:74: warning: conversion from 'int' to 'float' may change value [-Wconversion] - 600 | glVertex2f(PIANOROLL_X+(i+1)*PIANOROLL_CELLWIDTH, PIANOROLL_Y-1-(n-coct*12)*PIANOROLL_CELLHEIGHT); - | ^ -pattern.c:601:33: 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); - | ^ -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); - | ^ -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); - | ^~~~~~~~~~~ main.c:79:6: warning: no previous prototype for 'mouse_hoverfunc' [-Wmissing-prototypes] 79 | void mouse_hoverfunc(int x, int y) | ^~~~~~~~~~~~~~~ main.c: In function 'mouse_hoverfunc': -In file included from modules.c:22: -sequencer.h:33:1: warning: function declaration isn't a prototype [-Wstrict-prototypes] - 33 | void sequencer_init(); - | ^~~~ main.c:87:37: warning: conversion from 'int' to 'float' may change value [-Wconversion] 87 | main_ui[MAIN_PAGE1]=hovertest_box(x,y,DS_WIDTH-159, DS_HEIGHT-14, 16, 16); | ^ @@ -3163,9 +1163,6 @@ main.c:90:37: warning: conversion from 'int' to 'float' may change value [-Wconversion] 90 | main_ui[MAIN_PAGE4]=hovertest_box(x,y,DS_WIDTH-93, DS_HEIGHT-14, 16, 16); | ^ -sequencer.h:80:1: warning: function declaration isn't a prototype [-Wstrict-prototypes] - 80 | void sequencer_bpm_close_dialog(); - | ^~~~ main.c:90:39: warning: conversion from 'int' to 'float' may change value [-Wconversion] 90 | main_ui[MAIN_PAGE4]=hovertest_box(x,y,DS_WIDTH-93, DS_HEIGHT-14, 16, 16); | ^ @@ -3175,9 +1172,6 @@ main.c:91:39: warning: conversion from 'int' to 'float' may change value [-Wconversion] 91 | main_ui[MAIN_ABOUT]=hovertest_box(x,y,DS_WIDTH-42,DS_HEIGHT-14, 16, 73); | ^ -modules.c:33:35: warning: signed conversion from 'unsigned int' to 'int' changes value from '4023233417' to '-271733879' [-Wsign-conversion] - 33 | int noise_x1=0x67452301, noise_x2=0xefcdab89; - | ^~~~~~~~~~ main.c:92:37: warning: conversion from 'int' to 'float' may change value [-Wconversion] 92 | main_ui[MAIN_PANIC]=hovertest_box(x, y, DS_WIDTH-206, DS_HEIGHT-14, 16, 16); | ^ @@ -3242,64 +1236,28 @@ 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); | ~~~~~~^~~~~ -modules.c:311:40: warning: initialization discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] - 311 | char* modVcoWaveforms[VCO_WAVEFORMS]={"Pulse", "Saw", "Triangle", "Sine"}; //, "Noise"}; - | ^~~~~~~ main.c:134:108: warning: ISO C forbids passing argument 1 of 'dialog_bindkeyboard' between function pointer and 'void *' [-Wpedantic] 134 | if (main_ui[MAIN_ABOUT]) { dialog_open(&about_draw, &about_hover, &about_click); dialog_bindkeyboard(&about_keyboard); return; } | ^~~~~~~~~~~~~~~ dialog.h:23:32: note: expected 'void *' but argument is of type 'void (*)(unsigned char, int, int)' 23 | void dialog_bindkeyboard(void *kbfunc); | ~~~~~~^~~~~~ -modules.c:311:49: warning: initialization discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] - 311 | char* modVcoWaveforms[VCO_WAVEFORMS]={"Pulse", "Saw", "Triangle", "Sine"}; //, "Noise"}; - | ^~~~~ main.c:141:61: warning: passing argument 1 of 'console_post' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] 141 | if (main_ui[MAIN_VU]) { audio_peak=0.0f; console_post("VU meter peak reset"); return; } | ^~~~~~~~~~~~~~~~~~~~~ console.h:23:25: note: expected 'char *' but argument is of type 'const char *' 23 | void console_post(char *msg); | ~~~~~~^~~ -modules.c:311:56: warning: initialization discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] - 311 | char* modVcoWaveforms[VCO_WAVEFORMS]={"Pulse", "Saw", "Triangle", "Sine"}; //, "Noise"}; - | ^~~~~~~~~~ main.c: At top level: main.c:155:6: warning: no previous prototype for 'keyboardfunc' [-Wmissing-prototypes] 155 | void keyboardfunc(unsigned char key, int x, int y) | ^~~~~~~~~~~~ -modules.c:311:68: warning: initialization discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] - 311 | char* modVcoWaveforms[VCO_WAVEFORMS]={"Pulse", "Saw", "Triangle", "Sine"}; //, "Noise"}; - | ^~~~~~ -modules.c:312:40: warning: initialization discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] - 312 | char* modLfoWaveforms[LFO_WAVEFORMS]={"Square", "Saw", "Triangle", "Sine"}; - | ^~~~~~~~ main.c:168:6: warning: no previous prototype for 'keyboardupfunc' [-Wmissing-prototypes] 168 | void keyboardupfunc(unsigned char key, int x, int y) | ^~~~~~~~~~~~~~ -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); - | ^ -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); - | ^ -pattern.c:37:29: warning: conversion from 'int' to 'float' may change value [-Wconversion] - 37 | #define PIANOROLL_X KB_WIDTH+5.5 - | ^ -pattern.c:607:15: note: in expansion of macro 'PIANOROLL_X' - 607 | l+PIANOROLL_X+i*PIANOROLL_CELLWIDTH+1, - | ^~~~~~~~~~~ -pattern.c:607:26: warning: conversion from 'int' to 'float' may change value [-Wconversion] - 607 | l+PIANOROLL_X+i*PIANOROLL_CELLWIDTH+1, - | ^ -pattern.c:608:26: warning: conversion from 'int' to 'float' may change value [-Wconversion] - 608 | PIANOROLL_Y-2-(n-coct*12+1)*PIANOROLL_CELLHEIGHT, - | ^ main.c:179:6: warning: no previous prototype for 'specialkeyfunc' [-Wmissing-prototypes] 179 | void specialkeyfunc(int key, int x, int y) | ^~~~~~~~~~~~~~ -synthesizer.c:953:5: warning: '__builtin_strncpy' output may be truncated copying 64 bytes from a string of length 64 [-Wstringop-truncation] - 953 | strncpy(mod[csynth][synth_label_edit].label, synth_label_text, 64); - | ^ main.c: In function 'specialkeyfunc': main.c:186:39: warning: conversion from 'int' to 'unsigned char' may change value [-Wconversion] 186 | case MAIN_PAGE1: synth_specialkey(key, x, y); break; @@ -3367,75 +1325,6 @@ 248 | void display(void) | ^~~~~~~ main.c: In function 'display': -modules.c:312:50: warning: initialization discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] - 312 | char* modLfoWaveforms[LFO_WAVEFORMS]={"Square", "Saw", "Triangle", "Sine"}; - | ^~~~~ -In file included from synthesizer.h:24, - from patch.h:21, - from fileops.c:20: -audio.h:56:1: warning: function declaration isn't a prototype [-Wstrict-prototypes] - 56 | int audio_exportwav(); //char *filename); - | ^~~ -modules.c:312:57: warning: initialization discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] - 312 | char* modLfoWaveforms[LFO_WAVEFORMS]={"Square", "Saw", "Triangle", "Sine"}; - | ^~~~~~~~~~ -modules.c:312:69: warning: initialization discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] - 312 | char* modLfoWaveforms[LFO_WAVEFORMS]={"Square", "Saw", "Triangle", "Sine"}; - | ^~~~~~ -modules.c:313:32: warning: initialization discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] - 313 | char* modVcfModes[VCF_MODES]={"Off", "Lowpass", "Highpass", "Bandpass"}; - | ^~~~~ -modules.c:313:39: warning: initialization discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] - 313 | char* modVcfModes[VCF_MODES]={"Off", "Lowpass", "Highpass", "Bandpass"}; - | ^~~~~~~~~ -modules.c:313:50: warning: initialization discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] - 313 | char* modVcfModes[VCF_MODES]={"Off", "Lowpass", "Highpass", "Bandpass"}; - | ^~~~~~~~~~ -modules.c:313:62: warning: initialization discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] - 313 | char* modVcfModes[VCF_MODES]={"Off", "Lowpass", "Highpass", "Bandpass"}; - | ^~~~~~~~~~ -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(); - | ^~~ -modules.c:314:36: warning: initialization discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] - 314 | char* modDelayModes[DELAY_MODES]={"Comb filter", "Allpass filter"}; - | ^~~~~~~~~~~~~ -modules.c:314:51: warning: initialization discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] - 314 | char* modDelayModes[DELAY_MODES]={"Comb filter", "Allpass filter"}; - | ^~~~~~~~~~~~~~~~ -modules.c:315:34: warning: initialization discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] - 315 | char* modSlewModes[SLEW_MODES]={"Linear", "Logarithmic"}; - | ^~~~~~~~ -modules.c:315:44: warning: initialization discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] - 315 | char* modSlewModes[SLEW_MODES]={"Linear", "Logarithmic"}; - | ^~~~~~~~~~~~~ -pattern.c:37:29: warning: conversion from 'int' to 'float' may change value [-Wconversion] - 37 | #define PIANOROLL_X KB_WIDTH+5.5 - | ^ -pattern.c:611:15: note: in expansion of macro 'PIANOROLL_X' - 611 | l+PIANOROLL_X+i*PIANOROLL_CELLWIDTH, - | ^~~~~~~~~~~ -pattern.c:611:26: warning: conversion from 'int' to 'float' may change value [-Wconversion] - 611 | l+PIANOROLL_X+i*PIANOROLL_CELLWIDTH, - | ^ -modules.c:343:3: warning: conversion from 'float' to 'int' changes value from '3.05e+1f' to '30' [-Wfloat-conversion] - 343 | (MODULE_HALF)+0.5, -(MODULE_HALF)+0.5, MODULE_HALF, MODULE_HALF}; - | ^ -modules.c:343:22: warning: conversion from 'float' to 'int' changes value from '-2.95e+1f' to '-29' [-Wfloat-conversion] - 343 | (MODULE_HALF)+0.5, -(MODULE_HALF)+0.5, MODULE_HALF, MODULE_HALF}; - | ^ -pattern.c:612:26: warning: conversion from 'int' to 'float' may change value [-Wconversion] - 612 | PIANOROLL_Y-2-(n-coct*12+1)*PIANOROLL_CELLHEIGHT, - | ^ -In file included from widgets.h:23, - from widgets.c:14: -modules.h:152:1: warning: function declaration isn't a prototype [-Wstrict-prototypes] - 152 | void calc_supersaw_tables(); - | ^~~~ main.c:284:47: warning: passing argument 4 of 'draw_button' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] 284 | draw_button(DS_WIDTH-159, DS_HEIGHT-14, 16, "1", main_ui[MAIN_PAGE1]); | ^~~ @@ -3491,1235 +1380,379 @@ main.c:332:5: warning: no previous prototype for 'is_dir' [-Wmissing-prototypes] 332 | int is_dir(const char *path) | ^~~~~~ -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); - | ^ -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); - | ^ -widgets.c: In function 'draw_module': -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); - | ^~~~~~~~~~~~~~~~~~~~~~~~ -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); - | ^ -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); - | ^~~~~~~~~~~~~~~~~~~~~~~~~~ -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); - | ^ -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); - | ~~~~~~^~~~~ -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); - | ^ -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); - | ~~^~~~~~~~~~~~~~~~~~~~~~~~ -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); - | ^ -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); - | ~~^~~~~~~~~~~~~~~~~~~~~~~~ -modules.c:353:6: warning: function declaration isn't a prototype [-Wstrict-prototypes] - 353 | void calc_supersaw_tables() { - | ^~~~~~~~~~~~~~~~~~~~ -modules.c: In function 'calc_supersaw_tables': -modules.c:353:6: warning: old-style function definition [-Wold-style-definition] main.c: In function 'main': -modules.c:359:26: warning: conversion from 'double' to 'float' may change value [-Wfloat-conversion] - 359 | supersaw_mix[mod][0]=-0.55366*x + 0.99785; - | ^ +In file included from pattern.h:18, + from buffermm.h:17: +audio.h:56:1: warning: function declaration isn't a prototype [-Wstrict-prototypes] + 56 | int audio_exportwav(); //char *filename); + | ^~~ main.c:435:15: warning: ISO C forbids passing argument 1 of 'dialog_open' between function pointer and 'void *' [-Wpedantic] 435 | dialog_open(&about_draw, &about_hover, &about_click); | ^~~~~~~~~~~ dialog.h:22:24: note: expected 'void *' but argument is of type 'void (*)(void)' 22 | void dialog_open(void *draw, void *hover, void *click); | ~~~~~~^~~~ -modules.c:362:33: warning: conversion from 'double' to 'float' may change value [-Wfloat-conversion] - 362 | supersaw_detune[mod][osc]=1.0+osc_offset[osc]*y; - | ^~~ -synthesizer.h:84:6: warning: redundant redeclaration of 'synth_stackify' [-Wredundant-decls] - 84 | void synth_stackify(int syn); - | ^~~~~~~~~~~~~~ main.c:435:28: warning: ISO C forbids passing argument 2 of 'dialog_open' between function pointer and 'void *' [-Wpedantic] 435 | dialog_open(&about_draw, &about_hover, &about_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); | ~~~~~~^~~~~ -In file included from fileops.c:18: -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); - | ^~~~~~~~~~~ -modules.c:363:39: warning: conversion from 'double' to 'float' may change value [-Wfloat-conversion] - 363 | if (osc) supersaw_mix[mod][osc]=-0.73764*x*x + 1.2841*x + 0.044372; - | ^ -modules.c: At top level: main.c:435:42: warning: ISO C forbids passing argument 3 of 'dialog_open' between function pointer and 'void *' [-Wpedantic] 435 | dialog_open(&about_draw, &about_hover, &about_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); | ~~~~~~^~~~~ -modules.h:29:39: warning: no previous prototype for 'modfunc_kbd' [-Wmissing-prototypes] - 29 | #define MODULE_FUNC(X) float modfunc_ ##X (unsigned char v, float *mod, void *data, float *ms) - | ^~~~~~~~ -modules.c:378:1: note: in expansion of macro 'MODULE_FUNC' - 378 | MODULE_FUNC(kbd) { return *mod=pitch[v]/OUTPUTFREQ; } - | ^~~~~~~~~~~ -modules.c: In function 'modfunc_kbd': -modules.h:29:88: warning: unused parameter 'data' [-Wunused-parameter] - 29 | #define MODULE_FUNC(X) float modfunc_ ##X (unsigned char v, float *mod, void *data, float *ms) - | ~~~~~~^~~~ -modules.c:378:1: note: in expansion of macro 'MODULE_FUNC' - 378 | MODULE_FUNC(kbd) { return *mod=pitch[v]/OUTPUTFREQ; } - | ^~~~~~~~~~~ main.c:436:23: warning: ISO C forbids passing argument 1 of 'dialog_bindkeyboard' between function pointer and 'void *' [-Wpedantic] 436 | dialog_bindkeyboard(&about_keyboard); | ^~~~~~~~~~~~~~~ dialog.h:23:32: note: expected 'void *' but argument is of type 'void (*)(unsigned char, int, int)' 23 | void dialog_bindkeyboard(void *kbfunc); | ~~~~~~^~~~~~ -modules.h:29:101: warning: unused parameter 'ms' [-Wunused-parameter] - 29 | #define MODULE_FUNC(X) float modfunc_ ##X (unsigned char v, float *mod, void *data, float *ms) - | ~~~~~~~^~ -modules.c:378:1: note: in expansion of macro 'MODULE_FUNC' - 378 | MODULE_FUNC(kbd) { return *mod=pitch[v]/OUTPUTFREQ; } - | ^~~~~~~~~~~ -modules.c: At top level: -fileops.c: In function 'load_ksong': -fileops.c:71:12: warning: conversion from 'long int' to 'int' may change value [-Wconversion] - 71 | chunklen=probe_chunk(f, chunktype); - | ^~~~~~~~~~~ -modules.h:29:39: warning: no previous prototype for 'modfunc_modulator' [-Wmissing-prototypes] - 29 | #define MODULE_FUNC(X) float modfunc_ ##X (unsigned char v, float *mod, void *data, float *ms) - | ^~~~~~~~ -modules.c:380:1: note: in expansion of macro 'MODULE_FUNC' - 380 | MODULE_FUNC(modulator) { - | ^~~~~~~~~~~ -modules.c: In function 'modfunc_modulator': -fileops.c:77:8: warning: conversion from 'long int' to 'int' may change value [-Wconversion] - 77 | flen=ftell(f); - | ^~~~~ -modules.h:29:88: warning: unused parameter 'data' [-Wunused-parameter] - 29 | #define MODULE_FUNC(X) float modfunc_ ##X (unsigned char v, float *mod, void *data, float *ms) - | ~~~~~~^~~~ -modules.c:380:1: note: in expansion of macro 'MODULE_FUNC' - 380 | MODULE_FUNC(modulator) { - | ^~~~~~~~~~~ -fileops.c:86:5: warning: conversion from 'size_t' {aka 'long unsigned int'} to 'int' may change value [-Wconversion] - 86 | r=fread(&cpat, sizeof(int), 1, f); - | ^~~~~ -fileops.c:91:5: warning: conversion from 'size_t' {aka 'long unsigned int'} to 'int' may change value [-Wconversion] - 91 | r=fread(&csyn, sizeof(int), 1, f); - | ^~~~~ -modules.h:29:101: warning: unused parameter 'ms' [-Wunused-parameter] - 29 | #define MODULE_FUNC(X) float modfunc_ ##X (unsigned char v, float *mod, void *data, float *ms) - | ~~~~~~~^~ -modules.c:380:1: note: in expansion of macro 'MODULE_FUNC' - 380 | MODULE_FUNC(modulator) { - | ^~~~~~~~~~~ -modules.c: At top level: -fileops.c:63:10: warning: variable 'r' set but not used [-Wunused-but-set-variable] - 63 | int i, r, cpat, csyn; - | ^ -modules.h:29:39: warning: no previous prototype for 'modfunc_output' [-Wmissing-prototypes] - 29 | #define MODULE_FUNC(X) float modfunc_ ##X (unsigned char v, float *mod, void *data, float *ms) - | ^~~~~~~~ -modules.c:390:1: note: in expansion of macro 'MODULE_FUNC' - 390 | MODULE_FUNC(output) { return ms[0]*(*mod); } - | ^~~~~~~~~~~ -modules.c: In function 'modfunc_output': -fileops.c: In function 'save_ksong': -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) - | ~~~~~~~~~~~~~~^ -modules.c:390:1: note: in expansion of macro 'MODULE_FUNC' - 390 | MODULE_FUNC(output) { return ms[0]*(*mod); } - | ^~~~~~~~~~~ -fileops.c:124:18: warning: comparison of integer expressions of different signedness: 'int' and 'unsigned int' [-Wsign-compare] - 124 | for(n=0,i=0;i1) loopend=ms[2]; // use loop input if greater than 1 sample - | ^~ -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); - | ^ -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); - | ^ -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); - | ^ -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); - | ^ -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); - | ^ -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); - | ^ -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); - | ^ -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); - | ^ -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)); - | ^ -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); - | ^ -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)); - | ^ -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); - | ^ -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)); - | ^ -audio.c:708:3: warning: '__builtin_strncpy' output truncated before terminating nul copying 4 bytes from a string of the same length [-Wstringop-truncation] - 708 | strncpy((char*)&w.wav_chunkid, "RIFF", 4); - | ^ -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)); - | ^ -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); - | ^ -fileops.c:301:99: warning: conversion to 'size_t' {aka 'long unsigned int'} from 'int' may change the sign of the result [-Wsign-conversion] - 301 | for(i=0;i1.0) out = out/fabs(out); - | ^~~ -fileops.c:310:63: warning: conversion to 'long unsigned int' from 'int' may change the sign of the result [-Wsign-conversion] - 310 | for(i=0;ig.gl_pathv[i], '/')+1, 255); - | ^ -filedialog.c:126:7: warning: '__builtin_strncpy' specified bound 255 equals destination size [-Wstringop-truncation] -modules.h:29:88: warning: unused parameter 'data' [-Wunused-parameter] - 29 | #define MODULE_FUNC(X) float modfunc_ ##X (unsigned char v, float *mod, void *data, float *ms) - | ~~~~~~^~~~ -modules.c:540:1: note: in expansion of macro 'MODULE_FUNC' - 540 | MODULE_FUNC(dist) { // simple clipping distort - | ^~~~~~~~~~~ -fileops.c: In function 'save_chunk_ksyn': -modules.c: At top level: -filedialog.c:114:7: warning: '__builtin___strncpy_chk' specified bound depends on the length of the source argument [-Wstringop-truncation] - 114 | strncpy(ttmps, fd->g.gl_pathv[i], strlen(fd->g.gl_pathv[i])-1); - | ^ -filedialog.c:114:41: note: length computed here - 114 | strncpy(ttmps, fd->g.gl_pathv[i], strlen(fd->g.gl_pathv[i])-1); - | ^~~~~~~~~~~~~~~~~~~~~~~~~ -fileops.c:339:9: warning: conversion from 'long unsigned int' to 'unsigned int' may change value [-Wconversion] - 339 | dsize=nm*sizeof(synthmodule) + 128 + 8; - | ^~ -modules.h:29:39: warning: no previous prototype for 'modfunc_resample' [-Wmissing-prototypes] - 29 | #define MODULE_FUNC(X) float modfunc_ ##X (unsigned char v, float *mod, void *data, float *ms) - | ^~~~~~~~ -modules.c:569:1: note: in expansion of macro 'MODULE_FUNC' - 569 | MODULE_FUNC(resample) { // sample-and-hold - | ^~~~~~~~~~~ -filedialog.c:116:7: warning: '__builtin_strncpy' specified bound 255 equals destination size [-Wstringop-truncation] - 116 | strncpy(tmps, rindex(ttmps, '/')+1, 255); - | ^ -modules.c: In function 'modfunc_resample': -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) - | ~~~~~~~~~~~~~~^ -modules.c:569:1: note: in expansion of macro 'MODULE_FUNC' - 569 | MODULE_FUNC(resample) { // sample-and-hold - | ^~~~~~~~~~~ -fileops.c:356:5: warning: conversion from 'size_t' {aka 'long unsigned int'} to 'unsigned int' may change value [-Wconversion] - 356 | m=fwrite(filedata, sizeof(char), dsize+8, f); - | ^~~~~~ -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) - | ~~~~~~~^~~ -modules.c:569:1: note: in expansion of macro 'MODULE_FUNC' - 569 | MODULE_FUNC(resample) { // sample-and-hold - | ^~~~~~~~~~~ -modules.c: At top level: -fileops.c: In function 'save_chunk_kbnk': -modules.h:29:39: warning: no previous prototype for 'modfunc_cv' [-Wmissing-prototypes] - 29 | #define MODULE_FUNC(X) float modfunc_ ##X (unsigned char v, float *mod, void *data, float *ms) - | ^~~~~~~~ -modules.c:583:1: note: in expansion of macro 'MODULE_FUNC' - 583 | MODULE_FUNC(cv) { return *mod; } - | ^~~~~~~~~~~ -modules.c: In function 'modfunc_cv': -fileops.c:374:56: warning: comparison of integer expressions of different signedness: 'int' and 'unsigned int' [-Wsign-compare] - 374 | while(signalfifo[syn][m]>=0) { if (signalfifo[syn][m]>mm) mm=signalfifo[syn][m]; m++; } - | ^ -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) - | ~~~~~~~~~~~~~~^ -modules.c:583:1: note: in expansion of macro 'MODULE_FUNC' - 583 | MODULE_FUNC(cv) { return *mod; } - | ^~~~~~~~~~~ -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)); - | ^ -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); - | ^ -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)); - | ^ -pattern.c:667:7: warning: conversion to 'int' from 'unsigned int' may change the sign of the result [-Wsign-conversion] - 667 | n=pattdata[cpatt][piano_start+piano_drag]; - | ^~~~~~~~ -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)); - | ^ -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); - | ^ -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); - | ^ -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); - | ^ -widgets.c:508:23: warning: conversion from 'int' to 'float' may change value [-Wconversion] - 508 | glVertex2f(x+(j+1)*kw, y); - | ^ -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); - | ^ -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); - | ^ -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); - | ^ -audio.c:710:3: warning: '__builtin_strncpy' output truncated before terminating nul copying 4 bytes from a string of the same length [-Wstringop-truncation] - 710 | strncpy((char*)&w.wav_format, "WAVE", 4); - | ^ -audio.c:711:3: warning: '__builtin_strncpy' output truncated before terminating nul copying 4 bytes from a string of the same length [-Wstringop-truncation] - 711 | strncpy((char*)&w.wav_sub1chunkid, "fmt ", 4); - | ^ -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); - | ^ -fileops.c:374:64: warning: conversion to 'unsigned int' from 'int' may change the sign of the result [-Wsign-conversion] - 374 | while(signalfifo[syn][m]>=0) { if (signalfifo[syn][m]>mm) mm=signalfifo[syn][m]; m++; } - | ^~~~~~~~~~ -widgets.c:514:19: warning: conversion from 'int' to 'float' may change value [-Wconversion] - 514 | glVertex2f(x+j*kw, y); - | ^ -modules.h:29:88: warning: unused parameter 'data' [-Wunused-parameter] - 29 | #define MODULE_FUNC(X) float modfunc_ ##X (unsigned char v, float *mod, void *data, float *ms) - | ~~~~~~^~~~ -modules.c:583:1: note: in expansion of macro 'MODULE_FUNC' - 583 | MODULE_FUNC(cv) { return *mod; } - | ^~~~~~~~~~~ -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); - | ^ -fileops.c:378:9: warning: conversion from 'long unsigned int' to 'unsigned int' may change value [-Wconversion] - 378 | dsize=8 + MAX_PATCHES * (128 + 3*stacklen*4); - | ^ -widgets.c:515:23: warning: conversion from 'int' to 'float' may change value [-Wconversion] - 515 | glVertex2f(x+(j+1)*kw, y); - | ^ -modules.h:29:101: warning: unused parameter 'ms' [-Wunused-parameter] - 29 | #define MODULE_FUNC(X) float modfunc_ ##X (unsigned char v, float *mod, void *data, float *ms) - | ~~~~~~~^~ -modules.c:583:1: note: in expansion of macro 'MODULE_FUNC' - 583 | MODULE_FUNC(cv) { return *mod; } - | ^~~~~~~~~~~ -modules.c: At top level: -widgets.c:516:23: warning: conversion from 'int' to 'float' may change value [-Wconversion] - 516 | glVertex2f(x+(j+1)*kw, y+kh); - | ^ -modules.h:29:39: warning: no previous prototype for 'modfunc_amp' [-Wmissing-prototypes] - 29 | #define MODULE_FUNC(X) float modfunc_ ##X (unsigned char v, float *mod, void *data, float *ms) - | ^~~~~~~~ -modules.c:584:1: note: in expansion of macro 'MODULE_FUNC' - 584 | MODULE_FUNC(amp) { return ms[0]*ms[1]; } - | ^~~~~~~~~~~ -modules.c: In function 'modfunc_amp': -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); - | ^ -fileops.c:397:5: warning: conversion from 'size_t' {aka 'long unsigned int'} to 'unsigned int' may change value [-Wconversion] - 397 | m=fwrite(filedata, sizeof(char), dsize+8, f); - | ^~~~~~ -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) - | ~~~~~~~~~~~~~~^ -modules.c:584:1: note: in expansion of macro 'MODULE_FUNC' - 584 | MODULE_FUNC(amp) { return ms[0]*ms[1]; } - | ^~~~~~~~~~~ -widgets.c:517:19: warning: conversion from 'int' to 'float' may change value [-Wconversion] - 517 | glVertex2f(x+j*kw, y+kh); - | ^ -fileops.c: In function 'save_chunk_kpat': -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) - | ~~~~~~~^~~ -modules.c:584:1: note: in expansion of macro 'MODULE_FUNC' - 584 | MODULE_FUNC(amp) { return ms[0]*ms[1]; } - | ^~~~~~~~~~~ -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); - | ^ -fileops.c:411:5: warning: conversion from 'size_t' {aka 'long unsigned int'} to 'int' may change value [-Wconversion] - 411 | r=fwrite("KPAT", sizeof(char), 4, f); - | ^~~~~~ -modules.h:29:88: warning: unused parameter 'data' [-Wunused-parameter] - 29 | #define MODULE_FUNC(X) float modfunc_ ##X (unsigned char v, float *mod, void *data, float *ms) - | ~~~~~~^~~~ -modules.c:584:1: note: in expansion of macro 'MODULE_FUNC' - 584 | MODULE_FUNC(amp) { return ms[0]*ms[1]; } - | ^~~~~~~~~~~ -modules.c: At top level: -fileops.c:413:5: warning: conversion from 'size_t' {aka 'long unsigned int'} to 'int' may change value [-Wconversion] - 413 | r=fwrite(&chunklen, sizeof(unsigned int), 1, f); - | ^~~~~~ -modules.h:29:39: warning: no previous prototype for 'modfunc_att' [-Wmissing-prototypes] - 29 | #define MODULE_FUNC(X) float modfunc_ ##X (unsigned char v, float *mod, void *data, float *ms) - | ^~~~~~~~ -modules.c:585:1: note: in expansion of macro 'MODULE_FUNC' - 585 | MODULE_FUNC(att) { return ms[0]* *mod; } - | ^~~~~~~~~~~ -modules.c: In function 'modfunc_att': -fileops.c:415:5: warning: conversion from 'size_t' {aka 'long unsigned int'} to 'int' may change value [-Wconversion] - 415 | r=fwrite(&pattlen[patt], sizeof(unsigned int), 1, f); - | ^~~~~~ -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) - | ~~~~~~~~~~~~~~^ -modules.c:585:1: note: in expansion of macro 'MODULE_FUNC' - 585 | MODULE_FUNC(att) { return ms[0]* *mod; } - | ^~~~~~~~~~~ -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); - | ^ -fileops.c:417:5: warning: conversion from 'size_t' {aka 'long unsigned int'} to 'int' may change value [-Wconversion] - 417 | r=fwrite(&pattdata[patt], sizeof(unsigned int), pattlen[patt]*16, f); - | ^~~~~~ -modules.h:29:88: warning: unused parameter 'data' [-Wunused-parameter] - 29 | #define MODULE_FUNC(X) float modfunc_ ##X (unsigned char v, float *mod, void *data, float *ms) - | ~~~~~~^~~~ -modules.c:585:1: note: in expansion of macro 'MODULE_FUNC' - 585 | MODULE_FUNC(att) { return ms[0]* *mod; } - | ^~~~~~~~~~~ -modules.c: At top level: -fileops.c: In function 'save_chunk_kseq': -modules.h:29:39: warning: no previous prototype for 'modfunc_mixer' [-Wmissing-prototypes] - 29 | #define MODULE_FUNC(X) float modfunc_ ##X (unsigned char v, float *mod, void *data, float *ms) - | ^~~~~~~~ -modules.c:586:1: note: in expansion of macro 'MODULE_FUNC' - 586 | MODULE_FUNC(mixer) { return ms[0]+ms[1]+ms[2]+ms[3]; } - | ^~~~~~~~~~~ -modules.c: In function 'modfunc_mixer': -fileops.c:429:12: warning: conversion to 'unsigned int' from 'int' may change the sign of the result [-Wsign-conversion] - 429 | chunklen=12 + 4*seqch + 4*seqch*seqsonglen*4; - | ^~ -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) - | ~~~~~~~~~~~~~~^ -modules.c:586:1: note: in expansion of macro 'MODULE_FUNC' - 586 | MODULE_FUNC(mixer) { return ms[0]+ms[1]+ms[2]+ms[3]; } - | ^~~~~~~~~~~ -pattern.c:683:35: warning: conversion from 'int' to 'float' may change value [-Wconversion] - 683 | PIANOROLL_Y-1-(kpkeydown-coct*12)*PIANOROLL_CELLHEIGHT); - | ^ -fileops.c:430:5: warning: conversion from 'size_t' {aka 'long unsigned int'} to 'int' may change value [-Wconversion] - 430 | r=fwrite("KSEQ", sizeof(char), 4, f); - | ^~~~~~ -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) - | ~~~~~~~^~~ -modules.c:586:1: note: in expansion of macro 'MODULE_FUNC' - 586 | MODULE_FUNC(mixer) { return ms[0]+ms[1]+ms[2]+ms[3]; } - | ^~~~~~~~~~~ -fileops.c:431:5: warning: conversion from 'size_t' {aka 'long unsigned int'} to 'int' may change value [-Wconversion] - 431 | r=fwrite(&chunklen, sizeof(unsigned int), 1, f); - | ^~~~~~ -modules.h:29:88: warning: unused parameter 'data' [-Wunused-parameter] - 29 | #define MODULE_FUNC(X) float modfunc_ ##X (unsigned char v, float *mod, void *data, float *ms) - | ~~~~~~^~~~ -modules.c:586:1: note: in expansion of macro 'MODULE_FUNC' - 586 | MODULE_FUNC(mixer) { return ms[0]+ms[1]+ms[2]+ms[3]; } - | ^~~~~~~~~~~ -modules.c: At top level: -fileops.c:433:5: warning: conversion from 'size_t' {aka 'long unsigned int'} to 'int' may change value [-Wconversion] - 433 | r=fwrite(&seqch, sizeof(unsigned int), 1, f); - | ^~~~~~ -modules.h:29:39: warning: no previous prototype for 'modfunc_lpf24' [-Wmissing-prototypes] - 29 | #define MODULE_FUNC(X) float modfunc_ ##X (unsigned char v, float *mod, void *data, float *ms) - | ^~~~~~~~ -modules.c:590:1: note: in expansion of macro 'MODULE_FUNC' - 590 | MODULE_FUNC(lpf24) { // 24db/oct four-pole low pass - | ^~~~~~~~~~~ -pattern.c:685:49: warning: conversion to '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, - | ^ -modules.c: In function 'modfunc_lpf24': -modules.c:613:19: warning: conversion from 'double' to 'float' may change value [-Wfloat-conversion] - 613 | return mod_ddata[3]; //out4; - | ^ -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) - | ~~~~~~~~~~~~~~^ -modules.c:590:1: note: in expansion of macro 'MODULE_FUNC' - 590 | MODULE_FUNC(lpf24) { // 24db/oct four-pole low pass - | ^~~~~~~~~~~ -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) - | ~~~~~~~^~~ -modules.c:590:1: note: in expansion of macro 'MODULE_FUNC' - 590 | MODULE_FUNC(lpf24) { // 24db/oct four-pole low pass - | ^~~~~~~~~~~ -modules.c: At top level: -modules.h:29:39: warning: no previous prototype for 'modfunc_bitcrush' [-Wmissing-prototypes] - 29 | #define MODULE_FUNC(X) float modfunc_ ##X (unsigned char v, float *mod, void *data, float *ms) - | ^~~~~~~~ -modules.c:625:1: note: in expansion of macro 'MODULE_FUNC' - 625 | MODULE_FUNC(bitcrush) { - | ^~~~~~~~~~~ -modules.c: In function 'modfunc_bitcrush': -modules.c:627:12: warning: conversion from 'float' to 'int' may change value [-Wfloat-conversion] - 627 | int rate=ms[1]*32766+1; - | ^~ -modules.c:628:10: warning: conversion from 'float' to 'int' may change value [-Wfloat-conversion] - 628 | int in=ms[0]*32767; - | ^~ -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) - | ~~~~~~~~~~~~~~^ -modules.c:625:1: note: in expansion of macro 'MODULE_FUNC' - 625 | MODULE_FUNC(bitcrush) { - | ^~~~~~~~~~~ -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) - | ~~~~~~~^~~ -modules.c:625:1: note: in expansion of macro 'MODULE_FUNC' - 625 | MODULE_FUNC(bitcrush) { - | ^~~~~~~~~~~ -modules.h:29:88: warning: unused parameter 'data' [-Wunused-parameter] - 29 | #define MODULE_FUNC(X) float modfunc_ ##X (unsigned char v, float *mod, void *data, float *ms) - | ~~~~~~^~~~ -modules.c:625:1: note: in expansion of macro 'MODULE_FUNC' - 625 | MODULE_FUNC(bitcrush) { - | ^~~~~~~~~~~ -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); - | ^ -pattern.c:685:77: warning: conversion to '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.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); - | ^ -pattern.c:685:33: warning: conversion from 'unsigned int' to 'float' may change value [-Wconversion] - 685 | glVertex2f(PIANOROLL_X+(pattlen[cpatt]*(beats_per_measure*beatdiv)-piano_start)*PIANOROLL_CELLWIDTH, - | ^ -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)); - | ^ -pattern.c:686:35: warning: conversion from 'int' to 'float' may change value [-Wconversion] - 686 | PIANOROLL_Y-1-(kpkeydown-coct*12)*PIANOROLL_CELLHEIGHT); +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); | ^ -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)); - | ^ -pattern.c:688:49: warning: conversion to '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.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); - | ^ -pattern.c:688:77: warning: conversion to '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.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)); - | ^ -modules.c: At top level: -fileops.c:434:5: warning: conversion from 'size_t' {aka 'long unsigned int'} to 'int' may change value [-Wconversion] - 434 | r=fwrite(&seqsonglen, sizeof(unsigned int), 1, f); - | ^~~~~~ -modules.h:29:39: warning: no previous prototype for 'modfunc_slew' [-Wmissing-prototypes] - 29 | #define MODULE_FUNC(X) float modfunc_ ##X (unsigned char v, float *mod, void *data, float *ms) - | ^~~~~~~~ -modules.c:641:1: note: in expansion of macro 'MODULE_FUNC' - 641 | MODULE_FUNC(slew) { // slew limiter: ms[0] = cv input, ms[1] = rate - | ^~~~~~~~~~~ -modules.c: In function 'modfunc_slew': -fileops.c:435:5: warning: conversion from 'size_t' {aka 'long unsigned int'} to 'int' may change value [-Wconversion] - 435 | r=fwrite(&bpm, sizeof(unsigned int), 1, f); - | ^~~~~~ -modules.c:29:20: warning: conversion from 'double' to 'float' may change value [-Wfloat-conversion] - 29 | #define mod_ddata ((double*)data) - | ^ -modules.c:644:12: note: in expansion of macro 'mod_ddata' - 644 | float fp=mod_ddata[0]; - | ^~~~~~~~~ -fileops.c:438:45: warning: conversion to 'size_t' {aka 'long unsigned int'} from 'int' may change the sign of the result [-Wsign-conversion] - 438 | r=fwrite(seq_synth, sizeof(unsigned int), seqch, f); - | ^~~~~ -fileops.c:438:5: warning: conversion from 'size_t' {aka 'long unsigned int'} to 'int' may change value [-Wconversion] - 438 | r=fwrite(seq_synth, sizeof(unsigned int), seqch, f); - | ^~~~~~ -modules.c:647:5: warning: conversion from 'double' to 'float' may change value [-Wfloat-conversion] - 647 | k=((int)(*mod)) ? -log2(1-ms[1]) : ms[1]; - | ^ -fileops.c:441:73: warning: conversion to 'size_t' {aka 'long unsigned int'} from 'int' may change the sign of the result [-Wsign-conversion] - 441 | for(i=0;iadvance.x >> 6; + | ^~~~ +font.c:118:26: warning: conversion to 'int' from 'unsigned int' may change the sign of the result [-Wsign-conversion] + 118 | font_width[f][c]=slot->bitmap.width; + | ^~~~ +font.c:119:27: warning: conversion to 'int' from 'unsigned int' may change the sign of the result [-Wsign-conversion] + 119 | font_height[f][c]=slot->bitmap.rows; + | ^~~~ +font.c:120:14: warning: conversion to 'int' from 'unsigned int' may change the sign of the result [-Wsign-conversion] + 120 | texw=tpow2(slot->bitmap.width); + | ^~~~~ +font.c:121:14: warning: conversion to 'int' from 'unsigned int' may change the sign of the result [-Wsign-conversion] + 121 | texh=tpow2(slot->bitmap.rows); + | ^~~~~ +font.c:126:38: warning: conversion to 'size_t' {aka 'long unsigned int'} from 'int' may change the sign of the result [-Wsign-conversion] + 126 | font_bitmap[f][c]=calloc(texw*texh, sizeof(GLuint)); + | ~~~~^~~~~ +font.c:127:19: warning: comparison of integer expressions of different signedness: 'int' and 'unsigned int' [-Wsign-compare] + 127 | for (j=0;jbitmap.rows;j++) + | ^ +shader.c:43:8: warning: no previous prototype for 'loadshader' [-Wmissing-prototypes] + 43 | GLuint loadshader(char *fname, GLuint type) + | ^~~~~~~~~~ +font.c:129:20: warning: comparison of integer expressions of different signedness: 'int' and 'unsigned int' [-Wsign-compare] + 129 | for(i=0;ibitmap.width;i++) { | ^ -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]); - | ^~~~ -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); - | ~~~~~~^~~~~ -fileops.c:477:5: warning: conversion from 'size_t' {aka 'long unsigned int'} to 'int' may change value [-Wconversion] - 477 | r=fread(cbuffer, sizeof(char), fchunklen, f); - | ^~~~~ -shader.c: In function 'shader_init': -fileops.c: In function 'probe_chunk': -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); - | ^ -widgets.c:739:51: warning: conversion to 'char' from 'unsigned char' may change the sign of the result [-Wsign-conversion] - 739 | { text[strlen(text)+1]='\0'; text[strlen(text)]=key; } - | ^~~ -fileops.c:497:5: warning: conversion from 'size_t' {aka 'long unsigned int'} to 'int' may change value [-Wconversion] - 497 | r=fread(chunktype, sizeof(char), 4, f); - | ^~~~~ -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]); - | ^~~~ -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); - | ~~~~~~^~~~~ -fileops.c:499:5: warning: conversion from 'size_t' {aka 'long unsigned int'} to 'int' may change value [-Wconversion] - 499 | r=fread(&fchunklen, sizeof(u32), 1, f); - | ^~~~~ -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]); - | ^~~~ -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); - | ~~~~~~^~~~~ -fileops.c: In function 'synth_colorize': -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]); - | ^~~~ -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); - | ~~~~~~^~~~~ -fileops.c:568:58: warning: conversion from 'int' to 'unsigned char' may change value [-Wconversion] - 568 | for(m=0;m>", patt_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); - | ~~~~~~^~~~~ -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)); - | ^ -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)); - | ^~~~~~~ -fileops.c: In function 'synth_find_color': -fileops.c:591:49: warning: conversion from 'int' to 'unsigned char' may change value [-Wconversion] - 591 | if (n && !c) { mod[syn][pm].effective_color=n; c=1; } - | ^ -fileops.c: In function 'synth_update_bpm': -fileops.c:610:41: warning: conversion to 'int' from 'unsigned int' may change the sign of the result [-Wsign-conversion] - 610 | val=knob_scale2float(mod[s][m].scale, modvalue[s][p][m]); // un-scale raw float - | ~~~~~~~~~^~~~~~ -fileops.c:612:50: warning: conversion from 'int' to 'float' may change value [-Wconversion] - 612 | modvalue[s][p][m]=(val*60*OUTPUTFREQ)/newbpm; // re-scale frequency to raw with new bpm - | ^ -fileops.c:614:51: warning: conversion from 'int' to 'float' may change value [-Wconversion] - 614 | modvalue[s][p][m]=(OUTPUTFREQ*60)/(val*newbpm); // ditto with tempo +font.c:131:51: warning: conversion to 'unsigned int' from 'int' may change the sign of the result [-Wsign-conversion] + 131 | font_bitmap[f][c][ ( slot->bitmap.rows-(j+1) )*texw + i] = p; | ^ -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]); - | ^~~ -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]); - | ^~~ -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]); - | ^~~ +font.c:131:59: warning: conversion to 'unsigned int' from 'int' may change the sign of the result [-Wsign-conversion] + 131 | font_bitmap[f][c][ ( slot->bitmap.rows-(j+1) )*texw + i] = p; + | ^ +font.c:131:65: warning: conversion to 'unsigned int' from 'int' may change the sign of the result [-Wsign-conversion] + 131 | font_bitmap[f][c][ ( slot->bitmap.rows-(j+1) )*texw + i] = p; + | ^ +font.c: In function 'render_text': +font.c:165:7: warning: conversion to 'long unsigned int' from 'int' may change the sign of the result [-Wsign-conversion] + 165 | sw+=font_advance[fontnr][(int)text[n]]; + | ^~ +font.c:171:19: warning: conversion from 'long unsigned int' to 'float' may change value [-Wconversion] + 171 | if (align==1) xp-=(sw/2); + | ^~ +font.c:172:19: warning: conversion from 'long unsigned int' to 'float' may change value [-Wconversion] + 172 | if (align==2) xp-=sw; + | ^~ +font.c:176:33: warning: conversion from 'int' to 'float' may change value [-Wconversion] + 176 | if ((int)text[n]=='\n') { yp+=fontsize[fontnr]+2; xp=x; n++; continue; } + | ^~ +font.c:178:68: warning: conversion from 'unsigned int' to 'GLubyte' {aka 'unsigned char'} may change value [-Wconversion] + 178 | glColor4ub((color>>16)&0xff, (color>>8)&0xff, color&0xff, color>>24); + | ~~~~~^~~~ +filedialog.c: In function 'filedialog_draw': +font.c:182:20: warning: conversion from 'int' to 'float' may change value [-Wconversion] + 182 | glVertex2f(xp+font_xoffset[fontnr][(int)text[n]], yp+font_yoffset[fontnr][(int)text[n]]); + | ^ +font.c:182:59: warning: conversion from 'int' to 'float' may change value [-Wconversion] + 182 | glVertex2f(xp+font_xoffset[fontnr][(int)text[n]], yp+font_yoffset[fontnr][(int)text[n]]); + | ^ +font.c:184:20: warning: conversion from 'int' to 'float' may change value [-Wconversion] + 184 | glVertex2f(xp+font_xoffset[fontnr][(int)text[n]]+font_width[fontnr][(int)text[n]], yp+font_yoffset[fontnr][(int)text[n]]); + | ^ +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); + | ^~~~~~~~~~~~~~~~~~~~~~~~ +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); + | ^~ +font.c:184:55: warning: conversion from 'int' to 'float' may change value [-Wconversion] + 184 | glVertex2f(xp+font_xoffset[fontnr][(int)text[n]]+font_width[fontnr][(int)text[n]], yp+font_yoffset[fontnr][(int)text[n]]); + | ^ +font.c:184:92: warning: conversion from 'int' to 'float' may change value [-Wconversion] + 184 | glVertex2f(xp+font_xoffset[fontnr][(int)text[n]]+font_width[fontnr][(int)text[n]], yp+font_yoffset[fontnr][(int)text[n]]); + | ^ +font.c:186:20: warning: conversion from 'int' to 'float' may change value [-Wconversion] + 186 | glVertex2f(xp+font_xoffset[fontnr][(int)text[n]]+font_width[fontnr][(int)text[n]], + | ^ +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); + | ~~~~~~^~~~~ +font.c:186:55: warning: conversion from 'int' to 'float' may change value [-Wconversion] + 186 | glVertex2f(xp+font_xoffset[fontnr][(int)text[n]]+font_width[fontnr][(int)text[n]], + | ^ +font.c:187:18: warning: conversion from 'int' to 'float' may change value [-Wconversion] + 187 | yp+font_yoffset[fontnr][(int)text[n]]+font_height[fontnr][(int)text[n]]); + | ^ +font.c:187:53: warning: conversion from 'int' to 'float' may change value [-Wconversion] + 187 | yp+font_yoffset[fontnr][(int)text[n]]+font_height[fontnr][(int)text[n]]); + | ^ +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); + | ^~ +font.c:189:20: warning: conversion from 'int' to 'float' may change value [-Wconversion] + 189 | glVertex2f(xp+font_xoffset[fontnr][(int)text[n]], + | ^ +font.c:190:18: warning: conversion from 'int' to 'float' may change value [-Wconversion] + 190 | yp+font_yoffset[fontnr][(int)text[n]]+font_height[fontnr][(int)text[n]]); + | ^ +font.c:190:53: warning: conversion from 'int' to 'float' may change value [-Wconversion] + 190 | yp+font_yoffset[fontnr][(int)text[n]]+font_height[fontnr][(int)text[n]]); + | ^ +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 'long 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 'long 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:129:51: warning: conversion from 'long unsigned int' to 'unsigned int' 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 'long unsigned int'} to 'float' may change value [-Wconversion] + 147 | fd->sliderpos, 12, fd->g.gl_pathc); + | ~~~~~^~~~~~~~~ +font.c:194:7: warning: conversion from 'int' to 'float' may change value [-Wconversion] + 194 | xp+=font_advance[fontnr][(int)text[n]]; + | ^~ +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 'long 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 audio.c:16: +audio.h:56:1: warning: function declaration isn't a prototype [-Wstrict-prototypes] + 56 | int audio_exportwav(); //char *filename); + | ^~~ +In file included from buffermm.h:16, + from audio.c:17: +modules.h:152:1: warning: function declaration isn't a prototype [-Wstrict-prototypes] + 152 | void calc_supersaw_tables(); + | ^~~~ In file included from synthesizer.h:29, from buffermm.h:18: dotfile.h:16:1: warning: function declaration isn't a prototype [-Wstrict-prototypes] @@ -4808,10 +1841,18 @@ 323 | cx=(int)((x-SEQUENCER_X)/SEQUENCER_CELLWIDTH); | ^ sequencer.c: At top level: +In file included from synthesizer.h:29, + from buffermm.h:18: +dotfile.h:16:1: warning: function declaration isn't a prototype [-Wstrict-prototypes] + 16 | int dotfile_load(); + | ^~~ sequencer.c:333:5: warning: no previous prototype for 'sequencer_timelinepos' [-Wmissing-prototypes] 333 | int sequencer_timelinepos(int x, int y) { | ^~~~~~~~~~~~~~~~~~~~~ sequencer.c: In function 'sequencer_timelinepos': +dotfile.h:17:1: warning: function declaration isn't a prototype [-Wstrict-prototypes] + 17 | int dotfile_save(); + | ^~~ sequencer.c:337:24: warning: conversion from 'int' to 'float' may change value [-Wconversion] 337 | x < (SEQUENCER_X + seqsonglen*SEQUENCER_CELLWIDTH + 1) && | ^ @@ -4855,6 +1896,9 @@ sequencer.c:359:38: warning: conversion from 'int' to 'float' may change value [-Wconversion] 359 | seq_ui[B_SLONGER]=hovertest_box(x, y, 304, DS_HEIGHT-14, 16, 16); | ^ +synthesizer.h:84:6: warning: redundant redeclaration of 'synth_stackify' [-Wredundant-decls] + 84 | void synth_stackify(int syn); + | ^~~~~~~~~~~~~~ sequencer.c:361:37: warning: conversion from 'int' to 'float' may change value [-Wconversion] 361 | seq_ui[B_SAVE_SONG]=hovertest_box(x, y, 350, DS_HEIGHT-14, 16, 16); | ^ @@ -4940,7 +1984,17 @@ sequencer.c:416:42: warning: conversion from 'float' to 'int' may change value [-Wfloat-conversion] 416 | if (seq_start>(1+cip-cos)) seq_start=(1+cip-cos); | ^ +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); + | ^~~~~~~~~~~ sequencer.c: In function 'sequencer_mouse_click': +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); + | ^~~~~~~~~~~ sequencer.c:458:24: warning: passing argument 1 of 'console_post' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] 458 | console_post("Song cleared and everything reset back to defaults"); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ @@ -4974,6 +2028,27 @@ 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); | ~~~~~~^~~~~ +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", + | ~^ + | | + | int + | %ld + 98 | (unsigned long)buffer, len, len*sizeof(u32), voice,synth,module,modtype); + | ~~~ + | | + | long unsigned int +buffermm.c:97:73: warning: format '%d' expects argument of type 'int', but argument 4 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", + | ~^ + | | + | int + | %ld + 98 | (unsigned long)buffer, len, len*sizeof(u32), voice,synth,module,modtype); + | ~~~~~~~~~~~~~~~ + | | + | long unsigned int sequencer.c:478:29: warning: ISO C forbids passing argument 1 of 'dialog_bindkeyboard' between function pointer and 'void *' [-Wpedantic] 478 | dialog_bindkeyboard(&sequencer_bpm_keyboard); | ^~~~~~~~~~~~~~~~~~~~~~~ @@ -5074,7 +2149,6 @@ 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: In function 'patch_modulator_click': sequencer.c:525:43: warning: ISO C forbids passing argument 2 of 'dialog_open' between function pointer and 'void *' [-Wpedantic] 525 | dialog_open(&sequencer_draw_file, &sequencer_file_hover, &sequencer_file_click); | ^~~~~~~~~~~~~~~~~~~~~ @@ -5087,37 +2161,18 @@ 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:626:11: warning: array subscript 'long unsigned int[0]' is partly outside array bounds of 'float[1]' [-Warray-bounds=] - 626 | *fptr&=fmask; - | ^~~~~ -widgets.c: In function 'draw_kboct': sequencer.c:526:29: warning: ISO C forbids passing argument 1 of 'dialog_bindkeyboard' between function pointer and 'void *' [-Wpedantic] 526 | dialog_bindkeyboard(&sequencer_file_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:606:9: note: object 'f' of size 4 - 606 | float f; - | ^ sequencer.c:527:25: warning: ISO C forbids passing argument 1 of 'dialog_binddrag' between function pointer and 'void *' [-Wpedantic] 527 | dialog_binddrag(&sequencer_file_drag); | ^~~~~~~~~~~~~~~~~~~~ dialog.h:31:28: note: expected 'void *' but argument is of type 'void (*)(int, int)' 31 | void dialog_binddrag(void *dragfunc); | ~~~~~~^~~~~~~~ -widgets.c:484:14: warning: iteration 4 invokes undefined behavior [-Waggressive-loop-optimizations] - 484 | ckey+=bkj[i]; - | ~~~^~~ -patch.c:626:11: warning: array subscript 'long unsigned int[0]' is partly outside array bounds of 'float[1]' [-Warray-bounds=] - 626 | *fptr&=fmask; - | ^~~~~ -widgets.c:466:12: note: within this loop - 466 | for(i=0;i<5;i++) { // black keys - | ~^~ -patch.c:606:9: note: object 'f' of size 4 - 606 | float f; - | ^ sequencer.c:576:22: warning: passing argument 1 of 'console_post' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] 576 | console_post("Modulator commands are not yet implemented!"); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ @@ -5221,25 +2276,18 @@ filedialog.h:58:44: note: expected 'char *' but argument is of type 'const char *' 58 | void filedialog_open(filedialog *fd, char *ext, char *path); | ~~~~~~^~~ -widgets.c: In function 'draw_kbhoct': sequencer.c:709:17: warning: ISO C forbids passing argument 1 of 'dialog_open' between function pointer and 'void *' [-Wpedantic] 709 | dialog_open(&sequencer_draw_file, &sequencer_file_hover, &sequencer_file_click); | ^~~~~~~~~~~~~~~~~~~~ dialog.h:22:24: note: expected 'void *' but argument is of type 'void (*)(void)' 22 | void dialog_open(void *draw, void *hover, void *click); | ~~~~~~^~~~ -widgets.c:560:14: warning: iteration 4 invokes undefined behavior [-Waggressive-loop-optimizations] - 560 | ckey+=bkj[i]; - | ~~~^~~ sequencer.c:709:39: warning: ISO C forbids passing argument 2 of 'dialog_open' between function pointer and 'void *' [-Wpedantic] 709 | dialog_open(&sequencer_draw_file, &sequencer_file_hover, &sequencer_file_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); | ~~~~~~^~~~~ -widgets.c:531:12: note: within this loop - 531 | for(i=0;i<5;i++) { // black keys - | ~^~ sequencer.c:709:62: warning: ISO C forbids passing argument 3 of 'dialog_open' between function pointer and 'void *' [-Wpedantic] 709 | dialog_open(&sequencer_draw_file, &sequencer_file_hover, &sequencer_file_click); | ^~~~~~~~~~~~~~~~~~~~~ @@ -5267,6 +2315,11 @@ sequencer.c:717:39: warning: passing argument 2 of 'filedialog_open' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] 717 | filedialog_open(&songfd[FD_LOAD], "ksong", songdir); | ^~~~~~~ +In file included from patch.h:20, + from patch.c:13: +modules.h:152:1: warning: function declaration isn't a prototype [-Wstrict-prototypes] + 152 | void calc_supersaw_tables(); + | ^~~~ filedialog.h:58:44: note: expected 'char *' but argument is of type 'const char *' 58 | void filedialog_open(filedialog *fd, char *ext, char *path); | ~~~~~~^~~ @@ -5303,6 +2356,12 @@ sequencer.c:736:31: warning: conversion to 'unsigned int' from 'int' may change the sign of the result [-Wsign-conversion] 736 | n=i+seq_repeat[j][i]*pattlen[seq_pattern[j][i]]; | ^ +In file included from synthesizer.h:24, + from patch.h:21, + from fileops.c:20: +audio.h:56:1: warning: function declaration isn't a prototype [-Wstrict-prototypes] + 56 | int audio_exportwav(); //char *filename); + | ^~~ sequencer.c:736:14: warning: conversion to 'unsigned int' from 'int' may change the sign of the result [-Wsign-conversion] 736 | n=i+seq_repeat[j][i]*pattlen[seq_pattern[j][i]]; | ^ @@ -5312,28 +2371,12 @@ sequencer.c:690:3: warning: switch missing default case [-Wswitch-default] 690 | switch (key) { | ^~~~~~ -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); - | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ sequencer.c:682:48: warning: unused parameter 'x' [-Wunused-parameter] 682 | void sequencer_keyboard(unsigned char key, int x, int y) | ~~~~^ -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); - | ^ sequencer.c:682:55: warning: unused parameter 'y' [-Wunused-parameter] 682 | void sequencer_keyboard(unsigned char key, int x, int y) | ~~~~^ -filedialog.c:180:7: warning: '__builtin___strncat_chk' specified bound 512 equals destination size [-Wstringop-truncation] - 180 | strncat(fd->fullpath, fd->fmask+1, 512); - | ^ sequencer.c: In function 'sequencer_draw': sequencer.c:759:44: warning: conversion from 'int' to 'float' may change value [-Wconversion] 759 | glVertex2f(SEQUENCER_X, SEQUENCER_Y+(j*SEQUENCER_CELLHEIGHT)); @@ -5347,32 +2390,28 @@ sequencer.c:768:42: warning: conversion from 'int' to 'float' may change value [-Wconversion] 768 | glVertex2f(SEQUENCER_X, SEQUENCER_Y+((seqch+2)*SEQUENCER_CELLHEIGHT)); | ^ +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); + | ^ sequencer.c:769:25: warning: conversion from 'int' to 'float' may change value [-Wconversion] 769 | glVertex2f(SEQUENCER_X+(seqsonglen-seq_start)*SEQUENCER_CELLWIDTH, SEQUENCER_Y+((seqch+2)*SEQUENCER_CELLHEIGHT)); | ^ sequencer.c:769:81: warning: conversion from 'int' to 'float' may change value [-Wconversion] 769 | glVertex2f(SEQUENCER_X+(seqsonglen-seq_start)*SEQUENCER_CELLWIDTH, SEQUENCER_Y+((seqch+2)*SEQUENCER_CELLHEIGHT)); | ^ -synthesizer.c: In function 'synth_init': -synthesizer.c:100:11: warning: array subscript 64 is above array bounds of 'synthmodule[64]' [-Warray-bounds=] - 100 | mod[s][m].outputpos=0; - | ~~~~~~^~~ -synthesizer.c:52:13: note: while referencing 'mod' - 52 | synthmodule mod[MAX_SYNTH][MAX_MODULES]; - | ^~~ sequencer.c:770:42: warning: conversion from 'int' to 'float' may change value [-Wconversion] 770 | glVertex2f(SEQUENCER_X, SEQUENCER_Y+((seqch+3)*SEQUENCER_CELLHEIGHT)); | ^ +In file included from /usr/include/string.h:548, + 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, + from widgets.h:22: In function 'strncat', - inlined from 'filedialog_click' at filedialog.c:177:5: -/usr/include/x86_64-linux-gnu/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/x86_64-linux-gnu/bits/string_fortified.h:138:10: warning: '__builtin___strncat_chk' specified bound 512 equals destination size [-Wstringop-overflow=] + inlined from 'filedialog_open' at filedialog.c:24:3: +/usr/include/x86_64-linux-gnu/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)); @@ -5380,6 +2419,13 @@ sequencer.c:771:25: warning: conversion from 'int' to 'float' may change value [-Wconversion] 771 | glVertex2f(SEQUENCER_X+(seqsonglen-seq_start)*SEQUENCER_CELLWIDTH, SEQUENCER_Y+((seqch+3)*SEQUENCER_CELLHEIGHT)); | ^ +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(); + | ^~~ sequencer.c:771:81: warning: conversion from 'int' to 'float' may change value [-Wconversion] 771 | glVertex2f(SEQUENCER_X+(seqsonglen-seq_start)*SEQUENCER_CELLWIDTH, SEQUENCER_Y+((seqch+3)*SEQUENCER_CELLHEIGHT)); | ^ @@ -5395,6 +2441,9 @@ sequencer.c:789:27: warning: conversion from 'int' to 'float' may change value [-Wconversion] 789 | glVertex2f(SEQUENCER_X+i*SEQUENCER_CELLWIDTH, round(SEQUENCER_Y)); | ^ +synthesizer.h:84:6: warning: redundant redeclaration of 'synth_stackify' [-Wredundant-decls] + 84 | void synth_stackify(int syn); + | ^~~~~~~~~~~~~~ sequencer.c:791:29: warning: conversion from 'int' to 'float' may change value [-Wconversion] 791 | glVertex2f(SEQUENCER_X+i*SEQUENCER_CELLWIDTH, round(SEQUENCER_Y+((seqch+4)*SEQUENCER_CELLHEIGHT))); | ^ @@ -5449,24 +2498,72 @@ sequencer.c:819:45: warning: conversion from 'int' to 'float' may change value [-Wconversion] 819 | glVertex2f( sx+1, SEQUENCER_Y+(1+i)*SEQUENCER_CELLHEIGHT-1 ); | ^ +In file included from fileops.c:18: +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); + | ^~~~~~~~~~~ sequencer.c:822:48: warning: conversion from 'int' to 'float' may change value [-Wconversion] 822 | render_text(tmps, sx+2, SEQUENCER_Y+(i+1)*SEQUENCER_CELLHEIGHT-((SEQUENCER_CELLHEIGHT-14)/2)+2.5, 2, 0x80c0c0c0, 0); | ^ +fileops.c: In function 'load_ksong': sequencer.c:829:45: warning: conversion from 'int' to 'float' may change value [-Wconversion] 829 | glVertex2f( sx+1, SEQUENCER_Y+ i *SEQUENCER_CELLHEIGHT); | ^ +fileops.c:71:12: warning: conversion from 'long int' to 'int' may change value [-Wconversion] + 71 | chunklen=probe_chunk(f, chunktype); + | ^~~~~~~~~~~ +fileops.c:77:8: warning: conversion from 'long int' to 'int' may change value [-Wconversion] + 77 | flen=ftell(f); + | ^~~~~ +fileops.c:86:5: warning: conversion from 'size_t' {aka 'long unsigned int'} to 'int' may change value [-Wconversion] + 86 | r=fread(&cpat, sizeof(int), 1, f); + | ^~~~~ sequencer.c:830:27: warning: conversion from 'int' to 'float' may change value [-Wconversion] 830 | glVertex2f( sx+sl, SEQUENCER_Y+ i *SEQUENCER_CELLHEIGHT); | ^ +fileops.c:91:5: warning: conversion from 'size_t' {aka 'long unsigned int'} to 'int' may change value [-Wconversion] + 91 | r=fread(&csyn, sizeof(int), 1, f); + | ^~~~~ +fileops.c:63:10: warning: variable 'r' set but not used [-Wunused-but-set-variable] + 63 | int i, r, cpat, csyn; + | ^ +fileops.c: In function 'save_ksong': +fileops.c:124:18: warning: comparison of integer expressions of different signedness: 'int' and 'unsigned int' [-Wsign-compare] + 124 | for(n=0,i=0;i SEQUENCER_X) { | ^ +In file included from synthesizer.h:24, + from synthesizer.c:13: +audio.h:56:1: warning: function declaration isn't a prototype [-Wstrict-prototypes] + 56 | int audio_exportwav(); //char *filename); + | ^~~ sequencer.c:870:13: warning: conversion from 'int' to 'float' may change value [-Wconversion] 870 | sl-=(SEQUENCER_X-sx); | ^~ sequencer.c:870:15: warning: conversion from 'float' to 'int' may change value [-Wfloat-conversion] 870 | sl-=(SEQUENCER_X-sx); | ^ -synthesizer.c: In function 'synth_clear': -synthesizer.c:146:12: warning: array subscript 64 is above array bounds of 'synthmodule[64]' [-Warray-bounds=] - 146 | mod[csyn][m].outputpos=0; - | ~~~~~~~~~^~~ -synthesizer.c:52:13: note: while referencing 'mod' - 52 | synthmodule mod[MAX_SYNTH][MAX_MODULES]; - | ^~~ +fileops.c: In function 'load_chunk_kbnk': sequencer.c:882:43: warning: conversion from 'int' to 'float' may change value [-Wconversion] 882 | glVertex2f( sx+1, SEQUENCER_Y+ i *SEQUENCER_CELLHEIGHT); | ^ +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"); + | ^~~~~~ +fileops.h:55:33: note: expected 'char *' but argument is of type 'const char *' + 55 | void* load_chunk(FILE *f, char *chunktype); + | ~~~~~~^~~~~~~~~ +fileops.c:253:12: warning: comparison of integer expressions of different signedness: 'int' and 'unsigned int' [-Wsign-compare] + 253 | for(p=0;p=0) { if (signalfifo[syn][m]>mm) mm=signalfifo[syn][m]; m++; } + | ^ +fileops.c:374:64: warning: conversion to 'unsigned int' from 'int' may change the sign of the result [-Wsign-conversion] + 374 | while(signalfifo[syn][m]>=0) { if (signalfifo[syn][m]>mm) mm=signalfifo[syn][m]; m++; } + | ^~~~~~~~~~ +fileops.c:378:9: warning: conversion from 'long unsigned int' to 'unsigned int' may change value [-Wconversion] + 378 | dsize=8 + MAX_PATCHES * (128 + 3*stacklen*4); + | ^ +fileops.c:397:5: warning: conversion from 'size_t' {aka 'long unsigned int'} to 'unsigned int' may change value [-Wconversion] + 397 | m=fwrite(filedata, sizeof(char), dsize+8, f); + | ^~~~~~ sequencer.c:910:90: warning: conversion from 'int' to 'float' may change value [-Wconversion] 910 | glVertex2f( SEQUENCER_X+(seq_hover_meas-seq_start) *SEQUENCER_CELLWIDTH, SEQUENCER_Y+(2+seqch)*SEQUENCER_CELLHEIGHT ); | ^ @@ -5589,39 +2784,106 @@ sequencer.c:912:28: warning: conversion from 'int' to 'float' may change value [-Wconversion] 912 | glVertex2f( SEQUENCER_X+(seq_hover_meas-seq_start+1)*SEQUENCER_CELLWIDTH, SEQUENCER_Y+(3+seqch)*SEQUENCER_CELLHEIGHT ); | ^ +In file included from modules.c:18: +audio.h:56:1: warning: function declaration isn't a prototype [-Wstrict-prototypes] + 56 | int audio_exportwav(); //char *filename); + | ^~~ sequencer.c:912:90: warning: conversion from 'int' to 'float' may change value [-Wconversion] 912 | glVertex2f( SEQUENCER_X+(seq_hover_meas-seq_start+1)*SEQUENCER_CELLWIDTH, SEQUENCER_Y+(3+seqch)*SEQUENCER_CELLHEIGHT ); | ^ -patch.c:721:9: note: object 'f' of size 4 - 721 | float f; - | ^ +In file included from buffermm.h:16, + from modules.c:19: +modules.h:152:1: warning: function declaration isn't a prototype [-Wstrict-prototypes] + 152 | void calc_supersaw_tables(); + | ^~~~ sequencer.c:913:28: warning: conversion from 'int' to 'float' may change value [-Wconversion] 913 | glVertex2f( SEQUENCER_X+(seq_hover_meas-seq_start) *SEQUENCER_CELLWIDTH, SEQUENCER_Y+(3+seqch)*SEQUENCER_CELLHEIGHT ); | ^ sequencer.c:913:90: warning: conversion from 'int' to 'float' may change value [-Wconversion] 913 | glVertex2f( SEQUENCER_X+(seq_hover_meas-seq_start) *SEQUENCER_CELLWIDTH, SEQUENCER_Y+(3+seqch)*SEQUENCER_CELLHEIGHT ); | ^ +fileops.c: In function 'save_chunk_kpat': sequencer.c:922:41: warning: conversion to 'unsigned int' from 'int' may change the sign of the result [-Wsign-conversion] 922 | pl=seq_repeat[i][seq_drag_pattstart]*pattlen[seq_pattern[i][seq_drag_pattstart]]; | ^ +filedialog.c: In function 'filedialog_draw': +fileops.c:411:5: warning: conversion from 'size_t' {aka 'long unsigned int'} to 'int' may change value [-Wconversion] + 411 | r=fwrite("KPAT", sizeof(char), 4, f); + | ^~~~~~ +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); + | ^ +filedialog.c:126:7: warning: '__builtin_strncpy' specified bound 255 equals destination size [-Wstringop-truncation] +fileops.c:413:5: warning: conversion from 'size_t' {aka 'long unsigned int'} to 'int' may change value [-Wconversion] + 413 | r=fwrite(&chunklen, sizeof(unsigned int), 1, f); + | ^~~~~~ +filedialog.c:114:7: warning: '__builtin___strncpy_chk' specified bound depends on the length of the source argument [-Wstringop-truncation] + 114 | strncpy(ttmps, fd->g.gl_pathv[i], strlen(fd->g.gl_pathv[i])-1); + | ^ sequencer.c:922:8: warning: conversion to 'int' from 'unsigned int' may change the sign of the result [-Wsign-conversion] 922 | pl=seq_repeat[i][seq_drag_pattstart]*pattlen[seq_pattern[i][seq_drag_pattstart]]; | ^~~~~~~~~~ +fileops.c:415:5: warning: conversion from 'size_t' {aka 'long unsigned int'} to 'int' may change value [-Wconversion] + 415 | r=fwrite(&pattlen[patt], sizeof(unsigned int), 1, f); + | ^~~~~~ +filedialog.c:114:41: note: length computed here + 114 | strncpy(ttmps, fd->g.gl_pathv[i], strlen(fd->g.gl_pathv[i])-1); + | ^~~~~~~~~~~~~~~~~~~~~~~~~ +filedialog.c:116:7: warning: '__builtin_strncpy' specified bound 255 equals destination size [-Wstringop-truncation] + 116 | strncpy(tmps, rindex(ttmps, '/')+1, 255); + | ^ +fileops.c:417:5: warning: conversion from 'size_t' {aka 'long unsigned int'} to 'int' may change value [-Wconversion] + 417 | r=fwrite(&pattdata[patt], sizeof(unsigned int), pattlen[patt]*16, f); + | ^~~~~~ +fileops.c: In function 'save_chunk_kseq': +fileops.c:429:12: warning: conversion to 'unsigned int' from 'int' may change the sign of the result [-Wsign-conversion] + 429 | chunklen=12 + 4*seqch + 4*seqch*seqsonglen*4; + | ^~ sequencer.c:925:19: warning: conversion from 'int' to 'float' may change value [-Wconversion] 925 | sx=SEQUENCER_X+(j-seq_start)*SEQUENCER_CELLWIDTH; | ^ +fileops.c:430:5: warning: conversion from 'size_t' {aka 'long unsigned int'} to 'int' may change value [-Wconversion] + 430 | r=fwrite("KSEQ", sizeof(char), 4, f); + | ^~~~~~ +fileops.c:431:5: warning: conversion from 'size_t' {aka 'long unsigned int'} to 'int' may change value [-Wconversion] + 431 | r=fwrite(&chunklen, sizeof(unsigned int), 1, f); + | ^~~~~~ sequencer.c:928:12: warning: conversion from 'int' to 'float' may change value [-Wconversion] 928 | if ((sx+sl) > SEQUENCER_X) { | ^ +fileops.c:433:5: warning: conversion from 'size_t' {aka 'long unsigned int'} to 'int' may change value [-Wconversion] + 433 | r=fwrite(&seqch, sizeof(unsigned int), 1, f); + | ^~~~~~ +fileops.c:434:5: warning: conversion from 'size_t' {aka 'long unsigned int'} to 'int' may change value [-Wconversion] + 434 | r=fwrite(&seqsonglen, sizeof(unsigned int), 1, f); + | ^~~~~~ +fileops.c:435:5: warning: conversion from 'size_t' {aka 'long unsigned int'} to 'int' may change value [-Wconversion] + 435 | r=fwrite(&bpm, sizeof(unsigned int), 1, f); + | ^~~~~~ sequencer.c:930:11: warning: conversion from 'int' to 'float' may change value [-Wconversion] 930 | sl-=(SEQUENCER_X-sx); | ^~ +fileops.c:438:45: warning: conversion to 'size_t' {aka 'long unsigned int'} from 'int' may change the sign of the result [-Wsign-conversion] + 438 | r=fwrite(seq_synth, sizeof(unsigned int), seqch, f); + | ^~~~~ +fileops.c:438:5: warning: conversion from 'size_t' {aka 'long unsigned int'} to 'int' may change value [-Wconversion] + 438 | r=fwrite(seq_synth, sizeof(unsigned int), seqch, f); + | ^~~~~~ sequencer.c:930:13: warning: conversion from 'float' to 'int' may change value [-Wfloat-conversion] 930 | sl-=(SEQUENCER_X-sx); | ^ +fileops.c:441:73: warning: conversion to 'size_t' {aka 'long unsigned int'} from 'int' may change the sign of the result [-Wsign-conversion] + 441 | for(i=0;ifullpath, fd->fmask+1, 512); - | ^ +fileops.c: In function 'synth_colorize': sequencer.c:1009:7: warning: conversion from 'long int' to 'int' may change value [-Wconversion] 1009 | i=(render_playpos / (OUTPUTFREQ/(bpm*256/60))) >> 6; // calc patternpos from sample index | ^ -In function 'strncat', - inlined from 'filedialog_keyboard' at filedialog.c:247:5: -/usr/include/x86_64-linux-gnu/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/x86_64-linux-gnu/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)); - | ~~~~~~~~~~~~~~~~~~~~~~~~~ +fileops.c:568:58: warning: conversion from 'int' to 'unsigned char' may change value [-Wconversion] + 568 | for(m=0;m= 0 && (i/16.0f) >= seq_start) { | ^ +fileops.c: In function 'synth_find_color': +fileops.c:591:49: warning: conversion from 'int' to 'unsigned char' may change value [-Wconversion] + 591 | if (n && !c) { mod[syn][pm].effective_color=n; c=1; } + | ^ sequencer.c:1012:28: warning: conversion from 'int' to 'float' may change value [-Wconversion] 1012 | f=(float)(i)/16.0f - seq_start; | ^ +fileops.c: In function 'synth_update_bpm': +fileops.c:610:41: warning: conversion to 'int' from 'unsigned int' may change the sign of the result [-Wsign-conversion] + 610 | val=knob_scale2float(mod[s][m].scale, modvalue[s][p][m]); // un-scale raw float + | ~~~~~~~~~^~~~~~ sequencer.c:1016:64: warning: conversion from 'int' to 'float' may change value [-Wconversion] 1016 | glVertex2f(SEQUENCER_X+f*SEQUENCER_CELLWIDTH, SEQUENCER_Y+(seqch+3)*SEQUENCER_CELLHEIGHT); | ^ +fileops.c:612:50: warning: conversion from 'int' to 'float' may change value [-Wconversion] + 612 | modvalue[s][p][m]=(val*60*OUTPUTFREQ)/newbpm; // re-scale frequency to raw with new bpm + | ^ +fileops.c:614:51: warning: conversion from 'int' to 'float' may change value [-Wconversion] + 614 | modvalue[s][p][m]=(OUTPUTFREQ*60)/(val*newbpm); // ditto with tempo + | ^ sequencer.c:1027:32: warning: conversion from 'int' to 'float' may change value [-Wconversion] 1027 | glVertex2f(1, SEQUENCER_Y+j*SEQUENCER_CELLHEIGHT); | ^ @@ -5754,6 +3036,18 @@ sequencer.c:1050:44: warning: conversion from 'int' to 'float' may change value [-Wconversion] 1050 | glVertex2f(SEQUENCER_X-1, SEQUENCER_Y+(j+1)*SEQUENCER_CELLHEIGHT); | ^ +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); + | ^ +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 synthesizer.h:24, + from patch.h:21: +audio.h:56:1: warning: function declaration isn't a prototype [-Wstrict-prototypes] + 56 | int audio_exportwav(); //char *filename); + | ^~~ sequencer.c:1051:32: warning: conversion from 'int' to 'float' may change value [-Wconversion] 1051 | glVertex2f(1, SEQUENCER_Y+(j+1)*SEQUENCER_CELLHEIGHT); | ^ @@ -5763,9 +3057,21 @@ sequencer.c:1057:40: warning: conversion from 'int' to 'float' may change value [-Wconversion] 1057 | draw_hslider(SEQUENCER_X, SEQUENCER_Y+(seqch+5)*SEQUENCER_CELLHEIGHT, (DS_WIDTH-(SEQUENCER_X+6)), 12, | ^ +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(); + | ^~~ sequencer.c:1058:4: warning: conversion from 'int' to 'float' may change value [-Wconversion] 1058 | seq_start, (DS_WIDTH-(SEQUENCER_X+4))/SEQUENCER_CELLWIDTH, seqsonglen, seqslide_hover); | ^~~~~~~~~ +In file included from widgets.h:23, + from pattern.h:22: +modules.h:152:1: warning: function declaration isn't a prototype [-Wstrict-prototypes] + 152 | void calc_supersaw_tables(); + | ^~~~ 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); | ^~~~~~~~~~ @@ -5776,73 +3082,392 @@ 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: In function 'pattern_init': sequencer.c:1063:38: warning: passing argument 4 of 'draw_button' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] 1063 | draw_button(462, DS_HEIGHT-14, 16, "C", seq_ui[B_CLEAR]); | ^~~ 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:100:6: warning: old-style function definition [-Wold-style-definition] + 100 | void pattern_init() + | ^~~~~~~~~~~~ sequencer.c:1064:43: warning: passing argument 5 of 'draw_textbox' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] 1064 | draw_textbox(526, DS_HEIGHT-14, 16, 48, "play", seq_ui[B_SEQPLAY]); | ^~~~~~ 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); | ~~~~~~^~~~~ +pattern.c: At top level: +synthesizer.h:84:6: warning: redundant redeclaration of 'synth_stackify' [-Wredundant-decls] + 84 | void synth_stackify(int syn); + | ^~~~~~~~~~~~~~ +pattern.c:119:6: warning: function declaration isn't a prototype [-Wstrict-prototypes] + 119 | void pattern_toggleplayback() + | ^~~~~~~~~~~~~~~~~~~~~~ +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); + | ^~~~~~~~~~~ +pattern.c: In function 'pattern_toggleplayback': +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); + | ^~~~~~~~~~~ +pattern.c:119:6: warning: old-style function definition [-Wold-style-definition] sequencer.c:1065:43: warning: passing argument 5 of 'draw_textbox' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] 1065 | draw_textbox(578, DS_HEIGHT-14, 16, 48, "render", seq_ui[B_RENDER]); | ^~~~~~~~ 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: In function 'patch_init': +patch.c:96:6: warning: old-style function definition [-Wold-style-definition] + 96 | void patch_init() + | ^~~~~~~~~~ +In file included from widgets.h:23, + from widgets.c:14: +modules.h:152:1: warning: function declaration isn't a prototype [-Wstrict-prototypes] + 152 | void calc_supersaw_tables(); + | ^~~~ +pattern.c: At top level: +pattern.c:140:5: warning: no previous prototype for 'pattern_cursorpos' [-Wmissing-prototypes] + 140 | int pattern_cursorpos(int x, int y, int *note) + | ^~~~~~~~~~~~~~~~~ sequencer.c:1079:37: warning: passing argument 4 of 'draw_button' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] 1079 | draw_button(14, DS_HEIGHT-14, 16, "<<", seq_ui[B_DECCH]); | ^~~~ 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_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); + | ^ +pattern.c: In function 'pattern_cursorpos': +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); + | ^ sequencer.c:1082:37: warning: passing argument 4 of 'draw_button' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] 1082 | draw_button(80, DS_HEIGHT-14, 16, ">>", seq_ui[B_ADDCH]); | ^~~~ +pattern.c:46:27: warning: conversion from 'int' to 'float' may change value [-Wconversion] + 46 | #define PIANOROLL_OCTAVES 6 + | ^ +pattern.c:148:16: note: in expansion of macro 'PIANOROLL_OCTAVES' + 148 | lineheight=PIANOROLL_OCTAVES*12 - (((coct+PIANOROLL_OCTAVES)*12)-MAX_NOTE); + | ^~~~~~~~~~~~~~~~~ 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: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); + | ^ +widgets.c: In function 'draw_module': +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); + | ^ +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); + | ^~~~~~~~~~~~~~~~~~~~~~~~ sequencer.c:1087:39: warning: passing argument 4 of 'draw_button' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] 1087 | draw_button(222, DS_HEIGHT-14, 16, "<<", seq_ui[B_SSHORTER]); | ^~~~ +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.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); | ~~~~~~^~~~~ +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); + | ^~~~~~~~~~~~~~~~~~~~~~~~~~ +patch.c:174:7: warning: switch missing default case [-Wswitch-default] + 174 | switch (key) { + | ^~~~~~ +patch.c: In function 'patch_mouse_drag': +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); + | ^~~~~~~~~~~~~~~~~~~~~~~~~~ +pattern.c:153:41: warning: conversion to 'unsigned int' from 'int' may change the sign of the result [-Wsign-conversion] + 153 | x < (PIANOROLL_X + (pattlen[cpatt]*(beats_per_measure*beatdiv))*PIANOROLL_CELLWIDTH + 1) && + | ^ +patch.c:201:27: warning: unused parameter 'x' [-Wunused-parameter] + 201 | void patch_mouse_drag(int x, int y) + | ~~~~^ +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); + | ^~~~~~~~~~~~~~~~~~~~~~~~~~ +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': +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]); + | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~ +pattern.c:153:24: warning: conversion from 'unsigned int' to 'float' may change value [-Wconversion] + 153 | x < (PIANOROLL_X + (pattlen[cpatt]*(beats_per_measure*beatdiv))*PIANOROLL_CELLWIDTH + 1) && + | ^ +patch.c:217:9: warning: this 'if' clause does not guard... [-Wmisleading-indentation] + 217 | if (cpatch[csynth]>0) cpatch[csynth]--; return; + | ^~ +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); + | ^~~~~ +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; + | ^~~~~~ sequencer.c:1090:39: warning: passing argument 4 of 'draw_button' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] 1090 | draw_button(304, DS_HEIGHT-14, 16, ">>", seq_ui[B_SLONGER]); | ^~~~ +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.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); | ~~~~~~^~~~~ +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); + | ~~~~~~^~~~~ +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"); + | ^~~~~~~~~~~~~~~~~~~~~~~~~~~ +In file included from pattern.h:19, + from buffermm.h:17, + from synthesizer.h:25: +console.h:23:25: note: expected 'char *' but argument is of type 'const char *' + 23 | void console_post(char *msg); + | ~~~~~~^~~ +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(); + | ^~~ +pattern.c:37:29: warning: conversion from 'int' to 'float' may change value [-Wconversion] + 37 | #define PIANOROLL_X KB_WIDTH+5.5 + | ^ +pattern.c:158:17: note: in expansion of macro 'PIANOROLL_X' + 158 | cx=(int)((x-PIANOROLL_X)/PIANOROLL_CELLWIDTH)-1; + | ^~~~~~~~~~~ +pattern.c:159:20: warning: conversion from 'int' to 'float' may change value [-Wconversion] + 159 | cy=abs((int)((y-PIANOROLL_Y-2)/PIANOROLL_CELLHEIGHT)); + | ^ +pattern.c: In function 'pattern_mouse_hover': +synthesizer.h:84:6: warning: redundant redeclaration of 'synth_stackify' [-Wredundant-decls] + 84 | void synth_stackify(int syn); + | ^~~~~~~~~~~~~~ +pattern.c:171:33: warning: conversion from 'int' to 'float' may change value [-Wconversion] + 171 | patt_ui[B_PREV]=hovertest_box(x, y, 14, DS_HEIGHT-14, 16, 16); + | ^ +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); + | ^~~~~~~~~~~ +pattern.c:171:36: warning: conversion from 'int' to 'float' may change value [-Wconversion] + 171 | patt_ui[B_PREV]=hovertest_box(x, y, 14, DS_HEIGHT-14, 16, 16); + | ^ +pattern.c:172:33: warning: conversion from 'int' to 'float' may change value [-Wconversion] + 172 | patt_ui[B_NEXT]=hovertest_box(x, y, 64, DS_HEIGHT-14, 16, 16); + | ^ +pattern.c:172:36: warning: conversion from 'int' to 'float' may change value [-Wconversion] + 172 | patt_ui[B_NEXT]=hovertest_box(x, y, 64, DS_HEIGHT-14, 16, 16); + | ^ +pattern.c:173:36: warning: conversion from 'int' to 'float' may change value [-Wconversion] + 173 | patt_ui[B_SHORTER]=hovertest_box(x, y, 98, DS_HEIGHT-14, 16, 16); + | ^ +widgets.c: In function 'draw_signal_node': +pattern.c:173:39: warning: conversion from 'int' to 'float' may change value [-Wconversion] + 173 | patt_ui[B_SHORTER]=hovertest_box(x, y, 98, DS_HEIGHT-14, 16, 16); + | ^ +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); + | ~~^~~~~~~~~~~~~~~~~~~~~~~~ +pattern.c:174:35: warning: conversion from 'int' to 'float' may change value [-Wconversion] + 174 | patt_ui[B_LONGER]=hovertest_box(x, y, 180, DS_HEIGHT-14, 16, 16); + | ^ +pattern.c:174:38: warning: conversion from 'int' to 'float' may change value [-Wconversion] + 174 | patt_ui[B_LONGER]=hovertest_box(x, y, 180, DS_HEIGHT-14, 16, 16); + | ^ sequencer.c:1092:38: warning: passing argument 4 of 'draw_button' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] 1092 | draw_button(350, DS_HEIGHT-14, 16, "S", seq_ui[B_SAVE_SONG]); | ^~~ 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:175:34: warning: conversion from 'int' to 'float' may change value [-Wconversion] + 175 | patt_ui[B_OCTDN]=hovertest_box(x, y, 12, PIANOROLL_Y+16, 16, 16); + | ^ +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); + | ^~~ +pattern.c:175:37: warning: conversion from 'int' to 'float' may change value [-Wconversion] + 175 | patt_ui[B_OCTDN]=hovertest_box(x, y, 12, PIANOROLL_Y+16, 16, 16); + | ^ +pattern.c:176:34: warning: conversion from 'int' to 'float' may change value [-Wconversion] + 176 | patt_ui[B_OCTUP]=hovertest_box(x, y, 32, PIANOROLL_Y+16, 16, 16); + | ^ +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); +pattern.c:176:37: warning: conversion from 'int' to 'float' may change value [-Wconversion] + 176 | patt_ui[B_OCTUP]=hovertest_box(x, y, 32, PIANOROLL_Y+16, 16, 16); + | ^ +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); + | ~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ +pattern.c:177:36: warning: conversion from 'int' to 'float' may change value [-Wconversion] + 177 | patt_ui[B_PREVSYN]=hovertest_box(x, y, 214, DS_HEIGHT-14, 16, 16); + | ^ sequencer.c:1093:38: warning: passing argument 4 of 'draw_button' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] 1093 | draw_button(372, DS_HEIGHT-14, 16, "L", seq_ui[B_LOAD_SONG]); | ^~~ +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.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:177:39: warning: conversion from 'int' to 'float' may change value [-Wconversion] + 177 | patt_ui[B_PREVSYN]=hovertest_box(x, y, 214, DS_HEIGHT-14, 16, 16); + | ^ +pattern.c:178:36: warning: conversion from 'int' to 'float' may change value [-Wconversion] + 178 | patt_ui[B_NEXTSYN]=hovertest_box(x, y, 430, DS_HEIGHT-14, 16, 16); + | ^ +pattern.c:178:39: warning: conversion from 'int' to 'float' may change value [-Wconversion] + 178 | patt_ui[B_NEXTSYN]=hovertest_box(x, y, 430, DS_HEIGHT-14, 16, 16); + | ^ +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); + | ~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ +pattern.c:180:38: warning: conversion from 'int' to 'float' may change value [-Wconversion] + 180 | patt_ui[B_PATTCLEAR]=hovertest_box(x, y, 555, DS_HEIGHT-14, 16, 16) | (patt_ui[B_PATTCLEAR]&8); + | ^ +In file included from synthesizer.h:29, + from buffermm.h:18: +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(); + | ^~~ +pattern.c:180:41: warning: conversion from 'int' to 'float' may change value [-Wconversion] + 180 | patt_ui[B_PATTCLEAR]=hovertest_box(x, y, 555, DS_HEIGHT-14, 16, 16) | (patt_ui[B_PATTCLEAR]&8); + | ^ +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); sequencer.c:1095:43: warning: passing argument 5 of 'draw_textbox' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] 1095 | draw_textbox(630, DS_HEIGHT-14, 16, 48, "loop", seq_ui[B_LOOP] | (render_live_loop ? 2 : 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); | ~~~~~~^~~~~ +pattern.c:182:33: warning: conversion from 'int' to 'float' may change value [-Wconversion] + 182 | patt_ui[B_COPY]=hovertest_box(x,y,622, DS_HEIGHT-14, 16, 16); + | ^ +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); +pattern.c:182:35: warning: conversion from 'int' to 'float' may change value [-Wconversion] + 182 | patt_ui[B_COPY]=hovertest_box(x,y,622, DS_HEIGHT-14, 16, 16); + | ^ +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); +pattern.c:183:34: warning: conversion from 'int' to 'float' may change value [-Wconversion] + 183 | patt_ui[B_PASTE]=hovertest_box(x,y,644, DS_HEIGHT-14, 16, 16); + | ^ +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); + | ^~ +pattern.c:183:36: warning: conversion from 'int' to 'float' may change value [-Wconversion] + 183 | patt_ui[B_PASTE]=hovertest_box(x,y,644, DS_HEIGHT-14, 16, 16); + | ^ +widgets.c:203:3: warning: switch missing default case [-Wswitch-default] + 203 | switch (align) { + | ^~~~~~ sequencer.c:1097:38: warning: passing argument 4 of 'draw_button' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] 1097 | draw_button(394, DS_HEIGHT-14, 16, "N", seq_ui[B_NEWSONG]); | ^~~ 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); | ~~~~~~^~~~~ +widgets.c:212:8: warning: conversion from 'int' to 'float' may change value [-Wconversion] + 212 | x1 += glutBitmapWidth(MODULE_FONT,*c); + | ^~ +pattern.c:186:37: warning: conversion from 'int' to 'float' may change value [-Wconversion] + 186 | patt_ui[B_PATTPLAY]=hovertest_box(x, y, 482, DS_HEIGHT-14, 16, 42); + | ^ sequencer.c: In function 'sequencer_draw_pattern': +pattern.c:186:40: warning: conversion from 'int' to 'float' may change value [-Wconversion] + 186 | patt_ui[B_PATTPLAY]=hovertest_box(x, y, 482, DS_HEIGHT-14, 16, 42); + | ^ sequencer.c:1114:55: warning: passing argument 5 of 'draw_textbox' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] 1114 | draw_textbox((DS_WIDTH/2), (DS_HEIGHT/2), 150, 240, "", 0); | ^~ @@ -5852,45 +3477,532 @@ 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]); | ^~~~ +pattern.c:195:79: warning: conversion to 'unsigned int' from 'int' may change the sign of the result [-Wsign-conversion] + 195 | piano_start, (DS_WIDTH-(PIANOROLL_X+4))/PIANOROLL_CELLWIDTH, pattlen[cpatt]*(beats_per_measure*beatdiv)); + | ^ +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); + | ~~~~~~^~~ +pattern.c:194:33: warning: conversion from 'int' to 'float' may change value [-Wconversion] + 194 | slide_hover=hovertest_hslider(x,y,PIANOROLL_X, PIANOROLL_Y+12, (DS_WIDTH-(PIANOROLL_X+6)), 12, + | ^ +pattern.c:194:35: warning: conversion from 'int' to 'float' may change value [-Wconversion] + 194 | slide_hover=hovertest_hslider(x,y,PIANOROLL_X, PIANOROLL_Y+12, (DS_WIDTH-(PIANOROLL_X+6)), 12, + | ^ +pattern.c:195:4: warning: conversion from 'int' to 'float' may change value [-Wconversion] + 195 | piano_start, (DS_WIDTH-(PIANOROLL_X+4))/PIANOROLL_CELLWIDTH, pattlen[cpatt]*(beats_per_measure*beatdiv)); + | ^~~~~~~~~~~ +pattern.c:195:79: warning: conversion from 'unsigned int' to 'float' may change value [-Wconversion] + 195 | piano_start, (DS_WIDTH-(PIANOROLL_X+4))/PIANOROLL_CELLWIDTH, pattlen[cpatt]*(beats_per_measure*beatdiv)); + | ~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~ +pattern.c: In function 'pattern_mouse_drag': +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:218:23: warning: conversion to 'unsigned int' from 'int' may change the sign of the result [-Wsign-conversion] + 218 | cip=pattlen[cpatt]*(beats_per_measure*beatdiv); // cells in pattern + | ^ +pattern.c:218:9: warning: conversion from 'unsigned int' to 'float' may change value [-Wconversion] + 218 | cip=pattlen[cpatt]*(beats_per_measure*beatdiv); // cells in pattern + | ^~~~~~~ +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:220:10: warning: conversion from 'int' to 'float' may change value [-Wconversion] + 220 | f=((x-slide_drag_xofs)/(sbw-slw))*(cip-cos); + | ^ +patch.c:334:15: warning: switch missing default case [-Wswitch-default] + 334 | switch(modModulatorTypes[mod[csynth][mi].type]) { + | ^~~~~~ +pattern.c:221:33: warning: conversion from 'int' to 'float' may change value [-Wconversion] + 221 | piano_start=slide_drag_start+f; + | ^ +synthesizer.c: In function 'hovertest_output': +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:221:17: warning: conversion from 'float' to 'int' may change value [-Wfloat-conversion] + 221 | piano_start=slide_drag_start+f; + | ^~~~~~~~~~~~~~~~ +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); + | ~~~~~~^~~~ +synthesizer.c:178:11: warning: conversion from 'int' to 'float' may change value [-Wconversion] + 178 | xd=x-(list[m].x+MODULE_HALF); + | ^ +synthesizer.c:179:11: warning: conversion from 'int' to 'float' may change value [-Wconversion] + 179 | yd=y-(list[m].y+OUTPUT_OFFSET); + | ^ +filedialog.c: In function 'filedialog_click': +pattern.c:222:46: warning: conversion from 'float' to 'int' may change value [-Wfloat-conversion] + 222 | if (piano_start>(1+cip-cos)) piano_start=(1+cip-cos); + | ^ +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); + | ~~~~~~^~~~~ +synthesizer.c:180:9: warning: conversion from 'double' to 'float' may change value [-Wfloat-conversion] + 180 | d=sqrt(xd*xd+yd*yd); + | ^~~~ +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); + | ^ +synthesizer.c: In function 'hovertest_input': +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); + | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ +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); + | ^~~~~~~~~~~~~~~~~~~~~~ +widgets.c: In function 'draw_kboct': +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); + | ~~~~~~^~~~~ +synthesizer.c:189:48: warning: declaration of 'mod' shadows a global declaration [-Wshadow] + 189 | int hovertest_input(int x, int y, synthmodule *mod) + | ~~~~~~~~~~~~~^~~ +synthesizer.c:52:13: note: shadowed declaration is here + 52 | synthmodule mod[MAX_SYNTH][MAX_MODULES]; + | ^~~ +pattern.c:228:7: warning: conversion to 'int' from 'unsigned int' may change the sign of the result [-Wsign-conversion] + 228 | n=pattdata[cpatt][piano_start+piano_porta_drag]; // current note being dragged + | ^~~~~~~~ +filedialog.c:205:9: warning: '__builtin_strncpy' specified bound 255 equals destination size [-Wstringop-truncation] + 205 | strncpy(tmps, rindex(ttmps, '/')+1, 255); + | ^ +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); + | ~~~~~~^~~~~~ +synthesizer.c:196:10: warning: conversion from 'int' to 'float' may change value [-Wconversion] + 196 | xd=x - (mod->x + node_xoffset[ modInputCount[mod->type] ][ n ]); + | ^ +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); + | ^ +synthesizer.c:197:10: warning: conversion from 'int' to 'float' may change value [-Wconversion] + 197 | yd=y - (mod->y + node_yoffset[ modInputCount[mod->type] ][ n ]); + | ^ +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); + | ~~~~~~^~~~~~~~~~~ +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); + | ^ +synthesizer.c:198:7: warning: conversion from 'double' to 'float' may change value [-Wfloat-conversion] + 198 | d=sqrt(xd*xd + yd*yd); + | ^~~~ +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); + | ^ +pattern.c: In function 'pattern_mouse_click': +filedialog.c:180:7: warning: '__builtin___strncat_chk' specified bound 512 equals destination size [-Wstringop-truncation] + 180 | strncat(fd->fullpath, fd->fmask+1, 512); + | ^ +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); + | ~~~~~~^~~ +pattern.c:254:41: warning: comparison of integer expressions of different signedness: 'int' and 'unsigned int' [-Wsign-compare] + 254 | if (piano_hover>=0 && piano_note==(pattdata[cpatt][piano_start+piano_hover]&0xff)) { + | ^~ +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); + | ^ +synthesizer.c: At top level: +patch.c: In function 'patch_keyboard': +synthesizer.c:240:6: warning: no previous prototype for 'synth_open_addmodule' [-Wmissing-prototypes] + 240 | void synth_open_addmodule(void) + | ^~~~~~~~~~~~~~~~~~~~ +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); + | ^ +patch.c:378:3: warning: switch missing default case [-Wswitch-default] + 378 | switch (key) { + | ^~~~~~ +synthesizer.c: In function 'synth_open_addmodule': +synthesizer.c:252:21: warning: conversion from 'int' to 'float' may change value [-Wconversion] + 252 | tmpmod[m].x=(DS_WIDTH/2)-222 + m*74; + | ^ +pattern.c:272:24: warning: passing argument 1 of 'console_post' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] + 272 | console_post("Click again to clear pattern"); + | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ +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); + | ^ +patch.c:367:44: warning: unused parameter 'x' [-Wunused-parameter] + 367 | void patch_keyboard(unsigned char key, int x, int y) + | ~~~~^ +In file included from pattern.h:19: +console.h:23:25: note: expected 'char *' but argument is of type 'const char *' + 23 | void console_post(char *msg); + | ~~~~~~^~~ +synthesizer.c:255:21: warning: conversion from 'int' to 'float' may change value [-Wconversion] + 255 | tmpmod[m].x=(DS_WIDTH/2)-222 + (m-7)*74; + | ^ +patch.c:367:51: warning: unused parameter 'y' [-Wunused-parameter] + 367 | void patch_keyboard(unsigned char key, int x, int y) + | ~~~~^ +synthesizer.c:259:21: warning: conversion from 'int' to 'float' may change value [-Wconversion] + 259 | tmpmod[m].x=(DS_WIDTH/2)-222 + (m-14)*74; + | ^ +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); + | ^ +patch.c: In function 'patch_keyboardup': 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:289:36: warning: conversion to 'unsigned int' from 'int' may change the sign of the result [-Wsign-conversion] + 289 | for(i=((pattlen[cpatt]*(beats_per_measure*beatdiv))/2); i<(pattlen[cpatt]*(beats_per_measure*beatdiv)); i++) pattdata[cpatt][i]=0; + | ^ +pattern.c:289:20: warning: conversion to 'int' from 'unsigned int' may change the sign of the result [-Wsign-conversion] + 289 | for(i=((pattlen[cpatt]*(beats_per_measure*beatdiv))/2); i<(pattlen[cpatt]*(beats_per_measure*beatdiv)); i++) pattdata[cpatt][i]=0; + | ^ +pattern.c:289:87: warning: conversion to 'unsigned int' from 'int' may change the sign of the result [-Wsign-conversion] + 289 | for(i=((pattlen[cpatt]*(beats_per_measure*beatdiv))/2); i<(pattlen[cpatt]*(beats_per_measure*beatdiv)); i++) pattdata[cpatt][i]=0; + | ^ sequencer.c:1123:55: warning: passing argument 4 of 'draw_button' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] 1123 | draw_button((DS_WIDTH/2)-102, (DS_HEIGHT/2)-30, 16, "<<", seq_ui[B_PATT_DECNUM]); | ^~~~ 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:289:71: warning: comparison of integer expressions of different signedness: 'int' and 'unsigned int' [-Wsign-compare] + 289 | for(i=((pattlen[cpatt]*(beats_per_measure*beatdiv))/2); i<(pattlen[cpatt]*(beats_per_measure*beatdiv)); i++) pattdata[cpatt][i]=0; + | ^ +pattern.c:295:31: warning: conversion to 'unsigned int' from 'int' may change the sign of the result [-Wsign-conversion] + 295 | ( 1+pattlen[cpatt]*(beats_per_measure*beatdiv) - ( (DS_WIDTH-(PIANOROLL_X))/PIANOROLL_CELLWIDTH ) ) ) piano_start--; + | ^ +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); + | ^ sequencer.c:1128:55: warning: passing argument 4 of 'draw_button' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] 1128 | draw_button((DS_WIDTH/2)+102, (DS_HEIGHT/2)-30, 16, ">>", seq_ui[B_PATT_ADDREP]); | ^~~~ 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); | ~~~~~~^~~~~ +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)); + | ^ sequencer.c:1129:54: warning: passing argument 4 of 'draw_button' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] 1129 | draw_button((DS_WIDTH/2)+16, (DS_HEIGHT/2)-30, 16, "<<", seq_ui[B_PATT_DECREP]); | ^~~~ 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 function 'strncat', + inlined from 'filedialog_click' at filedialog.c:177:5: +pattern.c:295:60: warning: conversion from 'unsigned int' to 'float' may change value [-Wconversion] + 295 | ( 1+pattlen[cpatt]*(beats_per_measure*beatdiv) - ( (DS_WIDTH-(PIANOROLL_X))/PIANOROLL_CELLWIDTH ) ) ) piano_start--; + | ^ +/usr/include/x86_64-linux-gnu/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)); + | ~~~~~~~~~~~~~~~~~~~~~~~~~ +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)); + | ^ +In function 'strncat', + inlined from 'filedialog_click' at filedialog.c:180:7: +/usr/include/x86_64-linux-gnu/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)); + | ~~~~~~~~~~~~~~~~~~~~~~~~~ +pattern.c:308:40: warning: conversion to 'unsigned int' from 'int' may change the sign of the result [-Wsign-conversion] + 308 | for(i=0; i<((pattlen[cpatt]*(beats_per_measure*beatdiv))/2); i++) pattdata[cpatt][i+((pattlen[cpatt]*(beats_per_measure*beatdiv))/2)]=pattdata[cpatt][i]; + | ^ +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)); + | ^ +pattern.c:308:23: warning: comparison of integer expressions of different signedness: 'int' and 'unsigned int' [-Wsign-compare] + 308 | for(i=0; i<((pattlen[cpatt]*(beats_per_measure*beatdiv))/2); i++) pattdata[cpatt][i+((pattlen[cpatt]*(beats_per_measure*beatdiv))/2)]=pattdata[cpatt][i]; + | ^ sequencer.c:1134:54: warning: passing argument 4 of 'draw_button' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] 1134 | draw_button((DS_WIDTH/2)+102, (DS_HEIGHT/2)-4, 16, ">>", seq_ui[B_PATT_ADDTRANS]); | ^~~~ 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); | ~~~~~~^~~~~ +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)); + | ^ +pattern.c:308:113: warning: conversion to 'unsigned int' from 'int' may change the sign of the result [-Wsign-conversion] + 308 | for(i=0; i<((pattlen[cpatt]*(beats_per_measure*beatdiv))/2); i++) pattdata[cpatt][i+((pattlen[cpatt]*(beats_per_measure*beatdiv))/2)]=pattdata[cpatt][i]; + | ^ +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)); + | ^ sequencer.c:1135:53: warning: passing argument 4 of 'draw_button' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] 1135 | draw_button((DS_WIDTH/2)-16, (DS_HEIGHT/2)-4, 16, "<<", seq_ui[B_PATT_DECTRANS]); | ^~~~ 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:401:46: warning: unused parameter 'x' [-Wunused-parameter] + 401 | void patch_keyboardup(unsigned char key, int x, int y) + | ~~~~^ +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)); + | ^ +patch.c:401:53: warning: unused parameter 'y' [-Wunused-parameter] + 401 | void patch_keyboardup(unsigned char key, int x, int y) + | ~~~~^ +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)); + | ^ +patch.c: In function 'patch_specialkey': +widgets.c: In function 'draw_kbhoct': +patch.c:419:3: warning: switch missing default case [-Wswitch-default] + 419 | switch(key) + | ^~~~~~ +widgets.c:507:19: warning: conversion from 'int' to 'float' may change value [-Wconversion] + 507 | glVertex2f(x+j*kw, y); + | ^ +patch.c:417:46: warning: unused parameter 'x' [-Wunused-parameter] + 417 | void patch_specialkey(unsigned char key, int x, int y) + | ~~~~^ +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); + | ^~~~~~~~~~~~~~ +widgets.c:508:23: warning: conversion from 'int' to 'float' may change value [-Wconversion] + 508 | glVertex2f(x+(j+1)*kw, y); + | ^ +patch.c:417:53: warning: unused parameter 'y' [-Wunused-parameter] + 417 | void patch_specialkey(unsigned char key, int x, int y) + | ~~~~^ +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); + | ^~~~~~~~~~~ +widgets.c:509:23: warning: conversion from 'int' to 'float' may change value [-Wconversion] + 509 | glVertex2f(x+(j+1)*kw, y+kh); + | ^ +patch.c: In function 'patch_draw': +In file included from audio.c:21: +sequencer.h:33:1: warning: function declaration isn't a prototype [-Wstrict-prototypes] + 33 | void sequencer_init(); + | ^~~~ +widgets.c:510:19: warning: conversion from 'int' to 'float' may change value [-Wconversion] + 510 | glVertex2f(x+j*kw, y+kh); + | ^ +patch.c:460:19: warning: conversion from 'int' to 'GLfloat' {aka 'float'} may change value [-Wconversion] + 460 | glVertex2f(x+16, 8+m*16-yd); + | ~^~~ +sequencer.h:80:1: warning: function declaration isn't a prototype [-Wstrict-prototypes] + 80 | void sequencer_bpm_close_dialog(); + | ^~~~ +widgets.c:514:19: warning: conversion from 'int' to 'float' may change value [-Wconversion] + 514 | glVertex2f(x+j*kw, y); + | ^ +patch.c:460:31: warning: conversion from 'int' to 'GLfloat' {aka 'float'} may change value [-Wconversion] + 460 | glVertex2f(x+16, 8+m*16-yd); + | ~~~~~~^~~ +widgets.c:515:23: warning: conversion from 'int' to 'float' may change value [-Wconversion] + 515 | glVertex2f(x+(j+1)*kw, y); + | ^ +audio.c:115:7: warning: no previous prototype for 'audio_shape' [-Wmissing-prototypes] + 115 | float audio_shape(float input) + | ^~~~~~~~~~~ +patch.c:461:19: warning: conversion from 'int' to 'GLfloat' {aka 'float'} may change value [-Wconversion] + 461 | glVertex2f(x+380, 8+m*16-yd); + | ~^~~~ +widgets.c:516:23: warning: conversion from 'int' to 'float' may change value [-Wconversion] + 516 | glVertex2f(x+(j+1)*kw, y+kh); + | ^ +audio.c: In function 'audio_shape': +audio.c:117:14: warning: conversion from 'double' to 'float' may change value [-Wfloat-conversion] + 117 | return 0.5 * (fabs(input + AUDIO_SHAPER_THRESHOLD) - fabs(input - AUDIO_SHAPER_THRESHOLD)); + | ~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ +patch.c:461:31: warning: conversion from 'int' to 'GLfloat' {aka 'float'} may change value [-Wconversion] + 461 | glVertex2f(x+380, 8+m*16-yd); + | ~~~~~~^~~ +widgets.c:517:19: warning: conversion from 'int' to 'float' may change value [-Wconversion] + 517 | glVertex2f(x+j*kw, y+kh); + | ^ +audio.c: In function 'audio_isplaying': +audio.c:182:5: warning: old-style function definition [-Wold-style-definition] + 182 | int audio_isplaying() + | ^~~~~~~~~~~~~~~ +pattern.c:308:96: warning: conversion to 'unsigned int' from 'int' may change the sign of the result [-Wsign-conversion] + 308 | for(i=0; i<((pattlen[cpatt]*(beats_per_measure*beatdiv))/2); i++) pattdata[cpatt][i+((pattlen[cpatt]*(beats_per_measure*beatdiv))/2)]=pattdata[cpatt][i]; + | ^ +patch.c:462:19: warning: conversion from 'int' to 'GLfloat' {aka 'float'} may change value [-Wconversion] + 462 | glVertex2f(x+380, 24+m*16-yd); + | ~^~~~ +synthesizer.c:266:15: warning: ISO C forbids passing argument 1 of 'dialog_open' between function pointer and 'void *' [-Wpedantic] + 266 | dialog_open(&synth_draw_addmodule, &synth_addmodule_hover, synth_addmodule_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:462:32: warning: conversion from 'int' to 'GLfloat' {aka 'float'} may change value [-Wconversion] + 462 | glVertex2f(x+380, 24+m*16-yd); + | ~~~~~~~^~~ +synthesizer.c:266:38: warning: ISO C forbids passing argument 2 of 'dialog_open' between function pointer and 'void *' [-Wpedantic] + 266 | dialog_open(&synth_draw_addmodule, &synth_addmodule_hover, synth_addmodule_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); + | ~~~~~~^~~~~ +synthesizer.c:266:62: warning: ISO C forbids passing argument 3 of 'dialog_open' between function pointer and 'void *' [-Wpedantic] + 266 | dialog_open(&synth_draw_addmodule, &synth_addmodule_hover, synth_addmodule_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:463:19: warning: conversion from 'int' to 'GLfloat' {aka 'float'} may change value [-Wconversion] + 463 | glVertex2f(x+16, 24+m*16-yd); + | ~^~~ +synthesizer.c:267:23: warning: ISO C forbids passing argument 1 of 'dialog_bindkeyboard' between function pointer and 'void *' [-Wpedantic] + 267 | dialog_bindkeyboard(&synth_addmodule_keyboard); + | ^~~~~~~~~~~~~~~~~~~~~~~~~ +dialog.h:23:32: note: expected 'void *' but argument is of type 'void (*)(unsigned char, int, int)' + 23 | void dialog_bindkeyboard(void *kbfunc); + | ~~~~~~^~~~~~ +pattern.c:328:34: warning: conversion to 'unsigned int' from 'int' may change the sign of the result [-Wsign-conversion] + 328 | for(i=0; i>", seq_ui[B_PATT_NEXTPATCH]); | ^~~~ 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:421:27: warning: conversion to 'unsigned int' from 'int' may change the sign of the result [-Wsign-conversion] + 421 | ( 1+pattlen[cpatt]*(beats_per_measure*beatdiv) - ( (DS_WIDTH-(PIANOROLL_X))/PIANOROLL_CELLWIDTH ) ) ) piano_start--; + | ^ sequencer.c:1141:55: warning: passing argument 4 of 'draw_button' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] 1141 | draw_button((DS_WIDTH/2)-102, (DS_HEIGHT/2)+32, 16, "<<", seq_ui[B_PATT_PREVPATCH]); | ^~~~ @@ -5898,99 +4010,1109 @@ 37 | void draw_button(float x, float y, float size, char *label, int type); | ~~~~~~^~~~~ sequencer.c: In function 'sequencer_pattern_hover': +pattern.c:421:56: warning: conversion from 'unsigned int' to 'float' may change value [-Wconversion] + 421 | ( 1+pattlen[cpatt]*(beats_per_measure*beatdiv) - ( (DS_WIDTH-(PIANOROLL_X))/PIANOROLL_CELLWIDTH ) ) ) piano_start--; + | ^ sequencer.c:1150:39: warning: conversion from 'int' to 'float' may change value [-Wconversion] 1150 | seq_ui[B_PATT_ADDNUM]=hovertest_box(x, y, (DS_WIDTH/2)-16, (DS_HEIGHT/2)-30, 16, 16); | ^ +pattern.c:416:3: warning: switch missing default case [-Wswitch-default] + 416 | switch (key) { + | ^~~~~~ sequencer.c:1150:42: warning: conversion from 'int' to 'float' may change value [-Wconversion] 1150 | seq_ui[B_PATT_ADDNUM]=hovertest_box(x, y, (DS_WIDTH/2)-16, (DS_HEIGHT/2)-30, 16, 16); | ^ sequencer.c:1151:39: warning: conversion from 'int' to 'float' may change value [-Wconversion] 1151 | seq_ui[B_PATT_DECNUM]=hovertest_box(x, y, (DS_WIDTH/2)-102, (DS_HEIGHT/2)-30, 16, 16); | ^ +pattern.c:412:46: warning: unused parameter 'x' [-Wunused-parameter] + 412 | void pattern_keyboard(unsigned char key, int x, int y) + | ~~~~^ +pattern.c:412:53: warning: unused parameter 'y' [-Wunused-parameter] + 412 | void pattern_keyboard(unsigned char key, int x, int y) + | ~~~~^ +audio.c: In function 'audio_update': +audio.c:205:22: warning: unused parameter 'cs' [-Wunused-parameter] + 205 | int audio_update(int cs) + | ~~~~^~ +audio.c: In function 'audio_process': +audio.c:254:41: warning: conversion from 'long int' to 'int' may change value [-Wconversion] + 254 | if (audiomode==AUDIOMODE_MUTE) return bufferlen; + | ^~~~~~~~~ +pattern.c: In function 'pattern_specialkey': +audio.c:280:29: warning: conversion to 'size_t' {aka 'long unsigned int'} from 'long int' may change the sign of the result [-Wsign-conversion] + 280 | render_buffer=calloc(2*render_bufferlen, sizeof(short)); + | ~^~~~~~~~~~~~~~~~~ +audio.c:300:65: warning: conversion to 'size_t' {aka 'long unsigned int'} from 'long int' may change the sign of the result [-Wsign-conversion] + 300 | memcpy(buffer, &render_buffer[render_playpos*2], copylen*4); + | ~~~~~~~^~ +audio.c:304:74: warning: conversion to 'size_t' {aka 'long unsigned int'} from 'long int' may change the sign of the result [-Wsign-conversion] + 304 | memcpy(&buffer[copylen], &render_buffer[0], (bufferlen-copylen)*4); + | ~~~~~~~~~~~~~~~~~~~^~ +audio.c:309:65: warning: conversion to 'size_t' {aka 'long unsigned int'} from 'long int' may change the sign of the result [-Wsign-conversion] + 309 | memcpy(buffer, &render_buffer[render_playpos*2], copylen*4); + | ~~~~~~~^~ +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); + | ^ +pattern.c:455:3: warning: switch missing default case [-Wswitch-default] + 455 | switch(key) + | ^~~~~~ +audio.c:321:65: warning: conversion to 'size_t' {aka 'long unsigned int'} from 'long int' may change the sign of the result [-Wsign-conversion] + 321 | memcpy(buffer, &render_buffer[render_playpos*2], copylen*4); + | ~~~~~~~^~ +audio.c:325:58: warning: conversion to 'size_t' {aka 'long 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 'long unsigned int'} from 'long int' may change the sign of the result [-Wsign-conversion] + 334 | memcpy(buffer, &render_buffer[render_playpos*2], copylen*4); + | ~~~~~~~^~ +widgets.c:537:19: warning: conversion from 'int' to 'float' may change value [-Wconversion] + 537 | glVertex2f(x+j*kw+(0.7*kw), y); + | ^ +audio.c:346:12: warning: conversion from 'long int' to 'int' may change value [-Wconversion] + 346 | return bufferlen; + | ^~~~~~~~~ +pattern.c:453:48: warning: unused parameter 'x' [-Wunused-parameter] + 453 | void pattern_specialkey(unsigned char key, int x, int 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); + | ^ +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 + | ^ +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 + | ^~~~~~~ +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)); + | ^ +pattern.c:453:55: warning: unused parameter 'y' [-Wunused-parameter] + 453 | void pattern_specialkey(unsigned char key, int x, int y) + | ~~~~^ +audio.c:361:15: warning: conversion from 'long int' to 'int' may change value [-Wconversion] + 361 | pattpos=ticks>>6; + | ^~~~~ +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)); + | ^ +audio.c:378:17: warning: comparison of integer expressions of different signedness: 'int' and 'unsigned int' [-Wsign-compare] + 378 | if ( m<(pattlen[cpatt]*16) ) { // don't drop gate if next note is legato + | ^ +synthesizer.c:334:31: warning: conversion from 'int' to 'float' may change value [-Wconversion] + 334 | mod[csynth][moduledrag].y=y-dragoffset_y; + | ^ +pattern.c: In function 'pattern_keyboardup': +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:485:48: warning: unused parameter 'x' [-Wunused-parameter] + 485 | void pattern_keyboardup(unsigned char key, int x, int y) + | ~~~~^ +pattern.c:485:55: warning: unused parameter 'y' [-Wunused-parameter] + 485 | void pattern_keyboardup(unsigned char key, int x, int y) + | ~~~~^ sequencer.c:1151:42: warning: conversion from 'int' to 'float' may change value [-Wconversion] 1151 | seq_ui[B_PATT_DECNUM]=hovertest_box(x, y, (DS_WIDTH/2)-102, (DS_HEIGHT/2)-30, 16, 16); | ^ +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); + | ~~~~~~~~^~~ +synthesizer.c: In function 'synth_mouse_click': +pattern.c: In function 'pattern_draw': +synthesizer.c:375:24: warning: passing argument 1 of 'console_post' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] + 375 | console_post("Click again to clear synthesizer"); + | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ +In file included from pattern.h:19, + from buffermm.h:17: +console.h:23:25: note: expected 'char *' but argument is of type 'const char *' + 23 | void console_post(char *msg); + | ~~~~~~^~~ +pattern.c:517:49: warning: conversion from 'int' to 'float' may change value [-Wconversion] + 517 | if ((coct+i)<10)draw_kboct(round(PIANOROLL_Y-(12*PIANOROLL_CELLHEIGHT*i)), 40, 12, coct+i, piano_note, rkdown); + | ^ +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]); + | ^ sequencer.c:1152:39: warning: conversion from 'int' to 'float' may change value [-Wconversion] 1152 | seq_ui[B_PATT_ADDREP]=hovertest_box(x, y,(DS_WIDTH/2)+102, (DS_HEIGHT/2)-30, 16, 16); | ^ +pattern.c:517:32: warning: conversion from 'double' to 'float' may change value [-Wfloat-conversion] + 517 | if ((coct+i)<10)draw_kboct(round(PIANOROLL_Y-(12*PIANOROLL_CELLHEIGHT*i)), 40, 12, coct+i, piano_note, rkdown); + | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ +synthesizer.c:418:33: warning: passing argument 1 of 'dotfile_getvalue' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] + 418 | syndir=dotfile_getvalue("synthFileDir"); + | ^~~~~~~~~~~~~~ +dotfile.h:18:30: note: expected 'char *' but argument is of type 'const char *' + 18 | char *dotfile_getvalue(char *key); + | ~~~~~~^~~ +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); + | ^ +synthesizer.c:419:39: warning: passing argument 2 of 'filedialog_open' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] + 419 | filedialog_open(&fd[FD_SAVE], "ksyn", syndir); + | ^~~~~~ +In file included from synthesizer.h:30: +filedialog.h:58:44: note: expected 'char *' but argument is of type 'const char *' + 58 | void filedialog_open(filedialog *fd, char *ext, char *path); + | ~~~~~~^~~ +pattern.c:529:95: warning: conversion from 'int' to 'float' may change value [-Wconversion] + 529 | glVertex2f(PIANOROLL_X, PIANOROLL_Y-(j*PIANOROLL_CELLHEIGHT)); + | ^ sequencer.c:1152:42: warning: conversion from 'int' to 'float' may change value [-Wconversion] 1152 | seq_ui[B_PATT_ADDREP]=hovertest_box(x, y,(DS_WIDTH/2)+102, (DS_HEIGHT/2)-30, 16, 16); | ^ +synthesizer.c:421:21: warning: ISO C forbids passing argument 1 of 'dialog_open' between function pointer and 'void *' [-Wpedantic] + 421 | dialog_open(&synth_draw_file, &synth_file_hover, &synth_file_click); + | ^~~~~~~~~~~~~~~~ +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: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]); + | ^~~ +In file included from pattern.h:22: +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:530:46: warning: conversion to 'unsigned int' from 'int' may change the sign of the result [-Wsign-conversion] + 530 | glVertex2f(PIANOROLL_X+(pattlen[cpatt]*(beats_per_measure*beatdiv)-piano_start)*PIANOROLL_CELLWIDTH, PIANOROLL_Y-(j*PIANOROLL_CELLHEIGHT)); + | ^ +synthesizer.c:421:39: warning: ISO C forbids passing argument 2 of 'dialog_open' between function pointer and 'void *' [-Wpedantic] + 421 | dialog_open(&synth_draw_file, &synth_file_hover, &synth_file_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); + | ~~~~~~^~~~~ +synthesizer.c:421:58: warning: ISO C forbids passing argument 3 of 'dialog_open' between function pointer and 'void *' [-Wpedantic] + 421 | dialog_open(&synth_draw_file, &synth_file_hover, &synth_file_click); + | ^~~~~~~~~~~~~~~~~ +pattern.c:530:74: warning: conversion to 'unsigned int' from 'int' may change the sign of the result [-Wsign-conversion] + 530 | glVertex2f(PIANOROLL_X+(pattlen[cpatt]*(beats_per_measure*beatdiv)-piano_start)*PIANOROLL_CELLWIDTH, PIANOROLL_Y-(j*PIANOROLL_CELLHEIGHT)); + | ^ +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); + | ~~~~~~^~~~~ +synthesizer.c:422:29: warning: ISO C forbids passing argument 1 of 'dialog_bindkeyboard' between function pointer and 'void *' [-Wpedantic] + 422 | dialog_bindkeyboard(&synth_file_keyboard); + | ^~~~~~~~~~~~~~~~~~~~ sequencer.c:1153:39: warning: conversion from 'int' to 'float' may change value [-Wconversion] 1153 | seq_ui[B_PATT_DECREP]=hovertest_box(x, y,(DS_WIDTH/2)+16, (DS_HEIGHT/2)-30, 16, 16); | ^ +dialog.h:23:32: note: expected 'void *' but argument is of type 'void (*)(unsigned char, int, int)' + 23 | void dialog_bindkeyboard(void *kbfunc); + | ~~~~~~^~~~~~ +pattern.c:530:30: warning: conversion from 'unsigned int' to 'float' may change value [-Wconversion] + 530 | glVertex2f(PIANOROLL_X+(pattlen[cpatt]*(beats_per_measure*beatdiv)-piano_start)*PIANOROLL_CELLWIDTH, PIANOROLL_Y-(j*PIANOROLL_CELLHEIGHT)); + | ^ +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]); + | ^~~ +synthesizer.c:423:25: warning: ISO C forbids passing argument 1 of 'dialog_binddrag' between function pointer and 'void *' [-Wpedantic] + 423 | dialog_binddrag(&synth_file_drag); + | ^~~~~~~~~~~~~~~~ +dialog.h:31:28: note: expected 'void *' but argument is of type 'void (*)(int, int)' + 31 | void dialog_binddrag(void *dragfunc); + | ~~~~~~^~~~~~~~ +pattern.c:530:120: warning: conversion from 'int' to 'float' may change value [-Wconversion] + 530 | glVertex2f(PIANOROLL_X+(pattlen[cpatt]*(beats_per_measure*beatdiv)-piano_start)*PIANOROLL_CELLWIDTH, PIANOROLL_Y-(j*PIANOROLL_CELLHEIGHT)); + | ^ +synthesizer.c:427:33: warning: passing argument 1 of 'dotfile_getvalue' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] + 427 | syndir=dotfile_getvalue("synthFileDir"); + | ^~~~~~~~~~~~~~ +dotfile.h:18:30: note: expected 'char *' but argument is of type 'const char *' + 18 | char *dotfile_getvalue(char *key); + | ~~~~~~^~~ +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:531:46: warning: conversion to 'unsigned int' from 'int' may change the sign of the result [-Wsign-conversion] + 531 | glVertex2f(PIANOROLL_X+(pattlen[cpatt]*(beats_per_measure*beatdiv)-piano_start)*PIANOROLL_CELLWIDTH, PIANOROLL_Y-((j+1)*PIANOROLL_CELLHEIGHT)); + | ^ sequencer.c:1153:42: warning: conversion from 'int' to 'float' may change value [-Wconversion] 1153 | seq_ui[B_PATT_DECREP]=hovertest_box(x, y,(DS_WIDTH/2)+16, (DS_HEIGHT/2)-30, 16, 16); | ^ +synthesizer.c:428:39: warning: passing argument 2 of 'filedialog_open' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] + 428 | filedialog_open(&fd[FD_LOAD], "ksyn", syndir); + | ^~~~~~ +filedialog.h:58:44: note: expected 'char *' but argument is of type 'const char *' + 58 | void filedialog_open(filedialog *fd, char *ext, char *path); + | ~~~~~~^~~ +pattern.c:531:74: warning: conversion to 'unsigned int' from 'int' may change the sign of the result [-Wsign-conversion] + 531 | glVertex2f(PIANOROLL_X+(pattlen[cpatt]*(beats_per_measure*beatdiv)-piano_start)*PIANOROLL_CELLWIDTH, PIANOROLL_Y-((j+1)*PIANOROLL_CELLHEIGHT)); + | ^ +synthesizer.c:430:21: warning: ISO C forbids passing argument 1 of 'dialog_open' between function pointer and 'void *' [-Wpedantic] + 430 | dialog_open(&synth_draw_file, &synth_file_hover, &synth_file_click); + | ^~~~~~~~~~~~~~~~ +dialog.h:22:24: note: expected 'void *' but argument is of type 'void (*)(void)' + 22 | void dialog_open(void *draw, void *hover, void *click); + | ~~~~~~^~~~ +In file included from synthesizer.h:29, + from buffermm.h:18: +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(); + | ^~~ +synthesizer.h:84:6: warning: redundant redeclaration of 'synth_stackify' [-Wredundant-decls] + 84 | void synth_stackify(int syn); + | ^~~~~~~~~~~~~~ +synthesizer.c:430:39: warning: ISO C forbids passing argument 2 of 'dialog_open' between function pointer and 'void *' [-Wpedantic] + 430 | dialog_open(&synth_draw_file, &synth_file_hover, &synth_file_click); + | ^~~~~~~~~~~~~~~~~ +widgets.c:544:19: warning: conversion from 'int' to 'float' may change value [-Wconversion] + 544 | glVertex2f(x+j*kw+(0.7*kw), y); + | ^ +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]); + | ^~~ +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); + | ~~~~~~^~~~~ +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); + | ~~~~~~^~~~~ +audio.c:394:17: warning: declaration of 'i' shadows a previous local [-Wshadow] + 394 | for(int i=0;i<4;i++) { + | ^ +synthesizer.c:430:58: warning: ISO C forbids passing argument 3 of 'dialog_open' between function pointer and 'void *' [-Wpedantic] + 430 | dialog_open(&synth_draw_file, &synth_file_hover, &synth_file_click); + | ^~~~~~~~~~~~~~~~~ sequencer.c:1154:41: warning: conversion from 'int' to 'float' may change value [-Wconversion] 1154 | seq_ui[B_PATT_ADDTRANS]=hovertest_box(x, y,(DS_WIDTH/2)+102, (DS_HEIGHT/2)-4, 16, 16); | ^ +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); + | ~~~~~~^~~~~ +audio.c:243:7: note: shadowed declaration is here + 243 | int i, m, mi=0, mt, ii, pkey; + | ^ +widgets.c:545:23: warning: conversion from 'int' to 'float' may change value [-Wconversion] + 545 | glVertex2f(x+(j+1)*kw+(0.3*kw), y); + | ^ +synthesizer.c:431:29: warning: ISO C forbids passing argument 1 of 'dialog_bindkeyboard' between function pointer and 'void *' [-Wpedantic] + 431 | dialog_bindkeyboard(&synth_file_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: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); + | ~~~~~~^~~~~ +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)); + | ^ +audio.c:402:46: warning: conversion to 'long unsigned int' from 'int' may change the sign of the result [-Wsign-conversion] + 402 | buf=kmm_alloc(modDataBufferLength[mt], voice, csynth, mi, mt); + | ~~~~~~~~~~~~~~~~~~~^~~~ +synthesizer.c:432:25: warning: ISO C forbids passing argument 1 of 'dialog_binddrag' between function pointer and 'void *' [-Wpedantic] + 432 | dialog_binddrag(&synth_file_drag); + | ^~~~~~~~~~~~~~~~ +dialog.h:31:28: note: expected 'void *' but argument is of type 'void (*)(int, int)' + 31 | void dialog_binddrag(void *dragfunc); + | ~~~~~~^~~~~~~~ +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)); + | ^ +audio.c:408:47: warning: conversion from 'int' to 'unsigned char' may change value [-Wconversion] + 408 | output[voice][mi]=mod_functable[mt](voice, &modulator[voice][mi], (void*)&localdata[voice][mi], (float*)&signals); + | ^~~~~ sequencer.c:1154:44: warning: conversion from 'int' to 'float' may change value [-Wconversion] 1154 | seq_ui[B_PATT_ADDTRANS]=hovertest_box(x, y,(DS_WIDTH/2)+102, (DS_HEIGHT/2)-4, 16, 16); | ^ +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); + | ~~~~~~^~~~~ +synthesizer.c:456:23: warning: conversion from 'int' to 'float' may change value [-Wconversion] + 456 | dragoffset_x=x-mod[csynth][m].x; + | ^ +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); + | ^ +audio.c:415:44: warning: conversion from 'double' to 'float' may change value [-Wfloat-conversion] + 415 | if (fabs(p) > audio_peak) audio_peak=fabs(p); + | ^~~~ +synthesizer.c:456:22: warning: conversion from 'float' to 'int' may change value [-Wfloat-conversion] + 456 | dragoffset_x=x-mod[csynth][m].x; + | ^ +audio.c:416:58: warning: conversion from 'double' to 'float' may change value [-Wfloat-conversion] + 416 | if (fabs(p) > audio_latest_peak) audio_latest_peak=fabs(p); + | ^~~~ +synthesizer.c:457:23: warning: conversion from 'int' to 'float' may change value [-Wconversion] + 457 | dragoffset_y=y-mod[csynth][m].y; + | ^ +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]); + | ^~~~ sequencer.c:1155:41: warning: conversion from 'int' to 'float' may change value [-Wconversion] 1155 | seq_ui[B_PATT_DECTRANS]=hovertest_box(x, y,(DS_WIDTH/2)-16, (DS_HEIGHT/2)-4, 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); + | ~~~~~~^~~~~ +audio.c:423:15: warning: conversion from 'long int' to 'int' may change value [-Wconversion] + 423 | oldtick=ticks; + | ^~~~~ +synthesizer.c:457:22: warning: conversion from 'float' to 'int' may change value [-Wfloat-conversion] + 457 | dragoffset_y=y-mod[csynth][m].y; + | ^ +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); + | ~~~~~~^~~~~ +audio.c:431:10: warning: conversion from 'long int' to 'int' may change value [-Wconversion] + 431 | return bufferlen; + | ^~~~~~~~~ +audio.c: At top level: sequencer.c:1155:44: warning: conversion from 'int' to 'float' may change value [-Wconversion] 1155 | seq_ui[B_PATT_DECTRANS]=hovertest_box(x, y,(DS_WIDTH/2)-16, (DS_HEIGHT/2)-4, 16, 16); | ^ +audio.c:441:6: warning: no previous prototype for 'audio_render' [-Wmissing-prototypes] + 441 | long audio_render(void) + | ^~~~~~~~~~~~ +synthesizer.c:483:45: warning: conversion to 'unsigned int' from 'int' may change the sign of the result [-Wsign-conversion] + 483 | mod[csynth][signaldrag].scale=modInputScale[mod[csynth][m].type][mod[csynth][m].inpactive]; + | ^~~~~~~~~~~~~ +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); + | ~~~~~~^~~~~ +audio.c: In function 'audio_render': +synthesizer.c:502:21: warning: ISO C forbids passing argument 1 of 'dialog_open' between function pointer and 'void *' [-Wpedantic] + 502 | dialog_open(&synthlabel_draw, &synthlabel_hover, &synthlabel_click); + | ^~~~~~~~~~~~~~~~ sequencer.c:1156:36: warning: conversion from 'int' to 'float' may change value [-Wconversion] 1156 | seq_ui[B_PATT_ADD]=hovertest_box(x, y,(DS_WIDTH/2)+40, (DS_HEIGHT/2)+60, 16, 100); | ^ +dialog.h:22:24: note: expected 'void *' but argument is of type 'void (*)(void)' + 22 | void dialog_open(void *draw, void *hover, void *click); + | ~~~~~~^~~~ +audio.c:485:43: warning: conversion from 'long int' to 'int' may change value [-Wconversion] + 485 | if (sequencer_ispattern(voice, ticks>>10)) { // is there a pattern here? + | ~~~~~^~~~ +widgets.c: In function 'hovertest_hslider': +patch.c: In function 'patch_draw_modulator': +synthesizer.c:502:39: warning: ISO C forbids passing argument 2 of 'dialog_open' between function pointer and 'void *' [-Wpedantic] + 502 | dialog_open(&synthlabel_draw, &synthlabel_hover, &synthlabel_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); + | ~~~~~~^~~~~ +audio.c:486:54: warning: conversion from 'long int' to 'int' may change value [-Wconversion] + 486 | pattstart=sequencer_patternstart(voice, ticks>>10); + | ~~~~~^~~~ +widgets.c:709:21: warning: conversion from 'float' to 'int' may change value [-Wfloat-conversion] + 709 | if (hit) return (x-slx); + | ~~^~~~~ +synthesizer.c:502:58: warning: ISO C forbids passing argument 3 of 'dialog_open' between function pointer and 'void *' [-Wpedantic] + 502 | dialog_open(&synthlabel_draw, &synthlabel_hover, &synthlabel_click); + | ^~~~~~~~~~~~~~~~~ +pattern.c:531:30: warning: conversion from 'unsigned int' to 'float' may change value [-Wconversion] + 531 | glVertex2f(PIANOROLL_X+(pattlen[cpatt]*(beats_per_measure*beatdiv)-piano_start)*PIANOROLL_CELLWIDTH, PIANOROLL_Y-((j+1)*PIANOROLL_CELLHEIGHT)); + | ^ +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); + | ^~~~~~~~~~~ sequencer.c:1156:39: warning: conversion from 'int' to 'float' may change value [-Wconversion] 1156 | seq_ui[B_PATT_ADD]=hovertest_box(x, y,(DS_WIDTH/2)+40, (DS_HEIGHT/2)+60, 16, 100); | ^ +pattern.c:531:120: warning: conversion from 'int' to 'float' may change value [-Wconversion] + 531 | glVertex2f(PIANOROLL_X+(pattlen[cpatt]*(beats_per_measure*beatdiv)-piano_start)*PIANOROLL_CELLWIDTH, PIANOROLL_Y-((j+1)*PIANOROLL_CELLHEIGHT)); + | ^ +In file included from modules.c:22: +sequencer.h:33:1: warning: function declaration isn't a prototype [-Wstrict-prototypes] + 33 | void sequencer_init(); + | ^~~~ +pattern.c:532:95: warning: conversion from 'int' to 'float' may change value [-Wconversion] + 532 | glVertex2f(PIANOROLL_X, PIANOROLL_Y-((j+1)*PIANOROLL_CELLHEIGHT)); + | ^ +pattern.c:540:44: warning: conversion from 'int' to 'float' may change value [-Wconversion] + 540 | glVertex2f(PIANOROLL_X, PIANOROLL_Y-(j*PIANOROLL_CELLHEIGHT)); + | ^ +sequencer.h:80:1: warning: function declaration isn't a prototype [-Wstrict-prototypes] + 80 | void sequencer_bpm_close_dialog(); + | ^~~~ +pattern.c:541:43: warning: conversion to 'unsigned int' from 'int' may change the sign of the result [-Wsign-conversion] + 541 | glVertex2f(PIANOROLL_X+(pattlen[cpatt]*(beats_per_measure*beatdiv)-piano_start)*PIANOROLL_CELLWIDTH, PIANOROLL_Y-(j*PIANOROLL_CELLHEIGHT)); + | ^ +modules.c:33:35: warning: signed conversion from 'unsigned int' to 'int' changes value from '4023233417' to '-271733879' [-Wsign-conversion] + 33 | int noise_x1=0x67452301, noise_x2=0xefcdab89; + | ^~~~~~~~~~ +pattern.c:541:71: warning: conversion to 'unsigned int' from 'int' may change the sign of the result [-Wsign-conversion] + 541 | glVertex2f(PIANOROLL_X+(pattlen[cpatt]*(beats_per_measure*beatdiv)-piano_start)*PIANOROLL_CELLWIDTH, PIANOROLL_Y-(j*PIANOROLL_CELLHEIGHT)); + | ^ +pattern.c:541:27: warning: conversion from 'unsigned int' to 'float' may change value [-Wconversion] + 541 | glVertex2f(PIANOROLL_X+(pattlen[cpatt]*(beats_per_measure*beatdiv)-piano_start)*PIANOROLL_CELLWIDTH, PIANOROLL_Y-(j*PIANOROLL_CELLHEIGHT)); + | ^ +pattern.c:541:117: warning: conversion from 'int' to 'float' may change value [-Wconversion] + 541 | glVertex2f(PIANOROLL_X+(pattlen[cpatt]*(beats_per_measure*beatdiv)-piano_start)*PIANOROLL_CELLWIDTH, PIANOROLL_Y-(j*PIANOROLL_CELLHEIGHT)); + | ^ +modules.c:311:40: warning: initialization discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] + 311 | char* modVcoWaveforms[VCO_WAVEFORMS]={"Pulse", "Saw", "Triangle", "Sine"}; //, "Noise"}; + | ^~~~~~~ +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); + | ~~~~~~^~~~~ +pattern.c:46:27: warning: conversion from 'int' to 'float' may change value [-Wconversion] + 46 | #define PIANOROLL_OCTAVES 6 + | ^ +pattern.c:550:16: note: in expansion of macro 'PIANOROLL_OCTAVES' + 550 | lineheight=PIANOROLL_OCTAVES*12 - (((coct+PIANOROLL_OCTAVES)*12)-MAX_NOTE); + | ^~~~~~~~~~~~~~~~~ +pattern.c:553:42: warning: conversion to 'unsigned int' from 'int' may change the sign of the result [-Wsign-conversion] + 553 | for(i=0,j=piano_start;j<(pattlen[cpatt]*(beats_per_measure*beatdiv)+1);i++,j++) { + | ^ +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); + | ~~~~~~~~~~~~~~~^~~~~~ +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); + | ~~~~~~^~~~~ +pattern.c:553:26: warning: comparison of integer expressions of different signedness: 'int' and 'unsigned int' [-Wsign-compare] + 553 | for(i=0,j=piano_start;j<(pattlen[cpatt]*(beats_per_measure*beatdiv)+1);i++,j++) { + | ^ +synthesizer.c:503:29: warning: ISO C forbids passing argument 1 of 'dialog_bindkeyboard' between function pointer and 'void *' [-Wpedantic] + 503 | dialog_bindkeyboard(&synthlabel_keyboard); + | ^~~~~~~~~~~~~~~~~~~~ sequencer.c:1157:42: warning: conversion from 'int' to 'float' may change value [-Wconversion] 1157 | seq_ui[B_PATT_NEXTPATCH]=hovertest_box(x, y, (DS_WIDTH/2)+102, (DS_HEIGHT/2)+32, 16, 16); | ^ +filedialog.c: In function 'filedialog_keyboard': +dialog.h:23:32: note: expected 'void *' but argument is of type 'void (*)(unsigned char, int, int)' + 23 | void dialog_bindkeyboard(void *kbfunc); + | ~~~~~~^~~~~~ +filedialog.c:250:7: warning: '__builtin___strncat_chk' specified bound 512 equals destination size [-Wstringop-truncation] + 250 | strncat(fd->fullpath, fd->fmask+1, 512); + | ^ +widgets.c: In function 'textbox_edit': +pattern.c:560:38: warning: conversion to 'unsigned int' from 'int' may change the sign of the result [-Wsign-conversion] + 560 | if ((j%b)==0 && j<(pattlen[cpatt]*b)) { + | ^ +synthesizer.c: In function 'synth_keyboard': +widgets.c:738:20: warning: comparison of integer expressions of different signedness: 'size_t' {aka 'long unsigned int'} and 'int' [-Wsign-compare] + 738 | strlen(text)>6)>=piano_start && (ticks>>6)<(pattlen[cpatt]*(beats_per_measure*beatdiv)) ) // TODO: test if pos > pianostart+rollwidth + | ^ +pattern.c:581:9: warning: conversion from 'long int' to 'int' may change value [-Wconversion] + 581 | i=(ticks>>6)-piano_start; + | ^ +audio.c:488:17: warning: conversion from 'long int' to 'int' may change value [-Wconversion] + 488 | pattpos=(ticks/64) - (pattstart*16); + | ^ +modules.c:311:49: warning: initialization discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] + 311 | char* modVcoWaveforms[VCO_WAVEFORMS]={"Pulse", "Saw", "Triangle", "Sine"}; //, "Noise"}; + | ^~~~~ +patch.c:575:11: warning: assignment to 'unsigned int *' from incompatible pointer type 'long unsigned int *' [-Wincompatible-pointer-types] + 575 | fptr=(unsigned long*)(&rf); + | ^ +audio.c:489:23: warning: comparison of integer expressions of different signedness: 'int' and 'unsigned int' [-Wsign-compare] + 489 | while (pattpos>=(pattlen[pattern]*16)) pattpos-=(pattlen[pattern]*16); + | ^~ +modules.c:311:56: warning: initialization discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] + 311 | char* modVcoWaveforms[VCO_WAVEFORMS]={"Pulse", "Saw", "Triangle", "Sine"}; //, "Noise"}; + | ^~~~~~~~~~ +modules.c:311:68: warning: initialization discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] + 311 | char* modVcoWaveforms[VCO_WAVEFORMS]={"Pulse", "Saw", "Triangle", "Sine"}; //, "Noise"}; + | ^~~~~~ +audio.c:489:55: warning: conversion to 'unsigned int' from 'int' may change the sign of the result [-Wsign-conversion] + 489 | while (pattpos>=(pattlen[pattern]*16)) pattpos-=(pattlen[pattern]*16); + | ^~ +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); + | ~~~~~~~~~~~~~~~^~~~~~ +modules.c:312:40: warning: initialization discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] + 312 | char* modLfoWaveforms[LFO_WAVEFORMS]={"Square", "Saw", "Triangle", "Sine"}; + | ^~~~~~~~ +audio.c:489:57: warning: conversion to 'int' from 'unsigned int' may change the sign of the result [-Wsign-conversion] + 489 | while (pattpos>=(pattlen[pattern]*16)) pattpos-=(pattlen[pattern]*16); + | ^ +modules.c:312:50: warning: initialization discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] + 312 | char* modLfoWaveforms[LFO_WAVEFORMS]={"Square", "Saw", "Triangle", "Sine"}; + | ^~~~~ +patch.c: In function 'patch_modulator_hover': +modules.c:312:57: warning: initialization discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] + 312 | char* modLfoWaveforms[LFO_WAVEFORMS]={"Square", "Saw", "Triangle", "Sine"}; + | ^~~~~~~~~~ +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); + | ^ +modules.c:312:69: warning: initialization discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] + 312 | char* modLfoWaveforms[LFO_WAVEFORMS]={"Square", "Saw", "Triangle", "Sine"}; + | ^~~~~~ +audio.c:514:19: warning: comparison of integer expressions of different signedness: 'int' and 'unsigned int' [-Wsign-compare] + 514 | if ( m<(pattlen[pattern]*16) ) { // don't drop gate if next note is legato + | ^ +modules.c:313:32: warning: initialization discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] + 313 | char* modVcfModes[VCF_MODES]={"Off", "Lowpass", "Highpass", "Bandpass"}; + | ^~~~~ +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); + | ^ +modules.c:313:39: warning: initialization discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] + 313 | char* modVcfModes[VCF_MODES]={"Off", "Lowpass", "Highpass", "Bandpass"}; + | ^~~~~~~~~ +audio.c:526:17: warning: declaration of 'i' shadows a previous local [-Wshadow] + 526 | for(int i=0;i<4;i++) { + | ^ +modules.c:313:50: warning: initialization discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] + 313 | char* modVcfModes[VCF_MODES]={"Off", "Lowpass", "Highpass", "Bandpass"}; + | ^~~~~~~~~~ +audio.c:446:7: note: shadowed declaration is here + 446 | int i, voice; + | ^ +filedialog.h:58:44: note: expected 'char *' but argument is of type 'const char *' + 58 | void filedialog_open(filedialog *fd, char *ext, char *path); + | ~~~~~~^~~ +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); + | ^ +modules.c:313:62: warning: initialization discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] + 313 | char* modVcfModes[VCF_MODES]={"Off", "Lowpass", "Highpass", "Bandpass"}; + | ^~~~~~~~~~ +modules.c:314:36: warning: initialization discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] + 314 | char* modDelayModes[DELAY_MODES]={"Comb filter", "Allpass filter"}; + | ^~~~~~~~~~~~~ +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); + | ^ +audio.c:536:46: warning: conversion to 'long unsigned int' from 'int' may change the sign of the result [-Wsign-conversion] + 536 | buf=kmm_alloc(modDataBufferLength[mt], voice, synth, mi, mt); + | ~~~~~~~~~~~~~~~~~~~^~~~ +modules.c:314:51: warning: initialization discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] + 314 | char* modDelayModes[DELAY_MODES]={"Comb filter", "Allpass filter"}; + | ^~~~~~~~~~~~~~~~ +synthesizer.c:530:17: warning: ISO C forbids passing argument 1 of 'dialog_open' between function pointer and 'void *' [-Wpedantic] + 530 | dialog_open(&synth_draw_file, &synth_file_hover, &synth_file_click); + | ^~~~~~~~~~~~~~~~ +dialog.h:22:24: note: expected 'void *' but argument is of type 'void (*)(void)' + 22 | void dialog_open(void *draw, void *hover, void *click); + | ~~~~~~^~~~ +modules.c:315:34: warning: initialization discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] + 315 | char* modSlewModes[SLEW_MODES]={"Linear", "Logarithmic"}; + | ^~~~~~~~ +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); + | ^ +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); + | ^~~~~ +modules.c:315:44: warning: initialization discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] + 315 | char* modSlewModes[SLEW_MODES]={"Linear", "Logarithmic"}; + | ^~~~~~~~~~~~~ +synthesizer.c:530:35: warning: ISO C forbids passing argument 2 of 'dialog_open' between function pointer and 'void *' [-Wpedantic] + 530 | dialog_open(&synth_draw_file, &synth_file_hover, &synth_file_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: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); + | ^ +synthesizer.c:530:54: warning: ISO C forbids passing argument 3 of 'dialog_open' between function pointer and 'void *' [-Wpedantic] + 530 | dialog_open(&synth_draw_file, &synth_file_hover, &synth_file_click); + | ^~~~~~~~~~~~~~~~~ +patch.c: In function 'patch_modulator_click': +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); + | ^~~~ +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); + | ~~~~~~^~~~~ +synthesizer.c:531:25: warning: ISO C forbids passing argument 1 of 'dialog_bindkeyboard' between function pointer and 'void *' [-Wpedantic] + 531 | dialog_bindkeyboard(&synth_file_keyboard); + | ^~~~~~~~~~~~~~~~~~~~ +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 )) { + | ^ +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); + | ^~~~ +dialog.h:23:32: note: expected 'void *' but argument is of type 'void (*)(unsigned char, int, int)' + 23 | void dialog_bindkeyboard(void *kbfunc); + | ~~~~~~^~~~~~ +modules.c:343:3: warning: conversion from 'float' to 'int' changes value from '3.05e+1f' to '30' [-Wfloat-conversion] + 343 | (MODULE_HALF)+0.5, -(MODULE_HALF)+0.5, MODULE_HALF, MODULE_HALF}; + | ^ +synthesizer.c:532:21: warning: ISO C forbids passing argument 1 of 'dialog_binddrag' between function pointer and 'void *' [-Wpedantic] + 532 | dialog_binddrag(&synth_file_drag); + | ^~~~~~~~~~~~~~~~ +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)); + | ^ +dialog.h:31:28: note: expected 'void *' but argument is of type 'void (*)(int, int)' + 31 | void dialog_binddrag(void *dragfunc); + | ~~~~~~^~~~~~~~ +pattern.c:585:29: warning: conversion from 'int' to 'float' may change value [-Wconversion] + 585 | glVertex2f(PIANOROLL_X+i*PIANOROLL_CELLWIDTH, round(PIANOROLL_Y-((PIANOROLL_OCTAVES*12)*PIANOROLL_CELLHEIGHT))); + | ^ +synthesizer.c:537:29: warning: passing argument 1 of 'dotfile_getvalue' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] + 537 | syndir=dotfile_getvalue("synthFileDir"); + | ^~~~~~~~~~~~~~ +dotfile.h:18:30: note: expected 'char *' but argument is of type 'const char *' + 18 | char *dotfile_getvalue(char *key); + | ~~~~~~^~~ +pattern.c:591:42: warning: conversion to 'unsigned int' from 'int' may change the sign of the result [-Wsign-conversion] + 591 | for(i=0,j=piano_start;j<(pattlen[cpatt]*(beats_per_measure*beatdiv));i++,j++) { + | ^ +synthesizer.c:538:35: warning: passing argument 2 of 'filedialog_open' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] + 538 | filedialog_open(&fd[FD_LOAD], "ksyn", syndir); + | ^~~~~~ +pattern.c:591:26: warning: comparison of integer expressions of different signedness: 'int' and 'unsigned int' [-Wsign-compare] + 591 | for(i=0,j=piano_start;j<(pattlen[cpatt]*(beats_per_measure*beatdiv));i++,j++) { + | ^ +filedialog.h:58:44: note: expected 'char *' but argument is of type 'const char *' + 58 | void filedialog_open(filedialog *fd, char *ext, char *path); + | ~~~~~~^~~ +synthesizer.c:540:17: warning: ISO C forbids passing argument 1 of 'dialog_open' between function pointer and 'void *' [-Wpedantic] + 540 | dialog_open(&synth_draw_file, &synth_file_hover, &synth_file_click); + | ^~~~~~~~~~~~~~~~ +dialog.h:22:24: note: expected 'void *' but argument is of type 'void (*)(void)' + 22 | void dialog_open(void *draw, void *hover, void *click); + | ~~~~~~^~~~ +pattern.c:37:29: warning: conversion from 'int' to 'float' may change value [-Wconversion] + 37 | #define PIANOROLL_X KB_WIDTH+5.5 + | ^ +pattern.c:599:24: note: in expansion of macro 'PIANOROLL_X' + 599 | glVertex2f(l+PIANOROLL_X+i*PIANOROLL_CELLWIDTH, PIANOROLL_Y-1-(n-coct*12)*PIANOROLL_CELLHEIGHT); + | ^~~~~~~~~~~ +synthesizer.c:540:35: warning: ISO C forbids passing argument 2 of 'dialog_open' between function pointer and 'void *' [-Wpedantic] + 540 | dialog_open(&synth_draw_file, &synth_file_hover, &synth_file_click); + | ^~~~~~~~~~~~~~~~~ +pattern.c:599:35: warning: conversion from 'int' to 'float' may change value [-Wconversion] + 599 | glVertex2f(l+PIANOROLL_X+i*PIANOROLL_CELLWIDTH, PIANOROLL_Y-1-(n-coct*12)*PIANOROLL_CELLHEIGHT); + | ^ +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); + | ~~~~~~^~~~~ +synthesizer.c:540:54: warning: ISO C forbids passing argument 3 of 'dialog_open' between function pointer and 'void *' [-Wpedantic] + 540 | dialog_open(&synth_draw_file, &synth_file_hover, &synth_file_click); + | ^~~~~~~~~~~~~~~~~ +pattern.c:599:72: warning: conversion from 'int' to 'float' may change value [-Wconversion] + 599 | glVertex2f(l+PIANOROLL_X+i*PIANOROLL_CELLWIDTH, PIANOROLL_Y-1-(n-coct*12)*PIANOROLL_CELLHEIGHT); + | ^ +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); + | ~~~~~~^~~~~ +pattern.c:600:33: warning: conversion from 'int' to 'float' may change value [-Wconversion] + 600 | glVertex2f(PIANOROLL_X+(i+1)*PIANOROLL_CELLWIDTH, PIANOROLL_Y-1-(n-coct*12)*PIANOROLL_CELLHEIGHT); + | ^ +synthesizer.c:541:25: warning: ISO C forbids passing argument 1 of 'dialog_bindkeyboard' between function pointer and 'void *' [-Wpedantic] + 541 | dialog_bindkeyboard(&synth_file_keyboard); + | ^~~~~~~~~~~~~~~~~~~~ +dialog.h:23:32: note: expected 'void *' but argument is of type 'void (*)(unsigned char, int, int)' + 23 | void dialog_bindkeyboard(void *kbfunc); + | ~~~~~~^~~~~~ +pattern.c:600:74: warning: conversion from 'int' to 'float' may change value [-Wconversion] + 600 | glVertex2f(PIANOROLL_X+(i+1)*PIANOROLL_CELLWIDTH, PIANOROLL_Y-1-(n-coct*12)*PIANOROLL_CELLHEIGHT); + | ^ +synthesizer.c:542:21: warning: ISO C forbids passing argument 1 of 'dialog_binddrag' between function pointer and 'void *' [-Wpedantic] + 542 | dialog_binddrag(&synth_file_drag); + | ^~~~~~~~~~~~~~~~ +dialog.h:31:28: note: expected 'void *' but argument is of type 'void (*)(int, int)' + 31 | void dialog_binddrag(void *dragfunc); + | ~~~~~~^~~~~~~~ +pattern.c:601:33: 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); + | ^ +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 )) { + | ^ sequencer.c:1166:44: warning: conversion from 'int' to 'float' may change value [-Wconversion] 1166 | if (state==GLUT_DOWN && !hovertest_box(x,y,(DS_WIDTH/2),(DS_HEIGHT/2),150,240 )) { | ^ +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 )) { + | ^ sequencer.c:1170:70: warning: conversion from 'int' to 'float' may change value [-Wconversion] 1170 | if (button==GLUT_RIGHT_BUTTON && state==GLUT_DOWN && hovertest_box(x,y,(DS_WIDTH/2),(DS_HEIGHT/2),150,240 )) { | ^ +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); + | ~~~~~~~~~~~~~~~^~~~~~ sequencer.c:1170:72: warning: conversion from 'int' to 'float' may change value [-Wconversion] 1170 | if (button==GLUT_RIGHT_BUTTON && state==GLUT_DOWN && hovertest_box(x,y,(DS_WIDTH/2),(DS_HEIGHT/2),150,240 )) { | ^ +patch.c:618:5: warning: switch missing default case [-Wswitch-default] + 618 | switch(modModulatorTypes[mod[csynth][mi].type]) { + | ^~~~~~ sequencer.c: In function 'sequencer_pattern_keyboard': sequencer.c:1201:56: warning: unused parameter 'x' [-Wunused-parameter] 1201 | void sequencer_pattern_keyboard(unsigned char key, int x, int y) | ~~~~^ +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; + | ^~ sequencer.c:1201:63: warning: unused parameter 'y' [-Wunused-parameter] 1201 | void sequencer_pattern_keyboard(unsigned char key, int x, int y) | ~~~~^ sequencer.c: In function 'sequencer_draw_channel': +synthesizer.c:514:44: warning: unused parameter 'x' [-Wunused-parameter] + 514 | void synth_keyboard(unsigned char key, int x, int y) + | ~~~~^ +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); + | ^ +modules.c:343:22: warning: conversion from 'float' to 'int' changes value from '-2.95e+1f' to '-29' [-Wfloat-conversion] + 343 | (MODULE_HALF)+0.5, -(MODULE_HALF)+0.5, MODULE_HALF, MODULE_HALF}; + | ^ +audio.c:562:13: warning: conversion from 'long int' to 'int' may change value [-Wconversion] + 562 | oldtick=ticks; + | ^~~~~ +synthesizer.c:514:51: warning: unused parameter 'y' [-Wunused-parameter] + 514 | void synth_keyboard(unsigned char key, int x, int y) + | ~~~~^ +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); + | ^~~~~~~~~~~ +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); + | ^ +audio.c: In function 'audio_resetsynth': +audio.c:652:65: warning: conversion to 'long unsigned int' from 'int' may change the sign of the result [-Wsign-conversion] + 652 | if (lbuf) memset(lbuf, 0, modDataBufferLength[MOD_DELAY]*sizeof(float)); + | ^ +audio.c:662:46: warning: dereferencing type-punned pointer will break strict-aliasing rules [-Wstrict-aliasing] + 662 | for(i=0;i<8;i++) mod_ddata(voice, mi)[0]=0; + | ^ +synthesizer.c: In function 'synth_specialkey': +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; + | ^~~~~~ +modules.c:353:6: warning: function declaration isn't a prototype [-Wstrict-prototypes] + 353 | void calc_supersaw_tables() { + | ^~~~~~~~~~~~~~~~~~~~ +modules.c: In function 'calc_supersaw_tables': +modules.c:353:6: warning: old-style function definition [-Wold-style-definition] +synthesizer.c:555:3: warning: switch missing default case [-Wswitch-default] + 555 | switch(key) + | ^~~~~~ +modules.c:359:26: warning: conversion from 'double' to 'float' may change value [-Wfloat-conversion] + 359 | supersaw_mix[mod][0]=-0.55366*x + 0.99785; + | ^ +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; + | ^~ +synthesizer.c:553:46: warning: unused parameter 'x' [-Wunused-parameter] + 553 | void synth_specialkey(unsigned char key, int x, int y) + | ~~~~^ +modules.c:362:33: warning: conversion from 'double' to 'float' may change value [-Wfloat-conversion] + 362 | supersaw_detune[mod][osc]=1.0+osc_offset[osc]*y; + | ^~~ +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; + | ^~~~~~ +synthesizer.c:553:53: warning: unused parameter 'y' [-Wunused-parameter] + 553 | void synth_specialkey(unsigned char key, int x, int y) + | ~~~~^ +modules.c:363:39: warning: conversion from 'double' to 'float' may change value [-Wfloat-conversion] + 363 | if (osc) supersaw_mix[mod][osc]=-0.73764*x*x + 1.2841*x + 0.044372; + | ^ +patch.c: In function 'patch_modulator_special': +modules.c: At top level: +modules.h:29:39: warning: no previous prototype for 'modfunc_kbd' [-Wmissing-prototypes] + 29 | #define MODULE_FUNC(X) float modfunc_ ##X (unsigned char v, float *mod, void *data, float *ms) + | ^~~~~~~~ +modules.c:378:1: note: in expansion of macro 'MODULE_FUNC' + 378 | MODULE_FUNC(kbd) { return *mod=pitch[v]/OUTPUTFREQ; } + | ^~~~~~~~~~~ +modules.c: In function 'modfunc_kbd': +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 ]); + | ~~~~~~~~~~~~~~~^~~~~~ +modules.h:29:88: warning: unused parameter 'data' [-Wunused-parameter] + 29 | #define MODULE_FUNC(X) float modfunc_ ##X (unsigned char v, float *mod, void *data, float *ms) + | ~~~~~~^~~~ +modules.c:378:1: note: in expansion of macro 'MODULE_FUNC' + 378 | MODULE_FUNC(kbd) { return *mod=pitch[v]/OUTPUTFREQ; } + | ^~~~~~~~~~~ +modules.h:29:101: warning: unused parameter 'ms' [-Wunused-parameter] + 29 | #define MODULE_FUNC(X) float modfunc_ ##X (unsigned char v, float *mod, void *data, float *ms) + | ~~~~~~~^~ +modules.c:378:1: note: in expansion of macro 'MODULE_FUNC' + 378 | MODULE_FUNC(kbd) { return *mod=pitch[v]/OUTPUTFREQ; } + | ^~~~~~~~~~~ +modules.c: At top level: +modules.h:29:39: warning: no previous prototype for 'modfunc_modulator' [-Wmissing-prototypes] + 29 | #define MODULE_FUNC(X) float modfunc_ ##X (unsigned char v, float *mod, void *data, float *ms) + | ^~~~~~~~ +modules.c:380:1: note: in expansion of macro 'MODULE_FUNC' + 380 | MODULE_FUNC(modulator) { + | ^~~~~~~~~~~ +modules.c: In function 'modfunc_modulator': +modules.h:29:88: warning: unused parameter 'data' [-Wunused-parameter] + 29 | #define MODULE_FUNC(X) float modfunc_ ##X (unsigned char v, float *mod, void *data, float *ms) + | ~~~~~~^~~~ +modules.c:380:1: note: in expansion of macro 'MODULE_FUNC' + 380 | MODULE_FUNC(modulator) { + | ^~~~~~~~~~~ +modules.h:29:101: warning: unused parameter 'ms' [-Wunused-parameter] + 29 | #define MODULE_FUNC(X) float modfunc_ ##X (unsigned char v, float *mod, void *data, float *ms) + | ~~~~~~~^~ +modules.c:380:1: note: in expansion of macro 'MODULE_FUNC' + 380 | MODULE_FUNC(modulator) { + | ^~~~~~~~~~~ +modules.c: At top level: +synthesizer.c: In function 'synth_draw': +modules.h:29:39: warning: no previous prototype for 'modfunc_output' [-Wmissing-prototypes] + 29 | #define MODULE_FUNC(X) float modfunc_ ##X (unsigned char v, float *mod, void *data, float *ms) + | ^~~~~~~~ +modules.c:390:1: note: in expansion of macro 'MODULE_FUNC' + 390 | MODULE_FUNC(output) { return ms[0]*(*mod); } + | ^~~~~~~~~~~ +modules.c: In function 'modfunc_output': +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); + | ~~~~~~~~~~~~~~~^~~~~~ +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) + | ~~~~~~~~~~~~~~^ +modules.c:390:1: note: in expansion of macro 'MODULE_FUNC' + 390 | MODULE_FUNC(output) { return ms[0]*(*mod); } + | ^~~~~~~~~~~ +synthesizer.c:624:37: warning: passing argument 4 of 'draw_button' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] + 624 | draw_button(14, DS_HEIGHT-14, 16, "<<", synth_ui[B_PREV]); + | ^~~~ +modules.h:29:88: warning: unused parameter 'data' [-Wunused-parameter] + 29 | #define MODULE_FUNC(X) float modfunc_ ##X (unsigned char v, float *mod, void *data, float *ms) + | ~~~~~~^~~~ +modules.c:390:1: note: in expansion of macro 'MODULE_FUNC' + 390 | MODULE_FUNC(output) { return ms[0]*(*mod); } + | ^~~~~~~~~~~ +modules.c: At top level: +In file included from pattern.h:22: +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); + | ~~~~~~^~~~~ +modules.h:29:39: warning: no previous prototype for 'modfunc_accent' [-Wmissing-prototypes] + 29 | #define MODULE_FUNC(X) float modfunc_ ##X (unsigned char v, float *mod, void *data, float *ms) + | ^~~~~~~~ +modules.c:393:1: note: in expansion of macro 'MODULE_FUNC' + 393 | MODULE_FUNC(accent) { + | ^~~~~~~~~~~ +patch.c:662:43: warning: unused parameter 'x' [-Wunused-parameter] + 662 | void patch_modulator_special(int key, int x, int y) + | ~~~~^ +modules.c: In function 'modfunc_accent': +modules.h:29:88: warning: unused parameter 'data' [-Wunused-parameter] + 29 | #define MODULE_FUNC(X) float modfunc_ ##X (unsigned char v, float *mod, void *data, float *ms) + | ~~~~~~^~~~ +modules.c:393:1: note: in expansion of macro 'MODULE_FUNC' + 393 | MODULE_FUNC(accent) { + | ^~~~~~~~~~~ +synthesizer.c:627:37: warning: passing argument 4 of 'draw_button' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] + 627 | draw_button(64, DS_HEIGHT-14, 16, ">>", synth_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); + | ~~~~~~^~~~~ +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); + | ^ +synthesizer.c:629:38: warning: passing argument 4 of 'draw_button' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] + 629 | draw_button(310, DS_HEIGHT-14, 16, "m", synth_ui[B_ADD]); + | ^~~ +pattern.c:37:29: warning: conversion from 'int' to 'float' may change value [-Wconversion] + 37 | #define PIANOROLL_X KB_WIDTH+5.5 + | ^ +pattern.c:607:15: note: in expansion of macro 'PIANOROLL_X' + 607 | l+PIANOROLL_X+i*PIANOROLL_CELLWIDTH+1, + | ^~~~~~~~~~~ +audio.c:637:5: warning: switch missing default case [-Wswitch-default] + 637 | switch(mt) { + | ^~~~~~ +audio.c: At top level: +pattern.c:607:26: warning: conversion from 'int' to 'float' may change value [-Wconversion] + 607 | l+PIANOROLL_X+i*PIANOROLL_CELLWIDTH+1, + | ^ +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:608:26: warning: conversion from 'int' to 'float' may change value [-Wconversion] + 608 | PIANOROLL_Y-2-(n-coct*12+1)*PIANOROLL_CELLHEIGHT, + | ^ +audio.c:698:5: warning: function declaration isn't a prototype [-Wstrict-prototypes] + 698 | int audio_exportwav() //char *filename) + | ^~~~~~~~~~~~~~~ +audio.c: In function 'audio_exportwav': +audio.c:698:5: warning: old-style function definition [-Wold-style-definition] +audio.c:722:19: warning: conversion from 'long int' to 'unsigned int' may change value [-Wconversion] + 722 | w.wav_chunksize=36+render_bufferlen*2*2; + | ^~ +synthesizer.c:630:38: warning: passing argument 4 of 'draw_button' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] + 630 | draw_button(350, DS_HEIGHT-14, 16, "S", synth_ui[B_SAVE]); + | ^~~ +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); + | ~~~~~~^~~~~ +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 'long unsigned int'} from 'long int' may change the sign of the result [-Wsign-conversion] + 727 | fwrite(render_buffer, sizeof(short), render_bufferlen*2, f); + | ~~~~~~~~~~~~~~~~^~ +pattern.c:37:29: warning: conversion from 'int' to 'float' may change value [-Wconversion] + 37 | #define PIANOROLL_X KB_WIDTH+5.5 + | ^ +pattern.c:611:15: note: in expansion of macro 'PIANOROLL_X' + 611 | l+PIANOROLL_X+i*PIANOROLL_CELLWIDTH, + | ^~~~~~~~~~~ +synthesizer.c:631:38: warning: passing argument 4 of 'draw_button' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] + 631 | draw_button(372, DS_HEIGHT-14, 16, "L", synth_ui[B_LOAD]); + | ^~~ +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:611:26: warning: conversion from 'int' to 'float' may change value [-Wconversion] + 611 | l+PIANOROLL_X+i*PIANOROLL_CELLWIDTH, + | ^ sequencer.c:1224:55: warning: passing argument 5 of 'draw_textbox' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] 1224 | draw_textbox((DS_WIDTH/2), (DS_HEIGHT/2), 160, 240, "", 0); | ^~ +synthesizer.c:633:38: warning: passing argument 4 of 'draw_button' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] + 633 | draw_button(394, DS_HEIGHT-14, 16, "C", synth_ui[B_CLEAR]); + | ^~~ +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); + | ~~~~~~^~~~~ 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); | ~~~~~~^~~~~ +pattern.c:612:26: warning: conversion from 'int' to 'float' may change value [-Wconversion] + 612 | PIANOROLL_Y-2-(n-coct*12+1)*PIANOROLL_CELLHEIGHT, + | ^ +synthesizer.c: In function 'synth_addmodule': +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); + | ^ sequencer.c:1232:55: warning: passing argument 4 of 'draw_button' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] 1232 | draw_button((DS_WIDTH/2)+102, (DS_HEIGHT/2)-36, 16, ">>", seq_ui[B_CHAN_NEXTSYNTH]); | ^~~~ 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); | ~~~~~~^~~~~ +synthesizer.c:662:34: warning: conversion from 'int' to 'float' may change value [-Wconversion] + 662 | xd=(DS_WIDTH/10)*i - mod[csynth][k].x; + | ^ +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); + | ^ +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); + | ^ sequencer.c:1233:55: warning: passing argument 4 of 'draw_button' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] 1233 | draw_button((DS_WIDTH/2)-102, (DS_HEIGHT/2)-36, 16, "<<", seq_ui[B_CHAN_PREVSYNTH]); | ^~~~ +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); + | ^ 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: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); + | ^ sequencer.c:1235:59: warning: passing argument 5 of 'draw_textbox' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] 1235 | draw_textbox((DS_WIDTH/2), (DS_HEIGHT/2)-12, 8, 180, "Envelope hard restart", seq_ui[B_ENVRESTART]); | ^~~~~~~~~~~~~~~~~~~~~~~ @@ -6003,6 +5125,12 @@ 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); | ~~~~~~^~~~~ +synthesizer.c:663:35: warning: conversion from 'int' to 'float' may change value [-Wconversion] + 663 | yd=(DS_HEIGHT/10)*j - mod[csynth][k].y; + | ^ +synthesizer.c:664:17: warning: conversion from 'double' to 'float' may change value [-Wfloat-conversion] + 664 | d=sqrt(xd*xd+yd*yd); + | ^~~~ sequencer.c:1237:59: warning: passing argument 5 of 'draw_textbox' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] 1237 | draw_textbox((DS_WIDTH/2), (DS_HEIGHT/2)+20, 8, 180, "LFO hard restart", seq_ui[B_LFORESTART]); | ^~~~~~~~~~~~~~~~~~ @@ -6010,27 +5138,249 @@ 38 | void draw_textbox(float x, float y, float height, float length, char *label, int type); | ~~~~~~^~~~~ sequencer.c: In function 'sequencer_channel_hover': +synthesizer.c:671:24: warning: conversion from 'int' to 'float' may change value [-Wconversion] + 671 | mod[csynth][m].x=bmi; + | ^~~ sequencer.c:1243:42: warning: conversion from 'int' to 'float' may change value [-Wconversion] 1243 | seq_ui[B_CHAN_NEXTSYNTH]=hovertest_box(x, y, (DS_WIDTH/2)+102, (DS_HEIGHT/2)-36, 16, 16); | ^ +synthesizer.c:672:24: warning: conversion from 'int' to 'float' may change value [-Wconversion] + 672 | mod[csynth][m].y=bmj; + | ^~~ sequencer.c:1243:45: warning: conversion from 'int' to 'float' may change value [-Wconversion] 1243 | seq_ui[B_CHAN_NEXTSYNTH]=hovertest_box(x, y, (DS_WIDTH/2)+102, (DS_HEIGHT/2)-36, 16, 16); | ^ sequencer.c:1244:42: warning: conversion from 'int' to 'float' may change value [-Wconversion] 1244 | seq_ui[B_CHAN_PREVSYNTH]=hovertest_box(x, y, (DS_WIDTH/2)-102, (DS_HEIGHT/2)-36, 16, 16); | ^ +synthesizer.c: In function 'synth_draw_addmodule': +synthesizer.c:704:55: warning: passing argument 5 of 'draw_textbox' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] + 704 | draw_textbox((DS_WIDTH/2), (DS_HEIGHT/2), 260, 526, "", 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); + | ~~~~~~^~~~~ +modules.h:29:101: warning: unused parameter 'ms' [-Wunused-parameter] + 29 | #define MODULE_FUNC(X) float modfunc_ ##X (unsigned char v, float *mod, void *data, float *ms) + | ~~~~~~~^~ +modules.c:393:1: note: in expansion of macro 'MODULE_FUNC' + 393 | MODULE_FUNC(accent) { + | ^~~~~~~~~~~ +patch.c:662:50: warning: unused parameter 'y' [-Wunused-parameter] + 662 | void patch_modulator_special(int key, int x, int y) + | ~~~~^ +modules.c: At top level: +modules.h:29:39: warning: no previous prototype for 'modfunc_vco' [-Wmissing-prototypes] + 29 | #define MODULE_FUNC(X) float modfunc_ ##X (unsigned char v, float *mod, void *data, float *ms) + | ^~~~~~~~ +modules.c:398:1: note: in expansion of macro 'MODULE_FUNC' + 398 | MODULE_FUNC(vco) // phase-accumulating oscillator w/ suboscillator + | ^~~~~~~~~~~ +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_modulator_keyboard': +modules.c: In function 'modfunc_vco': +synthesizer.c: In function 'synth_addmodule_click': +modules.c:403:17: warning: conversion from 'double' to 'float' may change value [-Wfloat-conversion] + 403 | mod_fdata[0]-=floor(mod_fdata[0]); + | ^~~~~ +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); + | ~~~~~~~~~~~~~~~^~~~~~ +modules.c:407:17: warning: conversion from 'double' to 'float' may change value [-Wfloat-conversion] + 407 | mod_fdata[1]-=floor(mod_fdata[1]); + | ^~~~~ +patch.c:735:5: warning: switch missing default case [-Wswitch-default] + 735 | switch(modModulatorTypes[mod[csynth][mi].type]) { + | ^~~~~~ +modules.c:416:28: warning: conversion from 'double' to 'float' may change value [-Wfloat-conversion] + 416 | case VCO_TRIANGLE: out=(mod_fdata[0]<0.75) ? 1-fabs(mod_fdata[0]*4-1) : 1-fabs(mod_fdata[0]*4-5); break; + | ^ +patch.c:718:54: warning: unused parameter 'x' [-Wunused-parameter] + 718 | void patch_modulator_keyboard(unsigned char key, int x, int y) + | ~~~~^ +modules.c:417:28: warning: conversion from 'double' to 'float' may change value [-Wfloat-conversion] + 417 | case VCO_SINE: out=sin(2*3.1415926* mod_fdata[0]); break; + | ^~~ +modules.c:412:3: warning: switch missing default case [-Wswitch-default] + 412 | switch((int)(*mod)) + | ^~~~~~ +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; + | ^ +modules.c:426:29: warning: conversion from 'unsigned int' to 'float' changes value from '4294967295' to '4.2949673e+9f' [-Wfloat-conversion] + 426 | out+=ms[3]*(noise_x2*(2.0f/0xffffffff)); + | ^ +modules.c:426:23: warning: conversion from 'int' to 'float' may change value [-Wconversion] + 426 | out+=ms[3]*(noise_x2*(2.0f/0xffffffff)); + | ^ +modules.c: At top level: +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); + | ^ +modules.h:29:39: warning: no previous prototype for 'modfunc_lfo' [-Wmissing-prototypes] + 29 | #define MODULE_FUNC(X) float modfunc_ ##X (unsigned char v, float *mod, void *data, float *ms) + | ^~~~~~~~ +modules.c:433:1: note: in expansion of macro 'MODULE_FUNC' + 433 | MODULE_FUNC(lfo) { // low-frequency oscillator, input is freq in hz, cv output (0 to 1.0) + | ^~~~~~~~~~~ +synthesizer.c:732:42: warning: conversion from 'int' to 'float' may change value [-Wconversion] + 732 | if (state==GLUT_DOWN && !hovertest_box(x, y, (DS_WIDTH/2), (DS_HEIGHT/2), 260, 526)) { dialog_close(); return; } + | ^ +modules.c: In function 'modfunc_lfo': +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); + | ^ +synthesizer.c:732:45: warning: conversion from 'int' to 'float' may change value [-Wconversion] + 732 | if (state==GLUT_DOWN && !hovertest_box(x, y, (DS_WIDTH/2), (DS_HEIGHT/2), 260, 526)) { dialog_close(); return; } + | ^ +pattern.c:645:7: warning: conversion to 'int' from 'unsigned int' may change the sign of the result [-Wsign-conversion] + 645 | n=pattdata[cpatt][piano_start+piano_porta_drag]; + | ^~~~~~~~ +synthesizer.c:734:50: warning: conversion from 'int' to 'float' may change value [-Wconversion] + 734 | if (button==GLUT_RIGHT_BUTTON && hovertest_box(x,y,(DS_WIDTH/2),(DS_HEIGHT/2),260,526)) { + | ^ +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); + | ^ +synthesizer.c:734:52: warning: conversion from 'int' to 'float' may change value [-Wconversion] + 734 | if (button==GLUT_RIGHT_BUTTON && hovertest_box(x,y,(DS_WIDTH/2),(DS_HEIGHT/2),260,526)) { + | ^ sequencer.c:1244:45: warning: conversion from 'int' to 'float' may change value [-Wconversion] 1244 | seq_ui[B_CHAN_PREVSYNTH]=hovertest_box(x, y, (DS_WIDTH/2)-102, (DS_HEIGHT/2)-36, 16, 16); | ^ +modules.c:440:17: warning: conversion from 'double' to 'float' may change value [-Wfloat-conversion] + 440 | mod_fdata[0]-=floor(mod_fdata[0]); + | ^~~~~ +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; +modules.c:444:28: warning: conversion from 'double' to 'float' may change value [-Wfloat-conversion] + 444 | case LFO_SINE: out=-0.5*(cos(2*3.1415926*mod_fdata[0])-1); break; + | ^ +modules.c:442:3: warning: switch missing default case [-Wswitch-default] + 442 | switch((int)(*mod)) { + | ^~~~~~ +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); + | ^~~~~~~~~~~~~~~~~~~~~~~ +modules.c: At top level: sequencer.c:1246:38: warning: conversion from 'int' to 'float' may change value [-Wconversion] 1246 | seq_ui[B_ENVRESTART]=hovertest_box(x, y, (DS_WIDTH/2), (DS_HEIGHT/2)-8, 8, 180); | ^ +modules.h:29:39: warning: no previous prototype for 'modfunc_env' [-Wmissing-prototypes] + 29 | #define MODULE_FUNC(X) float modfunc_ ##X (unsigned char v, float *mod, void *data, float *ms) + | ^~~~~~~~ +modules.c:453:1: note: in expansion of macro 'MODULE_FUNC' + 453 | MODULE_FUNC(env) // linear adsr envelope generator + | ^~~~~~~~~~~ +patch.c:767:3: warning: switch missing default case [-Wswitch-default] + 767 | switch(scale) { + | ^~~~~~ +modules.c: In function 'modfunc_env': +patch.c: In function 'knob_float2scale': sequencer.c:1246:41: warning: conversion from 'int' to 'float' may change value [-Wconversion] 1246 | seq_ui[B_ENVRESTART]=hovertest_box(x, y, (DS_WIDTH/2), (DS_HEIGHT/2)-8, 8, 180); | ^ +modules.c:470:16: warning: conversion to 'unsigned int' from 'int' may change the sign of the result [-Wsign-conversion] + 470 | mod_ldata[1]=gate[v]; // save current gate + | ^~~~ +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) + | ~~~~~~~^~~ +modules.c:453:1: note: in expansion of macro 'MODULE_FUNC' + 453 | MODULE_FUNC(env) // linear adsr envelope generator + | ^~~~~~~~~~~ +modules.c: At top level: +patch.c:786:61: warning: conversion from 'int' to 'float' may change value [-Wconversion] + 786 | case SCALE_FREQUENCY_TEMPO: return (value*60*OUTPUTFREQ)/bpm; + | ^ +modules.h:29:39: warning: no previous prototype for 'modfunc_vcf' [-Wmissing-prototypes] + 29 | #define MODULE_FUNC(X) float modfunc_ ##X (unsigned char v, float *mod, void *data, float *ms) + | ^~~~~~~~ +modules.c:475:1: note: in expansion of macro 'MODULE_FUNC' + 475 | MODULE_FUNC(vcf) // 12db/oct resonant state variable low-/high-/bandpass filter + | ^~~~~~~~~~~ sequencer.c:1248:38: warning: conversion from 'int' to 'float' may change value [-Wconversion] 1248 | seq_ui[B_VCORESTART]=hovertest_box(x, y, (DS_WIDTH/2), (DS_HEIGHT/2)+4, 8, 180); | ^ +patch.c:787:61: warning: conversion from 'int' to 'float' may change value [-Wconversion] + 787 | case SCALE_DURATION_TEMPO: return (OUTPUTFREQ*60)/(value*bpm); + | ^ +modules.c: In function 'modfunc_vcf': +modules.c:487:7: warning: conversion from 'double' to 'float' may change value [-Wfloat-conversion] + 487 | f = 2*sin(3.14159 * ms[1]); // cutoff in [0.0, 1.0] + | ^ +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); + | ~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ +synthesizer.c: In function 'synth_addmodule_keyboard': +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); + | ^ +synthesizer.c:747:54: warning: unused parameter 'x' [-Wunused-parameter] + 747 | void synth_addmodule_keyboard(unsigned char key, int x, int y) + | ~~~~^ +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); + | ^ +synthesizer.c:747:61: warning: unused parameter 'y' [-Wunused-parameter] + 747 | void synth_addmodule_keyboard(unsigned char key, int x, int y) + | ~~~~^ +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); + | ^ +synthesizer.c: In function 'synth_file_keyboard': +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); + | ^ +synthesizer.c:770:49: warning: unused parameter 'x' [-Wunused-parameter] + 770 | void synth_file_keyboard(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); + | ^ +synthesizer.c:770:56: warning: unused parameter 'y' [-Wunused-parameter] + 770 | void synth_file_keyboard(unsigned char key, int x, int y) + | ~~~~^ +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); + | ^ +synthesizer.c: In function 'synth_file_checkstate': +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); + | ^ +synthesizer.c:796:35: warning: passing argument 1 of 'console_post' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] + 796 | if (r) { console_post("Writing to file failed (KBNK chunk)"); + | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ +console.h:23:25: note: expected 'char *' but argument is of type 'const char *' + 23 | void console_post(char *msg); + | ~~~~~~^~~ +pattern.c:653:31: warning: comparison of integer expressions of different signedness: 'int' and 'unsigned int' [-Wsign-compare] + 653 | if (piano_porta_drag_from != pattdata[cpatt][piano_start+piano_porta_drag]) { + | ^~ +synthesizer.c:802:26: warning: passing argument 1 of 'console_post' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] + 802 | console_post("Writing to file failed (KSYN chunk)"); + | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ +console.h:23:25: note: expected 'char *' but argument is of type 'const char *' + 23 | void console_post(char *msg); + | ~~~~~~^~~ +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); + | ^ +synthesizer.c:806:24: warning: passing argument 1 of 'console_post' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] + 806 | console_post("Unable to open file for writing!"); + | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ +console.h:23:25: note: expected 'char *' but argument is of type 'const char *' + 23 | void console_post(char *msg); + | ~~~~~~^~~ sequencer.c:1248:41: warning: conversion from 'int' to 'float' may change value [-Wconversion] 1248 | seq_ui[B_VCORESTART]=hovertest_box(x, y, (DS_WIDTH/2), (DS_HEIGHT/2)+4, 8, 180); | ^ @@ -6040,6 +5390,122 @@ sequencer.c:1250:41: warning: conversion from 'int' to 'float' may change value [-Wconversion] 1250 | seq_ui[B_LFORESTART]=hovertest_box(x, y, (DS_WIDTH/2), (DS_HEIGHT/2)+20, 8, 180); | ^ +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); + | ^ +modules.c:489:5: warning: conversion from 'double' to 'float' may change value [-Wfloat-conversion] + 489 | r=sqrt(q); + | ^~~~ +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); + | ~~~~~~~~~~~~~~^~~~~~~~~~~ +synthesizer.c:824:28: warning: passing argument 1 of 'console_post' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] + 824 | console_post("Reading file failed (KBNK chunk)"); + | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ +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); + | ^ +console.h:23:25: note: expected 'char *' but argument is of type 'const char *' + 23 | void console_post(char *msg); + | ~~~~~~^~~ +modules.c:496:3: warning: switch missing default case [-Wswitch-default] + 496 | switch((int)(*mod)) { + | ^~~~~~ +patch.c:783:3: warning: switch missing default case [-Wswitch-default] + 783 | switch(scale) { + | ^~~~~~ +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); + | ^ +synthesizer.c:827:26: warning: passing argument 1 of 'console_post' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] + 827 | console_post("Readinf file failed (KSYN chunk)"); + | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ +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) + | ~~~~~~~~~~~~~~^ +modules.c:475:1: note: in expansion of macro 'MODULE_FUNC' + 475 | MODULE_FUNC(vcf) // 12db/oct resonant state variable low-/high-/bandpass filter + | ^~~~~~~~~~~ +console.h:23:25: note: expected 'char *' but argument is of type 'const char *' + 23 | void console_post(char *msg); + | ~~~~~~^~~ +modules.c: At top level: +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); + | ^ +modules.h:29:39: warning: no previous prototype for 'modfunc_delay' [-Wmissing-prototypes] + 29 | #define MODULE_FUNC(X) float modfunc_ ##X (unsigned char v, float *mod, void *data, float *ms) + | ^~~~~~~~ +modules.c:509:1: note: in expansion of macro 'MODULE_FUNC' + 509 | MODULE_FUNC(delay) + | ^~~~~~~~~~~ +modules.c: In function 'modfunc_delay': +modules.c:27:20: warning: conversion to 'int' from 'unsigned int' may change the sign of the result [-Wsign-conversion] + 27 | #define mod_ldata ((u32*)data) + | ^ +modules.c:515:12: note: in expansion of macro 'mod_ldata' + 515 | writeptr=mod_ldata[2]; + | ^~~~~~~~~ +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); + | ^ +synthesizer.c:831:24: warning: passing argument 1 of 'console_post' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] + 831 | console_post("Unable to open file for reading!"); + | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ +console.h:23:25: note: expected 'char *' but argument is of type 'const char *' + 23 | void console_post(char *msg); + | ~~~~~~^~~ +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); + | ^ +modules.c:521:24: warning: conversion from 'float' to 'int' may change value [-Wfloat-conversion] + 521 | if (ms[2]>1) loopend=ms[2]; // use loop input if greater than 1 sample + | ^~ +synthesizer.c:837:24: warning: passing argument 1 of 'dotfile_setvalue' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] + 837 | dotfile_setvalue("synthFileDir", (char*)&fd[fd_active].cpath); + | ^~~~~~~~~~~~~~ +dotfile.h:19:28: note: expected 'char *' but argument is of type 'const char *' + 19 | int dotfile_setvalue(char *key, char *value); + | ~~~~~~^~~ +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); + | ^ +synthesizer.c: In function 'synthlabel_draw': +modules.c:534:16: warning: conversion to 'unsigned int' from 'int' may change the sign of the result [-Wsign-conversion] + 534 | mod_ldata[2]=(writeptr+1)%loopend; + | ^ +pattern.c:667:7: warning: conversion to 'int' from 'unsigned int' may change the sign of the result [-Wsign-conversion] + 667 | n=pattdata[cpatt][piano_start+piano_drag]; + | ^~~~~~~~ +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) + | ~~~~~~~~~~~~~~^ +modules.c:509:1: note: in expansion of macro 'MODULE_FUNC' + 509 | MODULE_FUNC(delay) + | ^~~~~~~~~~~ +modules.c: At top level: +synthesizer.c:852:55: warning: passing argument 5 of 'draw_textbox' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] + 852 | draw_textbox((DS_WIDTH/2), (DS_HEIGHT/2), 160, 320, "", 0); + | ^~ +modules.h:29:39: warning: no previous prototype for 'modfunc_dist' [-Wmissing-prototypes] + 29 | #define MODULE_FUNC(X) float modfunc_ ##X (unsigned char v, float *mod, void *data, float *ms) + | ^~~~~~~~ +modules.c:540:1: note: in expansion of macro 'MODULE_FUNC' + 540 | MODULE_FUNC(dist) { // simple clipping distort + | ^~~~~~~~~~~ +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); + | ~~~~~~^~~~~ +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); + | ^ +modules.c: In function 'modfunc_dist': +modules.c:545:28: warning: conversion from 'double' to 'float' may change value [-Wfloat-conversion] + 545 | if (fabs(out)>1.0) out = out/fabs(out); + | ^~~ +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); + | ^ sequencer.c: In function 'sequencer_channel_click': sequencer.c:1257:42: warning: conversion from 'int' to 'float' may change value [-Wconversion] 1257 | if (state==GLUT_DOWN && !hovertest_box(x,y,(DS_WIDTH/2),(DS_HEIGHT/2),150,240 )) { @@ -6047,6 +5513,115 @@ sequencer.c:1257:44: warning: conversion from 'int' to 'float' may change value [-Wconversion] 1257 | if (state==GLUT_DOWN && !hovertest_box(x,y,(DS_WIDTH/2),(DS_HEIGHT/2),150,240 )) { | ^ +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) + | ~~~~~~~~~~~~~~^ +modules.c:540:1: note: in expansion of macro 'MODULE_FUNC' + 540 | MODULE_FUNC(dist) { // simple clipping distort + | ^~~~~~~~~~~ +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) + | ~~~~~~~^~~ +modules.c:540:1: note: in expansion of macro 'MODULE_FUNC' + 540 | MODULE_FUNC(dist) { // simple clipping distort + | ^~~~~~~~~~~ +modules.h:29:88: warning: unused parameter 'data' [-Wunused-parameter] + 29 | #define MODULE_FUNC(X) float modfunc_ ##X (unsigned char v, float *mod, void *data, float *ms) + | ~~~~~~^~~~ +modules.c:540:1: note: in expansion of macro 'MODULE_FUNC' + 540 | MODULE_FUNC(dist) { // simple clipping distort + | ^~~~~~~~~~~ +modules.c: At top level: +synthesizer.c:874:57: warning: passing argument 4 of 'draw_button' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] + 874 | draw_button((DS_WIDTH/2)+112, (DS_HEIGHT/2)+32, 16, ">>", synth_ui[B_LABEL_INCSCALE]); + | ^~~~ +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); + | ~~~~~~^~~~~ +modules.h:29:39: warning: no previous prototype for 'modfunc_resample' [-Wmissing-prototypes] + 29 | #define MODULE_FUNC(X) float modfunc_ ##X (unsigned char v, float *mod, void *data, float *ms) + | ^~~~~~~~ +modules.c:569:1: note: in expansion of macro 'MODULE_FUNC' + 569 | MODULE_FUNC(resample) { // sample-and-hold + | ^~~~~~~~~~~ +modules.c: In function 'modfunc_resample': +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) + | ~~~~~~~~~~~~~~^ +modules.c:569:1: note: in expansion of macro 'MODULE_FUNC' + 569 | MODULE_FUNC(resample) { // sample-and-hold + | ^~~~~~~~~~~ +synthesizer.c:875:57: warning: passing argument 4 of 'draw_button' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] + 875 | draw_button((DS_WIDTH/2)-52, (DS_HEIGHT/2)+32, 16, "<<", synth_ui[B_LABEL_DECSCALE]); + | ^~~~ +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) + | ~~~~~~~^~~ +modules.c:569:1: note: in expansion of macro 'MODULE_FUNC' + 569 | MODULE_FUNC(resample) { // sample-and-hold + | ^~~~~~~~~~~ +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); + | ~~~~~~^~~~~ +modules.c: At top level: +modules.h:29:39: warning: no previous prototype for 'modfunc_cv' [-Wmissing-prototypes] + 29 | #define MODULE_FUNC(X) float modfunc_ ##X (unsigned char v, float *mod, void *data, float *ms) + | ^~~~~~~~ +modules.c:583:1: note: in expansion of macro 'MODULE_FUNC' + 583 | MODULE_FUNC(cv) { return *mod; } + | ^~~~~~~~~~~ +modules.c: In function 'modfunc_cv': +synthesizer.c: In function 'synthlabel_hover': +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) + | ~~~~~~~~~~~~~~^ +modules.c:583:1: note: in expansion of macro 'MODULE_FUNC' + 583 | MODULE_FUNC(cv) { return *mod; } + | ^~~~~~~~~~~ +modules.h:29:88: warning: unused parameter 'data' [-Wunused-parameter] + 29 | #define MODULE_FUNC(X) float modfunc_ ##X (unsigned char v, float *mod, void *data, float *ms) + | ~~~~~~^~~~ +modules.c:583:1: note: in expansion of macro 'MODULE_FUNC' + 583 | MODULE_FUNC(cv) { return *mod; } + | ^~~~~~~~~~~ +synthesizer.c:888:40: warning: conversion from 'int' to 'float' may change value [-Wconversion] + 888 | synth_label_kbfocus|=hovertest_box(x, y, (DS_WIDTH/2)+30, (DS_HEIGHT/2)-32, 16, 180); + | ^ +modules.h:29:101: warning: unused parameter 'ms' [-Wunused-parameter] + 29 | #define MODULE_FUNC(X) float modfunc_ ##X (unsigned char v, float *mod, void *data, float *ms) + | ~~~~~~~^~ +modules.c:583:1: note: in expansion of macro 'MODULE_FUNC' + 583 | MODULE_FUNC(cv) { return *mod; } + | ^~~~~~~~~~~ +modules.c: At top level: +modules.h:29:39: warning: no previous prototype for 'modfunc_amp' [-Wmissing-prototypes] + 29 | #define MODULE_FUNC(X) float modfunc_ ##X (unsigned char v, float *mod, void *data, float *ms) + | ^~~~~~~~ +modules.c:584:1: note: in expansion of macro 'MODULE_FUNC' + 584 | MODULE_FUNC(amp) { return ms[0]*ms[1]; } + | ^~~~~~~~~~~ +modules.c: In function 'modfunc_amp': +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) + | ~~~~~~~~~~~~~~^ +modules.c:584:1: note: in expansion of macro 'MODULE_FUNC' + 584 | MODULE_FUNC(amp) { return ms[0]*ms[1]; } + | ^~~~~~~~~~~ +synthesizer.c:888:43: warning: conversion from 'int' to 'float' may change value [-Wconversion] + 888 | synth_label_kbfocus|=hovertest_box(x, y, (DS_WIDTH/2)+30, (DS_HEIGHT/2)-32, 16, 180); + | ^ +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) + | ~~~~~~~^~~ +modules.c:584:1: note: in expansion of macro 'MODULE_FUNC' + 584 | MODULE_FUNC(amp) { return ms[0]*ms[1]; } + | ^~~~~~~~~~~ +modules.h:29:88: warning: unused parameter 'data' [-Wunused-parameter] + 29 | #define MODULE_FUNC(X) float modfunc_ ##X (unsigned char v, float *mod, void *data, float *ms) + | ~~~~~~^~~~ +modules.c:584:1: note: in expansion of macro 'MODULE_FUNC' + 584 | MODULE_FUNC(amp) { return ms[0]*ms[1]; } + | ^~~~~~~~~~~ sequencer.c:1291:50: warning: conversion from 'int' to 'float' may change value [-Wconversion] 1291 | if (button==GLUT_RIGHT_BUTTON && hovertest_box(x,y,(DS_WIDTH/2),(DS_HEIGHT/2),150,240 )) { | ^ @@ -6057,54 +5632,225 @@ sequencer.c:1298:56: warning: unused parameter 'x' [-Wunused-parameter] 1298 | void sequencer_channel_keyboard(unsigned char key, int x, int y) | ~~~~^ +synthesizer.c:890:46: warning: conversion from 'int' to 'float' may change value [-Wconversion] + 890 | synth_ui[B_LABEL_INCSCALE]=hovertest_box(x, y, (DS_WIDTH/2)+112, (DS_HEIGHT/2)+32, 16, 16); + | ^ sequencer.c:1298:63: warning: unused parameter 'y' [-Wunused-parameter] 1298 | void sequencer_channel_keyboard(unsigned char key, int x, int y) | ~~~~^ sequencer.c: In function 'sequencer_draw_render': +synthesizer.c:890:49: warning: conversion from 'int' to 'float' may change value [-Wconversion] + 890 | synth_ui[B_LABEL_INCSCALE]=hovertest_box(x, y, (DS_WIDTH/2)+112, (DS_HEIGHT/2)+32, 16, 16); + | ^ +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); + | ^ sequencer.c:1326:17: warning: ISO C forbids passing argument 1 of 'dialog_open' between function pointer and 'void *' [-Wpedantic] 1326 | dialog_open(&sequencer_draw_preview, &sequencer_preview_hover, &sequencer_preview_click); | ^~~~~~~~~~~~~~~~~~~~~~~ dialog.h:22:24: note: expected 'void *' but argument is of type 'void (*)(void)' 22 | void dialog_open(void *draw, void *hover, void *click); | ~~~~~~^~~~ +synthesizer.c:891:46: warning: conversion from 'int' to 'float' may change value [-Wconversion] + 891 | synth_ui[B_LABEL_DECSCALE]=hovertest_box(x, y, (DS_WIDTH/2)-52, (DS_HEIGHT/2)+32, 16, 16); + | ^ +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); + | ^ +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); + | ^ sequencer.c:1326:42: warning: ISO C forbids passing argument 2 of 'dialog_open' between function pointer and 'void *' [-Wpedantic] 1326 | dialog_open(&sequencer_draw_preview, &sequencer_preview_hover, &sequencer_preview_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); | ~~~~~~^~~~~ +synthesizer.c:891:49: warning: conversion from 'int' to 'float' may change value [-Wconversion] + 891 | synth_ui[B_LABEL_DECSCALE]=hovertest_box(x, y, (DS_WIDTH/2)-52, (DS_HEIGHT/2)+32, 16, 16); + | ^ +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); + | ^ +synthesizer.c:897:40: warning: conversion from 'int' to 'float' may change value [-Wconversion] + 897 | synth_ui[B_HUE_PICKER]=hovertest_box(x, y, (DS_WIDTH/2)+21, (DS_HEIGHT/2)+2, 17, 162); + | ^ sequencer.c:1326:68: warning: ISO C forbids passing argument 3 of 'dialog_open' between function pointer and 'void *' [-Wpedantic] 1326 | dialog_open(&sequencer_draw_preview, &sequencer_preview_hover, &sequencer_preview_click); | ^~~~~~~~~~~~~~~~~~~~~~~~ +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); + | ^ 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); | ~~~~~~^~~~~ +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); + | ^ 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); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~ dialog.h:23:32: note: expected 'void *' but argument is of type 'void (*)(unsigned char, int, int)' 23 | void dialog_bindkeyboard(void *kbfunc); | ~~~~~~^~~~~~ +pattern.c:683:35: warning: conversion from 'int' to 'float' may change value [-Wconversion] + 683 | PIANOROLL_Y-1-(kpkeydown-coct*12)*PIANOROLL_CELLHEIGHT); + | ^ +pattern.c:685:49: warning: conversion to '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, + | ^ sequencer.c:1331:54: warning: passing argument 5 of 'draw_textbox' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] 1331 | draw_textbox((DS_WIDTH/2), (DS_HEIGHT/2), 80, 240, "", 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); | ~~~~~~^~~~~ +modules.c: At top level: +modules.h:29:39: warning: no previous prototype for 'modfunc_att' [-Wmissing-prototypes] + 29 | #define MODULE_FUNC(X) float modfunc_ ##X (unsigned char v, float *mod, void *data, float *ms) + | ^~~~~~~~ +modules.c:585:1: note: in expansion of macro 'MODULE_FUNC' + 585 | MODULE_FUNC(att) { return ms[0]* *mod; } + | ^~~~~~~~~~~ +modules.c: In function 'modfunc_att': +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) + | ~~~~~~~~~~~~~~^ +modules.c:585:1: note: in expansion of macro 'MODULE_FUNC' + 585 | MODULE_FUNC(att) { return ms[0]* *mod; } + | ^~~~~~~~~~~ +modules.h:29:88: warning: unused parameter 'data' [-Wunused-parameter] + 29 | #define MODULE_FUNC(X) float modfunc_ ##X (unsigned char v, float *mod, void *data, float *ms) + | ~~~~~~^~~~ +modules.c:585:1: note: in expansion of macro 'MODULE_FUNC' + 585 | MODULE_FUNC(att) { return ms[0]* *mod; } + | ^~~~~~~~~~~ +modules.c: At top level: +modules.h:29:39: warning: no previous prototype for 'modfunc_mixer' [-Wmissing-prototypes] + 29 | #define MODULE_FUNC(X) float modfunc_ ##X (unsigned char v, float *mod, void *data, float *ms) + | ^~~~~~~~ +modules.c:586:1: note: in expansion of macro 'MODULE_FUNC' + 586 | MODULE_FUNC(mixer) { return ms[0]+ms[1]+ms[2]+ms[3]; } + | ^~~~~~~~~~~ +modules.c: In function 'modfunc_mixer': +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) + | ~~~~~~~~~~~~~~^ +modules.c:586:1: note: in expansion of macro 'MODULE_FUNC' + 586 | MODULE_FUNC(mixer) { return ms[0]+ms[1]+ms[2]+ms[3]; } + | ^~~~~~~~~~~ +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) + | ~~~~~~~^~~ +modules.c:586:1: note: in expansion of macro 'MODULE_FUNC' + 586 | MODULE_FUNC(mixer) { return ms[0]+ms[1]+ms[2]+ms[3]; } + | ^~~~~~~~~~~ +synthesizer.c:897:43: warning: conversion from 'int' to 'float' may change value [-Wconversion] + 897 | synth_ui[B_HUE_PICKER]=hovertest_box(x, y, (DS_WIDTH/2)+21, (DS_HEIGHT/2)+2, 17, 162); + | ^ +synthesizer.c:898:44: warning: conversion from 'int' to 'float' may change value [-Wconversion] + 898 | synth_ui[B_HUE_PICKER_BOX]=hovertest_box(x, y, (DS_WIDTH/2)+21+81+11, (DS_HEIGHT/2)+2, 17, 18); + | ^ +synthesizer.c:898:47: warning: conversion from 'int' to 'float' may change value [-Wconversion] + 898 | synth_ui[B_HUE_PICKER_BOX]=hovertest_box(x, y, (DS_WIDTH/2)+21+81+11, (DS_HEIGHT/2)+2, 17, 18); + | ^ +synthesizer.c: In function 'synthlabel_click': +synthesizer.c:904:42: warning: conversion from 'int' to 'float' may change value [-Wconversion] + 904 | if (state==GLUT_DOWN && !hovertest_box(x, y, (DS_WIDTH/2), (DS_HEIGHT/2), 160, 320)) { dialog_close(); return; } + | ^ +synthesizer.c:904:45: warning: conversion from 'int' to 'float' may change value [-Wconversion] + 904 | if (state==GLUT_DOWN && !hovertest_box(x, y, (DS_WIDTH/2), (DS_HEIGHT/2), 160, 320)) { dialog_close(); return; } + | ^ +synthesizer.c:921:60: warning: conversion from 'int' to 'float' may change value [-Wconversion] + 921 | float hue=1.0 + 254.0 * ( (x-((DS_WIDTH/2)+21-81) )/162.0); + | ^ +pattern.c:685:77: warning: conversion to '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, + | ^ +synthesizer.c:922:45: warning: conversion from 'double' to 'unsigned char' may change value [-Wfloat-conversion] + 922 | mod[csynth][synth_label_edit].color=floor(hue); + | ^~~~~ +modules.h:29:88: warning: unused parameter 'data' [-Wunused-parameter] + 29 | #define MODULE_FUNC(X) float modfunc_ ##X (unsigned char v, float *mod, void *data, float *ms) + | ~~~~~~^~~~ +modules.c:586:1: note: in expansion of macro 'MODULE_FUNC' + 586 | MODULE_FUNC(mixer) { return ms[0]+ms[1]+ms[2]+ms[3]; } + | ^~~~~~~~~~~ +modules.c: At top level: +pattern.c:685:33: warning: conversion from 'unsigned int' to 'float' may change value [-Wconversion] + 685 | glVertex2f(PIANOROLL_X+(pattlen[cpatt]*(beats_per_measure*beatdiv)-piano_start)*PIANOROLL_CELLWIDTH, + | ^ +modules.h:29:39: warning: no previous prototype for 'modfunc_lpf24' [-Wmissing-prototypes] + 29 | #define MODULE_FUNC(X) float modfunc_ ##X (unsigned char v, float *mod, void *data, float *ms) + | ^~~~~~~~ +modules.c:590:1: note: in expansion of macro 'MODULE_FUNC' + 590 | MODULE_FUNC(lpf24) { // 24db/oct four-pole low pass + | ^~~~~~~~~~~ sequencer.c:1337:56: warning: passing argument 5 of 'draw_textbox' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] 1337 | draw_textbox((DS_WIDTH/2), (DS_HEIGHT/2)+4, 16, 180, "", 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); | ~~~~~~^~~~~ +pattern.c:686:35: warning: conversion from 'int' to 'float' may change value [-Wconversion] + 686 | PIANOROLL_Y-1-(kpkeydown-coct*12)*PIANOROLL_CELLHEIGHT); + | ^ +synthesizer.c:933:70: warning: conversion from 'int' to 'float' may change value [-Wconversion] + 933 | if (button==GLUT_RIGHT_BUTTON && state==GLUT_DOWN && hovertest_box(x,y,(DS_WIDTH/2),(DS_HEIGHT/2),150,240 )) { + | ^ sequencer.c: In function 'sequencer_render_hover': +pattern.c:688:49: warning: conversion to '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, + | ^ +modules.c: In function 'modfunc_lpf24': +pattern.c:688:77: warning: conversion to '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, + | ^ +modules.c:613:19: warning: conversion from 'double' to 'float' may change value [-Wfloat-conversion] + 613 | return mod_ddata[3]; //out4; + | ^ sequencer.c:1351:33: warning: unused parameter 'x' [-Wunused-parameter] 1351 | void sequencer_render_hover(int x, int y) | ~~~~^ +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) + | ~~~~~~~~~~~~~~^ +modules.c:590:1: note: in expansion of macro 'MODULE_FUNC' + 590 | MODULE_FUNC(lpf24) { // 24db/oct four-pole low pass + | ^~~~~~~~~~~ +pattern.c:688:33: warning: conversion from 'unsigned int' to 'float' may change value [-Wconversion] + 688 | glVertex2f(PIANOROLL_X+(pattlen[cpatt]*(beats_per_measure*beatdiv)-piano_start)*PIANOROLL_CELLWIDTH, + | ^ +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) + | ~~~~~~~^~~ +modules.c:590:1: note: in expansion of macro 'MODULE_FUNC' + 590 | MODULE_FUNC(lpf24) { // 24db/oct four-pole low pass + | ^~~~~~~~~~~ +modules.c: At top level: +pattern.c:689:33: warning: conversion from 'int' to 'float' may change value [-Wconversion] + 689 | PIANOROLL_Y-(kpkeydown-coct*12+1)*PIANOROLL_CELLHEIGHT); + | ^ +modules.h:29:39: warning: no previous prototype for 'modfunc_bitcrush' [-Wmissing-prototypes] + 29 | #define MODULE_FUNC(X) float modfunc_ ##X (unsigned char v, float *mod, void *data, float *ms) + | ^~~~~~~~ +modules.c:625:1: note: in expansion of macro 'MODULE_FUNC' + 625 | MODULE_FUNC(bitcrush) { + | ^~~~~~~~~~~ +modules.c: In function 'modfunc_bitcrush': +pattern.c:692:33: warning: conversion from 'int' to 'float' may change value [-Wconversion] + 692 | PIANOROLL_Y-(kpkeydown-coct*12+1)*PIANOROLL_CELLHEIGHT); + | ^ sequencer.c:1351:40: warning: unused parameter 'y' [-Wunused-parameter] 1351 | void sequencer_render_hover(int x, int y) | ~~~~^ +modules.c:627:12: warning: conversion from 'float' to 'int' may change value [-Wfloat-conversion] + 627 | int rate=ms[1]*32766+1; + | ^~ sequencer.c: In function 'sequencer_render_click': +pattern.c:700:18: warning: conversion to 'unsigned int' from 'int' may change the sign of the result [-Wsign-conversion] + 700 | pattlen[cpatt]*(beats_per_measure*beatdiv), + | ^ 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 )) { | ^ @@ -6118,13 +5864,73 @@ sequencer.c:1371:62: warning: unused parameter 'y' [-Wunused-parameter] 1371 | void sequencer_render_keyboard(unsigned char key, int x, int y) | ~~~~^ +modules.c:628:10: warning: conversion from 'float' to 'int' may change value [-Wfloat-conversion] + 628 | int in=ms[0]*32767; + | ^~ +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) + | ~~~~~~~~~~~~~~^ +modules.c:625:1: note: in expansion of macro 'MODULE_FUNC' + 625 | MODULE_FUNC(bitcrush) { + | ^~~~~~~~~~~ +synthesizer.c:933:72: warning: conversion from 'int' to 'float' may change value [-Wconversion] + 933 | if (button==GLUT_RIGHT_BUTTON && state==GLUT_DOWN && hovertest_box(x,y,(DS_WIDTH/2),(DS_HEIGHT/2),150,240 )) { + | ^ +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) + | ~~~~~~~^~~ +modules.c:625:1: note: in expansion of macro 'MODULE_FUNC' + 625 | MODULE_FUNC(bitcrush) { + | ^~~~~~~~~~~ +modules.h:29:88: warning: unused parameter 'data' [-Wunused-parameter] + 29 | #define MODULE_FUNC(X) float modfunc_ ##X (unsigned char v, float *mod, void *data, float *ms) + | ~~~~~~^~~~ +modules.c:625:1: note: in expansion of macro 'MODULE_FUNC' + 625 | MODULE_FUNC(bitcrush) { + | ^~~~~~~~~~~ +synthesizer.c: In function 'synthlabel_keyboard': +modules.c: At top level: +modules.h:29:39: warning: no previous prototype for 'modfunc_slew' [-Wmissing-prototypes] + 29 | #define MODULE_FUNC(X) float modfunc_ ##X (unsigned char v, float *mod, void *data, float *ms) + | ^~~~~~~~ +modules.c:641:1: note: in expansion of macro 'MODULE_FUNC' + 641 | MODULE_FUNC(slew) { // slew limiter: ms[0] = cv input, ms[1] = rate + | ^~~~~~~~~~~ +synthesizer.c:944:49: warning: unused parameter 'x' [-Wunused-parameter] + 944 | void synthlabel_keyboard(unsigned char key, int x, int y) + | ~~~~^ +widgets.c: In function 'draw_kboct': +widgets.c:484:14: warning: iteration 4 invokes undefined behavior [-Waggressive-loop-optimizations] + 484 | ckey+=bkj[i]; + | ~~~^~~ +synthesizer.c:944:56: warning: unused parameter 'y' [-Wunused-parameter] + 944 | void synthlabel_keyboard(unsigned char key, int x, int y) + | ~~~~^ +widgets.c:466:12: note: within this loop + 466 | for(i=0;i<5;i++) { // black keys + | ~^~ +pattern.c:699:4: warning: conversion from 'int' to 'float' may change value [-Wconversion] + 699 | piano_start, (DS_WIDTH-(PIANOROLL_X+4))/PIANOROLL_CELLWIDTH, + | ^~~~~~~~~~~ sequencer.c: In function 'sequencer_draw_preview': +pattern.c:700:18: warning: conversion from 'unsigned int' to 'float' may change value [-Wconversion] + 700 | pattlen[cpatt]*(beats_per_measure*beatdiv), + | ~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~ +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]); + | ^~~~ +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); + | ~~~~~~^~~~~ sequencer.c:1402:66: warning: passing argument 5 of 'draw_textbox' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] 1402 | draw_textbox((DS_WIDTH/2), (DS_HEIGHT/2), 210, (DS_WIDTH*0.8), "", 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); | ~~~~~~^~~~~ +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]); + | ^~~~ sequencer.c:1406:72: warning: passing argument 5 of 'draw_textbox' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] 1406 | draw_textbox((DS_WIDTH/2), (DS_HEIGHT/2)-18, 160, (DS_WIDTH*0.8)-20, "", 0); | ^~ @@ -6134,25 +5940,169 @@ sequencer.c:1418:56: warning: conversion from 'long int' to 'float' may change value [-Wconversion] 1418 | spos=(long)(((float)(i) / ((DS_WIDTH*0.8f)-20.0f)) * render_bufferlen); | ^ +modules.c: In function 'modfunc_slew': +modules.c:29:20: warning: conversion from 'double' to 'float' may change value [-Wfloat-conversion] + 29 | #define mod_ddata ((double*)data) + | ^ +modules.c:644:12: note: in expansion of macro 'mod_ddata' + 644 | float fp=mod_ddata[0]; + | ^~~~~~~~~ +modules.c:647:5: warning: conversion from 'double' to 'float' may change value [-Wfloat-conversion] + 647 | k=((int)(*mod)) ? -log2(1-ms[1]) : ms[1]; + | ^ +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) + | ~~~~~~~~~~~~~~^ +modules.c:641:1: note: in expansion of macro 'MODULE_FUNC' + 641 | MODULE_FUNC(slew) { // slew limiter: ms[0] = cv input, ms[1] = rate + | ^~~~~~~~~~~ +modules.c: At top level: +modules.h:29:39: warning: no previous prototype for 'modfunc_envdet' [-Wmissing-prototypes] + 29 | #define MODULE_FUNC(X) float modfunc_ ##X (unsigned char v, float *mod, void *data, float *ms) + | ^~~~~~~~ +modules.c:658:1: note: in expansion of macro 'MODULE_FUNC' + 658 | MODULE_FUNC(envdet) { // envelope follower: ms[0] = input, ms[1] = attack, ms[2] = release + | ^~~~~~~~~~~ +modules.c: In function 'modfunc_envdet': +modules.c:663:23: warning: conversion from 'double' to 'float' may change value [-Wfloat-conversion] + 663 | float attack_coef = exp(log(0.01)/ms[1]); + | ^~~ +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]); + | ^~~ +modules.c:666:13: warning: conversion from 'double' to 'float' may change value [-Wfloat-conversion] + 666 | float tmp=fabs(ms[0]); + | ^~~~ +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) + | ~~~~~~~~~~~~~~^ +modules.c:658:1: note: in expansion of macro 'MODULE_FUNC' + 658 | MODULE_FUNC(envdet) { // envelope follower: ms[0] = input, ms[1] = attack, ms[2] = release + | ^~~~~~~~~~~ +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); + | ~~~~~~^~~~~ +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) + | ~~~~~~~^~~ +modules.c:658:1: note: in expansion of macro 'MODULE_FUNC' + 658 | MODULE_FUNC(envdet) { // envelope follower: ms[0] = input, ms[1] = attack, ms[2] = release + | ^~~~~~~~~~~ +modules.c: At top level: +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]); + | ^~~~ +modules.h:29:39: warning: no previous prototype for 'modfunc_supersaw' [-Wmissing-prototypes] + 29 | #define MODULE_FUNC(X) float modfunc_ ##X (unsigned char v, float *mod, void *data, float *ms) + | ^~~~~~~~ +modules.c:684:1: note: in expansion of macro 'MODULE_FUNC' + 684 | MODULE_FUNC(supersaw) { + | ^~~~~~~~~~~ +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); + | ~~~~~~^~~~~ +modules.c: In function 'modfunc_supersaw': sequencer.c:1423:33: warning: conversion from 'int' to 'float' may change value [-Wconversion] 1423 | glVertex2f((DS_WIDTH*0.1)+10+i, (DS_HEIGHT/2)-18+s); | ^ +widgets.c: In function 'draw_kbhoct': +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]); + | ^~~~ +modules.c:692:12: warning: conversion from 'double' to 'int' may change value [-Wfloat-conversion] + 692 | m_detune=(127 * clamp(ms[1])); + | ^ +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); + | ~~~~~~^~~~~ +widgets.c:560:14: warning: iteration 4 invokes undefined behavior [-Waggressive-loop-optimizations] + 560 | ckey+=bkj[i]; + | ~~~^~~ +modules.c:693:9: warning: conversion from 'double' to 'int' may change value [-Wfloat-conversion] + 693 | m_mix=(127 * clamp(ms[2])); + | ^ +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]); + | ^~~~ +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); + | ~~~~~~^~~~~ sequencer.c:1424:33: warning: conversion from 'int' to 'float' may change value [-Wconversion] 1424 | glVertex2f((DS_WIDTH*0.1)+10+i, (DS_HEIGHT/2)-18-s); | ^ +widgets.c:531:12: note: within this loop + 531 | for(i=0;i<5;i++) { // black keys + | ~^~ +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]); + | ^~~~ +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); + | ~~~~~~^~~~~ +modules.c:683:25: warning: conversion from 'double' to 'float' may change value [-Wfloat-conversion] + 683 | #define sawtooth(ac) (1.0+2.0*sqrt(ac)) + | ^ +modules.c:698:10: note: in expansion of macro 'sawtooth' + 698 | out+=sawtooth(mod_fdata[i])*supersaw_mix[m_mix][i]; + | ^~~~~~~~ +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]); + | ^~~~ +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); + | ~~~~~~^~~~~ +modules.c:700:19: warning: conversion from 'double' to 'float' may change value [-Wfloat-conversion] + 700 | mod_fdata[i]-=floor(mod_fdata[i]); + | ^~~~~ +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]); + | ^~~~ +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); + | ~~~~~~^~~~~ sequencer.c:1452:54: warning: passing argument 4 of 'draw_button' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] 1452 | draw_button((DS_WIDTH/2)-40, (DS_HEIGHT/2)+92, 16, "i<", seq_ui[B_PREVIEW_REWIND]); | ^~~~ +modules.c:704:7: warning: conversion from 'double' to 'float' may change value [-Wfloat-conversion] + 704 | f = 2*sin(3.14159 * m_pitch); // cutoff in [0.0, 1.0] + | ^ 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); | ~~~~~~^~~~~ sequencer.c: In function 'sequencer_preview_hover': +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)); + | ^ +modules.c:706:5: warning: conversion from 'double' to 'float' may change value [-Wfloat-conversion] + 706 | r=sqrt(q); + | ^~~~ +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)); + | ^~~~~~~ sequencer.c:1463:42: warning: conversion from 'int' to 'float' may change value [-Wconversion] 1463 | seq_ui[B_PREVIEW_REWIND]=hovertest_box(x, y, (DS_WIDTH/2)-40, (DS_HEIGHT/2)+92, 16, 16); | ^ +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]); + | ^~~ +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]); + | ^~~ +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); + | ~~~~~~^~~~~ sequencer.c:1463:45: warning: conversion from 'int' to 'float' may change value [-Wconversion] 1463 | seq_ui[B_PREVIEW_REWIND]=hovertest_box(x, y, (DS_WIDTH/2)-40, (DS_HEIGHT/2)+92, 16, 16); | ^ +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]); + | ^~~ +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); + | ~~~~~~^~~~~ sequencer.c:1464:40: warning: conversion from 'int' to 'float' may change value [-Wconversion] 1464 | seq_ui[B_PREVIEW_PLAY]=hovertest_box(x, y, (DS_WIDTH/2), (DS_HEIGHT/2)+92, 16, 52); | ^ @@ -6168,6 +6118,18 @@ sequencer.c:1475:23: warning: conversion from 'float' to 'int' may change value [-Wfloat-conversion] 1475 | seq_render_hover= ((float)(x-((DS_WIDTH*0.1)+10)) / (float)((DS_WIDTH*0.8)-20)) * render_bufferlen; | ^ +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) + | ~~~~~~~~~~~~~~^ +modules.c:684:1: note: in expansion of macro 'MODULE_FUNC' + 684 | MODULE_FUNC(supersaw) { + | ^~~~~~~~~~~ +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) + | ~~~~~~~^~~ +modules.c:684:1: note: in expansion of macro 'MODULE_FUNC' + 684 | MODULE_FUNC(supersaw) { + | ^~~~~~~~~~~ sequencer.c: In function 'sequencer_preview_click': sequencer.c:1508:50: warning: conversion from 'int' to 'float' may change value [-Wconversion] 1508 | if (button==GLUT_RIGHT_BUTTON && hovertest_box(x,y,(DS_WIDTH/2),(DS_HEIGHT/2),210,(DS_WIDTH*0.8) )) { @@ -6310,6 +6272,9 @@ sequencer.c:1669:44: warning: conversion from 'int' to 'float' may change value [-Wconversion] 1669 | if (state==GLUT_DOWN && !hovertest_box(x,y,(DS_WIDTH/2),(DS_HEIGHT/2),150,240 )) { | ^ +audio.c:708:3: warning: '__builtin_strncpy' output truncated before terminating nul copying 4 bytes from a string of the same length [-Wstringop-truncation] + 708 | strncpy((char*)&w.wav_chunkid, "RIFF", 4); + | ^ sequencer.c:1694:9: warning: this 'if' clause does not guard... [-Wmisleading-indentation] 1694 | if (beats_per_measure < 16) beats_per_measure++; return; | ^~ @@ -6319,9 +6284,18 @@ sequencer.c:1697:9: warning: this 'if' clause does not guard... [-Wmisleading-indentation] 1697 | if (beats_per_measure > 1) beats_per_measure--; return; | ^~ +audio.c:710:3: warning: '__builtin_strncpy' output truncated before terminating nul copying 4 bytes from a string of the same length [-Wstringop-truncation] + 710 | strncpy((char*)&w.wav_format, "WAVE", 4); + | ^ sequencer.c:1697:57: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the 'if' 1697 | if (beats_per_measure > 1) beats_per_measure--; return; | ^~~~~~ +audio.c:711:3: warning: '__builtin_strncpy' output truncated before terminating nul copying 4 bytes from a string of the same length [-Wstringop-truncation] + 711 | strncpy((char*)&w.wav_sub1chunkid, "fmt ", 4); + | ^ +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); + | ^ sequencer.c:1711:50: warning: conversion from 'int' to 'float' may change value [-Wconversion] 1711 | if (button==GLUT_RIGHT_BUTTON && hovertest_box(x,y,(DS_WIDTH/2),(DS_HEIGHT/2),150,240 )) { | ^ @@ -6341,6 +6315,39 @@ | ^~~~~~~~~~~~~~~~~~~~~~~~~~ sequencer.c: In function 'sequencer_bpm_close_dialog': sequencer.c:1745:6: warning: old-style function definition [-Wold-style-definition] +synthesizer.c:953:5: warning: '__builtin_strncpy' output may be truncated copying 64 bytes from a string of length 64 [-Wstringop-truncation] + 953 | strncpy(mod[csynth][synth_label_edit].label, synth_label_text, 64); + | ^ +patch.c: In function 'patch_modulator_click': +patch.c:626:11: warning: array subscript 'long unsigned int[0]' is partly outside array bounds of 'float[1]' [-Warray-bounds=] + 626 | *fptr&=fmask; + | ^~~~~ +patch.c:606:9: note: object 'f' of size 4 + 606 | float f; + | ^ +patch.c:626:11: warning: array subscript 'long unsigned int[0]' is partly outside array bounds of 'float[1]' [-Warray-bounds=] + 626 | *fptr&=fmask; + | ^~~~~ +patch.c:606:9: note: object 'f' of size 4 + 606 | float f; + | ^ +synthesizer.c: In function 'synthlabel_click': +synthesizer.c:934:5: warning: '__builtin_strncpy' output may be truncated copying 64 bytes from a string of length 64 [-Wstringop-truncation] + 934 | strncpy(mod[csynth][synth_label_edit].label, synth_label_text, 64); + | ^ +patch.c: In function 'patch_modulator_keyboard': +patch.c:743:11: warning: array subscript 'long unsigned int[0]' is partly outside array bounds of 'float[1]' [-Warray-bounds=] + 743 | *fptr&=fmask; + | ^~~~~ +patch.c:721:9: note: object 'f' of size 4 + 721 | float f; + | ^ +patch.c:743:11: warning: array subscript 'long unsigned int[0]' is partly outside array bounds of 'float[1]' [-Warray-bounds=] + 743 | *fptr&=fmask; + | ^~~~~ +patch.c:721:9: note: object 'f' of size 4 + 721 | float f; + | ^ 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); @@ -6369,6 +6376,35 @@ | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 32 | __va_arg_pack ()); | ~~~~~~~~~~~~~~~~~ +synthesizer.c: In function 'synth_init': +synthesizer.c:100:11: warning: array subscript 64 is above array bounds of 'synthmodule[64]' [-Warray-bounds=] + 100 | mod[s][m].outputpos=0; + | ~~~~~~^~~ +synthesizer.c:52:13: note: while referencing 'mod' + 52 | synthmodule mod[MAX_SYNTH][MAX_MODULES]; + | ^~~ +synthesizer.c: In function 'synth_clear': +synthesizer.c:146:12: warning: array subscript 64 is above array bounds of 'synthmodule[64]' [-Warray-bounds=] + 146 | mod[csyn][m].outputpos=0; + | ~~~~~~~~~^~~ +synthesizer.c:52:13: note: while referencing 'mod' + 52 | synthmodule mod[MAX_SYNTH][MAX_MODULES]; + | ^~~ +synthesizer.c: In function 'synth_file_checkstate.part.0': +synthesizer.c:798:62: warning: '%s' directive writing up to 254 bytes into a region of size 225 [-Wformat-overflow=] + 798 | sprintf(tmps, "Synthesizer %s saved to disk as %s", synthname[csynth], fn); + | ^~ ~~ +In file included from /usr/include/stdio.h:964, + from synthesizer.h:18: +In function 'sprintf', + inlined from 'synth_file_checkstate.part.0' at synthesizer.c:798:15: +/usr/include/x86_64-linux-gnu/bits/stdio2.h:30:10: note: '__builtin___sprintf_chk' output 31 or more bytes (assuming 285) 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 ()); + | ~~~~~~~~~~~~~~~~~ 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); @@ -6391,11 +6427,11 @@ create-stamp debian/debhelper-build-stamp dh_prep dh_auto_install --destdir=debian/komposter/ - make -j20 install DESTDIR=/build/reproducible-path/komposter-0\+git20201216\+ds/debian/komposter AM_UPDATE_INFO_DIR=no + make -j42 install DESTDIR=/build/reproducible-path/komposter-0\+git20201216\+ds/debian/komposter AM_UPDATE_INFO_DIR=no make[1]: Entering directory '/build/reproducible-path/komposter-0+git20201216+ds' make[2]: Entering directory '/build/reproducible-path/komposter-0+git20201216+ds' - /usr/bin/mkdir -p '/build/reproducible-path/komposter-0+git20201216+ds/debian/komposter/usr/bin' make[2]: Nothing to be done for 'install-data-am'. + /usr/bin/mkdir -p '/build/reproducible-path/komposter-0+git20201216+ds/debian/komposter/usr/bin' /usr/bin/install -c komposter '/build/reproducible-path/komposter-0+git20201216+ds/debian/komposter/usr/bin' make[2]: Leaving directory '/build/reproducible-path/komposter-0+git20201216+ds' make[1]: Leaving directory '/build/reproducible-path/komposter-0+git20201216+ds' @@ -6426,12 +6462,14 @@ dpkg-buildpackage: info: binary-only upload (no source included) dpkg-genchanges: info: not including original source code in upload I: copying local configuration +I: user script /srv/workspace/pbuilder/918419/tmp/hooks/B01_cleanup starting +I: user script /srv/workspace/pbuilder/918419/tmp/hooks/B01_cleanup finished I: unmounting dev/ptmx filesystem I: unmounting dev/pts filesystem I: unmounting dev/shm filesystem I: unmounting proc filesystem I: unmounting sys filesystem I: cleaning the build env -I: removing directory /srv/workspace/pbuilder/2427773 and its subdirectories -I: Current time: Thu May 23 18:37:34 -12 2024 -I: pbuilder-time-stamp: 1716532654 +I: removing directory /srv/workspace/pbuilder/918419 and its subdirectories +I: Current time: Fri Jun 27 03:02:32 +14 2025 +I: pbuilder-time-stamp: 1750942952