Diff of the two buildlogs: -- --- b1/build.log 2023-04-27 17:09:55.297088530 +0000 +++ b2/build.log 2023-04-27 17:11:02.714097153 +0000 @@ -1,6 +1,6 @@ I: pbuilder: network access will be disabled during build -I: Current time: Wed May 29 11:31:02 -12 2024 -I: pbuilder-time-stamp: 1717025462 +I: Current time: Fri Apr 28 07:09:58 +14 2023 +I: pbuilder-time-stamp: 1682615398 I: Building the build Environment I: extracting base tarball [/var/cache/pbuilder/bookworm-reproducible-base.tgz] I: copying local configuration @@ -16,7 +16,7 @@ I: copying [./komposter_0+git20201216+ds.orig.tar.xz] I: copying [./komposter_0+git20201216+ds-2.debian.tar.xz] I: Extracting source -gpgv: Signature made Tue Jan 4 01:03:58 2022 -12 +gpgv: Signature made Wed Jan 5 03:03:58 2022 +14 gpgv: using RSA key B60A1BF363DC1319FF0A8E89116852BCDF7515C0 gpgv: Can't check signature: No public key dpkg-source: warning: cannot verify inline signature for ./komposter_0+git20201216+ds-2.dsc: no acceptable signature found @@ -25,52 +25,84 @@ dpkg-source: info: unpacking komposter_0+git20201216+ds-2.debian.tar.xz I: Not using root during the build. I: Installing the build-deps -I: user script /srv/workspace/pbuilder/1963/tmp/hooks/D02_print_environment starting +I: user script /srv/workspace/pbuilder/7382/tmp/hooks/D01_modify_environment starting +debug: Running on codethink10-arm64. +I: Changing host+domainname to test build reproducibility +I: Adding a custom variable just for the fun of it... +I: Changing /bin/sh to bash +'/bin/sh' -> '/bin/bash' +lrwxrwxrwx 1 root root 9 Apr 28 07:10 /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/7382/tmp/hooks/D01_modify_environment finished +I: user script /srv/workspace/pbuilder/7382/tmp/hooks/D02_print_environment starting I: set - BUILDDIR='/build' - BUILDUSERGECOS='first user,first room,first work-phone,first home-phone,first other' - BUILDUSERNAME='pbuilder1' - BUILD_ARCH='arm64' - DEBIAN_FRONTEND='noninteractive' + 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]="15" [3]="1" [4]="release" [5]="aarch64-unknown-linux-gnu") + BASH_VERSION='5.2.15(1)-release' + BUILDDIR=/build + BUILDUSERGECOS='second user,second room,second work-phone,second home-phone,second other' + BUILDUSERNAME=pbuilder2 + BUILD_ARCH=arm64 + DEBIAN_FRONTEND=noninteractive DEB_BUILD_OPTIONS='buildinfo=+all reproducible=+all parallel=8' - DISTRIBUTION='bookworm' - HOME='/var/lib/jenkins' - HOST_ARCH='arm64' + DIRSTACK=() + DISTRIBUTION=bookworm + EUID=0 + FUNCNAME=([0]="Echo" [1]="main") + GROUPS=() + HOME=/var/lib/jenkins + HOSTNAME=i-capture-the-hostname + HOSTTYPE=aarch64 + HOST_ARCH=arm64 IFS=' ' - 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='1963' - PS1='# ' - PS2='> ' + LANG=C + LANGUAGE=nl_BE:nl + LC_ALL=C + MACHTYPE=aarch64-unknown-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=7382 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.Az69nKi9/pbuilderrc_Ikey --distribution bookworm --hookdir /etc/pbuilder/first-build-hooks --debbuildopts -b --basetgz /var/cache/pbuilder/bookworm-reproducible-base.tgz --buildresult /srv/reproducible-results/rbuild-debian/r-b-build.Az69nKi9/b1 --logfile b1/build.log komposter_0+git20201216+ds-2.dsc' - SUDO_GID='117' - SUDO_UID='110' - SUDO_USER='jenkins' - TERM='unknown' - TZ='/usr/share/zoneinfo/Etc/GMT+12' - USER='root' - USERNAME='root' - _='/usr/bin/systemd-run' - http_proxy='http://192.168.101.16: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.Az69nKi9/pbuilderrc_y23M --distribution bookworm --hookdir /etc/pbuilder/rebuild-hooks --debbuildopts -b --basetgz /var/cache/pbuilder/bookworm-reproducible-base.tgz --buildresult /srv/reproducible-results/rbuild-debian/r-b-build.Az69nKi9/b2 --logfile b2/build.log --extrapackages usrmerge komposter_0+git20201216+ds-2.dsc' + SUDO_GID=117 + SUDO_UID=110 + SUDO_USER=jenkins + TERM=unknown + TZ=/usr/share/zoneinfo/Etc/GMT-14 + UID=0 + USER=root + USERNAME=root + _='I: set' + http_proxy=http://192.168.101.16:3128 I: uname -a - Linux codethink15-arm64 4.15.0-210-generic #221-Ubuntu SMP Tue Apr 18 08:32:48 UTC 2023 aarch64 GNU/Linux + Linux i-capture-the-hostname 4.15.0-210-generic #221-Ubuntu SMP Tue Apr 18 08:32:48 UTC 2023 aarch64 GNU/Linux I: ls -l /bin - lrwxrwxrwx 1 root root 7 May 28 13:18 /bin -> usr/bin -I: user script /srv/workspace/pbuilder/1963/tmp/hooks/D02_print_environment finished + lrwxrwxrwx 1 root root 7 Apr 27 00:25 /bin -> usr/bin +I: user script /srv/workspace/pbuilder/7382/tmp/hooks/D02_print_environment finished -> Attempting to satisfy build-dependencies -> Creating pbuilder-satisfydepends-dummy package Package: pbuilder-satisfydepends-dummy @@ -254,7 +286,7 @@ Get: 130 http://deb.debian.org/debian bookworm/main arm64 pkgconf-bin arm64 1.8.1-1 [28.9 kB] Get: 131 http://deb.debian.org/debian bookworm/main arm64 pkgconf arm64 1.8.1-1 [25.9 kB] Get: 132 http://deb.debian.org/debian bookworm/main arm64 pkg-config arm64 1.8.1-1 [13.7 kB] -Fetched 68.6 MB in 3s (23.1 MB/s) +Fetched 68.6 MB in 2s (36.2 MB/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 ... 19616 files and directories currently installed.) @@ -798,8 +830,17 @@ Writing extended state information... Building tag database... -> Finished parsing the build-deps +Reading package lists... +Building dependency tree... +Reading state information... +usrmerge is already the newest version (35). +0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded. I: Building the package -I: Running cd /build/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-2_source.changes +I: user script /srv/workspace/pbuilder/7382/tmp/hooks/A99_set_merged_usr starting +Re-configuring usrmerge... +I: user script /srv/workspace/pbuilder/7382/tmp/hooks/A99_set_merged_usr finished +hostname: Temporary failure in name resolution +I: Running cd /build/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-2_source.changes dpkg-buildpackage: info: source package komposter dpkg-buildpackage: info: source version 0+git20201216+ds-2 dpkg-buildpackage: info: source distribution unstable @@ -999,27 +1040,26 @@ arch.h:15:5: warning: "__x86_64__" is not defined, evaluates to 0 [-Wundef] 15 | #if __x86_64__ | ^~~~~~~~~~ -In file included from console.h:16, - from console.c:12: -arch.h:15:5: warning: "__x86_64__" is not defined, evaluates to 0 [-Wundef] - 15 | #if __x86_64__ - | ^~~~~~~~~~ In file included from 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(); | ^~~~ -In file included from audio.h:16, - from audio.c:16: +In file included from pattern.h:17, + from buffermm.h:17: arch.h:15:5: warning: "__x86_64__" is not defined, evaluates to 0 [-Wundef] 15 | #if __x86_64__ | ^~~~~~~~~~ -In file included from pattern.h:17, - from buffermm.h:17: +In file included from console.h:16, + from console.c:12: +arch.h:15:5: warning: "__x86_64__" is not defined, evaluates to 0 [-Wundef] + 15 | #if __x86_64__ + | ^~~~~~~~~~ +In file included from audio.h:16, + from audio.c:16: arch.h:15:5: warning: "__x86_64__" is not defined, evaluates to 0 [-Wundef] 15 | #if __x86_64__ | ^~~~~~~~~~ -gcc -DPACKAGE_NAME=\"komposter\" -DPACKAGE_TARNAME=\"komposter\" -DPACKAGE_VERSION=\"2.0.0\" -DPACKAGE_STRING=\"komposter\ 2.0.0\" -DPACKAGE_BUGREPORT=\"email\" -DPACKAGE_URL=\"\" -DPACKAGE=\"komposter\" -DVERSION=\"2.0.0\" -DSTDC_HEADERS=1 -DHAVE_SYS_TYPES_H=1 -DHAVE_SYS_STAT_H=1 -DHAVE_STDLIB_H=1 -DHAVE_STRING_H=1 -DHAVE_MEMORY_H=1 -DHAVE_STRINGS_H=1 -DHAVE_INTTYPES_H=1 -DHAVE_STDINT_H=1 -DHAVE_UNISTD_H=1 -DENABLE_FREETYPE=1 -DHAVE_LIBGLUT=1 -DENABLE_GLUT=1 -DENABLE_OPENAL=1 -DHAVE_LIBGL=1 -DHAVE_LIBGLU=1 -DENABLE_OPENGL=1 -DHAVE_LIBM=1 -DHAVE_LIBPTHREAD=1 -I. -DRESOURCEPATH=\"/usr/share/komposter/\" -Wdate-time -D_FORTIFY_SOURCE=2 -I/usr/local/include -g -O2 -ffile-prefix-map=/build/komposter-0+git20201216+ds=. -fstack-protector-strong -Wformat -Werror=format-security -Wall -pedantic -O3 -fcx-limited-range -ffinite-math-only -fno-math-errno -fno-rounding-math -fno-signaling-nans -fno-trapping-math -fgcse-las -fgcse-sm -fsee -fsingle-precision-constant -fomit-frame-pointer -Wcast-align -Wconversion -Wdisabled-optimization -Wextra -Winit-self -Winvalid-pch -Wmissing-format-attribute -Wmissing-include-dirs -Wmissing-noreturn -Wno-multichar -Wpacked -Wredundant-decls -Wshadow -Wswitch-default -Wundef -Wwrite-strings -Wbad-function-cast -Wmissing-declarations -Wmissing-prototypes -Wnested-externs -Wold-style-definition -Wstrict-prototypes -ftracer -fweb -pipe -Werror-implicit-function-declaration -I/usr/include/freetype2 -I/usr/include/libpng16 -I/usr/include/AL -c -o fileops.o fileops.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(); @@ -1050,18 +1090,20 @@ | ^~~~~~~~~~~~ dotfile.c: In function 'dotfile_save': dotfile.c:78:5: warning: old-style function definition [-Wold-style-definition] +gcc -DPACKAGE_NAME=\"komposter\" -DPACKAGE_TARNAME=\"komposter\" -DPACKAGE_VERSION=\"2.0.0\" -DPACKAGE_STRING=\"komposter\ 2.0.0\" -DPACKAGE_BUGREPORT=\"email\" -DPACKAGE_URL=\"\" -DPACKAGE=\"komposter\" -DVERSION=\"2.0.0\" -DSTDC_HEADERS=1 -DHAVE_SYS_TYPES_H=1 -DHAVE_SYS_STAT_H=1 -DHAVE_STDLIB_H=1 -DHAVE_STRING_H=1 -DHAVE_MEMORY_H=1 -DHAVE_STRINGS_H=1 -DHAVE_INTTYPES_H=1 -DHAVE_STDINT_H=1 -DHAVE_UNISTD_H=1 -DENABLE_FREETYPE=1 -DHAVE_LIBGLUT=1 -DENABLE_GLUT=1 -DENABLE_OPENAL=1 -DHAVE_LIBGL=1 -DHAVE_LIBGLU=1 -DENABLE_OPENGL=1 -DHAVE_LIBM=1 -DHAVE_LIBPTHREAD=1 -I. -DRESOURCEPATH=\"/usr/share/komposter/\" -Wdate-time -D_FORTIFY_SOURCE=2 -I/usr/local/include -g -O2 -ffile-prefix-map=/build/komposter-0+git20201216+ds=. -fstack-protector-strong -Wformat -Werror=format-security -Wall -pedantic -O3 -fcx-limited-range -ffinite-math-only -fno-math-errno -fno-rounding-math -fno-signaling-nans -fno-trapping-math -fgcse-las -fgcse-sm -fsee -fsingle-precision-constant -fomit-frame-pointer -Wcast-align -Wconversion -Wdisabled-optimization -Wextra -Winit-self -Winvalid-pch -Wmissing-format-attribute -Wmissing-include-dirs -Wmissing-noreturn -Wno-multichar -Wpacked -Wredundant-decls -Wshadow -Wswitch-default -Wundef -Wwrite-strings -Wbad-function-cast -Wmissing-declarations -Wmissing-prototypes -Wnested-externs -Wold-style-definition -Wstrict-prototypes -ftracer -fweb -pipe -Werror-implicit-function-declaration -I/usr/include/freetype2 -I/usr/include/libpng16 -I/usr/include/AL -c -o fileops.o fileops.c In file included from widgets.h:20, from dialog.h:16, - from dialog.c:13: + from filedialog.c:13: arch.h:15:5: warning: "__x86_64__" is not defined, evaluates to 0 [-Wundef] 15 | #if __x86_64__ | ^~~~~~~~~~ In file included from widgets.h:20, from dialog.h:16, - from filedialog.c:13: + from dialog.c:13: arch.h:15:5: warning: "__x86_64__" is not defined, evaluates to 0 [-Wundef] 15 | #if __x86_64__ | ^~~~~~~~~~ +gcc -DPACKAGE_NAME=\"komposter\" -DPACKAGE_TARNAME=\"komposter\" -DPACKAGE_VERSION=\"2.0.0\" -DPACKAGE_STRING=\"komposter\ 2.0.0\" -DPACKAGE_BUGREPORT=\"email\" -DPACKAGE_URL=\"\" -DPACKAGE=\"komposter\" -DVERSION=\"2.0.0\" -DSTDC_HEADERS=1 -DHAVE_SYS_TYPES_H=1 -DHAVE_SYS_STAT_H=1 -DHAVE_STDLIB_H=1 -DHAVE_STRING_H=1 -DHAVE_MEMORY_H=1 -DHAVE_STRINGS_H=1 -DHAVE_INTTYPES_H=1 -DHAVE_STDINT_H=1 -DHAVE_UNISTD_H=1 -DENABLE_FREETYPE=1 -DHAVE_LIBGLUT=1 -DENABLE_GLUT=1 -DENABLE_OPENAL=1 -DHAVE_LIBGL=1 -DHAVE_LIBGLU=1 -DENABLE_OPENGL=1 -DHAVE_LIBM=1 -DHAVE_LIBPTHREAD=1 -I. -DRESOURCEPATH=\"/usr/share/komposter/\" -Wdate-time -D_FORTIFY_SOURCE=2 -I/usr/local/include -g -O2 -ffile-prefix-map=/build/komposter-0+git20201216+ds=. -fstack-protector-strong -Wformat -Werror=format-security -Wall -pedantic -O3 -fcx-limited-range -ffinite-math-only -fno-math-errno -fno-rounding-math -fno-signaling-nans -fno-trapping-math -fgcse-las -fgcse-sm -fsee -fsingle-precision-constant -fomit-frame-pointer -Wcast-align -Wconversion -Wdisabled-optimization -Wextra -Winit-self -Winvalid-pch -Wmissing-format-attribute -Wmissing-include-dirs -Wmissing-noreturn -Wno-multichar -Wpacked -Wredundant-decls -Wshadow -Wswitch-default -Wundef -Wwrite-strings -Wbad-function-cast -Wmissing-declarations -Wmissing-prototypes -Wnested-externs -Wold-style-definition -Wstrict-prototypes -ftracer -fweb -pipe -Werror-implicit-function-declaration -I/usr/include/freetype2 -I/usr/include/libpng16 -I/usr/include/AL -c -o font.o font.c In file included from fileops.c:19: modules.h:152:1: warning: function declaration isn't a prototype [-Wstrict-prototypes] 152 | void calc_supersaw_tables(); @@ -1071,7 +1113,11 @@ arch.h:15:5: warning: "__x86_64__" is not defined, evaluates to 0 [-Wundef] 15 | #if __x86_64__ | ^~~~~~~~~~ -gcc -DPACKAGE_NAME=\"komposter\" -DPACKAGE_TARNAME=\"komposter\" -DPACKAGE_VERSION=\"2.0.0\" -DPACKAGE_STRING=\"komposter\ 2.0.0\" -DPACKAGE_BUGREPORT=\"email\" -DPACKAGE_URL=\"\" -DPACKAGE=\"komposter\" -DVERSION=\"2.0.0\" -DSTDC_HEADERS=1 -DHAVE_SYS_TYPES_H=1 -DHAVE_SYS_STAT_H=1 -DHAVE_STDLIB_H=1 -DHAVE_STRING_H=1 -DHAVE_MEMORY_H=1 -DHAVE_STRINGS_H=1 -DHAVE_INTTYPES_H=1 -DHAVE_STDINT_H=1 -DHAVE_UNISTD_H=1 -DENABLE_FREETYPE=1 -DHAVE_LIBGLUT=1 -DENABLE_GLUT=1 -DENABLE_OPENAL=1 -DHAVE_LIBGL=1 -DHAVE_LIBGLU=1 -DENABLE_OPENGL=1 -DHAVE_LIBM=1 -DHAVE_LIBPTHREAD=1 -I. -DRESOURCEPATH=\"/usr/share/komposter/\" -Wdate-time -D_FORTIFY_SOURCE=2 -I/usr/local/include -g -O2 -ffile-prefix-map=/build/komposter-0+git20201216+ds=. -fstack-protector-strong -Wformat -Werror=format-security -Wall -pedantic -O3 -fcx-limited-range -ffinite-math-only -fno-math-errno -fno-rounding-math -fno-signaling-nans -fno-trapping-math -fgcse-las -fgcse-sm -fsee -fsingle-precision-constant -fomit-frame-pointer -Wcast-align -Wconversion -Wdisabled-optimization -Wextra -Winit-self -Winvalid-pch -Wmissing-format-attribute -Wmissing-include-dirs -Wmissing-noreturn -Wno-multichar -Wpacked -Wredundant-decls -Wshadow -Wswitch-default -Wundef -Wwrite-strings -Wbad-function-cast -Wmissing-declarations -Wmissing-prototypes -Wnested-externs -Wold-style-definition -Wstrict-prototypes -ftracer -fweb -pipe -Werror-implicit-function-declaration -I/usr/include/freetype2 -I/usr/include/libpng16 -I/usr/include/AL -c -o font.o font.c +In file included from font.h:16, + from font.c:13: +arch.h:15:5: warning: "__x86_64__" is not defined, evaluates to 0 [-Wundef] + 15 | #if __x86_64__ + | ^~~~~~~~~~ audio.h:56:1: warning: function declaration isn't a prototype [-Wstrict-prototypes] 56 | int audio_exportwav(); //char *filename); | ^~~ @@ -1095,52 +1141,6 @@ arch.h:15:5: warning: "__x86_64__" is not defined, evaluates to 0 [-Wundef] 15 | #if __x86_64__ | ^~~~~~~~~~ -In file included from font.h:16, - from font.c:13: -arch.h:15:5: warning: "__x86_64__" is not defined, evaluates to 0 [-Wundef] - 15 | #if __x86_64__ - | ^~~~~~~~~~ -In file included from font.h:16, - from console.h:17: -arch.h:15:5: warning: "__x86_64__" is not defined, evaluates to 0 [-Wundef] - 15 | #if __x86_64__ - | ^~~~~~~~~~ -In file included from audio.h:16, - from pattern.h:18: -arch.h:15:5: warning: "__x86_64__" is not defined, evaluates to 0 [-Wundef] - 15 | #if __x86_64__ - | ^~~~~~~~~~ -audio.h:56:1: warning: function declaration isn't a prototype [-Wstrict-prototypes] - 56 | int audio_exportwav(); //char *filename); - | ^~~ -In file included from console.h:16, - from pattern.h:19: -arch.h:15:5: warning: "__x86_64__" is not defined, evaluates to 0 [-Wundef] - 15 | #if __x86_64__ - | ^~~~~~~~~~ -In file included from font.h:16, - from console.h:17: -arch.h:15:5: warning: "__x86_64__" is not defined, evaluates to 0 [-Wundef] - 15 | #if __x86_64__ - | ^~~~~~~~~~ -In file included from widgets.h:20, - from pattern.h:22: -arch.h:15:5: warning: "__x86_64__" is not defined, evaluates to 0 [-Wundef] - 15 | #if __x86_64__ - | ^~~~~~~~~~ -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 widgets.h:20, from dialog.h:16, from about.h:17: @@ -1152,13 +1152,46 @@ arch.h:15:5: warning: "__x86_64__" is not defined, evaluates to 0 [-Wundef] 15 | #if __x86_64__ | ^~~~~~~~~~ -In file included from font.h:16, - from widgets.h:22: -arch.h:15:5: warning: "__x86_64__" is not defined, evaluates to 0 [-Wundef] - 15 | #if __x86_64__ - | ^~~~~~~~~~ -In file included from font.h:16, - from widgets.h:22: +In file included from widgets.h:23: +modules.h:152:1: warning: function declaration isn't a prototype [-Wstrict-prototypes] + 152 | void calc_supersaw_tables(); + | ^~~~ +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:20, + from pattern.h:22: arch.h:15:5: warning: "__x86_64__" is not defined, evaluates to 0 [-Wundef] 15 | #if __x86_64__ | ^~~~~~~~~~ @@ -1272,11 +1305,6 @@ 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); | ~~~~~~~~~~~~~~~~~~~^~~~ -In file included from widgets.h:20, - from pattern.h:22: -arch.h:15:5: warning: "__x86_64__" is not defined, evaluates to 0 [-Wundef] - 15 | #if __x86_64__ - | ^~~~~~~~~~ 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); | ^~~~~ @@ -1299,28 +1327,6 @@ audio.c:441:6: warning: no previous prototype for 'audio_render' [-Wmissing-prototypes] 441 | long audio_render(void) | ^~~~~~~~~~~~ -In file included from widgets.h:23: -modules.h:152:1: warning: function declaration isn't a prototype [-Wstrict-prototypes] - 152 | void calc_supersaw_tables(); - | ^~~~ -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': audio.c: In function 'audio_render': 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? @@ -1343,32 +1349,12 @@ audio.c:514:19: warning: comparison of integer expressions of different signedness: 'int' and 'long unsigned int' [-Wsign-compare] 514 | if ( m<(pattlen[pattern]*16) ) { // don't drop gate if next note is legato | ^ -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) - | ~~~~^ 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; | ^ -In file included from widgets.h:23: -modules.h:152:1: warning: function declaration isn't a prototype [-Wstrict-prototypes] - 152 | void calc_supersaw_tables(); - | ^~~~ audio.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); | ~~~~~~~~~~~~~~~~~~~^~~~ @@ -1378,35 +1364,9 @@ 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.c: In function 'dialog_open': -dialog.c:43:18: warning: ISO C forbids assignment between function pointer and 'void *' [-Wpedantic] - 43 | dialog_drawfunc=draw; - | ^ -dialog.c:44:19: warning: ISO C forbids assignment between function pointer and 'void *' [-Wpedantic] - 44 | dialog_hoverfunc=hover; - | ^ 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.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; - | ^ -In file included from widgets.h:23: -modules.h:152:1: warning: function declaration isn't a prototype [-Wstrict-prototypes] - 152 | void calc_supersaw_tables(); - | ^~~~ audio.c:562:13: warning: conversion from 'long int' to 'int' may change value [-Wconversion] 562 | oldtick=ticks; | ^~~~~ @@ -1420,15 +1380,11 @@ audio.c:637:5: warning: switch missing default case [-Wswitch-default] 637 | switch(mt) { | ^~~~~~ +gcc -DPACKAGE_NAME=\"komposter\" -DPACKAGE_TARNAME=\"komposter\" -DPACKAGE_VERSION=\"2.0.0\" -DPACKAGE_STRING=\"komposter\ 2.0.0\" -DPACKAGE_BUGREPORT=\"email\" -DPACKAGE_URL=\"\" -DPACKAGE=\"komposter\" -DVERSION=\"2.0.0\" -DSTDC_HEADERS=1 -DHAVE_SYS_TYPES_H=1 -DHAVE_SYS_STAT_H=1 -DHAVE_STDLIB_H=1 -DHAVE_STRING_H=1 -DHAVE_MEMORY_H=1 -DHAVE_STRINGS_H=1 -DHAVE_INTTYPES_H=1 -DHAVE_STDINT_H=1 -DHAVE_UNISTD_H=1 -DENABLE_FREETYPE=1 -DHAVE_LIBGLUT=1 -DENABLE_GLUT=1 -DENABLE_OPENAL=1 -DHAVE_LIBGL=1 -DHAVE_LIBGLU=1 -DENABLE_OPENGL=1 -DHAVE_LIBM=1 -DHAVE_LIBPTHREAD=1 -I. -DRESOURCEPATH=\"/usr/share/komposter/\" -Wdate-time -D_FORTIFY_SOURCE=2 -I/usr/local/include -g -O2 -ffile-prefix-map=/build/komposter-0+git20201216+ds=. -fstack-protector-strong -Wformat -Werror=format-security -Wall -pedantic -O3 -fcx-limited-range -ffinite-math-only -fno-math-errno -fno-rounding-math -fno-signaling-nans -fno-trapping-math -fgcse-las -fgcse-sm -fsee -fsingle-precision-constant -fomit-frame-pointer -Wcast-align -Wconversion -Wdisabled-optimization -Wextra -Winit-self -Winvalid-pch -Wmissing-format-attribute -Wmissing-include-dirs -Wmissing-noreturn -Wno-multichar -Wpacked -Wredundant-decls -Wshadow -Wswitch-default -Wundef -Wwrite-strings -Wbad-function-cast -Wmissing-declarations -Wmissing-prototypes -Wnested-externs -Wold-style-definition -Wstrict-prototypes -ftracer -fweb -pipe -Werror-implicit-function-declaration -I/usr/include/freetype2 -I/usr/include/libpng16 -I/usr/include/AL -c -o main.o main.c audio.c: At top level: audio.c:698:5: warning: function declaration isn't a prototype [-Wstrict-prototypes] 698 | int audio_exportwav() //char *filename) | ^~~~~~~~~~~~~~~ -In file included from filedialog.h:22, - from filedialog.c:14: -arch.h:15:5: warning: "__x86_64__" is not defined, evaluates to 0 [-Wundef] - 15 | #if __x86_64__ - | ^~~~~~~~~~ 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] @@ -1440,196 +1396,59 @@ 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); | ~~~~~~~~~~~~~~~~^~ -filedialog.c: In function 'filedialog_draw': -filedialog.c:91:55: warning: passing argument 5 of 'draw_textbox' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] - 91 | draw_textbox((DS_WIDTH/2), (DS_HEIGHT/2), 244, 420, "", 0); - | ^~ -widgets.h:38:71: note: expected 'char *' but argument is of type 'const char *' - 38 | void draw_textbox(float x, float y, float height, float length, char *label, int type); - | ~~~~~~^~~~~ -filedialog.c:95:60: warning: passing argument 5 of 'draw_textbox' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] - 95 | draw_textbox((DS_WIDTH/2)-10, (DS_HEIGHT/2)-8, 160, 370, "", 0); - | ^~ -widgets.h:38:71: note: expected 'char *' but argument is of type 'const char *' - 38 | void draw_textbox(float x, float y, float height, float length, char *label, int type); - | ~~~~~~^~~~~ -filedialog.c:97:7: warning: conversion from 'int' to 'float' may change value [-Wconversion] - 97 | fd->sliderpos, 12, fd->g.gl_pathc, - | ~~^~~~~~~~~~~ -filedialog.c:97:29: warning: conversion from 'size_t' {aka '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: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); - | ~~~~~^~~~~~~~~ -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 synthesizer.h:23, - from buffermm.h:18: +In file included from font.h:16, + from console.h:17: arch.h:15:5: warning: "__x86_64__" is not defined, evaluates to 0 [-Wundef] 15 | #if __x86_64__ | ^~~~~~~~~~ -In file included from synthesizer.h:29: -dotfile.h:16:1: warning: function declaration isn't a prototype [-Wstrict-prototypes] - 16 | int dotfile_load(); - | ^~~ -dotfile.h:17:1: warning: function declaration isn't a prototype [-Wstrict-prototypes] - 17 | int dotfile_save(); +In file included from audio.h:16, + from pattern.h:18: +arch.h:15:5: warning: "__x86_64__" is not defined, evaluates to 0 [-Wundef] + 15 | #if __x86_64__ + | ^~~~~~~~~~ +audio.h:56:1: warning: function declaration isn't a prototype [-Wstrict-prototypes] + 56 | int audio_exportwav(); //char *filename); | ^~~ -In file included from filedialog.h:22, - from synthesizer.h:30: +In file included from console.h:16, + from pattern.h:19: arch.h:15:5: warning: "__x86_64__" is not defined, evaluates to 0 [-Wundef] 15 | #if __x86_64__ | ^~~~~~~~~~ -synthesizer.h:84:6: warning: redundant redeclaration of 'synth_stackify' [-Wredundant-decls] - 84 | void synth_stackify(int syn); - | ^~~~~~~~~~~~~~ -gcc -DPACKAGE_NAME=\"komposter\" -DPACKAGE_TARNAME=\"komposter\" -DPACKAGE_VERSION=\"2.0.0\" -DPACKAGE_STRING=\"komposter\ 2.0.0\" -DPACKAGE_BUGREPORT=\"email\" -DPACKAGE_URL=\"\" -DPACKAGE=\"komposter\" -DVERSION=\"2.0.0\" -DSTDC_HEADERS=1 -DHAVE_SYS_TYPES_H=1 -DHAVE_SYS_STAT_H=1 -DHAVE_STDLIB_H=1 -DHAVE_STRING_H=1 -DHAVE_MEMORY_H=1 -DHAVE_STRINGS_H=1 -DHAVE_INTTYPES_H=1 -DHAVE_STDINT_H=1 -DHAVE_UNISTD_H=1 -DENABLE_FREETYPE=1 -DHAVE_LIBGLUT=1 -DENABLE_GLUT=1 -DENABLE_OPENAL=1 -DHAVE_LIBGL=1 -DHAVE_LIBGLU=1 -DENABLE_OPENGL=1 -DHAVE_LIBM=1 -DHAVE_LIBPTHREAD=1 -I. -DRESOURCEPATH=\"/usr/share/komposter/\" -Wdate-time -D_FORTIFY_SOURCE=2 -I/usr/local/include -g -O2 -ffile-prefix-map=/build/komposter-0+git20201216+ds=. -fstack-protector-strong -Wformat -Werror=format-security -Wall -pedantic -O3 -fcx-limited-range -ffinite-math-only -fno-math-errno -fno-rounding-math -fno-signaling-nans -fno-trapping-math -fgcse-las -fgcse-sm -fsee -fsingle-precision-constant -fomit-frame-pointer -Wcast-align -Wconversion -Wdisabled-optimization -Wextra -Winit-self -Winvalid-pch -Wmissing-format-attribute -Wmissing-include-dirs -Wmissing-noreturn -Wno-multichar -Wpacked -Wredundant-decls -Wshadow -Wswitch-default -Wundef -Wwrite-strings -Wbad-function-cast -Wmissing-declarations -Wmissing-prototypes -Wnested-externs -Wold-style-definition -Wstrict-prototypes -ftracer -fweb -pipe -Werror-implicit-function-declaration -I/usr/include/freetype2 -I/usr/include/libpng16 -I/usr/include/AL -c -o main.o main.c -In file included from 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); - | ^~~~~~~~~~~ -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 +In file included from font.h:16, + from console.h:17: +arch.h:15:5: warning: "__x86_64__" is not defined, evaluates to 0 [-Wundef] + 15 | #if __x86_64__ + | ^~~~~~~~~~ +console.c: In function 'console_print': +console.c:44:33: warning: conversion from 'int' to 'float' may change value [-Wconversion] + 44 | render_text(backlog[logptr], x+1, y+1, 2, ((unsigned char)(a)<<24)|0x00000000, 0); + | ~^~ +console.c:44:38: warning: conversion from 'int' to 'float' may change value [-Wconversion] + 44 | render_text(backlog[logptr], x+1, y+1, 2, ((unsigned char)(a)<<24)|0x00000000, 0); + | ~^~ +console.c:45:32: warning: conversion from 'int' to 'float' may change value [-Wconversion] + 45 | render_text(backlog[logptr], x, y, 2, ((unsigned char)(a)<<24)|0x00b05500, 0); + | ^ +console.c:45:35: warning: conversion from 'int' to 'float' may change value [-Wconversion] + 45 | render_text(backlog[logptr], x, y, 2, ((unsigned char)(a)<<24)|0x00b05500, 0); + | ^ In file included from font.h:16, from patch.h:19: arch.h:15:5: warning: "__x86_64__" is not defined, evaluates to 0 [-Wundef] 15 | #if __x86_64__ | ^~~~~~~~~~ -gcc -DPACKAGE_NAME=\"komposter\" -DPACKAGE_TARNAME=\"komposter\" -DPACKAGE_VERSION=\"2.0.0\" -DPACKAGE_STRING=\"komposter\ 2.0.0\" -DPACKAGE_BUGREPORT=\"email\" -DPACKAGE_URL=\"\" -DPACKAGE=\"komposter\" -DVERSION=\"2.0.0\" -DSTDC_HEADERS=1 -DHAVE_SYS_TYPES_H=1 -DHAVE_SYS_STAT_H=1 -DHAVE_STDLIB_H=1 -DHAVE_STRING_H=1 -DHAVE_MEMORY_H=1 -DHAVE_STRINGS_H=1 -DHAVE_INTTYPES_H=1 -DHAVE_STDINT_H=1 -DHAVE_UNISTD_H=1 -DENABLE_FREETYPE=1 -DHAVE_LIBGLUT=1 -DENABLE_GLUT=1 -DENABLE_OPENAL=1 -DHAVE_LIBGL=1 -DHAVE_LIBGLU=1 -DENABLE_OPENGL=1 -DHAVE_LIBM=1 -DHAVE_LIBPTHREAD=1 -I. -DRESOURCEPATH=\"/usr/share/komposter/\" -Wdate-time -D_FORTIFY_SOURCE=2 -I/usr/local/include -g -O2 -ffile-prefix-map=/build/komposter-0+git20201216+ds=. -fstack-protector-strong -Wformat -Werror=format-security -Wall -pedantic -O3 -fcx-limited-range -ffinite-math-only -fno-math-errno -fno-rounding-math -fno-signaling-nans -fno-trapping-math -fgcse-las -fgcse-sm -fsee -fsingle-precision-constant -fomit-frame-pointer -Wcast-align -Wconversion -Wdisabled-optimization -Wextra -Winit-self -Winvalid-pch -Wmissing-format-attribute -Wmissing-include-dirs -Wmissing-noreturn -Wno-multichar -Wpacked -Wredundant-decls -Wshadow -Wswitch-default -Wundef -Wwrite-strings -Wbad-function-cast -Wmissing-declarations -Wmissing-prototypes -Wnested-externs -Wold-style-definition -Wstrict-prototypes -ftracer -fweb -pipe -Werror-implicit-function-declaration -I/usr/include/freetype2 -I/usr/include/libpng16 -I/usr/include/AL -c -o modules.o modules.c -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); +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); + | ^ +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); | ^ -In file included from /usr/include/string.h:535, - from /usr/include/freetype2/freetype/config/ftstdlib.h:88, - from /usr/include/freetype2/freetype/config/ftconfig.h:41, - from /usr/include/freetype2/freetype/freetype.h:24, - from font.h:18: -In function 'strncat', - inlined from 'filedialog_open' at filedialog.c:24:3: -/usr/include/aarch64-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)); - | ~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from synthesizer.h:23, from patch.h:21: arch.h:15:5: warning: "__x86_64__" is not defined, evaluates to 0 [-Wundef] @@ -1666,24 +1485,11 @@ dotfile.h:17:1: warning: function declaration isn't a prototype [-Wstrict-prototypes] 17 | int dotfile_save(); | ^~~ -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); - | ^ -gcc -DPACKAGE_NAME=\"komposter\" -DPACKAGE_TARNAME=\"komposter\" -DPACKAGE_VERSION=\"2.0.0\" -DPACKAGE_STRING=\"komposter\ 2.0.0\" -DPACKAGE_BUGREPORT=\"email\" -DPACKAGE_URL=\"\" -DPACKAGE=\"komposter\" -DVERSION=\"2.0.0\" -DSTDC_HEADERS=1 -DHAVE_SYS_TYPES_H=1 -DHAVE_SYS_STAT_H=1 -DHAVE_STDLIB_H=1 -DHAVE_STRING_H=1 -DHAVE_MEMORY_H=1 -DHAVE_STRINGS_H=1 -DHAVE_INTTYPES_H=1 -DHAVE_STDINT_H=1 -DHAVE_UNISTD_H=1 -DENABLE_FREETYPE=1 -DHAVE_LIBGLUT=1 -DENABLE_GLUT=1 -DENABLE_OPENAL=1 -DHAVE_LIBGL=1 -DHAVE_LIBGLU=1 -DENABLE_OPENGL=1 -DHAVE_LIBM=1 -DHAVE_LIBPTHREAD=1 -I. -DRESOURCEPATH=\"/usr/share/komposter/\" -Wdate-time -D_FORTIFY_SOURCE=2 -I/usr/local/include -g -O2 -ffile-prefix-map=/build/komposter-0+git20201216+ds=. -fstack-protector-strong -Wformat -Werror=format-security -Wall -pedantic -O3 -fcx-limited-range -ffinite-math-only -fno-math-errno -fno-rounding-math -fno-signaling-nans -fno-trapping-math -fgcse-las -fgcse-sm -fsee -fsingle-precision-constant -fomit-frame-pointer -Wcast-align -Wconversion -Wdisabled-optimization -Wextra -Winit-self -Winvalid-pch -Wmissing-format-attribute -Wmissing-include-dirs -Wmissing-noreturn -Wno-multichar -Wpacked -Wredundant-decls -Wshadow -Wswitch-default -Wundef -Wwrite-strings -Wbad-function-cast -Wmissing-declarations -Wmissing-prototypes -Wnested-externs -Wold-style-definition -Wstrict-prototypes -ftracer -fweb -pipe -Werror-implicit-function-declaration -I/usr/include/freetype2 -I/usr/include/libpng16 -I/usr/include/AL -c -o patch.o patch.c In file included from filedialog.h:22, from synthesizer.h:30: arch.h:15:5: warning: "__x86_64__" is not defined, evaluates to 0 [-Wundef] 15 | #if __x86_64__ | ^~~~~~~~~~ -audio.c: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); - | ^ synthesizer.h:84:6: warning: redundant redeclaration of 'synth_stackify' [-Wredundant-decls] 84 | void synth_stackify(int syn); | ^~~~~~~~~~~~~~ @@ -1745,6 +1551,11 @@ fileops.c:228:42: warning: conversion to 'size_t' {aka 'long unsigned int'} from 'int' may change the sign of the result [-Wsign-conversion] 228 | memcpy(&mod[syn], &chunkdata[8+128], nm*128); | ~~^~~~ +In file included from widgets.h:20, + from pattern.h:22: +arch.h:15:5: warning: "__x86_64__" is not defined, evaluates to 0 [-Wundef] + 15 | #if __x86_64__ + | ^~~~~~~~~~ fileops.c: In function 'load_chunk_kbnk': fileops.c:245:27: warning: passing argument 2 of 'load_chunk' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] 245 | chunkdata=load_chunk(f, "KBNK"); @@ -1946,40 +1757,193 @@ 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 | ^ -gcc -DPACKAGE_NAME=\"komposter\" -DPACKAGE_TARNAME=\"komposter\" -DPACKAGE_VERSION=\"2.0.0\" -DPACKAGE_STRING=\"komposter\ 2.0.0\" -DPACKAGE_BUGREPORT=\"email\" -DPACKAGE_URL=\"\" -DPACKAGE=\"komposter\" -DVERSION=\"2.0.0\" -DSTDC_HEADERS=1 -DHAVE_SYS_TYPES_H=1 -DHAVE_SYS_STAT_H=1 -DHAVE_STDLIB_H=1 -DHAVE_STRING_H=1 -DHAVE_MEMORY_H=1 -DHAVE_STRINGS_H=1 -DHAVE_INTTYPES_H=1 -DHAVE_STDINT_H=1 -DHAVE_UNISTD_H=1 -DENABLE_FREETYPE=1 -DHAVE_LIBGLUT=1 -DENABLE_GLUT=1 -DENABLE_OPENAL=1 -DHAVE_LIBGL=1 -DHAVE_LIBGLU=1 -DENABLE_OPENGL=1 -DHAVE_LIBM=1 -DHAVE_LIBPTHREAD=1 -I. -DRESOURCEPATH=\"/usr/share/komposter/\" -Wdate-time -D_FORTIFY_SOURCE=2 -I/usr/local/include -g -O2 -ffile-prefix-map=/build/komposter-0+git20201216+ds=. -fstack-protector-strong -Wformat -Werror=format-security -Wall -pedantic -O3 -fcx-limited-range -ffinite-math-only -fno-math-errno -fno-rounding-math -fno-signaling-nans -fno-trapping-math -fgcse-las -fgcse-sm -fsee -fsingle-precision-constant -fomit-frame-pointer -Wcast-align -Wconversion -Wdisabled-optimization -Wextra -Winit-self -Winvalid-pch -Wmissing-format-attribute -Wmissing-include-dirs -Wmissing-noreturn -Wno-multichar -Wpacked -Wredundant-decls -Wshadow -Wswitch-default -Wundef -Wwrite-strings -Wbad-function-cast -Wmissing-declarations -Wmissing-prototypes -Wnested-externs -Wold-style-definition -Wstrict-prototypes -ftracer -fweb -pipe -Werror-implicit-function-declaration -I/usr/include/freetype2 -I/usr/include/libpng16 -I/usr/include/AL -c -o pattern.o pattern.c -In file included from audio.h:16, - from modules.c:18: +gcc -DPACKAGE_NAME=\"komposter\" -DPACKAGE_TARNAME=\"komposter\" -DPACKAGE_VERSION=\"2.0.0\" -DPACKAGE_STRING=\"komposter\ 2.0.0\" -DPACKAGE_BUGREPORT=\"email\" -DPACKAGE_URL=\"\" -DPACKAGE=\"komposter\" -DVERSION=\"2.0.0\" -DSTDC_HEADERS=1 -DHAVE_SYS_TYPES_H=1 -DHAVE_SYS_STAT_H=1 -DHAVE_STDLIB_H=1 -DHAVE_STRING_H=1 -DHAVE_MEMORY_H=1 -DHAVE_STRINGS_H=1 -DHAVE_INTTYPES_H=1 -DHAVE_STDINT_H=1 -DHAVE_UNISTD_H=1 -DENABLE_FREETYPE=1 -DHAVE_LIBGLUT=1 -DENABLE_GLUT=1 -DENABLE_OPENAL=1 -DHAVE_LIBGL=1 -DHAVE_LIBGLU=1 -DENABLE_OPENGL=1 -DHAVE_LIBM=1 -DHAVE_LIBPTHREAD=1 -I. -DRESOURCEPATH=\"/usr/share/komposter/\" -Wdate-time -D_FORTIFY_SOURCE=2 -I/usr/local/include -g -O2 -ffile-prefix-map=/build/komposter-0+git20201216+ds=. -fstack-protector-strong -Wformat -Werror=format-security -Wall -pedantic -O3 -fcx-limited-range -ffinite-math-only -fno-math-errno -fno-rounding-math -fno-signaling-nans -fno-trapping-math -fgcse-las -fgcse-sm -fsee -fsingle-precision-constant -fomit-frame-pointer -Wcast-align -Wconversion -Wdisabled-optimization -Wextra -Winit-self -Winvalid-pch -Wmissing-format-attribute -Wmissing-include-dirs -Wmissing-noreturn -Wno-multichar -Wpacked -Wredundant-decls -Wshadow -Wswitch-default -Wundef -Wwrite-strings -Wbad-function-cast -Wmissing-declarations -Wmissing-prototypes -Wnested-externs -Wold-style-definition -Wstrict-prototypes -ftracer -fweb -pipe -Werror-implicit-function-declaration -I/usr/include/freetype2 -I/usr/include/libpng16 -I/usr/include/AL -c -o modules.o modules.c +In file included from synthesizer.h:23, + from buffermm.h:18: arch.h:15:5: warning: "__x86_64__" is not defined, evaluates to 0 [-Wundef] 15 | #if __x86_64__ | ^~~~~~~~~~ -In file included from patch.h:17, - from patch.c:13: +In file included from synthesizer.h:29: +dotfile.h:16:1: warning: function declaration isn't a prototype [-Wstrict-prototypes] + 16 | int dotfile_load(); + | ^~~ +dotfile.h:17:1: warning: function declaration isn't a prototype [-Wstrict-prototypes] + 17 | int dotfile_save(); + | ^~~ +In file included from filedialog.h:22, + from synthesizer.h:30: arch.h:15:5: warning: "__x86_64__" is not defined, evaluates to 0 [-Wundef] 15 | #if __x86_64__ | ^~~~~~~~~~ -In file included from main.c:27: +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); + | ^~~~~~~~~~~ +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 +In file included from font.h:16, + from widgets.h:22: arch.h:15:5: warning: "__x86_64__" is not defined, evaluates to 0 [-Wundef] 15 | #if __x86_64__ | ^~~~~~~~~~ -filedialog.c: In function 'filedialog_draw': -filedialog.c:126:7: warning: '__builtin_strncpy' specified bound 255 equals destination size [-Wstringop-truncation] - 126 | strncpy(tmps, strrchr(fd->g.gl_pathv[i], '/')+1, 255); - | ^ -filedialog.c:126:7: warning: '__builtin_strncpy' specified bound 255 equals destination size [-Wstringop-truncation] -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); - | ^~~~~~~~~~~~~~~~~~~~~~~~~ -filedialog.c:116:7: warning: '__builtin_strncpy' specified bound 255 equals destination size [-Wstringop-truncation] - 116 | strncpy(tmps, rindex(ttmps, '/')+1, 255); - | ^ -In file included from pattern.h:17, - from pattern.c:13: +In file included from font.h:16, + from widgets.h:22: +arch.h:15:5: warning: "__x86_64__" is not defined, evaluates to 0 [-Wundef] + 15 | #if __x86_64__ + | ^~~~~~~~~~ +In file included from widgets.h:23: +modules.h:152:1: warning: function declaration isn't a prototype [-Wstrict-prototypes] + 152 | void calc_supersaw_tables(); + | ^~~~ +In file included from filedialog.h:22, + from filedialog.c:14: arch.h:15:5: warning: "__x86_64__" is not defined, evaluates to 0 [-Wundef] 15 | #if __x86_64__ | ^~~~~~~~~~ +filedialog.c: In function 'filedialog_draw': +filedialog.c:91:55: warning: passing argument 5 of 'draw_textbox' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] + 91 | draw_textbox((DS_WIDTH/2), (DS_HEIGHT/2), 244, 420, "", 0); + | ^~ +widgets.h:38:71: note: expected 'char *' but argument is of type 'const char *' + 38 | void draw_textbox(float x, float y, float height, float length, char *label, int type); + | ~~~~~~^~~~~ +filedialog.c:95:60: warning: passing argument 5 of 'draw_textbox' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] + 95 | draw_textbox((DS_WIDTH/2)-10, (DS_HEIGHT/2)-8, 160, 370, "", 0); + | ^~ +widgets.h:38:71: note: expected 'char *' but argument is of type 'const char *' + 38 | void draw_textbox(float x, float y, float height, float length, char *label, int type); + | ~~~~~~^~~~~ +filedialog.c:97:7: warning: conversion from 'int' to 'float' may change value [-Wconversion] + 97 | fd->sliderpos, 12, fd->g.gl_pathc, + | ~~^~~~~~~~~~~ +filedialog.c:97:29: warning: conversion from 'size_t' {aka '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: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); + | ~~~~~^~~~~~~~~ +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) + | ~~~~^ font.c:61:14: warning: no previous prototype for 'tpow2' [-Wmissing-prototypes] 61 | unsigned int tpow2(unsigned int x) | ^~~~~ @@ -2024,6 +1988,10 @@ 131 | font_bitmap[f][c][ ( slot->bitmap.rows-(j+1) )*texw + i] = p; | ^ font.c: In function 'render_text': +In file included from widgets.h:23: +modules.h:152:1: warning: function declaration isn't a prototype [-Wstrict-prototypes] + 152 | void calc_supersaw_tables(); + | ^~~~ 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]]; | ^~ @@ -2054,15 +2022,37 @@ 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]]); | ^ +dialog.c: In function 'dialog_open': +dialog.c:43:18: warning: ISO C forbids assignment between function pointer and 'void *' [-Wpedantic] + 43 | dialog_drawfunc=draw; + | ^ +dialog.c:44:19: warning: ISO C forbids assignment between function pointer and 'void *' [-Wpedantic] + 44 | dialog_hoverfunc=hover; + | ^ 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]], | ^ +dialog.c:45:19: warning: ISO C forbids assignment between function pointer and 'void *' [-Wpedantic] + 45 | dialog_clickfunc=click; + | ^ 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]], | ^ +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; + | ^ 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]]); | ^ +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; + | ^ 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]]); | ^ @@ -2078,6 +2068,64 @@ font.c:194:7: warning: conversion from 'int' to 'float' may change value [-Wconversion] 194 | xp+=font_advance[fontnr][(int)text[n]]; | ^~ +In file included from main.c:27: +arch.h:15:5: warning: "__x86_64__" is not defined, evaluates to 0 [-Wundef] + 15 | #if __x86_64__ + | ^~~~~~~~~~ +filedialog.c: In function 'filedialog_open': +filedialog.c:24:3: warning: '__builtin___strncat_chk' specified bound 255 equals destination size [-Wstringop-truncation] + 24 | strncat((char*)&fd->fmask, ext, 255); + | ^ +In file included from /usr/include/string.h:535, + from /usr/include/freetype2/freetype/config/ftstdlib.h:88, + from /usr/include/freetype2/freetype/config/ftconfig.h:41, + from /usr/include/freetype2/freetype/freetype.h:24, + from font.h:18: +In function 'strncat', + inlined from 'filedialog_open' at filedialog.c:24:3: +/usr/include/aarch64-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)); + | ~~~~~~~~~~~~~~~~~~~~~~~~~ +gcc -DPACKAGE_NAME=\"komposter\" -DPACKAGE_TARNAME=\"komposter\" -DPACKAGE_VERSION=\"2.0.0\" -DPACKAGE_STRING=\"komposter\ 2.0.0\" -DPACKAGE_BUGREPORT=\"email\" -DPACKAGE_URL=\"\" -DPACKAGE=\"komposter\" -DVERSION=\"2.0.0\" -DSTDC_HEADERS=1 -DHAVE_SYS_TYPES_H=1 -DHAVE_SYS_STAT_H=1 -DHAVE_STDLIB_H=1 -DHAVE_STRING_H=1 -DHAVE_MEMORY_H=1 -DHAVE_STRINGS_H=1 -DHAVE_INTTYPES_H=1 -DHAVE_STDINT_H=1 -DHAVE_UNISTD_H=1 -DENABLE_FREETYPE=1 -DHAVE_LIBGLUT=1 -DENABLE_GLUT=1 -DENABLE_OPENAL=1 -DHAVE_LIBGL=1 -DHAVE_LIBGLU=1 -DENABLE_OPENGL=1 -DHAVE_LIBM=1 -DHAVE_LIBPTHREAD=1 -I. -DRESOURCEPATH=\"/usr/share/komposter/\" -Wdate-time -D_FORTIFY_SOURCE=2 -I/usr/local/include -g -O2 -ffile-prefix-map=/build/komposter-0+git20201216+ds=. -fstack-protector-strong -Wformat -Werror=format-security -Wall -pedantic -O3 -fcx-limited-range -ffinite-math-only -fno-math-errno -fno-rounding-math -fno-signaling-nans -fno-trapping-math -fgcse-las -fgcse-sm -fsee -fsingle-precision-constant -fomit-frame-pointer -Wcast-align -Wconversion -Wdisabled-optimization -Wextra -Winit-self -Winvalid-pch -Wmissing-format-attribute -Wmissing-include-dirs -Wmissing-noreturn -Wno-multichar -Wpacked -Wredundant-decls -Wshadow -Wswitch-default -Wundef -Wwrite-strings -Wbad-function-cast -Wmissing-declarations -Wmissing-prototypes -Wnested-externs -Wold-style-definition -Wstrict-prototypes -ftracer -fweb -pipe -Werror-implicit-function-declaration -I/usr/include/freetype2 -I/usr/include/libpng16 -I/usr/include/AL -c -o patch.o patch.c +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 audio.h:16, + from modules.c:18: +arch.h:15:5: warning: "__x86_64__" is not defined, evaluates to 0 [-Wundef] + 15 | #if __x86_64__ + | ^~~~~~~~~~ +In file included from patch.h:17, + from patch.c:13: +arch.h:15:5: warning: "__x86_64__" is not defined, evaluates to 0 [-Wundef] + 15 | #if __x86_64__ + | ^~~~~~~~~~ +gcc -DPACKAGE_NAME=\"komposter\" -DPACKAGE_TARNAME=\"komposter\" -DPACKAGE_VERSION=\"2.0.0\" -DPACKAGE_STRING=\"komposter\ 2.0.0\" -DPACKAGE_BUGREPORT=\"email\" -DPACKAGE_URL=\"\" -DPACKAGE=\"komposter\" -DVERSION=\"2.0.0\" -DSTDC_HEADERS=1 -DHAVE_SYS_TYPES_H=1 -DHAVE_SYS_STAT_H=1 -DHAVE_STDLIB_H=1 -DHAVE_STRING_H=1 -DHAVE_MEMORY_H=1 -DHAVE_STRINGS_H=1 -DHAVE_INTTYPES_H=1 -DHAVE_STDINT_H=1 -DHAVE_UNISTD_H=1 -DENABLE_FREETYPE=1 -DHAVE_LIBGLUT=1 -DENABLE_GLUT=1 -DENABLE_OPENAL=1 -DHAVE_LIBGL=1 -DHAVE_LIBGLU=1 -DENABLE_OPENGL=1 -DHAVE_LIBM=1 -DHAVE_LIBPTHREAD=1 -I. -DRESOURCEPATH=\"/usr/share/komposter/\" -Wdate-time -D_FORTIFY_SOURCE=2 -I/usr/local/include -g -O2 -ffile-prefix-map=/build/komposter-0+git20201216+ds=. -fstack-protector-strong -Wformat -Werror=format-security -Wall -pedantic -O3 -fcx-limited-range -ffinite-math-only -fno-math-errno -fno-rounding-math -fno-signaling-nans -fno-trapping-math -fgcse-las -fgcse-sm -fsee -fsingle-precision-constant -fomit-frame-pointer -Wcast-align -Wconversion -Wdisabled-optimization -Wextra -Winit-self -Winvalid-pch -Wmissing-format-attribute -Wmissing-include-dirs -Wmissing-noreturn -Wno-multichar -Wpacked -Wredundant-decls -Wshadow -Wswitch-default -Wundef -Wwrite-strings -Wbad-function-cast -Wmissing-declarations -Wmissing-prototypes -Wnested-externs -Wold-style-definition -Wstrict-prototypes -ftracer -fweb -pipe -Werror-implicit-function-declaration -I/usr/include/freetype2 -I/usr/include/libpng16 -I/usr/include/AL -c -o pattern.o pattern.c +filedialog.c: In function 'filedialog_draw': +filedialog.c:126:7: warning: '__builtin_strncpy' specified bound 255 equals destination size [-Wstringop-truncation] + 126 | strncpy(tmps, strrchr(fd->g.gl_pathv[i], '/')+1, 255); + | ^ +filedialog.c:126:7: warning: '__builtin_strncpy' specified bound 255 equals destination size [-Wstringop-truncation] +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); + | ^~~~~~~~~~~~~~~~~~~~~~~~~ +filedialog.c:116:7: warning: '__builtin_strncpy' specified bound 255 equals destination size [-Wstringop-truncation] + 116 | strncpy(tmps, rindex(ttmps, '/')+1, 255); + | ^ +In file included from pattern.h:17, + from pattern.c:13: +arch.h:15:5: warning: "__x86_64__" is not defined, evaluates to 0 [-Wundef] + 15 | #if __x86_64__ + | ^~~~~~~~~~ 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); @@ -2108,13 +2156,7 @@ | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 139 | __glibc_objsize (__dest)); | ~~~~~~~~~~~~~~~~~~~~~~~~~ -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); - | ^ +gcc -DPACKAGE_NAME=\"komposter\" -DPACKAGE_TARNAME=\"komposter\" -DPACKAGE_VERSION=\"2.0.0\" -DPACKAGE_STRING=\"komposter\ 2.0.0\" -DPACKAGE_BUGREPORT=\"email\" -DPACKAGE_URL=\"\" -DPACKAGE=\"komposter\" -DVERSION=\"2.0.0\" -DSTDC_HEADERS=1 -DHAVE_SYS_TYPES_H=1 -DHAVE_SYS_STAT_H=1 -DHAVE_STDLIB_H=1 -DHAVE_STRING_H=1 -DHAVE_MEMORY_H=1 -DHAVE_STRINGS_H=1 -DHAVE_INTTYPES_H=1 -DHAVE_STDINT_H=1 -DHAVE_UNISTD_H=1 -DENABLE_FREETYPE=1 -DHAVE_LIBGLUT=1 -DENABLE_GLUT=1 -DENABLE_OPENAL=1 -DHAVE_LIBGL=1 -DHAVE_LIBGLU=1 -DENABLE_OPENGL=1 -DHAVE_LIBM=1 -DHAVE_LIBPTHREAD=1 -I. -DRESOURCEPATH=\"/usr/share/komposter/\" -Wdate-time -D_FORTIFY_SOURCE=2 -I/usr/local/include -g -O2 -ffile-prefix-map=/build/komposter-0+git20201216+ds=. -fstack-protector-strong -Wformat -Werror=format-security -Wall -pedantic -O3 -fcx-limited-range -ffinite-math-only -fno-math-errno -fno-rounding-math -fno-signaling-nans -fno-trapping-math -fgcse-las -fgcse-sm -fsee -fsingle-precision-constant -fomit-frame-pointer -Wcast-align -Wconversion -Wdisabled-optimization -Wextra -Winit-self -Winvalid-pch -Wmissing-format-attribute -Wmissing-include-dirs -Wmissing-noreturn -Wno-multichar -Wpacked -Wredundant-decls -Wshadow -Wswitch-default -Wundef -Wwrite-strings -Wbad-function-cast -Wmissing-declarations -Wmissing-prototypes -Wnested-externs -Wold-style-definition -Wstrict-prototypes -ftracer -fweb -pipe -Werror-implicit-function-declaration -I/usr/include/freetype2 -I/usr/include/libpng16 -I/usr/include/AL -c -o sequencer.o sequencer.c filedialog.c: In function 'filedialog_keyboard': filedialog.c:250:7: warning: '__builtin___strncat_chk' specified bound 512 equals destination size [-Wstringop-truncation] 250 | strncat(fd->fullpath, fd->fmask+1, 512); @@ -2133,31 +2175,8 @@ | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 139 | __glibc_objsize (__dest)); | ~~~~~~~~~~~~~~~~~~~~~~~~~ -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(); - | ^~~~ -In file included from pattern.h:17, - from buffermm.h:17: -arch.h:15:5: warning: "__x86_64__" is not defined, evaluates to 0 [-Wundef] - 15 | #if __x86_64__ - | ^~~~~~~~~~ -In file included from console.h:16, - from pattern.h:19: -arch.h:15:5: warning: "__x86_64__" is not defined, evaluates to 0 [-Wundef] - 15 | #if __x86_64__ - | ^~~~~~~~~~ -In file included from font.h:16, - from console.h:17: -arch.h:15:5: warning: "__x86_64__" is not defined, evaluates to 0 [-Wundef] - 15 | #if __x86_64__ - | ^~~~~~~~~~ -In file included from widgets.h:20, - from pattern.h:22: +In file included from sequencer.h:17, + from sequencer.c:13: arch.h:15:5: warning: "__x86_64__" is not defined, evaluates to 0 [-Wundef] 15 | #if __x86_64__ | ^~~~~~~~~~ @@ -2177,28 +2196,11 @@ arch.h:15:5: warning: "__x86_64__" is not defined, evaluates to 0 [-Wundef] 15 | #if __x86_64__ | ^~~~~~~~~~ +gcc -DPACKAGE_NAME=\"komposter\" -DPACKAGE_TARNAME=\"komposter\" -DPACKAGE_VERSION=\"2.0.0\" -DPACKAGE_STRING=\"komposter\ 2.0.0\" -DPACKAGE_BUGREPORT=\"email\" -DPACKAGE_URL=\"\" -DPACKAGE=\"komposter\" -DVERSION=\"2.0.0\" -DSTDC_HEADERS=1 -DHAVE_SYS_TYPES_H=1 -DHAVE_SYS_STAT_H=1 -DHAVE_STDLIB_H=1 -DHAVE_STRING_H=1 -DHAVE_MEMORY_H=1 -DHAVE_STRINGS_H=1 -DHAVE_INTTYPES_H=1 -DHAVE_STDINT_H=1 -DHAVE_UNISTD_H=1 -DENABLE_FREETYPE=1 -DHAVE_LIBGLUT=1 -DENABLE_GLUT=1 -DENABLE_OPENAL=1 -DHAVE_LIBGL=1 -DHAVE_LIBGLU=1 -DENABLE_OPENGL=1 -DHAVE_LIBM=1 -DHAVE_LIBPTHREAD=1 -I. -DRESOURCEPATH=\"/usr/share/komposter/\" -Wdate-time -D_FORTIFY_SOURCE=2 -I/usr/local/include -g -O2 -ffile-prefix-map=/build/komposter-0+git20201216+ds=. -fstack-protector-strong -Wformat -Werror=format-security -Wall -pedantic -O3 -fcx-limited-range -ffinite-math-only -fno-math-errno -fno-rounding-math -fno-signaling-nans -fno-trapping-math -fgcse-las -fgcse-sm -fsee -fsingle-precision-constant -fomit-frame-pointer -Wcast-align -Wconversion -Wdisabled-optimization -Wextra -Winit-self -Winvalid-pch -Wmissing-format-attribute -Wmissing-include-dirs -Wmissing-noreturn -Wno-multichar -Wpacked -Wredundant-decls -Wshadow -Wswitch-default -Wundef -Wwrite-strings -Wbad-function-cast -Wmissing-declarations -Wmissing-prototypes -Wnested-externs -Wold-style-definition -Wstrict-prototypes -ftracer -fweb -pipe -Werror-implicit-function-declaration -I/usr/include/freetype2 -I/usr/include/libpng16 -I/usr/include/AL -c -o shader.o shader.c In file included from widgets.h:23: 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 -ffile-prefix-map=/build/komposter-0+git20201216+ds=. -fstack-protector-strong -Wformat -Werror=format-security -Wall -pedantic -O3 -fcx-limited-range -ffinite-math-only -fno-math-errno -fno-rounding-math -fno-signaling-nans -fno-trapping-math -fgcse-las -fgcse-sm -fsee -fsingle-precision-constant -fomit-frame-pointer -Wcast-align -Wconversion -Wdisabled-optimization -Wextra -Winit-self -Winvalid-pch -Wmissing-format-attribute -Wmissing-include-dirs -Wmissing-noreturn -Wno-multichar -Wpacked -Wredundant-decls -Wshadow -Wswitch-default -Wundef -Wwrite-strings -Wbad-function-cast -Wmissing-declarations -Wmissing-prototypes -Wnested-externs -Wold-style-definition -Wstrict-prototypes -ftracer -fweb -pipe -Werror-implicit-function-declaration -I/usr/include/freetype2 -I/usr/include/libpng16 -I/usr/include/AL -c -o sequencer.o sequencer.c -In file included from synthesizer.h:23, - from buffermm.h:18: -arch.h:15:5: warning: "__x86_64__" is not defined, evaluates to 0 [-Wundef] - 15 | #if __x86_64__ - | ^~~~~~~~~~ -In file included from synthesizer.h:29: -dotfile.h:16:1: warning: function declaration isn't a prototype [-Wstrict-prototypes] - 16 | int dotfile_load(); - | ^~~ -dotfile.h:17:1: warning: function declaration isn't a prototype [-Wstrict-prototypes] - 17 | int dotfile_save(); - | ^~~ -In file included from filedialog.h:22, - from synthesizer.h:30: -arch.h:15:5: warning: "__x86_64__" is not defined, evaluates to 0 [-Wundef] - 15 | #if __x86_64__ - | ^~~~~~~~~~ In file included from audio.h:16, from main.c:29: arch.h:15:5: warning: "__x86_64__" is not defined, evaluates to 0 [-Wundef] @@ -2218,29 +2220,6 @@ arch.h:15:5: warning: "__x86_64__" is not defined, evaluates to 0 [-Wundef] 15 | #if __x86_64__ | ^~~~~~~~~~ -synthesizer.h:84:6: warning: redundant redeclaration of 'synth_stackify' [-Wredundant-decls] - 84 | void synth_stackify(int syn); - | ^~~~~~~~~~~~~~ -In file included from synthesizer.h:31: -fileops.h:62:6: note: previous declaration of 'synth_stackify' with type 'void(int)' - 62 | void synth_stackify(int syn); - | ^~~~~~~~~~~~~~ -synthesizer.h:85:5: warning: redundant redeclaration of 'synth_trace' [-Wredundant-decls] - 85 | int synth_trace(int syn, int pm, int fifo); - | ^~~~~~~~~~~ -fileops.h:63:5: note: previous declaration of 'synth_trace' with type 'int(int, int, int)' - 63 | int synth_trace(int syn, int pm, int top); - | ^~~~~~~~~~~ -In file included from sequencer.h:17, - from modules.c:22: -arch.h:15:5: warning: "__x86_64__" is not defined, evaluates to 0 [-Wundef] - 15 | #if __x86_64__ - | ^~~~~~~~~~ -In file included from patch.h:17, - from sequencer.h:23: -arch.h:15:5: warning: "__x86_64__" is not defined, evaluates to 0 [-Wundef] - 15 | #if __x86_64__ - | ^~~~~~~~~~ In file included from synthesizer.h:23, from buffermm.h:18: arch.h:15:5: warning: "__x86_64__" is not defined, evaluates to 0 [-Wundef] @@ -2253,15 +2232,6 @@ dotfile.h:17:1: warning: function declaration isn't a prototype [-Wstrict-prototypes] 17 | int dotfile_save(); | ^~~ -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(); - | ^~~~ -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; - | ^~~~~~~~~~ In file included from filedialog.h:22, from synthesizer.h:30: arch.h:15:5: warning: "__x86_64__" is not defined, evaluates to 0 [-Wundef] @@ -2280,9 +2250,6 @@ fileops.h:63:5: note: previous declaration of 'synth_trace' with type 'int(int, int, int)' 63 | int synth_trace(int syn, int pm, int top); | ^~~~~~~~~~~ -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"}; - | ^~~~~~~ In file included from patch.h:17, from main.c:38: arch.h:15:5: warning: "__x86_64__" is not defined, evaluates to 0 [-Wundef] @@ -2332,45 +2299,6 @@ 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); | ^ -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"}; - | ^~~~~ -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"}; - | ^~~~~~ -modules.c:312:40: warning: initialization discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] - 312 | char* modLfoWaveforms[LFO_WAVEFORMS]={"Square", "Saw", "Triangle", "Sine"}; - | ^~~~~~~~ -modules.c:312:50: warning: initialization discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] - 312 | char* modLfoWaveforms[LFO_WAVEFORMS]={"Square", "Saw", "Triangle", "Sine"}; - | ^~~~~ -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"}; - | ^~~~~~~~~~ -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"}; - | ^~~~~~~~~~~~~~~~ main.c:91:37: 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); | ^ @@ -2439,23 +2367,6 @@ 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: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"}; - | ^~~~~~~~~~~~~ -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}; - | ^ -In file included from font.h:16, - from patch.h:19: -arch.h:15:5: warning: "__x86_64__" is not defined, evaluates to 0 [-Wundef] - 15 | #if __x86_64__ - | ^~~~~~~~~~ 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; } | ^~~~~~~~~~~~~~~ @@ -2551,17 +2462,412 @@ 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); | ~~~~~~^~~~~ +main.c:285:47: warning: passing argument 4 of 'draw_button' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] + 285 | draw_button(DS_WIDTH-137, DS_HEIGHT-14, 16, "2", main_ui[MAIN_PAGE2]); + | ^~~ +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); + | ~~~~~~^~~~~ +main.c:286:47: warning: passing argument 4 of 'draw_button' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] + 286 | draw_button(DS_WIDTH-115, DS_HEIGHT-14, 16, "3", main_ui[MAIN_PAGE3]); + | ^~~ +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); + | ~~~~~~^~~~~ +main.c:287:46: warning: passing argument 4 of 'draw_button' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] + 287 | draw_button(DS_WIDTH-93, DS_HEIGHT-14, 16, "4", main_ui[MAIN_PAGE4]); + | ^~~ +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); + | ~~~~~~^~~~~ +main.c:288:51: warning: passing argument 5 of 'draw_textbox' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] + 288 | draw_textbox(DS_WIDTH-42, DS_HEIGHT-14, 16, 74, "komposter", main_ui[MAIN_ABOUT]); + | ^~~~~~~~~~~ +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); + | ~~~~~~^~~~~ +main.c:292:47: warning: passing argument 4 of 'draw_button' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] + 292 | draw_button(DS_WIDTH-206, DS_HEIGHT-14, 16, "!!!", main_ui[MAIN_PANIC]); + | ^~~~~ +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); + | ~~~~~~^~~~~ +main.c:295:6: warning: conversion from 'double' to 'float' may change value [-Wfloat-conversion] + 295 | rf=fmin(1.0f, audio_latest_peak); + | ^~~~ +main.c:298:44: warning: passing argument 5 of 'draw_textbox' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] + 298 | draw_textbox(728, DS_HEIGHT-14, 16, 100, "", main_ui[MAIN_VU]); + | ^~ +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); + | ~~~~~~^~~~~ +main.c:310:24: warning: conversion to 'unsigned int' from 'int' may change the sign of the result [-Wsign-conversion] + 310 | unsigned int color=0x00b05500|(panic<<24); + | ^~~~~~~~~~ +main.c: At top level: +main.c:322:6: warning: no previous prototype for 'cleanup' [-Wmissing-prototypes] + 322 | void cleanup(void) + | ^~~~~~~ +main.c:332:5: warning: no previous prototype for 'is_dir' [-Wmissing-prototypes] + 332 | int is_dir(const char *path) + | ^~~~~~ +main.c: In function 'main': +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); + | ~~~~~~^~~~ +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); + | ^~~~~~~~~~~~ +audio.h:56:1: warning: function declaration isn't a prototype [-Wstrict-prototypes] + 56 | int audio_exportwav(); //char *filename); + | ^~~ +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); + | ~~~~~~^~~~~ +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); + | ~~~~~~^~~~~ +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); + | ~~~~~~^~~~~~ +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(); + | ^~~~ +In file included from pattern.h:17, + from buffermm.h:17: +arch.h:15:5: warning: "__x86_64__" is not defined, evaluates to 0 [-Wundef] + 15 | #if __x86_64__ + | ^~~~~~~~~~ +In file included from console.h:16, + from pattern.h:19: +arch.h:15:5: warning: "__x86_64__" is not defined, evaluates to 0 [-Wundef] + 15 | #if __x86_64__ + | ^~~~~~~~~~ +In file included from font.h:16, + from console.h:17: +arch.h:15:5: warning: "__x86_64__" is not defined, evaluates to 0 [-Wundef] + 15 | #if __x86_64__ + | ^~~~~~~~~~ +In file included from audio.h:16, + from pattern.h:18: +arch.h:15:5: warning: "__x86_64__" is not defined, evaluates to 0 [-Wundef] + 15 | #if __x86_64__ + | ^~~~~~~~~~ +audio.h:56:1: warning: function declaration isn't a prototype [-Wstrict-prototypes] + 56 | int audio_exportwav(); //char *filename); + | ^~~ +In file included from console.h:16, + from pattern.h:19: +arch.h:15:5: warning: "__x86_64__" is not defined, evaluates to 0 [-Wundef] + 15 | #if __x86_64__ + | ^~~~~~~~~~ +In file included from font.h:16, + from console.h:17: +arch.h:15:5: warning: "__x86_64__" is not defined, evaluates to 0 [-Wundef] + 15 | #if __x86_64__ + | ^~~~~~~~~~ +main.c: In function 'audio_playback': +main.c:222:7: warning: function might be candidate for attribute 'noreturn' [-Wsuggest-attribute=noreturn] + 222 | void *audio_playback(void *param) + | ^~~~~~~~~~~~~~ +main.c: In function 'audio_renderer': +main.c:233:7: warning: function might be candidate for attribute 'noreturn' [-Wsuggest-attribute=noreturn] + 233 | void *audio_renderer(void *param) + | ^~~~~~~~~~~~~~ +In file included from widgets.h:20, + from pattern.h:22: +arch.h:15:5: warning: "__x86_64__" is not defined, evaluates to 0 [-Wundef] + 15 | #if __x86_64__ + | ^~~~~~~~~~ +In file included from shader.h:17, + from shader.c:16: +arch.h:15:5: warning: "__x86_64__" is not defined, evaluates to 0 [-Wundef] + 15 | #if __x86_64__ + | ^~~~~~~~~~ +main.c: In function 'cleanup': +main.c:322:6: warning: function might be candidate for attribute 'noreturn' [-Wsuggest-attribute=noreturn] + 322 | void cleanup(void) + | ^~~~~~~ +In file included from synthesizer.h:23, + from buffermm.h:18: +arch.h:15:5: warning: "__x86_64__" is not defined, evaluates to 0 [-Wundef] + 15 | #if __x86_64__ + | ^~~~~~~~~~ +In file included from synthesizer.h:29: +dotfile.h:16:1: warning: function declaration isn't a prototype [-Wstrict-prototypes] + 16 | int dotfile_load(); + | ^~~ +dotfile.h:17:1: warning: function declaration isn't a prototype [-Wstrict-prototypes] + 17 | int dotfile_save(); + | ^~~ +In file included from filedialog.h:22, + from synthesizer.h:30: +arch.h:15:5: warning: "__x86_64__" is not defined, evaluates to 0 [-Wundef] + 15 | #if __x86_64__ + | ^~~~~~~~~~ +synthesizer.h:84:6: warning: redundant redeclaration of 'synth_stackify' [-Wredundant-decls] + 84 | void synth_stackify(int syn); + | ^~~~~~~~~~~~~~ +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 sequencer.h:17, + from modules.c:22: +arch.h:15:5: warning: "__x86_64__" is not defined, evaluates to 0 [-Wundef] + 15 | #if __x86_64__ + | ^~~~~~~~~~ +In file included from patch.h:17, + from sequencer.h:23: +arch.h:15:5: warning: "__x86_64__" is not defined, evaluates to 0 [-Wundef] + 15 | #if __x86_64__ + | ^~~~~~~~~~ +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(); + | ^~~~ +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; + | ^~~~~~~~~~ +In file included from widgets.h:20, + from pattern.h:22: +arch.h:15:5: warning: "__x86_64__" is not defined, evaluates to 0 [-Wundef] + 15 | #if __x86_64__ + | ^~~~~~~~~~ +In file included from widgets.h:23: +modules.h:152:1: warning: function declaration isn't a prototype [-Wstrict-prototypes] + 152 | void calc_supersaw_tables(); + | ^~~~ +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"}; + | ^~~~~~~ +pattern.c: In function 'pattern_init': +pattern.c:100:6: warning: old-style function definition [-Wold-style-definition] + 100 | void pattern_init() + | ^~~~~~~~~~~~ +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"}; + | ^~~~~ +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"}; + | ^~~~~~~~~~ +pattern.c: At top level: +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"}; + | ^~~~~~ +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] +modules.c:312:40: warning: initialization discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] + 312 | char* modLfoWaveforms[LFO_WAVEFORMS]={"Square", "Saw", "Triangle", "Sine"}; + | ^~~~~~~~ +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) + | ^~~~~~~~~~~~~~~~~ +modules.c:312:50: warning: initialization discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] + 312 | char* modLfoWaveforms[LFO_WAVEFORMS]={"Square", "Saw", "Triangle", "Sine"}; + | ^~~~~ +modules.c:312:57: warning: initialization discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] + 312 | char* modLfoWaveforms[LFO_WAVEFORMS]={"Square", "Saw", "Triangle", "Sine"}; + | ^~~~~~~~~~ +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); + | ^~~~~~~~~~~~~~~~~ +modules.c:312:69: warning: initialization discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] + 312 | char* modLfoWaveforms[LFO_WAVEFORMS]={"Square", "Saw", "Triangle", "Sine"}; + | ^~~~~~ +pattern.c:153:41: warning: conversion to 'long 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 'long unsigned int' to 'float' may change value [-Wconversion] + 153 | x < (PIANOROLL_X + (pattlen[cpatt]*(beats_per_measure*beatdiv))*PIANOROLL_CELLWIDTH + 1) && + | ^ +modules.c:313:32: warning: initialization discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] + 313 | char* modVcfModes[VCF_MODES]={"Off", "Lowpass", "Highpass", "Bandpass"}; + | ^~~~~ +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; + | ^~~~~~~~~~~ +modules.c:313:39: warning: initialization discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] + 313 | char* modVcfModes[VCF_MODES]={"Off", "Lowpass", "Highpass", "Bandpass"}; + | ^~~~~~~~~ +pattern.c:159:20: warning: conversion from 'int' to 'float' may change value [-Wconversion] + 159 | cy=abs((int)((y-PIANOROLL_Y-2)/PIANOROLL_CELLHEIGHT)); + | ^ +modules.c:313:50: warning: initialization discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] + 313 | char* modVcfModes[VCF_MODES]={"Off", "Lowpass", "Highpass", "Bandpass"}; + | ^~~~~~~~~~ +pattern.c: In function 'pattern_mouse_hover': +modules.c:313:62: warning: initialization discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] + 313 | char* modVcfModes[VCF_MODES]={"Off", "Lowpass", "Highpass", "Bandpass"}; + | ^~~~~~~~~~ +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); + | ^ +modules.c:314:36: warning: initialization discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] + 314 | char* modDelayModes[DELAY_MODES]={"Comb filter", "Allpass filter"}; + | ^~~~~~~~~~~~~ +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); + | ^ +modules.c:314:51: warning: initialization discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] + 314 | char* modDelayModes[DELAY_MODES]={"Comb filter", "Allpass filter"}; + | ^~~~~~~~~~~~~~~~ +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); + | ^ +modules.c:315:34: warning: initialization discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] + 315 | char* modSlewModes[SLEW_MODES]={"Linear", "Logarithmic"}; + | ^~~~~~~~ +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); + | ^ +modules.c:315:44: warning: initialization discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] + 315 | char* modSlewModes[SLEW_MODES]={"Linear", "Logarithmic"}; + | ^~~~~~~~~~~~~ +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 'long 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)); + | ^ +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}; + | ^ +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)); + | ^~~~~~~~~~~ +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:195:79: warning: conversion from 'long unsigned int' to 'float' may change value [-Wconversion] + 195 | piano_start, (DS_WIDTH-(PIANOROLL_X+4))/PIANOROLL_CELLWIDTH, pattlen[cpatt]*(beats_per_measure*beatdiv)); + | ~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~ 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': +pattern.c: In function 'pattern_mouse_drag': modules.c:353:6: warning: old-style function definition [-Wold-style-definition] +pattern.c:218:23: warning: conversion to 'long unsigned int' from 'int' may change the sign of the result [-Wsign-conversion] + 218 | cip=pattlen[cpatt]*(beats_per_measure*beatdiv); // cells in pattern + | ^ +pattern.c:218:9: warning: conversion from 'long unsigned int' to 'float' may change value [-Wconversion] + 218 | cip=pattlen[cpatt]*(beats_per_measure*beatdiv); // cells in pattern + | ^~~~~~~ +pattern.c:220:10: warning: conversion from 'int' to 'float' may change value [-Wconversion] + 220 | f=((x-slide_drag_xofs)/(sbw-slw))*(cip-cos); + | ^ 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; | ^ +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); + | ^ 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; | ^~~ +pattern.c:228:7: warning: conversion from 'long unsigned int' to 'int' may change value [-Wconversion] + 228 | n=pattdata[cpatt][piano_start+piano_porta_drag]; // current note being dragged + | ^~~~~~~~ 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; | ^ @@ -2573,6 +2879,10 @@ 378 | MODULE_FUNC(kbd) { return *mod=pitch[v]/OUTPUTFREQ; } | ^~~~~~~~~~~ modules.c: In function 'modfunc_kbd': +pattern.c: In function 'pattern_mouse_click': +pattern.c:254:41: warning: comparison of integer expressions of different signedness: 'int' and 'long unsigned int' [-Wsign-compare] + 254 | if (piano_hover>=0 && piano_note==(pattdata[cpatt][piano_start+piano_hover]&0xff)) { + | ^~ 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) | ~~~~~~^~~~ @@ -2592,6 +2902,12 @@ modules.c:380:1: note: in expansion of macro 'MODULE_FUNC' 380 | MODULE_FUNC(modulator) { | ^~~~~~~~~~~ +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"); + | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ +console.h:23:25: note: expected 'char *' but argument is of type 'const char *' + 23 | void console_post(char *msg); + | ~~~~~~^~~ 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) @@ -2605,6 +2921,9 @@ modules.c:380:1: note: in expansion of macro 'MODULE_FUNC' 380 | MODULE_FUNC(modulator) { | ^~~~~~~~~~~ +pattern.c:289:36: warning: conversion to 'long 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; + | ^ modules.c: At top level: 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) @@ -2612,13 +2931,22 @@ modules.c:390:1: note: in expansion of macro 'MODULE_FUNC' 390 | MODULE_FUNC(output) { return ms[0]*(*mod); } | ^~~~~~~~~~~ +pattern.c:289:20: warning: conversion from 'long unsigned int' to 'int' may change value [-Wconversion] + 289 | for(i=((pattlen[cpatt]*(beats_per_measure*beatdiv))/2); i<(pattlen[cpatt]*(beats_per_measure*beatdiv)); i++) pattdata[cpatt][i]=0; + | ^ modules.c: In function 'modfunc_output': +pattern.c:289:87: warning: conversion to 'long 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; + | ^ 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); } | ^~~~~~~~~~~ +pattern.c:289:71: warning: comparison of integer expressions of different signedness: 'int' and 'long 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; + | ^ 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) | ~~~~~~^~~~ @@ -2626,6 +2954,9 @@ 390 | MODULE_FUNC(output) { return ms[0]*(*mod); } | ^~~~~~~~~~~ modules.c: At top level: +pattern.c:295:31: warning: conversion to 'long 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--; + | ^ 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) | ^~~~~~~~ @@ -2633,6 +2964,9 @@ 393 | MODULE_FUNC(accent) { | ^~~~~~~~~~~ modules.c: In function 'modfunc_accent': +pattern.c:295:60: warning: conversion from 'long unsigned int' to 'float' may change value [-Wconversion] + 295 | ( 1+pattlen[cpatt]*(beats_per_measure*beatdiv) - ( (DS_WIDTH-(PIANOROLL_X))/PIANOROLL_CELLWIDTH ) ) ) piano_start--; + | ^ 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) | ~~~~~~^~~~ @@ -2652,67 +2986,64 @@ modules.c:398:1: note: in expansion of macro 'MODULE_FUNC' 398 | MODULE_FUNC(vco) // phase-accumulating oscillator w/ suboscillator | ^~~~~~~~~~~ +pattern.c:308:40: warning: conversion to 'long 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 'long 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]; + | ^ modules.c: In function 'modfunc_vco': modules.c:403:17: warning: conversion from 'double' to 'float' may change value [-Wfloat-conversion] 403 | mod_fdata[0]-=floor(mod_fdata[0]); | ^~~~~ -main.c:285:47: warning: passing argument 4 of 'draw_button' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] - 285 | draw_button(DS_WIDTH-137, DS_HEIGHT-14, 16, "2", main_ui[MAIN_PAGE2]); - | ^~~ -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); - | ~~~~~~^~~~~ -main.c:286:47: warning: passing argument 4 of 'draw_button' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] - 286 | draw_button(DS_WIDTH-115, DS_HEIGHT-14, 16, "3", main_ui[MAIN_PAGE3]); - | ^~~ -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); - | ~~~~~~^~~~~ -main.c:287:46: warning: passing argument 4 of 'draw_button' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] - 287 | draw_button(DS_WIDTH-93, DS_HEIGHT-14, 16, "4", main_ui[MAIN_PAGE4]); - | ^~~ -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); - | ~~~~~~^~~~~ -main.c:288:51: warning: passing argument 5 of 'draw_textbox' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] - 288 | draw_textbox(DS_WIDTH-42, DS_HEIGHT-14, 16, 74, "komposter", main_ui[MAIN_ABOUT]); - | ^~~~~~~~~~~ -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); - | ~~~~~~^~~~~ -main.c:292:47: warning: passing argument 4 of 'draw_button' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] - 292 | draw_button(DS_WIDTH-206, DS_HEIGHT-14, 16, "!!!", main_ui[MAIN_PANIC]); - | ^~~~~ -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); - | ~~~~~~^~~~~ -main.c:295:6: warning: conversion from 'double' to 'float' may change value [-Wfloat-conversion] - 295 | rf=fmin(1.0f, audio_latest_peak); - | ^~~~ -main.c:298:44: warning: passing argument 5 of 'draw_textbox' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] - 298 | draw_textbox(728, DS_HEIGHT-14, 16, 100, "", main_ui[MAIN_VU]); - | ^~ -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); - | ~~~~~~^~~~~ -main.c:310:24: warning: conversion to 'unsigned int' from 'int' may change the sign of the result [-Wsign-conversion] - 310 | unsigned int color=0x00b05500|(panic<<24); - | ^~~~~~~~~~ +pattern.c:308:113: warning: conversion to 'long 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 'long 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]; + | ^ modules.c:407:17: warning: conversion from 'double' to 'float' may change value [-Wfloat-conversion] 407 | mod_fdata[1]-=floor(mod_fdata[1]); | ^~~~~ +pattern.c:328:34: warning: conversion to 'long unsigned int' from 'int' may change the sign of the result [-Wsign-conversion] + 328 | for(i=0; i1) loopend=ms[2]; // use loop input if greater than 1 sample | ^~ +pattern.c:530:46: warning: conversion to 'long 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)); + | ^ +pattern.c:530:74: warning: conversion to 'long 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)); + | ^ +pattern.c:530:30: warning: conversion from 'long 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)); + | ^ modules.c:534:16: warning: conversion to 'long unsigned int' from 'long int' may change the sign of the result [-Wsign-conversion] 534 | mod_ldata[2]=(writeptr+1)%loopend; | ^ @@ -2838,16 +3192,28 @@ modules.c:540:1: note: in expansion of macro 'MODULE_FUNC' 540 | MODULE_FUNC(dist) { // simple clipping distort | ^~~~~~~~~~~ +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)); + | ^ modules.c: In function 'modfunc_dist': +pattern.c:531:46: warning: conversion to 'long 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)); + | ^ 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:531:74: warning: conversion to 'long 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)); + | ^ 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 | ^~~~~~~~~~~ +pattern.c:531:30: warning: conversion from 'long 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)); + | ^ 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) | ~~~~~~~^~~ @@ -2861,12 +3227,18 @@ 540 | MODULE_FUNC(dist) { // simple clipping distort | ^~~~~~~~~~~ modules.c: At top level: +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)); + | ^ 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 | ^~~~~~~~~~~ +pattern.c:532:95: warning: conversion from 'int' to 'float' may change value [-Wconversion] + 532 | glVertex2f(PIANOROLL_X, PIANOROLL_Y-((j+1)*PIANOROLL_CELLHEIGHT)); + | ^ 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) @@ -2881,6 +3253,9 @@ 569 | MODULE_FUNC(resample) { // sample-and-hold | ^~~~~~~~~~~ modules.c: At top level: +pattern.c:540:44: warning: conversion from 'int' to 'float' may change value [-Wconversion] + 540 | glVertex2f(PIANOROLL_X, PIANOROLL_Y-(j*PIANOROLL_CELLHEIGHT)); + | ^ 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) | ^~~~~~~~ @@ -2888,12 +3263,18 @@ 583 | MODULE_FUNC(cv) { return *mod; } | ^~~~~~~~~~~ modules.c: In function 'modfunc_cv': +pattern.c:541:43: warning: conversion to 'long 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.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; } | ^~~~~~~~~~~ +pattern.c:541:71: warning: conversion to 'long 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.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) | ~~~~~~^~~~ @@ -2907,6 +3288,9 @@ 583 | MODULE_FUNC(cv) { return *mod; } | ^~~~~~~~~~~ modules.c: At top level: +pattern.c:541:27: warning: conversion from 'long 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)); + | ^ 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) | ^~~~~~~~ @@ -2914,6 +3298,9 @@ 584 | MODULE_FUNC(amp) { return ms[0]*ms[1]; } | ^~~~~~~~~~~ modules.c: In function 'modfunc_amp': +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.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) | ~~~~~~~~~~~~~~^ @@ -2932,6 +3319,12 @@ modules.c:584:1: note: in expansion of macro 'MODULE_FUNC' 584 | MODULE_FUNC(amp) { return ms[0]*ms[1]; } | ^~~~~~~~~~~ +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); + | ^~~~~~~~~~~~~~~~~ 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) @@ -2940,12 +3333,18 @@ 585 | MODULE_FUNC(att) { return ms[0]* *mod; } | ^~~~~~~~~~~ modules.c: In function 'modfunc_att': +pattern.c:553:42: warning: conversion to 'long 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++) { + | ^ 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:553:26: warning: comparison of integer expressions of different signedness: 'int' and 'long unsigned int' [-Wsign-compare] + 553 | for(i=0,j=piano_start;j<(pattlen[cpatt]*(beats_per_measure*beatdiv)+1);i++,j++) { + | ^ 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) | ~~~~~~^~~~ @@ -2960,12 +3359,18 @@ 586 | MODULE_FUNC(mixer) { return ms[0]+ms[1]+ms[2]+ms[3]; } | ^~~~~~~~~~~ modules.c: In function 'modfunc_mixer': +pattern.c:560:38: warning: conversion to 'long unsigned int' from 'int' may change the sign of the result [-Wsign-conversion] + 560 | if ((j%b)==0 && j<(pattlen[cpatt]*b)) { + | ^ 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:560:22: warning: comparison of integer expressions of different signedness: 'int' and 'long unsigned int' [-Wsign-compare] + 560 | if ((j%b)==0 && j<(pattlen[cpatt]*b)) { + | ^ 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) | ~~~~~~~^~~ @@ -2979,22 +3384,43 @@ 586 | MODULE_FUNC(mixer) { return ms[0]+ms[1]+ms[2]+ms[3]; } | ^~~~~~~~~~~ modules.c: At top level: +pattern.c:563:40: warning: conversion from 'int' to 'float' may change value [-Wconversion] + 563 | render_text(tmps, 2.5+PIANOROLL_X+(i*PIANOROLL_CELLWIDTH), round(PIANOROLL_Y+PIANOROLL_CELLHEIGHT), 2, 0xffa0a0a0, 0); + | ^ 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:569:27: warning: conversion from 'int' to 'float' may change value [-Wconversion] + 569 | glVertex2f(PIANOROLL_X+i*PIANOROLL_CELLWIDTH, round(PIANOROLL_Y+PIANOROLL_CELLHEIGHT)); + | ^ +pattern.c:570:27: warning: conversion from 'int' to 'float' may change value [-Wconversion] + 570 | glVertex2f(PIANOROLL_X+i*PIANOROLL_CELLWIDTH, round(PIANOROLL_Y-lineheight)); //(PIANOROLL_OCTAVES*12)*PIANOROLL_CELLHEIGHT))); + | ^ +pattern.c:570:51: warning: conversion from 'double' to 'GLfloat' {aka 'float'} may change value [-Wfloat-conversion] + 570 | glVertex2f(PIANOROLL_X+i*PIANOROLL_CELLWIDTH, round(PIANOROLL_Y-lineheight)); //(PIANOROLL_OCTAVES*12)*PIANOROLL_CELLHEIGHT))); + | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~ modules.c: In function 'modfunc_lpf24': +pattern.c:577:19: warning: conversion to 'long unsigned int' from 'int' may change the sign of the result [-Wsign-conversion] + 577 | ticks=playpos / (OUTPUTFREQ/(bpm*256/60)); // calc tick from sample index + | ^ modules.c:613:19: warning: conversion from 'double' to 'float' may change value [-Wfloat-conversion] 613 | return mod_ddata[3]; //out4; | ^ +pattern.c:577:11: warning: conversion to 'long int' from 'long unsigned int' may change the sign of the result [-Wsign-conversion] + 577 | ticks=playpos / (OUTPUTFREQ/(bpm*256/60)); // calc tick from sample index + | ^~~~~~~ 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:578:63: warning: conversion to 'long unsigned int' from 'int' may change the sign of the result [-Wsign-conversion] + 578 | if ( (ticks>>6)>=piano_start && (ticks>>6)<(pattlen[cpatt]*(beats_per_measure*beatdiv)) ) // TODO: test if pos > pianostart+rollwidth + | ^ 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) | ~~~~~~~^~~ @@ -3002,6 +3428,9 @@ 590 | MODULE_FUNC(lpf24) { // 24db/oct four-pole low pass | ^~~~~~~~~~~ modules.c: At top level: +pattern.c:578:47: warning: comparison of integer expressions of different signedness: 'long int' and 'long unsigned int' [-Wsign-compare] + 578 | if ( (ticks>>6)>=piano_start && (ticks>>6)<(pattlen[cpatt]*(beats_per_measure*beatdiv)) ) // TODO: test if pos > pianostart+rollwidth + | ^ 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) | ^~~~~~~~ @@ -3009,9 +3438,15 @@ 625 | MODULE_FUNC(bitcrush) { | ^~~~~~~~~~~ modules.c: In function 'modfunc_bitcrush': +pattern.c:581:9: warning: conversion from 'long int' to 'int' may change value [-Wconversion] + 581 | i=(ticks>>6)-piano_start; + | ^ modules.c:627:12: warning: conversion from 'float' to 'int' may change value [-Wfloat-conversion] 627 | int rate=ms[1]*32766+1; | ^~ +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)); + | ^ modules.c:628:10: warning: conversion from 'float' to 'int' may change value [-Wfloat-conversion] 628 | int in=ms[0]*32767; | ^~ @@ -3021,12 +3456,18 @@ modules.c:625:1: note: in expansion of macro 'MODULE_FUNC' 625 | MODULE_FUNC(bitcrush) { | ^~~~~~~~~~~ +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))); + | ^ 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) { | ^~~~~~~~~~~ +pattern.c:591:42: warning: conversion to 'long 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++) { + | ^ 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) | ~~~~~~^~~~ @@ -3034,6 +3475,9 @@ 625 | MODULE_FUNC(bitcrush) { | ^~~~~~~~~~~ modules.c: At top level: +pattern.c:591:26: warning: comparison of integer expressions of different signedness: 'int' and 'long unsigned int' [-Wsign-compare] + 591 | for(i=0,j=piano_start;j<(pattlen[cpatt]*(beats_per_measure*beatdiv));i++,j++) { + | ^ 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) | ^~~~~~~~ @@ -3047,9 +3491,18 @@ modules.c:644:12: note: in expansion of macro 'mod_ddata' 644 | float fp=mod_ddata[0]; | ^~~~~~~~~ +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); + | ^~~~~~~~~~~ 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]; | ^ +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); + | ^ 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) | ~~~~~~~~~~~~~~^ @@ -3057,22 +3510,46 @@ 641 | MODULE_FUNC(slew) { // slew limiter: ms[0] = cv input, ms[1] = rate | ^~~~~~~~~~~ modules.c: At top level: +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); + | ^ 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 | ^~~~~~~~~~~ +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); + | ^ modules.c: In function 'modfunc_envdet': +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); + | ^ 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]); | ^~~ +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); + | ^ 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]); | ^~~ +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:666:13: warning: conversion from 'double' to 'float' may change value [-Wfloat-conversion] 666 | float tmp=fabs(ms[0]); | ^~~~ +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); + | ^ 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) | ~~~~~~~~~~~~~~^ @@ -3085,6 +3562,9 @@ 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 | ^~~~~~~~~~~ +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); + | ^ modules.c: At top level: 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) @@ -3092,116 +3572,296 @@ modules.c:684:1: note: in expansion of macro 'MODULE_FUNC' 684 | MODULE_FUNC(supersaw) { | ^~~~~~~~~~~ +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, + | ^~~~~~~~~~~ modules.c: In function 'modfunc_supersaw': modules.c:692:12: warning: conversion from 'double' to 'int' may change value [-Wfloat-conversion] 692 | m_detune=(127 * clamp(ms[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, + | ^ modules.c:693:9: warning: conversion from 'double' to 'int' may change value [-Wfloat-conversion] 693 | m_mix=(127 * clamp(ms[2])); | ^ +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: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:612:26: warning: conversion from 'int' to 'float' may change value [-Wconversion] + 612 | PIANOROLL_Y-2-(n-coct*12+1)*PIANOROLL_CELLHEIGHT, + | ^ modules.c:700:19: warning: conversion from 'double' to 'float' may change value [-Wfloat-conversion] 700 | mod_fdata[i]-=floor(mod_fdata[i]); | ^~~~~ 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] | ^ +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); + | ^ modules.c:706:5: warning: conversion from 'double' to 'float' may change value [-Wfloat-conversion] 706 | r=sqrt(q); | ^~~~ +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); + | ^ 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) { | ^~~~~~~~~~~ +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); + | ^ 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) { | ^~~~~~~~~~~ -main.c: In function 'audio_playback': -In file included from audio.h:16, - from pattern.h:18: -arch.h:15:5: warning: "__x86_64__" is not defined, evaluates to 0 [-Wundef] - 15 | #if __x86_64__ - | ^~~~~~~~~~ -audio.h:56:1: warning: function declaration isn't a prototype [-Wstrict-prototypes] - 56 | int audio_exportwav(); //char *filename); - | ^~~ -In file included from console.h:16, - from pattern.h:19: -arch.h:15:5: warning: "__x86_64__" is not defined, evaluates to 0 [-Wundef] - 15 | #if __x86_64__ - | ^~~~~~~~~~ +pattern.c:635:70: warning: conversion from 'int' to 'float' may change value [-Wconversion] + 635 | glVertex2f(PIANOROLL_X+(j+l)*PIANOROLL_CELLWIDTH, PIANOROLL_Y-1-(n-coct*12)*PIANOROLL_CELLHEIGHT); + | ^ +pattern.c:636:29: warning: conversion from 'int' to 'float' may change value [-Wconversion] + 636 | glVertex2f(PIANOROLL_X+(j+l)*PIANOROLL_CELLWIDTH, PIANOROLL_Y-(n-coct*12+1)*PIANOROLL_CELLHEIGHT); + | ^ +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); + | ^ +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); + | ^ +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); + | ^ +pattern.c:645:7: warning: conversion from 'long unsigned int' to 'int' may change value [-Wconversion] + 645 | n=pattdata[cpatt][piano_start+piano_porta_drag]; + | ^~~~~~~~ +pattern.c:648:29: warning: conversion from 'int' to 'float' may change value [-Wconversion] + 648 | glVertex2f(1+PIANOROLL_X+piano_porta_drag*PIANOROLL_CELLWIDTH, PIANOROLL_Y-1-(n-coct*12)*PIANOROLL_CELLHEIGHT); + | ^ +pattern.c:648:81: warning: conversion from 'int' to 'float' may change value [-Wconversion] + 648 | glVertex2f(1+PIANOROLL_X+piano_porta_drag*PIANOROLL_CELLWIDTH, PIANOROLL_Y-1-(n-coct*12)*PIANOROLL_CELLHEIGHT); + | ^ +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); + | ^ +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); + | ^ +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); + | ^ +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); + | ^ +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); + | ^ +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); + | ^ +pattern.c:653:31: warning: comparison of integer expressions of different signedness: 'int' and 'long unsigned int' [-Wsign-compare] + 653 | if (piano_porta_drag_from != pattdata[cpatt][piano_start+piano_porta_drag]) { + | ^~ +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); + | ^ +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); + | ^ +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); + | ^ +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); + | ^ +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); + | ^ +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); + | ^ +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); + | ^ +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); + | ^ +pattern.c:667:7: warning: conversion from 'long unsigned int' to 'int' may change value [-Wconversion] + 667 | n=pattdata[cpatt][piano_start+piano_drag]; + | ^~~~~~~~ +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); + | ^ +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); + | ^ +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); + | ^ +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); + | ^ +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); + | ^ +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); + | ^ +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); + | ^ +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 'long unsigned int' from 'int' may change the sign of the result [-Wsign-conversion] + 685 | glVertex2f(PIANOROLL_X+(pattlen[cpatt]*(beats_per_measure*beatdiv)-piano_start)*PIANOROLL_CELLWIDTH, + | ^ +pattern.c:685:77: warning: conversion to 'long unsigned int' from 'int' may change the sign of the result [-Wsign-conversion] + 685 | glVertex2f(PIANOROLL_X+(pattlen[cpatt]*(beats_per_measure*beatdiv)-piano_start)*PIANOROLL_CELLWIDTH, + | ^ +pattern.c:685:33: warning: conversion from 'long unsigned int' to 'float' may change value [-Wconversion] + 685 | glVertex2f(PIANOROLL_X+(pattlen[cpatt]*(beats_per_measure*beatdiv)-piano_start)*PIANOROLL_CELLWIDTH, + | ^ +pattern.c:686:35: warning: conversion from 'int' to 'float' may change value [-Wconversion] + 686 | PIANOROLL_Y-1-(kpkeydown-coct*12)*PIANOROLL_CELLHEIGHT); + | ^ +pattern.c:688:49: warning: conversion to 'long unsigned int' from 'int' may change the sign of the result [-Wsign-conversion] + 688 | glVertex2f(PIANOROLL_X+(pattlen[cpatt]*(beats_per_measure*beatdiv)-piano_start)*PIANOROLL_CELLWIDTH, + | ^ +pattern.c:688:77: warning: conversion to 'long unsigned int' from 'int' may change the sign of the result [-Wsign-conversion] + 688 | glVertex2f(PIANOROLL_X+(pattlen[cpatt]*(beats_per_measure*beatdiv)-piano_start)*PIANOROLL_CELLWIDTH, + | ^ +pattern.c:688:33: warning: conversion from 'long unsigned int' to 'float' may change value [-Wconversion] + 688 | glVertex2f(PIANOROLL_X+(pattlen[cpatt]*(beats_per_measure*beatdiv)-piano_start)*PIANOROLL_CELLWIDTH, + | ^ +pattern.c:689:33: warning: conversion from 'int' to 'float' may change value [-Wconversion] + 689 | PIANOROLL_Y-(kpkeydown-coct*12+1)*PIANOROLL_CELLHEIGHT); + | ^ +pattern.c:692:33: warning: conversion from 'int' to 'float' may change value [-Wconversion] + 692 | PIANOROLL_Y-(kpkeydown-coct*12+1)*PIANOROLL_CELLHEIGHT); + | ^ +pattern.c:700:18: warning: conversion to 'long unsigned int' from 'int' may change the sign of the result [-Wsign-conversion] + 700 | pattlen[cpatt]*(beats_per_measure*beatdiv), + | ^ +pattern.c:699:4: warning: conversion from 'int' to 'float' may change value [-Wconversion] + 699 | piano_start, (DS_WIDTH-(PIANOROLL_X+4))/PIANOROLL_CELLWIDTH, + | ^~~~~~~~~~~ +pattern.c:700:18: warning: conversion from 'long 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); + | ~~~~~~^~~~~ +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); + | ~~~~~~^~~~~ +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); + | ~~~~~~^~~~~ +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); + | ~~~~~~^~~~~ +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); + | ~~~~~~^~~~~ +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); + | ~~~~~~^~~~~ +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); + | ~~~~~~^~~~~ +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); + | ~~~~~~^~~~~ +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)); + | ^~~~~~~ +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]); + | ^~~ +widgets.h:37:54: note: expected 'char *' but argument is of type 'const char *' + 37 | void draw_button(float x, float y, float size, char *label, int type); + | ~~~~~~^~~~~ In file included from font.h:16, - from console.h:17: + from patch.h:19: arch.h:15:5: warning: "__x86_64__" is not defined, evaluates to 0 [-Wundef] 15 | #if __x86_64__ | ^~~~~~~~~~ -main.c:222:7: warning: function might be candidate for attribute 'noreturn' [-Wsuggest-attribute=noreturn] - 222 | void *audio_playback(void *param) - | ^~~~~~~~~~~~~~ -main.c: In function 'audio_renderer': -main.c:233:7: warning: function might be candidate for attribute 'noreturn' [-Wsuggest-attribute=noreturn] - 233 | void *audio_renderer(void *param) - | ^~~~~~~~~~~~~~ -main.c: In function 'cleanup': -main.c:322:6: warning: function might be candidate for attribute 'noreturn' [-Wsuggest-attribute=noreturn] - 322 | void cleanup(void) - | ^~~~~~~ In file included from patch.h:20: modules.h:152:1: warning: function declaration isn't a prototype [-Wstrict-prototypes] 152 | void calc_supersaw_tables(); | ^~~~ -In file included from sequencer.h:17, - from sequencer.c:13: -arch.h:15:5: warning: "__x86_64__" is not defined, evaluates to 0 [-Wundef] - 15 | #if __x86_64__ - | ^~~~~~~~~~ -gcc -DPACKAGE_NAME=\"komposter\" -DPACKAGE_TARNAME=\"komposter\" -DPACKAGE_VERSION=\"2.0.0\" -DPACKAGE_STRING=\"komposter\ 2.0.0\" -DPACKAGE_BUGREPORT=\"email\" -DPACKAGE_URL=\"\" -DPACKAGE=\"komposter\" -DVERSION=\"2.0.0\" -DSTDC_HEADERS=1 -DHAVE_SYS_TYPES_H=1 -DHAVE_SYS_STAT_H=1 -DHAVE_STDLIB_H=1 -DHAVE_STRING_H=1 -DHAVE_MEMORY_H=1 -DHAVE_STRINGS_H=1 -DHAVE_INTTYPES_H=1 -DHAVE_STDINT_H=1 -DHAVE_UNISTD_H=1 -DENABLE_FREETYPE=1 -DHAVE_LIBGLUT=1 -DENABLE_GLUT=1 -DENABLE_OPENAL=1 -DHAVE_LIBGL=1 -DHAVE_LIBGLU=1 -DENABLE_OPENGL=1 -DHAVE_LIBM=1 -DHAVE_LIBPTHREAD=1 -I. -DRESOURCEPATH=\"/usr/share/komposter/\" -Wdate-time -D_FORTIFY_SOURCE=2 -I/usr/local/include -g -O2 -ffile-prefix-map=/build/komposter-0+git20201216+ds=. -fstack-protector-strong -Wformat -Werror=format-security -Wall -pedantic -O3 -fcx-limited-range -ffinite-math-only -fno-math-errno -fno-rounding-math -fno-signaling-nans -fno-trapping-math -fgcse-las -fgcse-sm -fsee -fsingle-precision-constant -fomit-frame-pointer -Wcast-align -Wconversion -Wdisabled-optimization -Wextra -Winit-self -Winvalid-pch -Wmissing-format-attribute -Wmissing-include-dirs -Wmissing-noreturn -Wno-multichar -Wpacked -Wredundant-decls -Wshadow -Wswitch-default -Wundef -Wwrite-strings -Wbad-function-cast -Wmissing-declarations -Wmissing-prototypes -Wnested-externs -Wold-style-definition -Wstrict-prototypes -ftracer -fweb -pipe -Werror-implicit-function-declaration -I/usr/include/freetype2 -I/usr/include/libpng16 -I/usr/include/AL -c -o shader.o shader.c -In file included from widgets.h:20, - from pattern.h:22: -arch.h:15:5: warning: "__x86_64__" is not defined, evaluates to 0 [-Wundef] - 15 | #if __x86_64__ - | ^~~~~~~~~~ -In file included from widgets.h:23: -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 'long 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 'long unsigned int' to 'float' may change value [-Wconversion] - 153 | x < (PIANOROLL_X + (pattlen[cpatt]*(beats_per_measure*beatdiv))*PIANOROLL_CELLWIDTH + 1) && - | ^ +shader.c:43:8: warning: no previous prototype for 'loadshader' [-Wmissing-prototypes] + 43 | GLuint loadshader(char *fname, GLuint type) + | ^~~~~~~~~~ +shader.c: In function 'loadshader': +shader.c:53:3: warning: ignoring return value of 'fread' declared with attribute 'warn_unused_result' [-Wunused-result] + 53 | fread(temp, 1, 65536, f); + | ^~~~~~~~~~~~~~~~~~~~~~~~ In file included from synthesizer.h:23, from patch.h:21: arch.h:15:5: warning: "__x86_64__" is not defined, evaluates to 0 [-Wundef] @@ -3231,70 +3891,6 @@ arch.h:15:5: warning: "__x86_64__" is not defined, evaluates to 0 [-Wundef] 15 | #if __x86_64__ | ^~~~~~~~~~ -pattern.c:37:29: warning: conversion from 'int' to 'float' may change value [-Wconversion] - 37 | #define PIANOROLL_X KB_WIDTH+5.5 - | ^ -pattern.c: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); - | ^ In file included from synthesizer.h:29: dotfile.h:16:1: warning: function declaration isn't a prototype [-Wstrict-prototypes] 16 | int dotfile_load(); @@ -3302,88 +3898,11 @@ dotfile.h:17:1: warning: function declaration isn't a prototype [-Wstrict-prototypes] 17 | int dotfile_save(); | ^~~ -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 'long 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 'long 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 'long unsigned int' from 'int' may change the sign of the result [-Wsign-conversion] - 218 | cip=pattlen[cpatt]*(beats_per_measure*beatdiv); // cells in pattern - | ^ -pattern.c:218:9: warning: conversion from 'long unsigned int' to 'float' may change value [-Wconversion] - 218 | cip=pattlen[cpatt]*(beats_per_measure*beatdiv); // cells in pattern - | ^~~~~~~ -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; - | ^~~~~~~~~~~~~~~~ In file included from filedialog.h:22, from synthesizer.h:30: arch.h:15:5: warning: "__x86_64__" is not defined, evaluates to 0 [-Wundef] 15 | #if __x86_64__ | ^~~~~~~~~~ -pattern.c: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 from 'long unsigned int' to 'int' may change value [-Wconversion] - 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 'long 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"); - | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -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 'long 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 from 'long unsigned int' to 'int' may change value [-Wconversion] - 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 'long 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 'long 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; - | ^ synthesizer.h:84:6: warning: redundant redeclaration of 'synth_stackify' [-Wredundant-decls] 84 | void synth_stackify(int syn); | ^~~~~~~~~~~~~~ @@ -3401,55 +3920,6 @@ patch.c:96:6: warning: old-style function definition [-Wold-style-definition] 96 | void patch_init() | ^~~~~~~~~~ -pattern.c:295:31: warning: conversion to 'long 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 'long 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 'long 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 'long 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]; - | ^ -pattern.c:308:113: warning: conversion to 'long 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 'long 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 'long unsigned int' from 'int' may change the sign of the result [-Wsign-conversion] - 328 | for(i=0; i0) cpatch[csynth]--; return; | ^~~~~~ -pattern.c:421:27: warning: conversion to 'long 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--; - | ^ -pattern.c:421:56: warning: conversion from 'long unsigned int' to 'float' may change value [-Wconversion] - 421 | ( 1+pattlen[cpatt]*(beats_per_measure*beatdiv) - ( (DS_WIDTH-(PIANOROLL_X))/PIANOROLL_CELLWIDTH ) ) ) piano_start--; - | ^ -pattern.c:416:3: warning: switch missing default case [-Wswitch-default] - 416 | switch (key) { - | ^~~~~~ -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) - | ~~~~^ -pattern.c: In function 'pattern_specialkey': -pattern.c:455:3: warning: switch missing default case [-Wswitch-default] - 455 | switch(key) - | ^~~~~~ 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"); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~ @@ -3565,53 +4016,6 @@ 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:453:48: warning: unused parameter 'x' [-Wunused-parameter] - 453 | void pattern_specialkey(unsigned char key, int x, int y) - | ~~~~^ -pattern.c:453:55: warning: unused parameter 'y' [-Wunused-parameter] - 453 | void pattern_specialkey(unsigned char key, int x, int y) - | ~~~~^ -pattern.c: In function 'pattern_keyboardup': -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) - | ~~~~^ -pattern.c: In function 'pattern_draw': -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); - | ^ -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); - | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -pattern.c:529:95: warning: conversion from 'int' to 'float' may change value [-Wconversion] - 529 | glVertex2f(PIANOROLL_X, PIANOROLL_Y-(j*PIANOROLL_CELLHEIGHT)); - | ^ -pattern.c:530:46: warning: conversion to 'long 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)); - | ^ -pattern.c:530:74: warning: conversion to 'long 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)); - | ^ -pattern.c:530:30: warning: conversion from 'long 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)); - | ^ -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)); - | ^ -pattern.c:531:46: warning: conversion to 'long 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)); - | ^ -pattern.c:531:74: warning: conversion to 'long 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)); - | ^ -pattern.c:531:30: warning: conversion from 'long 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)); - | ^ -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 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); @@ -3656,33 +4060,6 @@ patch.c:367:51: warning: unused parameter 'y' [-Wunused-parameter] 367 | void patch_keyboard(unsigned char key, int x, int y) | ~~~~^ -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)); - | ^ -pattern.c:541:43: warning: conversion to 'long 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:71: warning: conversion to 'long 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 'long 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)); - | ^ -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 'long 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: 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) @@ -3737,48 +4114,6 @@ patch.c:468:94: warning: conversion from 'int' to 'float' may change value [-Wconversion] 468 | sprintf(tmps, "%s", modTypeNames[mod[csynth][mi].type]); render_text(tmps, x+44, 20+mm*16-yd, 2, 0xffc0c0c0, 0); | ~~~~~~~~^~~ -pattern.c:553:26: warning: comparison of integer expressions of different signedness: 'int' and 'long unsigned int' [-Wsign-compare] - 553 | for(i=0,j=piano_start;j<(pattlen[cpatt]*(beats_per_measure*beatdiv)+1);i++,j++) { - | ^ -pattern.c:560:38: warning: conversion to 'long unsigned int' from 'int' may change the sign of the result [-Wsign-conversion] - 560 | if ((j%b)==0 && j<(pattlen[cpatt]*b)) { - | ^ -pattern.c:560:22: warning: comparison of integer expressions of different signedness: 'int' and 'long unsigned int' [-Wsign-compare] - 560 | if ((j%b)==0 && j<(pattlen[cpatt]*b)) { - | ^ -pattern.c:563:40: warning: conversion from 'int' to 'float' may change value [-Wconversion] - 563 | render_text(tmps, 2.5+PIANOROLL_X+(i*PIANOROLL_CELLWIDTH), round(PIANOROLL_Y+PIANOROLL_CELLHEIGHT), 2, 0xffa0a0a0, 0); - | ^ -pattern.c:569:27: warning: conversion from 'int' to 'float' may change value [-Wconversion] - 569 | glVertex2f(PIANOROLL_X+i*PIANOROLL_CELLWIDTH, round(PIANOROLL_Y+PIANOROLL_CELLHEIGHT)); - | ^ -pattern.c:570:27: warning: conversion from 'int' to 'float' may change value [-Wconversion] - 570 | glVertex2f(PIANOROLL_X+i*PIANOROLL_CELLWIDTH, round(PIANOROLL_Y-lineheight)); //(PIANOROLL_OCTAVES*12)*PIANOROLL_CELLHEIGHT))); - | ^ -pattern.c:570:51: warning: conversion from 'double' to 'GLfloat' {aka 'float'} may change value [-Wfloat-conversion] - 570 | glVertex2f(PIANOROLL_X+i*PIANOROLL_CELLWIDTH, round(PIANOROLL_Y-lineheight)); //(PIANOROLL_OCTAVES*12)*PIANOROLL_CELLHEIGHT))); - | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -pattern.c:577:19: warning: conversion to 'long unsigned int' from 'int' may change the sign of the result [-Wsign-conversion] - 577 | ticks=playpos / (OUTPUTFREQ/(bpm*256/60)); // calc tick from sample index - | ^ -pattern.c:577:11: warning: conversion to 'long int' from 'long unsigned int' may change the sign of the result [-Wsign-conversion] - 577 | ticks=playpos / (OUTPUTFREQ/(bpm*256/60)); // calc tick from sample index - | ^~~~~~~ -pattern.c:578:63: warning: conversion to 'long unsigned int' from 'int' may change the sign of the result [-Wsign-conversion] - 578 | if ( (ticks>>6)>=piano_start && (ticks>>6)<(pattlen[cpatt]*(beats_per_measure*beatdiv)) ) // TODO: test if pos > pianostart+rollwidth - | ^ -pattern.c:578:47: warning: comparison of integer expressions of different signedness: 'long int' and 'long unsigned int' [-Wsign-compare] - 578 | if ( (ticks>>6)>=piano_start && (ticks>>6)<(pattlen[cpatt]*(beats_per_measure*beatdiv)) ) // TODO: test if pos > pianostart+rollwidth - | ^ -pattern.c:581:9: warning: conversion from 'long int' to 'int' may change value [-Wconversion] - 581 | i=(ticks>>6)-piano_start; - | ^ -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))); - | ^ 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); | ~^~~~ @@ -3821,57 +4156,6 @@ 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:591:42: warning: conversion to 'long 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 'long unsigned int' [-Wsign-compare] - 591 | for(i=0,j=piano_start;j<(pattlen[cpatt]*(beats_per_measure*beatdiv));i++,j++) { - | ^ -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); - | ^~~~~~~~~~~ -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); - | ^~~~~~~~~~~ -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, - | ^ 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]); | ^~~ @@ -3902,27 +4186,6 @@ 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, - | ^ -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, - | ^ -pattern.c:612:26: warning: conversion from 'int' to 'float' may change value [-Wconversion] - 612 | PIANOROLL_Y-2-(n-coct*12+1)*PIANOROLL_CELLHEIGHT, - | ^ -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); - | ^ 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); @@ -3964,45 +4227,6 @@ 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); | ^ -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); - | ^ -pattern.c:635:70: warning: conversion from 'int' to 'float' may change value [-Wconversion] - 635 | glVertex2f(PIANOROLL_X+(j+l)*PIANOROLL_CELLWIDTH, PIANOROLL_Y-1-(n-coct*12)*PIANOROLL_CELLHEIGHT); - | ^ -pattern.c:636:29: warning: conversion from 'int' to 'float' may change value [-Wconversion] - 636 | glVertex2f(PIANOROLL_X+(j+l)*PIANOROLL_CELLWIDTH, PIANOROLL_Y-(n-coct*12+1)*PIANOROLL_CELLHEIGHT); - | ^ -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); - | ^ -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); - | ^ -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); - | ^ -pattern.c:645:7: warning: conversion from 'long unsigned int' to 'int' may change value [-Wconversion] - 645 | n=pattdata[cpatt][piano_start+piano_porta_drag]; - | ^~~~~~~~ -pattern.c:648:29: warning: conversion from 'int' to 'float' may change value [-Wconversion] - 648 | glVertex2f(1+PIANOROLL_X+piano_porta_drag*PIANOROLL_CELLWIDTH, PIANOROLL_Y-1-(n-coct*12)*PIANOROLL_CELLHEIGHT); - | ^ -pattern.c:648:81: warning: conversion from 'int' to 'float' may change value [-Wconversion] - 648 | glVertex2f(1+PIANOROLL_X+piano_porta_drag*PIANOROLL_CELLWIDTH, PIANOROLL_Y-1-(n-coct*12)*PIANOROLL_CELLHEIGHT); - | ^ -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); - | ^ -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); - | ^ -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); - | ^ -pattern.c:650:100: warning: conversion from 'int' to 'float' may change value [-Wconversion] - 650 | glVertex2f(PIANOROLL_X+(piano_porta_drag+piano_porta_drag_len)*PIANOROLL_CELLWIDTH, PIANOROLL_Y-(n-coct*12+1)*PIANOROLL_CELLHEIGHT); - | ^ patch.c: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); | ^ @@ -4054,45 +4278,6 @@ 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); | ~~~~~~~~~~~~~~~^~~~~~ -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); - | ^ -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); - | ^ -pattern.c:653:31: warning: comparison of integer expressions of different signedness: 'int' and 'long unsigned int' [-Wsign-compare] - 653 | if (piano_porta_drag_from != pattdata[cpatt][piano_start+piano_porta_drag]) { - | ^~ -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); - | ^ -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); - | ^ -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); - | ^ -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); - | ^ -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); - | ^ -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); - | ^ -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); - | ^ -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); - | ^ -pattern.c:667:7: warning: conversion from 'long unsigned int' to 'int' may change value [-Wconversion] - 667 | n=pattdata[cpatt][piano_start+piano_drag]; - | ^~~~~~~~ -pattern.c:670:29: warning: conversion from 'int' to 'float' may change value [-Wconversion] - 670 | glVertex2f(1+PIANOROLL_X+piano_drag*PIANOROLL_CELLWIDTH, PIANOROLL_Y-1-(n-coct*12)*PIANOROLL_CELLHEIGHT); - | ^ patch.c:735:5: warning: switch missing default case [-Wswitch-default] 735 | switch(modModulatorTypes[mod[csynth][mi].type]) { | ^~~~~~ @@ -4106,6 +4291,10 @@ patch.c:770:46: warning: conversion from 'int' to 'float' may change value [-Wconversion] 770 | case SCALE_FREQUENCY_TEMPO: return (value*bpm)/(60*OUTPUTFREQ); | ^ +shader.c: In function 'shader_init': +shader.c:75:5: warning: '__builtin_strncpy' output may be truncated copying 511 bytes from a string of length 511 [-Wstringop-truncation] + 75 | strncpy(fullpath, respath, 511); + | ^ patch.c:771:47: warning: conversion from 'int' to 'float' may change value [-Wconversion] 771 | case SCALE_DURATION_TEMPO: return (60/(bpm*value))*OUTPUTFREQ; | ^ @@ -4114,27 +4303,6 @@ 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); | ^~~~~~~~~~~~~~~~~~~~~~~ -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); - | ^ -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); - | ^ -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); - | ^ -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); - | ^ -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); - | ^ -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); - | ^ patch.c:767:3: warning: switch missing default case [-Wswitch-default] 767 | switch(scale) { | ^~~~~~ @@ -4154,122 +4322,6 @@ patch.c:783:3: warning: switch missing default case [-Wswitch-default] 783 | switch(scale) { | ^~~~~~ -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 'long unsigned int' from 'int' may change the sign of the result [-Wsign-conversion] - 685 | glVertex2f(PIANOROLL_X+(pattlen[cpatt]*(beats_per_measure*beatdiv)-piano_start)*PIANOROLL_CELLWIDTH, - | ^ -pattern.c:685:77: warning: conversion to 'long unsigned int' from 'int' may change the sign of the result [-Wsign-conversion] - 685 | glVertex2f(PIANOROLL_X+(pattlen[cpatt]*(beats_per_measure*beatdiv)-piano_start)*PIANOROLL_CELLWIDTH, - | ^ -pattern.c:685:33: warning: conversion from 'long unsigned int' to 'float' may change value [-Wconversion] - 685 | glVertex2f(PIANOROLL_X+(pattlen[cpatt]*(beats_per_measure*beatdiv)-piano_start)*PIANOROLL_CELLWIDTH, - | ^ -pattern.c:686:35: warning: conversion from 'int' to 'float' may change value [-Wconversion] - 686 | PIANOROLL_Y-1-(kpkeydown-coct*12)*PIANOROLL_CELLHEIGHT); - | ^ -pattern.c:688:49: warning: conversion to 'long unsigned int' from 'int' may change the sign of the result [-Wsign-conversion] - 688 | glVertex2f(PIANOROLL_X+(pattlen[cpatt]*(beats_per_measure*beatdiv)-piano_start)*PIANOROLL_CELLWIDTH, - | ^ -pattern.c:688:77: warning: conversion to 'long unsigned int' from 'int' may change the sign of the result [-Wsign-conversion] - 688 | glVertex2f(PIANOROLL_X+(pattlen[cpatt]*(beats_per_measure*beatdiv)-piano_start)*PIANOROLL_CELLWIDTH, - | ^ -In file included from shader.h:17, - from shader.c:16: -arch.h:15:5: warning: "__x86_64__" is not defined, evaluates to 0 [-Wundef] - 15 | #if __x86_64__ - | ^~~~~~~~~~ -pattern.c:688:33: warning: conversion from 'long unsigned int' to 'float' may change value [-Wconversion] - 688 | glVertex2f(PIANOROLL_X+(pattlen[cpatt]*(beats_per_measure*beatdiv)-piano_start)*PIANOROLL_CELLWIDTH, - | ^ -pattern.c:689:33: warning: conversion from 'int' to 'float' may change value [-Wconversion] - 689 | PIANOROLL_Y-(kpkeydown-coct*12+1)*PIANOROLL_CELLHEIGHT); - | ^ -pattern.c:692:33: warning: conversion from 'int' to 'float' may change value [-Wconversion] - 692 | PIANOROLL_Y-(kpkeydown-coct*12+1)*PIANOROLL_CELLHEIGHT); - | ^ -pattern.c:700:18: warning: conversion to 'long unsigned int' from 'int' may change the sign of the result [-Wsign-conversion] - 700 | pattlen[cpatt]*(beats_per_measure*beatdiv), - | ^ -pattern.c:699:4: warning: conversion from 'int' to 'float' may change value [-Wconversion] - 699 | piano_start, (DS_WIDTH-(PIANOROLL_X+4))/PIANOROLL_CELLWIDTH, - | ^~~~~~~~~~~ -pattern.c:700:18: warning: conversion from 'long 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); - | ~~~~~~^~~~~ -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); - | ~~~~~~^~~~~ -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); - | ~~~~~~^~~~~ -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); - | ~~~~~~^~~~~ -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); - | ~~~~~~^~~~~ -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); - | ~~~~~~^~~~~ -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); - | ~~~~~~^~~~~ -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); - | ~~~~~~^~~~~ -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)); - | ^~~~~~~ -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]); - | ^~~ -widgets.h:37:54: note: expected 'char *' but argument is of type 'const char *' - 37 | void draw_button(float x, float y, float size, char *label, int type); - | ~~~~~~^~~~~ In file included from audio.h:16, from sequencer.h:18: arch.h:15:5: warning: "__x86_64__" is not defined, evaluates to 0 [-Wundef] @@ -4298,19 +4350,12 @@ arch.h:15:5: warning: "__x86_64__" is not defined, evaluates to 0 [-Wundef] 15 | #if __x86_64__ | ^~~~~~~~~~ +gcc -DPACKAGE_NAME=\"komposter\" -DPACKAGE_TARNAME=\"komposter\" -DPACKAGE_VERSION=\"2.0.0\" -DPACKAGE_STRING=\"komposter\ 2.0.0\" -DPACKAGE_BUGREPORT=\"email\" -DPACKAGE_URL=\"\" -DPACKAGE=\"komposter\" -DVERSION=\"2.0.0\" -DSTDC_HEADERS=1 -DHAVE_SYS_TYPES_H=1 -DHAVE_SYS_STAT_H=1 -DHAVE_STDLIB_H=1 -DHAVE_STRING_H=1 -DHAVE_MEMORY_H=1 -DHAVE_STRINGS_H=1 -DHAVE_INTTYPES_H=1 -DHAVE_STDINT_H=1 -DHAVE_UNISTD_H=1 -DENABLE_FREETYPE=1 -DHAVE_LIBGLUT=1 -DENABLE_GLUT=1 -DENABLE_OPENAL=1 -DHAVE_LIBGL=1 -DHAVE_LIBGLU=1 -DENABLE_OPENGL=1 -DHAVE_LIBM=1 -DHAVE_LIBPTHREAD=1 -I. -DRESOURCEPATH=\"/usr/share/komposter/\" -Wdate-time -D_FORTIFY_SOURCE=2 -I/usr/local/include -g -O2 -ffile-prefix-map=/build/komposter-0+git20201216+ds=. -fstack-protector-strong -Wformat -Werror=format-security -Wall -pedantic -O3 -fcx-limited-range -ffinite-math-only -fno-math-errno -fno-rounding-math -fno-signaling-nans -fno-trapping-math -fgcse-las -fgcse-sm -fsee -fsingle-precision-constant -fomit-frame-pointer -Wcast-align -Wconversion -Wdisabled-optimization -Wextra -Winit-self -Winvalid-pch -Wmissing-format-attribute -Wmissing-include-dirs -Wmissing-noreturn -Wno-multichar -Wpacked -Wredundant-decls -Wshadow -Wswitch-default -Wundef -Wwrite-strings -Wbad-function-cast -Wmissing-declarations -Wmissing-prototypes -Wnested-externs -Wold-style-definition -Wstrict-prototypes -ftracer -fweb -pipe -Werror-implicit-function-declaration -I/usr/include/freetype2 -I/usr/include/libpng16 -I/usr/include/AL -c -o synthesizer.o synthesizer.c In file included from widgets.h:20, from pattern.h:22: arch.h:15:5: warning: "__x86_64__" is not defined, evaluates to 0 [-Wundef] 15 | #if __x86_64__ | ^~~~~~~~~~ -shader.c:43:8: warning: no previous prototype for 'loadshader' [-Wmissing-prototypes] - 43 | GLuint loadshader(char *fname, GLuint type) - | ^~~~~~~~~~ -gcc -DPACKAGE_NAME=\"komposter\" -DPACKAGE_TARNAME=\"komposter\" -DPACKAGE_VERSION=\"2.0.0\" -DPACKAGE_STRING=\"komposter\ 2.0.0\" -DPACKAGE_BUGREPORT=\"email\" -DPACKAGE_URL=\"\" -DPACKAGE=\"komposter\" -DVERSION=\"2.0.0\" -DSTDC_HEADERS=1 -DHAVE_SYS_TYPES_H=1 -DHAVE_SYS_STAT_H=1 -DHAVE_STDLIB_H=1 -DHAVE_STRING_H=1 -DHAVE_MEMORY_H=1 -DHAVE_STRINGS_H=1 -DHAVE_INTTYPES_H=1 -DHAVE_STDINT_H=1 -DHAVE_UNISTD_H=1 -DENABLE_FREETYPE=1 -DHAVE_LIBGLUT=1 -DENABLE_GLUT=1 -DENABLE_OPENAL=1 -DHAVE_LIBGL=1 -DHAVE_LIBGLU=1 -DENABLE_OPENGL=1 -DHAVE_LIBM=1 -DHAVE_LIBPTHREAD=1 -I. -DRESOURCEPATH=\"/usr/share/komposter/\" -Wdate-time -D_FORTIFY_SOURCE=2 -I/usr/local/include -g -O2 -ffile-prefix-map=/build/komposter-0+git20201216+ds=. -fstack-protector-strong -Wformat -Werror=format-security -Wall -pedantic -O3 -fcx-limited-range -ffinite-math-only -fno-math-errno -fno-rounding-math -fno-signaling-nans -fno-trapping-math -fgcse-las -fgcse-sm -fsee -fsingle-precision-constant -fomit-frame-pointer -Wcast-align -Wconversion -Wdisabled-optimization -Wextra -Winit-self -Winvalid-pch -Wmissing-format-attribute -Wmissing-include-dirs -Wmissing-noreturn -Wno-multichar -Wpacked -Wredundant-decls -Wshadow -Wswitch-default -Wundef -Wwrite-strings -Wbad-function-cast -Wmissing-declarations -Wmissing-prototypes -Wnested-externs -Wold-style-definition -Wstrict-prototypes -ftracer -fweb -pipe -Werror-implicit-function-declaration -I/usr/include/freetype2 -I/usr/include/libpng16 -I/usr/include/AL -c -o synthesizer.o synthesizer.c -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); - | ^~~~~~~~~~~~~~~~~~~~~~~~ In file included from synthesizer.h:23, from buffermm.h:18: arch.h:15:5: warning: "__x86_64__" is not defined, evaluates to 0 [-Wundef] @@ -4484,6 +4529,7 @@ sequencer.c:365:37: warning: conversion from 'int' to 'float' may change value [-Wconversion] 365 | seq_ui[B_REWIND]=hovertest_box(x, y, 440, DS_HEIGHT-14, 16, 16); | ^ +gcc -DPACKAGE_NAME=\"komposter\" -DPACKAGE_TARNAME=\"komposter\" -DPACKAGE_VERSION=\"2.0.0\" -DPACKAGE_STRING=\"komposter\ 2.0.0\" -DPACKAGE_BUGREPORT=\"email\" -DPACKAGE_URL=\"\" -DPACKAGE=\"komposter\" -DVERSION=\"2.0.0\" -DSTDC_HEADERS=1 -DHAVE_SYS_TYPES_H=1 -DHAVE_SYS_STAT_H=1 -DHAVE_STDLIB_H=1 -DHAVE_STRING_H=1 -DHAVE_MEMORY_H=1 -DHAVE_STRINGS_H=1 -DHAVE_INTTYPES_H=1 -DHAVE_STDINT_H=1 -DHAVE_UNISTD_H=1 -DENABLE_FREETYPE=1 -DHAVE_LIBGLUT=1 -DENABLE_GLUT=1 -DENABLE_OPENAL=1 -DHAVE_LIBGL=1 -DHAVE_LIBGLU=1 -DENABLE_OPENGL=1 -DHAVE_LIBM=1 -DHAVE_LIBPTHREAD=1 -I. -DRESOURCEPATH=\"/usr/share/komposter/\" -Wdate-time -D_FORTIFY_SOURCE=2 -I/usr/local/include -g -O2 -ffile-prefix-map=/build/komposter-0+git20201216+ds=. -fstack-protector-strong -Wformat -Werror=format-security -Wall -pedantic -O3 -fcx-limited-range -ffinite-math-only -fno-math-errno -fno-rounding-math -fno-signaling-nans -fno-trapping-math -fgcse-las -fgcse-sm -fsee -fsingle-precision-constant -fomit-frame-pointer -Wcast-align -Wconversion -Wdisabled-optimization -Wextra -Winit-self -Winvalid-pch -Wmissing-format-attribute -Wmissing-include-dirs -Wmissing-noreturn -Wno-multichar -Wpacked -Wredundant-decls -Wshadow -Wswitch-default -Wundef -Wwrite-strings -Wbad-function-cast -Wmissing-declarations -Wmissing-prototypes -Wnested-externs -Wold-style-definition -Wstrict-prototypes -ftracer -fweb -pipe -Werror-implicit-function-declaration -I/usr/include/freetype2 -I/usr/include/libpng16 -I/usr/include/AL -c -o widgets.o widgets.c sequencer.c:367:35: warning: conversion from 'int' to 'float' may change value [-Wconversion] 367 | seq_ui[B_NEWSONG]=hovertest_box(x, y, 394, DS_HEIGHT-14, 16, 16) | (seq_ui[B_NEWSONG]&8); | ^ @@ -4875,10 +4921,6 @@ dialog.h:31:28: note: expected 'void *' but argument is of type 'void (*)(int, int)' 31 | void dialog_binddrag(void *dragfunc); | ~~~~~~^~~~~~~~ -shader.c: In function 'shader_init': -shader.c:75:5: warning: '__builtin_strncpy' output may be truncated copying 511 bytes from a string of length 511 [-Wstringop-truncation] - 75 | strncpy(fullpath, respath, 511); - | ^ sequencer.c: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]]; | ^ @@ -5021,6 +5063,11 @@ sequencer.c:843:75: warning: conversion from 'int' to 'float' may change value [-Wconversion] 843 | glVertex2f( sx+(sk*SEQUENCER_CELLWIDTH)+0.5, SEQUENCER_Y+ i*SEQUENCER_CELLHEIGHT); | ^ +In file included from shader.h:17, + from widgets.c:13: +arch.h:15:5: warning: "__x86_64__" is not defined, evaluates to 0 [-Wundef] + 15 | #if __x86_64__ + | ^~~~~~~~~~ sequencer.c:844:33: warning: conversion from 'int' to 'float' may change value [-Wconversion] 844 | glVertex2f( sx+(sk*SEQUENCER_CELLWIDTH)+0.5, SEQUENCER_Y+ i*SEQUENCER_CELLHEIGHT + (0.2*SEQUENCER_CELLHEIGHT)); | ^ @@ -5036,7 +5083,6 @@ sequencer.c:846:33: warning: conversion from 'int' to 'float' may change value [-Wconversion] 846 | glVertex2f( sx+(sk*SEQUENCER_CELLWIDTH)+0.5, SEQUENCER_Y+(1+i)*SEQUENCER_CELLHEIGHT-1 ); | ^ -gcc -DPACKAGE_NAME=\"komposter\" -DPACKAGE_TARNAME=\"komposter\" -DPACKAGE_VERSION=\"2.0.0\" -DPACKAGE_STRING=\"komposter\ 2.0.0\" -DPACKAGE_BUGREPORT=\"email\" -DPACKAGE_URL=\"\" -DPACKAGE=\"komposter\" -DVERSION=\"2.0.0\" -DSTDC_HEADERS=1 -DHAVE_SYS_TYPES_H=1 -DHAVE_SYS_STAT_H=1 -DHAVE_STDLIB_H=1 -DHAVE_STRING_H=1 -DHAVE_MEMORY_H=1 -DHAVE_STRINGS_H=1 -DHAVE_INTTYPES_H=1 -DHAVE_STDINT_H=1 -DHAVE_UNISTD_H=1 -DENABLE_FREETYPE=1 -DHAVE_LIBGLUT=1 -DENABLE_GLUT=1 -DENABLE_OPENAL=1 -DHAVE_LIBGL=1 -DHAVE_LIBGLU=1 -DENABLE_OPENGL=1 -DHAVE_LIBM=1 -DHAVE_LIBPTHREAD=1 -I. -DRESOURCEPATH=\"/usr/share/komposter/\" -Wdate-time -D_FORTIFY_SOURCE=2 -I/usr/local/include -g -O2 -ffile-prefix-map=/build/komposter-0+git20201216+ds=. -fstack-protector-strong -Wformat -Werror=format-security -Wall -pedantic -O3 -fcx-limited-range -ffinite-math-only -fno-math-errno -fno-rounding-math -fno-signaling-nans -fno-trapping-math -fgcse-las -fgcse-sm -fsee -fsingle-precision-constant -fomit-frame-pointer -Wcast-align -Wconversion -Wdisabled-optimization -Wextra -Winit-self -Winvalid-pch -Wmissing-format-attribute -Wmissing-include-dirs -Wmissing-noreturn -Wno-multichar -Wpacked -Wredundant-decls -Wshadow -Wswitch-default -Wundef -Wwrite-strings -Wbad-function-cast -Wmissing-declarations -Wmissing-prototypes -Wnested-externs -Wold-style-definition -Wstrict-prototypes -ftracer -fweb -pipe -Werror-implicit-function-declaration -I/usr/include/freetype2 -I/usr/include/libpng16 -I/usr/include/AL -c -o widgets.o widgets.c sequencer.c:846:75: warning: conversion from 'int' to 'float' may change value [-Wconversion] 846 | glVertex2f( sx+(sk*SEQUENCER_CELLWIDTH)+0.5, SEQUENCER_Y+(1+i)*SEQUENCER_CELLHEIGHT-1 ); | ^ @@ -5196,19 +5242,6 @@ sequencer.c:997:9: warning: conversion from 'long int' to 'int' may change value [-Wconversion] 997 | i=(render_pos / (OUTPUTFREQ/(bpm*256/60))) >> 6; // calc patternpos from sample index | ^ -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; - | ^ sequencer.c:999:23: warning: conversion from 'int' to 'float' may change value [-Wconversion] 999 | if (i >= 0 && (i/16.0f) >= seq_start) { | ^ @@ -5272,11 +5305,6 @@ 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); | ^~~~~~~~~~ -In file included from synthesizer.h:23, - from synthesizer.c:13: -arch.h:15:5: warning: "__x86_64__" is not defined, evaluates to 0 [-Wundef] - 15 | #if __x86_64__ - | ^~~~~~~~~~ sequencer.c:1062:38: warning: passing argument 4 of 'draw_button' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] 1062 | draw_button(440, DS_HEIGHT-14, 16, "A", seq_ui[B_REWIND]); | ^~~ @@ -5356,11 +5384,6 @@ 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); | ~~~~~~^~~~~ -In file included from shader.h:17, - from widgets.c:13: -arch.h:15:5: warning: "__x86_64__" is not defined, evaluates to 0 [-Wundef] - 15 | #if __x86_64__ - | ^~~~~~~~~~ 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]); | ^~~~ @@ -5440,6 +5463,11 @@ 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); | ^ +In file included from synthesizer.h:23, + from synthesizer.c:13: +arch.h:15:5: warning: "__x86_64__" is not defined, evaluates to 0 [-Wundef] + 15 | #if __x86_64__ + | ^~~~~~~~~~ sequencer.c: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); | ^ @@ -5800,22 +5828,9 @@ sequencer.c:1661:36: warning: conversion from 'int' to 'float' may change value [-Wconversion] 1661 | seq_ui[B_TIME_DEC]=hovertest_box(x, y, (DS_WIDTH/2)-102, (DS_HEIGHT/2)-16, 16, 16); | ^ -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; - | ^ sequencer.c:1661:39: warning: conversion from 'int' to 'float' may change value [-Wconversion] 1661 | seq_ui[B_TIME_DEC]=hovertest_box(x, y, (DS_WIDTH/2)-102, (DS_HEIGHT/2)-16, 16, 16); | ^ -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; - | ^ sequencer.c:1662:35: warning: conversion from 'int' to 'float' may change value [-Wconversion] 1662 | seq_ui[B_DIV_INC]=hovertest_box(x, y, (DS_WIDTH/2)+102, (DS_HEIGHT/2)+4, 16, 16); | ^ @@ -5866,6 +5881,32 @@ | ^~~~~~~~~~~~~~~~~~~~~~~~~~ sequencer.c: In function 'sequencer_bpm_close_dialog': sequencer.c:1745:6: warning: old-style function definition [-Wold-style-definition] +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; + | ^ +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; + | ^ In file included from audio.h:16, from synthesizer.h:24: arch.h:15:5: warning: "__x86_64__" is not defined, evaluates to 0 [-Wundef] @@ -6304,9 +6345,19 @@ 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]); | ^~~ +In file included from widgets.h:20, + from widgets.c:14: +arch.h:15:5: warning: "__x86_64__" is not defined, evaluates to 0 [-Wundef] + 15 | #if __x86_64__ + | ^~~~~~~~~~ widgets.h:37:54: note: expected 'char *' but argument is of type 'const char *' 37 | void draw_button(float x, float y, float size, char *label, int type); | ~~~~~~^~~~~ +In file included from font.h:16, + from widgets.h:22: +arch.h:15:5: warning: "__x86_64__" is not defined, evaluates to 0 [-Wundef] + 15 | #if __x86_64__ + | ^~~~~~~~~~ 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; @@ -6476,16 +6527,6 @@ synthesizer.c:944:56: warning: unused parameter 'y' [-Wunused-parameter] 944 | void synthlabel_keyboard(unsigned char key, int x, int y) | ~~~~^ -In file included from widgets.h:20, - from widgets.c:14: -arch.h:15:5: warning: "__x86_64__" is not defined, evaluates to 0 [-Wundef] - 15 | #if __x86_64__ - | ^~~~~~~~~~ -In file included from font.h:16, - from widgets.h:22: -arch.h:15:5: warning: "__x86_64__" is not defined, evaluates to 0 [-Wundef] - 15 | #if __x86_64__ - | ^~~~~~~~~~ In file included from widgets.h:23: modules.h:152:1: warning: function declaration isn't a prototype [-Wstrict-prototypes] 152 | void calc_supersaw_tables(); @@ -6711,6 +6752,10 @@ patch.c:551:9: note: object 'rf' of size 4 551 | float rf, 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: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); | ^~ ~~~~~ @@ -6738,10 +6783,6 @@ | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 32 | __va_arg_pack ()); | ~~~~~~~~~~~~~~~~~ -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); - | ^ 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; @@ -6756,30 +6797,30 @@ 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); - | ^~ ~~ +sequencer.c: In function 'sequencer_file_checkstate.part.0': +sequencer.c:1574:40: warning: '%s' directive writing up to 254 bytes into a region of size 241 [-Wformat-overflow=] + 1574 | sprintf(tmps, "Song saved as %s", fn); + | ^~ ~~ In file included from /usr/include/stdio.h:906, - from synthesizer.h:18: + from sequencer.h:16: In function 'sprintf', - inlined from 'synth_file_checkstate.part.0' at synthesizer.c:798:15: -/usr/include/aarch64-linux-gnu/bits/stdio2.h:30:10: note: '__builtin___sprintf_chk' output 31 or more bytes (assuming 285) into a destination of size 255 + inlined from 'sequencer_file_checkstate.part.0' at sequencer.c:1574:11: +/usr/include/aarch64-linux-gnu/bits/stdio2.h:30:10: note: '__builtin___sprintf_chk' output between 15 and 269 bytes into a destination of size 255 30 | return __builtin___sprintf_chk (__s, __USE_FORTIFY_LEVEL - 1, | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 31 | __glibc_objsize (__s), __fmt, | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 32 | __va_arg_pack ()); | ~~~~~~~~~~~~~~~~~ -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); - | ^~ ~~ +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:906, - from sequencer.h:16: + from synthesizer.h:18: In function 'sprintf', - inlined from 'sequencer_file_checkstate.part.0' at sequencer.c:1574:11: -/usr/include/aarch64-linux-gnu/bits/stdio2.h:30:10: note: '__builtin___sprintf_chk' output between 15 and 269 bytes into a destination of size 255 + inlined from 'synth_file_checkstate.part.0' at synthesizer.c:798:15: +/usr/include/aarch64-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, @@ -6796,8 +6837,8 @@ make -j8 install DESTDIR=/build/komposter-0\+git20201216\+ds/debian/komposter AM_UPDATE_INFO_DIR=no make[1]: Entering directory '/build/komposter-0+git20201216+ds' make[2]: Entering directory '/build/komposter-0+git20201216+ds' - /usr/bin/mkdir -p '/build/komposter-0+git20201216+ds/debian/komposter/usr/bin' make[2]: Nothing to be done for 'install-data-am'. + /usr/bin/mkdir -p '/build/komposter-0+git20201216+ds/debian/komposter/usr/bin' /usr/bin/install -c komposter '/build/komposter-0+git20201216+ds/debian/komposter/usr/bin' make[2]: Leaving directory '/build/komposter-0+git20201216+ds' make[1]: Leaving directory '/build/komposter-0+git20201216+ds' @@ -6819,8 +6860,8 @@ dh_gencontrol dh_md5sums dh_builddeb -dpkg-deb: building package 'komposter' in '../komposter_0+git20201216+ds-2_arm64.deb'. dpkg-deb: building package 'komposter-dbgsym' in '../komposter-dbgsym_0+git20201216+ds-2_arm64.deb'. +dpkg-deb: building package 'komposter' in '../komposter_0+git20201216+ds-2_arm64.deb'. dpkg-genbuildinfo --build=binary -O../komposter_0+git20201216+ds-2_arm64.buildinfo dpkg-genchanges --build=binary -O../komposter_0+git20201216+ds-2_arm64.changes dpkg-genchanges: info: binary-only upload (no source code included) @@ -6828,12 +6869,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/7382/tmp/hooks/B01_cleanup starting +I: user script /srv/workspace/pbuilder/7382/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/1963 and its subdirectories -I: Current time: Wed May 29 11:32:53 -12 2024 -I: pbuilder-time-stamp: 1717025573 +I: removing directory /srv/workspace/pbuilder/7382 and its subdirectories +I: Current time: Fri Apr 28 07:11:01 +14 2023 +I: pbuilder-time-stamp: 1682615461