D: [iurt_root_command] chroot Building target platforms: x86_64 Building for target x86_64 sh: line 4: [: -j8: integer expression expected Installing /home/pterjan/rpmbuild/SRPMS/abcmidi-2024.04.30-1.mga10.src.rpm Executing(%mkbuilddir): /bin/sh -e /home/pterjan/rpmbuild/tmp/rpm-tmp.DQakYB sh: line 4: [: -j8: integer expression expected Executing(%prep): /bin/sh -e /home/pterjan/rpmbuild/tmp/rpm-tmp.e90VFb + umask 022 + cd /home/pterjan/rpmbuild/BUILD/abcmidi-2024.04.30-build + '[' 1 -eq 1 ']' + '[' 1 -eq 1 ']' + '[' 1 -eq 1 ']' + cd /home/pterjan/rpmbuild/BUILD/abcmidi-2024.04.30-build + rm -rf abcmidi + /usr/lib/rpm/rpmuncompress -x /home/pterjan/rpmbuild/SOURCES/abcMIDI-2024.04.30.zip + STATUS=0 + '[' 0 -ne 0 ']' + cd abcmidi + /usr/bin/chmod -Rf a+rX,u+w,g-w,o-w . + RPM_EC=0 ++ jobs -p + exit 0 sh: line 4: [: -j8: integer expression expected Executing(%build): /bin/sh -e /home/pterjan/rpmbuild/tmp/rpm-tmp.27lupl + umask 022 + cd /home/pterjan/rpmbuild/BUILD/abcmidi-2024.04.30-build + CFLAGS='-O2 -g -pipe -Wformat -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -m64 -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection=full' + export CFLAGS + CXXFLAGS='-O2 -g -pipe -Wformat -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -m64 -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection=full' + export CXXFLAGS + FFLAGS='-O2 -g -pipe -Wformat -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -m64 -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection=full ' + export FFLAGS + FCFLAGS='-O2 -g -pipe -Wformat -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -m64 -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection=full ' + export FCFLAGS + VALAFLAGS=-g + export VALAFLAGS + RUSTFLAGS='-Copt-level=3 -Cdebuginfo=2 -Ccodegen-units=1 -Cstrip=none --cap-lints=warn' + export RUSTFLAGS + LDFLAGS='-Wl,--as-needed -Wl,--no-undefined -Wl,-z,relro -Wl,-z,now -Wl,-O1 -Wl,--build-id=sha1 -Wl,--enable-new-dtags -specs=/usr/lib/rpm/redhat/redhat-hardened-ld' + export LDFLAGS + LT_SYS_LIBRARY_PATH=/usr/lib64: + export LT_SYS_LIBRARY_PATH + CC=gcc + export CC + CXX=g++ + export CXX + cd abcmidi + '[' 1 -eq 1 ']' + '[' 1 -eq 1 ']' + CFLAGS='-O2 -g -pipe -Wformat -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -m64 -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection=full' + export CFLAGS + CXXFLAGS='-O2 -g -pipe -Wformat -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -m64 -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection=full' + export CXXFLAGS + FFLAGS='-O2 -g -pipe -Wformat -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -m64 -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection=full ' + export FFLAGS + FCFLAGS='-O2 -g -pipe -Wformat -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -m64 -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection=full ' + export FCFLAGS + VALAFLAGS=-g + export VALAFLAGS + RUSTFLAGS='-Copt-level=3 -Cdebuginfo=2 -Ccodegen-units=1 -Cstrip=none --cap-lints=warn' + export RUSTFLAGS + LDFLAGS='-Wl,--as-needed -Wl,--no-undefined -Wl,-z,relro -Wl,-z,now -Wl,-O1 -Wl,--build-id=sha1 -Wl,--enable-new-dtags -specs=/usr/lib/rpm/redhat/redhat-hardened-ld' + export LDFLAGS + LT_SYS_LIBRARY_PATH=/usr/lib64: + export LT_SYS_LIBRARY_PATH + CC=gcc + export CC + CXX=g++ + export CXX + CONFIGURE_TOP=. + '[' 1 = 1 ']' ++ find . -name config.guess -o -name config.sub + /usr/lib/rpm/mageia/force-as-needed-for-shared-lib-in-libtool Forcing -Wl,--as-needed in configure/libtool to workaround libtool bug (cf http://lists.gnu.org/archive/html/libtool-patches/2004-06/msg00002.html) + /usr/lib/rpm/mageia/drop-ld-no-undefined-for-shared-lib-modules-in-libtool + /usr/lib/rpm/mageia/fix-libtool-ltmain-from-overlinking + /usr/lib/rpm/mageia/fix-libtool-from-moving-options-after-libs . + /usr/lib/rpm/mageia/fix-dlsearch-path-in-libtool-for-multilib . lib64 + ./configure --host=x86_64-mageia-linux-gnu --build=x86_64-mageia-linux-gnu --program-prefix= --disable-dependency-tracking --prefix=/usr --exec-prefix=/usr --bindir=/usr/bin --sbindir=/usr/sbin --sysconfdir=/etc --datadir=/usr/share --includedir=/usr/include --libdir=/usr/lib64 --libexecdir=/usr/libexec --localstatedir=/var --sharedstatedir=/var/lib --mandir=/usr/share/man --infodir=/usr/share/info configure: WARNING: unrecognized options: --disable-dependency-tracking checking for x86_64-mageia-linux-gnu-gcc... gcc checking whether the C compiler works... yes checking for C compiler default output file name... a.out checking for suffix of executables... checking whether we are cross compiling... no checking for suffix of object files... o checking whether we are using the GNU C compiler... yes checking whether gcc accepts -g... yes checking for gcc option to accept ISO C89... none needed checking for a BSD-compatible install... /usr/bin/install -c checking for main in -lm... yes checking how to run the C preprocessor... gcc -E checking for grep that handles long lines and -e... /usr/bin/grep checking for egrep... /usr/bin/grep -E checking for ANSI C header files... yes checking for sys/types.h... yes checking for sys/stat.h... yes checking for stdlib.h... yes checking for string.h... yes checking for memory.h... yes checking for strings.h... yes checking for inttypes.h... yes checking for stdint.h... yes checking for unistd.h... yes checking for stdlib.h... (cached) yes checking for string.h... (cached) yes checking for size_t... yes checking for error_at_line... yes checking for stdlib.h... (cached) yes checking for GNU libc compatible malloc... yes checking for strcasecmp... yes checking for strchr... yes configure: creating ./config.status config.status: creating Makefile config.status: creating config.h config.status: config.h is unchanged configure: WARNING: unrecognized options: --disable-dependency-tracking + /usr/bin/make -O -j48 V=1 VERBOSE=1 gcc -DANSILIBS -O2 -g -pipe -Wformat -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -m64 -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection=full -O2 -DHAVE_CONFIG_H -I. -c -o parser2.o parser2.c parser2.c: In function 'splitstring': parser2.c:30:13: warning: old-style function definition [-Wold-style-definition] 30 | static void splitstring(s, sep, handler) | ^~~~~~~~~~~ parser2.c:52:6: error: too many arguments to function 'handler'; expected 0, have 1 52 | (*handler)(out); | ~^~~~~~~~~ ~~~ parser2.c: In function 'event_gchord': parser2.c:56:6: warning: old-style function definition [-Wold-style-definition] 56 | void event_gchord(s) | ^~~~~~~~~~~~ parser2.c: In function 'event_instruction': parser2.c:63:6: warning: old-style function definition [-Wold-style-definition] 63 | void event_instruction(s) | ^~~~~~~~~~~~~~~~~ parser2.c: In function 'event_slur': parser2.c:70:6: warning: old-style function definition [-Wold-style-definition] 70 | void event_slur(t) | ^~~~~~~~~~ make: *** [: parser2.o] Error 1 make: *** Waiting for unfinished jobs.... gcc -DANSILIBS -O2 -g -pipe -Wformat -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -m64 -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection=full -O2 -DHAVE_CONFIG_H -I. -c -o crack.o crack.c crack.c: In function 'crack': crack.c:77:7: warning: old-style function definition [-Wold-style-definition] 77 | char* crack(argc, argv, flags, ign) | ^~~~~ crack.c:80:23: warning: conflicting types for built-in function 'strchr'; expected 'char *(const char *, int)' [-Wbuiltin-declaration-mismatch] 80 | char *pv, *flgp, *strchr(); | ^~~~~~ crack.c:67:1: note: 'strchr' is declared in header '' 66 | #include +++ |+#include 67 | crack.c:95:23: error: too many arguments to function 'strchr'; expected 0, have 2 95 | if ((flgp=strchr(flags,*pv)) != NULL) | ^~~~~~ ~~~~~ crack.c:80:23: note: declared here 80 | char *pv, *flgp, *strchr(); | ^~~~~~ make: *** [: crack.o] Error 1 gcc -DANSILIBS -O2 -g -pipe -Wformat -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -m64 -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection=full -O2 -DHAVE_CONFIG_H -I. -c -o mftext.o mftext.c mftext.c: In function 'main': mftext.c:33:5: warning: old-style function definition [-Wold-style-definition] 33 | int main(argc,argv) | ^~~~ mftext.c:43:15: error: too many arguments to function 'crack'; expected 0, have 4 43 | while((ch = crack(argc,argv,"s",0)) != NULL){ | ^~~~~ ~~~~ mftext.c:39:9: note: declared here 39 | char *crack(); | ^~~~~ mftext.c:52:11: error: too many arguments to function 'efopen'; expected 0, have 2 52 | F = efopen(argv[arg_index],"rb"); | ^~~~~~ ~~~~~~~~~~~~~~~ mftext.c:37:9: note: declared here 37 | FILE *efopen(); | ^~~~~~ mftext.c: In function 'efopen': mftext.c:37:9: warning: old-style function definition [-Wold-style-definition] mftext.c:65:1: error: number of arguments doesn't match prototype 65 | { | ^ mftext.c:37:9: error: prototype declaration 37 | FILE *efopen(); | ^~~~~~ mftext.c: In function 'error': mftext.c:75:6: warning: old-style function definition [-Wold-style-definition] 75 | void error(s) | ^~~~~ mftext.c: In function 'prtime': mftext.c:84:23: error: too many arguments to function 'mf_ticks2sec'; expected 0, have 3 84 | printf("Time=%f ",mf_ticks2sec(Mf_currtime,division,tempo)); | ^~~~~~~~~~~~ ~~~~~~~~~~~ In file included from mftext.c:15: midifile.h:33:7: note: declared here 33 | float mf_ticks2sec(); | ^~~~~~~~~~~~ mftext.c: In function 'txt_header': mftext.c:89:6: warning: old-style function definition [-Wold-style-definition] 89 | void txt_header(format,ntrks,ldivision) | ^~~~~~~~~~ mftext.c: In function 'txt_noteon': mftext.c:106:6: warning: old-style function definition [-Wold-style-definition] 106 | void txt_noteon(chan,pitch,vol) | ^~~~~~~~~~ mftext.c: In function 'txt_noteoff': mftext.c:113:6: warning: old-style function definition [-Wold-style-definition] 113 | void txt_noteoff(chan,pitch,vol) | ^~~~~~~~~~~ mftext.c: In function 'txt_pressure': mftext.c:120:6: warning: old-style function definition [-Wold-style-definition] 120 | void txt_pressure(chan,pitch,press) | ^~~~~~~~~~~~ mftext.c: In function 'txt_parameter': mftext.c:127:6: warning: old-style function definition [-Wold-style-definition] 127 | void txt_parameter(chan,control,value) | ^~~~~~~~~~~~~ mftext.c: In function 'txt_pitchbend': mftext.c:136:6: warning: old-style function definition [-Wold-style-definition] 136 | void txt_pitchbend(chan,lsb,msb) | ^~~~~~~~~~~~~ mftext.c: In function 'txt_program': mftext.c:143:6: warning: old-style function definition [-Wold-style-definition] 143 | void txt_program(chan,program) | ^~~~~~~~~~~ mftext.c: In function 'txt_chanpressure': mftext.c:150:6: warning: old-style function definition [-Wold-style-definition] 150 | void txt_chanpressure(chan,press) | ^~~~~~~~~~~~~~~~ mftext.c: In function 'txt_sysex': mftext.c:157:6: warning: old-style function definition [-Wold-style-definition] 157 | void txt_sysex(leng,mess) | ^~~~~~~~~ mftext.c: In function 'txt_metamisc': mftext.c:165:6: warning: old-style function definition [-Wold-style-definition] 165 | void txt_metamisc(type,leng,mess) | ^~~~~~~~~~~~ mftext.c: In function 'txt_metaspecial': mftext.c:173:6: warning: old-style function definition [-Wold-style-definition] 173 | void txt_metaspecial(type,leng,mess) | ^~~~~~~~~~~~~~~ mftext.c: In function 'txt_metatext': mftext.c:181:6: warning: old-style function definition [-Wold-style-definition] 181 | void txt_metatext(type,leng,mess) | ^~~~~~~~~~~~ mftext.c: In function 'txt_metaseq': mftext.c:212:6: warning: old-style function definition [-Wold-style-definition] 212 | void txt_metaseq(num) | ^~~~~~~~~~~ mftext.c: In function 'txt_keysig': mftext.c:225:6: warning: old-style function definition [-Wold-style-definition] 225 | void txt_keysig(sf,mi) | ^~~~~~~~~~ mftext.c: In function 'txt_tempo': mftext.c:232:6: warning: old-style function definition [-Wold-style-definition] 232 | void txt_tempo(ltempo) | ^~~~~~~~~ mftext.c: In function 'txt_timesig': mftext.c:240:6: warning: old-style function definition [-Wold-style-definition] 240 | void txt_timesig(nn,dd,cc,bb) | ^~~~~~~~~~~ mftext.c: In function 'txt_smpte': mftext.c:251:6: warning: old-style function definition [-Wold-style-definition] 251 | void txt_smpte(hr,mn,se,fr,ff) | ^~~~~~~~~ mftext.c: In function 'txt_arbitrary': mftext.c:259:6: warning: old-style function definition [-Wold-style-definition] 259 | void txt_arbitrary(leng,mess) | ^~~~~~~~~~~~~ make: *** [: mftext.o] Error 1 gcc -DANSILIBS -O2 -g -pipe -Wformat -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -m64 -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection=full -O2 -DHAVE_CONFIG_H -I. -c -o queues.o queues.c queues.c: In function 'addtoQ': queues.c:90:6: warning: old-style function definition [-Wold-style-definition] 90 | void addtoQ(num, denom, pitch, chan, effect, d) | ^~~~~~ queues.c: In function 'removefromQ': queues.c:138:6: warning: old-style function definition [-Wold-style-definition] 138 | void removefromQ(i) | ^~~~~~~~~~~ queues.c: In function 'advanceQ': queues.c:195:6: warning: old-style function definition [-Wold-style-definition] 195 | void advanceQ(t) | ^~~~~~~~ queues.c: In function 'note_effect': queues.c:299:6: error: too many arguments to function 'mf_write_midi_event'; expected 0, have 5 299 | mf_write_midi_event(delta8,pitch_wheel,Q[Qhead].chan,data,2); | ^~~~~~~~~~~~~~~~~~~ ~~~~~~ In file included from queues.c:40: midifile.h:38:5: note: declared here 38 | int mf_write_midi_event(); | ^~~~~~~~~~~~~~~~~~~ queues.c:306:3: error: too many arguments to function 'mf_write_midi_event'; expected 0, have 5 306 | mf_write_midi_event(delta_time,pitch_wheel,Q[Qhead].chan,data,2); | ^~~~~~~~~~~~~~~~~~~ ~~~~~~~~~~ midifile.h:38:5: note: declared here 38 | int mf_write_midi_event(); | ^~~~~~~~~~~~~~~~~~~ queues.c: In function 'note_effect2': queues.c:330:8: error: too many arguments to function 'mf_write_midi_event'; expected 0, have 5 330 | mf_write_midi_event(0,pitch_wheel,Q[Qhead].chan,data,2); | ^~~~~~~~~~~~~~~~~~~ ~ midifile.h:38:5: note: declared here 38 | int mf_write_midi_event(); | ^~~~~~~~~~~~~~~~~~~ queues.c:332:8: error: too many arguments to function 'mf_write_midi_event'; expected 0, have 5 332 | mf_write_midi_event(delta,pitch_wheel,Q[Qhead].chan,data,2); | ^~~~~~~~~~~~~~~~~~~ ~~~~~ midifile.h:38:5: note: declared here 38 | int mf_write_midi_event(); | ^~~~~~~~~~~~~~~~~~~ queues.c:341:3: error: too many arguments to function 'mf_write_midi_event'; expected 0, have 5 341 | mf_write_midi_event(delta_time,pitch_wheel,Q[Qhead].chan,data,2); | ^~~~~~~~~~~~~~~~~~~ ~~~~~~~~~~ midifile.h:38:5: note: declared here 38 | int mf_write_midi_event(); | ^~~~~~~~~~~~~~~~~~~ queues.c: In function 'note_effect3': queues.c:359:3: error: too many arguments to function 'mf_write_midi_event'; expected 0, have 5 359 | mf_write_midi_event(delta,pitch_wheel,Q[Qhead].chan,data,2); | ^~~~~~~~~~~~~~~~~~~ ~~~~~ midifile.h:38:5: note: declared here 38 | int mf_write_midi_event(); | ^~~~~~~~~~~~~~~~~~~ queues.c:364:3: error: too many arguments to function 'mf_write_midi_event'; expected 0, have 5 364 | mf_write_midi_event(delta,pitch_wheel,Q[Qhead].chan,data,2); /* [SS] 2014-09-23 */ | ^~~~~~~~~~~~~~~~~~~ ~~~~~ midifile.h:38:5: note: declared here 38 | int mf_write_midi_event(); | ^~~~~~~~~~~~~~~~~~~ queues.c: In function 'note_effect4': queues.c:368:6: warning: old-style function definition [-Wold-style-definition] 368 | void note_effect4(chan) | ^~~~~~~~~~~~ queues.c: In function 'output_eventlist': queues.c:446:25: error: too many arguments to function 'mf_write_midi_event'; expected 0, have 5 446 | if (cmd == -32) mf_write_midi_event(delta,pitch_wheel,Q[Qhead].chan,data,2); | ^~~~~~~~~~~~~~~~~~~ ~~~~~ midifile.h:38:5: note: declared here 38 | int mf_write_midi_event(); | ^~~~~~~~~~~~~~~~~~~ queues.c: In function 'note_effect5': queues.c:451:6: warning: old-style function definition [-Wold-style-definition] 451 | void note_effect5(chan) | ^~~~~~~~~~~~ queues.c: In function 'timestep': queues.c:573:6: warning: old-style function definition [-Wold-style-definition] 573 | void timestep(t, atend) | ^~~~~~~~ make: *** [: queues.o] Error 1 gcc -DANSILIBS -O2 -g -pipe -Wformat -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -m64 -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection=full -O2 -DHAVE_CONFIG_H -I. -c -o abcmatch.o abcmatch.c abcmatch.c: In function 'analyze_abc_file': abcmatch.c:1154:7: error: too many arguments to function 'parsetune'; expected 0, have 1 1154 | parsetune (fp); | ^~~~~~~~~ ~~ In file included from abcmatch.c:57: parseabc.h:179:12: note: declared here 179 | extern int parsetune(); | ^~~~~~~~~ abcmatch.c: In function 'event_init': abcmatch.c:1203:1: warning: old-style function definition [-Wold-style-definition] 1203 | event_init (argc, argv, filename) | ^~~~~~~~~~ abcmatch.c: In function 'main': abcmatch.c:1393:1: warning: old-style function definition [-Wold-style-definition] 1393 | main (argc, argv) | ^~~~ abcmatch.c:1431:7: error: too many arguments to function 'parsefile'; expected 0, have 1 1431 | parsefile (templatefile); | ^~~~~~~~~ ~~~~~~~~~~~~ parseabc.h:178:13: note: declared here 178 | extern void parsefile(); | ^~~~~~~~~ abcmatch.c:1490:11: error: too many arguments to function 'parsetune'; expected 0, have 1 1490 | parsetune (fp); | ^~~~~~~~~ ~~ parseabc.h:179:12: note: declared here 179 | extern int parsetune(); | ^~~~~~~~~ make: *** [: abcmatch.o] Error 1 gcc -DANSILIBS -O2 -g -pipe -Wformat -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -m64 -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection=full -O2 -DHAVE_CONFIG_H -I. -c -o midifile.o midifile.c midifile.c: In function 'mfread': midifile.c:155:5: error: too many arguments to function 'mferror'; expected 0, have 1 155 | mferror("mfread() called without setting Mf_getc"); | ^~~~~~~ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from midifile.c:60: midifile.h:40:6: note: declared here 40 | void mferror(); | ^~~~~~~ midifile.c: In function 'mfreadtrk': midifile.c:166:6: warning: old-style function definition [-Wold-style-definition] 166 | void mfreadtrk(itrack) /* The only non-static function in this file. */ | ^~~~~~~~~ midifile.c:171:5: error: too many arguments to function 'mferror'; expected 0, have 1 171 | mferror("mfprocess() called without setting Mf_getc"); | ^~~~~~~ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ midifile.h:40:6: note: declared here 40 | void mferror(); | ^~~~~~~ midifile.c: In function 'readmt': midifile.c:193:1: warning: old-style function definition [-Wold-style-definition] 193 | readmt(s) /* read through the "MThd" or "MTrk" header string */ | ^~~~~~ midifile.c:206:7: error: too many arguments to function 'mferror'; expected 0, have 1 206 | mferror(buff); | ^~~~~~~ ~~~~ midifile.h:40:6: note: declared here 40 | void mferror(); | ^~~~~~~ midifile.c: In function 'egetc': midifile.c:218:5: error: too many arguments to function 'mferror'; expected 0, have 1 218 | mferror("premature EOF"); | ^~~~~~~ ~~~~~~~~~~~~~~~ midifile.h:40:6: note: declared here 40 | void mferror(); | ^~~~~~~ midifile.c: In function 'readheader': midifile.c:239:6: error: too many arguments to function 'Mf_header'; expected 0, have 3 239 | (*Mf_header)(format,ntrks,division); | ~^~~~~~~~~~~ ~~~~~~ midifile.c: In function 'skiptrack': midifile.c:254:19: error: too many arguments to function 'mferror'; expected 0, have 1 254 | if (byte == EOF) {mferror("premature EOF\n"); return(0);} | ^~~~~~~ ~~~~~~~~~~~~~~~~~ midifile.h:40:6: note: declared here 40 | void mferror(); | ^~~~~~~ midifile.c: In function 'readtrack': midifile.c:294:30: error: too many arguments to function 'mferror'; expected 0, have 1 294 | mferror("bad time increment"); | ^~~~~~~ ~~~~~~~~~~~~~~~~~~~~ midifile.h:40:6: note: declared here 40 | void mferror(); | ^~~~~~~ midifile.c:301:7: error: too many arguments to function 'mferror'; expected 0, have 1 301 | mferror("didn't find expected continuation of a sysex"); | ^~~~~~~ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ midifile.h:40:6: note: declared here 40 | void mferror(); | ^~~~~~~ midifile.c:308:9: error: too many arguments to function 'mferror'; expected 0, have 1 308 | mferror("unexpected running status"); | ^~~~~~~ ~~~~~~~~~~~~~~~~~~~~~~~~~~~ midifile.h:40:6: note: declared here 40 | void mferror(); | ^~~~~~~ midifile.c:327:9: error: too many arguments to function 'chanmessage'; expected 0, have 3 327 | chanmessage( laststatus, c1, (needed>1) ? egetc() : 0 ); | ^~~~~~~~~~~ ~~~~~~~~~~ midifile.c:131:13: note: declared here 131 | static void chanmessage(); | ^~~~~~~~~~~ midifile.c:331:9: error: too many arguments to function 'chanmessage'; expected 0, have 3 331 | chanmessage( status, c1, (needed>1) ? egetc() : 0 ); | ^~~~~~~~~~~ ~~~~~~ midifile.c:131:13: note: declared here 131 | static void chanmessage(); | ^~~~~~~~~~~ midifile.c:346:9: error: too many arguments to function 'msgadd'; expected 0, have 1 346 | msgadd(egetc()); | ^~~~~~ ~~~~~~~ midifile.c:133:13: note: declared here 133 | static void msgadd(); | ^~~~~~ midifile.c:348:7: error: too many arguments to function 'metaevent'; expected 0, have 1 348 | metaevent(type); | ^~~~~~~~~ ~~~~ midifile.c:129:13: note: declared here 129 | static void metaevent(); | ^~~~~~~~~ midifile.c:356:7: error: too many arguments to function 'msgadd'; expected 0, have 1 356 | msgadd(0xf0); | ^~~~~~ ~~~~ midifile.c:133:13: note: declared here 133 | static void msgadd(); | ^~~~~~ midifile.c:359:9: error: too many arguments to function 'msgadd'; expected 0, have 1 359 | msgadd(c=egetc()); | ^~~~~~ ~~~~~~~~~ midifile.c:133:13: note: declared here 133 | static void msgadd(); | ^~~~~~ midifile.c:376:9: error: too many arguments to function 'msgadd'; expected 0, have 1 376 | msgadd(c=egetc()); | ^~~~~~ ~~~~~~~~~ midifile.c:133:13: note: declared here 133 | static void msgadd(); | ^~~~~~ midifile.c:380:12: error: too many arguments to function 'Mf_arbitrary'; expected 0, have 2 380 | (*Mf_arbitrary)(msgleng(),msg()); | ~^~~~~~~~~~~~~~ ~~~~~~~~~ midifile.c:388:7: error: too many arguments to function 'badbyte'; expected 0, have 1 388 | badbyte(c); | ^~~~~~~ ~ midifile.c:128:13: note: declared here 128 | static void badbyte(); | ^~~~~~~ midifile.c: In function 'badbyte': midifile.c:398:1: warning: old-style function definition [-Wold-style-definition] 398 | badbyte(c) | ^~~~~~~ midifile.c:404:3: error: too many arguments to function 'mferror'; expected 0, have 1 404 | mferror(buff); | ^~~~~~~ ~~~~ midifile.h:40:6: note: declared here 40 | void mferror(); | ^~~~~~~ midifile.c: In function 'metaevent': midifile.c:408:1: warning: old-style function definition [-Wold-style-definition] 408 | metaevent(type) | ^~~~~~~~~ midifile.c:419:20: error: too many arguments to function 'to16bit'; expected 0, have 2 419 | (*Mf_seqnum)(to16bit(m[0],m[1])); | ^~~~~~~ ~~~~ midifile.c:121:12: note: declared here 121 | static int to16bit(); | ^~~~~~~ midifile.c:419:8: error: too many arguments to function 'Mf_seqnum'; expected 0, have 1 419 | (*Mf_seqnum)(to16bit(m[0],m[1])); | ~^~~~~~~~~~~ ~~~~~~~~~~~~~~~~~~ midifile.c:438:8: error: too many arguments to function 'Mf_text'; expected 0, have 3 438 | (*Mf_text)(type,leng,m); | ~^~~~~~~~~ ~~~~ midifile.c:446:19: error: too many arguments to function 'to32bit'; expected 0, have 4 446 | (*Mf_tempo)(to32bit(0,m[0],m[1],m[2])); | ^~~~~~~ ~ midifile.c:119:13: note: declared here 119 | static long to32bit(); | ^~~~~~~ midifile.c:446:8: error: too many arguments to function 'Mf_tempo'; expected 0, have 1 446 | (*Mf_tempo)(to32bit(0,m[0],m[1],m[2])); | ~^~~~~~~~~~ ~~~~~~~~~~~~~~~~~~~~~~~~~ midifile.c:450:8: error: too many arguments to function 'Mf_smpte'; expected 0, have 5 450 | (*Mf_smpte)(m[0],m[1],m[2],m[3],m[4]); | ~^~~~~~~~~~ ~~~~ midifile.c:454:8: error: too many arguments to function 'Mf_timesig'; expected 0, have 4 454 | (*Mf_timesig)(m[0],m[1],m[2],m[3]); | ~^~~~~~~~~~~~ ~~~~ midifile.c:458:8: error: too many arguments to function 'Mf_keysig'; expected 0, have 2 458 | (*Mf_keysig)(m[0],m[1]); | ~^~~~~~~~~~~ ~~~~ midifile.c:462:8: error: too many arguments to function 'Mf_seqspecific'; expected 0, have 2 462 | (*Mf_seqspecific)(leng,m); | ~^~~~~~~~~~~~~~~~ ~~~~ midifile.c:466:8: error: too many arguments to function 'Mf_metamisc'; expected 0, have 3 466 | (*Mf_metamisc)(type,leng,m); | ~^~~~~~~~~~~~~ ~~~~ midifile.c: In function 'sysex': midifile.c:474:6: error: too many arguments to function 'Mf_sysex'; expected 0, have 2 474 | (*Mf_sysex)(msgleng(),msg()); | ~^~~~~~~~~~ ~~~~~~~~~ midifile.c: In function 'chanmessage': midifile.c:478:1: warning: old-style function definition [-Wold-style-definition] 478 | chanmessage(status,c1,c2) | ^~~~~~~~~~~ midifile.c:487:8: error: too many arguments to function 'Mf_noteoff'; expected 0, have 3 487 | (*Mf_noteoff)(chan,c1,c2); | ~^~~~~~~~~~~~ ~~~~ midifile.c:491:8: error: too many arguments to function 'Mf_noteon'; expected 0, have 3 491 | (*Mf_noteon)(chan,c1,c2); | ~^~~~~~~~~~~ ~~~~ midifile.c:495:8: error: too many arguments to function 'Mf_pressure'; expected 0, have 3 495 | (*Mf_pressure)(chan,c1,c2); | ~^~~~~~~~~~~~~ ~~~~ midifile.c:499:8: error: too many arguments to function 'Mf_parameter'; expected 0, have 3 499 | (*Mf_parameter)(chan,c1,c2); | ~^~~~~~~~~~~~~~ ~~~~ midifile.c:503:8: error: too many arguments to function 'Mf_pitchbend'; expected 0, have 3 503 | (*Mf_pitchbend)(chan,c1,c2); | ~^~~~~~~~~~~~~~ ~~~~ midifile.c:507:8: error: too many arguments to function 'Mf_program'; expected 0, have 2 507 | (*Mf_program)(chan,c1); | ~^~~~~~~~~~~~ ~~~~ midifile.c:511:8: error: too many arguments to function 'Mf_chanpressure'; expected 0, have 2 511 | (*Mf_chanpressure)(chan,c1); | ~^~~~~~~~~~~~~~~~~ ~~~~ midifile.c: In function 'to32bit': midifile.c:538:1: warning: old-style function definition [-Wold-style-definition] 538 | to32bit(c1,c2,c3,c4) | ^~~~~~~ midifile.c: In function 'to16bit': midifile.c:551:1: warning: old-style function definition [-Wold-style-definition] 551 | to16bit(c1,c2) | ^~~~~~~ midifile.c: In function 'read32bit': midifile.c:566:10: error: too many arguments to function 'to32bit'; expected 0, have 4 566 | return to32bit(c1,c2,c3,c4); | ^~~~~~~ ~~ midifile.c:538:1: note: declared here 538 | to32bit(c1,c2,c3,c4) | ^~~~~~~ midifile.c: In function 'read16bit': midifile.c:575:10: error: too many arguments to function 'to16bit'; expected 0, have 2 575 | return to16bit(c1,c2); | ^~~~~~~ ~~ midifile.c:551:1: note: declared here 551 | to16bit(c1,c2) | ^~~~~~~ midifile.c: In function 'mferror': midifile.c:579:6: warning: old-style function definition [-Wold-style-definition] 579 | void mferror(s) | ^~~~~~~ midifile.c:581:1: error: number of arguments doesn't match prototype 581 | { | ^ midifile.h:40:6: error: prototype declaration 40 | void mferror(); | ^~~~~~~ midifile.c:583:6: error: too many arguments to function 'Mf_error'; expected 0, have 1 583 | (*Mf_error)(s); | ~^~~~~~~~~~ ~ midifile.c: In function 'msgadd': midifile.c:619:1: warning: old-style function definition [-Wold-style-definition] 619 | msgadd(c) | ^~~~~~ midifile.c: In function 'biggermsg': midifile.c:642:5: error: too many arguments to function 'mferror'; expected 0, have 1 642 | mferror("malloc error!"); | ^~~~~~~ ~~~~~~~~~~~~~~~ midifile.c:579:6: note: declared here 579 | void mferror(s) | ^~~~~~~ midifile.c: In function 'mfwrite': midifile.c:686:1: warning: old-style function definition [-Wold-style-definition] 686 | mfwrite(format,ntracks,division,fp) | ^~~~~~~ midifile.c:689:1: error: number of arguments doesn't match prototype 689 | { | ^ midifile.h:35:6: error: prototype declaration 35 | void mfwrite(); | ^~~~~~~ midifile.c:693:7: error: too many arguments to function 'mferror'; expected 0, have 1 693 | mferror("mf_write() called without setting Mf_putc"); | ^~~~~~~ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ midifile.c:579:6: note: declared here 579 | void mferror(s) | ^~~~~~~ midifile.c:696:7: error: too many arguments to function 'mferror'; expected 0, have 1 696 | mferror("mf_write() called without setting Mf_writetrack"); | ^~~~~~~ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ midifile.c:579:6: note: declared here 579 | void mferror(s) | ^~~~~~~ midifile.c:699:5: error: too many arguments to function 'mf_write_header_chunk'; expected 0, have 3 699 | mf_write_header_chunk(format,ntracks,division); | ^~~~~~~~~~~~~~~~~~~~~ ~~~~~~ midifile.c:136:13: note: declared here 136 | static void mf_write_header_chunk(); | ^~~~~~~~~~~~~~~~~~~~~ midifile.c:709:9: error: too many arguments to function 'mf_write_track_chunk'; expected 0, have 2 709 | mf_write_track_chunk(i,fp); | ^~~~~~~~~~~~~~~~~~~~ ~ midifile.c:135:13: note: declared here 135 | static void mf_write_track_chunk(); | ^~~~~~~~~~~~~~~~~~~~ midifile.c: In function 'nullputc': midifile.c:716:5: warning: old-style function definition [-Wold-style-definition] 716 | int nullputc(c) | ^~~~~~~~ midifile.c: In function 'mf_write_track_chunk': midifile.c:728:1: warning: old-style function definition [-Wold-style-definition] 728 | mf_write_track_chunk(which_track,fp) | ^~~~~~~~~~~~~~~~~~~~ midifile.c:794:3: error: too many arguments to function 'write32bit'; expected 0, have 1 794 | write32bit(trkhdr); | ^~~~~~~~~~ ~~~~~~ midifile.c:138:13: note: declared here 138 | static void write32bit(); | ^~~~~~~~~~ midifile.c:795:3: error: too many arguments to function 'write32bit'; expected 0, have 1 795 | write32bit(trklength); | ^~~~~~~~~~ ~~~~~~~~~ midifile.c:138:13: note: declared here 138 | static void write32bit(); | ^~~~~~~~~~ midifile.c:801:19: error: too many arguments to function 'Mf_writetrack'; expected 0, have 1 801 | endspace = (*Mf_writetrack)(which_track); | ~^~~~~~~~~~~~~~~ ~~~~~~~~~~~ midifile.c:805:3: error: too many arguments to function 'WriteVarLen'; expected 0, have 1 805 | WriteVarLen(endspace); | ^~~~~~~~~~~ ~~~~~~~~ midifile.c:137:13: note: declared here 137 | static void WriteVarLen(); | ^~~~~~~~~~~ midifile.c:807:3: error: too many arguments to function 'eputc'; expected 0, have 1 807 | eputc(meta_event); | ^~~~~ midifile.c:141:12: note: declared here 141 | static int eputc(); | ^~~~~ midifile.c:808:3: error: too many arguments to function 'eputc'; expected 0, have 1 808 | eputc(end_of_track); | ^~~~~ midifile.c:141:12: note: declared here 141 | static int eputc(); | ^~~~~ midifile.c:810:4: error: too many arguments to function 'eputc'; expected 0, have 1 810 | eputc(0); | ^~~~~ ~ midifile.c:141:12: note: declared here 141 | static int eputc(); | ^~~~~ midifile.c:827:7: error: too many arguments to function 'mferror'; expected 0, have 1 827 | mferror("error seeking during final stage of write"); | ^~~~~~~ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ midifile.c:579:6: note: declared here 579 | void mferror(s) | ^~~~~~~ midifile.c:832:3: error: too many arguments to function 'write32bit'; expected 0, have 1 832 | write32bit(trkhdr); | ^~~~~~~~~~ ~~~~~~ midifile.c:138:13: note: declared here 138 | static void write32bit(); | ^~~~~~~~~~ midifile.c:833:3: error: too many arguments to function 'write32bit'; expected 0, have 1 833 | write32bit(trklength); | ^~~~~~~~~~ ~~~~~~~~~ midifile.c:138:13: note: declared here 138 | static void write32bit(); | ^~~~~~~~~~ midifile.c: In function 'mf_write_header_chunk': midifile.c:841:1: warning: old-style function definition [-Wold-style-definition] 841 | mf_write_header_chunk(format,ntracks,division) | ^~~~~~~~~~~~~~~~~~~~~ midifile.c:851:5: error: too many arguments to function 'write32bit'; expected 0, have 1 851 | write32bit(ident); | ^~~~~~~~~~ ~~~~~ midifile.c:138:13: note: declared here 138 | static void write32bit(); | ^~~~~~~~~~ midifile.c:852:5: error: too many arguments to function 'write32bit'; expected 0, have 1 852 | write32bit(length); | ^~~~~~~~~~ ~~~~~~ midifile.c:138:13: note: declared here 138 | static void write32bit(); | ^~~~~~~~~~ midifile.c:853:5: error: too many arguments to function 'write16bit'; expected 0, have 1 853 | write16bit(format); | ^~~~~~~~~~ ~~~~~~ midifile.c:139:13: note: declared here 139 | static void write16bit(); | ^~~~~~~~~~ midifile.c:854:5: error: too many arguments to function 'write16bit'; expected 0, have 1 854 | write16bit(ntracks); | ^~~~~~~~~~ ~~~~~~~ midifile.c:139:13: note: declared here 139 | static void write16bit(); | ^~~~~~~~~~ midifile.c:855:5: error: too many arguments to function 'write16bit'; expected 0, have 1 855 | write16bit(division); | ^~~~~~~~~~ ~~~~~~~~ midifile.c:139:13: note: declared here 139 | static void write16bit(); | ^~~~~~~~~~ midifile.c: In function 'mf_write_midi_event': midifile.c:878:1: warning: old-style function definition [-Wold-style-definition] 878 | mf_write_midi_event(delta_time, type, chan, data, size) | ^~~~~~~~~~~~~~~~~~~ midifile.c:883:1: error: number of arguments doesn't match prototype 883 | { | ^ midifile.h:38:5: error: prototype declaration 38 | int mf_write_midi_event(); | ^~~~~~~~~~~~~~~~~~~ midifile.c:887:5: error: too many arguments to function 'WriteVarLen'; expected 0, have 1 887 | WriteVarLen(delta_time); | ^~~~~~~~~~~ ~~~~~~~~~~ midifile.c:137:13: note: declared here 137 | static void WriteVarLen(); | ^~~~~~~~~~~ midifile.c:894:7: error: too many arguments to function 'mferror'; expected 0, have 1 894 | mferror("error: MIDI channel greater than 16"); | ^~~~~~~ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ midifile.c:579:6: note: declared here 579 | void mferror(s) | ^~~~~~~ midifile.c:897:5: error: too many arguments to function 'eputc'; expected 0, have 1 897 | eputc(c); | ^~~~~ ~ midifile.c:141:12: note: declared here 141 | static int eputc(); | ^~~~~ midifile.c:901:3: error: too many arguments to function 'eputc'; expected 0, have 1 901 | eputc(data[i]); | ^~~~~ ~~~~~~~ midifile.c:141:12: note: declared here 141 | static int eputc(); | ^~~~~ midifile.c: In function 'mf_write_meta_event': midifile.c:921:1: warning: old-style function definition [-Wold-style-definition] 921 | mf_write_meta_event(delta_time, type, data, size) | ^~~~~~~~~~~~~~~~~~~ midifile.c:926:1: error: number of arguments doesn't match prototype 926 | { | ^ midifile.h:37:5: error: prototype declaration 37 | int mf_write_meta_event(); | ^~~~~~~~~~~~~~~~~~~ midifile.c:929:5: error: too many arguments to function 'WriteVarLen'; expected 0, have 1 929 | WriteVarLen(delta_time); | ^~~~~~~~~~~ ~~~~~~~~~~ midifile.c:137:13: note: declared here 137 | static void WriteVarLen(); | ^~~~~~~~~~~ midifile.c:932:5: error: too many arguments to function 'eputc'; expected 0, have 1 932 | eputc(meta_event); | ^~~~~ midifile.c:141:12: note: declared here 141 | static int eputc(); | ^~~~~ midifile.c:935:5: error: too many arguments to function 'eputc'; expected 0, have 1 935 | eputc(type); | ^~~~~ ~~~~ midifile.c:141:12: note: declared here 141 | static int eputc(); | ^~~~~ midifile.c:938:5: error: too many arguments to function 'WriteVarLen'; expected 0, have 1 938 | WriteVarLen((long)size); | ^~~~~~~~~~~ ~~~~~~~~~~ midifile.c:137:13: note: declared here 137 | static void WriteVarLen(); | ^~~~~~~~~~~ midifile.c:942:6: error: too many arguments to function 'eputc'; expected 0, have 1 942 | if(eputc((data[i] & 0xff)) != (data[i] & 0xff)) | ^~~~~ ~~~~~~~~~~~~~~~~ midifile.c:141:12: note: declared here 141 | static int eputc(); | ^~~~~ midifile.c: In function 'mf_write_tempo': midifile.c:949:1: warning: old-style function definition [-Wold-style-definition] 949 | mf_write_tempo(tempo) | ^~~~~~~~~~~~~~ midifile.c:951:1: error: number of arguments doesn't match prototype 951 | { | ^ midifile.h:39:6: error: prototype declaration 39 | void mf_write_tempo(); | ^~~~~~~~~~~~~~ midifile.c:955:5: error: too many arguments to function 'eputc'; expected 0, have 1 955 | eputc(0); | ^~~~~ ~ midifile.c:141:12: note: declared here 141 | static int eputc(); | ^~~~~ midifile.c:956:5: error: too many arguments to function 'eputc'; expected 0, have 1 956 | eputc(meta_event); | ^~~~~ midifile.c:141:12: note: declared here 141 | static int eputc(); | ^~~~~ midifile.c:957:5: error: too many arguments to function 'eputc'; expected 0, have 1 957 | eputc(set_tempo); | ^~~~~ midifile.c:141:12: note: declared here 141 | static int eputc(); | ^~~~~ midifile.c:959:5: error: too many arguments to function 'eputc'; expected 0, have 1 959 | eputc(3); | ^~~~~ ~ midifile.c:141:12: note: declared here 141 | static int eputc(); | ^~~~~ midifile.c:960:5: error: too many arguments to function 'eputc'; expected 0, have 1 960 | eputc((char)(0xff & (tempo >> 16))); | ^~~~~ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~ midifile.c:141:12: note: declared here 141 | static int eputc(); | ^~~~~ midifile.c:961:5: error: too many arguments to function 'eputc'; expected 0, have 1 961 | eputc((char)(0xff & (tempo >> 8))); | ^~~~~ ~~~~~~~~~~~~~~~~~~~~~~~~~~~ midifile.c:141:12: note: declared here 141 | static int eputc(); | ^~~~~ midifile.c:962:5: error: too many arguments to function 'eputc'; expected 0, have 1 962 | eputc((char)(0xff & tempo)); | ^~~~~ ~~~~~~~~~~~~~~~~~~~~ midifile.c:141:12: note: declared here 141 | static int eputc(); | ^~~~~ midifile.c: In function 'mf_sec2ticks': midifile.c:974:1: warning: old-style function definition [-Wold-style-definition] 974 | mf_sec2ticks(secs,division,tempo) | ^~~~~~~~~~~~ midifile.c:978:1: error: number of arguments doesn't match prototype 978 | { | ^ midifile.h:34:6: error: prototype declaration 34 | long mf_sec2ticks(); | ^~~~~~~~~~~~ midifile.c: In function 'WriteVarLen': midifile.c:997:1: warning: old-style function definition [-Wold-style-definition] 997 | WriteVarLen(value) | ^~~~~~~~~~~ midifile.c:1010:8: error: too many arguments to function 'eputc'; expected 0, have 1 1010 | eputc((char)(buffer & 0xff)); | ^~~~~ ~~~~~~~~~~~~~~~~~~~~~ midifile.c:141:12: note: declared here 141 | static int eputc(); | ^~~~~ midifile.c: In function 'single_note_tuning_change': midifile.c:1025:1: error: too many arguments to function 'eputc'; expected 0, have 1 1025 | eputc(0); /* varinum delta_t (time to next event) */ | ^~~~~ ~ midifile.c:141:12: note: declared here 141 | static int eputc(); | ^~~~~ midifile.c:1026:1: error: too many arguments to function 'eputc'; expected 0, have 1 1026 | eputc(0xf0); /* sysex initiation */ | ^~~~~ ~~~~ midifile.c:141:12: note: declared here 141 | static int eputc(); | ^~~~~ midifile.c:1027:2: error: too many arguments to function 'eputc'; expected 0, have 1 1027 | eputc(11); /* 11 bytes included in sysex */ | ^~~~~ ~~ midifile.c:141:12: note: declared here 141 | static int eputc(); | ^~~~~ midifile.c:1028:1: error: too many arguments to function 'eputc'; expected 0, have 1 1028 | eputc(127); /* universal sysex command (0x7f) */ | ^~~~~ ~~~ midifile.c:141:12: note: declared here 141 | static int eputc(); | ^~~~~ midifile.c:1029:1: error: too many arguments to function 'eputc'; expected 0, have 1 1029 | eputc(0); /* device id */ | ^~~~~ ~ midifile.c:141:12: note: declared here 141 | static int eputc(); | ^~~~~ midifile.c:1030:1: error: too many arguments to function 'eputc'; expected 0, have 1 1030 | eputc(8); /* midi tuning */ | ^~~~~ ~ midifile.c:141:12: note: declared here 141 | static int eputc(); | ^~~~~ midifile.c:1031:1: error: too many arguments to function 'eputc'; expected 0, have 1 1031 | eputc(2); /* note change */ | ^~~~~ ~ midifile.c:141:12: note: declared here 141 | static int eputc(); | ^~~~~ midifile.c:1032:1: error: too many arguments to function 'eputc'; expected 0, have 1 1032 | eputc(0); /* program number 0 - 127 */ | ^~~~~ ~ midifile.c:141:12: note: declared here 141 | static int eputc(); | ^~~~~ midifile.c:1033:1: error: too many arguments to function 'eputc'; expected 0, have 1 1033 | eputc(1); /* only one change */ | ^~~~~ ~ midifile.c:141:12: note: declared here 141 | static int eputc(); | ^~~~~ midifile.c:1035:1: error: too many arguments to function 'eputc'; expected 0, have 1 1035 | eputc(kk); /* MIDI key 0 - 127 */ | ^~~~~ ~~ midifile.c:141:12: note: declared here 141 | static int eputc(); | ^~~~~ midifile.c:1045:1: error: too many arguments to function 'eputc'; expected 0, have 1 1045 | eputc(xx); | ^~~~~ ~~ midifile.c:141:12: note: declared here 141 | static int eputc(); | ^~~~~ midifile.c:1046:1: error: too many arguments to function 'eputc'; expected 0, have 1 1046 | eputc(yy); | ^~~~~ ~~ midifile.c:141:12: note: declared here 141 | static int eputc(); | ^~~~~ midifile.c:1047:1: error: too many arguments to function 'eputc'; expected 0, have 1 1047 | eputc(zz); | ^~~~~ ~~ midifile.c:141:12: note: declared here 141 | static int eputc(); | ^~~~~ midifile.c:1048:1: error: too many arguments to function 'eputc'; expected 0, have 1 1048 | eputc(247); /* 0xf7 terminates sysex command */ | ^~~~~ ~~~ midifile.c:141:12: note: declared here 141 | static int eputc(); | ^~~~~ midifile.c: In function 'mf_ticks2sec': midifile.c:1058:1: warning: old-style function definition [-Wold-style-definition] 1058 | mf_ticks2sec(ticks,division,tempo) | ^~~~~~~~~~~~ midifile.c:1062:1: error: number of arguments doesn't match prototype 1062 | { | ^ midifile.h:33:7: error: prototype declaration 33 | float mf_ticks2sec(); | ^~~~~~~~~~~~ midifile.c: In function 'write32bit': midifile.c:1089:1: warning: old-style function definition [-Wold-style-definition] 1089 | write32bit(data) | ^~~~~~~~~~ midifile.c:1092:5: error: too many arguments to function 'eputc'; expected 0, have 1 1092 | eputc((char)((data >> 24) & 0xff)); | ^~~~~ ~~~~~~~~~~~~~~~~~~~~~~~~~~~ midifile.c:141:12: note: declared here 141 | static int eputc(); | ^~~~~ midifile.c:1093:5: error: too many arguments to function 'eputc'; expected 0, have 1 1093 | eputc((char)((data >> 16) & 0xff)); | ^~~~~ ~~~~~~~~~~~~~~~~~~~~~~~~~~~ midifile.c:141:12: note: declared here 141 | static int eputc(); | ^~~~~ midifile.c:1094:5: error: too many arguments to function 'eputc'; expected 0, have 1 1094 | eputc((char)((data >> 8 ) & 0xff)); | ^~~~~ ~~~~~~~~~~~~~~~~~~~~~~~~~~~ midifile.c:141:12: note: declared here 141 | static int eputc(); | ^~~~~ midifile.c:1095:5: error: too many arguments to function 'eputc'; expected 0, have 1 1095 | eputc((char)(data & 0xff)); | ^~~~~ ~~~~~~~~~~~~~~~~~~~ midifile.c:141:12: note: declared here 141 | static int eputc(); | ^~~~~ midifile.c: In function 'write16bit': midifile.c:1099:1: warning: old-style function definition [-Wold-style-definition] 1099 | write16bit(data) | ^~~~~~~~~~ midifile.c:1102:5: error: too many arguments to function 'eputc'; expected 0, have 1 1102 | eputc((char)((data & 0xff00) >> 8)); | ^~~~~ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~ midifile.c:141:12: note: declared here 141 | static int eputc(); | ^~~~~ midifile.c:1103:5: error: too many arguments to function 'eputc'; expected 0, have 1 1103 | eputc((char)(data & 0xff)); | ^~~~~ ~~~~~~~~~~~~~~~~~~~ midifile.c:141:12: note: declared here 141 | static int eputc(); | ^~~~~ midifile.c: In function 'eputc': midifile.c:1107:12: warning: old-style function definition [-Wold-style-definition] 1107 | static int eputc(c) | ^~~~~ midifile.c:1114:5: error: too many arguments to function 'mferror'; expected 0, have 1 1114 | mferror("Mf_putc undefined"); | ^~~~~~~ ~~~~~~~~~~~~~~~~~~~ midifile.c:579:6: note: declared here 579 | void mferror(s) | ^~~~~~~ midifile.c:1118:17: error: too many arguments to function 'Mf_putc'; expected 0, have 1 1118 | return_val = (*Mf_putc)(c); | ~^~~~~~~~~ ~ midifile.c:1121:5: error: too many arguments to function 'mferror'; expected 0, have 1 1121 | mferror("error writing"); | ^~~~~~~ ~~~~~~~~~~~~~~~ midifile.c:579:6: note: declared here 579 | void mferror(s) | ^~~~~~~ make: *** [: midifile.o] Error 1 gcc -DANSILIBS -O2 -g -pipe -Wformat -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -m64 -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection=full -O2 -DHAVE_CONFIG_H -I. -c -o matchsup.o matchsup.c matchsup.c: In function 'event_info': matchsup.c:243:6: warning: old-style function definition [-Wold-style-definition] 243 | void event_info (place) | ^~~~~~~~~~ matchsup.c: In function 'event_gchord': matchsup.c:248:6: warning: old-style function definition [-Wold-style-definition] 248 | void event_gchord (chord) | ^~~~~~~~~~~~ matchsup.c: In function 'event_slur': matchsup.c:253:6: warning: old-style function definition [-Wold-style-definition] 253 | void event_slur (t) | ^~~~~~~~~~ matchsup.c: In function 'event_instruction': matchsup.c:259:6: warning: old-style function definition [-Wold-style-definition] 259 | void event_instruction (s) | ^~~~~~~~~~~~~~~~~ matchsup.c: In function 'event_reserved': matchsup.c:265:6: warning: old-style function definition [-Wold-style-definition] 265 | void event_reserved (p) | ^~~~~~~~~~~~~~ matchsup.c: In function 'reduce': matchsup.c:273:6: warning: old-style function definition [-Wold-style-definition] 273 | void reduce(a, b) | ^~~~~~ matchsup.c: In function 'addunits': matchsup.c:303:6: warning: old-style function definition [-Wold-style-definition] 303 | void addunits(a, b) | ^~~~~~~~ matchsup.c: In function 'set_meter': matchsup.c:313:6: warning: old-style function definition [-Wold-style-definition] 313 | void set_meter(n, m) | ^~~~~~~~~ matchsup.c: In function 'newvoice': matchsup.c:341:29: warning: old-style function definition [-Wold-style-definition] 341 | static struct voicecontext* newvoice(n) | ^~~~~~~~ matchsup.c: In function 'getvoicecontext': matchsup.c:375:29: warning: old-style function definition [-Wold-style-definition] 375 | static struct voicecontext* getvoicecontext(n) | ^~~~~~~~~~~~~~~ matchsup.c: In function 'event_text': matchsup.c:418:6: warning: old-style function definition [-Wold-style-definition] 418 | void event_text(s) | ^~~~~~~~~~ matchsup.c: In function 'event_specific': matchsup.c:426:6: warning: old-style function definition [-Wold-style-definition] 426 | void event_specific (package, s, in_I) | ^~~~~~~~~~~~~~ matchsup.c: In function 'event_x_reserved': matchsup.c:433:6: warning: old-style function definition [-Wold-style-definition] 433 | void event_x_reserved(p) | ^~~~~~~~~~~~~~~~ matchsup.c: In function 'event_abbreviation': matchsup.c:439:6: warning: old-style function definition [-Wold-style-definition] 439 | void event_abbreviation(symbol, string, container) | ^~~~~~~~~~~~~~~~~~ matchsup.c: In function 'event_tex': matchsup.c:472:6: warning: old-style function definition [-Wold-style-definition] 472 | void event_tex(s) | ^~~~~~~~~ matchsup.c: In function 'event_fatal_error': matchsup.c:478:6: warning: old-style function definition [-Wold-style-definition] 478 | void event_fatal_error(s) | ^~~~~~~~~~~~~~~~~ matchsup.c: In function 'event_error': matchsup.c:486:6: warning: old-style function definition [-Wold-style-definition] 486 | void event_error(s) | ^~~~~~~~~~~ matchsup.c: In function 'event_warning': matchsup.c:502:6: warning: old-style function definition [-Wold-style-definition] 502 | void event_warning(s) | ^~~~~~~~~~~~~ matchsup.c: In function 'autoextend': matchsup.c:518:12: warning: old-style function definition [-Wold-style-definition] 518 | static int autoextend(maxnotes) | ^~~~~~~~~~ matchsup.c: In function 'addfeature': matchsup.c:565:13: warning: old-style function definition [-Wold-style-definition] 565 | static void addfeature(f, p, n, d) | ^~~~~~~~~~ matchsup.c: In function 'event_endmusicline': matchsup.c:607:6: warning: old-style function definition [-Wold-style-definition] 607 | void event_endmusicline(endchar) | ^~~~~~~~~~~~~~~~~~ matchsup.c: In function 'textfeature': matchsup.c:614:13: warning: old-style function definition [-Wold-style-definition] 614 | static void textfeature(type, s) | ^~~~~~~~~~~ matchsup.c: In function 'event_comment': matchsup.c:622:6: warning: old-style function definition [-Wold-style-definition] 622 | void event_comment(s) | ^~~~~~~~~~~~~ matchsup.c: In function 'event_field': matchsup.c:639:6: warning: old-style function definition [-Wold-style-definition] 639 | void event_field(k, f) | ^~~~~~~~~~~ matchsup.c: In function 'event_words': matchsup.c:671:6: warning: old-style function definition [-Wold-style-definition] 671 | void event_words(p, append, continuation) | ^~~~~~~~~~~ matchsup.c: In function 'appendfield': matchsup.c:680:6: warning: old-style function definition [-Wold-style-definition] 680 | void appendfield (morewords) | ^~~~~~~~~~~ matchsup.c: In function 'read_spec': matchsup.c:706:13: warning: old-style function definition [-Wold-style-definition] 706 | static void read_spec(spec, part) | ^~~~~~~~~ matchsup.c: In function 'event_part': matchsup.c:718:6: warning: old-style function definition [-Wold-style-definition] 718 | void event_part(s) | ^~~~~~~~~~ matchsup.c: In function 'event_voice': matchsup.c:759:6: warning: old-style function definition [-Wold-style-definition] 759 | void event_voice(n, s, vp) | ^~~~~~~~~~~ matchsup.c: In function 'event_length': matchsup.c:785:6: warning: old-style function definition [-Wold-style-definition] 785 | void event_length(n) | ^~~~~~~~~~~~ matchsup.c: In function 'event_default_length': matchsup.c:797:6: warning: old-style function definition [-Wold-style-definition] 797 | void event_default_length (n) | ^~~~~~~~~~~~~~~~~~~~ matchsup.c: In function 'tempounits': matchsup.c:803:13: warning: old-style function definition [-Wold-style-definition] 803 | static void tempounits(t_num, t_denom) | ^~~~~~~~~~ matchsup.c: In function 'event_tempo': matchsup.c:809:6: warning: old-style function definition [-Wold-style-definition] 809 | void event_tempo(n, a, b, rel, pre, post) | ^~~~~~~~~~~ matchsup.c: In function 'event_timesig': matchsup.c:819:6: warning: old-style function definition [-Wold-style-definition] 819 | void event_timesig (timesig) | ^~~~~~~~~~~~~ matchsup.c: In function 'event_octave': matchsup.c:842:6: warning: old-style function definition [-Wold-style-definition] 842 | void event_octave(num, local) | ^~~~~~~~~~~~ matchsup.c: In function 'event_info_key': matchsup.c:857:6: warning: old-style function definition [-Wold-style-definition] 857 | void event_info_key(key, value) | ^~~~~~~~~~~~~~ matchsup.c: In function 'stack_broken': matchsup.c:869:13: warning: old-style function definition [-Wold-style-definition] 869 | static void stack_broken(v) | ^~~~~~~~~~~~ matchsup.c: In function 'restore_broken': matchsup.c:886:13: warning: old-style function definition [-Wold-style-definition] 886 | static void restore_broken(v) | ^~~~~~~~~~~~~~ matchsup.c: In function 'event_playonrep': matchsup.c:957:6: warning: old-style function definition [-Wold-style-definition] 957 | void event_playonrep(s) | ^~~~~~~~~~~~~~~ matchsup.c: In function 'event_sluron': matchsup.c:981:6: warning: old-style function definition [-Wold-style-definition] 981 | void event_sluron(t) | ^~~~~~~~~~~~ matchsup.c: In function 'event_sluroff': matchsup.c:991:6: warning: old-style function definition [-Wold-style-definition] 991 | void event_sluroff(t) | ^~~~~~~~~~~~~ matchsup.c: In function 'event_lineend': matchsup.c:1015:6: warning: old-style function definition [-Wold-style-definition] 1015 | void event_lineend(ch, n) | ^~~~~~~~~~~~~ matchsup.c: In function 'event_broken': matchsup.c:1023:6: warning: old-style function definition [-Wold-style-definition] 1023 | void event_broken(type, mult) | ^~~~~~~~~~~~ matchsup.c: In function 'event_tuple': matchsup.c:1040:6: warning: old-style function definition [-Wold-style-definition] 1040 | void event_tuple(n, q, r) | ^~~~~~~~~~~ matchsup.c: In function 'lenmul': matchsup.c:1095:13: warning: old-style function definition [-Wold-style-definition] 1095 | static void lenmul(n, a, b) | ^~~~~~ matchsup.c: In function 'event_spacing': matchsup.c:1198:6: warning: old-style function definition [-Wold-style-definition] 1198 | void event_spacing(n, m) | ^~~~~~~~~~~~~ matchsup.c: In function 'event_rest': matchsup.c:1203:6: warning: old-style function definition [-Wold-style-definition] 1203 | void event_rest(decorators,n,m,type) | ^~~~~~~~~~ matchsup.c: In function 'event_mrest': matchsup.c:1247:6: warning: old-style function definition [-Wold-style-definition] 1247 | void event_mrest(n,m,c) | ^~~~~~~~~~~ matchsup.c: In function 'event_finger': matchsup.c:1306:6: warning: old-style function definition [-Wold-style-definition] 1306 | void event_finger(p) | ^~~~~~~~~~~~ matchsup.c: In function 'pitchof': matchsup.c:1313:12: warning: old-style function definition [-Wold-style-definition] 1313 | static int pitchof(note, accidental, mult, octave, propogate_accs) | ^~~~~~~ matchsup.c: In function 'hornp': matchsup.c:1349:13: warning: old-style function definition [-Wold-style-definition] 1349 | static void hornp(num, denom) | ^~~~~ matchsup.c: In function 'event_note': matchsup.c:1371:6: warning: old-style function definition [-Wold-style-definition] 1371 | void event_note(decorators, clef, accidental, mult, note, xoctave, n, m) | ^~~~~~~~~~ matchsup.c: At top level: matchsup.c:1437:6: error: conflicting types for 'event_temperament'; have 'void(char *)' 1437 | void event_temperament(char *line) { | ^~~~~~~~~~~~~~~~~ In file included from matchsup.c:66: parseabc.h:174:13: note: previous declaration of 'event_temperament' with type 'void(void)' 174 | extern void event_temperament(); | ^~~~~~~~~~~~~~~~~ matchsup.c: In function 'get_accidental': matchsup.c:1447:7: warning: old-style function definition [-Wold-style-definition] 1447 | char *get_accidental(place, accidental) | ^~~~~~~~~~~~~~ matchsup.c: In function 'event_handle_gchord': matchsup.c:1467:6: warning: old-style function definition [-Wold-style-definition] 1467 | void event_handle_gchord(s) | ^~~~~~~~~~~~~~~~~~~ matchsup.c: In function 'event_handle_instruction': matchsup.c:1473:6: warning: old-style function definition [-Wold-style-definition] 1473 | void event_handle_instruction(s) | ^~~~~~~~~~~~~~~~~~~~~~~~ matchsup.c: In function 'setmap': matchsup.c:1481:13: warning: old-style function definition [-Wold-style-definition] 1481 | static void setmap(sf, map, mult) | ^~~~~~ matchsup.c: In function 'altermap': matchsup.c:1509:13: warning: old-style function definition [-Wold-style-definition] 1509 | static void altermap(v, modmap, modmul) | ^~~~~~~~ matchsup.c: In function 'copymap': matchsup.c:1525:13: warning: old-style function definition [-Wold-style-definition] 1525 | static void copymap(v) | ^~~~~~~ matchsup.c: In function 'myputc': matchsup.c:1540:5: warning: old-style function definition [-Wold-style-definition] 1540 | int myputc(c) | ^~~~~~ matchsup.c: In function 'addfract': matchsup.c:1546:13: warning: old-style function definition [-Wold-style-definition] 1546 | static void addfract(xnum, xdenom, a, b) | ^~~~~~~~ matchsup.c: In function 'dotie': matchsup.c:1558:13: warning: old-style function definition [-Wold-style-definition] 1558 | static void dotie(j, xinchord,voiceno) | ^~~~~ matchsup.c: In function 'event_bar': matchsup.c:1756:6: warning: old-style function definition [-Wold-style-definition] 1756 | void event_bar(type, replist) | ^~~~~~~~~ matchsup.c: In function 'event_key': matchsup.c:1882:6: warning: old-style function definition [-Wold-style-definition] 1882 | void event_key(sharps, s, modeindex, modmap, modmul, modmicrotone, | ^~~~~~~~~ matchsup.c: In function 'event_refno': matchsup.c:1996:6: warning: old-style function definition [-Wold-style-definition] 1996 | void event_refno(n) | ^~~~~~~~~~~ make: *** [: matchsup.o] Error 1 gcc -DANSILIBS -O2 -g -pipe -Wformat -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -m64 -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection=full -O2 -DHAVE_CONFIG_H -I. -c -o midicopy.o midicopy.c midicopy.c:235:1: error: conflicting types for 'append_to_string'; have 'void(int)' 235 | append_to_string (int c) | ^~~~~~~~~~~~~~~~ midicopy.c:83:6: note: previous declaration of 'append_to_string' with type 'void(void)' 83 | void append_to_string (); | ^~~~~~~~~~~~~~~~ midicopy.c: In function 'midicopy_timesig': midicopy.c:391:1: warning: old-style function definition [-Wold-style-definition] 391 | midicopy_timesig (c1, c2, c3, c4) | ^~~~~~~~~~~~~~~~ midicopy.c: In function 'copy_keysig': midicopy.c:403:1: warning: old-style function definition [-Wold-style-definition] 403 | copy_keysig (c1, c2) | ^~~~~~~~~~~ midicopy.c: In function 'copy_metaseqnum': midicopy.c:416:1: warning: old-style function definition [-Wold-style-definition] 416 | copy_metaseqnum (c1, c2) | ^~~~~~~~~~~~~~~ midicopy.c: In function 'copy_metaeot': midicopy.c:443:8: error: conflicting types for 'WriteVarLen'; have 'void(void)' 443 | void WriteVarLen (); | ^~~~~~~~~~~ midicopy.c:139:6: note: previous declaration of 'WriteVarLen' with type 'void(long int)' 139 | void WriteVarLen (long); | ^~~~~~~~~~~ midicopy.c:444:3: error: too many arguments to function 'WriteVarLen'; expected 0, have 1 444 | WriteVarLen (10); | ^~~~~~~~~~~ ~~ midicopy.c:443:8: note: declared here 443 | void WriteVarLen (); | ^~~~~~~~~~~ midicopy.c: In function 'readmt': midicopy.c:508:1: warning: old-style function definition [-Wold-style-definition] 508 | readmt (s) /* read through the "MThd" or "MTrk" header string */ | ^~~~~~ midicopy.c: In function 'readtrack': midicopy.c:720:13: error: too many arguments to function 'msgadd'; expected 0, have 1 720 | msgadd (egetc ()); | ^~~~~~ ~~~~~~~~ midicopy.c:137:6: note: declared here 137 | void msgadd (); | ^~~~~~ midicopy.c:730:11: error: too many arguments to function 'msgadd'; expected 0, have 1 730 | msgadd (0xf0); | ^~~~~~ ~~~~ midicopy.c:137:6: note: declared here 137 | void msgadd (); | ^~~~~~ midicopy.c:733:13: error: too many arguments to function 'msgadd'; expected 0, have 1 733 | msgadd (c = egetc ()); | ^~~~~~ ~~~~~~~~~~~~ midicopy.c:137:6: note: declared here 137 | void msgadd (); | ^~~~~~ midicopy.c:750:13: error: too many arguments to function 'msgadd'; expected 0, have 1 750 | msgadd (c = egetc ()); | ^~~~~~ ~~~~~~~~~~~~ midicopy.c:137:6: note: declared here 137 | void msgadd (); | ^~~~~~ midicopy.c:755:18: error: too many arguments to function 'Mf_arbitrary'; expected 0, have 2 755 | (*Mf_arbitrary) (msgleng (), msg ()); | ~^~~~~~~~~~~~~~ ~~~~~~~~~~ midicopy.c: In function 'get_tempo_info_from_track_1': midicopy.c:873:13: error: too many arguments to function 'msgadd'; expected 0, have 1 873 | msgadd (egetc ()); | ^~~~~~ ~~~~~~~~ midicopy.c:137:6: note: declared here 137 | void msgadd (); | ^~~~~~ midicopy.c:879:35: error: too many arguments to function 'to32bit'; expected 0, have 4 879 | mf_get_tempo_event (to32bit (0, m[0], m[1], m[2])); | ^~~~~~~ ~ midicopy.c:123:6: note: declared here 123 | long to32bit (); | ^~~~~~~ midicopy.c:888:11: error: too many arguments to function 'msgadd'; expected 0, have 1 888 | msgadd (0xf0); | ^~~~~~ ~~~~ midicopy.c:137:6: note: declared here 137 | void msgadd (); | ^~~~~~ midicopy.c:891:13: error: too many arguments to function 'msgadd'; expected 0, have 1 891 | msgadd (c = egetc ()); | ^~~~~~ ~~~~~~~~~~~~ midicopy.c:137:6: note: declared here 137 | void msgadd (); | ^~~~~~ midicopy.c:909:13: error: too many arguments to function 'msgadd'; expected 0, have 1 909 | msgadd (c = egetc ()); | ^~~~~~ ~~~~~~~~~~~~ midicopy.c:137:6: note: declared here 137 | void msgadd (); | ^~~~~~ midicopy.c:914:18: error: too many arguments to function 'Mf_arbitrary'; expected 0, have 2 914 | (*Mf_arbitrary) (msgleng (), msg ()); | ~^~~~~~~~~~~~~~ ~~~~~~~~~~ midicopy.c: In function 'badbyte': midicopy.c:937:1: warning: old-style function definition [-Wold-style-definition] 937 | badbyte (c) | ^~~~~~~ midicopy.c: In function 'metaevent': midicopy.c:996:25: error: too many arguments to function 'to32bit'; expected 0, have 4 996 | mf_write_tempo (to32bit (0, m[0], m[1], m[2])); | ^~~~~~~ ~ midicopy.c:123:6: note: declared here 123 | long to32bit (); | ^~~~~~~ midicopy.c: In function 'to32bit': midicopy.c:1114:1: warning: old-style function definition [-Wold-style-definition] 1114 | to32bit (c1, c2, c3, c4) | ^~~~~~~ midicopy.c:1116:1: error: number of arguments doesn't match prototype 1116 | { | ^ midicopy.c:123:6: error: prototype declaration 123 | long to32bit (); | ^~~~~~~ midicopy.c: In function 'to16bit': midicopy.c:1130:1: warning: old-style function definition [-Wold-style-definition] 1130 | to16bit (c1, c2) | ^~~~~~~ midicopy.c:1132:1: error: number of arguments doesn't match prototype 1132 | { | ^ midicopy.c:125:5: error: prototype declaration 125 | int to16bit (); | ^~~~~~~ midicopy.c: In function 'read32bit': midicopy.c:1147:10: error: too many arguments to function 'to32bit'; expected 0, have 4 1147 | return to32bit (c1, c2, c3, c4); | ^~~~~~~ ~~ midicopy.c:1114:1: note: declared here 1114 | to32bit (c1, c2, c3, c4) | ^~~~~~~ midicopy.c: In function 'read16bit': midicopy.c:1158:10: error: too many arguments to function 'to16bit'; expected 0, have 2 1158 | return to16bit (c1, c2); | ^~~~~~~ ~~ midicopy.c:1130:1: note: declared here 1130 | to16bit (c1, c2) | ^~~~~~~ midicopy.c: At top level: midicopy.c:1204:1: error: conflicting types for 'msgadd'; have 'void(int)' 1204 | msgadd (int c) | ^~~~~~ midicopy.c:137:6: note: previous declaration of 'msgadd' with type 'void(void)' 137 | void msgadd (); | ^~~~~~ midicopy.c: In function 'build_new_midi_file': midicopy.c:1282:1: warning: old-style function definition [-Wold-style-definition] 1282 | build_new_midi_file (format, ntracks, division, fp) | ^~~~~~~~~~~~~~~~~~~ midicopy.c:1287:8: error: conflicting types for 'mf_write_track_chunk'; have 'void(void)' 1287 | void mf_write_track_chunk (); | ^~~~~~~~~~~~~~~~~~~~ midicopy.c:80:6: note: previous declaration of 'mf_write_track_chunk' with type 'void(int, FILE *)' 80 | void mf_write_track_chunk (int which_track, FILE * fp); | ^~~~~~~~~~~~~~~~~~~~ midicopy.c:1328:15: error: too many arguments to function 'mf_write_track_chunk'; expected 0, have 2 1328 | mf_write_track_chunk (i, fp); | ^~~~~~~~~~~~~~~~~~~~ ~ midicopy.c:1287:8: note: declared here 1287 | void mf_write_track_chunk (); | ^~~~~~~~~~~~~~~~~~~~ midicopy.c: At top level: midicopy.c:1397:1: error: conflicting types for 'mf_write_track_chunk'; have 'void(int, FILE *)' 1397 | mf_write_track_chunk (which_track, fp) | ^~~~~~~~~~~~~~~~~~~~ midicopy.c:1287:8: note: previous declaration of 'mf_write_track_chunk' with type 'void(void)' 1287 | void mf_write_track_chunk (); | ^~~~~~~~~~~~~~~~~~~~ midicopy.c: In function 'mf_write_track_chunk': midicopy.c:1397:1: warning: old-style function definition [-Wold-style-definition] 1397 | mf_write_track_chunk (which_track, fp) | ^~~~~~~~~~~~~~~~~~~~ midicopy.c:1405:1: error: number of arguments doesn't match prototype 1405 | { | ^ midicopy.c:1287:8: error: prototype declaration 1287 | void mf_write_track_chunk (); | ^~~~~~~~~~~~~~~~~~~~ midicopy.c: In function 'mf_write_header_chunk': midicopy.c:1425:1: warning: old-style function definition [-Wold-style-definition] 1425 | mf_write_header_chunk (format, ntracks, division) | ^~~~~~~~~~~~~~~~~~~~~ midicopy.c:1436:3: error: too many arguments to function 'write32bit'; expected 0, have 1 1436 | write32bit (ident); | ^~~~~~~~~~ ~~~~~ midicopy.c:1429:23: note: declared here 1429 | void write16bit (), write32bit (); | ^~~~~~~~~~ midicopy.c:1437:3: error: too many arguments to function 'write32bit'; expected 0, have 1 1437 | write32bit (length); | ^~~~~~~~~~ ~~~~~~ midicopy.c:1429:23: note: declared here 1429 | void write16bit (), write32bit (); | ^~~~~~~~~~ midicopy.c:1438:3: error: too many arguments to function 'write16bit'; expected 0, have 1 1438 | write16bit (format); | ^~~~~~~~~~ ~~~~~~ midicopy.c:1429:8: note: declared here 1429 | void write16bit (), write32bit (); | ^~~~~~~~~~ midicopy.c:1439:3: error: too many arguments to function 'write16bit'; expected 0, have 1 1439 | write16bit (ntracks); | ^~~~~~~~~~ ~~~~~~~ midicopy.c:1429:8: note: declared here 1429 | void write16bit (), write32bit (); | ^~~~~~~~~~ midicopy.c:1440:3: error: too many arguments to function 'write16bit'; expected 0, have 1 1440 | write16bit (division); | ^~~~~~~~~~ ~~~~~~~~ midicopy.c:1429:8: note: declared here 1429 | void write16bit (), write32bit (); | ^~~~~~~~~~ midicopy.c: In function 'mf_write_midi_event': midicopy.c:1472:3: error: too many arguments to function 'WriteVarLen'; expected 0, have 1 1472 | WriteVarLen (Mf_currtime - Mf_currcopytime); | ^~~~~~~~~~~ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ midicopy.c:1469:8: note: declared here 1469 | void WriteVarLen (); | ^~~~~~~~~~~ midicopy.c: In function 'mf_write_meta_event': midicopy.c:1517:3: error: too many arguments to function 'WriteVarLen'; expected 0, have 1 1517 | WriteVarLen (Mf_currtime - Mf_currcopytime); | ^~~~~~~~~~~ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ midicopy.c:1515:8: note: declared here 1515 | void WriteVarLen (); | ^~~~~~~~~~~ midicopy.c:1528:3: error: too many arguments to function 'WriteVarLen'; expected 0, have 1 1528 | WriteVarLen ((long) size); | ^~~~~~~~~~~ ~~~~~~~~~~~ midicopy.c:1515:8: note: declared here 1515 | void WriteVarLen (); | ^~~~~~~~~~~ midicopy.c: In function 'mf_get_tempo_event': midicopy.c:1542:1: warning: old-style function definition [-Wold-style-definition] 1542 | mf_get_tempo_event (tempo) | ^~~~~~~~~~~~~~~~~~ midicopy.c: In function 'mf_write_tempo': midicopy.c:1558:1: warning: old-style function definition [-Wold-style-definition] 1558 | mf_write_tempo (tempo) | ^~~~~~~~~~~~~~ midicopy.c:1571:7: error: too many arguments to function 'WriteVarLen'; expected 0, have 1 1571 | WriteVarLen (Mf_currtime - Mf_currcopytime); | ^~~~~~~~~~~ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ midicopy.c:1565:8: note: declared here 1565 | void WriteVarLen (); | ^~~~~~~~~~~ midicopy.c: At top level: midicopy.c:1604:1: error: conflicting types for 'WriteVarLen'; have 'void(long int)' 1604 | WriteVarLen (value) | ^~~~~~~~~~~ midicopy.c:1565:8: note: previous declaration of 'WriteVarLen' with type 'void(void)' 1565 | void WriteVarLen (); | ^~~~~~~~~~~ midicopy.c: In function 'WriteVarLen': midicopy.c:1604:1: warning: old-style function definition [-Wold-style-definition] 1604 | WriteVarLen (value) | ^~~~~~~~~~~ midicopy.c:1606:1: error: number of arguments doesn't match prototype 1606 | { | ^ midicopy.c:1565:8: error: prototype declaration 1565 | void WriteVarLen (); | ^~~~~~~~~~~ midicopy.c: In function 'write32bit': midicopy.c:1429:23: warning: old-style function definition [-Wold-style-definition] 1429 | void write16bit (), write32bit (); | ^~~~~~~~~~ midicopy.c:1652:1: error: number of arguments doesn't match prototype 1652 | { | ^ midicopy.c:1429:23: error: prototype declaration 1429 | void write16bit (), write32bit (); | ^~~~~~~~~~ midicopy.c: In function 'write16bit': midicopy.c:1429:8: warning: old-style function definition [-Wold-style-definition] 1429 | void write16bit (), write32bit (); | ^~~~~~~~~~ midicopy.c:1662:1: error: number of arguments doesn't match prototype 1662 | { | ^ midicopy.c:1429:8: error: prototype declaration 1429 | void write16bit (), write32bit (); | ^~~~~~~~~~ make: *** [: midicopy.o] Error 1 gcc -DANSILIBS -O2 -g -pipe -Wformat -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -m64 -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection=full -O2 -DHAVE_CONFIG_H -I. -c -o toabc.o toabc.c toabc.c: In function 'purgespace': toabc.c:160:12: warning: old-style function definition [-Wold-style-definition] 160 | static int purgespace(p) | ^~~~~~~~~~ toabc.c: In function 'zero_barcount': toabc.c:181:5: warning: old-style function definition [-Wold-style-definition] 181 | int zero_barcount(foundbar) | ^~~~~~~~~~~~~ toabc.c: In function 'new_barcount': toabc.c:190:5: warning: old-style function definition [-Wold-style-definition] 190 | int new_barcount(type, foundbar, oldcount) | ^~~~~~~~~~~~ toabc.c: In function 'setline': toabc.c:212:13: warning: old-style function definition [-Wold-style-definition] 212 | static void setline(t) | ^~~~~~~ toabc.c: In function 'flush_abctext': toabc.c:226:12: warning: old-style function definition [-Wold-style-definition] 226 | static int flush_abctext(bars, termination) | ^~~~~~~~~~~~~ toabc.c: In function 'complete_bars': toabc.c:327:6: warning: old-style function definition [-Wold-style-definition] 327 | void complete_bars(v) | ^~~~~~~~~~~~~ toabc.c: In function 'complete_all': toabc.c:348:6: warning: old-style function definition [-Wold-style-definition] 348 | void complete_all(v, termination) | ^~~~~~~~~~~~ toabc.c: In function 'newabctext': toabc.c:368:24: warning: old-style function definition [-Wold-style-definition] 368 | static struct abctext* newabctext(t) | ^~~~~~~~~~ toabc.c: In function 'reduce': toabc.c:449:13: warning: old-style function definition [-Wold-style-definition] 449 | static void reduce(a, b) | ^~~~~~ toabc.c: In function 'addunits': toabc.c:484:13: warning: old-style function definition [-Wold-style-definition] 484 | static void addunits(n, m) | ^~~~~~~~ toabc.c: In function 'parse_voices_selection': toabc.c:504:6: warning: old-style function definition [-Wold-style-definition] 504 | void parse_voices_selection(voices_string) /* [PHDM] 2013-03-08 */ | ^~~~~~~~~~~~~~~~~~~~~~ toabc.c: In function 'must_emit_voice': toabc.c:518:5: warning: old-style function definition [-Wold-style-definition] 518 | int must_emit_voice(n) /* [PHDM] 2013-03-08 */ | ^~~~~~~~~~~~~~~ toabc.c: In function 'event_init': toabc.c:524:6: warning: old-style function definition [-Wold-style-definition] 524 | void event_init(argc, argv, filename) | ^~~~~~~~~~ toabc.c: In function 'emit_string': toabc.c:720:6: warning: old-style function definition [-Wold-style-definition] 720 | void emit_string(s) | ^~~~~~~~~~~ toabc.c: In function 'emit_char': toabc.c:729:6: warning: old-style function definition [-Wold-style-definition] 729 | void emit_char(ch) | ^~~~~~~~~ toabc.c: In function 'emit_int': toabc.c:742:6: warning: old-style function definition [-Wold-style-definition] 742 | void emit_int(n) | ^~~~~~~~ toabc.c: In function 'emit_string_sprintf': toabc.c:751:6: warning: old-style function definition [-Wold-style-definition] 751 | void emit_string_sprintf(s1, s2) | ^~~~~~~~~~~~~~~~~~~ toabc.c: In function 'emit_int_sprintf': toabc.c:761:6: warning: old-style function definition [-Wold-style-definition] 761 | void emit_int_sprintf(s, n) | ^~~~~~~~~~~~~~~~ toabc.c: In function 'event_text': toabc.c:816:6: warning: old-style function definition [-Wold-style-definition] 816 | void event_text(p) | ^~~~~~~~~~ toabc.c: In function 'event_reserved': toabc.c:823:6: warning: old-style function definition [-Wold-style-definition] 823 | void event_reserved(p) | ^~~~~~~~~~~~~~ toabc.c: In function 'event_tex': toabc.c:830:6: warning: old-style function definition [-Wold-style-definition] 830 | void event_tex(s) | ^~~~~~~~~ toabc.c: In function 'event_endmusicline': toabc.c:875:6: warning: old-style function definition [-Wold-style-definition] 875 | void event_endmusicline(endchar) | ^~~~~~~~~~~~~~~~~~ toabc.c: In function 'event_error': toabc.c:881:6: warning: old-style function definition [-Wold-style-definition] 881 | void event_error(s) | ^~~~~~~~~~~ toabc.c: In function 'event_warning': toabc.c:889:6: warning: old-style function definition [-Wold-style-definition] 889 | void event_warning(s) | ^~~~~~~~~~~~~ toabc.c: In function 'event_comment': toabc.c:897:6: warning: old-style function definition [-Wold-style-definition] 897 | void event_comment(s) | ^~~~~~~~~~~~~ toabc.c: In function 'event_info': toabc.c:941:6: warning: old-style function definition [-Wold-style-definition] 941 | void event_info(f) | ^~~~~~~~~~ toabc.c: In function 'event_field': toabc.c:950:6: warning: old-style function definition [-Wold-style-definition] 950 | void event_field(k, f) | ^~~~~~~~~~~ toabc.c: In function 'getbar': toabc.c:961:17: warning: old-style function definition [-Wold-style-definition] 961 | struct abctext* getbar(place) | ^~~~~~ toabc.c: In function 'getnextbar': toabc.c:976:17: warning: old-style function definition [-Wold-style-definition] 976 | struct abctext* getnextbar(place) | ^~~~~~~~~~ toabc.c: In function 'append_lyrics': toabc.c:989:6: warning: old-style function definition [-Wold-style-definition] 989 | void append_lyrics(place, newwords) | ^~~~~~~~~~~~~ toabc.c: In function 'apply_bar': toabc.c:1017:17: warning: old-style function definition [-Wold-style-definition] 1017 | struct abctext* apply_bar(syll, place, notesleft, barwords) | ^~~~~~~~~ toabc.c: In function 'apply_syllable': toabc.c:1041:17: warning: old-style function definition [-Wold-style-definition] 1041 | struct abctext* apply_syllable(syll, place, notesleft, barwords) | ^~~~~~~~~~~~~~ toabc.c: In function 'parse_words': toabc.c:1071:6: warning: old-style function definition [-Wold-style-definition] 1071 | void parse_words(p) | ^~~~~~~~~~~ toabc.c: In function 'event_words': toabc.c:1172:6: warning: old-style function definition [-Wold-style-definition] 1172 | void event_words(p, append, continuation) | ^~~~~~~~~~~ toabc.c: In function 'appendfield': toabc.c:1202:6: warning: old-style function definition [-Wold-style-definition] 1202 | void appendfield (morewords) | ^~~~~~~~~~~ toabc.c: In function 'event_part': toabc.c:1210:6: warning: old-style function definition [-Wold-style-definition] 1210 | void event_part(s) | ^~~~~~~~~~ toabc.c: In function 'setvoice': toabc.c:1244:5: warning: old-style function definition [-Wold-style-definition] 1244 | int setvoice(num) | ^~~~~~~~ toabc.c: In function 'event_voice': toabc.c:1272:6: warning: old-style function definition [-Wold-style-definition] 1272 | void event_voice(n, s, vp) | ^~~~~~~~~~~ toabc.c: In function 'event_length': toabc.c:1322:6: warning: old-style function definition [-Wold-style-definition] 1322 | void event_length(n) | ^~~~~~~~~~~~ toabc.c: In function 'event_default_length': toabc.c:1337:6: warning: old-style function definition [-Wold-style-definition] 1337 | void event_default_length(n) | ^~~~~~~~~~~~~~~~~~~~ toabc.c: In function 'event_refno': toabc.c:1344:6: warning: old-style function definition [-Wold-style-definition] 1344 | void event_refno(n) | ^~~~~~~~~~~ toabc.c: In function 'event_tempo': toabc.c:1371:6: warning: old-style function definition [-Wold-style-definition] 1371 | void event_tempo(n, a, b, relative, pre, post) | ^~~~~~~~~~~ toabc.c: In function 'event_timesig': toabc.c:1441:6: warning: old-style function definition [-Wold-style-definition] 1441 | void event_timesig (timesig) | ^~~~~~~~~~~~~ toabc.c: In function 'setmap': toabc.c:1527:13: warning: old-style function definition [-Wold-style-definition] 1527 | static void setmap(sf, map) | ^~~~~~ toabc.c: In function 'event_key': toabc.c:1635:6: warning: old-style function definition [-Wold-style-definition] 1635 | void event_key(sharps, s, modeindex, modmap, modmul, modmicrotone, | ^~~~~~~~~ toabc.c: In function 'printlen': toabc.c:1769:13: warning: old-style function definition [-Wold-style-definition] 1769 | static void printlen(a, b) | ^~~~~~~~ toabc.c: In function 'event_spacing': toabc.c:1784:6: warning: old-style function definition [-Wold-style-definition] 1784 | void event_spacing(n, m) | ^~~~~~~~~~~~~ toabc.c: In function 'event_rest': toabc.c:1792:6: warning: old-style function definition [-Wold-style-definition] 1792 | void event_rest(decorators,n,m,type) | ^~~~~~~~~~ toabc.c: In function 'event_mrest': toabc.c:1817:6: warning: old-style function definition [-Wold-style-definition] 1817 | void event_mrest(n,m,c) | ^~~~~~~~~~~ toabc.c: In function 'event_bar': toabc.c:1832:6: warning: old-style function definition [-Wold-style-definition] 1832 | void event_bar(type, replist) | ^~~~~~~~~ toabc.c: In function 'event_playonrep': toabc.c:1934:6: warning: old-style function definition [-Wold-style-definition] 1934 | void event_playonrep(s) | ^~~~~~~~~~~~~~~ toabc.c: In function 'event_broken': toabc.c:1940:6: warning: old-style function definition [-Wold-style-definition] 1940 | void event_broken(type, n) | ^~~~~~~~~~~~ toabc.c: In function 'event_tuple': toabc.c:1956:6: warning: old-style function definition [-Wold-style-definition] 1956 | void event_tuple(n, q, r) | ^~~~~~~~~~~ toabc.c: In function 'splitstring': toabc.c:2066:13: warning: old-style function definition [-Wold-style-definition] 2066 | static void splitstring(s, sep, handler) | ^~~~~~~~~~~ toabc.c:2088:6: error: too many arguments to function 'handler'; expected 0, have 1 2088 | (*handler)(out); | ~^~~~~~~~~ ~~~ toabc.c: In function 'event_handle_gchord': toabc.c:2092:6: warning: old-style function definition [-Wold-style-definition] 2092 | void event_handle_gchord(s) | ^~~~~~~~~~~~~~~~~~~ toabc.c: In function 'event_gchord': toabc.c:2260:6: warning: old-style function definition [-Wold-style-definition] 2260 | void event_gchord(s) | ^~~~~~~~~~~~ toabc.c: In function 'event_instruction': toabc.c:2266:6: warning: old-style function definition [-Wold-style-definition] 2266 | void event_instruction(s) | ^~~~~~~~~~~~~~~~~ toabc.c: In function 'event_slur': toabc.c:2273:6: warning: old-style function definition [-Wold-style-definition] 2273 | void event_slur(t) | ^~~~~~~~~~ toabc.c: In function 'event_sluron': toabc.c:2287:6: warning: old-style function definition [-Wold-style-definition] 2287 | void event_sluron(t) | ^~~~~~~~~~~~ toabc.c: In function 'event_sluroff': toabc.c:2293:6: warning: old-style function definition [-Wold-style-definition] 2293 | void event_sluroff(t) | ^~~~~~~~~~~~~ toabc.c: In function 'event_lineend': toabc.c:2304:6: warning: old-style function definition [-Wold-style-definition] 2304 | void event_lineend(ch, n) | ^~~~~~~~~~~~~ toabc.c: In function 'transpose_note': toabc.c:2321:6: warning: old-style function definition [-Wold-style-definition] 2321 | void transpose_note(xaccidental,xmult, xnote, xoctave, transpose, | ^~~~~~~~~~~~~~ toabc.c: In function 'event_note1': toabc.c:2427:6: warning: old-style function definition [-Wold-style-definition] 2427 | void event_note1(decorators, clef, xaccidental, xmult, xnote, xoctave, n, m) | ^~~~~~~~~~~ toabc.c: At top level: toabc.c:2547:6: error: conflicting types for 'event_temperament'; have 'void(char *)' 2547 | void event_temperament(char *line) { | ^~~~~~~~~~~~~~~~~ In file included from toabc.c:33: parseabc.h:174:13: note: previous declaration of 'event_temperament' with type 'void(void)' 174 | extern void event_temperament(); | ^~~~~~~~~~~~~~~~~ toabc.c: In function 'event_note2': toabc.c:2577:6: warning: old-style function definition [-Wold-style-definition] 2577 | void event_note2(decorators, clef, xaccidental, xmult, xnote, xoctave, n, m) | ^~~~~~~~~~~ toabc.c: In function 'event_note': toabc.c:2639:6: warning: old-style function definition [-Wold-style-definition] 2639 | void event_note(decorators, clef, xaccidental, xmult, xnote, xoctave, n, m) | ^~~~~~~~~~ toabc.c: In function 'main': toabc.c:2840:5: warning: old-style function definition [-Wold-style-definition] 2840 | int main(argc,argv) | ^~~~ toabc.c:2856:5: error: too many arguments to function 'parsefile'; expected 0, have 1 2856 | parsefile(filename); | ^~~~~~~~~ ~~~~~~~~ parseabc.h:178:13: note: declared here 178 | extern void parsefile(); | ^~~~~~~~~ make: *** [: toabc.o] Error 1 gcc -DANSILIBS -O2 -g -pipe -Wformat -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -m64 -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection=full -O2 -DHAVE_CONFIG_H -I. -c -o yapstree.o yapstree.c yapstree.c: In function 'setfract': yapstree.c:89:6: warning: old-style function definition [-Wold-style-definition] 89 | void setfract(f, a, b) | ^~~~~~~~ yapstree.c: In function 'reducef': yapstree.c:98:6: warning: old-style function definition [-Wold-style-definition] 98 | void reducef(f) | ^~~~~~~ yapstree.c: In function 'newnote': yapstree.c:715:21: warning: old-style function definition [-Wold-style-definition] 715 | static struct note* newnote(decorators, clef, xaccidental, xmult, xnote, xoctave, | ^~~~~~~ yapstree.c: In function 'addunits': yapstree.c:788:13: warning: old-style function definition [-Wold-style-definition] 788 | static void addunits(f, n, m) | ^~~~~~~~ yapstree.c: In function 'addfractions': yapstree.c:798:13: warning: old-style function definition [-Wold-style-definition] 798 | static void addfractions(f,n,m) | ^~~~~~~~~~~~ yapstree.c: In function 'event_init': yapstree.c:1113:6: warning: old-style function definition [-Wold-style-definition] 1113 | void event_init(argc, argv, filename) | ^~~~~~~~~~ yapstree.c: In function 'event_text': yapstree.c:1349:6: warning: old-style function definition [-Wold-style-definition] 1349 | void event_text(p) | ^~~~~~~~~~ yapstree.c: In function 'event_x_reserved': yapstree.c:1355:6: warning: old-style function definition [-Wold-style-definition] 1355 | void event_x_reserved(p) | ^~~~~~~~~~~~~~~~ yapstree.c: In function 'event_abbreviation': yapstree.c:1360:6: warning: old-style function definition [-Wold-style-definition] 1360 | void event_abbreviation(symbol, string, container) | ^~~~~~~~~~~~~~~~~~ yapstree.c: In function 'event_tex': yapstree.c:1392:6: warning: old-style function definition [-Wold-style-definition] 1392 | void event_tex(s) | ^~~~~~~~~ yapstree.c: In function 'event_endmusicline': yapstree.c:1485:6: warning: old-style function definition [-Wold-style-definition] 1485 | void event_endmusicline(endchar) | ^~~~~~~~~~~~~~~~~~ yapstree.c: In function 'event_error': yapstree.c:1497:6: warning: old-style function definition [-Wold-style-definition] 1497 | void event_error(s) | ^~~~~~~~~~~ yapstree.c: In function 'event_warning': yapstree.c:1504:6: warning: old-style function definition [-Wold-style-definition] 1504 | void event_warning(s) | ^~~~~~~~~~~~~ yapstree.c: In function 'event_comment': yapstree.c:1511:6: warning: old-style function definition [-Wold-style-definition] 1511 | void event_comment(s) | ^~~~~~~~~~~~~ yapstree.c: In function 'event_specific': yapstree.c:1597:3: error: too many arguments to function 'font_command'; expected 0, have 2 1597 | font_command(p, s); | ^~~~~~~~~~~~ ~ yapstree.c:51:13: note: declared here 51 | extern void font_command(); | ^~~~~~~~~~~~ yapstree.c: In function 'event_field': yapstree.c:1600:6: warning: old-style function definition [-Wold-style-definition] 1600 | void event_field(k, f) | ^~~~~~~~~~~ yapstree.c: In function 'event_words': yapstree.c:1716:6: warning: old-style function definition [-Wold-style-definition] 1716 | void event_words(p, append, continuation) | ^~~~~~~~~~~ yapstree.c: In function 'appendfield': yapstree.c:1821:6: warning: old-style function definition [-Wold-style-definition] 1821 | void appendfield (morewords) | ^~~~~~~~~~~ yapstree.c: In function 'event_part': yapstree.c:1827:6: warning: old-style function definition [-Wold-style-definition] 1827 | void event_part(s) | ^~~~~~~~~~ yapstree.c: In function 'event_voice': yapstree.c:1851:6: warning: old-style function definition [-Wold-style-definition] 1851 | void event_voice(n, s, vp) | ^~~~~~~~~~~ yapstree.c: In function 'event_length': yapstree.c:1872:6: warning: old-style function definition [-Wold-style-definition] 1872 | void event_length(n) | ^~~~~~~~~~~~ yapstree.c: In function 'event_default_length': yapstree.c:1889:6: warning: old-style function definition [-Wold-style-definition] 1889 | void event_default_length (n) | ^~~~~~~~~~~~~~~~~~~~ yapstree.c: In function 'event_refno': yapstree.c:1896:6: warning: old-style function definition [-Wold-style-definition] 1896 | void event_refno(n) | ^~~~~~~~~~~ yapstree.c: In function 'event_tempo': yapstree.c:1927:6: warning: old-style function definition [-Wold-style-definition] 1927 | void event_tempo(n, a, b, relative, pre, post) | ^~~~~~~~~~~ yapstree.c: In function 'event_timesig': yapstree.c:1955:6: warning: old-style function definition [-Wold-style-definition] 1955 | void event_timesig (timesig) | ^~~~~~~~~~~~~ yapstree.c: In function 'setmap': yapstree.c:2003:6: warning: old-style function definition [-Wold-style-definition] 2003 | void setmap(sf, map, mult) | ^~~~~~ yapstree.c: In function 'altermap': yapstree.c:2031:6: warning: old-style function definition [-Wold-style-definition] 2031 | void altermap(basemap, basemul, modmap, modmul) | ^~~~~~~~ yapstree.c: In function 'event_true_key': yapstree.c:2076:6: warning: old-style function definition [-Wold-style-definition] 2076 | void event_true_key(sharps, s, modeindex, modmap, modmul) | ^~~~~~~~~~~~~~ yapstree.c: In function 'event_key': yapstree.c:2122:6: warning: old-style function definition [-Wold-style-definition] 2122 | void event_key(sharps, s, minor, modmap, modmul, modmicrotone, gotkey, | ^~~~~~~~~ yapstree.c: In function 'event_bar': yapstree.c:2192:6: warning: old-style function definition [-Wold-style-definition] 2192 | void event_bar(type, playonrep_list) | ^~~~~~~~~ yapstree.c: In function 'event_playonrep': yapstree.c:2262:6: warning: old-style function definition [-Wold-style-definition] 2262 | void event_playonrep(s) | ^~~~~~~~~~~~~~~ yapstree.c: In function 'event_broken': yapstree.c:2269:6: warning: old-style function definition [-Wold-style-definition] 2269 | void event_broken(type, mult) | ^~~~~~~~~~~~ yapstree.c: In function 'event_tuple': yapstree.c:2286:6: warning: old-style function definition [-Wold-style-definition] 2286 | void event_tuple(n, q, r) | ^~~~~~~~~~~ yapstree.c: In function 'event_handle_gchord': yapstree.c:2330:6: warning: old-style function definition [-Wold-style-definition] 2330 | void event_handle_gchord(s) | ^~~~~~~~~~~~~~~~~~~ yapstree.c: In function 'event_handle_instruction': yapstree.c:2348:6: warning: old-style function definition [-Wold-style-definition] 2348 | void event_handle_instruction(s) | ^~~~~~~~~~~~~~~~~~~~~~~~ yapstree.c: In function 'event_sluron': yapstree.c:2445:6: warning: old-style function definition [-Wold-style-definition] 2445 | void event_sluron(t) | ^~~~~~~~~~~~ yapstree.c: In function 'event_sluroff': yapstree.c:2462:6: warning: old-style function definition [-Wold-style-definition] 2462 | void event_sluroff(t) | ^~~~~~~~~~~~~ yapstree.c: In function 'event_lineend': yapstree.c:2545:6: warning: old-style function definition [-Wold-style-definition] 2545 | void event_lineend(ch, n) | ^~~~~~~~~~~~~ yapstree.c: In function 'lenmul': yapstree.c:2552:13: warning: old-style function definition [-Wold-style-definition] 2552 | static void lenmul(n, a, b) | ^~~~~~ yapstree.c: In function 'event_spacing': yapstree.c:2821:6: warning: old-style function definition [-Wold-style-definition] 2821 | void event_spacing(n, m) | ^~~~~~~~~~~~~ yapstree.c: In function 'xevent_rest': yapstree.c:2826:6: warning: old-style function definition [-Wold-style-definition] 2826 | void xevent_rest(n, m, multi) | ^~~~~~~~~~~ yapstree.c: In function 'event_rest': yapstree.c:2873:6: warning: old-style function definition [-Wold-style-definition] 2873 | void event_rest(decorators,n,m,type) | ^~~~~~~~~~ yapstree.c: In function 'event_mrest': yapstree.c:2881:6: warning: old-style function definition [-Wold-style-definition] 2881 | void event_mrest(n,m,c) | ^~~~~~~~~~~ yapstree.c: In function 'event_note': yapstree.c:2889:6: warning: old-style function definition [-Wold-style-definition] 2889 | void event_note(decorators, clef, xaccidental, xmult, xnote, xoctave, n, m) | ^~~~~~~~~~ yapstree.c: At top level: yapstree.c:2955:6: error: conflicting types for 'event_temperament'; have 'void(char *)' 2955 | void event_temperament(char *line) { | ^~~~~~~~~~~~~~~~~ In file included from yapstree.c:45: parseabc.h:174:13: note: previous declaration of 'event_temperament' with type 'void(void)' 174 | extern void event_temperament(); | ^~~~~~~~~~~~~~~~~ yapstree.c: In function 'event_info_key': yapstree.c:2965:6: warning: old-style function definition [-Wold-style-definition] 2965 | void event_info_key(key, value) | ^~~~~~~~~~~~~~ yapstree.c: In function 'main': yapstree.c:2992:5: warning: old-style function definition [-Wold-style-definition] 2992 | int main(argc,argv) | ^~~~ yapstree.c:3007:5: error: too many arguments to function 'parsefile'; expected 0, have 1 3007 | parsefile(filename); | ^~~~~~~~~ ~~~~~~~~ parseabc.h:178:13: note: declared here 178 | extern void parsefile(); | ^~~~~~~~~ make: *** [: yapstree.o] Error 1 gcc -DANSILIBS -O2 -g -pipe -Wformat -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -m64 -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection=full -O2 -DHAVE_CONFIG_H -I. -c -o parseabc.o parseabc.c parseabc.c: In function 'checkmalloc': parseabc.c:142:1: warning: old-style function definition [-Wold-style-definition] 142 | checkmalloc (bytes) | ^~~~~~~~~~~ parseabc.c: In function 'addstring': parseabc.c:158:1: warning: old-style function definition [-Wold-style-definition] 158 | addstring (s) | ^~~~~~~~~ parseabc.c: In function 'concatenatestring': parseabc.c:170:8: warning: old-style function definition [-Wold-style-definition] 170 | char * concatenatestring(s1,s2) | ^~~~~~~~~~~~~~~~~ parseabc.c: In function 'initvstring': parseabc.c:186:1: warning: old-style function definition [-Wold-style-definition] 186 | initvstring (s) | ^~~~~~~~~~~ parseabc.c: In function 'extendvstring': parseabc.c:197:1: warning: old-style function definition [-Wold-style-definition] 197 | extendvstring (s) | ^~~~~~~~~~~~~ parseabc.c: In function 'addch': parseabc.c:218:1: warning: old-style function definition [-Wold-style-definition] 218 | addch (ch, s) | ^~~~~ parseabc.c: In function 'addtext': parseabc.c:233:1: warning: old-style function definition [-Wold-style-definition] 233 | addtext (text, s) | ^~~~~~~ parseabc.c: In function 'clearvstring': parseabc.c:250:1: warning: old-style function definition [-Wold-style-definition] 250 | clearvstring (s) | ^~~~~~~~~~~~ parseabc.c: In function 'freevstring': parseabc.c:260:1: warning: old-style function definition [-Wold-style-definition] 260 | freevstring (s) | ^~~~~~~~~~~ parseabc.c: In function 'handle_abc2midi_parser': parseabc.c:289:6: warning: old-style function definition [-Wold-style-definition] 289 | void handle_abc2midi_parser (line) | ^~~~~~~~~~~~~~~~~~~~~~ parseabc.c: In function 'getarg': parseabc.c:304:1: warning: old-style function definition [-Wold-style-definition] 304 | getarg (option, argc, argv) | ^~~~~~ parseabc.c: In function 'skipspace': parseabc.c:324:1: warning: old-style function definition [-Wold-style-definition] 324 | skipspace (p) | ^~~~~~~~~ parseabc.c: In function 'skiptospace': parseabc.c:333:1: warning: old-style function definition [-Wold-style-definition] 333 | skiptospace (p) | ^~~~~~~~~~~ parseabc.c: In function 'readnumf': parseabc.c:341:1: warning: old-style function definition [-Wold-style-definition] 341 | readnumf (num) | ^~~~~~~~ parseabc.c: In function 'readsnumf': parseabc.c:367:1: warning: old-style function definition [-Wold-style-definition] 367 | readsnumf (s) | ^~~~~~~~~ parseabc.c: In function 'readnump': parseabc.c:387:1: warning: old-style function definition [-Wold-style-definition] 387 | readnump (p) | ^~~~~~~~ parseabc.c: In function 'readsnump': parseabc.c:408:1: warning: old-style function definition [-Wold-style-definition] 408 | readsnump (p) | ^~~~~~~~~ parseabc.c: In function 'read_microtone_value': parseabc.c:615:1: warning: old-style function definition [-Wold-style-definition] 615 | read_microtone_value (a, b, p) | ^~~~~~~~~~~~~~~~~~~~ parseabc.c: In function 'ismicrotone': parseabc.c:661:1: warning: old-style function definition [-Wold-style-definition] 661 | ismicrotone (p, dir) | ^~~~~~~~~~~ parseabc.c: In function 'readword': parseabc.c:715:1: warning: old-style function definition [-Wold-style-definition] 715 | readword (word, s) | ^~~~~~~~ parseabc.c: In function 'readword_with_': parseabc.c:746:1: warning: old-style function definition [-Wold-style-definition] 746 | readword_with_ (word, s) | ^~~~~~~~~~~~~~ parseabc.c: In function 'lcase': parseabc.c:773:1: warning: old-style function definition [-Wold-style-definition] 773 | lcase (s) | ^~~~~ parseabc.c: In function 'parseclef': parseabc.c:984:1: warning: old-style function definition [-Wold-style-definition] 984 | parseclef (s, word, gotclef, clefstr, newclef, gotoctave, octave) | ^~~~~~~~~ parseabc.c: In function 'parsetranspose': parseabc.c:1027:1: warning: old-style function definition [-Wold-style-definition] 1027 | parsetranspose (s, word, gottranspose, transpose) | ^~~~~~~~~~~~~~ parseabc.c: In function 'parseoctave': parseabc.c:1152:1: warning: old-style function definition [-Wold-style-definition] 1152 | parseoctave (s, word, gotoctave, octave) | ^~~~~~~~~~~ parseabc.c: In function 'parsename': parseabc.c:1230:1: warning: old-style function definition [-Wold-style-definition] 1230 | parsename (s, gotname, namestring, maxsize) | ^~~~~~~~~ parseabc.c: In function 'parsemiddle': parseabc.c:1268:1: warning: old-style function definition [-Wold-style-definition] 1268 | parsemiddle (s, word, gotmiddle, middlestring, maxsize) | ^~~~~~~~~~~ parseabc.c: In function 'parseother': parseabc.c:1306:1: warning: old-style function definition [-Wold-style-definition] 1306 | parseother (s, word, gotother, other, maxsize) /* [SS] 2011-04-18 */ | ^~~~~~~~~~ parseabc.c: In function 'parsekey': parseabc.c:1397:1: warning: old-style function definition [-Wold-style-definition] 1397 | parsekey (str) | ^~~~~~~~ parseabc.c: In function 'parsevoice': parseabc.c:1687:1: warning: old-style function definition [-Wold-style-definition] 1687 | parsevoice (s) | ^~~~~~~~~~ parseabc.c: In function 'parsenote': parseabc.c:1777:1: warning: old-style function definition [-Wold-style-definition] 1777 | parsenote (s) | ^~~~~~~~~ parseabc.c: In function 'getrep': parseabc.c:1972:1: warning: old-style function definition [-Wold-style-definition] 1972 | getrep (p, out) | ^~~~~~ parseabc.c: In function 'checkend': parseabc.c:2028:1: warning: old-style function definition [-Wold-style-definition] 2028 | checkend (s) | ^~~~~~~~ parseabc.c: In function 'readstr': parseabc.c:2050:1: warning: old-style function definition [-Wold-style-definition] 2050 | readstr (out, in, limit) | ^~~~~~~ parseabc.c: In function 'readaln': parseabc.c:2070:5: warning: old-style function definition [-Wold-style-definition] 2070 | int readaln (out, in, limit) | ^~~~~~~ parseabc.c: In function 'parse_precomment': parseabc.c:2090:1: warning: old-style function definition [-Wold-style-definition] 2090 | parse_precomment (s) | ^~~~~~~~~~~~~~~~ parseabc.c: In function 'parse_abc_include': parseabc.c:2112:8: warning: old-style function definition [-Wold-style-definition] 2112 | FILE * parse_abc_include (s) | ^~~~~~~~~~~~~~~~~ parseabc.c: In function 'parse_tempo': parseabc.c:2133:1: warning: old-style function definition [-Wold-style-definition] 2133 | parse_tempo (place) | ^~~~~~~~~~~ parseabc.c: In function 'append_fieldcmd': parseabc.c:2207:6: warning: old-style function definition [-Wold-style-definition] 2207 | void append_fieldcmd (key, s) /* [SS] 2014-08-15 */ | ^~~~~~~~~~~~~~~ parseabc.c: In function 'parsefield': parseabc.c:2381:1: warning: old-style function definition [-Wold-style-definition] 2381 | parsefield (key, field) | ^~~~~~~~~~ parseabc.c: In function 'parseinlinefield': parseabc.c:2640:1: warning: old-style function definition [-Wold-style-definition] 2640 | parseinlinefield (p) | ^~~~~~~~~~~~~~~~ parseabc.c: In function 'pitch2midi': parseabc.c:2796:12: warning: old-style function definition [-Wold-style-definition] 2796 | static int pitch2midi(note, accidental, mult, octave ) | ^~~~~~~~~~ parseabc.c: In function 'parsemusic': parseabc.c:2953:1: warning: old-style function definition [-Wold-style-definition] 2953 | parsemusic (field) | ^~~~~~~~~~ parseabc.c: In function 'parseline': parseabc.c:3449:1: warning: old-style function definition [-Wold-style-definition] 3449 | parseline (line) | ^~~~~~~~~ parseabc.c:3471:11: error: too many arguments to function 'event_temperament'; expected 0, have 1 3471 | event_temperament(line); | ^~~~~~~~~~~~~~~~~ ~~~~ In file included from parseabc.c:34: parseabc.h:174:13: note: declared here 174 | extern void event_temperament(); | ^~~~~~~~~~~~~~~~~ parseabc.c: In function 'parsefile': parseabc.c:3582:1: warning: old-style function definition [-Wold-style-definition] 3582 | parsefile (name) | ^~~~~~~~~ parseabc.c:3592:1: error: number of arguments doesn't match prototype 3592 | { | ^ parseabc.h:178:13: error: prototype declaration 178 | extern void parsefile(); | ^~~~~~~~~ parseabc.c: At top level: parseabc.c:3712:1: error: conflicting types for 'parsetune'; have 'int(FILE *)' 3712 | parsetune (FILE * fp) | ^~~~~~~~~ parseabc.h:179:12: note: previous declaration of 'parsetune' with type 'int(void)' 179 | extern int parsetune(); | ^~~~~~~~~ make: *** [: parseabc.o] Error 1 gcc -DANSILIBS -O2 -g -pipe -Wformat -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -m64 -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection=full -O2 -DHAVE_CONFIG_H -I. -c -o midistats.o midistats.c midistats.c: In function 'fatal_error': midistats.c:316:6: warning: old-style function definition [-Wold-style-definition] 316 | void fatal_error(s) | ^~~~~~~~~~~ midistats.c: In function 'event_error': midistats.c:325:6: warning: old-style function definition [-Wold-style-definition] 325 | void event_error(s) | ^~~~~~~~~~~ midistats.c: In function 'checkmalloc': midistats.c:336:6: warning: old-style function definition [-Wold-style-definition] 336 | int* checkmalloc(bytes) | ^~~~~~~~~~~ midistats.c: In function 'efopen': midistats.c:353:1: warning: old-style function definition [-Wold-style-definition] 353 | efopen(name,mode) | ^~~~~~ midistats.c: In function 'error': midistats.c:367:6: warning: old-style function definition [-Wold-style-definition] 367 | void error(s) | ^~~~~ midistats.c: In function 'stats_error': midistats.c:375:6: warning: old-style function definition [-Wold-style-definition] 375 | void stats_error(s) | ^~~~~~~~~~~ midistats.c: In function 'pitch2drum': midistats.c:438:6: warning: old-style function definition [-Wold-style-definition] 438 | void pitch2drum(midipitch) | ^~~~~~~~~~ midistats.c: In function 'output_count_trkdata': midistats.c:702:6: warning: old-style function definition [-Wold-style-definition] 702 | void output_count_trkdata(data_array,name) | ^~~~~~~~~~~~~~~~~~~~ midistats.c: In function 'stats_noteon': midistats.c:885:6: warning: old-style function definition [-Wold-style-definition] 885 | void stats_noteon(chan,pitch,vol) | ^~~~~~~~~~~~ midistats.c: In function 'stats_pitchbend': midistats.c:996:6: warning: old-style function definition [-Wold-style-definition] 996 | void stats_pitchbend(chan,lsb,msb) | ^~~~~~~~~~~~~~~ midistats.c: In function 'stats_pressure': midistats.c:1003:6: warning: old-style function definition [-Wold-style-definition] 1003 | void stats_pressure(chan,press) | ^~~~~~~~~~~~~~ midistats.c: In function 'stats_program': midistats.c:1012:6: warning: old-style function definition [-Wold-style-definition] 1012 | void stats_program(chan,program) | ^~~~~~~~~~~~~ midistats.c: In function 'stats_parameter': midistats.c:1031:6: warning: old-style function definition [-Wold-style-definition] 1031 | void stats_parameter(chan,control,value) | ^~~~~~~~~~~~~~~ midistats.c: In function 'stats_metatext': midistats.c:1048:6: warning: old-style function definition [-Wold-style-definition] 1048 | void stats_metatext(type,leng,mess) | ^~~~~~~~~~~~~~ midistats.c: In function 'stats_keysig': midistats.c:1064:6: warning: old-style function definition [-Wold-style-definition] 1064 | void stats_keysig(sf,mi) | ^~~~~~~~~~~~ midistats.c: In function 'stats_tempo': midistats.c:1087:6: warning: old-style function definition [-Wold-style-definition] 1087 | void stats_tempo(ltempo) | ^~~~~~~~~~~ midistats.c: In function 'stats_timesig': midistats.c:1100:6: warning: old-style function definition [-Wold-style-definition] 1100 | void stats_timesig(nn,dd,cc,bb) | ^~~~~~~~~~~~~ midistats.c: In function 'initfunc_for_stats': midistats.c:1165:15: error: assignment to 'void (*)(void)' from incompatible pointer type 'void (*)(int, int, int)' [-Wincompatible-pointer-types] 1165 | Mf_header = stats_header; | ^ midistats.c:462:6: note: 'stats_header' declared here 462 | void stats_header (int format, int ntrks, int ldivision) | ^~~~~~~~~~~~ midistats.c:1169:16: error: assignment to 'void (*)(void)' from incompatible pointer type 'void (*)(int, int, int)' [-Wincompatible-pointer-types] 1169 | Mf_noteoff = stats_noteoff; | ^ midistats.c:966:6: note: 'stats_noteoff' declared here 966 | void stats_noteoff(int chan,int pitch,int vol) | ^~~~~~~~~~~~~ midistats.c:1170:17: error: assignment to 'void (*)(void)' from incompatible pointer type 'void (*)(int, int, int)' [-Wincompatible-pointer-types] 1170 | Mf_pressure = no_op3; | ^ midistats.c:391:7: note: 'no_op3' declared here 391 | void no_op3(int dummy1, int dummy2, int dummy3) { } | ^~~~~~ midistats.c:1175:14: error: assignment to 'void (*)(void)' from incompatible pointer type 'void (*)(int, int)' [-Wincompatible-pointer-types] 1175 | Mf_sysex = no_op2; | ^ midistats.c:390:7: note: 'no_op2' declared here 390 | void no_op2(int dummy1, int dummy2) {} | ^~~~~~ midistats.c:1176:17: error: assignment to 'void (*)(void)' from incompatible pointer type 'void (*)(int, int, int)' [-Wincompatible-pointer-types] 1176 | Mf_metamisc = no_op3; | ^ midistats.c:391:7: note: 'no_op3' declared here 391 | void no_op3(int dummy1, int dummy2, int dummy3) { } | ^~~~~~ midistats.c:1177:15: error: assignment to 'void (*)(void)' from incompatible pointer type 'void (*)(int)' [-Wincompatible-pointer-types] 1177 | Mf_seqnum = no_op1; | ^ midistats.c:389:7: note: 'no_op1' declared here 389 | void no_op1(int dummy1) {} | ^~~~~~ midistats.c:1180:14: error: assignment to 'void (*)(void)' from incompatible pointer type 'void (*)(int, int, int, int, int)' [-Wincompatible-pointer-types] 1180 | Mf_smpte = no_op5; | ^ midistats.c:393:7: note: 'no_op5' declared here 393 | void no_op5(int dummy1, int dummy2, int dummy3, int dummy4, int dummy5) { } | ^~~~~~ midistats.c:1183:20: error: assignment to 'void (*)(void)' from incompatible pointer type 'void (*)(int, int, int)' [-Wincompatible-pointer-types] 1183 | Mf_seqspecific = no_op3; | ^ midistats.c:391:7: note: 'no_op3' declared here 391 | void no_op3(int dummy1, int dummy2, int dummy3) { } | ^~~~~~ midistats.c:1185:18: error: assignment to 'void (*)(void)' from incompatible pointer type 'void (*)(int, int)' [-Wincompatible-pointer-types] 1185 | Mf_arbitrary = no_op2; | ^ midistats.c:390:7: note: 'no_op2' declared here 390 | void no_op2(int dummy1, int dummy2) {} | ^~~~~~ midistats.c: In function 'initfunc_for_loadNoteEvents': midistats.c:1193:15: error: assignment to 'void (*)(void)' from incompatible pointer type 'void (*)(int, int, int)' [-Wincompatible-pointer-types] 1193 | Mf_header = load_header; | ^ midistats.c:1151:6: note: 'load_header' declared here 1151 | void load_header (int format, int ntrks, int ldivision) | ^~~~~~~~~~~ midistats.c:1196:15: error: assignment to 'void (*)(void)' from incompatible pointer type 'void (*)(int, int, int)' [-Wincompatible-pointer-types] 1196 | Mf_noteon = record_noteon; | ^ midistats.c:1112:6: note: 'record_noteon' declared here 1112 | void record_noteon(int chan,int pitch,int vol) | ^~~~~~~~~~~~~ midistats.c:1197:16: error: assignment to 'void (*)(void)' from incompatible pointer type 'void (*)(int, int, int)' [-Wincompatible-pointer-types] 1197 | Mf_noteoff = record_noteoff; | ^ midistats.c:1128:6: note: 'record_noteoff' declared here 1128 | void record_noteoff(int chan,int pitch,int vol) | ^~~~~~~~~~~~~~ midistats.c:1198:17: error: assignment to 'void (*)(void)' from incompatible pointer type 'void (*)(int, int, int)' [-Wincompatible-pointer-types] 1198 | Mf_pressure = no_op3; | ^ midistats.c:391:7: note: 'no_op3' declared here 391 | void no_op3(int dummy1, int dummy2, int dummy3) { } | ^~~~~~ midistats.c:1199:18: error: assignment to 'void (*)(void)' from incompatible pointer type 'void (*)(int, int, int)' [-Wincompatible-pointer-types] 1199 | Mf_parameter = no_op3; | ^ midistats.c:391:7: note: 'no_op3' declared here 391 | void no_op3(int dummy1, int dummy2, int dummy3) { } | ^~~~~~ midistats.c:1200:18: error: assignment to 'void (*)(void)' from incompatible pointer type 'void (*)(int, int, int)' [-Wincompatible-pointer-types] 1200 | Mf_pitchbend = no_op3; | ^ midistats.c:391:7: note: 'no_op3' declared here 391 | void no_op3(int dummy1, int dummy2, int dummy3) { } | ^~~~~~ midistats.c:1202:21: error: assignment to 'void (*)(void)' from incompatible pointer type 'void (*)(int, int, int)' [-Wincompatible-pointer-types] 1202 | Mf_chanpressure = no_op3; | ^ midistats.c:391:7: note: 'no_op3' declared here 391 | void no_op3(int dummy1, int dummy2, int dummy3) { } | ^~~~~~ midistats.c:1203:14: error: assignment to 'void (*)(void)' from incompatible pointer type 'void (*)(int, int)' [-Wincompatible-pointer-types] 1203 | Mf_sysex = no_op2; | ^ midistats.c:390:7: note: 'no_op2' declared here 390 | void no_op2(int dummy1, int dummy2) {} | ^~~~~~ midistats.c:1204:17: error: assignment to 'void (*)(void)' from incompatible pointer type 'void (*)(int, int, int)' [-Wincompatible-pointer-types] 1204 | Mf_metamisc = no_op3; | ^ midistats.c:391:7: note: 'no_op3' declared here 391 | void no_op3(int dummy1, int dummy2, int dummy3) { } | ^~~~~~ midistats.c:1205:15: error: assignment to 'void (*)(void)' from incompatible pointer type 'void (*)(int)' [-Wincompatible-pointer-types] 1205 | Mf_seqnum = no_op1; | ^ midistats.c:389:7: note: 'no_op1' declared here 389 | void no_op1(int dummy1) {} | ^~~~~~ midistats.c:1207:16: error: assignment to 'void (*)(void)' from incompatible pointer type 'void (*)(int, int, int, int)' [-Wincompatible-pointer-types] 1207 | Mf_timesig = no_op4; | ^ midistats.c:392:7: note: 'no_op4' declared here 392 | void no_op4(int dummy1, int dummy2, int dummy3, int dummy4) { } | ^~~~~~ midistats.c:1208:14: error: assignment to 'void (*)(void)' from incompatible pointer type 'void (*)(int, int, int, int, int)' [-Wincompatible-pointer-types] 1208 | Mf_smpte = no_op5; | ^ midistats.c:393:7: note: 'no_op5' declared here 393 | void no_op5(int dummy1, int dummy2, int dummy3, int dummy4, int dummy5) { } | ^~~~~~ midistats.c:1209:14: error: assignment to 'void (*)(void)' from incompatible pointer type 'void (*)(long int)' [-Wincompatible-pointer-types] 1209 | Mf_tempo = record_tempo; | ^ midistats.c:1134:6: note: 'record_tempo' declared here 1134 | void record_tempo(long ltempo) | ^~~~~~~~~~~~ midistats.c:1210:15: error: assignment to 'void (*)(void)' from incompatible pointer type 'void (*)(int, int)' [-Wincompatible-pointer-types] 1210 | Mf_keysig = no_op2; | ^ midistats.c:390:7: note: 'no_op2' declared here 390 | void no_op2(int dummy1, int dummy2) {} | ^~~~~~ midistats.c:1211:20: error: assignment to 'void (*)(void)' from incompatible pointer type 'void (*)(int, int, int)' [-Wincompatible-pointer-types] 1211 | Mf_seqspecific = no_op3; | ^ midistats.c:391:7: note: 'no_op3' declared here 391 | void no_op3(int dummy1, int dummy2, int dummy3) { } | ^~~~~~ midistats.c:1212:13: error: assignment to 'void (*)(void)' from incompatible pointer type 'void (*)(int, int, int)' [-Wincompatible-pointer-types] 1212 | Mf_text = no_op3; | ^ midistats.c:391:7: note: 'no_op3' declared here 391 | void no_op3(int dummy1, int dummy2, int dummy3) { } | ^~~~~~ midistats.c:1213:18: error: assignment to 'void (*)(void)' from incompatible pointer type 'void (*)(int, int)' [-Wincompatible-pointer-types] 1213 | Mf_arbitrary = no_op2; | ^ midistats.c:390:7: note: 'no_op2' declared here 390 | void no_op2(int dummy1, int dummy2) {} | ^~~~~~ midistats.c: In function 'readnum': midistats.c:1678:5: warning: old-style function definition [-Wold-style-definition] 1678 | int readnum(num) | ^~~~~~~ midistats.c: In function 'readnump': midistats.c:1703:5: warning: old-style function definition [-Wold-style-definition] 1703 | int readnump(p) | ^~~~~~~~ midistats.c: In function 'getarg': midistats.c:1724:5: warning: old-style function definition [-Wold-style-definition] 1724 | int getarg(option, argc, argv) | ^~~~~~ midistats.c: In function 'huntfilename': midistats.c:1741:5: warning: old-style function definition [-Wold-style-definition] 1741 | int huntfilename(argc, argv) | ^~~~~~~~~~~~ midistats.c: In function 'process_command_line_arguments': midistats.c:1767:5: warning: old-style function definition [-Wold-style-definition] 1767 | int process_command_line_arguments(argc,argv) | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ midistats.c: In function 'midistats': midistats.c:1903:6: warning: old-style function definition [-Wold-style-definition] 1903 | void midistats(argc,argv) | ^~~~~~~~~ midistats.c: In function 'main': midistats.c:1961:5: warning: old-style function definition [-Wold-style-definition] 1961 | int main(argc,argv) | ^~~~ midistats.c:1965:9: error: prototype for 'efopen' declares fewer arguments than previous old-style definition 1965 | FILE *efopen(); | ^~~~~~ midistats.c:353:1: note: previous definition of 'efopen' with type 'FILE *()' 353 | efopen(name,mode) | ^~~~~~ make: *** [: midistats.o] Error 1 gcc -DANSILIBS -O2 -g -pipe -Wformat -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -m64 -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection=full -O2 -DHAVE_CONFIG_H -I. -c -o genmidi.o genmidi.c genmidi.c: In function 'reduce': genmidi.c:298:6: warning: old-style function definition [-Wold-style-definition] 298 | void reduce(a, b) | ^~~~~~ genmidi.c: In function 'gtfract': genmidi.c:328:5: warning: old-style function definition [-Wold-style-definition] 328 | int gtfract(anum,adenom, bnum,bdenom) | ^~~~~~~ genmidi.c: In function 'addunits': genmidi.c:342:6: warning: old-style function definition [-Wold-style-definition] 342 | void addunits(a, b) | ^~~~~~~~ genmidi.c: In function 'set_gchords': genmidi.c:392:6: warning: old-style function definition [-Wold-style-definition] 392 | void set_gchords(s) | ^~~~~~~~~~~ genmidi.c: In function 'set_drums': genmidi.c:435:6: warning: old-style function definition [-Wold-style-definition] 435 | void set_drums(s) | ^~~~~~~~~ genmidi.c: In function 'checkbar': genmidi.c:520:13: warning: old-style function definition [-Wold-style-definition] 520 | static void checkbar(pass) | ^~~~~~~~ genmidi.c: In function 'softcheckbar': genmidi.c:568:13: warning: old-style function definition [-Wold-style-definition] 568 | static void softcheckbar(pass) | ^~~~~~~~~~~~ genmidi.c: In function 'save_state': genmidi.c:579:13: warning: old-style function definition [-Wold-style-definition] 579 | static void save_state(vec, a, b, c, d, e, f) | ^~~~~~~~~~ genmidi.c: In function 'restore_state': genmidi.c:592:13: warning: old-style function definition [-Wold-style-definition] 592 | static void restore_state(vec, a, b, c, d, e, f) | ^~~~~~~~~~~~~ genmidi.c: In function 'findpart': genmidi.c:625:12: warning: old-style function definition [-Wold-style-definition] 625 | static int findpart(j) | ^~~~~~~~ genmidi.c: In function 'partbreak': genmidi.c:659:12: warning: old-style function definition [-Wold-style-definition] 659 | static int partbreak(xtrack, voice, place) | ^~~~~~~~~ genmidi.c: In function 'findvoice': genmidi.c:676:12: warning: old-style function definition [-Wold-style-definition] 676 | static int findvoice(initplace, voice, xtrack) | ^~~~~~~~~ genmidi.c: In function 'text_data': genmidi.c:708:13: warning: old-style function definition [-Wold-style-definition] 708 | static void text_data(s) | ^~~~~~~~~ genmidi.c:712:3: error: too many arguments to function 'mf_write_meta_event'; expected 0, have 4 712 | mf_write_meta_event(delta_time, text_event, s, strlen(s)); | ^~~~~~~~~~~~~~~~~~~ ~~~~~~~~~~ In file included from genmidi.c:43: midifile.h:37:5: note: declared here 37 | int mf_write_meta_event(); | ^~~~~~~~~~~~~~~~~~~ genmidi.c: In function 'karaokestarttrack': genmidi.c:717:13: warning: old-style function definition [-Wold-style-definition] 717 | static void karaokestarttrack (track) | ^~~~~~~~~~~~~~~~~ genmidi.c:743:7: error: too many arguments to function 'mf_write_meta_event'; expected 0, have 4 743 | mf_write_meta_event(0L, sequence_name, "Words", 5); | ^~~~~~~~~~~~~~~~~~~ ~~ midifile.h:37:5: note: declared here 37 | int mf_write_meta_event(); | ^~~~~~~~~~~~~~~~~~~ genmidi.c:763:12: error: too many arguments to function 'mf_write_meta_event'; expected 0, have 4 763 | mf_write_meta_event(0L, sequence_name, atext[pitch[j]], strlen (atext[pitch[j]])); | ^~~~~~~~~~~~~~~~~~~ ~~ midifile.h:37:5: note: declared here 37 | int mf_write_meta_event(); | ^~~~~~~~~~~~~~~~~~~ genmidi.c: In function 'findwline': genmidi.c:807:12: warning: old-style function definition [-Wold-style-definition] 807 | static int findwline(startline) | ^~~~~~~~~ genmidi.c: In function 'getword': genmidi.c:905:12: warning: old-style function definition [-Wold-style-definition] 905 | static int getword(place, w) | ^~~~~~~ genmidi.c: In function 'write_syllable': genmidi.c:1120:13: warning: old-style function definition [-Wold-style-definition] 1120 | static void write_syllable(place) | ^~~~~~~~~~~~~~ genmidi.c: In function 'inlist': genmidi.c:1220:12: warning: old-style function definition [-Wold-style-definition] 1220 | static int inlist(place, passno) | ^~~~~~ genmidi.c: In function 'set_meter': genmidi.c:1269:6: warning: old-style function definition [-Wold-style-definition] 1269 | void set_meter(n, m) | ^~~~~~~~~ genmidi.c: In function 'write_meter': genmidi.c:1298:13: warning: old-style function definition [-Wold-style-definition] 1298 | static void write_meter(n, m) | ^~~~~~~~~~~ genmidi.c:1326:3: error: too many arguments to function 'mf_write_meta_event'; expected 0, have 4 1326 | mf_write_meta_event(0L, time_signature, data, 4); /* [SS] 2010-04-15 2010-07-06*/ | ^~~~~~~~~~~~~~~~~~~ ~~ midifile.h:37:5: note: declared here 37 | int mf_write_meta_event(); | ^~~~~~~~~~~~~~~~~~~ genmidi.c: In function 'write_keysig': genmidi.c:1329:13: warning: old-style function definition [-Wold-style-definition] 1329 | static void write_keysig(sf, mi) | ^~~~~~~~~~~~ genmidi.c:1337:3: error: too many arguments to function 'mf_write_meta_event'; expected 0, have 4 1337 | mf_write_meta_event(0L, key_signature, data, 2); | ^~~~~~~~~~~~~~~~~~~ ~~ midifile.h:37:5: note: declared here 37 | int mf_write_meta_event(); | ^~~~~~~~~~~~~~~~~~~ genmidi.c: In function 'midi_noteon': genmidi.c:1340:13: warning: old-style function definition [-Wold-style-definition] 1340 | static void midi_noteon(delta_time, pitch, pitchbend, chan, vel) | ^~~~~~~~~~~ genmidi.c:1360:7: error: too many arguments to function 'mf_write_midi_event'; expected 0, have 5 1360 | mf_write_midi_event(delta_time,pitch_wheel,chan,data,2); | ^~~~~~~~~~~~~~~~~~~ ~~~~~~~~~~ midifile.h:38:5: note: declared here 38 | int mf_write_midi_event(); | ^~~~~~~~~~~~~~~~~~~ genmidi.c:1370:5: error: too many arguments to function 'mf_write_midi_event'; expected 0, have 5 1370 | mf_write_midi_event(delta_time, note_on, chan, data, 2); | ^~~~~~~~~~~~~~~~~~~ ~~~~~~~~~~ midifile.h:38:5: note: declared here 38 | int mf_write_midi_event(); | ^~~~~~~~~~~~~~~~~~~ genmidi.c: In function 'midi_noteoff': genmidi.c:1374:6: warning: old-style function definition [-Wold-style-definition] 1374 | void midi_noteoff(delta_time, pitch, chan) | ^~~~~~~~~~~~ genmidi.c:1387:5: error: too many arguments to function 'mf_write_midi_event'; expected 0, have 5 1387 | mf_write_midi_event(delta_time, note_off, chan, data, 2); | ^~~~~~~~~~~~~~~~~~~ ~~~~~~~~~~ midifile.h:38:5: note: declared here 38 | int mf_write_midi_event(); | ^~~~~~~~~~~~~~~~~~~ genmidi.c: In function 'noteon_data': genmidi.c:1391:13: warning: old-style function definition [-Wold-style-definition] 1391 | static void noteon_data(pitch, pitchbend, channel, vel) | ^~~~~~~~~~~ genmidi.c: In function 'apply_velocity_increment_for_one_note': genmidi.c:1616:5: warning: old-style function definition [-Wold-style-definition] 1616 | int apply_velocity_increment_for_one_note (velocity) | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ genmidi.c: In function 'noteon': genmidi.c:1636:13: warning: old-style function definition [-Wold-style-definition] 1636 | static void noteon(n) | ^~~~~~ genmidi.c: In function 'write_program': genmidi.c:1657:13: warning: old-style function definition [-Wold-style-definition] 1657 | static void write_program(p, channel) | ^~~~~~~~~~~~~ genmidi.c:1669:5: error: too many arguments to function 'mf_write_midi_event'; expected 0, have 5 1669 | mf_write_midi_event(delta_time, program_chng, channel, data, 1); | ^~~~~~~~~~~~~~~~~~~ ~~~~~~~~~~ midifile.h:38:5: note: declared here 38 | int mf_write_midi_event(); | ^~~~~~~~~~~~~~~~~~~ genmidi.c: In function 'write_event_with_delay': genmidi.c:1676:6: warning: old-style function definition [-Wold-style-definition] 1676 | void write_event_with_delay(delta,event_type, channel, data, n) | ^~~~~~~~~~~~~~~~~~~~~~ genmidi.c:1686:5: error: too many arguments to function 'mf_write_midi_event'; expected 0, have 5 1686 | mf_write_midi_event(delta, event_type, channel, data, n); | ^~~~~~~~~~~~~~~~~~~ ~~~~~ midifile.h:38:5: note: declared here 38 | int mf_write_midi_event(); | ^~~~~~~~~~~~~~~~~~~ genmidi.c: In function 'write_event': genmidi.c:1690:6: warning: old-style function definition [-Wold-style-definition] 1690 | void write_event(event_type, channel, data, n) | ^~~~~~~~~~~ genmidi.c:1700:5: error: too many arguments to function 'mf_write_midi_event'; expected 0, have 5 1700 | mf_write_midi_event(0, event_type, channel, data, n); | ^~~~~~~~~~~~~~~~~~~ ~ midifile.h:38:5: note: declared here 38 | int mf_write_midi_event(); | ^~~~~~~~~~~~~~~~~~~ genmidi.c: In function 'select_channel': genmidi.c:1704:14: warning: old-style function definition [-Wold-style-definition] 1704 | static char *select_channel(chan, s) | ^~~~~~~~~~~~~~ genmidi.c: In function 'makechordchannels': genmidi.c:1729:12: warning: old-style function definition [-Wold-style-definition] 1729 | static int makechordchannels (n) | ^~~~~~~~~~~~~~~~~ genmidi.c: In function 'expand_array': genmidi.c:1892:13: warning: old-style function definition [-Wold-style-definition] 1892 | static void expand_array (shortarray, size, longarray, factor) | ^~~~~~~~~~~~ genmidi.c: In function 'dodeferred': genmidi.c:1925:13: warning: old-style function definition [-Wold-style-definition] 1925 | static void dodeferred(s,noteson) | ^~~~~~~~~~ genmidi.c: In function 'delay': genmidi.c:2370:13: warning: old-style function definition [-Wold-style-definition] 2370 | static void delay(a, b, c) | ^~~~~ genmidi.c: In function 'save_note': genmidi.c:2385:13: warning: old-style function definition [-Wold-style-definition] 2385 | static void save_note(num, denom, pitch, pitchbend, chan, vel) | ^~~~~~~~~ genmidi.c: In function 'dogchords': genmidi.c:2400:6: warning: old-style function definition [-Wold-style-definition] 2400 | void dogchords(i) | ^~~~~~~~~ genmidi.c: In function 'dodrums': genmidi.c:2537:6: warning: old-style function definition [-Wold-style-definition] 2537 | void dodrums(i) | ^~~~~~~ genmidi.c: In function 'progress_sequence': genmidi.c:2589:6: warning: old-style function definition [-Wold-style-definition] 2589 | void progress_sequence(i) | ^~~~~~~~~~~~~~~~~ genmidi.c: In function 'writetrack': genmidi.c:2856:6: warning: old-style function definition [-Wold-style-definition] 2856 | long writetrack(xtrack) | ^~~~~~~~~~ genmidi.c:2925:5: error: too many arguments to function 'mf_write_meta_event'; expected 0, have 4 2925 | mf_write_meta_event(0L, text_event, annotation, strlen(annotation)); | ^~~~~~~~~~~~~~~~~~~ ~~ midifile.h:37:5: note: declared here 37 | int mf_write_meta_event(); | ^~~~~~~~~~~~~~~~~~~ genmidi.c:2940:5: error: too many arguments to function 'mf_write_meta_event'; expected 0, have 4 2940 | mf_write_meta_event(0L, text_event, annotation, strlen(annotation)); | ^~~~~~~~~~~~~~~~~~~ ~~ midifile.h:37:5: note: declared here 37 | int mf_write_meta_event(); | ^~~~~~~~~~~~~~~~~~~ genmidi.c:2949:5: error: too many arguments to function 'mf_write_meta_event'; expected 0, have 4 2949 | mf_write_meta_event(0L, text_event, annotation, strlen(annotation)); | ^~~~~~~~~~~~~~~~~~~ ~~ midifile.h:37:5: note: declared here 37 | int mf_write_meta_event(); | ^~~~~~~~~~~~~~~~~~~ genmidi.c:2961:5: error: too many arguments to function 'mf_write_meta_event'; expected 0, have 4 2961 | mf_write_meta_event(0L, text_event, annotation, strlen(annotation)); | ^~~~~~~~~~~~~~~~~~~ ~~ midifile.h:37:5: note: declared here 37 | int mf_write_meta_event(); | ^~~~~~~~~~~~~~~~~~~ genmidi.c:2978:5: error: too many arguments to function 'mf_write_meta_event'; expected 0, have 4 2978 | mf_write_meta_event(0L, text_event, annotation, strlen(annotation)); | ^~~~~~~~~~~~~~~~~~~ ~~ midifile.h:37:5: note: declared here 37 | int mf_write_meta_event(); | ^~~~~~~~~~~~~~~~~~~ genmidi.c:2990:5: error: too many arguments to function 'mf_write_meta_event'; expected 0, have 4 2990 | mf_write_meta_event(0L, text_event, annotation, strlen(annotation)); | ^~~~~~~~~~~~~~~~~~~ ~~ midifile.h:37:5: note: declared here 37 | int mf_write_meta_event(); | ^~~~~~~~~~~~~~~~~~~ genmidi.c:2995:5: error: too many arguments to function 'mf_write_tempo'; expected 0, have 1 2995 | mf_write_tempo(tempo); | ^~~~~~~~~~~~~~ ~~~~~ midifile.h:39:6: note: declared here 39 | void mf_write_tempo(); | ^~~~~~~~~~~~~~ genmidi.c:3191:9: error: too many arguments to function 'mf_write_meta_event'; expected 0, have 4 3191 | mf_write_meta_event(0L, marker, msg, 1); | ^~~~~~~~~~~~~~~~~~~ ~~ midifile.h:37:5: note: declared here 37 | int mf_write_meta_event(); | ^~~~~~~~~~~~~~~~~~~ genmidi.c:3206:9: error: too many arguments to function 'mf_write_meta_event'; expected 0, have 4 3206 | mf_write_meta_event(0L, text_event, atext[pitch[j]], | ^~~~~~~~~~~~~~~~~~~ ~~ midifile.h:37:5: note: declared here 37 | int mf_write_meta_event(); | ^~~~~~~~~~~~~~~~~~~ genmidi.c:3215:15: error: too many arguments to function 'mf_write_meta_event'; expected 0, have 4 3215 | mf_write_meta_event(0L, sequence_name, atext[pitch[j]], | ^~~~~~~~~~~~~~~~~~~ ~~ midifile.h:37:5: note: declared here 37 | int mf_write_meta_event(); | ^~~~~~~~~~~~~~~~~~~ genmidi.c:3439:15: error: too many arguments to function 'mf_write_meta_event'; expected 0, have 4 3439 | mf_write_meta_event(delta_time_track0, set_tempo, data, 3); | ^~~~~~~~~~~~~~~~~~~ ~~~~~~~~~~~~~~~~~ midifile.h:37:5: note: declared here 37 | int mf_write_meta_event(); | ^~~~~~~~~~~~~~~~~~~ genmidi.c:3443:15: error: too many arguments to function 'mf_write_meta_event'; expected 0, have 4 3443 | mf_write_meta_event(delta_time, set_tempo, data, 3); | ^~~~~~~~~~~~~~~~~~~ ~~~~~~~~~~ midifile.h:37:5: note: declared here 37 | int mf_write_meta_event(); | ^~~~~~~~~~~~~~~~~~~ genmidi.c:3486:11: error: too many arguments to function 'mf_write_meta_event'; expected 0, have 4 3486 | mf_write_meta_event(delta_time, copyright_notice, atext[pitch[j]], strlen (atext[pitch[j]])); | ^~~~~~~~~~~~~~~~~~~ ~~~~~~~~~~ midifile.h:37:5: note: declared here 37 | int mf_write_meta_event(); | ^~~~~~~~~~~~~~~~~~~ make: *** [: genmidi.o] Error 1 gcc -DANSILIBS -O2 -g -pipe -Wformat -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -m64 -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection=full -O2 -DHAVE_CONFIG_H -I. -c -o drawtune.o drawtune.c drawtune.c: In function 'setmargins': drawtune.c:430:6: warning: old-style function definition [-Wold-style-definition] 430 | void setmargins(s) | ^~~~~~~~~~ drawtune.c: In function 'setpagesize': drawtune.c:449:6: warning: old-style function definition [-Wold-style-definition] 449 | void setpagesize(s) | ^~~~~~~~~~~ drawtune.c: In function 'set_space': drawtune.c:486:13: warning: old-style function definition [-Wold-style-definition] 486 | static void set_space(afont, s) | ^~~~~~~~~ drawtune.c: In function 'init_font': drawtune.c:509:13: warning: old-style function definition [-Wold-style-definition] 509 | static void init_font(afont, ptsize, spce, defnum, specialnum) | ^~~~~~~~~ drawtune.c: In function 'read_boolean': drawtune.c:2085:5: warning: old-style function definition [-Wold-style-definition] 2085 | int read_boolean(s) | ^~~~~~~~~~~~ drawtune.c: In function 'font_command': drawtune.c:2103:6: warning: old-style function definition [-Wold-style-definition] 2103 | void font_command(p, s) | ^~~~~~~~~~~~ drawtune.c: In function 'printtext': drawtune.c:2721:13: warning: old-style function definition [-Wold-style-definition] 2721 | static void printtext(place, s, afont) | ^~~~~~~~~ drawtune.c: In function 'centretext': drawtune.c:2750:6: warning: old-style function definition [-Wold-style-definition] 2750 | void centretext(s) | ^~~~~~~~~~ drawtune.c: In function 'lefttext': drawtune.c:2758:6: warning: old-style function definition [-Wold-style-definition] 2758 | void lefttext(s) | ^~~~~~~~ drawtune.c: In function 'open_output_file': drawtune.c:2863:6: warning: old-style function definition [-Wold-style-definition] 2863 | void open_output_file(filename, boundingbox) | ^~~~~~~~~~~~~~~~ drawtune.c:2874:3: error: too many arguments to function 'printlib'; expected 0, have 3 2874 | printlib(f, filename, boundingbox); | ^~~~~~~~ ~ drawtune.c:51:13: note: declared here 51 | extern void printlib(); | ^~~~~~~~ drawtune.c: In function 'endrep': drawtune.c:2890:12: warning: old-style function definition [-Wold-style-definition] 2890 | static int endrep(inend, end_string, x1, x2, yend) | ^~~~~~ drawtune.c: In function 'finalsizetune': drawtune.c:3454:13: warning: old-style function definition [-Wold-style-definition] 3454 | static void finalsizetune(t) | ^~~~~~~~~~~~~ drawtune.c: In function 'tuneheight': drawtune.c:3510:15: warning: old-style function definition [-Wold-style-definition] 3510 | static double tuneheight(t) | ^~~~~~~~~~ make: *** [: drawtune.o] Error 1 gcc -DANSILIBS -O2 -g -pipe -Wformat -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -m64 -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection=full -O2 -DHAVE_CONFIG_H -I. -c -o music_utils.o music_utils.c gcc -DANSILIBS -O2 -g -pipe -Wformat -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -m64 -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection=full -O2 -DHAVE_CONFIG_H -I. -c -o debug.o debug.c debug.c: In function 'showline': debug.c:173:12: warning: old-style function definition [-Wold-style-definition] 173 | static int showline(v) | ^~~~~~~~ gcc -DANSILIBS -O2 -g -pipe -Wformat -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -m64 -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection=full -O2 -DHAVE_CONFIG_H -I. -c -o midi2abc.o midi2abc.c midi2abc.c: In function 'fatal_error': midi2abc.c:269:6: warning: old-style function definition [-Wold-style-definition] 269 | void fatal_error(s) | ^~~~~~~~~~~ midi2abc.c: In function 'event_error': midi2abc.c:278:6: warning: old-style function definition [-Wold-style-definition] 278 | void event_error(s) | ^~~~~~~~~~~ midi2abc.c: In function 'checkmalloc': midi2abc.c:289:6: warning: old-style function definition [-Wold-style-definition] 289 | int* checkmalloc(bytes) | ^~~~~~~~~~~ midi2abc.c: In function 'addstring': midi2abc.c:304:7: warning: old-style function definition [-Wold-style-definition] 304 | char* addstring(s) | ^~~~~~~~~ midi2abc.c: In function 'addtext': midi2abc.c:324:6: warning: old-style function definition [-Wold-style-definition] 324 | void addtext(s, type) | ^~~~~~~ midi2abc.c: In function 'addtext_type0': midi2abc.c:349:6: warning: old-style function definition [-Wold-style-definition] 349 | void addtext_type0(s, type,chn) | ^~~~~~~~~~~~~ midi2abc.c: In function 'noteplaying': midi2abc.c:390:6: warning: old-style function definition [-Wold-style-definition] 390 | void noteplaying(p) | ^~~~~~~~~~~ midi2abc.c: In function 'addnote': midi2abc.c:413:6: warning: old-style function definition [-Wold-style-definition] 413 | void addnote(p, ch, v) | ^~~~~~~ midi2abc.c: In function 'addnote_type0': midi2abc.c:447:6: warning: old-style function definition [-Wold-style-definition] 447 | void addnote_type0(p, ch, v) | ^~~~~~~~~~~~~ midi2abc.c: In function 'notestop': midi2abc.c:482:6: warning: old-style function definition [-Wold-style-definition] 482 | void notestop(p, ch) | ^~~~~~~~ midi2abc.c: In function 'efopen': midi2abc.c:528:1: warning: old-style function definition [-Wold-style-definition] 528 | efopen(name,mode) | ^~~~~~ midi2abc.c: In function 'error': midi2abc.c:542:6: warning: old-style function definition [-Wold-style-definition] 542 | void error(s) | ^~~~~ midi2abc.c: In function 'txt_header': midi2abc.c:551:6: warning: old-style function definition [-Wold-style-definition] 551 | void txt_header(xformat,ntrks,ldivision) | ^~~~~~~~~~ midi2abc.c:565:17: error: assignment to 'void (*)(void)' from incompatible pointer type 'void (*)(int, int, int)' [-Wincompatible-pointer-types] 565 | Mf_noteon = txt_noteon_type0; | ^ midi2abc.c:248:6: note: 'txt_noteon_type0' declared here 248 | void txt_noteon_type0(int,int,int); | ^~~~~~~~~~~~~~~~ midi2abc.c:566:18: error: assignment to 'void (*)(void)' from incompatible pointer type 'void (*)(int, int, int)' [-Wincompatible-pointer-types] 566 | Mf_noteoff = txt_noteoff; | ^ midi2abc.c:245:6: note: 'txt_noteoff' declared here 245 | void txt_noteoff(int,int,int); | ^~~~~~~~~~~ midi2abc.c:567:18: error: assignment to 'void (*)(void)' from incompatible pointer type 'void (*)(int, int)' [-Wincompatible-pointer-types] 567 | Mf_program = txt_program_type0; | ^ midi2abc.c:249:6: note: 'txt_program_type0' declared here 249 | void txt_program_type0(int,int); | ^~~~~~~~~~~~~~~~~ midi2abc.c: In function 'txt_noteon': midi2abc.c:622:6: warning: old-style function definition [-Wold-style-definition] 622 | void txt_noteon(chan,pitch,vol) | ^~~~~~~~~~ midi2abc.c: In function 'txt_noteon_type0': midi2abc.c:636:6: warning: old-style function definition [-Wold-style-definition] 636 | void txt_noteon_type0(chan,pitch,vol) | ^~~~~~~~~~~~~~~~ midi2abc.c: In function 'txt_noteoff': midi2abc.c:649:6: warning: old-style function definition [-Wold-style-definition] 649 | void txt_noteoff(chan,pitch,vol) | ^~~~~~~~~~~ midi2abc.c: In function 'txt_pressure': midi2abc.c:657:6: warning: old-style function definition [-Wold-style-definition] 657 | void txt_pressure(chan,pitch,press) | ^~~~~~~~~~~~ midi2abc.c: In function 'txt_parameter': midi2abc.c:663:6: warning: old-style function definition [-Wold-style-definition] 663 | void txt_parameter(chan,control,value) | ^~~~~~~~~~~~~ midi2abc.c: In function 'txt_pitchbend': midi2abc.c:668:6: warning: old-style function definition [-Wold-style-definition] 668 | void txt_pitchbend(chan,lsb,msb) | ^~~~~~~~~~~~~ midi2abc.c: In function 'txt_program': midi2abc.c:673:6: warning: old-style function definition [-Wold-style-definition] 673 | void txt_program(chan,program) | ^~~~~~~~~~~ midi2abc.c: In function 'txt_program_type0': midi2abc.c:688:6: warning: old-style function definition [-Wold-style-definition] 688 | void txt_program_type0(chan,program) | ^~~~~~~~~~~~~~~~~ midi2abc.c: In function 'txt_sysex': midi2abc.c:701:6: warning: old-style function definition [-Wold-style-definition] 701 | void txt_sysex(leng,mess) | ^~~~~~~~~ midi2abc.c: In function 'txt_metamisc': midi2abc.c:707:6: warning: old-style function definition [-Wold-style-definition] 707 | void txt_metamisc(type,leng,mess) | ^~~~~~~~~~~~ midi2abc.c: In function 'txt_metaspecial': midi2abc.c:713:6: warning: old-style function definition [-Wold-style-definition] 713 | void txt_metaspecial(type,leng,mess) | ^~~~~~~~~~~~~~~ midi2abc.c: In function 'txt_metatext': midi2abc.c:719:6: warning: old-style function definition [-Wold-style-definition] 719 | void txt_metatext(type,leng,mess) | ^~~~~~~~~~~~ midi2abc.c: In function 'txt_metaseq': midi2abc.c:768:6: warning: old-style function definition [-Wold-style-definition] 768 | void txt_metaseq(num) | ^~~~~~~~~~~ midi2abc.c: In function 'txt_keysig': midi2abc.c:780:6: warning: old-style function definition [-Wold-style-definition] 780 | void txt_keysig(sf,mi) | ^~~~~~~~~~ midi2abc.c: In function 'txt_tempo': midi2abc.c:812:6: warning: old-style function definition [-Wold-style-definition] 812 | void txt_tempo(ltempo) | ^~~~~~~~~ midi2abc.c: In function 'setup_timesig': midi2abc.c:821:6: warning: old-style function definition [-Wold-style-definition] 821 | void setup_timesig(nn, denom, bb) | ^~~~~~~~~~~~~ midi2abc.c: In function 'txt_timesig': midi2abc.c:848:6: warning: old-style function definition [-Wold-style-definition] 848 | void txt_timesig(nn,dd,cc,bb) | ^~~~~~~~~~~ midi2abc.c: In function 'txt_smpte': midi2abc.c:870:6: warning: old-style function definition [-Wold-style-definition] 870 | void txt_smpte(hr,mn,se,fr,ff) | ^~~~~~~~~ midi2abc.c: In function 'txt_arbitrary': midi2abc.c:875:6: warning: old-style function definition [-Wold-style-definition] 875 | void txt_arbitrary(leng,mess) | ^~~~~~~~~~~~~ midi2abc.c: In function 'print_txt_header': midi2abc.c:893:6: warning: old-style function definition [-Wold-style-definition] 893 | void print_txt_header(xformat,ntrks,ldivision) | ^~~~~~~~~~~~~~~~ midi2abc.c: In function 'print_txt_noteon': midi2abc.c:902:6: warning: old-style function definition [-Wold-style-definition] 902 | void print_txt_noteon(chan, pitch, vol) | ^~~~~~~~~~~~~~~~ midi2abc.c: In function 'print_txt_noteoff': midi2abc.c:926:6: warning: old-style function definition [-Wold-style-definition] 926 | void print_txt_noteoff(chan, pitch, vol) | ^~~~~~~~~~~~~~~~~ midi2abc.c: In function 'prtime': midi2abc.c:1002:24: error: too many arguments to function 'mf_ticks2sec'; expected 0, have 3 1002 | printf("%6.2f ",mf_ticks2sec(Mf_currtime,division,tempo)); | ^~~~~~~~~~~~ ~~~~~~~~~~~ In file included from midi2abc.c:76: midifile.h:33:7: note: declared here 33 | float mf_ticks2sec(); | ^~~~~~~~~~~~ midi2abc.c: In function 'pitch2drum': midi2abc.c:1036:6: warning: old-style function definition [-Wold-style-definition] 1036 | void pitch2drum(midipitch) | ^~~~~~~~~~ midi2abc.c: In function 'mftxt_noteon': midi2abc.c:1081:6: warning: old-style function definition [-Wold-style-definition] 1081 | void mftxt_noteon(chan,pitch,vol) | ^~~~~~~~~~~~ midi2abc.c: In function 'mftxt_noteoff': midi2abc.c:1096:6: warning: old-style function definition [-Wold-style-definition] 1096 | void mftxt_noteoff(chan,pitch,vol) | ^~~~~~~~~~~~~ midi2abc.c: In function 'mftxt_polypressure': midi2abc.c:1111:6: warning: old-style function definition [-Wold-style-definition] 1111 | void mftxt_polypressure(chan,pitch,press) | ^~~~~~~~~~~~~~~~~~ midi2abc.c: In function 'mftxt_chanpressure': midi2abc.c:1119:6: warning: old-style function definition [-Wold-style-definition] 1119 | void mftxt_chanpressure(chan,pitch,press) | ^~~~~~~~~~~~~~~~~~ midi2abc.c: In function 'mftxt_pitchbend': midi2abc.c:1129:6: warning: old-style function definition [-Wold-style-definition] 1129 | void mftxt_pitchbend(chan,lsb,msb) | ^~~~~~~~~~~~~~~ midi2abc.c: In function 'mftxt_program': midi2abc.c:1147:6: warning: old-style function definition [-Wold-style-definition] 1147 | void mftxt_program(chan,program) | ^~~~~~~~~~~~~ midi2abc.c: In function 'mftxt_parameter': midi2abc.c:1203:6: warning: old-style function definition [-Wold-style-definition] 1203 | void mftxt_parameter(chan,control,value) | ^~~~~~~~~~~~~~~ midi2abc.c: In function 'mftxt_metatext': midi2abc.c:1281:6: warning: old-style function definition [-Wold-style-definition] 1281 | void mftxt_metatext(type,leng,mess) | ^~~~~~~~~~~~~~ midi2abc.c: In function 'mftxt_keysig': midi2abc.c:1318:6: warning: old-style function definition [-Wold-style-definition] 1318 | void mftxt_keysig(sf,mi) | ^~~~~~~~~~~~ midi2abc.c: In function 'mftxt_tempo': midi2abc.c:1336:6: warning: old-style function definition [-Wold-style-definition] 1336 | void mftxt_tempo(ltempo) | ^~~~~~~~~~~ midi2abc.c: In function 'mftxt_timesig': midi2abc.c:1345:6: warning: old-style function definition [-Wold-style-definition] 1345 | void mftxt_timesig(nn,dd,cc,bb) | ^~~~~~~~~~~~~ midi2abc.c: In function 'mftxt_smpte': midi2abc.c:1358:6: warning: old-style function definition [-Wold-style-definition] 1358 | void mftxt_smpte(hr,mn,se,fr,ff) | ^~~~~~~~~~~ midi2abc.c: In function 'initfunc_for_midinotes': midi2abc.c:1380:17: error: assignment to 'void (*)(void)' from incompatible pointer type 'void (*)(int, int, int)' [-Wincompatible-pointer-types] 1380 | Mf_pressure = no_op3; | ^ midi2abc.c:888:7: note: 'no_op3' declared here 888 | void no_op3(int dummy1, int dummy2, int dummy3) { } | ^~~~~~ midi2abc.c:1381:18: error: assignment to 'void (*)(void)' from incompatible pointer type 'void (*)(int, int, int)' [-Wincompatible-pointer-types] 1381 | Mf_parameter = no_op3; | ^ midi2abc.c:888:7: note: 'no_op3' declared here 888 | void no_op3(int dummy1, int dummy2, int dummy3) { } | ^~~~~~ midi2abc.c:1382:18: error: assignment to 'void (*)(void)' from incompatible pointer type 'void (*)(int, int, int)' [-Wincompatible-pointer-types] 1382 | Mf_pitchbend = no_op3; | ^ midi2abc.c:888:7: note: 'no_op3' declared here 888 | void no_op3(int dummy1, int dummy2, int dummy3) { } | ^~~~~~ midi2abc.c:1383:16: error: assignment to 'void (*)(void)' from incompatible pointer type 'void (*)(int, int)' [-Wincompatible-pointer-types] 1383 | Mf_program = print_txt_program; | ^ midi2abc.c:986:6: note: 'print_txt_program' declared here 986 | void print_txt_program(int chan,int program) { | ^~~~~~~~~~~~~~~~~ midi2abc.c:1384:21: error: assignment to 'void (*)(void)' from incompatible pointer type 'void (*)(int, int, int)' [-Wincompatible-pointer-types] 1384 | Mf_chanpressure = no_op3; | ^ midi2abc.c:888:7: note: 'no_op3' declared here 888 | void no_op3(int dummy1, int dummy2, int dummy3) { } | ^~~~~~ midi2abc.c:1385:14: error: assignment to 'void (*)(void)' from incompatible pointer type 'void (*)(int, int)' [-Wincompatible-pointer-types] 1385 | Mf_sysex = no_op2; | ^ midi2abc.c:887:7: note: 'no_op2' declared here 887 | void no_op2(int dummy1, int dummy2) {} | ^~~~~~ midi2abc.c:1386:17: error: assignment to 'void (*)(void)' from incompatible pointer type 'void (*)(int, int, int)' [-Wincompatible-pointer-types] 1386 | Mf_metamisc = no_op3; | ^ midi2abc.c:888:7: note: 'no_op3' declared here 888 | void no_op3(int dummy1, int dummy2, int dummy3) { } | ^~~~~~ midi2abc.c:1387:15: error: assignment to 'void (*)(void)' from incompatible pointer type 'void (*)(int)' [-Wincompatible-pointer-types] 1387 | Mf_seqnum = no_op1; | ^ midi2abc.c:886:7: note: 'no_op1' declared here 886 | void no_op1(int dummy1) {} | ^~~~~~ midi2abc.c:1389:16: error: assignment to 'void (*)(void)' from incompatible pointer type 'void (*)(int, int, int, int)' [-Wincompatible-pointer-types] 1389 | Mf_timesig = no_op4; | ^ midi2abc.c:889:7: note: 'no_op4' declared here 889 | void no_op4(int dummy1, int dummy2, int dummy3, int dummy4) { } | ^~~~~~ midi2abc.c:1390:14: error: assignment to 'void (*)(void)' from incompatible pointer type 'void (*)(int, int, int, int, int)' [-Wincompatible-pointer-types] 1390 | Mf_smpte = no_op5; | ^ midi2abc.c:890:7: note: 'no_op5' declared here 890 | void no_op5(int dummy1, int dummy2, int dummy3, int dummy4, int dummy5) { } | ^~~~~~ midi2abc.c:1391:14: error: assignment to 'void (*)(void)' from incompatible pointer type 'void (*)(int)' [-Wincompatible-pointer-types] 1391 | Mf_tempo = no_op1; | ^ midi2abc.c:886:7: note: 'no_op1' declared here 886 | void no_op1(int dummy1) {} | ^~~~~~ midi2abc.c:1392:15: error: assignment to 'void (*)(void)' from incompatible pointer type 'void (*)(int, int)' [-Wincompatible-pointer-types] 1392 | Mf_keysig = no_op2; | ^ midi2abc.c:887:7: note: 'no_op2' declared here 887 | void no_op2(int dummy1, int dummy2) {} | ^~~~~~ midi2abc.c:1393:20: error: assignment to 'void (*)(void)' from incompatible pointer type 'void (*)(int, int, int)' [-Wincompatible-pointer-types] 1393 | Mf_seqspecific = no_op3; | ^ midi2abc.c:888:7: note: 'no_op3' declared here 888 | void no_op3(int dummy1, int dummy2, int dummy3) { } | ^~~~~~ midi2abc.c:1394:13: error: assignment to 'void (*)(void)' from incompatible pointer type 'void (*)(int, int, int)' [-Wincompatible-pointer-types] 1394 | Mf_text = no_op3; | ^ midi2abc.c:888:7: note: 'no_op3' declared here 888 | void no_op3(int dummy1, int dummy2, int dummy3) { } | ^~~~~~ midi2abc.c:1395:18: error: assignment to 'void (*)(void)' from incompatible pointer type 'void (*)(int, int)' [-Wincompatible-pointer-types] 1395 | Mf_arbitrary = no_op2; | ^ midi2abc.c:887:7: note: 'no_op2' declared here 887 | void no_op2(int dummy1, int dummy2) {} | ^~~~~~ midi2abc.c: In function 'initfunc_for_mftext': midi2abc.c:1402:15: error: assignment to 'void (*)(void)' from incompatible pointer type 'void (*)(int, int, int)' [-Wincompatible-pointer-types] 1402 | Mf_header = mftxt_header; | ^ midi2abc.c:1058:6: note: 'mftxt_header' declared here 1058 | void mftxt_header (int format, int ntrks, int ldivision) | ^~~~~~~~~~~~ midi2abc.c:1412:14: error: assignment to 'void (*)(void)' from incompatible pointer type 'void (*)(int, int)' [-Wincompatible-pointer-types] 1412 | Mf_sysex = no_op2; | ^ midi2abc.c:887:7: note: 'no_op2' declared here 887 | void no_op2(int dummy1, int dummy2) {} | ^~~~~~ midi2abc.c:1413:17: error: assignment to 'void (*)(void)' from incompatible pointer type 'void (*)(int, int, int)' [-Wincompatible-pointer-types] 1413 | Mf_metamisc = no_op3; | ^ midi2abc.c:888:7: note: 'no_op3' declared here 888 | void no_op3(int dummy1, int dummy2, int dummy3) { } | ^~~~~~ midi2abc.c:1414:15: error: assignment to 'void (*)(void)' from incompatible pointer type 'void (*)(int)' [-Wincompatible-pointer-types] 1414 | Mf_seqnum = no_op1; | ^ midi2abc.c:886:7: note: 'no_op1' declared here 886 | void no_op1(int dummy1) {} | ^~~~~~ midi2abc.c:1420:20: error: assignment to 'void (*)(void)' from incompatible pointer type 'void (*)(int, int, int)' [-Wincompatible-pointer-types] 1420 | Mf_seqspecific = no_op3; | ^ midi2abc.c:888:7: note: 'no_op3' declared here 888 | void no_op3(int dummy1, int dummy2, int dummy3) { } | ^~~~~~ midi2abc.c:1422:18: error: assignment to 'void (*)(void)' from incompatible pointer type 'void (*)(int, int)' [-Wincompatible-pointer-types] 1422 | Mf_arbitrary = no_op2; | ^ midi2abc.c:887:7: note: 'no_op2' declared here 887 | void no_op2(int dummy1, int dummy2) {} | ^~~~~~ midi2abc.c: In function 'initfuncs': midi2abc.c:1435:16: error: assignment to 'void (*)(void)' from incompatible pointer type 'void (*)(int, int, int)' [-Wincompatible-pointer-types] 1435 | Mf_noteoff = txt_noteoff; | ^ midi2abc.c:649:6: note: 'txt_noteoff' declared here 649 | void txt_noteoff(chan,pitch,vol) | ^~~~~~~~~~~ midi2abc.c: In function 'postprocess': midi2abc.c:1458:6: warning: old-style function definition [-Wold-style-definition] 1458 | void postprocess(trackno) | ^~~~~~~~~~~ midi2abc.c: In function 'scannotes': midi2abc.c:1483:6: warning: old-style function definition [-Wold-style-definition] 1483 | void scannotes(trackno) | ^~~~~~~~~ midi2abc.c: In function 'xnum_to_next_nonchordal_note': midi2abc.c:1500:5: warning: old-style function definition [-Wold-style-definition] 1500 | int xnum_to_next_nonchordal_note(fromitem,spare,quantum) | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~ midi2abc.c: In function 'quantize': midi2abc.c:1521:5: warning: old-style function definition [-Wold-style-definition] 1521 | int quantize(trackno, xunit) | ^~~~~~~~ midi2abc.c: In function 'guesslengths': midi2abc.c:1579:6: warning: old-style function definition [-Wold-style-definition] 1579 | void guesslengths(trackno) | ^~~~~~~~~~~~ midi2abc.c: In function 'findana': midi2abc.c:1607:5: warning: old-style function definition [-Wold-style-definition] 1607 | int findana(maintrack, barsize) | ^~~~~~~ midi2abc.c: In function 'guessana': midi2abc.c:1634:5: warning: old-style function definition [-Wold-style-definition] 1634 | int guessana(barbeats) | ^~~~~~~~ midi2abc.c: In function 'findkey': midi2abc.c:1665:5: warning: old-style function definition [-Wold-style-definition] 1665 | int findkey(maintrack) | ^~~~~~~ midi2abc.c: In function 'addtochord': midi2abc.c:1830:6: warning: old-style function definition [-Wold-style-definition] 1830 | void addtochord(p) | ^~~~~~~~~~ midi2abc.c: In function 'removefromchord': midi2abc.c:1875:16: warning: old-style function definition [-Wold-style-definition] 1875 | struct dlistx* removefromchord(i) | ^~~~~~~~~~~~~~~ midi2abc.c: In function 'findshortest': midi2abc.c:1900:5: warning: old-style function definition [-Wold-style-definition] 1900 | int findshortest(gap) | ^~~~~~~~~~~~ midi2abc.c: In function 'advancechord': midi2abc.c:1920:6: warning: old-style function definition [-Wold-style-definition] 1920 | void advancechord(len) | ^~~~~~~~~~~~ midi2abc.c: In function 'testtrack': midi2abc.c:2033:5: warning: old-style function definition [-Wold-style-definition] 2033 | int testtrack(trackno, barbeats, anacrusis) | ^~~~~~~~~ midi2abc.c: In function 'printpitch': midi2abc.c:2091:6: warning: old-style function definition [-Wold-style-definition] 2091 | void printpitch(j) | ^~~~~~~~~~ midi2abc.c: In function 'reduce': midi2abc.c:2123:13: warning: old-style function definition [-Wold-style-definition] 2123 | static void reduce(a, b) | ^~~~~~ midi2abc.c: In function 'printfract': midi2abc.c:2148:6: warning: old-style function definition [-Wold-style-definition] 2148 | void printfract(a, b) | ^~~~~~~~~~ midi2abc.c: In function 'printchord': midi2abc.c:2167:6: warning: old-style function definition [-Wold-style-definition] 2167 | void printchord(len) | ^~~~~~~~~~ midi2abc.c: In function 'dospecial': midi2abc.c:2214:6: warning: old-style function definition [-Wold-style-definition] 2214 | char dospecial(i, barnotes, featurecount,allow_broken,allow_triplets) | ^~~~~~~~~ midi2abc.c:2252:17: error: too many arguments to function 'validnote'; expected 0, have 1 2252 | if (vt == validnote(vt)) { | ^~~~~~~~~ ~~ midi2abc.c:241:5: note: declared here 241 | int validnote(); | ^~~~~~~~~ midi2abc.c: In function 'validnote': midi2abc.c:2311:5: warning: old-style function definition [-Wold-style-definition] 2311 | int validnote(n) | ^~~~~~~~~ midi2abc.c:2314:1: error: number of arguments doesn't match prototype 2314 | { | ^ midi2abc.c:241:5: error: prototype declaration 241 | int validnote(); | ^~~~~~~~~ midi2abc.c: In function 'handletext': midi2abc.c:2332:6: warning: old-style function definition [-Wold-style-definition] 2332 | void handletext(t, textplace, trackno) | ^~~~~~~~~~ midi2abc.c:2356:5: error: too many arguments to function 'remove_carriage_returns'; expected 0, have 1 2356 | remove_carriage_returns(str); | ^~~~~~~~~~~~~~~~~~~~~~~ ~~~ midi2abc.c:240:6: note: declared here 240 | void remove_carriage_returns(); | ^~~~~~~~~~~~~~~~~~~~~~~ midi2abc.c: In function 'printtrack_split': midi2abc.c:2690:14: error: too many arguments to function 'validnote'; expected 0, have 1 2690 | step = validnote(step); | ^~~~~~~~~ ~~~~ midi2abc.c:2311:5: note: declared here 2311 | int validnote(n) | ^~~~~~~~~ midi2abc.c: In function 'printtrack_split_voice': midi2abc.c:2756:6: warning: old-style function definition [-Wold-style-definition] 2756 | void printtrack_split_voice(trackno, anacrusis) | ^~~~~~~~~~~~~~~~~~~~~~ midi2abc.c: In function 'printtrack': midi2abc.c:2786:6: warning: old-style function definition [-Wold-style-definition] 2786 | void printtrack(trackno, anacrusis) | ^~~~~~~~~~ midi2abc.c:2859:14: error: too many arguments to function 'validnote'; expected 0, have 1 2859 | step = validnote(step); | ^~~~~~~~~ ~~~~ midi2abc.c:2311:5: note: declared here 2311 | int validnote(n) | ^~~~~~~~~ midi2abc.c: At top level: midi2abc.c:2928:6: error: conflicting types for 'remove_carriage_returns'; have 'void(char *)' 2928 | void remove_carriage_returns(char *str) | ^~~~~~~~~~~~~~~~~~~~~~~ midi2abc.c:240:6: note: previous declaration of 'remove_carriage_returns' with type 'void(void)' 240 | void remove_carriage_returns(); | ^~~~~~~~~~~~~~~~~~~~~~~ midi2abc.c: In function 'printQ': midi2abc.c:2945:11: error: too many arguments to function 'mf_ticks2sec'; expected 0, have 3 2945 | Tnote = mf_ticks2sec((long)((xunit*unitlen)/4), division, tempo); | ^~~~~~~~~~~~ ~~~~~~~~~~~~~~~~~~~~~~~~~ midifile.h:33:7: note: declared here 33 | float mf_ticks2sec(); | ^~~~~~~~~~~~ midi2abc.c: In function 'setupkey': midi2abc.c:2962:6: warning: old-style function definition [-Wold-style-definition] 2962 | void setupkey(sharps) | ^~~~~~~~ midi2abc.c: In function 'readnum': midi2abc.c:3044:5: warning: old-style function definition [-Wold-style-definition] 3044 | int readnum(num) | ^~~~~~~ midi2abc.c: In function 'readnump': midi2abc.c:3069:5: warning: old-style function definition [-Wold-style-definition] 3069 | int readnump(p) | ^~~~~~~~ midi2abc.c: In function 'readsig': midi2abc.c:3090:6: warning: old-style function definition [-Wold-style-definition] 3090 | void readsig(a, b, sig) | ^~~~~~~ midi2abc.c: In function 'getarg': midi2abc.c:3143:5: warning: old-style function definition [-Wold-style-definition] 3143 | int getarg(option, argc, argv) | ^~~~~~ midi2abc.c: In function 'huntfilename': midi2abc.c:3160:5: warning: old-style function definition [-Wold-style-definition] 3160 | int huntfilename(argc, argv) | ^~~~~~~~~~~~ midi2abc.c: In function 'process_command_line_arguments': midi2abc.c:3186:5: warning: old-style function definition [-Wold-style-definition] 3186 | int process_command_line_arguments(argc,argv) | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ midi2abc.c: In function 'midi2abc': midi2abc.c:3456:6: warning: old-style function definition [-Wold-style-definition] 3456 | void midi2abc (arg, argv) | ^~~~~~~~ midi2abc.c:3535:13: error: too many arguments to function 'mf_sec2ticks'; expected 0, have 3 3535 | xunit = mf_sec2ticks((60.0*4.0)/((float)(Qval*unitlen)), division, tempo); | ^~~~~~~~~~~~ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ midifile.h:34:6: note: declared here 34 | long mf_sec2ticks(); | ^~~~~~~~~~~~ midi2abc.c: In function 'midigram': midi2abc.c:3654:6: warning: old-style function definition [-Wold-style-definition] 3654 | void midigram(argc,argv) | ^~~~~~~~ midi2abc.c: In function 'mftext': midi2abc.c:3673:6: warning: old-style function definition [-Wold-style-definition] 3673 | void mftext(argc,argv) | ^~~~~~ midi2abc.c: In function 'main': midi2abc.c:3689:5: warning: old-style function definition [-Wold-style-definition] 3689 | int main(argc,argv) | ^~~~ midi2abc.c:3693:9: error: prototype for 'efopen' declares fewer arguments than previous old-style definition 3693 | FILE *efopen(); | ^~~~~~ midi2abc.c:528:1: note: previous definition of 'efopen' with type 'FILE *()' 528 | efopen(name,mode) | ^~~~~~ make: *** [: midi2abc.o] Error 1 gcc -DANSILIBS -O2 -g -pipe -Wformat -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -m64 -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection=full -O2 -DHAVE_CONFIG_H -I. -c -o store.o store.c store.c: In function 'newvoice': store.c:530:29: warning: old-style function definition [-Wold-style-definition] 530 | static struct voicecontext* newvoice(n) | ^~~~~~~~ store.c: In function 'getvoicecontext': store.c:589:29: warning: old-style function definition [-Wold-style-definition] 589 | static struct voicecontext* getvoicecontext(n) | ^~~~~~~~~~~~~~~ store.c: In function 'getchordnumber': store.c:750:12: warning: old-style function definition [-Wold-style-definition] 750 | static int getchordnumber(s) | ^~~~~~~~~~~~~~ store.c: In function 'addchordname': store.c:769:13: warning: old-style function definition [-Wold-style-definition] 769 | static void addchordname(s, len, notes) | ^~~~~~~~~~~~ store.c: In function 'event_init': store.c:878:6: warning: old-style function definition [-Wold-style-definition] 878 | void event_init(argc, argv, filename) | ^~~~~~~~~~ store.c:887:10: error: conflicting types for 'log10'; have 'double(void)' 887 | double log10(); | ^~~~~ In file included from /usr/include/features.h:524, from /usr/include/bits/libc-header-start.h:33, from /usr/include/stdio.h:28, from midifile.h:2, from store.c:209: /usr/include/bits/mathcalls.h:125:1: note: previous declaration of 'log10' with type 'double(double)' 125 | __MATHCALL_VEC (log10,, (_Mdouble_ __x)); | ^~~~~~~~~~~~~~ store.c:991:49: error: too many arguments to function 'log10'; expected 0, have 1 991 | semitone_shift = (float) (12.0 * log10(afreq/440.0f)/log10(2.0f)); /* [SS] 2015-10-08 extra parentheses */ | ^~~~~ ~~~~~~~~~~~~ store.c:887:10: note: declared here 887 | double log10(); | ^~~~~ store.c:991:69: error: too many arguments to function 'log10'; expected 0, have 1 991 | semitone_shift = (float) (12.0 * log10(afreq/440.0f)/log10(2.0f)); /* [SS] 2015-10-08 extra parentheses */ | ^~~~~ ~~~~ store.c:887:10: note: declared here 887 | double log10(); | ^~~~~ store.c: In function 'event_text': store.c:1156:6: warning: old-style function definition [-Wold-style-definition] 1156 | void event_text(s) | ^~~~~~~~~~ store.c: In function 'event_x_reserved': store.c:1172:6: warning: old-style function definition [-Wold-style-definition] 1172 | void event_x_reserved(p) | ^~~~~~~~~~~~~~~~ store.c: In function 'event_abbreviation': store.c:1182:6: warning: old-style function definition [-Wold-style-definition] 1182 | void event_abbreviation(symbol, string, container) | ^~~~~~~~~~~~~~~~~~ store.c: In function 'event_tex': store.c:1524:6: warning: old-style function definition [-Wold-style-definition] 1524 | void event_tex(s) | ^~~~~~~~~ store.c: In function 'event_fatal_error': store.c:1530:6: warning: old-style function definition [-Wold-style-definition] 1530 | void event_fatal_error(s) | ^~~~~~~~~~~~~~~~~ store.c: In function 'event_error': store.c:1538:6: warning: old-style function definition [-Wold-style-definition] 1538 | void event_error(s) | ^~~~~~~~~~~ store.c: In function 'event_warning': store.c:1553:6: warning: old-style function definition [-Wold-style-definition] 1553 | void event_warning(s) | ^~~~~~~~~~~~~ store.c: In function 'autoextend': store.c:1568:12: warning: old-style function definition [-Wold-style-definition] 1568 | static int autoextend(maxnotes) | ^~~~~~~~~~ store.c: In function 'textextend': store.c:1637:12: warning: old-style function definition [-Wold-style-definition] 1637 | static int textextend(maxstrings, stringarray) | ^~~~~~~~~~ store.c: In function 'addfeature': store.c:1659:13: warning: old-style function definition [-Wold-style-definition] 1659 | static void addfeature(f, p, n, d) | ^~~~~~~~~~ store.c: In function 'replacefeature': store.c:1677:13: warning: old-style function definition [-Wold-style-definition] 1677 | static void replacefeature(f, p, n, d, loc) | ^~~~~~~~~~~~~~ store.c: In function 'insertfeature': store.c:1687:6: warning: old-style function definition [-Wold-style-definition] 1687 | void insertfeature(f, p, n, d, loc) | ^~~~~~~~~~~~~ store.c: In function 'removefeature': store.c:1715:13: warning: old-style function definition [-Wold-style-definition] 1715 | static void removefeature(loc) | ^~~~~~~~~~~~~ store.c: In function 'interchange_features': store.c:1735:13: warning: old-style function definition [-Wold-style-definition] 1735 | static void interchange_features(loc1,loc2) | ^~~~~~~~~~~~~~~~~~~~ store.c: In function 'removefeatures': store.c:1767:13: warning: old-style function definition [-Wold-style-definition] 1767 | static void removefeatures(locfrom,locto) | ^~~~~~~~~~~~~~ store.c: In function 'event_endmusicline': store.c:1804:6: warning: old-style function definition [-Wold-style-definition] 1804 | void event_endmusicline(endchar) | ^~~~~~~~~~~~~~~~~~ store.c: In function 'event_comment': store.c:1823:6: warning: old-style function definition [-Wold-style-definition] 1823 | void event_comment(s) | ^~~~~~~~~~~~~ store.c: In function 'parse_mididef': store.c:1840:6: warning: old-style function definition [-Wold-style-definition] 1840 | void parse_mididef(s) | ^~~~~~~~~~~~~ store.c:1851:5: error: too many arguments to function 'readaln'; expected 0, have 3 1851 | i = readaln(midicmdname[nmidicmd], &p, 31); | ^~~~~~~ ~~~~~~~~~~~~~~~~~~~~~ store.c:1837:5: note: declared here 1837 | int readaln(); /* links to parseabc.c */ | ^~~~~~~ store.c: In function 'process_midix': store.c:1864:6: warning: old-style function definition [-Wold-style-definition] 1864 | void process_midix(s) | ^~~~~~~~~~~~~ store.c:1882:9: error: too many arguments to function 'readaln'; expected 0, have 3 1882 | j = readaln(&name,&p,31); | ^~~~~~~ ~~~~~ store.c:1837:5: note: declared here 1837 | int readaln(); /* links to parseabc.c */ | ^~~~~~~ store.c: In function 'compute_fifth_size': store.c:1900:7: warning: old-style function definition [-Wold-style-definition] 1900 | float compute_fifth_size (octave_size, ndiv) | ^~~~~~~~~~~~~~~~~~ store.c: In function 'event_midi': store.c:1923:6: warning: old-style function definition [-Wold-style-definition] 1923 | void event_midi(s) | ^~~~~~~~~~ store.c:2355:10: error: too many arguments to function 'parse_stress_params'; expected 0, have 1 2355 | if (parse_stress_params (inputfile) == -1) readstressfile (inputfile); | ^~~~~~~~~~~~~~~~~~~ ~~~~~~~~~ store.c:514:5: note: declared here 514 | int parse_stress_params(); | ^~~~~~~~~~~~~~~~~~~ store.c: In function 'event_specific_in_header': store.c:2526:6: warning: old-style function definition [-Wold-style-definition] 2526 | void event_specific_in_header(package, s) | ^~~~~~~~~~~~~~~~~~~~~~~~ store.c: In function 'event_field': store.c:2684:6: warning: old-style function definition [-Wold-style-definition] 2684 | void event_field(k, f) | ^~~~~~~~~~~ store.c: In function 'event_words': store.c:2735:6: warning: old-style function definition [-Wold-style-definition] 2735 | void event_words(p, append, continuation) | ^~~~~~~~~~~ store.c: In function 'append_words': store.c:2764:6: warning: old-style function definition [-Wold-style-definition] 2764 | void append_words (morewords) | ^~~~~~~~~~~~ store.c: In function 'appendfield': store.c:2773:6: warning: old-style function definition [-Wold-style-definition] 2773 | void appendfield (morewords) | ^~~~~~~~~~~ store.c: In function 'char_out': store.c:2799:13: warning: old-style function definition [-Wold-style-definition] 2799 | static void char_out(part, ch) | ^~~~~~~~ store.c: In function 'read_spec': store.c:2817:13: warning: old-style function definition [-Wold-style-definition] 2817 | static void read_spec(spec, part) | ^~~~~~~~~ store.c: In function 'event_part': store.c:2923:6: warning: old-style function definition [-Wold-style-definition] 2923 | void event_part(s) | ^~~~~~~~~~ store.c: In function 'event_voice': store.c:2964:6: warning: old-style function definition [-Wold-style-definition] 2964 | void event_voice(n, s, vp) | ^~~~~~~~~~~ store.c: In function 'event_length': store.c:2997:6: warning: old-style function definition [-Wold-style-definition] 2997 | void event_length(n) | ^~~~~~~~~~~~ store.c: In function 'event_default_length': store.c:3008:6: warning: old-style function definition [-Wold-style-definition] 3008 | void event_default_length (n) | ^~~~~~~~~~~~~~~~~~~~ store.c: In function 'tempounits': store.c:3014:13: warning: old-style function definition [-Wold-style-definition] 3014 | static void tempounits(t_num, t_denom) | ^~~~~~~~~~ store.c: In function 'get_tempo_from_name': store.c:3033:5: warning: old-style function definition [-Wold-style-definition] 3033 | int get_tempo_from_name (s) /* [SS] 2010-12-07 */ | ^~~~~~~~~~~~~~~~~~~ store.c: In function 'is_abcm2ps_option': store.c:3047:5: warning: old-style function definition [-Wold-style-definition] 3047 | int is_abcm2ps_option (s) /* [SS] 2018-12-17 */ | ^~~~~~~~~~~~~~~~~ store.c: In function 'event_tempo': store.c:3060:6: warning: old-style function definition [-Wold-style-definition] 3060 | void event_tempo(n, a, b, rel, pre, post) | ^~~~~~~~~~~ store.c: In function 'event_timesig': store.c:3100:6: warning: old-style function definition [-Wold-style-definition] 3100 | void event_timesig (timesig) | ^~~~~~~~~~~~~ store.c: In function 'event_octave': store.c:3138:6: warning: old-style function definition [-Wold-style-definition] 3138 | void event_octave(num, local) | ^~~~~~~~~~~~ store.c: In function 'stack_broken': store.c:3155:13: warning: old-style function definition [-Wold-style-definition] 3155 | static void stack_broken(v) | ^~~~~~~~~~~~ store.c: In function 'restore_broken': store.c:3173:13: warning: old-style function definition [-Wold-style-definition] 3173 | static void restore_broken(v) | ^~~~~~~~~~~~~~ store.c: In function 'event_playonrep': store.c:3220:6: warning: old-style function definition [-Wold-style-definition] 3220 | void event_playonrep(s) | ^~~~~~~~~~~~~~~ store.c: In function 'event_sluron': store.c:3241:6: warning: old-style function definition [-Wold-style-definition] 3241 | void event_sluron(t) | ^~~~~~~~~~~~ store.c: In function 'event_sluroff': store.c:3252:6: warning: old-style function definition [-Wold-style-definition] 3252 | void event_sluroff(t) | ^~~~~~~~~~~~~ store.c: In function 'event_lineend': store.c:3283:6: warning: old-style function definition [-Wold-style-definition] 3283 | void event_lineend(ch, n) | ^~~~~~~~~~~~~ store.c: In function 'event_broken': store.c:3291:6: warning: old-style function definition [-Wold-style-definition] 3291 | void event_broken(type, mult) | ^~~~~~~~~~~~ store.c: In function 'event_tuple': store.c:3313:6: warning: old-style function definition [-Wold-style-definition] 3313 | void event_tuple(n, q, r) | ^~~~~~~~~~~ store.c: In function 'lenmul': store.c:3368:13: warning: old-style function definition [-Wold-style-definition] 3368 | static void lenmul(n, a, b) | ^~~~~~ store.c: In function 'event_spacing': store.c:3474:6: warning: old-style function definition [-Wold-style-definition] 3474 | void event_spacing(n, m) | ^~~~~~~~~~~~~ store.c: In function 'event_rest': store.c:3479:6: warning: old-style function definition [-Wold-style-definition] 3479 | void event_rest(decorators,n,m,type) | ^~~~~~~~~~ store.c: In function 'event_mrest': store.c:3527:6: warning: old-style function definition [-Wold-style-definition] 3527 | void event_mrest(n,m,c) | ^~~~~~~~~~~ store.c: In function 'event_finger': store.c:3620:6: warning: old-style function definition [-Wold-style-definition] 3620 | void event_finger(p) | ^~~~~~~~~~~~ store.c: In function 'pitchof': store.c:3627:12: warning: old-style function definition [-Wold-style-definition] 3627 | static int pitchof(note, accidental, mult, octave, propagate_accs) | ^~~~~~~ store.c: In function 'barepitch': store.c:3665:12: warning: old-style function definition [-Wold-style-definition] 3665 | static int barepitch(note, accidental, mult, octave) | ^~~~~~~~~ store.c: In function 'pitchof_b': store.c:3684:12: warning: old-style function definition [-Wold-style-definition] 3684 | static int pitchof_b(note, accidental, mult, octave, propagate_accs,pitchbend) | ^~~~~~~~~ store.c: In function 'doroll': store.c:3867:13: warning: old-style function definition [-Wold-style-definition] 3867 | static void doroll(note, octave, n, m, pitch) | ^~~~~~ store.c: In function 'doroll_setup': store.c:3905:13: warning: old-style function definition [-Wold-style-definition] 3905 | static void doroll_setup(note,octave,n,m,pitch) | ^~~~~~~~~~~~ store.c: In function 'doroll_output': store.c:3942:13: warning: old-style function definition [-Wold-style-definition] 3942 | static void doroll_output(i) | ^~~~~~~~~~~~~ store.c: In function 'dotrill_setup': store.c:4028:13: warning: old-style function definition [-Wold-style-definition] 4028 | static void dotrill_setup(note, octave, n, m, pitch) | ^~~~~~~~~~~~~ store.c: In function 'dotrill_output': store.c:4060:13: warning: old-style function definition [-Wold-style-definition] 4060 | static void dotrill_output(i) | ^~~~~~~~~~~~~~ store.c: In function 'makecut': store.c:4133:6: warning: old-style function definition [-Wold-style-definition] 4133 | void makecut (mainpitch, shortpitch,mainbend,shortbend, n,m) | ^~~~~~~ store.c: In function 'makeharproll': store.c:4144:6: warning: old-style function definition [-Wold-style-definition] 4144 | void makeharproll (pitch, bend,n,m) /* [JS] 2011-04-29 */ | ^~~~~~~~~~~~ store.c: In function 'makeharproll3': store.c:4155:6: warning: old-style function definition [-Wold-style-definition] 4155 | void makeharproll3 (pitch, bend,n,m) /* [JS] 2011-04-29 */ | ^~~~~~~~~~~~~ store.c: In function 'doornament': store.c:4168:13: warning: old-style function definition [-Wold-style-definition] 4168 | static void doornament(note, octave, n, m, pitch) | ^~~~~~~~~~ store.c: In function 'hornp': store.c:4238:13: warning: old-style function definition [-Wold-style-definition] 4238 | static void hornp(num, denom) | ^~~~~ store.c: In function 'event_note': store.c:4259:6: warning: old-style function definition [-Wold-style-definition] 4259 | void event_note(decorators, clef, accidental, mult, note, xoctave, n, m) | ^~~~~~~~~~ store.c: At top level: store.c:4399:6: error: conflicting types for 'event_temperament'; have 'void(char *)' 4399 | void event_temperament(char* line) | ^~~~~~~~~~~~~~~~~ In file included from store.c:207: parseabc.h:174:13: note: previous declaration of 'event_temperament' with type 'void(void)' 174 | extern void event_temperament(); | ^~~~~~~~~~~~~~~~~ store.c: In function 'get_accidental': store.c:4453:7: warning: old-style function definition [-Wold-style-definition] 4453 | char *get_accidental(place, accidental) | ^~~~~~~~~~~~~~ store.c: In function 'event_handle_gchord': store.c:4473:6: warning: old-style function definition [-Wold-style-definition] 4473 | void event_handle_gchord(s) | ^~~~~~~~~~~~~~~~~~~ store.c: In function 'event_handle_instruction': store.c:4565:6: warning: old-style function definition [-Wold-style-definition] 4565 | void event_handle_instruction(s) | ^~~~~~~~~~~~~~~~~~~~~~~~ store.c: In function 'setmap': store.c:4750:13: warning: old-style function definition [-Wold-style-definition] 4750 | static void setmap(sf, map, mult) | ^~~~~~ store.c: In function 'altermap': store.c:4778:13: warning: old-style function definition [-Wold-style-definition] 4778 | static void altermap(v, modmap, modmul,modmic) | ^~~~~~~~ store.c: In function 'copymap': store.c:4798:13: warning: old-style function definition [-Wold-style-definition] 4798 | static void copymap(v) | ^~~~~~~ store.c: In function 'myputc': store.c:4818:5: warning: old-style function definition [-Wold-style-definition] 4818 | int myputc(c) | ^~~~~~ store.c: In function 'nondestructive_readstr': store.c:4833:6: warning: old-style function definition [-Wold-style-definition] 4833 | void nondestructive_readstr(out, in, limit) | ^~~~~~~~~~~~~~~~~~~~~~ store.c: In function 'dotie': store.c:4849:13: warning: old-style function definition [-Wold-style-definition] 4849 | static void dotie(j, xinchord,voiceno) | ^~~~~ store.c: In function 'applygrace': store.c:5114:13: warning: old-style function definition [-Wold-style-definition] 5114 | static void applygrace(place) | ^~~~~~~~~~ store.c: In function 'applygrace_orig': store.c:5126:13: warning: old-style function definition [-Wold-style-definition] 5126 | static void applygrace_orig(place) | ^~~~~~~~~~~~~~~ store.c: In function 'applygrace_new': store.c:5237:13: warning: old-style function definition [-Wold-style-definition] 5237 | static void applygrace_new(place) | ^~~~~~~~~~~~~~ store.c: In function 'event_bar': store.c:5418:6: warning: old-style function definition [-Wold-style-definition] 5418 | void event_bar(type, replist) | ^~~~~~~~~ store.c: In function 'placeendrep': store.c:5474:13: warning: old-style function definition [-Wold-style-definition] 5474 | static void placeendrep(j) | ^~~~~~~~~~~ store.c: In function 'placestartrep': store.c:5496:13: warning: old-style function definition [-Wold-style-definition] 5496 | static void placestartrep(j) | ^~~~~~~~~~~~~ store.c: In function 'apply_bf_stress_factors': store.c:5751:15: error: too many arguments to function 'parse_stress_params'; expected 0, have 1 5751 | if (parse_stress_params (inputfile) == -1) readstressfile (inputfile); | ^~~~~~~~~~~~~~~~~~~ ~~~~~~~~~ store.c:514:5: note: declared here 514 | int parse_stress_params(); | ^~~~~~~~~~~~~~~~~~~ store.c: In function 'event_key': store.c:5926:6: warning: old-style function definition [-Wold-style-definition] 5926 | void event_key(sharps, s, modeindex, modmap, modmul, modmicrotone, gotkey, gotclef, clefname, clef, | ^~~~~~~~~ store.c: In function 'finishfile': store.c:6210:9: error: too many arguments to function 'writetrack'; expected 0, have 1 6210 | writetrack(0); | ^~~~~~~~~~ ~ store.c:506:13: note: declared here 506 | extern long writetrack(); | ^~~~~~~~~~ store.c:6215:16: error: too many arguments to function 'writetrack'; expected 0, have 1 6215 | writetrack(i); | ^~~~~~~~~~ ~ store.c:506:13: note: declared here 506 | extern long writetrack(); | ^~~~~~~~~~ store.c:6222:16: error: too many arguments to function 'writetrack'; expected 0, have 1 6222 | writetrack(i); | ^~~~~~~~~~ ~ store.c:506:13: note: declared here 506 | extern long writetrack(); | ^~~~~~~~~~ store.c:6236:9: error: too many arguments to function 'mfwrite'; expected 0, have 4 6236 | mfwrite(0, 1, division, fp); | ^~~~~~~ ~ midifile.h:35:6: note: declared here 35 | void mfwrite(); | ^~~~~~~ store.c:6238:9: error: too many arguments to function 'mfwrite'; expected 0, have 4 6238 | mfwrite(1, ntracks, division, fp); | ^~~~~~~ ~ midifile.h:35:6: note: declared here 35 | void mfwrite(); | ^~~~~~~ store.c: In function 'event_refno': store.c:6269:6: warning: old-style function definition [-Wold-style-definition] 6269 | void event_refno(n) | ^~~~~~~~~~~ store.c: In function 'main': store.c:6345:5: warning: old-style function definition [-Wold-style-definition] 6345 | int main(argc,argv) | ^~~~ store.c:6365:5: error: too many arguments to function 'parsefile'; expected 0, have 1 6365 | parsefile(filename); | ^~~~~~~~~ ~~~~~~~~ parseabc.h:178:13: note: declared here 178 | extern void parsefile(); | ^~~~~~~~~ make: *** [: store.o] Error 1 gcc -DANSILIBS -O2 -g -pipe -Wformat -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -m64 -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection=full -O2 -DHAVE_CONFIG_H -I. -c -o position.o position.c position.c: In function 'addfract': position.c:43:13: warning: old-style function definition [-Wold-style-definition] 43 | static void addfract(f, n, m) | ^~~~~~~~ position.c: In function 'mulfract': position.c:54:13: warning: old-style function definition [-Wold-style-definition] 54 | static void mulfract(f, n, m) | ^~~~~~~~ gcc -DANSILIBS -O2 -g -pipe -Wformat -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -m64 -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection=full -O2 -DHAVE_CONFIG_H -I. -c -o stresspat.o stresspat.c gcc -DANSILIBS -O2 -g -pipe -Wformat -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -m64 -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection=full -O2 -DHAVE_CONFIG_H -I. -c -o pslib.o pslib.c pslib.c: In function 'ps_header': pslib.c:53:13: warning: old-style function definition [-Wold-style-definition] 53 | static void ps_header(f, filename, boundingbox) | ^~~~~~~~~ pslib.c: In function 'section1': pslib.c:104:13: warning: old-style function definition [-Wold-style-definition] 104 | static void section1(f) | ^~~~~~~~ pslib.c: In function 'section2': pslib.c:188:13: warning: old-style function definition [-Wold-style-definition] 188 | static void section2(f) | ^~~~~~~~ pslib.c: In function 'section3': pslib.c:289:13: warning: old-style function definition [-Wold-style-definition] 289 | static void section3(f) | ^~~~~~~~ pslib.c: In function 'section4': pslib.c:404:13: warning: old-style function definition [-Wold-style-definition] 404 | static void section4(f) | ^~~~~~~~ pslib.c: In function 'section5': pslib.c:491:13: warning: old-style function definition [-Wold-style-definition] 491 | static void section5(f) | ^~~~~~~~ pslib.c: In function 'section6': pslib.c:508:13: warning: old-style function definition [-Wold-style-definition] 508 | static void section6(f) | ^~~~~~~~ pslib.c: In function 'section7': pslib.c:579:13: warning: old-style function definition [-Wold-style-definition] 579 | static void section7(f) | ^~~~~~~~ pslib.c: In function 'section8': pslib.c:698:13: warning: old-style function definition [-Wold-style-definition] 698 | static void section8(f) | ^~~~~~~~ pslib.c: In function 'section9': pslib.c:709:13: warning: old-style function definition [-Wold-style-definition] 709 | static void section9(f) | ^~~~~~~~ pslib.c: In function 'section10': pslib.c:790:13: warning: old-style function definition [-Wold-style-definition] 790 | static void section10(f) | ^~~~~~~~~ pslib.c: In function 'section11': pslib.c:852:13: warning: old-style function definition [-Wold-style-definition] 852 | static void section11(f) | ^~~~~~~~~ pslib.c: In function 'section12': pslib.c:927:13: warning: old-style function definition [-Wold-style-definition] 927 | static void section12(f) | ^~~~~~~~~ pslib.c: In function 'section13': pslib.c:963:13: warning: old-style function definition [-Wold-style-definition] 963 | static void section13(f) | ^~~~~~~~~ pslib.c: In function 'printlib': pslib.c:1062:6: warning: old-style function definition [-Wold-style-definition] 1062 | void printlib(f, filename, boundingbox) | ^~~~~~~~ error: Bad exit status from /home/pterjan/rpmbuild/tmp/rpm-tmp.27lupl (%build) RPM build errors: Bad exit status from /home/pterjan/rpmbuild/tmp/rpm-tmp.27lupl (%build) I: [iurt_root_command] ERROR: chroot