Closed ludo77 closed 1 year ago
I also get this error, the compiler seems to well, compile just fine. However, trying to use said compiler gives me a segfault... (Well, just running it gives me the help text, but trying to give it something to compile segfaults it...)
The code relied on calling object methods through a null pointer. That is weird, and it turns out it's also undefined behavior. I couldn't reproduce this before, but now I seem to have a recent enough compiler to also get this error.
Should be fixed now, along with another fix for the pimpmobile converter that prevented MODs from being converted.
Sorry this took so long.
I change my OS : ubuntu 18.4 i install devkitpro : sudo dkp-pacman -S gba-dev if I do: DEVKITPRO=/home/name/devkitpro make linux runtime.gba runpimp.gba if test uname -s = Linux ; then make _all PLATFORM=linux ; fi make[1] : on entre dans le répertoire « /home/name/Bureau/dragonbasic-master » g++ -c -g -DDB_VERSION=""2.0"" -DAPPDIR=""/home/name/Bureau/dragonbasic-master"" -Wall -O2 -DBUG_FOR_BUG DBC.cpp -o DBC.o.linux DBC.cpp: In function ‘void GLB_runProgramWithArgs(const char, const char, const char, const char, bool)’: DBC.cpp:326:8: warning: ignoring return value of ‘char getcwd(char, size_t)’, declared with attribute warn_unused_result [-Wunused-result] getcwd(buf, 256); ^ DBC.cpp: In function ‘void GLB_pushDir(const char)’: DBC.cpp:339:8: warning: ignoring return value of ‘char getcwd(char, size_t)’, declared with attribute warn_unused_result [-Wunused-result] getcwd(dir_buf, 256); ^ DBC.cpp: In member function ‘Subroutine Subroutine::findByIdent(const char)’: DBC.cpp:87:2: warning: nonnull argument ‘this’ compared to NULL [-Wnonnull-compare] if (!this) ^~ DBC.cpp: In member function ‘void Compiler::doRvalArray(BasicObject)’: DBC.cpp:1574:6: warning: ‘[]’ directive writing 2 bytes into a region of size between 1 and 256 [-Wformat-overflow=] void Compiler::doRvalArray(BasicObject bobj) ^
~~~ In file included from /usr/include/stdio.h:862:0, from DBC.h:30, from DBC.cpp:38: /usr/include/x86_64-linux-gnu/bits/stdio2.h:34:43: note: ‘builtin___sprintf_chk’ output between 3 and 258 bytes into a destination of size 256 bos (s), fmt, va_arg_pack ()); ^ g++ -o dbc DBC.o.linux make -C ./pimpmobile_r1 lib/libpimpmobile.a make[2] : on entre dans le répertoire « /home/name/Bureau/dragonbasic-master/pimpmobile_r1 » /home/name/devkitpro/devkitARM/bin/arm-none-eabi-gcc -I/home/name/devkitpro/devkitARM/include -I/home/name/devkitpro/libgba/include -DRELEASE -DNDEBUG -mthumb-interwork -mlong-calls -O3 -fomit-frame-pointer -mthumb -c src/pimp_gba.c -o src/pimp_gba.o -MMD -MP -MF src/pimp_gba.d In file included from src/pimp_module.h:9, from src/pimp_mod_context.h:10, from src/pimp_render.h:10, from src/pimp_gba.c:9: src/pimp_instrument.h: In function 'get_sample': src/pimp_instrument.h:45:33: warning: passing argument 1 of 'get_ptr' from incompatible pointer type [-Wincompatible-pointer-types] return &((pimp_sample)get_ptr(&instr->sample_ptr))[i]; ^~~~~~ In file included from src/pimp_render.h:9, from src/pimp_gba.c:9: src/pimp_internal.h:12:49: note: expected 'const unsigned int ' but argument is of type 'const u32 ' {aka 'const long unsigned int '} static INLINE void get_ptr(const unsigned int offset) ^ In file included from src/pimp_module.h:9, from src/pimp_mod_context.h:10, from src/pimp_render.h:10, from src/pimp_gba.c:9: src/pimp_instrument.h: In function 'get_vol_env': src/pimp_instrument.h:51:67: warning: passing argument 1 of 'get_ptr' from incompatible pointer type [-Wincompatible-pointer-types] return (pimp_envelope)(instr->vol_env_ptr == 0 ? NULL : get_ptr(&instr->vol_env_ptr)); ^~~~~~~ In file included from src/pimp_render.h:9, from src/pimp_gba.c:9: src/pimp_internal.h:12:49: note: expected 'const unsigned int ' but argument is of type 'const u32 ' {aka 'const long unsigned int '} static INLINE void get_ptr(const unsigned int offset) ^ In file included from src/pimp_mod_context.h:10, from src/pimp_render.h:10, from src/pimp_gba.c:9: src/pimp_module.h: In function 'get_pattern_data': src/pimp_module.h:59:38: warning: passing argument 1 of 'get_ptr' from incompatible pointer type [-Wincompatible-pointer-types] return (pimp_pattern_entry)get_ptr(&pat->data_ptr); ^~~~~~ In file included from src/pimp_render.h:9, from src/pimp_gba.c:9: src/pimp_internal.h:12:49: note: expected 'const unsigned int ' but argument is of type 'const u32 ' {aka 'const long unsigned int '} static INLINE void get_ptr(const unsigned int offset) ^ In file included from src/pimp_mod_context.h:10, from src/pimp_render.h:10, from src/pimp_gba.c:9: src/pimp_module.h: In function 'pimp_module_get_order': src/pimp_module.h:65:25: warning: passing argument 1 of 'get_ptr' from incompatible pointer type [-Wincompatible-pointer-types] return ((char)get_ptr(&mod->order_ptr))[i]; ^~~~~~~ In file included from src/pimp_render.h:9, from src/pimp_gba.c:9: src/pimp_internal.h:12:49: note: expected 'const unsigned int ' but argument is of type 'const u32 ' {aka 'const long unsigned int '} static INLINE void get_ptr(const unsigned int offset) ^ In file included from src/pimp_mod_context.h:10, from src/pimp_render.h:10, from src/pimp_gba.c:9: src/pimp_module.h: In function 'pimp_module_get_pattern': src/pimp_module.h:71:34: warning: passing argument 1 of 'get_ptr' from incompatible pointer type [-Wincompatible-pointer-types] return &((pimp_pattern)get_ptr(&mod->pattern_ptr))[i]; ^~~~~ In file included from src/pimp_render.h:9, from src/pimp_gba.c:9: src/pimp_internal.h:12:49: note: expected 'const unsigned int ' but argument is of type 'const u32 ' {aka 'const long unsigned int '} static INLINE void get_ptr(const unsigned int offset) ^ In file included from src/pimp_mod_context.h:10, from src/pimp_render.h:10, from src/pimp_gba.c:9: src/pimp_module.h: In function 'pimp_module_get_channel': src/pimp_module.h:77:34: warning: passing argument 1 of 'get_ptr' from incompatible pointer type [-Wincompatible-pointer-types] return &((pimp_channel)get_ptr(&mod->channel_ptr))[i]; ^~~~~ In file included from src/pimp_render.h:9, from src/pimp_gba.c:9: src/pimp_internal.h:12:49: note: expected 'const unsigned int ' but argument is of type 'const u32 ' {aka 'const long unsigned int '} static INLINE void get_ptr(const unsigned int offset) ^ In file included from src/pimp_mod_context.h:10, from src/pimp_render.h:10, from src/pimp_gba.c:9: src/pimp_module.h: In function 'pimp_module_get_instrument': src/pimp_module.h:83:37: warning: passing argument 1 of 'get_ptr' from incompatible pointer type [-Wincompatible-pointer-types] return &((pimp_instrument)get_ptr(&mod->instrument_ptr))[i]; ^~~~~~~~ In file included from src/pimp_render.h:9, from src/pimp_gba.c:9: src/pimp_internal.h:12:49: note: expected 'const unsigned int ' but argument is of type 'const u32 ' {aka 'const long unsigned int '} static INLINE void get_ptr(const unsigned int offset) ^ src/pimp_gba.c: At top level: src/pimp_gba.c:27:1: warning: variably modified 'pimp_sound_buffers' at file scope static s8 pimp_sound_buffers[2][SOUND_BUFFER_SIZE] IWRAM_DATA; ^~src/pimp_gba.c:29:1: warning: variably modified 'pimp_mix_buffer' at file scope s32 pimp_mix_buffer[SOUND_BUFFER_SIZE] IWRAM_DATA; ^~~ /home/name/devkitpro/devkitARM/bin/arm-none-eabi-gcc -I/home/name/devkitpro/devkitARM/include -I/home/name/devkitpro/libgba/include -DRELEASE -DNDEBUG -mthumb-interwork -mlong-calls -O3 -fomit-frame-pointer -mthumb -c src/pimp_render.c -o src/pimp_render.o -MMD -MP -MF src/pimp_render.d /home/name/devkitpro/devkitARM/bin/arm-none-eabi-gcc -I/home/name/devkitpro/devkitARM/include -I/home/name/devkitpro/libgba/include -DRELEASE -DNDEBUG -mthumb-interwork -mlong-calls -O3 -fomit-frame-pointer -mthumb -c src/pimp_envelope.c -o src/pimp_envelope.o -MMD -MP -MF src/pimp_envelope.d /home/name/devkitpro/devkitARM/bin/arm-none-eabi-gcc -I/home/name/devkitpro/devkitARM/include -I/home/name/devkitpro/libgba/include -DRELEASE -DNDEBUG -mthumb-interwork -mlong-calls -O3 -fomit-frame-pointer -mthumb -c src/pimp_debug.c -o src/pimp_debug.o -MMD -MP -MF src/pimp_debug.d /home/name/devkitpro/devkitARM/bin/arm-none-eabi-gcc -I/home/name/devkitpro/devkitARM/include -I/home/name/devkitpro/libgba/include -DRELEASE -DNDEBUG -mthumb-interwork -mlong-calls -O3 -fomit-frame-pointer -mthumb -c src/pimp_mod_context.c -o src/pimp_mod_context.o -MMD -MP -MF src/pimp_mod_context.d /home/name/devkitpro/devkitARM/bin/arm-none-eabi-gcc -I/home/name/devkitpro/devkitARM/include -I/home/name/devkitpro/libgba/include -DRELEASE -DNDEBUG -mthumb-interwork -mlong-calls -O3 -fomit-frame-pointer -marm -c src/pimp_math.c -o src/pimp_math.iwram.o -MMD -MP -MF src/pimp_math.iwram.d /home/name/devkitpro/devkitARM/bin/arm-none-eabi-gcc -I/home/name/devkitpro/devkitARM/include -I/home/name/devkitpro/libgba/include -DRELEASE -DNDEBUG -mthumb-interwork -mlong-calls -O3 -fomit-frame-pointer -marm -c src/pimp_mixer.c -o src/pimp_mixer.iwram.o -MMD -MP -MF src/pimp_mixer.iwram.d /home/name/devkitpro/devkitARM/bin/arm-none-eabi-gcc -mthumb-interwork -I/home/name/devkitpro/devkitARM/include -I/home/name/devkitpro/libgba/include -DRELEASE -DNDEBUG -c -o src/pimp_mixer_arm.o src/pimp_mixer_arm.S /home/name/devkitpro/devkitARM/bin/arm-none-eabi-gcc -mthumb-interwork -I/home/name/devkitpro/devkitARM/include -I/home/name/devkitpro/libgba/include -DRELEASE -DNDEBUG -c -o src/pimp_mixer_clip_arm.o src/pimp_mixer_clip_arm.S src/pimp_mixer_clip_arm.S: Assembler messages: src/pimp_mixer_clip_arm.S:156: s suffix on comparison instruction is deprecated src/pimp_mixer_clip_arm.S:158: s suffix on comparison instruction is deprecated src/pimp_mixer_clip_arm.S:165: s suffix on comparison instruction is deprecated src/pimp_mixer_clip_arm.S:167: s suffix on comparison instruction is deprecated src/pimp_mixer_clip_arm.S:174: s suffix on comparison instruction is deprecated src/pimp_mixer_clip_arm.S:176: s suffix on comparison instruction is deprecated src/pimp_mixer_clip_arm.S:189: s suffix on comparison instruction is deprecated src/pimp_mixer_clip_arm.S:191: s suffix on comparison instruction is deprecated src/pimp_mixer_clip_arm.S:196: s suffix on comparison instruction is deprecated src/pimp_mixer_clip_arm.S:198: s suffix on comparison instruction is deprecated src/pimp_mixer_clip_arm.S:203: s suffix on comparison instruction is deprecated src/pimp_mixer_clip_arm.S:205: s suffix on comparison instruction is deprecated src/pimp_mixer_clip_arm.S:210: s suffix on comparison instruction is deprecated src/pimp_mixer_clip_arm.S:212: s suffix on comparison instruction is deprecated /home/name/devkitpro/devkitARM/bin/arm-none-eabi-ar rv lib/libpimpmobile.a src/pimp_gba.o src/pimp_render.o src/pimp_envelope.o src/pimp_debug.o src/pimp_mod_context.o src/pimp_math.iwram.o src/pimp_mixer.iwram.o src/pimp_mixer_arm.o src/pimp_mixer_clip_arm.o /home/name/devkitpro/devkitARM/bin/arm-none-eabi-ar: creating lib/libpimpmobile.a a - src/pimp_gba.o a - src/pimp_render.o a - src/pimp_envelope.o a - src/pimp_debug.o a - src/pimp_mod_context.o a - src/pimp_math.iwram.o a - src/pimp_mixer.iwram.o a - src/pimp_mixer_arm.o a - src/pimp_mixer_clip_arm.o make[2] : on quitte le répertoire « /home/name/Bureau/dragonbasic-master/pimpmobile_r1 » /home/name/devkitpro/devkitARM/bin/arm-none-eabi-gcc -Iruntime -nostdlib -I/home/name/devkitpro/libgba/include -I./pimpmobile_r1/include -marm -T runtime/gba_cart.ld runtime/gba_crt0.s /home/name/devkitpro/devkitARM/lib/gcc/arm-none-eabi/8.1.0/crti.o /home/name/devkitpro/devkitARM/lib/gcc/arm-none-eabi/8.1.0/crtbegin.o runtime/runpimp.c ./pimpmobile_r1/lib/libpimpmobile.a -L /home/name/devkitpro/libgba/lib -lgcc -lsysbase -lc -lgba /home/name/devkitpro/devkitARM/lib/gcc/arm-none-eabi/8.1.0/crtend.o /home/name/devkitpro/devkitARM/lib/gcc/arm-none-eabi/8.1.0/crtn.o -o runpimp.elf ./extract_syms.sh runpimp.elf >runtime_syms.h g++ -c -g -DDB_VERSION=""2.0"" -DAPPDIR=""/home/name/Bureau/dragonbasic-master"" -Wall -O2 -DBUG_FOR_BUG MF.cpp -o MF.o.linux MF.cpp: In member function ‘void Output::fixCartHeader()’: MF.cpp:465:7: warning: ignoring return value of ‘size_t fread(void, size_t, size_t, FILE)’, declared with attribute warn_unused_result [-Wunused-result] fread(bytes, 1, 0x1c, fp); ^ MF.cpp: In member function ‘void Output::emitPalette(const char)’: MF.cpp:681:8: warning: ignoring return value of ‘size_t fread(void, size_t, size_t, FILE)’, declared with attribute warn_unused_result [-Wunused-result] fread(hdr, 1, 0x18, fp); ^ MF.cpp:691:10: warning: ignoring return value of ‘size_t fread(void, size_t, size_t, FILE)’, declared with attribute warn_unused_result [-Wunused-result] fread(pp_rgba, 1, 4, fp); ^ MF.cpp: In member function ‘void Output::reloc8(Literal)’: MF.cpp:840:7: warning: ignoring return value of ‘size_t fread(void, size_t, size_t, FILE)’, declared with attribute warn_unused_result [-Wunused-result] fread(&insn, 1, 2, fp); ^ MF.cpp: In member function ‘void Output::reloc12(Literal)’: MF.cpp:871:7: warning: ignoring return value of ‘size_t fread(void, size_t, size_t, FILE)’, declared with attribute warn_unused_result [-Wunused-result] fread(&insn, 1, 4, fp); ^ MF.cpp: In member function ‘void Output::reloc24(unsigned int, unsigned int)’: MF.cpp:896:7: warning: ignoring return value of ‘size_t fread(void, size_t, size_t, FILE)’, declared with attribute warn_unused_result [-Wunused-result] fread(&insn, 1, 4, fp); ^ MF.cpp: In member function ‘void Output::reloc10(unsigned int, unsigned int)’: MF.cpp:916:7: warning: ignoring return value of ‘size_t fread(void, size_t, size_t, FILE)’, declared with attribute warn_unused_result [-Wunused-result] fread(&insn, 1, 2, fp); ^ MF.cpp: In member function ‘void Output::reloc8(unsigned int, unsigned int)’: MF.cpp:938:7: warning: ignoring return value of ‘size_t fread(void, size_t, size_t, FILE)’, declared with attribute warn_unused_result [-Wunused-result] fread(&insn, 1, 2, fp); ^ MF.cpp: In member function ‘void Literal::code(Output)’: MF.cpp:175:6: warning: ‘%04X’ directive writing between 4 and 8 bytes into a region of size 5 [-Wformat-overflow=] void Literal::code(Output out) ^~~ MF.cpp:175:6: note: directive argument in the range [1, 4294967295] In file included from /usr/include/stdio.h:862:0, from MF.cpp:26: /usr/include/x86_64-linux-gnu/bits/stdio2.h:34:43: note: ‘_builtinsprintf_chk’ output between 10 and 14 bytes into a destination of size 10 bos (s), fmt, va_arg_pack ()); ^ MF.cpp: In member function ‘void Parser::parseAll()’: MF.cpp:2599:10: warning: ‘iwsym’ may be used uninitialized in this function [-Wmaybe-uninitialized] Symbol iwsym; ^~~~~ g++ -c -g -DDB_VERSION=""2.0"" -DAPPDIR=""/home/name/Bureau/dragonbasic-master"" -Wall -O2 -DBUG_FOR_BUG MF_mappy.cpp -o MF_mappy.o.linux MF_mappy.cpp: In function ‘int Decode(const char, Output)’: MF_mappy.cpp:276:8: warning: ignoring return value of ‘size_t fread(void, size_t, size_t, FILE)’, declared with attribute warn_unused_result [-Wunused-result] fread(block,tagLen,1,f); ^ g++ -o mf MF.o.linux MF_mappy.o.linux -lsndfile -lfreeimage make -C ./pimpmobile_r1/converter TARGET=converter CXX=g++ LD=g++ make[2] : on entre dans le répertoire « /home/name/Bureau/dragonbasic-master/pimpmobile_r1/converter » g++ -DRELEASE -DNDEBUG -O3 -fomit-frame-pointer -c converter.cpp -o converter.o.linux -MMD -MP -MF converter.d g++ -DRELEASE -DNDEBUG -O3 -fomit-frame-pointer -c converter_xm.cpp -o converter_xm.o.linux -MMD -MP -MF converter_xm.d converter_xm.cpp: In function ‘module_t load_module_xm(FILE)’: converter_xm.cpp:81:7: warning: ignoring return value of ‘size_t fread(void, size_t, size_t, FILE)’, declared with attribute warn_unused_result [-Wunused-result] fread(temp, 17, 1, fp); ^ converter_xm.cpp:86:7: warning: ignoring return value of ‘size_t fread(void, size_t, size_t, FILE)’, declared with attribute warn_unused_result [-Wunused-result] fread(name, 20, 1, fp); ^ converter_xm.cpp:92:7: warning: ignoring return value of ‘size_t fread(void, size_t, size_t, FILE)’, declared with attribute warn_unused_result [-Wunused-result] fread(&magic, 1, 1, fp); ^ converter_xm.cpp:97:7: warning: ignoring return value of ‘size_t fread(void, size_t, size_t, FILE)’, declared with attribute warn_unused_result [-Wunused-result] fread(tracker_name, 20, 1, fp); ^ converter_xm.cpp:102:7: warning: ignoring return value of ‘size_t fread(void, size_t, size_t, FILE)’, declared with attribute warn_unused_result [-Wunused-result] fread(&version, 2, 1, fp); ^ converter_xm.cpp:124:7: warning: ignoring return value of ‘size_t fread(void, size_t, size_t, FILE)’, declared with attribute warn_unused_result [-Wunused-result] fread(&xm_header.header_size, 4, 1, fp); ^ converter_xm.cpp:125:7: warning: ignoring return value of ‘size_t fread(void, size_t, size_t, FILE)’, declared with attribute warn_unused_result [-Wunused-result] fread(&xm_header.len, 2, 1, fp); ^ converter_xm.cpp:126:7: warning: ignoring return value of ‘size_t fread(void, size_t, size_t, FILE)’, declared with attribute warn_unused_result [-Wunused-result] fread(&xm_header.restart_pos, 2, 1, fp); ^ converter_xm.cpp:127:7: warning: ignoring return value of ‘size_t fread(void, size_t, size_t, FILE)’, declared with attribute warn_unused_result [-Wunused-result] fread(&xm_header.channels, 2, 1, fp); ^ converter_xm.cpp:128:7: warning: ignoring return value of ‘size_t fread(void, size_t, size_t, FILE)’, declared with attribute warn_unused_result [-Wunused-result] fread(&xm_header.patterns, 2, 1, fp); ^ converter_xm.cpp:129:7: warning: ignoring return value of ‘size_t fread(void, size_t, size_t, FILE)’, declared with attribute warn_unused_result [-Wunused-result] fread(&xm_header.instruments, 2, 1, fp); ^ converter_xm.cpp:130:7: warning: ignoring return value of ‘size_t fread(void, size_t, size_t, FILE)’, declared with attribute warn_unused_result [-Wunused-result] fread(&xm_header.flags, 2, 1, fp); ^ converter_xm.cpp:131:7: warning: ignoring return value of ‘size_t fread(void, size_t, size_t, FILE)’, declared with attribute warn_unused_result [-Wunused-result] fread(&xm_header.tempo, 2, 1, fp); ^ converter_xm.cpp:132:8: warning: ignoring return value of ‘size_t fread(void, size_t, size_t, FILE)’, declared with attribute warn_unused_result [-Wunused-result] fread(&xm_header.bpm, 2, 1, fp); ^ converter_xm.cpp:190:7: warning: ignoring return value of ‘size_t fread(void, size_t, size_t, FILE)’, declared with attribute warn_unused_result [-Wunused-result] fread(&mod->order[0], sizeof(u8), xm_header.len, fp); ^ converter_xm.cpp:217:8: warning: ignoring return value of ‘size_t fread(void, size_t, size_t, FILE)’, declared with attribute warn_unused_result [-Wunused-result] fread(&pattern_header.header_size, 4, 1, fp); ^ converter_xm.cpp:218:8: warning: ignoring return value of ‘size_t fread(void, size_t, size_t, FILE)’, declared with attribute warn_unused_result [-Wunused-result] fread(&pattern_header.packing_type, 1, 1, fp); ^ converter_xm.cpp:219:8: warning: ignoring return value of ‘size_t fread(void, size_t, size_t, FILE)’, declared with attribute warn_unused_result [-Wunused-result] fread(&pattern_header.rows, 2, 1, fp); ^ converter_xm.cpp:220:8: warning: ignoring return value of ‘size_t fread(void, size_t, size_t, FILE)’, declared with attribute warn_unused_result [-Wunused-result] fread(&pattern_header.data_size, 2, 1, fp); ^ converter_xm.cpp:269:11: warning: ignoring return value of ‘size_t fread(void, size_t, size_t, FILE)’, declared with attribute warn_unused_result [-Wunused-result] fread(¬e, 1, 1, fp); ^ converter_xm.cpp:280:32: warning: ignoring return value of ‘size_t fread(void, size_t, size_t, FILE)’, declared with attribute warn_unused_result [-Wunused-result] if (pack & (1 << 0)) fread(¬e, 1, 1, fp); ^ converter_xm.cpp:281:32: warning: ignoring return value of ‘size_t fread(void, size_t, size_t, FILE)’, declared with attribute warn_unused_result [-Wunused-result] if (pack & (1 << 1)) fread(&instr, 1, 1, fp); ^ converter_xm.cpp:282:32: warning: ignoring return value of ‘size_t fread(void, size_t, size_t, FILE)’, declared with attribute warn_unused_result [-Wunused-result] if (pack & (1 << 2)) fread(&vol, 1, 1, fp); ^ converter_xm.cpp:283:32: warning: ignoring return value of ‘size_t fread(void, size_t, size_t, FILE)’, declared with attribute warn_unused_result [-Wunused-result] if (pack & (1 << 3)) fread(&eff, 1, 1, fp); ^ converter_xm.cpp:284:32: warning: ignoring return value of ‘size_t fread(void, size_t, size_t, FILE)’, declared with attribute warn_unused_result [-Wunused-result] if (pack & (1 << 4)) fread(&eff_param, 1, 1, fp); ^ converter_xm.cpp:337:8: warning: ignoring return value of ‘size_t fread(void, size_t, size_t, FILE)’, declared with attribute warn_unused_result [-Wunused-result] fread(&ih.header_size, 4, 1, fp); ^ converter_xm.cpp:338:8: warning: ignoring return value of ‘size_t fread(void, size_t, size_t, FILE)’, declared with attribute warn_unused_result [-Wunused-result] fread(&ih.name, 1, 22, fp); ^ converter_xm.cpp:339:8: warning: ignoring return value of ‘size_t fread(void, size_t, size_t, FILE)’, declared with attribute warn_unused_result [-Wunused-result] fread(&ih.type, 1, 1, fp); ^ converter_xm.cpp:340:8: warning: ignoring return value of ‘size_t fread(void, size_t, size_t, FILE)’, declared with attribute warn_unused_result [-Wunused-result] fread(&ih.samples, 2, 1, fp); ^ converter_xm.cpp:347:9: warning: ignoring return value of ‘size_t fread(void, size_t, size_t, FILE)’, declared with attribute warn_unused_result [-Wunused-result] fread(&ih.sample_header_size, 4, 1, fp); ^ converter_xm.cpp:348:9: warning: ignoring return value of ‘size_t fread(void, size_t, size_t, FILE)’, declared with attribute warn_unused_result [-Wunused-result] fread(&ih.sample_number, 1, 96, fp); ^ converter_xm.cpp:349:9: warning: ignoring return value of ‘size_t fread(void, size_t, size_t, FILE)’, declared with attribute warn_unused_result [-Wunused-result] fread(&ih.vol_env, 2, 24, fp); ^ converter_xm.cpp:350:9: warning: ignoring return value of ‘size_t fread(void, size_t, size_t, FILE)’, declared with attribute warn_unused_result [-Wunused-result] fread(&ih.pan_env, 2, 24, fp); ^ converter_xm.cpp:351:9: warning: ignoring return value of ‘size_t fread(void, size_t, size_t, FILE)’, declared with attribute warn_unused_result [-Wunused-result] fread(&ih.vol_env_points, 1, 1, fp); ^ converter_xm.cpp:352:9: warning: ignoring return value of ‘size_t fread(void, size_t, size_t, FILE)’, declared with attribute warn_unused_result [-Wunused-result] fread(&ih.pan_env_points, 1, 1, fp); ^ converter_xm.cpp:353:9: warning: ignoring return value of ‘size_t fread(void, size_t, size_t, FILE)’, declared with attribute warn_unused_result [-Wunused-result] fread(&ih.vol_sustain, 1, 1, fp); ^ converter_xm.cpp:354:9: warning: ignoring return value of ‘size_t fread(void, size_t, size_t, FILE)’, declared with attribute warn_unused_result [-Wunused-result] fread(&ih.vol_loop_start, 1, 1, fp); ^ converter_xm.cpp:355:9: warning: ignoring return value of ‘size_t fread(void, size_t, size_t, FILE)’, declared with attribute warn_unused_result [-Wunused-result] fread(&ih.vol_loop_end, 1, 1, fp); ^ converter_xm.cpp:356:9: warning: ignoring return value of ‘size_t fread(void, size_t, size_t, FILE)’, declared with attribute warn_unused_result [-Wunused-result] fread(&ih.pan_sustain, 1, 1, fp); ^ converter_xm.cpp:357:9: warning: ignoring return value of ‘size_t fread(void, size_t, size_t, FILE)’, declared with attribute warn_unused_result [-Wunused-result] fread(&ih.pan_loop_start, 1, 1, fp); ^ converter_xm.cpp:358:9: warning: ignoring return value of ‘size_t fread(void, size_t, size_t, FILE)’, declared with attribute warn_unused_result [-Wunused-result] fread(&ih.pan_loop_end, 1, 1, fp); ^ converter_xm.cpp:359:9: warning: ignoring return value of ‘size_t fread(void, size_t, size_t, FILE)’, declared with attribute warn_unused_result [-Wunused-result] fread(&ih.vol_type, 1, 1, fp); ^ converter_xm.cpp:360:9: warning: ignoring return value of ‘size_t fread(void, size_t, size_t, FILE)’, declared with attribute warn_unused_result [-Wunused-result] fread(&ih.pan_type, 1, 1, fp); ^ converter_xm.cpp:361:9: warning: ignoring return value of ‘size_t fread(void, size_t, size_t, FILE)’, declared with attribute warn_unused_result [-Wunused-result] fread(&ih.vibrato_type, 1, 1, fp); ^ converter_xm.cpp:362:9: warning: ignoring return value of ‘size_t fread(void, size_t, size_t, FILE)’, declared with attribute warn_unused_result [-Wunused-result] fread(&ih.vibrato_sweep, 1, 1, fp); ^ converter_xm.cpp:363:9: warning: ignoring return value of ‘size_t fread(void, size_t, size_t, FILE)’, declared with attribute warn_unused_result [-Wunused-result] fread(&ih.vibrato_depth, 1, 1, fp); ^ converter_xm.cpp:364:9: warning: ignoring return value of ‘size_t fread(void, size_t, size_t, FILE)’, declared with attribute warn_unused_result [-Wunused-result] fread(&ih.vibrato_rate, 1, 1, fp); ^ converter_xm.cpp:365:9: warning: ignoring return value of ‘size_t fread(void, size_t, size_t, FILE)’, declared with attribute warn_unused_result [-Wunused-result] fread(&ih.volume_fadeout, 2, 1, fp); ^ converter_xm.cpp:466:9: warning: ignoring return value of ‘size_t fread(void, size_t, size_t, FILE)’, declared with attribute warn_unused_result [-Wunused-result] fread(&sh.length, 4, 1, fp); ^ converter_xm.cpp:467:9: warning: ignoring return value of ‘size_t fread(void, size_t, size_t, FILE)’, declared with attribute warn_unused_result [-Wunused-result] fread(&sh.loop_start, 4, 1, fp); ^ converter_xm.cpp:468:9: warning: ignoring return value of ‘size_t fread(void, size_t, size_t, FILE)’, declared with attribute warn_unused_result [-Wunused-result] fread(&sh.loop_length, 4, 1, fp); ^ converter_xm.cpp:469:9: warning: ignoring return value of ‘size_t fread(void, size_t, size_t, FILE)’, declared with attribute warn_unused_result [-Wunused-result] fread(&sh.volume, 1, 1, fp); ^ converter_xm.cpp:470:9: warning: ignoring return value of ‘size_t fread(void, size_t, size_t, FILE)’, declared with attribute warn_unused_result [-Wunused-result] fread(&sh.fine_tune, 1, 1, fp); ^ converter_xm.cpp:471:9: warning: ignoring return value of ‘size_t fread(void, size_t, size_t, FILE)’, declared with attribute warn_unused_result [-Wunused-result] fread(&sh.type, 1, 1, fp); ^ converter_xm.cpp:472:9: warning: ignoring return value of ‘size_t fread(void, size_t, size_t, FILE)’, declared with attribute warn_unused_result [-Wunused-result] fread(&sh.pan, 1, 1, fp); ^ converter_xm.cpp:473:9: warning: ignoring return value of ‘size_t fread(void, size_t, size_t, FILE)’, declared with attribute warn_unused_result [-Wunused-result] fread(&sh.rel_note, 1, 1, fp); ^ converter_xm.cpp:475:9: warning: ignoring return value of ‘size_t fread(void, size_t, size_t, FILE)’, declared with attribute warn_unused_result [-Wunused-result] fread(&sh.name, 1, 22, fp); ^ converter_xm.cpp:570:11: warning: ignoring return value of ‘size_t fread(void, size_t, size_t, FILE)’, declared with attribute warn_unused_result [-Wunused-result] fread(&data, 1, 2, fp); ^ converter_xm.cpp:581:11: warning: ignoring return value of ‘size_t fread(void, size_t, size_t, FILE)’, declared with attribute warn_unused_result [-Wunused-result] fread(&data, 1, 1, fp); ^ g++ -DRELEASE -DNDEBUG -O3 -fomit-frame-pointer -c converter_s3m.cpp -o converter_s3m.o.linux -MMD -MP -MF converter_s3m.d converter_s3m.cpp: In function ‘module_t load_module_s3m(FILE)’: converter_s3m.cpp:19:7: warning: ignoring return value of ‘size_t fread(void, size_t, size_t, FILE)’, declared with attribute warn_unused_result [-Wunused-result] fread(sig, 1, 4, fp); ^ converter_s3m.cpp:25:7: warning: ignoring return value of ‘size_t fread(void, size_t, size_t, FILE)’, declared with attribute warn_unused_result [-Wunused-result] fread(&sig2, 1, 1, fp); ^ converter_s3m.cpp:30:7: warning: ignoring return value of ‘size_t fread(void, size_t, size_t, FILE)’, declared with attribute warn_unused_result [-Wunused-result] fread(&type, 1, 1, fp); ^ converter_s3m.cpp:65:7: warning: ignoring return value of ‘size_t fread(void, size_t, size_t, FILE)’, declared with attribute warn_unused_result [-Wunused-result] fread(&name, 1, 28, fp); ^ converter_s3m.cpp:73:7: warning: ignoring return value of ‘size_t fread(void, size_t, size_t, FILE)’, declared with attribute warn_unused_result [-Wunused-result] fread(&ordnum, 1, 2, fp); ^ converter_s3m.cpp:74:7: warning: ignoring return value of ‘size_t fread(void, size_t, size_t, FILE)’, declared with attribute warn_unused_result [-Wunused-result] fread(&insnum, 1, 2, fp); ^ converter_s3m.cpp:75:7: warning: ignoring return value of ‘size_t fread(void, size_t, size_t, FILE)’, declared with attribute warn_unused_result [-Wunused-result] fread(&patnum, 1, 2, fp); ^ converter_s3m.cpp:76:7: warning: ignoring return value of ‘size_t fread(void, size_t, size_t, FILE)’, declared with attribute warn_unused_result [-Wunused-result] fread(&flags, 1, 2, fp); ^ converter_s3m.cpp:107:8: warning: ignoring return value of ‘size_t fread(void, size_t, size_t, FILE)’, declared with attribute warn_unused_result [-Wunused-result] fread(&state, 1, 1, fp); ^ g++ -DRELEASE -DNDEBUG -O3 -fomit-frame-pointer -c converter_mod.cpp -o converter_mod.o.linux -MMD -MP -MF converter_mod.d converter_mod.cpp: In function ‘module_t load_module_mod(FILE)’: converter_mod.cpp:35:7: warning: ignoring return value of ‘size_t fread(void, size_t, size_t, FILE)’, declared with attribute warn_unused_result [-Wunused-result] fread(&sig, 1, 4, fp); ^ converter_mod.cpp:130:7: warning: ignoring return value of ‘size_t fread(void, size_t, size_t, FILE)’, declared with attribute warn_unused_result [-Wunused-result] fread(name, 20, 1, fp); ^ converter_mod.cpp:145:8: warning: ignoring return value of ‘size_t fread(void, size_t, size_t, FILE)’, declared with attribute warn_unused_result [-Wunused-result] fread(buf, 1, 22, fp); ^ converter_mod.cpp:179:8: warning: ignoring return value of ‘size_t fread(void, size_t, size_t, FILE)’, declared with attribute warn_unused_result [-Wunused-result] fread(buf, 1, 2, fp); ^ converter_mod.cpp:182:8: warning: ignoring return value of ‘size_t fread(void, size_t, size_t, FILE)’, declared with attribute warn_unused_result [-Wunused-result] fread(buf, 1, 1, fp); ^ converter_mod.cpp:186:8: warning: ignoring return value of ‘size_t fread(void, size_t, size_t, FILE)’, declared with attribute warn_unused_result [-Wunused-result] fread(&samp.default_volume, 1, 1, fp); ^ converter_mod.cpp:188:8: warning: ignoring return value of ‘size_t fread(void, size_t, size_t, FILE)’, declared with attribute warn_unused_result [-Wunused-result] fread(buf, 1, 2, fp); ^ converter_mod.cpp:192:8: warning: ignoring return value of ‘size_t fread(void, size_t, size_t, FILE)’, declared with attribute warn_unused_result [-Wunused-result] fread(buf, 1, 2, fp); ^ converter_mod.cpp:208:7: warning: ignoring return value of ‘size_t fread(void, size_t, size_t, FILE)’, declared with attribute warn_unused_result [-Wunused-result] fread(buf, 1, 1, fp); ^ converter_mod.cpp:217:7: warning: ignoring return value of ‘size_t fread(void, size_t, size_t, FILE)’, declared with attribute warn_unused_result [-Wunused-result] fread(&mod->repeat_pos, 1, 1, fp); ^ converter_mod.cpp:223:8: warning: ignoring return value of ‘size_t fread(void, size_t, size_t, FILE)’, declared with attribute warn_unused_result [-Wunused-result] fread(&mod->order[i], 1, 1, fp); ^ converter_mod.cpp:245:10: warning: ignoring return value of ‘size_t fread(void, size_t, size_t, FILE)’, declared with attribute warn_unused_result [-Wunused-result] fread(buf, 1, 4, fp); ^ converter_mod.cpp:276:9: warning: ignoring return value of ‘size_t fread(void, size_t, size_t, FILE)’, declared with attribute warn_unused_result [-Wunused-result] fread(samp.waveform, 1, samp.length, fp); ^ g++ -DRELEASE -DNDEBUG -O3 -fomit-frame-pointer -c dump_module.cpp -o dump_module.o.linux -MMD -MP -MF dump_module.d g++ -DRELEASE -DNDEBUG -O3 -fomit-frame-pointer -c dump_samples.cpp -o dump_samples.o.linux -MMD -MP -MF dump_samples.d dump_samples.cpp: In function ‘void write_sample_dump(const char)’: dump_samples.cpp:94:57: warning: format ‘%i’ expects argument of type ‘int’, but argument 2 has type ‘std::vector::size_type {aka long unsigned int}’ [-Wformat=] printf("sample bank data size: %i bytes\n", data.size());g++ converter.o.linux converter_xm.o.linux converter_s3m.o.linux converter_mod.o.linux dump_module.o.linux dump_samples.o.linux -o converter make[2] : on quitte le répertoire « /home/name/Bureau/dragonbasic-master/pimpmobile_r1/converter » cp -p ./pimpmobile_r1/converter/converter . make[1] : on quitte le répertoire « /home/name/Bureau/dragonbasic-master » /home/name/devkitpro/devkitARM/bin/arm-none-eabi-gcc -Iruntime -Ttext=0x8000000 -nostdlib runtime/runtime.s -o runtime.elf /home/name/devkitpro/devkitARM/bin/arm-none-eabi-objcopy -O binary runtime.elf runtime.gba /home/name/devkitpro/devkitARM/bin/arm-none-eabi-objcopy -O binary runpimp.elf runpimp.gba if test uname -s = Linux ; then make _all PLATFORM=linux ; fi make[1] : on entre dans le répertoire « /home/name/Bureau/dragonbasic-master » g++ -c -g -DDB_VERSION=""2.0"" -DAPPDIR=""/home/name/Bureau/dragonbasic-master"" -Wall -O2 -DBUG_FOR_BUG DBC.cpp -o DBC.o.linux DBC.cpp: In function ‘void GLB_runProgramWithArgs(const char, const char, const char, const char, bool)’: DBC.cpp:326:8: warning: ignoring return value of ‘char getcwd(char, size_t)’, declared with attribute warn_unused_result [-Wunused-result] getcwd(buf, 256); ^ DBC.cpp: In function ‘void GLB_pushDir(const char)’: DBC.cpp:339:8: warning: ignoring return value of ‘char getcwd(char, size_t)’, declared with attribute warn_unused_result [-Wunused-result] getcwd(dir_buf, 256); ^ DBC.cpp: In member function ‘Subroutine Subroutine::findByIdent(const char)’: DBC.cpp:87:2: warning: nonnull argument ‘this’ compared to NULL [-Wnonnull-compare] if (!this) ^~ DBC.cpp: In member function ‘void Compiler::doRvalArray(BasicObject)’: DBC.cpp:1574:6: warning: ‘[]’ directive writing 2 bytes into a region of size between 1 and 256 [-Wformat-overflow=] void Compiler::doRvalArray(BasicObject bobj) ^
~~~ In file included from /usr/include/stdio.h:862:0, from DBC.h:30, from DBC.cpp:38: /usr/include/x86_64-linux-gnu/bits/stdio2.h:34:43: note: ‘builtin___sprintf_chk’ output between 3 and 258 bytes into a destination of size 256 bos (s), fmt, va_arg_pack ()); ^ g++ -o dbc DBC.o.linux make -C ./pimpmobile_r1 lib/libpimpmobile.a make[2] : on entre dans le répertoire « /home/name/Bureau/dragonbasic-master/pimpmobile_r1 » /home/name/devkitpro/devkitARM/bin/arm-none-eabi-gcc -I/home/name/devkitpro/devkitARM/include -I/home/name/devkitpro/libgba/include -DRELEASE -DNDEBUG -mthumb-interwork -mlong-calls -O3 -fomit-frame-pointer -mthumb -c src/pimp_gba.c -o src/pimp_gba.o -MMD -MP -MF src/pimp_gba.d In file included from src/pimp_module.h:9, from src/pimp_mod_context.h:10, from src/pimp_render.h:10, from src/pimp_gba.c:9: src/pimp_instrument.h: In function 'get_sample': src/pimp_instrument.h:45:33: warning: passing argument 1 of 'get_ptr' from incompatible pointer type [-Wincompatible-pointer-types] return &((pimp_sample)get_ptr(&instr->sample_ptr))[i]; ^~~~~~ In file included from src/pimp_render.h:9, from src/pimp_gba.c:9: src/pimp_internal.h:12:49: note: expected 'const unsigned int ' but argument is of type 'const u32 ' {aka 'const long unsigned int '} static INLINE void get_ptr(const unsigned int offset) ^ In file included from src/pimp_module.h:9, from src/pimp_mod_context.h:10, from src/pimp_render.h:10, from src/pimp_gba.c:9: src/pimp_instrument.h: In function 'get_vol_env': src/pimp_instrument.h:51:67: warning: passing argument 1 of 'get_ptr' from incompatible pointer type [-Wincompatible-pointer-types] return (pimp_envelope)(instr->vol_env_ptr == 0 ? NULL : get_ptr(&instr->vol_env_ptr)); ^~~~~~~ In file included from src/pimp_render.h:9, from src/pimp_gba.c:9: src/pimp_internal.h:12:49: note: expected 'const unsigned int ' but argument is of type 'const u32 ' {aka 'const long unsigned int '} static INLINE void get_ptr(const unsigned int offset) ^ In file included from src/pimp_mod_context.h:10, from src/pimp_render.h:10, from src/pimp_gba.c:9: src/pimp_module.h: In function 'get_pattern_data': src/pimp_module.h:59:38: warning: passing argument 1 of 'get_ptr' from incompatible pointer type [-Wincompatible-pointer-types] return (pimp_pattern_entry)get_ptr(&pat->data_ptr); ^~~~~~ In file included from src/pimp_render.h:9, from src/pimp_gba.c:9: src/pimp_internal.h:12:49: note: expected 'const unsigned int ' but argument is of type 'const u32 ' {aka 'const long unsigned int '} static INLINE void get_ptr(const unsigned int offset) ^ In file included from src/pimp_mod_context.h:10, from src/pimp_render.h:10, from src/pimp_gba.c:9: src/pimp_module.h: In function 'pimp_module_get_order': src/pimp_module.h:65:25: warning: passing argument 1 of 'get_ptr' from incompatible pointer type [-Wincompatible-pointer-types] return ((char)get_ptr(&mod->order_ptr))[i]; ^~~~~~~ In file included from src/pimp_render.h:9, from src/pimp_gba.c:9: src/pimp_internal.h:12:49: note: expected 'const unsigned int ' but argument is of type 'const u32 ' {aka 'const long unsigned int '} static INLINE void get_ptr(const unsigned int offset) ^ In file included from src/pimp_mod_context.h:10, from src/pimp_render.h:10, from src/pimp_gba.c:9: src/pimp_module.h: In function 'pimp_module_get_pattern': src/pimp_module.h:71:34: warning: passing argument 1 of 'get_ptr' from incompatible pointer type [-Wincompatible-pointer-types] return &((pimp_pattern)get_ptr(&mod->pattern_ptr))[i]; ^~~~~ In file included from src/pimp_render.h:9, from src/pimp_gba.c:9: src/pimp_internal.h:12:49: note: expected 'const unsigned int ' but argument is of type 'const u32 ' {aka 'const long unsigned int '} static INLINE void get_ptr(const unsigned int offset) ^ In file included from src/pimp_mod_context.h:10, from src/pimp_render.h:10, from src/pimp_gba.c:9: src/pimp_module.h: In function 'pimp_module_get_channel': src/pimp_module.h:77:34: warning: passing argument 1 of 'get_ptr' from incompatible pointer type [-Wincompatible-pointer-types] return &((pimp_channel)get_ptr(&mod->channel_ptr))[i]; ^~~~~ In file included from src/pimp_render.h:9, from src/pimp_gba.c:9: src/pimp_internal.h:12:49: note: expected 'const unsigned int ' but argument is of type 'const u32 ' {aka 'const long unsigned int '} static INLINE void get_ptr(const unsigned int offset) ^ In file included from src/pimp_mod_context.h:10, from src/pimp_render.h:10, from src/pimp_gba.c:9: src/pimp_module.h: In function 'pimp_module_get_instrument': src/pimp_module.h:83:37: warning: passing argument 1 of 'get_ptr' from incompatible pointer type [-Wincompatible-pointer-types] return &((pimp_instrument)get_ptr(&mod->instrument_ptr))[i]; ^~~~~~~~ In file included from src/pimp_render.h:9, from src/pimp_gba.c:9: src/pimp_internal.h:12:49: note: expected 'const unsigned int ' but argument is of type 'const u32 ' {aka 'const long unsigned int '} static INLINE void get_ptr(const unsigned int offset) ^ src/pimp_gba.c: At top level: src/pimp_gba.c:27:1: warning: variably modified 'pimp_sound_buffers' at file scope static s8 pimp_sound_buffers[2][SOUND_BUFFER_SIZE] IWRAM_DATA; ^~src/pimp_gba.c:29:1: warning: variably modified 'pimp_mix_buffer' at file scope s32 pimp_mix_buffer[SOUND_BUFFER_SIZE] IWRAM_DATA; ^~~ /home/name/devkitpro/devkitARM/bin/arm-none-eabi-gcc -I/home/name/devkitpro/devkitARM/include -I/home/name/devkitpro/libgba/include -DRELEASE -DNDEBUG -mthumb-interwork -mlong-calls -O3 -fomit-frame-pointer -mthumb -c src/pimp_render.c -o src/pimp_render.o -MMD -MP -MF src/pimp_render.d /home/name/devkitpro/devkitARM/bin/arm-none-eabi-gcc -I/home/name/devkitpro/devkitARM/include -I/home/name/devkitpro/libgba/include -DRELEASE -DNDEBUG -mthumb-interwork -mlong-calls -O3 -fomit-frame-pointer -mthumb -c src/pimp_envelope.c -o src/pimp_envelope.o -MMD -MP -MF src/pimp_envelope.d /home/name/devkitpro/devkitARM/bin/arm-none-eabi-gcc -I/home/name/devkitpro/devkitARM/include -I/home/name/devkitpro/libgba/include -DRELEASE -DNDEBUG -mthumb-interwork -mlong-calls -O3 -fomit-frame-pointer -mthumb -c src/pimp_debug.c -o src/pimp_debug.o -MMD -MP -MF src/pimp_debug.d /home/name/devkitpro/devkitARM/bin/arm-none-eabi-gcc -I/home/name/devkitpro/devkitARM/include -I/home/name/devkitpro/libgba/include -DRELEASE -DNDEBUG -mthumb-interwork -mlong-calls -O3 -fomit-frame-pointer -mthumb -c src/pimp_mod_context.c -o src/pimp_mod_context.o -MMD -MP -MF src/pimp_mod_context.d /home/name/devkitpro/devkitARM/bin/arm-none-eabi-gcc -I/home/name/devkitpro/devkitARM/include -I/home/name/devkitpro/libgba/include -DRELEASE -DNDEBUG -mthumb-interwork -mlong-calls -O3 -fomit-frame-pointer -marm -c src/pimp_math.c -o src/pimp_math.iwram.o -MMD -MP -MF src/pimp_math.iwram.d /home/name/devkitpro/devkitARM/bin/arm-none-eabi-gcc -I/home/name/devkitpro/devkitARM/include -I/home/name/devkitpro/libgba/include -DRELEASE -DNDEBUG -mthumb-interwork -mlong-calls -O3 -fomit-frame-pointer -marm -c src/pimp_mixer.c -o src/pimp_mixer.iwram.o -MMD -MP -MF src/pimp_mixer.iwram.d /home/name/devkitpro/devkitARM/bin/arm-none-eabi-gcc -mthumb-interwork -I/home/name/devkitpro/devkitARM/include -I/home/name/devkitpro/libgba/include -DRELEASE -DNDEBUG -c -o src/pimp_mixer_arm.o src/pimp_mixer_arm.S /home/name/devkitpro/devkitARM/bin/arm-none-eabi-gcc -mthumb-interwork -I/home/name/devkitpro/devkitARM/include -I/home/name/devkitpro/libgba/include -DRELEASE -DNDEBUG -c -o src/pimp_mixer_clip_arm.o src/pimp_mixer_clip_arm.S src/pimp_mixer_clip_arm.S: Assembler messages: src/pimp_mixer_clip_arm.S:156: s suffix on comparison instruction is deprecated src/pimp_mixer_clip_arm.S:158: s suffix on comparison instruction is deprecated src/pimp_mixer_clip_arm.S:165: s suffix on comparison instruction is deprecated src/pimp_mixer_clip_arm.S:167: s suffix on comparison instruction is deprecated src/pimp_mixer_clip_arm.S:174: s suffix on comparison instruction is deprecated src/pimp_mixer_clip_arm.S:176: s suffix on comparison instruction is deprecated src/pimp_mixer_clip_arm.S:189: s suffix on comparison instruction is deprecated src/pimp_mixer_clip_arm.S:191: s suffix on comparison instruction is deprecated src/pimp_mixer_clip_arm.S:196: s suffix on comparison instruction is deprecated src/pimp_mixer_clip_arm.S:198: s suffix on comparison instruction is deprecated src/pimp_mixer_clip_arm.S:203: s suffix on comparison instruction is deprecated src/pimp_mixer_clip_arm.S:205: s suffix on comparison instruction is deprecated src/pimp_mixer_clip_arm.S:210: s suffix on comparison instruction is deprecated src/pimp_mixer_clip_arm.S:212: s suffix on comparison instruction is deprecated /home/name/devkitpro/devkitARM/bin/arm-none-eabi-ar rv lib/libpimpmobile.a src/pimp_gba.o src/pimp_render.o src/pimp_envelope.o src/pimp_debug.o src/pimp_mod_context.o src/pimp_math.iwram.o src/pimp_mixer.iwram.o src/pimp_mixer_arm.o src/pimp_mixer_clip_arm.o /home/name/devkitpro/devkitARM/bin/arm-none-eabi-ar: creating lib/libpimpmobile.a a - src/pimp_gba.o a - src/pimp_render.o a - src/pimp_envelope.o a - src/pimp_debug.o a - src/pimp_mod_context.o a - src/pimp_math.iwram.o a - src/pimp_mixer.iwram.o a - src/pimp_mixer_arm.o a - src/pimp_mixer_clip_arm.o make[2] : on quitte le répertoire « /home/name/Bureau/dragonbasic-master/pimpmobile_r1 » /home/name/devkitpro/devkitARM/bin/arm-none-eabi-gcc -Iruntime -nostdlib -I/home/name/devkitpro/libgba/include -I./pimpmobile_r1/include -marm -T runtime/gba_cart.ld runtime/gba_crt0.s /home/name/devkitpro/devkitARM/lib/gcc/arm-none-eabi/8.1.0/crti.o /home/name/devkitpro/devkitARM/lib/gcc/arm-none-eabi/8.1.0/crtbegin.o runtime/runpimp.c ./pimpmobile_r1/lib/libpimpmobile.a -L /home/name/devkitpro/libgba/lib -lgcc -lsysbase -lc -lgba /home/name/devkitpro/devkitARM/lib/gcc/arm-none-eabi/8.1.0/crtend.o /home/name/devkitpro/devkitARM/lib/gcc/arm-none-eabi/8.1.0/crtn.o -o runpimp.elf ./extract_syms.sh runpimp.elf >runtime_syms.h g++ -c -g -DDB_VERSION=""2.0"" -DAPPDIR=""/home/name/Bureau/dragonbasic-master"" -Wall -O2 -DBUG_FOR_BUG MF.cpp -o MF.o.linux MF.cpp: In member function ‘void Output::fixCartHeader()’: MF.cpp:465:7: warning: ignoring return value of ‘size_t fread(void, size_t, size_t, FILE)’, declared with attribute warn_unused_result [-Wunused-result] fread(bytes, 1, 0x1c, fp); ^ MF.cpp: In member function ‘void Output::emitPalette(const char)’: MF.cpp:681:8: warning: ignoring return value of ‘size_t fread(void, size_t, size_t, FILE)’, declared with attribute warn_unused_result [-Wunused-result] fread(hdr, 1, 0x18, fp); ^ MF.cpp:691:10: warning: ignoring return value of ‘size_t fread(void, size_t, size_t, FILE)’, declared with attribute warn_unused_result [-Wunused-result] fread(pp_rgba, 1, 4, fp); ^ MF.cpp: In member function ‘void Output::reloc8(Literal)’: MF.cpp:840:7: warning: ignoring return value of ‘size_t fread(void, size_t, size_t, FILE)’, declared with attribute warn_unused_result [-Wunused-result] fread(&insn, 1, 2, fp); ^ MF.cpp: In member function ‘void Output::reloc12(Literal)’: MF.cpp:871:7: warning: ignoring return value of ‘size_t fread(void, size_t, size_t, FILE)’, declared with attribute warn_unused_result [-Wunused-result] fread(&insn, 1, 4, fp); ^ MF.cpp: In member function ‘void Output::reloc24(unsigned int, unsigned int)’: MF.cpp:896:7: warning: ignoring return value of ‘size_t fread(void, size_t, size_t, FILE)’, declared with attribute warn_unused_result [-Wunused-result] fread(&insn, 1, 4, fp); ^ MF.cpp: In member function ‘void Output::reloc10(unsigned int, unsigned int)’: MF.cpp:916:7: warning: ignoring return value of ‘size_t fread(void, size_t, size_t, FILE)’, declared with attribute warn_unused_result [-Wunused-result] fread(&insn, 1, 2, fp); ^ MF.cpp: In member function ‘void Output::reloc8(unsigned int, unsigned int)’: MF.cpp:938:7: warning: ignoring return value of ‘size_t fread(void, size_t, size_t, FILE)’, declared with attribute warn_unused_result [-Wunused-result] fread(&insn, 1, 2, fp); ^ MF.cpp: In member function ‘void Literal::code(Output)’: MF.cpp:175:6: warning: ‘%04X’ directive writing between 4 and 8 bytes into a region of size 5 [-Wformat-overflow=] void Literal::code(Output out) ^~~ MF.cpp:175:6: note: directive argument in the range [1, 4294967295] In file included from /usr/include/stdio.h:862:0, from MF.cpp:26: /usr/include/x86_64-linux-gnu/bits/stdio2.h:34:43: note: ‘_builtinsprintf_chk’ output between 10 and 14 bytes into a destination of size 10 bos (s), fmt, va_arg_pack ()); ^ MF.cpp: In member function ‘void Parser::parseAll()’: MF.cpp:2599:10: warning: ‘iwsym’ may be used uninitialized in this function [-Wmaybe-uninitialized] Symbol iwsym; ^~~~~ g++ -c -g -DDB_VERSION=""2.0"" -DAPPDIR=""/home/name/Bureau/dragonbasic-master"" -Wall -O2 -DBUG_FOR_BUG MF_mappy.cpp -o MF_mappy.o.linux MF_mappy.cpp: In function ‘int Decode(const char, Output)’: MF_mappy.cpp:276:8: warning: ignoring return value of ‘size_t fread(void, size_t, size_t, FILE)’, declared with attribute warn_unused_result [-Wunused-result] fread(block,tagLen,1,f); ^ g++ -o mf MF.o.linux MF_mappy.o.linux -lsndfile -lfreeimage make -C ./pimpmobile_r1/converter TARGET=converter CXX=g++ LD=g++ make[2] : on entre dans le répertoire « /home/name/Bureau/dragonbasic-master/pimpmobile_r1/converter » g++ -DRELEASE -DNDEBUG -O3 -fomit-frame-pointer -c converter.cpp -o converter.o.linux -MMD -MP -MF converter.d g++ -DRELEASE -DNDEBUG -O3 -fomit-frame-pointer -c converter_xm.cpp -o converter_xm.o.linux -MMD -MP -MF converter_xm.d converter_xm.cpp: In function ‘module_t load_module_xm(FILE)’: converter_xm.cpp:81:7: warning: ignoring return value of ‘size_t fread(void, size_t, size_t, FILE)’, declared with attribute warn_unused_result [-Wunused-result] fread(temp, 17, 1, fp); ^ converter_xm.cpp:86:7: warning: ignoring return value of ‘size_t fread(void, size_t, size_t, FILE)’, declared with attribute warn_unused_result [-Wunused-result] fread(name, 20, 1, fp); ^ converter_xm.cpp:92:7: warning: ignoring return value of ‘size_t fread(void, size_t, size_t, FILE)’, declared with attribute warn_unused_result [-Wunused-result] fread(&magic, 1, 1, fp); ^ converter_xm.cpp:97:7: warning: ignoring return value of ‘size_t fread(void, size_t, size_t, FILE)’, declared with attribute warn_unused_result [-Wunused-result] fread(tracker_name, 20, 1, fp); ^ converter_xm.cpp:102:7: warning: ignoring return value of ‘size_t fread(void, size_t, size_t, FILE)’, declared with attribute warn_unused_result [-Wunused-result] fread(&version, 2, 1, fp); ^ converter_xm.cpp:124:7: warning: ignoring return value of ‘size_t fread(void, size_t, size_t, FILE)’, declared with attribute warn_unused_result [-Wunused-result] fread(&xm_header.header_size, 4, 1, fp); ^ converter_xm.cpp:125:7: warning: ignoring return value of ‘size_t fread(void, size_t, size_t, FILE)’, declared with attribute warn_unused_result [-Wunused-result] fread(&xm_header.len, 2, 1, fp); ^ converter_xm.cpp:126:7: warning: ignoring return value of ‘size_t fread(void, size_t, size_t, FILE)’, declared with attribute warn_unused_result [-Wunused-result] fread(&xm_header.restart_pos, 2, 1, fp); ^ converter_xm.cpp:127:7: warning: ignoring return value of ‘size_t fread(void, size_t, size_t, FILE)’, declared with attribute warn_unused_result [-Wunused-result] fread(&xm_header.channels, 2, 1, fp); ^ converter_xm.cpp:128:7: warning: ignoring return value of ‘size_t fread(void, size_t, size_t, FILE)’, declared with attribute warn_unused_result [-Wunused-result] fread(&xm_header.patterns, 2, 1, fp); ^ converter_xm.cpp:129:7: warning: ignoring return value of ‘size_t fread(void, size_t, size_t, FILE)’, declared with attribute warn_unused_result [-Wunused-result] fread(&xm_header.instruments, 2, 1, fp); ^ converter_xm.cpp:130:7: warning: ignoring return value of ‘size_t fread(void, size_t, size_t, FILE)’, declared with attribute warn_unused_result [-Wunused-result] fread(&xm_header.flags, 2, 1, fp); ^ converter_xm.cpp:131:7: warning: ignoring return value of ‘size_t fread(void, size_t, size_t, FILE)’, declared with attribute warn_unused_result [-Wunused-result] fread(&xm_header.tempo, 2, 1, fp); ^ converter_xm.cpp:132:8: warning: ignoring return value of ‘size_t fread(void, size_t, size_t, FILE)’, declared with attribute warn_unused_result [-Wunused-result] fread(&xm_header.bpm, 2, 1, fp); ^ converter_xm.cpp:190:7: warning: ignoring return value of ‘size_t fread(void, size_t, size_t, FILE)’, declared with attribute warn_unused_result [-Wunused-result] fread(&mod->order[0], sizeof(u8), xm_header.len, fp); ^ converter_xm.cpp:217:8: warning: ignoring return value of ‘size_t fread(void, size_t, size_t, FILE)’, declared with attribute warn_unused_result [-Wunused-result] fread(&pattern_header.header_size, 4, 1, fp); ^ converter_xm.cpp:218:8: warning: ignoring return value of ‘size_t fread(void, size_t, size_t, FILE)’, declared with attribute warn_unused_result [-Wunused-result] fread(&pattern_header.packing_type, 1, 1, fp); ^ converter_xm.cpp:219:8: warning: ignoring return value of ‘size_t fread(void, size_t, size_t, FILE)’, declared with attribute warn_unused_result [-Wunused-result] fread(&pattern_header.rows, 2, 1, fp); ^ converter_xm.cpp:220:8: warning: ignoring return value of ‘size_t fread(void, size_t, size_t, FILE)’, declared with attribute warn_unused_result [-Wunused-result] fread(&pattern_header.data_size, 2, 1, fp); ^ converter_xm.cpp:269:11: warning: ignoring return value of ‘size_t fread(void, size_t, size_t, FILE)’, declared with attribute warn_unused_result [-Wunused-result] fread(¬e, 1, 1, fp); ^ converter_xm.cpp:280:32: warning: ignoring return value of ‘size_t fread(void, size_t, size_t, FILE)’, declared with attribute warn_unused_result [-Wunused-result] if (pack & (1 << 0)) fread(¬e, 1, 1, fp); ^ converter_xm.cpp:281:32: warning: ignoring return value of ‘size_t fread(void, size_t, size_t, FILE)’, declared with attribute warn_unused_result [-Wunused-result] if (pack & (1 << 1)) fread(&instr, 1, 1, fp); ^ converter_xm.cpp:282:32: warning: ignoring return value of ‘size_t fread(void, size_t, size_t, FILE)’, declared with attribute warn_unused_result [-Wunused-result] if (pack & (1 << 2)) fread(&vol, 1, 1, fp); ^ converter_xm.cpp:283:32: warning: ignoring return value of ‘size_t fread(void, size_t, size_t, FILE)’, declared with attribute warn_unused_result [-Wunused-result] if (pack & (1 << 3)) fread(&eff, 1, 1, fp); ^ converter_xm.cpp:284:32: warning: ignoring return value of ‘size_t fread(void, size_t, size_t, FILE)’, declared with attribute warn_unused_result [-Wunused-result] if (pack & (1 << 4)) fread(&eff_param, 1, 1, fp); ^ converter_xm.cpp:337:8: warning: ignoring return value of ‘size_t fread(void, size_t, size_t, FILE)’, declared with attribute warn_unused_result [-Wunused-result] fread(&ih.header_size, 4, 1, fp); ^ converter_xm.cpp:338:8: warning: ignoring return value of ‘size_t fread(void, size_t, size_t, FILE)’, declared with attribute warn_unused_result [-Wunused-result] fread(&ih.name, 1, 22, fp); ^ converter_xm.cpp:339:8: warning: ignoring return value of ‘size_t fread(void, size_t, size_t, FILE)’, declared with attribute warn_unused_result [-Wunused-result] fread(&ih.type, 1, 1, fp); ^ converter_xm.cpp:340:8: warning: ignoring return value of ‘size_t fread(void, size_t, size_t, FILE)’, declared with attribute warn_unused_result [-Wunused-result] fread(&ih.samples, 2, 1, fp); ^ converter_xm.cpp:347:9: warning: ignoring return value of ‘size_t fread(void, size_t, size_t, FILE)’, declared with attribute warn_unused_result [-Wunused-result] fread(&ih.sample_header_size, 4, 1, fp); ^ converter_xm.cpp:348:9: warning: ignoring return value of ‘size_t fread(void, size_t, size_t, FILE)’, declared with attribute warn_unused_result [-Wunused-result] fread(&ih.sample_number, 1, 96, fp); ^ converter_xm.cpp:349:9: warning: ignoring return value of ‘size_t fread(void, size_t, size_t, FILE)’, declared with attribute warn_unused_result [-Wunused-result] fread(&ih.vol_env, 2, 24, fp); ^ converter_xm.cpp:350:9: warning: ignoring return value of ‘size_t fread(void, size_t, size_t, FILE)’, declared with attribute warn_unused_result [-Wunused-result] fread(&ih.pan_env, 2, 24, fp); ^ converter_xm.cpp:351:9: warning: ignoring return value of ‘size_t fread(void, size_t, size_t, FILE)’, declared with attribute warn_unused_result [-Wunused-result] fread(&ih.vol_env_points, 1, 1, fp); ^ converter_xm.cpp:352:9: warning: ignoring return value of ‘size_t fread(void, size_t, size_t, FILE)’, declared with attribute warn_unused_result [-Wunused-result] fread(&ih.pan_env_points, 1, 1, fp); ^ converter_xm.cpp:353:9: warning: ignoring return value of ‘size_t fread(void, size_t, size_t, FILE)’, declared with attribute warn_unused_result [-Wunused-result] fread(&ih.vol_sustain, 1, 1, fp); ^ converter_xm.cpp:354:9: warning: ignoring return value of ‘size_t fread(void, size_t, size_t, FILE)’, declared with attribute warn_unused_result [-Wunused-result] fread(&ih.vol_loop_start, 1, 1, fp); ^ converter_xm.cpp:355:9: warning: ignoring return value of ‘size_t fread(void, size_t, size_t, FILE)’, declared with attribute warn_unused_result [-Wunused-result] fread(&ih.vol_loop_end, 1, 1, fp); ^ converter_xm.cpp:356:9: warning: ignoring return value of ‘size_t fread(void, size_t, size_t, FILE)’, declared with attribute warn_unused_result [-Wunused-result] fread(&ih.pan_sustain, 1, 1, fp); ^ converter_xm.cpp:357:9: warning: ignoring return value of ‘size_t fread(void, size_t, size_t, FILE)’, declared with attribute warn_unused_result [-Wunused-result] fread(&ih.pan_loop_start, 1, 1, fp); ^ converter_xm.cpp:358:9: warning: ignoring return value of ‘size_t fread(void, size_t, size_t, FILE)’, declared with attribute warn_unused_result [-Wunused-result] fread(&ih.pan_loop_end, 1, 1, fp); ^ converter_xm.cpp:359:9: warning: ignoring return value of ‘size_t fread(void, size_t, size_t, FILE)’, declared with attribute warn_unused_result [-Wunused-result] fread(&ih.vol_type, 1, 1, fp); ^ converter_xm.cpp:360:9: warning: ignoring return value of ‘size_t fread(void, size_t, size_t, FILE)’, declared with attribute warn_unused_result [-Wunused-result] fread(&ih.pan_type, 1, 1, fp); ^ converter_xm.cpp:361:9: warning: ignoring return value of ‘size_t fread(void, size_t, size_t, FILE)’, declared with attribute warn_unused_result [-Wunused-result] fread(&ih.vibrato_type, 1, 1, fp); ^ converter_xm.cpp:362:9: warning: ignoring return value of ‘size_t fread(void, size_t, size_t, FILE)’, declared with attribute warn_unused_result [-Wunused-result] fread(&ih.vibrato_sweep, 1, 1, fp); ^ converter_xm.cpp:363:9: warning: ignoring return value of ‘size_t fread(void, size_t, size_t, FILE)’, declared with attribute warn_unused_result [-Wunused-result] fread(&ih.vibrato_depth, 1, 1, fp); ^ converter_xm.cpp:364:9: warning: ignoring return value of ‘size_t fread(void, size_t, size_t, FILE)’, declared with attribute warn_unused_result [-Wunused-result] fread(&ih.vibrato_rate, 1, 1, fp); ^ converter_xm.cpp:365:9: warning: ignoring return value of ‘size_t fread(void, size_t, size_t, FILE)’, declared with attribute warn_unused_result [-Wunused-result] fread(&ih.volume_fadeout, 2, 1, fp); ^ converter_xm.cpp:466:9: warning: ignoring return value of ‘size_t fread(void, size_t, size_t, FILE)’, declared with attribute warn_unused_result [-Wunused-result] fread(&sh.length, 4, 1, fp); ^ converter_xm.cpp:467:9: warning: ignoring return value of ‘size_t fread(void, size_t, size_t, FILE)’, declared with attribute warn_unused_result [-Wunused-result] fread(&sh.loop_start, 4, 1, fp); ^ converter_xm.cpp:468:9: warning: ignoring return value of ‘size_t fread(void, size_t, size_t, FILE)’, declared with attribute warn_unused_result [-Wunused-result] fread(&sh.loop_length, 4, 1, fp); ^ converter_xm.cpp:469:9: warning: ignoring return value of ‘size_t fread(void, size_t, size_t, FILE)’, declared with attribute warn_unused_result [-Wunused-result] fread(&sh.volume, 1, 1, fp); ^ converter_xm.cpp:470:9: warning: ignoring return value of ‘size_t fread(void, size_t, size_t, FILE)’, declared with attribute warn_unused_result [-Wunused-result] fread(&sh.fine_tune, 1, 1, fp); ^ converter_xm.cpp:471:9: warning: ignoring return value of ‘size_t fread(void, size_t, size_t, FILE)’, declared with attribute warn_unused_result [-Wunused-result] fread(&sh.type, 1, 1, fp); ^ converter_xm.cpp:472:9: warning: ignoring return value of ‘size_t fread(void, size_t, size_t, FILE)’, declared with attribute warn_unused_result [-Wunused-result] fread(&sh.pan, 1, 1, fp); ^ converter_xm.cpp:473:9: warning: ignoring return value of ‘size_t fread(void, size_t, size_t, FILE)’, declared with attribute warn_unused_result [-Wunused-result] fread(&sh.rel_note, 1, 1, fp); ^ converter_xm.cpp:475:9: warning: ignoring return value of ‘size_t fread(void, size_t, size_t, FILE)’, declared with attribute warn_unused_result [-Wunused-result] fread(&sh.name, 1, 22, fp); ^ converter_xm.cpp:570:11: warning: ignoring return value of ‘size_t fread(void, size_t, size_t, FILE)’, declared with attribute warn_unused_result [-Wunused-result] fread(&data, 1, 2, fp); ^ converter_xm.cpp:581:11: warning: ignoring return value of ‘size_t fread(void, size_t, size_t, FILE)’, declared with attribute warn_unused_result [-Wunused-result] fread(&data, 1, 1, fp); ^ g++ -DRELEASE -DNDEBUG -O3 -fomit-frame-pointer -c converter_s3m.cpp -o converter_s3m.o.linux -MMD -MP -MF converter_s3m.d converter_s3m.cpp: In function ‘module_t load_module_s3m(FILE)’: converter_s3m.cpp:19:7: warning: ignoring return value of ‘size_t fread(void, size_t, size_t, FILE)’, declared with attribute warn_unused_result [-Wunused-result] fread(sig, 1, 4, fp); ^ converter_s3m.cpp:25:7: warning: ignoring return value of ‘size_t fread(void, size_t, size_t, FILE)’, declared with attribute warn_unused_result [-Wunused-result] fread(&sig2, 1, 1, fp); ^ converter_s3m.cpp:30:7: warning: ignoring return value of ‘size_t fread(void, size_t, size_t, FILE)’, declared with attribute warn_unused_result [-Wunused-result] fread(&type, 1, 1, fp); ^ converter_s3m.cpp:65:7: warning: ignoring return value of ‘size_t fread(void, size_t, size_t, FILE)’, declared with attribute warn_unused_result [-Wunused-result] fread(&name, 1, 28, fp); ^ converter_s3m.cpp:73:7: warning: ignoring return value of ‘size_t fread(void, size_t, size_t, FILE)’, declared with attribute warn_unused_result [-Wunused-result] fread(&ordnum, 1, 2, fp); ^ converter_s3m.cpp:74:7: warning: ignoring return value of ‘size_t fread(void, size_t, size_t, FILE)’, declared with attribute warn_unused_result [-Wunused-result] fread(&insnum, 1, 2, fp); ^ converter_s3m.cpp:75:7: warning: ignoring return value of ‘size_t fread(void, size_t, size_t, FILE)’, declared with attribute warn_unused_result [-Wunused-result] fread(&patnum, 1, 2, fp); ^ converter_s3m.cpp:76:7: warning: ignoring return value of ‘size_t fread(void, size_t, size_t, FILE)’, declared with attribute warn_unused_result [-Wunused-result] fread(&flags, 1, 2, fp); ^ converter_s3m.cpp:107:8: warning: ignoring return value of ‘size_t fread(void, size_t, size_t, FILE)’, declared with attribute warn_unused_result [-Wunused-result] fread(&state, 1, 1, fp); ^ g++ -DRELEASE -DNDEBUG -O3 -fomit-frame-pointer -c converter_mod.cpp -o converter_mod.o.linux -MMD -MP -MF converter_mod.d converter_mod.cpp: In function ‘module_t load_module_mod(FILE)’: converter_mod.cpp:35:7: warning: ignoring return value of ‘size_t fread(void, size_t, size_t, FILE)’, declared with attribute warn_unused_result [-Wunused-result] fread(&sig, 1, 4, fp); ^ converter_mod.cpp:130:7: warning: ignoring return value of ‘size_t fread(void, size_t, size_t, FILE)’, declared with attribute warn_unused_result [-Wunused-result] fread(name, 20, 1, fp); ^ converter_mod.cpp:145:8: warning: ignoring return value of ‘size_t fread(void, size_t, size_t, FILE)’, declared with attribute warn_unused_result [-Wunused-result] fread(buf, 1, 22, fp); ^ converter_mod.cpp:179:8: warning: ignoring return value of ‘size_t fread(void, size_t, size_t, FILE)’, declared with attribute warn_unused_result [-Wunused-result] fread(buf, 1, 2, fp); ^ converter_mod.cpp:182:8: warning: ignoring return value of ‘size_t fread(void, size_t, size_t, FILE)’, declared with attribute warn_unused_result [-Wunused-result] fread(buf, 1, 1, fp); ^ converter_mod.cpp:186:8: warning: ignoring return value of ‘size_t fread(void, size_t, size_t, FILE)’, declared with attribute warn_unused_result [-Wunused-result] fread(&samp.default_volume, 1, 1, fp); ^ converter_mod.cpp:188:8: warning: ignoring return value of ‘size_t fread(void, size_t, size_t, FILE)’, declared with attribute warn_unused_result [-Wunused-result] fread(buf, 1, 2, fp); ^ converter_mod.cpp:192:8: warning: ignoring return value of ‘size_t fread(void, size_t, size_t, FILE)’, declared with attribute warn_unused_result [-Wunused-result] fread(buf, 1, 2, fp); ^ converter_mod.cpp:208:7: warning: ignoring return value of ‘size_t fread(void, size_t, size_t, FILE)’, declared with attribute warn_unused_result [-Wunused-result] fread(buf, 1, 1, fp); ^ converter_mod.cpp:217:7: warning: ignoring return value of ‘size_t fread(void, size_t, size_t, FILE)’, declared with attribute warn_unused_result [-Wunused-result] fread(&mod->repeat_pos, 1, 1, fp); ^ converter_mod.cpp:223:8: warning: ignoring return value of ‘size_t fread(void, size_t, size_t, FILE)’, declared with attribute warn_unused_result [-Wunused-result] fread(&mod->order[i], 1, 1, fp); ^ converter_mod.cpp:245:10: warning: ignoring return value of ‘size_t fread(void, size_t, size_t, FILE)’, declared with attribute warn_unused_result [-Wunused-result] fread(buf, 1, 4, fp); ^ converter_mod.cpp:276:9: warning: ignoring return value of ‘size_t fread(void, size_t, size_t, FILE)’, declared with attribute warn_unused_result [-Wunused-result] fread(samp.waveform, 1, samp.length, fp); ^ g++ -DRELEASE -DNDEBUG -O3 -fomit-frame-pointer -c dump_module.cpp -o dump_module.o.linux -MMD -MP -MF dump_module.d g++ -DRELEASE -DNDEBUG -O3 -fomit-frame-pointer -c dump_samples.cpp -o dump_samples.o.linux -MMD -MP -MF dump_samples.d dump_samples.cpp: In function ‘void write_sample_dump(const char)’: dump_samples.cpp:94:57: warning: format ‘%i’ expects argument of type ‘int’, but argument 2 has type ‘std::vector::size_type {aka long unsigned int}’ [-Wformat=] printf("sample bank data size: %i bytes\n", data.size());