The following packages will be installed: caprice32 Fetching README... 0%100%100%100%100%100%Done Fetching cap32.sh... 0%100%100%100%100%100%Done Fetching caprice32.SlackBuild... 0%100%100%100%100%100%Done Fetching caprice32.info... 0%100%100%100%100%100%Done Fetching doinst.sh... 0%100%100%100%100%100%Done Fetching slack-desc... 0%100%100%100%100%100%Done Fetching usage.txt... 0%100%100%100%100%100%Done Archive: /usr/src/slapt-src-i486/system/caprice32/caprice32-4.2.0-src.zip inflating: video.h inflating: z80.c inflating: z80.h inflating: z80daa.h creating: rom/ inflating: rom/amsdos.rom inflating: rom/cpc464.rom inflating: rom/cpc6128.rom inflating: rom/cpc664.rom inflating: cap32.cfg inflating: cap32.cpp inflating: cap32.h inflating: COPYING.txt inflating: crtc.c inflating: crtc.h inflating: fdc.c inflating: font.c inflating: glfunclist.h inflating: glfuncs.cpp inflating: glfuncs.h inflating: makefile inflating: makefile.unix inflating: psg.c inflating: README.txt inflating: rom_mods.c inflating: tape.c inflating: tape.h inflating: video.cpp g++ -Wall `sdl-config --cflags` -O2 -march=i586 -mtune=i686 -Wno-narrowing -funroll-loops -ffast-math -fomit-frame-pointer -fno-strength-reduce -finline-functions -s -c crtc.c crtc.c: In function ‘void prerender_border()’: crtc.c:786:19: warning: ISO C++17 does not allow ‘register’ storage class specifier [-Wregister] 786 | register dword dwVal = 0x10101010; | ^~~~~ crtc.c: In function ‘void prerender_border_half()’: crtc.c:798:19: warning: ISO C++17 does not allow ‘register’ storage class specifier [-Wregister] 798 | register dword dwVal = 0x10101010; | ^~~~~ crtc.c: In function ‘void prerender_sync()’: crtc.c:808:19: warning: ISO C++17 does not allow ‘register’ storage class specifier [-Wregister] 808 | register dword dwVal = 0x11111111; | ^~~~~ crtc.c: In function ‘void prerender_sync_half()’: crtc.c:820:19: warning: ISO C++17 does not allow ‘register’ storage class specifier [-Wregister] 820 | register dword dwVal = 0x11111111; | ^~~~~ crtc.c: In function ‘void prerender_normal()’: crtc.c:830:18: warning: ISO C++17 does not allow ‘register’ storage class specifier [-Wregister] 830 | register byte bVidMem = *(pbRAM + CRTC.next_address); | ^~~~~~~ crtc.c: In function ‘void prerender_normal_half()’: crtc.c:843:18: warning: ISO C++17 does not allow ‘register’ storage class specifier [-Wregister] 843 | register byte bVidMem = *(pbRAM + CRTC.next_address); | ^~~~~~~ crtc.c: In function ‘void render8bpp()’: crtc.c:870:19: warning: ISO C++17 does not allow ‘register’ storage class specifier [-Wregister] 870 | register byte *pbPos = (byte *)CPC.scr_pos; | ^~~~~ crtc.c:871:18: warning: ISO C++17 does not allow ‘register’ storage class specifier [-Wregister] 871 | register byte bCount = *RendWid++; | ^~~~~~ crtc.c: In function ‘void render8bpp_doubleY()’: crtc.c:882:19: warning: ISO C++17 does not allow ‘register’ storage class specifier [-Wregister] 882 | register byte *pbPos = (byte *)CPC.scr_pos; | ^~~~~ crtc.c:883:19: warning: ISO C++17 does not allow ‘register’ storage class specifier [-Wregister] 883 | register dword dwLineOffs = CPC.scr_bps << 2; | ^~~~~~~~~~ crtc.c:884:18: warning: ISO C++17 does not allow ‘register’ storage class specifier [-Wregister] 884 | register byte bCount = *RendWid++; | ^~~~~~ crtc.c:886:21: warning: ISO C++17 does not allow ‘register’ storage class specifier [-Wregister] 886 | register byte val = GateArray.palette[*RendOut++]; | ^~~ crtc.c: In function ‘void render16bpp()’: crtc.c:897:19: warning: ISO C++17 does not allow ‘register’ storage class specifier [-Wregister] 897 | register word *pwPos = (word *)CPC.scr_pos; | ^~~~~ crtc.c:898:18: warning: ISO C++17 does not allow ‘register’ storage class specifier [-Wregister] 898 | register byte bCount = *RendWid++; | ^~~~~~ crtc.c: In function ‘void render16bpp_doubleY()’: crtc.c:909:19: warning: ISO C++17 does not allow ‘register’ storage class specifier [-Wregister] 909 | register word *pwPos = (word *)CPC.scr_pos; | ^~~~~ crtc.c:910:19: warning: ISO C++17 does not allow ‘register’ storage class specifier [-Wregister] 910 | register dword dwLineOffs = CPC.scr_bps << 1; | ^~~~~~~~~~ crtc.c:911:18: warning: ISO C++17 does not allow ‘register’ storage class specifier [-Wregister] 911 | register byte bCount = *RendWid++; | ^~~~~~ crtc.c:913:21: warning: ISO C++17 does not allow ‘register’ storage class specifier [-Wregister] 913 | register word val = GateArray.palette[*RendOut++]; | ^~~ crtc.c: In function ‘void render24bpp()’: crtc.c:924:19: warning: ISO C++17 does not allow ‘register’ storage class specifier [-Wregister] 924 | register byte *pbPos = (byte *)CPC.scr_pos; | ^~~~~ crtc.c:925:18: warning: ISO C++17 does not allow ‘register’ storage class specifier [-Wregister] 925 | register byte bCount = *RendWid++; | ^~~~~~ crtc.c:927:22: warning: ISO C++17 does not allow ‘register’ storage class specifier [-Wregister] 927 | register dword val = GateArray.palette[*RendOut++]; | ^~~ crtc.c: In function ‘void render24bpp_doubleY()’: crtc.c:939:19: warning: ISO C++17 does not allow ‘register’ storage class specifier [-Wregister] 939 | register byte *pbPos = (byte *)CPC.scr_pos; | ^~~~~ crtc.c:940:19: warning: ISO C++17 does not allow ‘register’ storage class specifier [-Wregister] 940 | register dword dwLineOffs = CPC.scr_bps << 2; | ^~~~~~~~~~ crtc.c:941:18: warning: ISO C++17 does not allow ‘register’ storage class specifier [-Wregister] 941 | register byte bCount = *RendWid++; | ^~~~~~ crtc.c:943:22: warning: ISO C++17 does not allow ‘register’ storage class specifier [-Wregister] 943 | register dword val = GateArray.palette[*RendOut++]; | ^~~ crtc.c: In function ‘void render32bpp()’: crtc.c:958:18: warning: ISO C++17 does not allow ‘register’ storage class specifier [-Wregister] 958 | register byte bCount = *RendWid++; | ^~~~~~ crtc.c: In function ‘void render32bpp_doubleY()’: crtc.c:968:18: warning: ISO C++17 does not allow ‘register’ storage class specifier [-Wregister] 968 | register byte bCount = *RendWid++; | ^~~~~~ crtc.c:970:22: warning: ISO C++17 does not allow ‘register’ storage class specifier [-Wregister] 970 | register dword val = GateArray.palette[*RendOut++]; | ^~~ crtc.c: In function ‘void crtc_cycle(int)’: crtc.c:1188:25: warning: ISO C++17 does not allow ‘register’ storage class specifier [-Wregister] 1188 | register dword temp = 0; | ^~~~ g++ -Wall `sdl-config --cflags` -O2 -march=i586 -mtune=i686 -Wno-narrowing -funroll-loops -ffast-math -fomit-frame-pointer -fno-strength-reduce -finline-functions -s -c fdc.c g++ -Wall `sdl-config --cflags` -O2 -march=i586 -mtune=i686 -Wno-narrowing -funroll-loops -ffast-math -fomit-frame-pointer -fno-strength-reduce -finline-functions -s -c glfuncs.cpp In file included from glfuncs.h:24, from glfuncs.cpp:20: /usr/include/SDL/SDL_opengl.h:116: warning: "GL_GLEXT_VERSION" redefined 116 | #define GL_GLEXT_VERSION 29 | In file included from /usr/include/GL/gl.h:2050, from /usr/include/SDL/SDL_opengl.h:46, from glfuncs.h:24, from glfuncs.cpp:20: /usr/include/GL/glext.h:54: note: this is the location of the previous definition 54 | #define GL_GLEXT_VERSION 20190805 | g++ -Wall `sdl-config --cflags` -O2 -march=i586 -mtune=i686 -Wno-narrowing -funroll-loops -ffast-math -fomit-frame-pointer -fno-strength-reduce -finline-functions -s -c psg.c g++ -Wall `sdl-config --cflags` -O2 -march=i586 -mtune=i686 -Wno-narrowing -funroll-loops -ffast-math -fomit-frame-pointer -fno-strength-reduce -finline-functions -s -c tape.c g++ -Wall `sdl-config --cflags` -O2 -march=i586 -mtune=i686 -Wno-narrowing -funroll-loops -ffast-math -fomit-frame-pointer -fno-strength-reduce -finline-functions -s -c video.cpp In file included from video.cpp:35: /usr/include/SDL/SDL_opengl.h:116: warning: "GL_GLEXT_VERSION" redefined 116 | #define GL_GLEXT_VERSION 29 | In file included from /usr/include/GL/gl.h:2050, from /usr/include/SDL/SDL_opengl.h:46, from video.cpp:35: /usr/include/GL/glext.h:54: note: this is the location of the previous definition 54 | #define GL_GLEXT_VERSION 20190805 | video.cpp: In function ‘SDL_Surface* gl_init(int, int, int, bool)’: video.cpp:422:28: warning: ISO C++ forbids converting a string constant to ‘char*’ [-Wwrite-strings] 422 | char *gl_library = "libGL.so.1"; | ^~~~~~~~~~~~ video.cpp:475:58: warning: ISO C++ forbids converting a string constant to ‘char*’ [-Wwrite-strings] 475 | surface_bpp = (have_gl_extension("GL_EXT_paletted_texture"))?8:0; | ^~~~~~~~~~~~~~~~~~~~~~~~~ video.cpp: In function ‘Uint32 Q_INTERPOLATE(Uint32, Uint32, Uint32, Uint32)’: video.cpp:822:25: warning: ISO C++17 does not allow ‘register’ storage class specifier [-Wregister] 822 | register Uint32 x = ((A & qcolorMask) >> 2) + | ^ video.cpp:825:25: warning: ISO C++17 does not allow ‘register’ storage class specifier [-Wregister] 825 | register Uint32 y = (A & qlowpixelMask) + | ^ video.cpp: In function ‘void filter_supereagle(Uint8*, Uint32, Uint8*, Uint32, int, int)’: video.cpp:925:34: warning: ISO C++17 does not allow ‘register’ storage class specifier [-Wregister] 925 | register int r = 0; | ^ video.cpp: In function ‘void filter_ascale2x(Uint8*, Uint32, Uint8*, Uint32, int, int)’: video.cpp:1152:33: warning: ISO C++17 does not allow ‘register’ storage class specifier [-Wregister] 1152 | register Uint32 colorA, colorB; | ^~~~~~ video.cpp:1152:41: warning: ISO C++17 does not allow ‘register’ storage class specifier [-Wregister] 1152 | register Uint32 colorA, colorB; | ^~~~~~ video.cpp:1245:38: warning: ISO C++17 does not allow ‘register’ storage class specifier [-Wregister] 1245 | register int r = 0; | ^ video.cpp: At global scope: video.cpp:1791:2: warning: ISO C++ forbids converting a string constant to ‘char*’ [-Wwrite-strings] 1791 | {"Scanlines", scanline_init, scanline_setpal,scanline_lock, scanline_unlock, scanline_flip, scanline_close, ALL, 0 }, | ^~~~~~~~~~~ video.cpp:1792:2: warning: ISO C++ forbids converting a string constant to ‘char*’ [-Wwrite-strings] 1792 | {"Double size", double_init, double_setpal, double_lock, double_unlock, double_flip, double_close, ALL, 0 }, | ^~~~~~~~~~~~~ video.cpp:1793:2: warning: ISO C++ forbids converting a string constant to ‘char*’ [-Wwrite-strings] 1793 | {"Double width", doublew_init, doublew_setpal, doublew_lock, doublew_unlock, doublew_flip, doublew_close, ALL, 0 }, | ^~~~~~~~~~~~~~ video.cpp:1794:2: warning: ISO C++ forbids converting a string constant to ‘char*’ [-Wwrite-strings] 1794 | {"Half size", half_init, half_setpal, half_lock, half_unlock, half_flip, half_close, ALL, 1 }, | ^~~~~~~~~~~ video.cpp:1795:2: warning: ISO C++ forbids converting a string constant to ‘char*’ [-Wwrite-strings] 1795 | {"Half size with hardware flip", halfhw_init, halfhw_setpal, halfhw_lock, halfhw_unlock, halfhw_flip, half_close, ALL, 1 }, | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ video.cpp:1796:2: warning: ISO C++ forbids converting a string constant to ‘char*’ [-Wwrite-strings] 1796 | {"Super eagle", seagle_init, seagle_setpal, seagle_lock, seagle_unlock, seagle_flip, seagle_close, F16_BPP, 1 }, | ^~~~~~~~~~~~~ video.cpp:1797:2: warning: ISO C++ forbids converting a string constant to ‘char*’ [-Wwrite-strings] 1797 | {"Scale2x", scale2x_init, scale2x_setpal, scale2x_lock, scale2x_unlock, scale2x_flip, scale2x_close, F16_BPP, 1 }, | ^~~~~~~~~ video.cpp:1798:2: warning: ISO C++ forbids converting a string constant to ‘char*’ [-Wwrite-strings] 1798 | {"Advanced Scale2x", ascale2x_init, ascale2x_setpal,ascale2x_lock, ascale2x_unlock, ascale2x_flip, ascale2x_close, F16_BPP, 1 }, | ^~~~~~~~~~~~~~~~~~ video.cpp:1799:2: warning: ISO C++ forbids converting a string constant to ‘char*’ [-Wwrite-strings] 1799 | {"TV 2x", tv2x_init, tv2x_setpal, tv2x_lock, tv2x_unlock, tv2x_flip, tv2x_close, F16_BPP, 1 }, | ^~~~~~~ video.cpp:1800:2: warning: ISO C++ forbids converting a string constant to ‘char*’ [-Wwrite-strings] 1800 | {"Software bilinear", swbilin_init, swbilin_setpal, swbilin_lock, swbilin_unlock, swbilin_flip, swbilin_close, F16_BPP, 1 }, | ^~~~~~~~~~~~~~~~~~~ video.cpp:1801:2: warning: ISO C++ forbids converting a string constant to ‘char*’ [-Wwrite-strings] 1801 | {"Software bicubic", swbicub_init, swbicub_setpal, swbicub_lock, swbicub_unlock, swbicub_flip, swbicub_close, F16_BPP, 1 }, | ^~~~~~~~~~~~~~~~~~ video.cpp:1802:2: warning: ISO C++ forbids converting a string constant to ‘char*’ [-Wwrite-strings] 1802 | {"Dot matrix", dotmat_init, dotmat_setpal, dotmat_lock, dotmat_unlock, dotmat_flip, dotmat_close, F16_BPP, 1 }, | ^~~~~~~~~~~~ video.cpp:1803:2: warning: ISO C++ forbids converting a string constant to ‘char*’ [-Wwrite-strings] 1803 | {"OpenGL scaling", glscale_init, glscale_setpal, glscale_lock, glscale_unlock, glscale_flip, glscale_close, ALL, 1 }, | ^~~~~~~~~~~~~~~~ video.cpp:1804:2: warning: ISO C++ forbids converting a string constant to ‘char*’ [-Wwrite-strings] 1804 | {"OpenGL scaling, 25%% scanlines", glscale25_init, glscale_setpal, glscale_lock, glscale_unlock, glscale_flip, glscale_close, ALL, 1 }, | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ video.cpp:1805:2: warning: ISO C++ forbids converting a string constant to ‘char*’ [-Wwrite-strings] 1805 | {"OpenGL scaling, 50%% scanlines", glscale50_init, glscale_setpal, glscale_lock, glscale_unlock, glscale_flip, glscale_close, ALL, 1 }, | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ video.cpp:1806:2: warning: ISO C++ forbids converting a string constant to ‘char*’ [-Wwrite-strings] 1806 | {"OpenGL scaling, 75%% scanlines", glscale75_init, glscale_setpal, glscale_lock, glscale_unlock, glscale_flip, glscale_close, ALL, 1 }, | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ video.cpp:1807:2: warning: ISO C++ forbids converting a string constant to ‘char*’ [-Wwrite-strings] 1807 | {"OpenGL scaling, 100%% scanlines", glscale100_init,glscale_setpal, glscale_lock, glscale_unlock, glscale_flip, glscale_close, ALL, 1 }, | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ g++ -Wall `sdl-config --cflags` -O2 -march=i586 -mtune=i686 -Wno-narrowing -funroll-loops -ffast-math -fomit-frame-pointer -fno-strength-reduce -finline-functions -s -c z80.c g++ -Wall `sdl-config --cflags` -O2 -march=i586 -mtune=i686 -Wno-narrowing -funroll-loops -ffast-math -fomit-frame-pointer -fno-strength-reduce -finline-functions -s -o cap32 cap32.cpp crtc.o fdc.o glfuncs.o psg.o tape.o video.o z80.o `sdl-config --libs` -lz cap32.cpp: In function ‘void z80_OUT_handler(reg_pair, byte)’: cap32.cpp:1778:37: warning: ISO C++17 does not allow ‘register’ storage class specifier [-Wregister] 1778 | register dword temp = 0; | ^~~~ cap32.cpp:1806:37: warning: ISO C++17 does not allow ‘register’ storage class specifier [-Wregister] 1806 | register dword temp = 0; | ^~~~ cap32.cpp: In function ‘void loadConfiguration()’: cap32.cpp:3958:46: warning: ISO C++ forbids converting a string constant to ‘char*’ [-Wwrite-strings] 3958 | CPC.model = getConfigValueInt(chFileName, "system", "model", 2); // CPC 6128 | ^~~~~~~~ cap32.cpp:3958:56: warning: ISO C++ forbids converting a string constant to ‘char*’ [-Wwrite-strings] 3958 | CPC.model = getConfigValueInt(chFileName, "system", "model", 2); // CPC 6128 | ^~~~~~~ cap32.cpp:3962:48: warning: ISO C++ forbids converting a string constant to ‘char*’ [-Wwrite-strings] 3962 | CPC.jumpers = getConfigValueInt(chFileName, "system", "jumpers", 0x1e) & 0x1e; // OEM is Amstrad, video refresh is 50Hz | ^~~~~~~~ cap32.cpp:3962:58: warning: ISO C++ forbids converting a string constant to ‘char*’ [-Wwrite-strings] 3962 | CPC.jumpers = getConfigValueInt(chFileName, "system", "jumpers", 0x1e) & 0x1e; // OEM is Amstrad, video refresh is 50Hz | ^~~~~~~~~ cap32.cpp:3963:49: warning: ISO C++ forbids converting a string constant to ‘char*’ [-Wwrite-strings] 3963 | CPC.ram_size = getConfigValueInt(chFileName, "system", "ram_size", 128) & 0x02c0; // 128KB RAM | ^~~~~~~~ cap32.cpp:3963:59: warning: ISO C++ forbids converting a string constant to ‘char*’ [-Wwrite-strings] 3963 | CPC.ram_size = getConfigValueInt(chFileName, "system", "ram_size", 128) & 0x02c0; // 128KB RAM | ^~~~~~~~~~ cap32.cpp:3969:46: warning: ISO C++ forbids converting a string constant to ‘char*’ [-Wwrite-strings] 3969 | CPC.speed = getConfigValueInt(chFileName, "system", "speed", DEF_SPEED_SETTING); // original CPC speed | ^~~~~~~~ cap32.cpp:3969:56: warning: ISO C++ forbids converting a string constant to ‘char*’ [-Wwrite-strings] 3969 | CPC.speed = getConfigValueInt(chFileName, "system", "speed", DEF_SPEED_SETTING); // original CPC speed | ^~~~~~~ cap32.cpp:3974:51: warning: ISO C++ forbids converting a string constant to ‘char*’ [-Wwrite-strings] 3974 | CPC.auto_pause = getConfigValueInt(chFileName, "system", "auto_pause", 1) & 1; | ^~~~~~~~ cap32.cpp:3974:61: warning: ISO C++ forbids converting a string constant to ‘char*’ [-Wwrite-strings] 3974 | CPC.auto_pause = getConfigValueInt(chFileName, "system", "auto_pause", 1) & 1; | ^~~~~~~~~~~~ cap32.cpp:3975:48: warning: ISO C++ forbids converting a string constant to ‘char*’ [-Wwrite-strings] 3975 | CPC.printer = getConfigValueInt(chFileName, "system", "printer", 0) & 1; | ^~~~~~~~ cap32.cpp:3975:58: warning: ISO C++ forbids converting a string constant to ‘char*’ [-Wwrite-strings] 3975 | CPC.printer = getConfigValueInt(chFileName, "system", "printer", 0) & 1; | ^~~~~~~~~ cap32.cpp:3976:44: warning: ISO C++ forbids converting a string constant to ‘char*’ [-Wwrite-strings] 3976 | CPC.mf2 = getConfigValueInt(chFileName, "system", "mf2", 0) & 1; | ^~~~~~~~ cap32.cpp:3976:54: warning: ISO C++ forbids converting a string constant to ‘char*’ [-Wwrite-strings] 3976 | CPC.mf2 = getConfigValueInt(chFileName, "system", "mf2", 0) & 1; | ^~~~~ cap32.cpp:3977:49: warning: ISO C++ forbids converting a string constant to ‘char*’ [-Wwrite-strings] 3977 | CPC.keyboard = getConfigValueInt(chFileName, "system", "keyboard", 0); | ^~~~~~~~ cap32.cpp:3977:59: warning: ISO C++ forbids converting a string constant to ‘char*’ [-Wwrite-strings] 3977 | CPC.keyboard = getConfigValueInt(chFileName, "system", "keyboard", 0); | ^~~~~~~~~~ cap32.cpp:3981:50: warning: ISO C++ forbids converting a string constant to ‘char*’ [-Wwrite-strings] 3981 | CPC.joysticks = getConfigValueInt(chFileName, "system", "joysticks", 0) & 1; | ^~~~~~~~ cap32.cpp:3981:60: warning: ISO C++ forbids converting a string constant to ‘char*’ [-Wwrite-strings] 3981 | CPC.joysticks = getConfigValueInt(chFileName, "system", "joysticks", 0) & 1; | ^~~~~~~~~~~ cap32.cpp:3983:53: warning: ISO C++ forbids converting a string constant to ‘char*’ [-Wwrite-strings] 3983 | CPC.scr_fs_width = getConfigValueInt(chFileName, "video", "scr_width", 800); | ^~~~~~~ cap32.cpp:3983:62: warning: ISO C++ forbids converting a string constant to ‘char*’ [-Wwrite-strings] 3983 | CPC.scr_fs_width = getConfigValueInt(chFileName, "video", "scr_width", 800); | ^~~~~~~~~~~ cap32.cpp:3984:54: warning: ISO C++ forbids converting a string constant to ‘char*’ [-Wwrite-strings] 3984 | CPC.scr_fs_height = getConfigValueInt(chFileName, "video", "scr_height", 600); | ^~~~~~~ cap32.cpp:3984:63: warning: ISO C++ forbids converting a string constant to ‘char*’ [-Wwrite-strings] 3984 | CPC.scr_fs_height = getConfigValueInt(chFileName, "video", "scr_height", 600); | ^~~~~~~~~~~~ cap32.cpp:3985:51: warning: ISO C++ forbids converting a string constant to ‘char*’ [-Wwrite-strings] 3985 | CPC.scr_fs_bpp = getConfigValueInt(chFileName, "video", "scr_bpp", 8); | ^~~~~~~ cap32.cpp:3985:60: warning: ISO C++ forbids converting a string constant to ‘char*’ [-Wwrite-strings] 3985 | CPC.scr_fs_bpp = getConfigValueInt(chFileName, "video", "scr_bpp", 8); | ^~~~~~~~~ cap32.cpp:3986:50: warning: ISO C++ forbids converting a string constant to ‘char*’ [-Wwrite-strings] 3986 | CPC.scr_style = getConfigValueInt(chFileName, "video", "scr_style", 0); | ^~~~~~~ cap32.cpp:3986:59: warning: ISO C++ forbids converting a string constant to ‘char*’ [-Wwrite-strings] 3986 | CPC.scr_style = getConfigValueInt(chFileName, "video", "scr_style", 0); | ^~~~~~~~~~~ cap32.cpp:3995:54: warning: ISO C++ forbids converting a string constant to ‘char*’ [-Wwrite-strings] 3995 | CPC.scr_oglfilter = getConfigValueInt(chFileName, "video", "scr_oglfilter", 1) & 1; | ^~~~~~~ cap32.cpp:3995:63: warning: ISO C++ forbids converting a string constant to ‘char*’ [-Wwrite-strings] 3995 | CPC.scr_oglfilter = getConfigValueInt(chFileName, "video", "scr_oglfilter", 1) & 1; | ^~~~~~~~~~~~~~~ cap32.cpp:3996:50: warning: ISO C++ forbids converting a string constant to ‘char*’ [-Wwrite-strings] 3996 | CPC.scr_vsync = getConfigValueInt(chFileName, "video", "scr_vsync", 1) & 1; | ^~~~~~~ cap32.cpp:3996:59: warning: ISO C++ forbids converting a string constant to ‘char*’ [-Wwrite-strings] 3996 | CPC.scr_vsync = getConfigValueInt(chFileName, "video", "scr_vsync", 1) & 1; | ^~~~~~~~~~~ cap32.cpp:3997:48: warning: ISO C++ forbids converting a string constant to ‘char*’ [-Wwrite-strings] 3997 | CPC.scr_led = getConfigValueInt(chFileName, "video", "scr_led", 1) & 1; | ^~~~~~~ cap32.cpp:3997:57: warning: ISO C++ forbids converting a string constant to ‘char*’ [-Wwrite-strings] 3997 | CPC.scr_led = getConfigValueInt(chFileName, "video", "scr_led", 1) & 1; | ^~~~~~~~~ cap32.cpp:3998:48: warning: ISO C++ forbids converting a string constant to ‘char*’ [-Wwrite-strings] 3998 | CPC.scr_fps = getConfigValueInt(chFileName, "video", "scr_fps", 0) & 1; | ^~~~~~~ cap32.cpp:3998:57: warning: ISO C++ forbids converting a string constant to ‘char*’ [-Wwrite-strings] 3998 | CPC.scr_fps = getConfigValueInt(chFileName, "video", "scr_fps", 0) & 1; | ^~~~~~~~~ cap32.cpp:3999:49: warning: ISO C++ forbids converting a string constant to ‘char*’ [-Wwrite-strings] 3999 | CPC.scr_tube = getConfigValueInt(chFileName, "video", "scr_tube", 0) & 1; | ^~~~~~~ cap32.cpp:3999:58: warning: ISO C++ forbids converting a string constant to ‘char*’ [-Wwrite-strings] 3999 | CPC.scr_tube = getConfigValueInt(chFileName, "video", "scr_tube", 0) & 1; | ^~~~~~~~~~ cap32.cpp:4000:54: warning: ISO C++ forbids converting a string constant to ‘char*’ [-Wwrite-strings] 4000 | CPC.scr_intensity = getConfigValueInt(chFileName, "video", "scr_intensity", 10); | ^~~~~~~ cap32.cpp:4000:63: warning: ISO C++ forbids converting a string constant to ‘char*’ [-Wwrite-strings] 4000 | CPC.scr_intensity = getConfigValueInt(chFileName, "video", "scr_intensity", 10); | ^~~~~~~~~~~~~~~ cap32.cpp:4001:54: warning: ISO C++ forbids converting a string constant to ‘char*’ [-Wwrite-strings] 4001 | CPC.scr_remanency = getConfigValueInt(chFileName, "video", "scr_remanency", 0) & 1; | ^~~~~~~ cap32.cpp:4001:63: warning: ISO C++ forbids converting a string constant to ‘char*’ [-Wwrite-strings] 4001 | CPC.scr_remanency = getConfigValueInt(chFileName, "video", "scr_remanency", 0) & 1; | ^~~~~~~~~~~~~~~ cap32.cpp:4005:51: warning: ISO C++ forbids converting a string constant to ‘char*’ [-Wwrite-strings] 4005 | CPC.scr_window = getConfigValueInt(chFileName, "video", "scr_window", 0) & 1; | ^~~~~~~ cap32.cpp:4005:60: warning: ISO C++ forbids converting a string constant to ‘char*’ [-Wwrite-strings] 4005 | CPC.scr_window = getConfigValueInt(chFileName, "video", "scr_window", 0) & 1; | ^~~~~~~~~~~~ cap32.cpp:4007:52: warning: ISO C++ forbids converting a string constant to ‘char*’ [-Wwrite-strings] 4007 | CPC.snd_enabled = getConfigValueInt(chFileName, "sound", "enabled", 1) & 1; | ^~~~~~~ cap32.cpp:4007:61: warning: ISO C++ forbids converting a string constant to ‘char*’ [-Wwrite-strings] 4007 | CPC.snd_enabled = getConfigValueInt(chFileName, "sound", "enabled", 1) & 1; | ^~~~~~~~~ cap32.cpp:4008:58: warning: ISO C++ forbids converting a string constant to ‘char*’ [-Wwrite-strings] 4008 | CPC.snd_playback_rate = getConfigValueInt(chFileName, "sound", "playback_rate", 2); | ^~~~~~~ cap32.cpp:4008:67: warning: ISO C++ forbids converting a string constant to ‘char*’ [-Wwrite-strings] 4008 | CPC.snd_playback_rate = getConfigValueInt(chFileName, "sound", "playback_rate", 2); | ^~~~~~~~~~~~~~~ cap32.cpp:4012:49: warning: ISO C++ forbids converting a string constant to ‘char*’ [-Wwrite-strings] 4012 | CPC.snd_bits = getConfigValueInt(chFileName, "sound", "bits", 1) & 1; | ^~~~~~~ cap32.cpp:4012:58: warning: ISO C++ forbids converting a string constant to ‘char*’ [-Wwrite-strings] 4012 | CPC.snd_bits = getConfigValueInt(chFileName, "sound", "bits", 1) & 1; | ^~~~~~ cap32.cpp:4013:51: warning: ISO C++ forbids converting a string constant to ‘char*’ [-Wwrite-strings] 4013 | CPC.snd_stereo = getConfigValueInt(chFileName, "sound", "stereo", 1) & 1; | ^~~~~~~ cap32.cpp:4013:60: warning: ISO C++ forbids converting a string constant to ‘char*’ [-Wwrite-strings] 4013 | CPC.snd_stereo = getConfigValueInt(chFileName, "sound", "stereo", 1) & 1; | ^~~~~~~~ cap32.cpp:4014:51: warning: ISO C++ forbids converting a string constant to ‘char*’ [-Wwrite-strings] 4014 | CPC.snd_volume = getConfigValueInt(chFileName, "sound", "volume", 80); | ^~~~~~~ cap32.cpp:4014:60: warning: ISO C++ forbids converting a string constant to ‘char*’ [-Wwrite-strings] 4014 | CPC.snd_volume = getConfigValueInt(chFileName, "sound", "volume", 80); | ^~~~~~~~ cap32.cpp:4018:54: warning: ISO C++ forbids converting a string constant to ‘char*’ [-Wwrite-strings] 4018 | CPC.snd_pp_device = getConfigValueInt(chFileName, "sound", "pp_device", 0) & 1; | ^~~~~~~ cap32.cpp:4018:63: warning: ISO C++ forbids converting a string constant to ‘char*’ [-Wwrite-strings] 4018 | CPC.snd_pp_device = getConfigValueInt(chFileName, "sound", "pp_device", 0) & 1; | ^~~~~~~~~~~ cap32.cpp:4020:51: warning: ISO C++ forbids converting a string constant to ‘char*’ [-Wwrite-strings] 4020 | CPC.kbd_layout = getConfigValueInt(chFileName, "control", "kbd_layout", 0); | ^~~~~~~~~ cap32.cpp:4020:62: warning: ISO C++ forbids converting a string constant to ‘char*’ [-Wwrite-strings] 4020 | CPC.kbd_layout = getConfigValueInt(chFileName, "control", "kbd_layout", 0); | ^~~~~~~~~~~~ cap32.cpp:4025:54: warning: ISO C++ forbids converting a string constant to ‘char*’ [-Wwrite-strings] 4025 | CPC.max_tracksize = getConfigValueInt(chFileName, "file", "max_track_size", 6144-154); | ^~~~~~ cap32.cpp:4025:62: warning: ISO C++ forbids converting a string constant to ‘char*’ [-Wwrite-strings] 4025 | CPC.max_tracksize = getConfigValueInt(chFileName, "file", "max_track_size", 6144-154); | ^~~~~~~~~~~~~~~~ cap32.cpp:4028:37: warning: ISO C++ forbids converting a string constant to ‘char*’ [-Wwrite-strings] 4028 | getConfigValueString(chFileName, "file", "snap_path", CPC.snap_path, sizeof(CPC.snap_path)-1, chPath); | ^~~~~~ cap32.cpp:4028:45: warning: ISO C++ forbids converting a string constant to ‘char*’ [-Wwrite-strings] 4028 | getConfigValueString(chFileName, "file", "snap_path", CPC.snap_path, sizeof(CPC.snap_path)-1, chPath); | ^~~~~~~~~~~ cap32.cpp:4032:37: warning: ISO C++ forbids converting a string constant to ‘char*’ [-Wwrite-strings] 4032 | getConfigValueString(chFileName, "file", "snap_file", CPC.snap_file, sizeof(CPC.snap_file)-1, ""); | ^~~~~~ cap32.cpp:4032:45: warning: ISO C++ forbids converting a string constant to ‘char*’ [-Wwrite-strings] 4032 | getConfigValueString(chFileName, "file", "snap_file", CPC.snap_file, sizeof(CPC.snap_file)-1, ""); | ^~~~~~~~~~~ cap32.cpp:4032:98: warning: ISO C++ forbids converting a string constant to ‘char*’ [-Wwrite-strings] 4032 | getConfigValueString(chFileName, "file", "snap_file", CPC.snap_file, sizeof(CPC.snap_file)-1, ""); | ^~ cap32.cpp:4033:49: warning: ISO C++ forbids converting a string constant to ‘char*’ [-Wwrite-strings] 4033 | CPC.snap_zip = getConfigValueInt(chFileName, "file", "snap_zip", 0) & 1; | ^~~~~~ cap32.cpp:4033:57: warning: ISO C++ forbids converting a string constant to ‘char*’ [-Wwrite-strings] 4033 | CPC.snap_zip = getConfigValueInt(chFileName, "file", "snap_zip", 0) & 1; | ^~~~~~~~~~ cap32.cpp:4036:37: warning: ISO C++ forbids converting a string constant to ‘char*’ [-Wwrite-strings] 4036 | getConfigValueString(chFileName, "file", "drvA_path", CPC.drvA_path, sizeof(CPC.drvA_path)-1, chPath); | ^~~~~~ cap32.cpp:4036:45: warning: ISO C++ forbids converting a string constant to ‘char*’ [-Wwrite-strings] 4036 | getConfigValueString(chFileName, "file", "drvA_path", CPC.drvA_path, sizeof(CPC.drvA_path)-1, chPath); | ^~~~~~~~~~~ cap32.cpp:4040:37: warning: ISO C++ forbids converting a string constant to ‘char*’ [-Wwrite-strings] 4040 | getConfigValueString(chFileName, "file", "drvA_file", CPC.drvA_file, sizeof(CPC.drvA_file)-1, ""); | ^~~~~~ cap32.cpp:4040:45: warning: ISO C++ forbids converting a string constant to ‘char*’ [-Wwrite-strings] 4040 | getConfigValueString(chFileName, "file", "drvA_file", CPC.drvA_file, sizeof(CPC.drvA_file)-1, ""); | ^~~~~~~~~~~ cap32.cpp:4040:98: warning: ISO C++ forbids converting a string constant to ‘char*’ [-Wwrite-strings] 4040 | getConfigValueString(chFileName, "file", "drvA_file", CPC.drvA_file, sizeof(CPC.drvA_file)-1, ""); | ^~ cap32.cpp:4041:49: warning: ISO C++ forbids converting a string constant to ‘char*’ [-Wwrite-strings] 4041 | CPC.drvA_zip = getConfigValueInt(chFileName, "file", "drvA_zip", 0) & 1; | ^~~~~~ cap32.cpp:4041:57: warning: ISO C++ forbids converting a string constant to ‘char*’ [-Wwrite-strings] 4041 | CPC.drvA_zip = getConfigValueInt(chFileName, "file", "drvA_zip", 0) & 1; | ^~~~~~~~~~ cap32.cpp:4042:52: warning: ISO C++ forbids converting a string constant to ‘char*’ [-Wwrite-strings] 4042 | CPC.drvA_format = getConfigValueInt(chFileName, "file", "drvA_format", DEFAULT_DISK_FORMAT); | ^~~~~~ cap32.cpp:4042:60: warning: ISO C++ forbids converting a string constant to ‘char*’ [-Wwrite-strings] 4042 | CPC.drvA_format = getConfigValueInt(chFileName, "file", "drvA_format", DEFAULT_DISK_FORMAT); | ^~~~~~~~~~~~~ cap32.cpp:4043:37: warning: ISO C++ forbids converting a string constant to ‘char*’ [-Wwrite-strings] 4043 | getConfigValueString(chFileName, "file", "drvB_path", CPC.drvB_path, sizeof(CPC.drvB_path)-1, chPath); | ^~~~~~ cap32.cpp:4043:45: warning: ISO C++ forbids converting a string constant to ‘char*’ [-Wwrite-strings] 4043 | getConfigValueString(chFileName, "file", "drvB_path", CPC.drvB_path, sizeof(CPC.drvB_path)-1, chPath); | ^~~~~~~~~~~ cap32.cpp:4047:37: warning: ISO C++ forbids converting a string constant to ‘char*’ [-Wwrite-strings] 4047 | getConfigValueString(chFileName, "file", "drvB_file", CPC.drvB_file, sizeof(CPC.drvB_file)-1, ""); | ^~~~~~ cap32.cpp:4047:45: warning: ISO C++ forbids converting a string constant to ‘char*’ [-Wwrite-strings] 4047 | getConfigValueString(chFileName, "file", "drvB_file", CPC.drvB_file, sizeof(CPC.drvB_file)-1, ""); | ^~~~~~~~~~~ cap32.cpp:4047:98: warning: ISO C++ forbids converting a string constant to ‘char*’ [-Wwrite-strings] 4047 | getConfigValueString(chFileName, "file", "drvB_file", CPC.drvB_file, sizeof(CPC.drvB_file)-1, ""); | ^~ cap32.cpp:4048:49: warning: ISO C++ forbids converting a string constant to ‘char*’ [-Wwrite-strings] 4048 | CPC.drvB_zip = getConfigValueInt(chFileName, "file", "drvB_zip", 0) & 1; | ^~~~~~ cap32.cpp:4048:57: warning: ISO C++ forbids converting a string constant to ‘char*’ [-Wwrite-strings] 4048 | CPC.drvB_zip = getConfigValueInt(chFileName, "file", "drvB_zip", 0) & 1; | ^~~~~~~~~~ cap32.cpp:4049:52: warning: ISO C++ forbids converting a string constant to ‘char*’ [-Wwrite-strings] 4049 | CPC.drvB_format = getConfigValueInt(chFileName, "file", "drvB_format", DEFAULT_DISK_FORMAT); | ^~~~~~ cap32.cpp:4049:60: warning: ISO C++ forbids converting a string constant to ‘char*’ [-Wwrite-strings] 4049 | CPC.drvB_format = getConfigValueInt(chFileName, "file", "drvB_format", DEFAULT_DISK_FORMAT); | ^~~~~~~~~~~~~ cap32.cpp:4052:37: warning: ISO C++ forbids converting a string constant to ‘char*’ [-Wwrite-strings] 4052 | getConfigValueString(chFileName, "file", "tape_path", CPC.tape_path, sizeof(CPC.tape_path)-1, chPath); | ^~~~~~ cap32.cpp:4052:45: warning: ISO C++ forbids converting a string constant to ‘char*’ [-Wwrite-strings] 4052 | getConfigValueString(chFileName, "file", "tape_path", CPC.tape_path, sizeof(CPC.tape_path)-1, chPath); | ^~~~~~~~~~~ cap32.cpp:4056:37: warning: ISO C++ forbids converting a string constant to ‘char*’ [-Wwrite-strings] 4056 | getConfigValueString(chFileName, "file", "tape_file", CPC.tape_file, sizeof(CPC.tape_file)-1, ""); | ^~~~~~ cap32.cpp:4056:45: warning: ISO C++ forbids converting a string constant to ‘char*’ [-Wwrite-strings] 4056 | getConfigValueString(chFileName, "file", "tape_file", CPC.tape_file, sizeof(CPC.tape_file)-1, ""); | ^~~~~~~~~~~ cap32.cpp:4056:98: warning: ISO C++ forbids converting a string constant to ‘char*’ [-Wwrite-strings] 4056 | getConfigValueString(chFileName, "file", "tape_file", CPC.tape_file, sizeof(CPC.tape_file)-1, ""); | ^~ cap32.cpp:4057:49: warning: ISO C++ forbids converting a string constant to ‘char*’ [-Wwrite-strings] 4057 | CPC.tape_zip = getConfigValueInt(chFileName, "file", "tape_zip", 0) & 1; | ^~~~~~ cap32.cpp:4057:57: warning: ISO C++ forbids converting a string constant to ‘char*’ [-Wwrite-strings] 4057 | CPC.tape_zip = getConfigValueInt(chFileName, "file", "tape_zip", 0) & 1; | ^~~~~~~~~~ cap32.cpp:4067:40: warning: ISO C++ forbids converting a string constant to ‘char*’ [-Wwrite-strings] 4067 | getConfigValueString(chFileName, "file", chFmtId, chFmtStr, sizeof(chFmtStr)-1, ""); | ^~~~~~ cap32.cpp:4067:87: warning: ISO C++ forbids converting a string constant to ‘char*’ [-Wwrite-strings] 4067 | getConfigValueString(chFileName, "file", chFmtId, chFmtStr, sizeof(chFmtStr)-1, ""); | ^~ cap32.cpp:4140:37: warning: ISO C++ forbids converting a string constant to ‘char*’ [-Wwrite-strings] 4140 | getConfigValueString(chFileName, "file", "printer_file", CPC.printer_file, sizeof(CPC.printer_file)-1, chPath); | ^~~~~~ cap32.cpp:4140:45: warning: ISO C++ forbids converting a string constant to ‘char*’ [-Wwrite-strings] 4140 | getConfigValueString(chFileName, "file", "printer_file", CPC.printer_file, sizeof(CPC.printer_file)-1, chPath); | ^~~~~~~~~~~~~~ cap32.cpp:4146:37: warning: ISO C++ forbids converting a string constant to ‘char*’ [-Wwrite-strings] 4146 | getConfigValueString(chFileName, "file", "sdump_file", CPC.sdump_file, sizeof(CPC.sdump_file)-1, chPath); | ^~~~~~ cap32.cpp:4146:45: warning: ISO C++ forbids converting a string constant to ‘char*’ [-Wwrite-strings] 4146 | getConfigValueString(chFileName, "file", "sdump_file", CPC.sdump_file, sizeof(CPC.sdump_file)-1, chPath); | ^~~~~~~~~~~~ cap32.cpp:4153:37: warning: ISO C++ forbids converting a string constant to ‘char*’ [-Wwrite-strings] 4153 | getConfigValueString(chFileName, "rom", "rom_path", CPC.rom_path, sizeof(CPC.rom_path)-1, chPath); | ^~~~~ cap32.cpp:4153:44: warning: ISO C++ forbids converting a string constant to ‘char*’ [-Wwrite-strings] 4153 | getConfigValueString(chFileName, "rom", "rom_path", CPC.rom_path, sizeof(CPC.rom_path)-1, chPath); | ^~~~~~~~~~ cap32.cpp:4157:40: warning: ISO C++ forbids converting a string constant to ‘char*’ [-Wwrite-strings] 4157 | getConfigValueString(chFileName, "rom", chRomId, CPC.rom_file[iRomNum], sizeof(CPC.rom_file[iRomNum])-1, ""); | ^~~~~ cap32.cpp:4157:112: warning: ISO C++ forbids converting a string constant to ‘char*’ [-Wwrite-strings] 4157 | getConfigValueString(chFileName, "rom", chRomId, CPC.rom_file[iRomNum], sizeof(CPC.rom_file[iRomNum])-1, ""); | ^~ cap32.cpp:4167:37: warning: ISO C++ forbids converting a string constant to ‘char*’ [-Wwrite-strings] 4167 | getConfigValueString(chFileName, "rom", "rom_mf2", CPC.rom_mf2, sizeof(CPC.rom_mf2)-1, ""); | ^~~~~ cap32.cpp:4167:44: warning: ISO C++ forbids converting a string constant to ‘char*’ [-Wwrite-strings] 4167 | getConfigValueString(chFileName, "rom", "rom_mf2", CPC.rom_mf2, sizeof(CPC.rom_mf2)-1, ""); | ^~~~~~~~~ cap32.cpp:4167:91: warning: ISO C++ forbids converting a string constant to ‘char*’ [-Wwrite-strings] 4167 | getConfigValueString(chFileName, "rom", "rom_mf2", CPC.rom_mf2, sizeof(CPC.rom_mf2)-1, ""); | ^~ cap32.cpp: In function ‘int main(int, char**)’: cap32.cpp:4302:40: warning: ISO C++ forbids converting a string constant to ‘char*’ [-Wwrite-strings] 4302 | zip_info.pchExtension = ".dsk.sna.cdt.voc"; | ^~~~~~~~~~~~~~~~~~ cap32.cpp:4420:34: warning: ISO C++ forbids converting a string constant to ‘char*’ [-Wwrite-strings] 4420 | zip_info.pchExtension = ".dsk"; | ^~~~~~ cap32.cpp:4453:34: warning: ISO C++ forbids converting a string constant to ‘char*’ [-Wwrite-strings] 4453 | zip_info.pchExtension = ".dsk"; | ^~~~~~ cap32.cpp:4488:34: warning: ISO C++ forbids converting a string constant to ‘char*’ [-Wwrite-strings] 4488 | zip_info.pchExtension = ".cdt.voc"; | ^~~~~~~~~~ cap32.cpp: In function ‘int emulator_patch_ROM()’: cap32.cpp:3336:11: warning: ‘char* strncpy(char*, const char*, size_t)’ output may be truncated copying 255 bytes from a string of length 256 [-Wstringop-truncation] 3336 | strncpy(chPath, CPC.rom_path, sizeof(chPath)-2); | ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ cap32.cpp: In function ‘int snapshot_load(char*)’: cap32.cpp:2398:20: warning: ‘char* strncpy(char*, const char*, size_t)’ output may be truncated copying 255 bytes from a string of length 256 [-Wstringop-truncation] 2398 | strncpy(chPath, CPC.rom_path, sizeof(chPath)-2); | ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ cap32.cpp: In function ‘int emulator_init()’: cap32.cpp:3462:17: warning: ‘char* strncpy(char*, const char*, size_t)’ output may be truncated copying 255 bytes from a string of length 256 [-Wstringop-truncation] 3462 | strncpy(chPath, CPC.rom_path, sizeof(chPath)-2); | ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ cap32.cpp:3498:17: warning: ‘char* strncpy(char*, const char*, size_t)’ output may be truncated copying 255 bytes from a string of length 256 [-Wstringop-truncation] 3498 | strncpy(chPath, CPC.rom_path, sizeof(chPath)-2); | ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ cap32.cpp:3500:17: warning: ‘char* strncat(char*, const char*, size_t)’ output may be truncated copying between 0 and 256 bytes from a string of length 256 [-Wstringop-truncation] 3500 | strncat(chPath, CPC.rom_mf2, sizeof(chPath)-1 - strlen(chPath)); // combine path and file name | ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ cap32.cpp: In function ‘void loadConfiguration()’: cap32.cpp:3954:11: warning: ‘char* strncpy(char*, const char*, size_t)’ output may be truncated copying 247 bytes from a string of length 256 [-Wstringop-truncation] 3954 | strncpy(chFileName, chAppPath, sizeof(chFileName)-10); | ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ cap32.cpp:4026:11: warning: ‘char* strncpy(char*, const char*, size_t)’ output may be truncated copying 250 bytes from a string of length 256 [-Wstringop-truncation] 4026 | strncpy(chPath, chAppPath, sizeof(chPath)-7); | ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ cap32.cpp:4034:11: warning: ‘char* strncpy(char*, const char*, size_t)’ output may be truncated copying 250 bytes from a string of length 256 [-Wstringop-truncation] 4034 | strncpy(chPath, chAppPath, sizeof(chPath)-7); | ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ cap32.cpp:4050:11: warning: ‘char* strncpy(char*, const char*, size_t)’ output may be truncated copying 250 bytes from a string of length 256 [-Wstringop-truncation] 4050 | strncpy(chPath, chAppPath, sizeof(chPath)-7); | ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ cap32.cpp:4138:11: warning: ‘char* strncpy(char*, const char*, size_t)’ output may be truncated copying 244 bytes from a string of length 256 [-Wstringop-truncation] 4138 | strncpy(chPath, chAppPath, sizeof(chPath)-13); | ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ cap32.cpp:4144:11: warning: ‘char* strncpy(char*, const char*, size_t)’ output may be truncated copying 245 bytes from a string of length 256 [-Wstringop-truncation] 4144 | strncpy(chPath, chAppPath, sizeof(chPath)-12); | ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ cap32.cpp:4151:11: warning: ‘char* strncpy(char*, const char*, size_t)’ output may be truncated copying 252 bytes from a string of length 256 [-Wstringop-truncation] 4151 | strncpy(chPath, chAppPath, sizeof(chPath)-5); | ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ cap32.cpp: In function ‘int main(int, char**)’: cap32.cpp:4441:17: warning: ‘char* strncpy(char*, const char*, size_t)’ output may be truncated copying 256 bytes from a string of length 256 [-Wstringop-truncation] 4441 | strncpy(chFileName, CPC.drvA_path, sizeof(chFileName)-1); | ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ cap32.cpp:4476:17: warning: ‘char* strncpy(char*, const char*, size_t)’ output may be truncated copying 256 bytes from a string of length 256 [-Wstringop-truncation] 4476 | strncpy(chFileName, CPC.drvB_path, sizeof(chFileName)-1); | ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ cap32.cpp:4513:17: warning: ‘char* strncpy(char*, const char*, size_t)’ output may be truncated copying 256 bytes from a string of length 256 [-Wstringop-truncation] 4513 | strncpy(chFileName, CPC.tape_path, sizeof(chFileName)-1); | ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /usr/bin/ld: /usr/src/slapt-src-i486/system/caprice32/ccjfTvJD.o: in function `zip_extract(char*, char*, unsigned int)': cap32.cpp:(.text+0x1952): warning: the use of `tmpnam' is dangerous, better use `mkstemp' Slackware package maker, version 3.14159265. Searching for symbolic links: No symbolic links were found, so we won't make an installation script. You can make your own later in ./install/doinst.sh and rebuild the package if you like. This next step is optional - you can set the directories in your package to some sane permissions. If any of the directories in your package have special permissions, then DO NOT reset them here! Would you like to reset all directory permissions to 755 (drwxr-xr-x) and directory ownerships to root.root ([y]es, [n]o)? n Creating Slackware package: /usr/src/slapt-src-i486/system/caprice32/caprice32-4.2.0-i586-1salix15.0.txz ./ install/ install/doinst.sh install/slack-desc usr/ usr/bin/ usr/bin/cap32 usr/doc/ usr/doc/caprice32-4.2.0/ usr/doc/caprice32-4.2.0/COPYING.txt usr/doc/caprice32-4.2.0/README.txt usr/doc/caprice32-4.2.0/caprice32.SlackBuild usr/doc/caprice32-4.2.0/usage.txt usr/share/ usr/share/caprice32/ usr/share/caprice32/cap32 usr/share/caprice32/cap32.cfg usr/share/caprice32/rom/ usr/share/caprice32/rom/amsdos.rom usr/share/caprice32/rom/cpc464.rom usr/share/caprice32/rom/cpc6128.rom usr/share/caprice32/rom/cpc664.rom Slackware package /usr/src/slapt-src-i486/system/caprice32/caprice32-4.2.0-i586-1salix15.0.txz created. Installing package caprice32-4.2.0-i586-1salix15.0... | caprice32 (CPC Emulator) | | Caprice32 is a software emulator of the Amstrad CPC 8bit home | computer series. The emulator faithfully imitates the CPC464, CPC664, | and CPC6128 models. By recreating the operations of all hardware | components at a low level, the emulator achieves a high degree of | compatibility with original CPC software. These programs or games can | be run unmodified at real-time or higher speeds, depending on the | emulator host environment. | | Homepage: https://sourceforge.net/projects/caprice32/ | |