>>> Building on exopi-5 under emulators/stella BDEPENDS = [devel/sdl2;devel/gmake;graphics/png;databases/sqlite3;archivers/xz] DIST = [emulators/stella:stella-6.7.1-src.tar.xz] FULLPKGNAME = stella-6.7.1 RDEPENDS = [databases/sqlite3;devel/sdl2;graphics/png] (Junk lock obtained for exopi-5 at 1714010988.89) >>> Running depends in emulators/stella at 1714010988.93 last junk was in games/nanosaur /usr/sbin/pkg_add -aI -Drepair png-1.6.43 sdl2-2.30.0p1 was: /usr/sbin/pkg_add -aI -Drepair gmake-4.4.1 png-1.6.43 sdl2-2.30.0p1 sqlite3-3.44.2 xz-5.4.5 /usr/sbin/pkg_add -aI -Drepair png-1.6.43 sdl2-2.30.0p1 >>> Running show-prepare-results in emulators/stella at 1714010991.93 ===> emulators/stella ===> Building from scratch stella-6.7.1 ===> stella-6.7.1 depends on: gmake-* -> gmake-4.4.1 ===> stella-6.7.1 depends on: xz->=5.4.0 -> xz-5.4.5 ===> stella-6.7.1 depends on: sdl2-* -> sdl2-2.30.0p1 ===> stella-6.7.1 depends on: png-* -> png-1.6.43 ===> stella-6.7.1 depends on: sqlite3-* -> sqlite3-3.44.2 ===> Verifying specs: c++ c++abi pthread c m z pthread SDL2 png sqlite3 ===> found c++.10.0 c++abi.7.0 pthread.27.1 c.100.0 m.10.1 z.7.0 SDL2.0.15 png.18.0 sqlite3.37.26 gmake-4.4.1 png-1.6.43 sdl2-2.30.0p1 sqlite3-3.44.2 xz-5.4.5 Still tainted: host marked nojunk by x11/qt5/qt3d >>> Running junk in emulators/stella at 1714010993.49 Can't run junk because of lock on x11/qt5/qt3d (Junk lock released for exopi-5 at 1714010995.42) distfiles size=10277788 >>> Running patch in emulators/stella at 1714010995.45 ===> emulators/stella ===> Checking files for stella-6.7.1 `/exopi-cvs/ports/distfiles/stella-6.7.1-src.tar.xz' is up to date. >> (SHA256) stella-6.7.1-src.tar.xz: OK ===> Extracting for stella-6.7.1 ===> Patching for stella-6.7.1 ===> Compiler link: clang -> /usr/bin/clang ===> Compiler link: clang++ -> /usr/bin/clang++ ===> Compiler link: cc -> /usr/bin/cc ===> Compiler link: c++ -> /usr/bin/c++ >>> Running configure in emulators/stella at 1714010997.71 ===> emulators/stella ===> Generating configure for stella-6.7.1 ===> Configuring for stella-6.7.1 Running Stella configure... Looking for C++ compiler... c++ Checking for compiler version... 16.0.6, ok Checking hosttype... openbsd7.5 Checking for zlib... yes Checking for libpng... yes Checking for libsqlite3... yes Summary: GUI enabled Sound support enabled Debugger support enabled Joystick support enabled Cheatcode support enabled PNG image support enabled ZIP file support enabled Windowed rendering modes enabled Static binary disabled Profiling disabled Debug symbols disabled Looking for sdl2-config... /usr/local/bin/sdl2-config Creating config.mak >>> Running build in emulators/stella at 1714011000.28 ===> emulators/stella ===> Building for stella-6.7.1 mkdir -p -p src/unix/.deps mkdir -p -p out/src/unix c++ -MMD -MF "src/unix/.deps/FSNodePOSIX.d" -MQ "out/src/unix/FSNodePOSIX.o" -MP -O2 -pipe -I/usr/X11R6/include -I/usr/local/include -x c++ -Wall -Wextra -Wno-unused-parameter -Wno-multichar -Wunused -Woverloaded-virtual -Wnon-virtual-dtor -std=c++17 -Weverything -Wno-c++98-compat-pedantic -Wno-unknown-warning-option -Wno-switch-enum -Wno-conversion -Wno-covered-switch-default -Wno-inconsistent-missing-destructor-override -Wno-float-equal -Wno-exit-time-destructors -Wno-global-constructors -Wno-weak-vtables -Wno-four-char-constants -Wno-padded -Wno-reserved-identifier -Wno-duplicate-enum -fomit-frame-pointer -DSDL_SUPPORT -D_GLIBCXX_USE_CXX11_ABI=1 -DUNIX -DBSPF_UNIX -DGUI_SUPPORT -DWINDOWED_SUPPORT -DSOUND_SUPPORT -DDEBUGGER_SUPPORT -DJOYSTICK_SUPPORT -DCHEATCODE_SUPPORT -DHTTP_LIB_SUPPORT -DPNG_SUPPORT -DZIP_SUPPORT -Isrc/emucore -Isrc/common -Isrc/common/tv_filters -Isrc/emucore/tia -Isrc/emucore/tia/frame-manager -Isrc/json -Isrc/common/repository/sqlite -I/usr/local/include -I/usr/local/include/SDL2 -I/usr/X11R6/include -D_REENTRANT -I/usr/X11R6/include -Isrc/unix -Isrc/gui -Isrc/debugger -Isrc/debugger/gui -Isrc/yacc -Isrc/cheat -Isrc/httplib -c src/unix/FSNodePOSIX.cxx -o out/src/unix/FSNodePOSIX.o In file included from src/unix/FSNodePOSIX.cxx:24: In file included from src/unix/FSNodePOSIX.hxx:21: In file included from src/emucore/FSNode.hxx:23: src/common/bspf.hxx:245:37: warning: unsafe pointer arithmetic [-Wunsafe-buffer-usage] const auto pos = std::search(s1.cbegin()+startpos, s1.cend(), ~~~^~~~~~~~ src/common/bspf.hxx:249:56: warning: unsafe pointer arithmetic [-Wunsafe-buffer-usage] return pos == s1.cend() ? string::npos : pos - (s1.cbegin()+startpos); ~~~^~~~~~~~ In file included from src/unix/FSNodePOSIX.cxx:24: In file included from src/unix/FSNodePOSIX.hxx:21: src/emucore/FSNode.hxx:513:31: warning: unsafe pointer arithmetic [-Wunsafe-buffer-usage] const char* cur = start + str.size() - 2; ~~~~~~^~~~~~~~~~~~ src/emucore/FSNode.hxx:512:19: warning: 'start' is an unsafe pointer used for buffer access [-Wunsafe-buffer-usage] const char* start = str.c_str(); ~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~ src/emucore/FSNode.hxx:513:25: note: used in pointer arithmetic here const char* cur = start + str.size() - 2; ^~~~~ src/emucore/FSNode.hxx:513:19: warning: 'cur' is an unsafe pointer used for buffer access [-Wunsafe-buffer-usage] const char* cur = start + str.size() - 2; ~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~ src/emucore/FSNode.hxx:518:14: note: used in pointer arithmetic here return cur + 1; ^~~ src/emucore/FSNode.hxx:516:11: note: used in pointer arithmetic here --cur; ^~~ src/unix/FSNodePOSIX.cxx:87:32: warning: unsafe pointer arithmetic [-Wunsafe-buffer-usage] const char* offset = _path.c_str() + home.size(); ~~~~~~^~~~~~~ 6 warnings generated. mkdir -p -p src/unix/.deps mkdir -p -p out/src/unix c++ -MMD -MF "src/unix/.deps/OSystemUNIX.d" -MQ "out/src/unix/OSystemUNIX.o" -MP -O2 -pipe -I/usr/X11R6/include -I/usr/local/include -x c++ -Wall -Wextra -Wno-unused-parameter -Wno-multichar -Wunused -Woverloaded-virtual -Wnon-virtual-dtor -std=c++17 -Weverything -Wno-c++98-compat-pedantic -Wno-unknown-warning-option -Wno-switch-enum -Wno-conversion -Wno-covered-switch-default -Wno-inconsistent-missing-destructor-override -Wno-float-equal -Wno-exit-time-destructors -Wno-global-constructors -Wno-weak-vtables -Wno-four-char-constants -Wno-padded -Wno-reserved-identifier -Wno-duplicate-enum -fomit-frame-pointer -DSDL_SUPPORT -D_GLIBCXX_USE_CXX11_ABI=1 -DUNIX -DBSPF_UNIX -DGUI_SUPPORT -DWINDOWED_SUPPORT -DSOUND_SUPPORT -DDEBUGGER_SUPPORT -DJOYSTICK_SUPPORT -DCHEATCODE_SUPPORT -DHTTP_LIB_SUPPORT -DPNG_SUPPORT -DZIP_SUPPORT -Isrc/emucore -Isrc/common -Isrc/common/tv_filters -Isrc/emucore/tia -Isrc/emucore/tia/frame-manager -Isrc/json -Isrc/common/repository/sqlite -I/usr/local/include -I/usr/local/include/SDL2 -I/usr/X11R6/include -D_REENTRANT -I/usr/X11R6/include -Isrc/unix -Isrc/gui -Isrc/debugger -Isrc/debugger/gui -Isrc/yacc -Isrc/cheat -Isrc/httplib -c src/unix/OSystemUNIX.cxx -o out/src/unix/OSystemUNIX.o In file included from src/unix/OSystemUNIX.cxx:20: In file included from src/emucore/FSNode.hxx:23: src/common/bspf.hxx:245:37: warning: unsafe pointer arithmetic [-Wunsafe-buffer-usage] const auto pos = std::search(s1.cbegin()+startpos, s1.cend(), ~~~^~~~~~~~ src/common/bspf.hxx:249:56: warning: unsafe pointer arithmetic [-Wunsafe-buffer-usage] return pos == s1.cend() ? string::npos : pos - (s1.cbegin()+startpos); ~~~^~~~~~~~ In file included from src/unix/OSystemUNIX.cxx:20: src/emucore/FSNode.hxx:513:31: warning: unsafe pointer arithmetic [-Wunsafe-buffer-usage] const char* cur = start + str.size() - 2; ~~~~~~^~~~~~~~~~~~ src/emucore/FSNode.hxx:512:19: warning: 'start' is an unsafe pointer used for buffer access [-Wunsafe-buffer-usage] const char* start = str.c_str(); ~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~ src/emucore/FSNode.hxx:513:25: note: used in pointer arithmetic here const char* cur = start + str.size() - 2; ^~~~~ src/emucore/FSNode.hxx:513:19: warning: 'cur' is an unsafe pointer used for buffer access [-Wunsafe-buffer-usage] const char* cur = start + str.size() - 2; ~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~ src/emucore/FSNode.hxx:516:11: note: used in pointer arithmetic here --cur; ^~~ src/emucore/FSNode.hxx:518:14: note: used in pointer arithmetic here return cur + 1; ^~~ 5 warnings generated. mkdir -p -p src/unix/.deps mkdir -p -p out/src/unix c++ -MMD -MF "src/unix/.deps/SerialPortUNIX.d" -MQ "out/src/unix/SerialPortUNIX.o" -MP -O2 -pipe -I/usr/X11R6/include -I/usr/local/include -x c++ -Wall -Wextra -Wno-unused-parameter -Wno-multichar -Wunused -Woverloaded-virtual -Wnon-virtual-dtor -std=c++17 -Weverything -Wno-c++98-compat-pedantic -Wno-unknown-warning-option -Wno-switch-enum -Wno-conversion -Wno-covered-switch-default -Wno-inconsistent-missing-destructor-override -Wno-float-equal -Wno-exit-time-destructors -Wno-global-constructors -Wno-weak-vtables -Wno-four-char-constants -Wno-padded -Wno-reserved-identifier -Wno-duplicate-enum -fomit-frame-pointer -DSDL_SUPPORT -D_GLIBCXX_USE_CXX11_ABI=1 -DUNIX -DBSPF_UNIX -DGUI_SUPPORT -DWINDOWED_SUPPORT -DSOUND_SUPPORT -DDEBUGGER_SUPPORT -DJOYSTICK_SUPPORT -DCHEATCODE_SUPPORT -DHTTP_LIB_SUPPORT -DPNG_SUPPORT -DZIP_SUPPORT -Isrc/emucore -Isrc/common -Isrc/common/tv_filters -Isrc/emucore/tia -Isrc/emucore/tia/frame-manager -Isrc/json -Isrc/common/repository/sqlite -I/usr/local/include -I/usr/local/include/SDL2 -I/usr/X11R6/include -D_REENTRANT -I/usr/X11R6/include -Isrc/unix -Isrc/gui -Isrc/debugger -Isrc/debugger/gui -Isrc/yacc -Isrc/cheat -Isrc/httplib -c src/unix/SerialPortUNIX.cxx -o out/src/unix/SerialPortUNIX.o In file included from src/unix/SerialPortUNIX.cxx:27: In file included from src/emucore/FSNode.hxx:23: src/common/bspf.hxx:245:37: warning: unsafe pointer arithmetic [-Wunsafe-buffer-usage] const auto pos = std::search(s1.cbegin()+startpos, s1.cend(), ~~~^~~~~~~~ src/common/bspf.hxx:249:56: warning: unsafe pointer arithmetic [-Wunsafe-buffer-usage] return pos == s1.cend() ? string::npos : pos - (s1.cbegin()+startpos); ~~~^~~~~~~~ In file included from src/unix/SerialPortUNIX.cxx:27: src/emucore/FSNode.hxx:513:31: warning: unsafe pointer arithmetic [-Wunsafe-buffer-usage] const char* cur = start + str.size() - 2; ~~~~~~^~~~~~~~~~~~ src/emucore/FSNode.hxx:512:19: warning: 'start' is an unsafe pointer used for buffer access [-Wunsafe-buffer-usage] const char* start = str.c_str(); ~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~ src/emucore/FSNode.hxx:513:25: note: used in pointer arithmetic here const char* cur = start + str.size() - 2; ^~~~~ src/emucore/FSNode.hxx:513:19: warning: 'cur' is an unsafe pointer used for buffer access [-Wunsafe-buffer-usage] const char* cur = start + str.size() - 2; ~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~ src/emucore/FSNode.hxx:518:14: note: used in pointer arithmetic here return cur + 1; ^~~ src/emucore/FSNode.hxx:516:11: note: used in pointer arithmetic here --cur; ^~~ 5 warnings generated. mkdir -p -p src/gui/.deps mkdir -p -p out/src/gui c++ -MMD -MF "src/gui/.deps/AboutDialog.d" -MQ "out/src/gui/AboutDialog.o" -MP -O2 -pipe -I/usr/X11R6/include -I/usr/local/include -x c++ -Wall -Wextra -Wno-unused-parameter -Wno-multichar -Wunused -Woverloaded-virtual -Wnon-virtual-dtor -std=c++17 -Weverything -Wno-c++98-compat-pedantic -Wno-unknown-warning-option -Wno-switch-enum -Wno-conversion -Wno-covered-switch-default -Wno-inconsistent-missing-destructor-override -Wno-float-equal -Wno-exit-time-destructors -Wno-global-constructors -Wno-weak-vtables -Wno-four-char-constants -Wno-padded -Wno-reserved-identifier -Wno-duplicate-enum -fomit-frame-pointer -DSDL_SUPPORT -D_GLIBCXX_USE_CXX11_ABI=1 -DUNIX -DBSPF_UNIX -DGUI_SUPPORT -DWINDOWED_SUPPORT -DSOUND_SUPPORT -DDEBUGGER_SUPPORT -DJOYSTICK_SUPPORT -DCHEATCODE_SUPPORT -DHTTP_LIB_SUPPORT -DPNG_SUPPORT -DZIP_SUPPORT -Isrc/emucore -Isrc/common -Isrc/common/tv_filters -Isrc/emucore/tia -Isrc/emucore/tia/frame-manager -Isrc/json -Isrc/common/repository/sqlite -I/usr/local/include -I/usr/local/include/SDL2 -I/usr/X11R6/include -D_REENTRANT -I/usr/X11R6/include -Isrc/unix -Isrc/gui -Isrc/debugger -Isrc/debugger/gui -Isrc/yacc -Isrc/cheat -Isrc/httplib -c src/gui/AboutDialog.cxx -o out/src/gui/AboutDialog.o In file included from src/gui/AboutDialog.cxx:18: In file included from src/gui/Dialog.hxx:31: In file included from src/gui/Widget.hxx:28: src/common/bspf.hxx:245:37: warning: unsafe pointer arithmetic [-Wunsafe-buffer-usage] const auto pos = std::search(s1.cbegin()+startpos, s1.cend(), ~~~^~~~~~~~ src/common/bspf.hxx:249:56: warning: unsafe pointer arithmetic [-Wunsafe-buffer-usage] return pos == s1.cend() ? string::npos : pos - (s1.cbegin()+startpos); ~~~^~~~~~~~ In file included from src/gui/AboutDialog.cxx:18: In file included from src/gui/Dialog.hxx:31: In file included from src/gui/Widget.hxx:33: In file included from src/common/StellaKeys.hxx:22: In file included from src/common/SDL_lib.hxx:34: In file included from /usr/local/include/SDL2/SDL.h:32: In file included from /usr/local/include/SDL2/SDL_main.h:25: /usr/local/include/SDL2/SDL_stdinc.h:544:13: warning: '_p' is an unsafe pointer used for buffer access [-Wunsafe-buffer-usage] Uint32 *_p = SDL_static_cast(Uint32 *, dst); ~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /usr/local/include/SDL2/SDL_stdinc.h:553:26: note: used in pointer arithmetic here case 1: *_p++ = _val; ^~ /usr/local/include/SDL2/SDL_stdinc.h:551:26: note: used in pointer arithmetic here case 3: *_p++ = _val; SDL_FALLTHROUGH; ^~ /usr/local/include/SDL2/SDL_stdinc.h:552:26: note: used in pointer arithmetic here case 2: *_p++ = _val; SDL_FALLTHROUGH; ^~ /usr/local/include/SDL2/SDL_stdinc.h:550:26: note: used in pointer arithmetic here case 0: do { *_p++ = _val; SDL_FALLTHROUGH; ^~ In file included from src/gui/AboutDialog.cxx:19: In file included from src/emucore/OSystem.hxx:55: src/emucore/FSNode.hxx:513:31: warning: unsafe pointer arithmetic [-Wunsafe-buffer-usage] const char* cur = start + str.size() - 2; ~~~~~~^~~~~~~~~~~~ src/emucore/FSNode.hxx:512:19: warning: 'start' is an unsafe pointer used for buffer access [-Wunsafe-buffer-usage] const char* start = str.c_str(); ~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~ src/emucore/FSNode.hxx:513:25: note: used in pointer arithmetic here const char* cur = start + str.size() - 2; ^~~~~ src/emucore/FSNode.hxx:513:19: warning: 'cur' is an unsafe pointer used for buffer access [-Wunsafe-buffer-usage] const char* cur = start + str.size() - 2; ~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~ src/emucore/FSNode.hxx:518:14: note: used in pointer arithmetic here return cur + 1; ^~~ src/emucore/FSNode.hxx:516:11: note: used in pointer arithmetic here --cur; ^~~ src/gui/AboutDialog.cxx:190:17: warning: 'str' is an unsafe pointer used for buffer access [-Wunsafe-buffer-usage] const char* str = myDescStr[i].c_str(); ~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~ src/gui/AboutDialog.cxx:211:19: note: used in buffer access here switch (str[2]) ^~~ src/gui/AboutDialog.cxx:240:7: note: used in pointer arithmetic here str += 2; ^~~ src/gui/AboutDialog.cxx:196:15: note: used in buffer access here switch (str[1]) ^~~ src/gui/AboutDialog.cxx:234:11: note: used in pointer arithmetic here str++; ^~~ 7 warnings generated. mkdir -p -p src/gui/.deps mkdir -p -p out/src/gui c++ -MMD -MF "src/gui/.deps/BrowserDialog.d" -MQ "out/src/gui/BrowserDialog.o" -MP -O2 -pipe -I/usr/X11R6/include -I/usr/local/include -x c++ -Wall -Wextra -Wno-unused-parameter -Wno-multichar -Wunused -Woverloaded-virtual -Wnon-virtual-dtor -std=c++17 -Weverything -Wno-c++98-compat-pedantic -Wno-unknown-warning-option -Wno-switch-enum -Wno-conversion -Wno-covered-switch-default -Wno-inconsistent-missing-destructor-override -Wno-float-equal -Wno-exit-time-destructors -Wno-global-constructors -Wno-weak-vtables -Wno-four-char-constants -Wno-padded -Wno-reserved-identifier -Wno-duplicate-enum -fomit-frame-pointer -DSDL_SUPPORT -D_GLIBCXX_USE_CXX11_ABI=1 -DUNIX -DBSPF_UNIX -DGUI_SUPPORT -DWINDOWED_SUPPORT -DSOUND_SUPPORT -DDEBUGGER_SUPPORT -DJOYSTICK_SUPPORT -DCHEATCODE_SUPPORT -DHTTP_LIB_SUPPORT -DPNG_SUPPORT -DZIP_SUPPORT -Isrc/emucore -Isrc/common -Isrc/common/tv_filters -Isrc/emucore/tia -Isrc/emucore/tia/frame-manager -Isrc/json -Isrc/common/repository/sqlite -I/usr/local/include -I/usr/local/include/SDL2 -I/usr/X11R6/include -D_REENTRANT -I/usr/X11R6/include -Isrc/unix -Isrc/gui -Isrc/debugger -Isrc/debugger/gui -Isrc/yacc -Isrc/cheat -Isrc/httplib -c src/gui/BrowserDialog.cxx -o out/src/gui/BrowserDialog.o In file included from src/gui/BrowserDialog.cxx:18: src/common/bspf.hxx:245:37: warning: unsafe pointer arithmetic [-Wunsafe-buffer-usage] const auto pos = std::search(s1.cbegin()+startpos, s1.cend(), ~~~^~~~~~~~ src/common/bspf.hxx:249:56: warning: unsafe pointer arithmetic [-Wunsafe-buffer-usage] return pos == s1.cend() ? string::npos : pos - (s1.cbegin()+startpos); ~~~^~~~~~~~ In file included from src/gui/BrowserDialog.cxx:19: In file included from src/gui/Dialog.hxx:31: In file included from src/gui/Widget.hxx:33: In file included from src/common/StellaKeys.hxx:22: In file included from src/common/SDL_lib.hxx:34: In file included from /usr/local/include/SDL2/SDL.h:32: In file included from /usr/local/include/SDL2/SDL_main.h:25: /usr/local/include/SDL2/SDL_stdinc.h:544:13: warning: '_p' is an unsafe pointer used for buffer access [-Wunsafe-buffer-usage] Uint32 *_p = SDL_static_cast(Uint32 *, dst); ~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /usr/local/include/SDL2/SDL_stdinc.h:553:26: note: used in pointer arithmetic here case 1: *_p++ = _val; ^~ /usr/local/include/SDL2/SDL_stdinc.h:552:26: note: used in pointer arithmetic here case 2: *_p++ = _val; SDL_FALLTHROUGH; ^~ /usr/local/include/SDL2/SDL_stdinc.h:550:26: note: used in pointer arithmetic here case 0: do { *_p++ = _val; SDL_FALLTHROUGH; ^~ /usr/local/include/SDL2/SDL_stdinc.h:551:26: note: used in pointer arithmetic here case 3: *_p++ = _val; SDL_FALLTHROUGH; ^~ In file included from src/gui/BrowserDialog.cxx:20: src/emucore/FSNode.hxx:513:31: warning: unsafe pointer arithmetic [-Wunsafe-buffer-usage] const char* cur = start + str.size() - 2; ~~~~~~^~~~~~~~~~~~ src/emucore/FSNode.hxx:512:19: warning: 'start' is an unsafe pointer used for buffer access [-Wunsafe-buffer-usage] const char* start = str.c_str(); ~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~ src/emucore/FSNode.hxx:513:25: note: used in pointer arithmetic here const char* cur = start + str.size() - 2; ^~~~~ src/emucore/FSNode.hxx:513:19: warning: 'cur' is an unsafe pointer used for buffer access [-Wunsafe-buffer-usage] const char* cur = start + str.size() - 2; ~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~ src/emucore/FSNode.hxx:516:11: note: used in pointer arithmetic here --cur; ^~~ src/emucore/FSNode.hxx:518:14: note: used in pointer arithmetic here return cur + 1; ^~~ 6 warnings generated. mkdir -p -p src/gui/.deps mkdir -p -p out/src/gui c++ -MMD -MF "src/gui/.deps/CheckListWidget.d" -MQ "out/src/gui/CheckListWidget.o" -MP -O2 -pipe -I/usr/X11R6/include -I/usr/local/include -x c++ -Wall -Wextra -Wno-unused-parameter -Wno-multichar -Wunused -Woverloaded-virtual -Wnon-virtual-dtor -std=c++17 -Weverything -Wno-c++98-compat-pedantic -Wno-unknown-warning-option -Wno-switch-enum -Wno-conversion -Wno-covered-switch-default -Wno-inconsistent-missing-destructor-override -Wno-float-equal -Wno-exit-time-destructors -Wno-global-constructors -Wno-weak-vtables -Wno-four-char-constants -Wno-padded -Wno-reserved-identifier -Wno-duplicate-enum -fomit-frame-pointer -DSDL_SUPPORT -D_GLIBCXX_USE_CXX11_ABI=1 -DUNIX -DBSPF_UNIX -DGUI_SUPPORT -DWINDOWED_SUPPORT -DSOUND_SUPPORT -DDEBUGGER_SUPPORT -DJOYSTICK_SUPPORT -DCHEATCODE_SUPPORT -DHTTP_LIB_SUPPORT -DPNG_SUPPORT -DZIP_SUPPORT -Isrc/emucore -Isrc/common -Isrc/common/tv_filters -Isrc/emucore/tia -Isrc/emucore/tia/frame-manager -Isrc/json -Isrc/common/repository/sqlite -I/usr/local/include -I/usr/local/include/SDL2 -I/usr/X11R6/include -D_REENTRANT -I/usr/X11R6/include -Isrc/unix -Isrc/gui -Isrc/debugger -Isrc/debugger/gui -Isrc/yacc -Isrc/cheat -Isrc/httplib -c src/gui/CheckListWidget.cxx -o out/src/gui/CheckListWidget.o In file included from src/gui/CheckListWidget.cxx:18: In file included from src/gui/Dialog.hxx:31: In file included from src/gui/Widget.hxx:28: src/common/bspf.hxx:245:37: warning: unsafe pointer arithmetic [-Wunsafe-buffer-usage] const auto pos = std::search(s1.cbegin()+startpos, s1.cend(), ~~~^~~~~~~~ src/common/bspf.hxx:249:56: warning: unsafe pointer arithmetic [-Wunsafe-buffer-usage] return pos == s1.cend() ? string::npos : pos - (s1.cbegin()+startpos); ~~~^~~~~~~~ In file included from src/gui/CheckListWidget.cxx:18: In file included from src/gui/Dialog.hxx:31: In file included from src/gui/Widget.hxx:33: In file included from src/common/StellaKeys.hxx:22: In file included from src/common/SDL_lib.hxx:34: In file included from /usr/local/include/SDL2/SDL.h:32: In file included from /usr/local/include/SDL2/SDL_main.h:25: /usr/local/include/SDL2/SDL_stdinc.h:544:13: warning: '_p' is an unsafe pointer used for buffer access [-Wunsafe-buffer-usage] Uint32 *_p = SDL_static_cast(Uint32 *, dst); ~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /usr/local/include/SDL2/SDL_stdinc.h:553:26: note: used in pointer arithmetic here case 1: *_p++ = _val; ^~ /usr/local/include/SDL2/SDL_stdinc.h:552:26: note: used in pointer arithmetic here case 2: *_p++ = _val; SDL_FALLTHROUGH; ^~ /usr/local/include/SDL2/SDL_stdinc.h:551:26: note: used in pointer arithmetic here case 3: *_p++ = _val; SDL_FALLTHROUGH; ^~ /usr/local/include/SDL2/SDL_stdinc.h:550:26: note: used in pointer arithmetic here case 0: do { *_p++ = _val; SDL_FALLTHROUGH; ^~ 3 warnings generated. mkdir -p -p src/gui/.deps mkdir -p -p out/src/gui c++ -MMD -MF "src/gui/.deps/ColorWidget.d" -MQ "out/src/gui/ColorWidget.o" -MP -O2 -pipe -I/usr/X11R6/include -I/usr/local/include -x c++ -Wall -Wextra -Wno-unused-parameter -Wno-multichar -Wunused -Woverloaded-virtual -Wnon-virtual-dtor -std=c++17 -Weverything -Wno-c++98-compat-pedantic -Wno-unknown-warning-option -Wno-switch-enum -Wno-conversion -Wno-covered-switch-default -Wno-inconsistent-missing-destructor-override -Wno-float-equal -Wno-exit-time-destructors -Wno-global-constructors -Wno-weak-vtables -Wno-four-char-constants -Wno-padded -Wno-reserved-identifier -Wno-duplicate-enum -fomit-frame-pointer -DSDL_SUPPORT -D_GLIBCXX_USE_CXX11_ABI=1 -DUNIX -DBSPF_UNIX -DGUI_SUPPORT -DWINDOWED_SUPPORT -DSOUND_SUPPORT -DDEBUGGER_SUPPORT -DJOYSTICK_SUPPORT -DCHEATCODE_SUPPORT -DHTTP_LIB_SUPPORT -DPNG_SUPPORT -DZIP_SUPPORT -Isrc/emucore -Isrc/common -Isrc/common/tv_filters -Isrc/emucore/tia -Isrc/emucore/tia/frame-manager -Isrc/json -Isrc/common/repository/sqlite -I/usr/local/include -I/usr/local/include/SDL2 -I/usr/X11R6/include -D_REENTRANT -I/usr/X11R6/include -Isrc/unix -Isrc/gui -Isrc/debugger -Isrc/debugger/gui -Isrc/yacc -Isrc/cheat -Isrc/httplib -c src/gui/ColorWidget.cxx -o out/src/gui/ColorWidget.o In file included from src/gui/ColorWidget.cxx:18: src/common/bspf.hxx:245:37: warning: unsafe pointer arithmetic [-Wunsafe-buffer-usage] const auto pos = std::search(s1.cbegin()+startpos, s1.cend(), ~~~^~~~~~~~ src/common/bspf.hxx:249:56: warning: unsafe pointer arithmetic [-Wunsafe-buffer-usage] return pos == s1.cend() ? string::npos : pos - (s1.cbegin()+startpos); ~~~^~~~~~~~ In file included from src/gui/ColorWidget.cxx:20: In file included from src/gui/Dialog.hxx:31: In file included from src/gui/Widget.hxx:33: In file included from src/common/StellaKeys.hxx:22: In file included from src/common/SDL_lib.hxx:34: In file included from /usr/local/include/SDL2/SDL.h:32: In file included from /usr/local/include/SDL2/SDL_main.h:25: /usr/local/include/SDL2/SDL_stdinc.h:544:13: warning: '_p' is an unsafe pointer used for buffer access [-Wunsafe-buffer-usage] Uint32 *_p = SDL_static_cast(Uint32 *, dst); ~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /usr/local/include/SDL2/SDL_stdinc.h:553:26: note: used in pointer arithmetic here case 1: *_p++ = _val; ^~ /usr/local/include/SDL2/SDL_stdinc.h:552:26: note: used in pointer arithmetic here case 2: *_p++ = _val; SDL_FALLTHROUGH; ^~ /usr/local/include/SDL2/SDL_stdinc.h:551:26: note: used in pointer arithmetic here case 3: *_p++ = _val; SDL_FALLTHROUGH; ^~ /usr/local/include/SDL2/SDL_stdinc.h:550:26: note: used in pointer arithmetic here case 0: do { *_p++ = _val; SDL_FALLTHROUGH; ^~ In file included from src/gui/ColorWidget.cxx:23: In file included from src/emucore/OSystem.hxx:55: src/emucore/FSNode.hxx:513:31: warning: unsafe pointer arithmetic [-Wunsafe-buffer-usage] const char* cur = start + str.size() - 2; ~~~~~~^~~~~~~~~~~~ src/emucore/FSNode.hxx:512:19: warning: 'start' is an unsafe pointer used for buffer access [-Wunsafe-buffer-usage] const char* start = str.c_str(); ~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~ src/emucore/FSNode.hxx:513:25: note: used in pointer arithmetic here const char* cur = start + str.size() - 2; ^~~~~ src/emucore/FSNode.hxx:513:19: warning: 'cur' is an unsafe pointer used for buffer access [-Wunsafe-buffer-usage] const char* cur = start + str.size() - 2; ~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~ src/emucore/FSNode.hxx:516:11: note: used in pointer arithmetic here --cur; ^~~ src/emucore/FSNode.hxx:518:14: note: used in pointer arithmetic here return cur + 1; ^~~ 6 warnings generated. mkdir -p -p src/gui/.deps mkdir -p -p out/src/gui c++ -MMD -MF "src/gui/.deps/ComboDialog.d" -MQ "out/src/gui/ComboDialog.o" -MP -O2 -pipe -I/usr/X11R6/include -I/usr/local/include -x c++ -Wall -Wextra -Wno-unused-parameter -Wno-multichar -Wunused -Woverloaded-virtual -Wnon-virtual-dtor -std=c++17 -Weverything -Wno-c++98-compat-pedantic -Wno-unknown-warning-option -Wno-switch-enum -Wno-conversion -Wno-covered-switch-default -Wno-inconsistent-missing-destructor-override -Wno-float-equal -Wno-exit-time-destructors -Wno-global-constructors -Wno-weak-vtables -Wno-four-char-constants -Wno-padded -Wno-reserved-identifier -Wno-duplicate-enum -fomit-frame-pointer -DSDL_SUPPORT -D_GLIBCXX_USE_CXX11_ABI=1 -DUNIX -DBSPF_UNIX -DGUI_SUPPORT -DWINDOWED_SUPPORT -DSOUND_SUPPORT -DDEBUGGER_SUPPORT -DJOYSTICK_SUPPORT -DCHEATCODE_SUPPORT -DHTTP_LIB_SUPPORT -DPNG_SUPPORT -DZIP_SUPPORT -Isrc/emucore -Isrc/common -Isrc/common/tv_filters -Isrc/emucore/tia -Isrc/emucore/tia/frame-manager -Isrc/json -Isrc/common/repository/sqlite -I/usr/local/include -I/usr/local/include/SDL2 -I/usr/X11R6/include -D_REENTRANT -I/usr/X11R6/include -Isrc/unix -Isrc/gui -Isrc/debugger -Isrc/debugger/gui -Isrc/yacc -Isrc/cheat -Isrc/httplib -c src/gui/ComboDialog.cxx -o out/src/gui/ComboDialog.o In file included from src/gui/ComboDialog.cxx:18: src/common/bspf.hxx:245:37: warning: unsafe pointer arithmetic [-Wunsafe-buffer-usage] const auto pos = std::search(s1.cbegin()+startpos, s1.cend(), ~~~^~~~~~~~ src/common/bspf.hxx:249:56: warning: unsafe pointer arithmetic [-Wunsafe-buffer-usage] return pos == s1.cend() ? string::npos : pos - (s1.cbegin()+startpos); ~~~^~~~~~~~ In file included from src/gui/ComboDialog.cxx:20: In file included from src/gui/Dialog.hxx:31: In file included from src/gui/Widget.hxx:33: In file included from src/common/StellaKeys.hxx:22: In file included from src/common/SDL_lib.hxx:34: In file included from /usr/local/include/SDL2/SDL.h:32: In file included from /usr/local/include/SDL2/SDL_main.h:25: /usr/local/include/SDL2/SDL_stdinc.h:544:13: warning: '_p' is an unsafe pointer used for buffer access [-Wunsafe-buffer-usage] Uint32 *_p = SDL_static_cast(Uint32 *, dst); ~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /usr/local/include/SDL2/SDL_stdinc.h:552:26: note: used in pointer arithmetic here case 2: *_p++ = _val; SDL_FALLTHROUGH; ^~ /usr/local/include/SDL2/SDL_stdinc.h:553:26: note: used in pointer arithmetic here case 1: *_p++ = _val; ^~ /usr/local/include/SDL2/SDL_stdinc.h:550:26: note: used in pointer arithmetic here case 0: do { *_p++ = _val; SDL_FALLTHROUGH; ^~ /usr/local/include/SDL2/SDL_stdinc.h:551:26: note: used in pointer arithmetic here case 3: *_p++ = _val; SDL_FALLTHROUGH; ^~ In file included from src/gui/ComboDialog.cxx:22: In file included from src/emucore/OSystem.hxx:55: src/emucore/FSNode.hxx:513:31: warning: unsafe pointer arithmetic [-Wunsafe-buffer-usage] const char* cur = start + str.size() - 2; ~~~~~~^~~~~~~~~~~~ src/emucore/FSNode.hxx:512:19: warning: 'start' is an unsafe pointer used for buffer access [-Wunsafe-buffer-usage] const char* start = str.c_str(); ~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~ src/emucore/FSNode.hxx:513:25: note: used in pointer arithmetic here const char* cur = start + str.size() - 2; ^~~~~ src/emucore/FSNode.hxx:513:19: warning: 'cur' is an unsafe pointer used for buffer access [-Wunsafe-buffer-usage] const char* cur = start + str.size() - 2; ~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~ src/emucore/FSNode.hxx:516:11: note: used in pointer arithmetic here --cur; ^~~ src/emucore/FSNode.hxx:518:14: note: used in pointer arithmetic here return cur + 1; ^~~ 6 warnings generated. mkdir -p -p src/gui/.deps mkdir -p -p out/src/gui c++ -MMD -MF "src/gui/.deps/CommandDialog.d" -MQ "out/src/gui/CommandDialog.o" -MP -O2 -pipe -I/usr/X11R6/include -I/usr/local/include -x c++ -Wall -Wextra -Wno-unused-parameter -Wno-multichar -Wunused -Woverloaded-virtual -Wnon-virtual-dtor -std=c++17 -Weverything -Wno-c++98-compat-pedantic -Wno-unknown-warning-option -Wno-switch-enum -Wno-conversion -Wno-covered-switch-default -Wno-inconsistent-missing-destructor-override -Wno-float-equal -Wno-exit-time-destructors -Wno-global-constructors -Wno-weak-vtables -Wno-four-char-constants -Wno-padded -Wno-reserved-identifier -Wno-duplicate-enum -fomit-frame-pointer -DSDL_SUPPORT -D_GLIBCXX_USE_CXX11_ABI=1 -DUNIX -DBSPF_UNIX -DGUI_SUPPORT -DWINDOWED_SUPPORT -DSOUND_SUPPORT -DDEBUGGER_SUPPORT -DJOYSTICK_SUPPORT -DCHEATCODE_SUPPORT -DHTTP_LIB_SUPPORT -DPNG_SUPPORT -DZIP_SUPPORT -Isrc/emucore -Isrc/common -Isrc/common/tv_filters -Isrc/emucore/tia -Isrc/emucore/tia/frame-manager -Isrc/json -Isrc/common/repository/sqlite -I/usr/local/include -I/usr/local/include/SDL2 -I/usr/X11R6/include -D_REENTRANT -I/usr/X11R6/include -Isrc/unix -Isrc/gui -Isrc/debugger -Isrc/debugger/gui -Isrc/yacc -Isrc/cheat -Isrc/httplib -c src/gui/CommandDialog.cxx -o out/src/gui/CommandDialog.o In file included from src/gui/CommandDialog.cxx:18: In file included from src/emucore/Console.hxx:34: src/common/bspf.hxx:245:37: warning: unsafe pointer arithmetic [-Wunsafe-buffer-usage] const auto pos = std::search(s1.cbegin()+startpos, s1.cend(), ~~~^~~~~~~~ src/common/bspf.hxx:249:56: warning: unsafe pointer arithmetic [-Wunsafe-buffer-usage] return pos == s1.cend() ? string::npos : pos - (s1.cbegin()+startpos); ~~~^~~~~~~~ In file included from src/gui/CommandDialog.cxx:19: In file included from src/common/PaletteHandler.hxx:22: In file included from src/emucore/OSystem.hxx:55: src/emucore/FSNode.hxx:513:31: warning: unsafe pointer arithmetic [-Wunsafe-buffer-usage] const char* cur = start + str.size() - 2; ~~~~~~^~~~~~~~~~~~ src/emucore/FSNode.hxx:512:19: warning: 'start' is an unsafe pointer used for buffer access [-Wunsafe-buffer-usage] const char* start = str.c_str(); ~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~ src/emucore/FSNode.hxx:513:25: note: used in pointer arithmetic here const char* cur = start + str.size() - 2; ^~~~~ src/emucore/FSNode.hxx:513:19: warning: 'cur' is an unsafe pointer used for buffer access [-Wunsafe-buffer-usage] const char* cur = start + str.size() - 2; ~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~ src/emucore/FSNode.hxx:516:11: note: used in pointer arithmetic here --cur; ^~~ src/emucore/FSNode.hxx:518:14: note: used in pointer arithmetic here return cur + 1; ^~~ In file included from src/gui/CommandDialog.cxx:20: In file included from src/emucore/tia/TIA.hxx:37: src/emucore/tia/Missile.hxx:170:7: warning: unsafe buffer access [-Wunsafe-buffer-usage] if (myDecodes[myCounter] && !myResmp) { ^~~~~~~~~ src/emucore/tia/Missile.hxx:173:14: warning: unsafe buffer access [-Wunsafe-buffer-usage] myCopy = myDecodes[myCounter]; ^~~~~~~~~ In file included from src/gui/CommandDialog.cxx:20: In file included from src/emucore/tia/TIA.hxx:38: src/emucore/tia/Player.hxx:186:7: warning: unsafe buffer access [-Wunsafe-buffer-usage] if (myDecodes[myCounter]) { ^~~~~~~~~ src/emucore/tia/Player.hxx:190:14: warning: unsafe buffer access [-Wunsafe-buffer-usage] myCopy = myDecodes[myCounter]; ^~~~~~~~~ In file included from src/gui/CommandDialog.cxx:22: In file included from src/gui/Dialog.hxx:31: In file included from src/gui/Widget.hxx:33: In file included from src/common/StellaKeys.hxx:22: In file included from src/common/SDL_lib.hxx:34: In file included from /usr/local/include/SDL2/SDL.h:32: In file included from /usr/local/include/SDL2/SDL_main.h:25: /usr/local/include/SDL2/SDL_stdinc.h:544:13: warning: '_p' is an unsafe pointer used for buffer access [-Wunsafe-buffer-usage] Uint32 *_p = SDL_static_cast(Uint32 *, dst); ~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /usr/local/include/SDL2/SDL_stdinc.h:552:26: note: used in pointer arithmetic here case 2: *_p++ = _val; SDL_FALLTHROUGH; ^~ /usr/local/include/SDL2/SDL_stdinc.h:551:26: note: used in pointer arithmetic here case 3: *_p++ = _val; SDL_FALLTHROUGH; ^~ /usr/local/include/SDL2/SDL_stdinc.h:550:26: note: used in pointer arithmetic here case 0: do { *_p++ = _val; SDL_FALLTHROUGH; ^~ /usr/local/include/SDL2/SDL_stdinc.h:553:26: note: used in pointer arithmetic here case 1: *_p++ = _val; ^~ In file included from src/gui/CommandDialog.cxx:30: In file included from src/emucore/TIASurface.hxx:31: In file included from src/common/tv_filters/NTSCFilter.hxx:25: src/common/tv_filters/AtariNTSC.hxx:238:22: warning: 'to_rgb' is an unsafe pointer used for buffer access [-Wunsafe-buffer-usage] const float* to_rgb, int& ir, int& ig, int& ib) { ~~~~~~~~~~~~~^~~~~~ src/common/tv_filters/AtariNTSC.hxx:240:33: note: used in buffer access here ig = static_cast(y + to_rgb[2] * i + to_rgb[3] * q); ^~~~~~ src/common/tv_filters/AtariNTSC.hxx:239:49: note: used in buffer access here ir = static_cast(y + to_rgb[0] * i + to_rgb[1] * q); ^~~~~~ src/common/tv_filters/AtariNTSC.hxx:241:49: note: used in buffer access here ib = static_cast(y + to_rgb[4] * i + to_rgb[5] * q); ^~~~~~ src/common/tv_filters/AtariNTSC.hxx:240:49: note: used in buffer access here ig = static_cast(y + to_rgb[2] * i + to_rgb[3] * q); ^~~~~~ src/common/tv_filters/AtariNTSC.hxx:241:33: note: used in buffer access here ib = static_cast(y + to_rgb[4] * i + to_rgb[5] * q); ^~~~~~ 11 warnings generated. mkdir -p -p src/gui/.deps mkdir -p -p out/src/gui c++ -MMD -MF "src/gui/.deps/CommandMenu.d" -MQ "out/src/gui/CommandMenu.o" -MP -O2 -pipe -I/usr/X11R6/include -I/usr/local/include -x c++ -Wall -Wextra -Wno-unused-parameter -Wno-multichar -Wunused -Woverloaded-virtual -Wnon-virtual-dtor -std=c++17 -Weverything -Wno-c++98-compat-pedantic -Wno-unknown-warning-option -Wno-switch-enum -Wno-conversion -Wno-covered-switch-default -Wno-inconsistent-missing-destructor-override -Wno-float-equal -Wno-exit-time-destructors -Wno-global-constructors -Wno-weak-vtables -Wno-four-char-constants -Wno-padded -Wno-reserved-identifier -Wno-duplicate-enum -fomit-frame-pointer -DSDL_SUPPORT -D_GLIBCXX_USE_CXX11_ABI=1 -DUNIX -DBSPF_UNIX -DGUI_SUPPORT -DWINDOWED_SUPPORT -DSOUND_SUPPORT -DDEBUGGER_SUPPORT -DJOYSTICK_SUPPORT -DCHEATCODE_SUPPORT -DHTTP_LIB_SUPPORT -DPNG_SUPPORT -DZIP_SUPPORT -Isrc/emucore -Isrc/common -Isrc/common/tv_filters -Isrc/emucore/tia -Isrc/emucore/tia/frame-manager -Isrc/json -Isrc/common/repository/sqlite -I/usr/local/include -I/usr/local/include/SDL2 -I/usr/X11R6/include -D_REENTRANT -I/usr/X11R6/include -Isrc/unix -Isrc/gui -Isrc/debugger -Isrc/debugger/gui -Isrc/yacc -Isrc/cheat -Isrc/httplib -c src/gui/CommandMenu.cxx -o out/src/gui/CommandMenu.o In file included from src/gui/CommandMenu.cxx:18: In file included from src/gui/Dialog.hxx:31: In file included from src/gui/Widget.hxx:28: src/common/bspf.hxx:245:37: warning: unsafe pointer arithmetic [-Wunsafe-buffer-usage] const auto pos = std::search(s1.cbegin()+startpos, s1.cend(), ~~~^~~~~~~~ src/common/bspf.hxx:249:56: warning: unsafe pointer arithmetic [-Wunsafe-buffer-usage] return pos == s1.cend() ? string::npos : pos - (s1.cbegin()+startpos); ~~~^~~~~~~~ In file included from src/gui/CommandMenu.cxx:18: In file included from src/gui/Dialog.hxx:31: In file included from src/gui/Widget.hxx:33: In file included from src/common/StellaKeys.hxx:22: In file included from src/common/SDL_lib.hxx:34: In file included from /usr/local/include/SDL2/SDL.h:32: In file included from /usr/local/include/SDL2/SDL_main.h:25: /usr/local/include/SDL2/SDL_stdinc.h:544:13: warning: '_p' is an unsafe pointer used for buffer access [-Wunsafe-buffer-usage] Uint32 *_p = SDL_static_cast(Uint32 *, dst); ~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /usr/local/include/SDL2/SDL_stdinc.h:552:26: note: used in pointer arithmetic here case 2: *_p++ = _val; SDL_FALLTHROUGH; ^~ /usr/local/include/SDL2/SDL_stdinc.h:551:26: note: used in pointer arithmetic here case 3: *_p++ = _val; SDL_FALLTHROUGH; ^~ /usr/local/include/SDL2/SDL_stdinc.h:550:26: note: used in pointer arithmetic here case 0: do { *_p++ = _val; SDL_FALLTHROUGH; ^~ /usr/local/include/SDL2/SDL_stdinc.h:553:26: note: used in pointer arithmetic here case 1: *_p++ = _val; ^~ In file included from src/gui/CommandMenu.cxx:19: In file included from src/emucore/OSystem.hxx:55: src/emucore/FSNode.hxx:513:31: warning: unsafe pointer arithmetic [-Wunsafe-buffer-usage] const char* cur = start + str.size() - 2; ~~~~~~^~~~~~~~~~~~ src/emucore/FSNode.hxx:512:19: warning: 'start' is an unsafe pointer used for buffer access [-Wunsafe-buffer-usage] const char* start = str.c_str(); ~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~ src/emucore/FSNode.hxx:513:25: note: used in pointer arithmetic here const char* cur = start + str.size() - 2; ^~~~~ src/emucore/FSNode.hxx:513:19: warning: 'cur' is an unsafe pointer used for buffer access [-Wunsafe-buffer-usage] const char* cur = start + str.size() - 2; ~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~ src/emucore/FSNode.hxx:518:14: note: used in pointer arithmetic here return cur + 1; ^~~ src/emucore/FSNode.hxx:516:11: note: used in pointer arithmetic here --cur; ^~~ 6 warnings generated. mkdir -p -p src/gui/.deps mkdir -p -p out/src/gui c++ -MMD -MF "src/gui/.deps/ContextMenu.d" -MQ "out/src/gui/ContextMenu.o" -MP -O2 -pipe -I/usr/X11R6/include -I/usr/local/include -x c++ -Wall -Wextra -Wno-unused-parameter -Wno-multichar -Wunused -Woverloaded-virtual -Wnon-virtual-dtor -std=c++17 -Weverything -Wno-c++98-compat-pedantic -Wno-unknown-warning-option -Wno-switch-enum -Wno-conversion -Wno-covered-switch-default -Wno-inconsistent-missing-destructor-override -Wno-float-equal -Wno-exit-time-destructors -Wno-global-constructors -Wno-weak-vtables -Wno-four-char-constants -Wno-padded -Wno-reserved-identifier -Wno-duplicate-enum -fomit-frame-pointer -DSDL_SUPPORT -D_GLIBCXX_USE_CXX11_ABI=1 -DUNIX -DBSPF_UNIX -DGUI_SUPPORT -DWINDOWED_SUPPORT -DSOUND_SUPPORT -DDEBUGGER_SUPPORT -DJOYSTICK_SUPPORT -DCHEATCODE_SUPPORT -DHTTP_LIB_SUPPORT -DPNG_SUPPORT -DZIP_SUPPORT -Isrc/emucore -Isrc/common -Isrc/common/tv_filters -Isrc/emucore/tia -Isrc/emucore/tia/frame-manager -Isrc/json -Isrc/common/repository/sqlite -I/usr/local/include -I/usr/local/include/SDL2 -I/usr/X11R6/include -D_REENTRANT -I/usr/X11R6/include -Isrc/unix -Isrc/gui -Isrc/debugger -Isrc/debugger/gui -Isrc/yacc -Isrc/cheat -Isrc/httplib -c src/gui/ContextMenu.cxx -o out/src/gui/ContextMenu.o In file included from src/gui/ContextMenu.cxx:18: In file included from src/emucore/OSystem.hxx:55: In file included from src/emucore/FSNode.hxx:23: src/common/bspf.hxx:245:37: warning: unsafe pointer arithmetic [-Wunsafe-buffer-usage] const auto pos = std::search(s1.cbegin()+startpos, s1.cend(), ~~~^~~~~~~~ src/common/bspf.hxx:249:56: warning: unsafe pointer arithmetic [-Wunsafe-buffer-usage] return pos == s1.cend() ? string::npos : pos - (s1.cbegin()+startpos); ~~~^~~~~~~~ In file included from src/gui/ContextMenu.cxx:18: In file included from src/emucore/OSystem.hxx:55: src/emucore/FSNode.hxx:513:31: warning: unsafe pointer arithmetic [-Wunsafe-buffer-usage] const char* cur = start + str.size() - 2; ~~~~~~^~~~~~~~~~~~ src/emucore/FSNode.hxx:512:19: warning: 'start' is an unsafe pointer used for buffer access [-Wunsafe-buffer-usage] const char* start = str.c_str(); ~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~ src/emucore/FSNode.hxx:513:25: note: used in pointer arithmetic here const char* cur = start + str.size() - 2; ^~~~~ src/emucore/FSNode.hxx:513:19: warning: 'cur' is an unsafe pointer used for buffer access [-Wunsafe-buffer-usage] const char* cur = start + str.size() - 2; ~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~ src/emucore/FSNode.hxx:516:11: note: used in pointer arithmetic here --cur; ^~~ src/emucore/FSNode.hxx:518:14: note: used in pointer arithmetic here return cur + 1; ^~~ In file included from src/gui/ContextMenu.cxx:19: In file included from src/emucore/EventHandler.hxx:38: In file included from src/common/PKeyboardHandler.hxx:30: In file included from src/common/KeyMap.hxx:24: In file included from src/common/StellaKeys.hxx:22: In file included from src/common/SDL_lib.hxx:34: In file included from /usr/local/include/SDL2/SDL.h:32: In file included from /usr/local/include/SDL2/SDL_main.h:25: /usr/local/include/SDL2/SDL_stdinc.h:544:13: warning: '_p' is an unsafe pointer used for buffer access [-Wunsafe-buffer-usage] Uint32 *_p = SDL_static_cast(Uint32 *, dst); ~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /usr/local/include/SDL2/SDL_stdinc.h:553:26: note: used in pointer arithmetic here case 1: *_p++ = _val; ^~ /usr/local/include/SDL2/SDL_stdinc.h:550:26: note: used in pointer arithmetic here case 0: do { *_p++ = _val; SDL_FALLTHROUGH; ^~ /usr/local/include/SDL2/SDL_stdinc.h:552:26: note: used in pointer arithmetic here case 2: *_p++ = _val; SDL_FALLTHROUGH; ^~ /usr/local/include/SDL2/SDL_stdinc.h:551:26: note: used in pointer arithmetic here case 3: *_p++ = _val; SDL_FALLTHROUGH; ^~ 6 warnings generated. mkdir -p -p src/gui/.deps mkdir -p -p out/src/gui c++ -MMD -MF "src/gui/.deps/DeveloperDialog.d" -MQ "out/src/gui/DeveloperDialog.o" -MP -O2 -pipe -I/usr/X11R6/include -I/usr/local/include -x c++ -Wall -Wextra -Wno-unused-parameter -Wno-multichar -Wunused -Woverloaded-virtual -Wnon-virtual-dtor -std=c++17 -Weverything -Wno-c++98-compat-pedantic -Wno-unknown-warning-option -Wno-switch-enum -Wno-conversion -Wno-covered-switch-default -Wno-inconsistent-missing-destructor-override -Wno-float-equal -Wno-exit-time-destructors -Wno-global-constructors -Wno-weak-vtables -Wno-four-char-constants -Wno-padded -Wno-reserved-identifier -Wno-duplicate-enum -fomit-frame-pointer -DSDL_SUPPORT -D_GLIBCXX_USE_CXX11_ABI=1 -DUNIX -DBSPF_UNIX -DGUI_SUPPORT -DWINDOWED_SUPPORT -DSOUND_SUPPORT -DDEBUGGER_SUPPORT -DJOYSTICK_SUPPORT -DCHEATCODE_SUPPORT -DHTTP_LIB_SUPPORT -DPNG_SUPPORT -DZIP_SUPPORT -Isrc/emucore -Isrc/common -Isrc/common/tv_filters -Isrc/emucore/tia -Isrc/emucore/tia/frame-manager -Isrc/json -Isrc/common/repository/sqlite -I/usr/local/include -I/usr/local/include/SDL2 -I/usr/X11R6/include -D_REENTRANT -I/usr/X11R6/include -Isrc/unix -Isrc/gui -Isrc/debugger -Isrc/debugger/gui -Isrc/yacc -Isrc/cheat -Isrc/httplib -c src/gui/DeveloperDialog.cxx -o out/src/gui/DeveloperDialog.o In file included from src/gui/DeveloperDialog.cxx:18: src/common/bspf.hxx:245:37: warning: unsafe pointer arithmetic [-Wunsafe-buffer-usage] const auto pos = std::search(s1.cbegin()+startpos, s1.cend(), ~~~^~~~~~~~ src/common/bspf.hxx:249:56: warning: unsafe pointer arithmetic [-Wunsafe-buffer-usage] return pos == s1.cend() ? string::npos : pos - (s1.cbegin()+startpos); ~~~^~~~~~~~ In file included from src/gui/DeveloperDialog.cxx:19: In file included from src/emucore/OSystem.hxx:55: src/emucore/FSNode.hxx:513:31: warning: unsafe pointer arithmetic [-Wunsafe-buffer-usage] const char* cur = start + str.size() - 2; ~~~~~~^~~~~~~~~~~~ src/emucore/FSNode.hxx:512:19: warning: 'start' is an unsafe pointer used for buffer access [-Wunsafe-buffer-usage] const char* start = str.c_str(); ~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~ src/emucore/FSNode.hxx:513:25: note: used in pointer arithmetic here const char* cur = start + str.size() - 2; ^~~~~ src/emucore/FSNode.hxx:513:19: warning: 'cur' is an unsafe pointer used for buffer access [-Wunsafe-buffer-usage] const char* cur = start + str.size() - 2; ~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~ src/emucore/FSNode.hxx:518:14: note: used in pointer arithmetic here return cur + 1; ^~~ src/emucore/FSNode.hxx:516:11: note: used in pointer arithmetic here --cur; ^~~ In file included from src/gui/DeveloperDialog.cxx:27: In file included from src/gui/EditTextWidget.hxx:22: In file included from src/gui/EditableWidget.hxx:23: In file included from src/gui/Widget.hxx:33: In file included from src/common/StellaKeys.hxx:22: In file included from src/common/SDL_lib.hxx:34: In file included from /usr/local/include/SDL2/SDL.h:32: In file included from /usr/local/include/SDL2/SDL_main.h:25: /usr/local/include/SDL2/SDL_stdinc.h:544:13: warning: '_p' is an unsafe pointer used for buffer access [-Wunsafe-buffer-usage] Uint32 *_p = SDL_static_cast(Uint32 *, dst); ~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /usr/local/include/SDL2/SDL_stdinc.h:552:26: note: used in pointer arithmetic here case 2: *_p++ = _val; SDL_FALLTHROUGH; ^~ /usr/local/include/SDL2/SDL_stdinc.h:553:26: note: used in pointer arithmetic here case 1: *_p++ = _val; ^~ /usr/local/include/SDL2/SDL_stdinc.h:550:26: note: used in pointer arithmetic here case 0: do { *_p++ = _val; SDL_FALLTHROUGH; ^~ /usr/local/include/SDL2/SDL_stdinc.h:551:26: note: used in pointer arithmetic here case 3: *_p++ = _val; SDL_FALLTHROUGH; ^~ In file included from src/gui/DeveloperDialog.cxx:35: In file included from src/emucore/tia/TIA.hxx:37: src/emucore/tia/Missile.hxx:170:7: warning: unsafe buffer access [-Wunsafe-buffer-usage] if (myDecodes[myCounter] && !myResmp) { ^~~~~~~~~ src/emucore/tia/Missile.hxx:173:14: warning: unsafe buffer access [-Wunsafe-buffer-usage] myCopy = myDecodes[myCounter]; ^~~~~~~~~ In file included from src/gui/DeveloperDialog.cxx:35: In file included from src/emucore/tia/TIA.hxx:38: src/emucore/tia/Player.hxx:186:7: warning: unsafe buffer access [-Wunsafe-buffer-usage] if (myDecodes[myCounter]) { ^~~~~~~~~ src/emucore/tia/Player.hxx:190:14: warning: unsafe buffer access [-Wunsafe-buffer-usage] myCopy = myDecodes[myCounter]; ^~~~~~~~~ 10 warnings generated. mkdir -p -p src/gui/.deps mkdir -p -p out/src/gui c++ -MMD -MF "src/gui/.deps/DialogContainer.d" -MQ "out/src/gui/DialogContainer.o" -MP -O2 -pipe -I/usr/X11R6/include -I/usr/local/include -x c++ -Wall -Wextra -Wno-unused-parameter -Wno-multichar -Wunused -Woverloaded-virtual -Wnon-virtual-dtor -std=c++17 -Weverything -Wno-c++98-compat-pedantic -Wno-unknown-warning-option -Wno-switch-enum -Wno-conversion -Wno-covered-switch-default -Wno-inconsistent-missing-destructor-override -Wno-float-equal -Wno-exit-time-destructors -Wno-global-constructors -Wno-weak-vtables -Wno-four-char-constants -Wno-padded -Wno-reserved-identifier -Wno-duplicate-enum -fomit-frame-pointer -DSDL_SUPPORT -D_GLIBCXX_USE_CXX11_ABI=1 -DUNIX -DBSPF_UNIX -DGUI_SUPPORT -DWINDOWED_SUPPORT -DSOUND_SUPPORT -DDEBUGGER_SUPPORT -DJOYSTICK_SUPPORT -DCHEATCODE_SUPPORT -DHTTP_LIB_SUPPORT -DPNG_SUPPORT -DZIP_SUPPORT -Isrc/emucore -Isrc/common -Isrc/common/tv_filters -Isrc/emucore/tia -Isrc/emucore/tia/frame-manager -Isrc/json -Isrc/common/repository/sqlite -I/usr/local/include -I/usr/local/include/SDL2 -I/usr/X11R6/include -D_REENTRANT -I/usr/X11R6/include -Isrc/unix -Isrc/gui -Isrc/debugger -Isrc/debugger/gui -Isrc/yacc -Isrc/cheat -Isrc/httplib -c src/gui/DialogContainer.cxx -o out/src/gui/DialogContainer.o In file included from src/gui/DialogContainer.cxx:18: In file included from src/emucore/OSystem.hxx:55: In file included from src/emucore/FSNode.hxx:23: src/common/bspf.hxx:245:37: warning: unsafe pointer arithmetic [-Wunsafe-buffer-usage] const auto pos = std::search(s1.cbegin()+startpos, s1.cend(), ~~~^~~~~~~~ src/common/bspf.hxx:249:56: warning: unsafe pointer arithmetic [-Wunsafe-buffer-usage] return pos == s1.cend() ? string::npos : pos - (s1.cbegin()+startpos); ~~~^~~~~~~~ In file included from src/gui/DialogContainer.cxx:18: In file included from src/emucore/OSystem.hxx:55: src/emucore/FSNode.hxx:513:31: warning: unsafe pointer arithmetic [-Wunsafe-buffer-usage] const char* cur = start + str.size() - 2; ~~~~~~^~~~~~~~~~~~ src/emucore/FSNode.hxx:512:19: warning: 'start' is an unsafe pointer used for buffer access [-Wunsafe-buffer-usage] const char* start = str.c_str(); ~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~ src/emucore/FSNode.hxx:513:25: note: used in pointer arithmetic here const char* cur = start + str.size() - 2; ^~~~~ src/emucore/FSNode.hxx:513:19: warning: 'cur' is an unsafe pointer used for buffer access [-Wunsafe-buffer-usage] const char* cur = start + str.size() - 2; ~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~ src/emucore/FSNode.hxx:518:14: note: used in pointer arithmetic here return cur + 1; ^~~ src/emucore/FSNode.hxx:516:11: note: used in pointer arithmetic here --cur; ^~~ In file included from src/gui/DialogContainer.cxx:19: In file included from src/gui/Dialog.hxx:31: In file included from src/gui/Widget.hxx:33: In file included from src/common/StellaKeys.hxx:22: In file included from src/common/SDL_lib.hxx:34: In file included from /usr/local/include/SDL2/SDL.h:32: In file included from /usr/local/include/SDL2/SDL_main.h:25: /usr/local/include/SDL2/SDL_stdinc.h:544:13: warning: '_p' is an unsafe pointer used for buffer access [-Wunsafe-buffer-usage] Uint32 *_p = SDL_static_cast(Uint32 *, dst); ~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /usr/local/include/SDL2/SDL_stdinc.h:553:26: note: used in pointer arithmetic here case 1: *_p++ = _val; ^~ /usr/local/include/SDL2/SDL_stdinc.h:551:26: note: used in pointer arithmetic here case 3: *_p++ = _val; SDL_FALLTHROUGH; ^~ /usr/local/include/SDL2/SDL_stdinc.h:552:26: note: used in pointer arithmetic here case 2: *_p++ = _val; SDL_FALLTHROUGH; ^~ /usr/local/include/SDL2/SDL_stdinc.h:550:26: note: used in pointer arithmetic here case 0: do { *_p++ = _val; SDL_FALLTHROUGH; ^~ 6 warnings generated. mkdir -p -p src/gui/.deps mkdir -p -p out/src/gui c++ -MMD -MF "src/gui/.deps/Dialog.d" -MQ "out/src/gui/Dialog.o" -MP -O2 -pipe -I/usr/X11R6/include -I/usr/local/include -x c++ -Wall -Wextra -Wno-unused-parameter -Wno-multichar -Wunused -Woverloaded-virtual -Wnon-virtual-dtor -std=c++17 -Weverything -Wno-c++98-compat-pedantic -Wno-unknown-warning-option -Wno-switch-enum -Wno-conversion -Wno-covered-switch-default -Wno-inconsistent-missing-destructor-override -Wno-float-equal -Wno-exit-time-destructors -Wno-global-constructors -Wno-weak-vtables -Wno-four-char-constants -Wno-padded -Wno-reserved-identifier -Wno-duplicate-enum -fomit-frame-pointer -DSDL_SUPPORT -D_GLIBCXX_USE_CXX11_ABI=1 -DUNIX -DBSPF_UNIX -DGUI_SUPPORT -DWINDOWED_SUPPORT -DSOUND_SUPPORT -DDEBUGGER_SUPPORT -DJOYSTICK_SUPPORT -DCHEATCODE_SUPPORT -DHTTP_LIB_SUPPORT -DPNG_SUPPORT -DZIP_SUPPORT -Isrc/emucore -Isrc/common -Isrc/common/tv_filters -Isrc/emucore/tia -Isrc/emucore/tia/frame-manager -Isrc/json -Isrc/common/repository/sqlite -I/usr/local/include -I/usr/local/include/SDL2 -I/usr/X11R6/include -D_REENTRANT -I/usr/X11R6/include -Isrc/unix -Isrc/gui -Isrc/debugger -Isrc/debugger/gui -Isrc/yacc -Isrc/cheat -Isrc/httplib -c src/gui/Dialog.cxx -o out/src/gui/Dialog.o In file included from src/gui/Dialog.cxx:21: In file included from src/emucore/OSystem.hxx:55: In file included from src/emucore/FSNode.hxx:23: src/common/bspf.hxx:245:37: warning: unsafe pointer arithmetic [-Wunsafe-buffer-usage] const auto pos = std::search(s1.cbegin()+startpos, s1.cend(), ~~~^~~~~~~~ src/common/bspf.hxx:249:56: warning: unsafe pointer arithmetic [-Wunsafe-buffer-usage] return pos == s1.cend() ? string::npos : pos - (s1.cbegin()+startpos); ~~~^~~~~~~~ In file included from src/gui/Dialog.cxx:21: In file included from src/emucore/OSystem.hxx:55: src/emucore/FSNode.hxx:513:31: warning: unsafe pointer arithmetic [-Wunsafe-buffer-usage] const char* cur = start + str.size() - 2; ~~~~~~^~~~~~~~~~~~ src/emucore/FSNode.hxx:512:19: warning: 'start' is an unsafe pointer used for buffer access [-Wunsafe-buffer-usage] const char* start = str.c_str(); ~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~ src/emucore/FSNode.hxx:513:25: note: used in pointer arithmetic here const char* cur = start + str.size() - 2; ^~~~~ src/emucore/FSNode.hxx:513:19: warning: 'cur' is an unsafe pointer used for buffer access [-Wunsafe-buffer-usage] const char* cur = start + str.size() - 2; ~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~ src/emucore/FSNode.hxx:518:14: note: used in pointer arithmetic here return cur + 1; ^~~ src/emucore/FSNode.hxx:516:11: note: used in pointer arithmetic here --cur; ^~~ In file included from src/gui/Dialog.cxx:22: In file included from src/emucore/EventHandler.hxx:38: In file included from src/common/PKeyboardHandler.hxx:30: In file included from src/common/KeyMap.hxx:24: In file included from src/common/StellaKeys.hxx:22: In file included from src/common/SDL_lib.hxx:34: In file included from /usr/local/include/SDL2/SDL.h:32: In file included from /usr/local/include/SDL2/SDL_main.h:25: /usr/local/include/SDL2/SDL_stdinc.h:544:13: warning: '_p' is an unsafe pointer used for buffer access [-Wunsafe-buffer-usage] Uint32 *_p = SDL_static_cast(Uint32 *, dst); ~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /usr/local/include/SDL2/SDL_stdinc.h:550:26: note: used in pointer arithmetic here case 0: do { *_p++ = _val; SDL_FALLTHROUGH; ^~ /usr/local/include/SDL2/SDL_stdinc.h:552:26: note: used in pointer arithmetic here case 2: *_p++ = _val; SDL_FALLTHROUGH; ^~ /usr/local/include/SDL2/SDL_stdinc.h:553:26: note: used in pointer arithmetic here case 1: *_p++ = _val; ^~ /usr/local/include/SDL2/SDL_stdinc.h:551:26: note: used in pointer arithmetic here case 3: *_p++ = _val; SDL_FALLTHROUGH; ^~ In file included from src/gui/Dialog.cxx:38: In file included from src/emucore/tia/TIA.hxx:37: src/emucore/tia/Missile.hxx:170:7: warning: unsafe buffer access [-Wunsafe-buffer-usage] if (myDecodes[myCounter] && !myResmp) { ^~~~~~~~~ src/emucore/tia/Missile.hxx:173:14: warning: unsafe buffer access [-Wunsafe-buffer-usage] myCopy = myDecodes[myCounter]; ^~~~~~~~~ In file included from src/gui/Dialog.cxx:38: In file included from src/emucore/tia/TIA.hxx:38: src/emucore/tia/Player.hxx:186:7: warning: unsafe buffer access [-Wunsafe-buffer-usage] if (myDecodes[myCounter]) { ^~~~~~~~~ src/emucore/tia/Player.hxx:190:14: warning: unsafe buffer access [-Wunsafe-buffer-usage] myCopy = myDecodes[myCounter]; ^~~~~~~~~ 10 warnings generated. mkdir -p -p src/gui/.deps mkdir -p -p out/src/gui c++ -MMD -MF "src/gui/.deps/EditableWidget.d" -MQ "out/src/gui/EditableWidget.o" -MP -O2 -pipe -I/usr/X11R6/include -I/usr/local/include -x c++ -Wall -Wextra -Wno-unused-parameter -Wno-multichar -Wunused -Woverloaded-virtual -Wnon-virtual-dtor -std=c++17 -Weverything -Wno-c++98-compat-pedantic -Wno-unknown-warning-option -Wno-switch-enum -Wno-conversion -Wno-covered-switch-default -Wno-inconsistent-missing-destructor-override -Wno-float-equal -Wno-exit-time-destructors -Wno-global-constructors -Wno-weak-vtables -Wno-four-char-constants -Wno-padded -Wno-reserved-identifier -Wno-duplicate-enum -fomit-frame-pointer -DSDL_SUPPORT -D_GLIBCXX_USE_CXX11_ABI=1 -DUNIX -DBSPF_UNIX -DGUI_SUPPORT -DWINDOWED_SUPPORT -DSOUND_SUPPORT -DDEBUGGER_SUPPORT -DJOYSTICK_SUPPORT -DCHEATCODE_SUPPORT -DHTTP_LIB_SUPPORT -DPNG_SUPPORT -DZIP_SUPPORT -Isrc/emucore -Isrc/common -Isrc/common/tv_filters -Isrc/emucore/tia -Isrc/emucore/tia/frame-manager -Isrc/json -Isrc/common/repository/sqlite -I/usr/local/include -I/usr/local/include/SDL2 -I/usr/X11R6/include -D_REENTRANT -I/usr/X11R6/include -Isrc/unix -Isrc/gui -Isrc/debugger -Isrc/debugger/gui -Isrc/yacc -Isrc/cheat -Isrc/httplib -c src/gui/EditableWidget.cxx -o out/src/gui/EditableWidget.o In file included from src/gui/EditableWidget.cxx:18: In file included from src/gui/Dialog.hxx:31: In file included from src/gui/Widget.hxx:28: src/common/bspf.hxx:245:37: warning: unsafe pointer arithmetic [-Wunsafe-buffer-usage] const auto pos = std::search(s1.cbegin()+startpos, s1.cend(), ~~~^~~~~~~~ src/common/bspf.hxx:249:56: warning: unsafe pointer arithmetic [-Wunsafe-buffer-usage] return pos == s1.cend() ? string::npos : pos - (s1.cbegin()+startpos); ~~~^~~~~~~~ In file included from src/gui/EditableWidget.cxx:18: In file included from src/gui/Dialog.hxx:31: In file included from src/gui/Widget.hxx:33: In file included from src/common/StellaKeys.hxx:22: In file included from src/common/SDL_lib.hxx:34: In file included from /usr/local/include/SDL2/SDL.h:32: In file included from /usr/local/include/SDL2/SDL_main.h:25: /usr/local/include/SDL2/SDL_stdinc.h:544:13: warning: '_p' is an unsafe pointer used for buffer access [-Wunsafe-buffer-usage] Uint32 *_p = SDL_static_cast(Uint32 *, dst); ~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /usr/local/include/SDL2/SDL_stdinc.h:551:26: note: used in pointer arithmetic here case 3: *_p++ = _val; SDL_FALLTHROUGH; ^~ /usr/local/include/SDL2/SDL_stdinc.h:553:26: note: used in pointer arithmetic here case 1: *_p++ = _val; ^~ /usr/local/include/SDL2/SDL_stdinc.h:552:26: note: used in pointer arithmetic here case 2: *_p++ = _val; SDL_FALLTHROUGH; ^~ /usr/local/include/SDL2/SDL_stdinc.h:550:26: note: used in pointer arithmetic here case 0: do { *_p++ = _val; SDL_FALLTHROUGH; ^~ In file included from src/gui/EditableWidget.cxx:23: In file included from src/emucore/OSystem.hxx:55: src/emucore/FSNode.hxx:513:31: warning: unsafe pointer arithmetic [-Wunsafe-buffer-usage] const char* cur = start + str.size() - 2; ~~~~~~^~~~~~~~~~~~ src/emucore/FSNode.hxx:512:19: warning: 'start' is an unsafe pointer used for buffer access [-Wunsafe-buffer-usage] const char* start = str.c_str(); ~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~ src/emucore/FSNode.hxx:513:25: note: used in pointer arithmetic here const char* cur = start + str.size() - 2; ^~~~~ src/emucore/FSNode.hxx:513:19: warning: 'cur' is an unsafe pointer used for buffer access [-Wunsafe-buffer-usage] const char* cur = start + str.size() - 2; ~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~ src/emucore/FSNode.hxx:518:14: note: used in pointer arithmetic here return cur + 1; ^~~ src/emucore/FSNode.hxx:516:11: note: used in pointer arithmetic here --cur; ^~~ 6 warnings generated. mkdir -p -p src/gui/.deps mkdir -p -p out/src/gui c++ -MMD -MF "src/gui/.deps/EditTextWidget.d" -MQ "out/src/gui/EditTextWidget.o" -MP -O2 -pipe -I/usr/X11R6/include -I/usr/local/include -x c++ -Wall -Wextra -Wno-unused-parameter -Wno-multichar -Wunused -Woverloaded-virtual -Wnon-virtual-dtor -std=c++17 -Weverything -Wno-c++98-compat-pedantic -Wno-unknown-warning-option -Wno-switch-enum -Wno-conversion -Wno-covered-switch-default -Wno-inconsistent-missing-destructor-override -Wno-float-equal -Wno-exit-time-destructors -Wno-global-constructors -Wno-weak-vtables -Wno-four-char-constants -Wno-padded -Wno-reserved-identifier -Wno-duplicate-enum -fomit-frame-pointer -DSDL_SUPPORT -D_GLIBCXX_USE_CXX11_ABI=1 -DUNIX -DBSPF_UNIX -DGUI_SUPPORT -DWINDOWED_SUPPORT -DSOUND_SUPPORT -DDEBUGGER_SUPPORT -DJOYSTICK_SUPPORT -DCHEATCODE_SUPPORT -DHTTP_LIB_SUPPORT -DPNG_SUPPORT -DZIP_SUPPORT -Isrc/emucore -Isrc/common -Isrc/common/tv_filters -Isrc/emucore/tia -Isrc/emucore/tia/frame-manager -Isrc/json -Isrc/common/repository/sqlite -I/usr/local/include -I/usr/local/include/SDL2 -I/usr/X11R6/include -D_REENTRANT -I/usr/X11R6/include -Isrc/unix -Isrc/gui -Isrc/debugger -Isrc/debugger/gui -Isrc/yacc -Isrc/cheat -Isrc/httplib -c src/gui/EditTextWidget.cxx -o out/src/gui/EditTextWidget.o In file included from src/gui/EditTextWidget.cxx:18: In file included from src/emucore/OSystem.hxx:55: In file included from src/emucore/FSNode.hxx:23: src/common/bspf.hxx:245:37: warning: unsafe pointer arithmetic [-Wunsafe-buffer-usage] const auto pos = std::search(s1.cbegin()+startpos, s1.cend(), ~~~^~~~~~~~ src/common/bspf.hxx:249:56: warning: unsafe pointer arithmetic [-Wunsafe-buffer-usage] return pos == s1.cend() ? string::npos : pos - (s1.cbegin()+startpos); ~~~^~~~~~~~ In file included from src/gui/EditTextWidget.cxx:18: In file included from src/emucore/OSystem.hxx:55: src/emucore/FSNode.hxx:513:31: warning: unsafe pointer arithmetic [-Wunsafe-buffer-usage] const char* cur = start + str.size() - 2; ~~~~~~^~~~~~~~~~~~ src/emucore/FSNode.hxx:512:19: warning: 'start' is an unsafe pointer used for buffer access [-Wunsafe-buffer-usage] const char* start = str.c_str(); ~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~ src/emucore/FSNode.hxx:513:25: note: used in pointer arithmetic here const char* cur = start + str.size() - 2; ^~~~~ src/emucore/FSNode.hxx:513:19: warning: 'cur' is an unsafe pointer used for buffer access [-Wunsafe-buffer-usage] const char* cur = start + str.size() - 2; ~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~ src/emucore/FSNode.hxx:516:11: note: used in pointer arithmetic here --cur; ^~~ src/emucore/FSNode.hxx:518:14: note: used in pointer arithmetic here return cur + 1; ^~~ In file included from src/gui/EditTextWidget.cxx:20: In file included from src/gui/Dialog.hxx:31: In file included from src/gui/Widget.hxx:33: In file included from src/common/StellaKeys.hxx:22: In file included from src/common/SDL_lib.hxx:34: In file included from /usr/local/include/SDL2/SDL.h:32: In file included from /usr/local/include/SDL2/SDL_main.h:25: /usr/local/include/SDL2/SDL_stdinc.h:544:13: warning: '_p' is an unsafe pointer used for buffer access [-Wunsafe-buffer-usage] Uint32 *_p = SDL_static_cast(Uint32 *, dst); ~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /usr/local/include/SDL2/SDL_stdinc.h:550:26: note: used in pointer arithmetic here case 0: do { *_p++ = _val; SDL_FALLTHROUGH; ^~ /usr/local/include/SDL2/SDL_stdinc.h:552:26: note: used in pointer arithmetic here case 2: *_p++ = _val; SDL_FALLTHROUGH; ^~ /usr/local/include/SDL2/SDL_stdinc.h:551:26: note: used in pointer arithmetic here case 3: *_p++ = _val; SDL_FALLTHROUGH; ^~ /usr/local/include/SDL2/SDL_stdinc.h:553:26: note: used in pointer arithmetic here case 1: *_p++ = _val; ^~ 6 warnings generated. mkdir -p -p src/gui/.deps mkdir -p -p out/src/gui c++ -MMD -MF "src/gui/.deps/EmulationDialog.d" -MQ "out/src/gui/EmulationDialog.o" -MP -O2 -pipe -I/usr/X11R6/include -I/usr/local/include -x c++ -Wall -Wextra -Wno-unused-parameter -Wno-multichar -Wunused -Woverloaded-virtual -Wnon-virtual-dtor -std=c++17 -Weverything -Wno-c++98-compat-pedantic -Wno-unknown-warning-option -Wno-switch-enum -Wno-conversion -Wno-covered-switch-default -Wno-inconsistent-missing-destructor-override -Wno-float-equal -Wno-exit-time-destructors -Wno-global-constructors -Wno-weak-vtables -Wno-four-char-constants -Wno-padded -Wno-reserved-identifier -Wno-duplicate-enum -fomit-frame-pointer -DSDL_SUPPORT -D_GLIBCXX_USE_CXX11_ABI=1 -DUNIX -DBSPF_UNIX -DGUI_SUPPORT -DWINDOWED_SUPPORT -DSOUND_SUPPORT -DDEBUGGER_SUPPORT -DJOYSTICK_SUPPORT -DCHEATCODE_SUPPORT -DHTTP_LIB_SUPPORT -DPNG_SUPPORT -DZIP_SUPPORT -Isrc/emucore -Isrc/common -Isrc/common/tv_filters -Isrc/emucore/tia -Isrc/emucore/tia/frame-manager -Isrc/json -Isrc/common/repository/sqlite -I/usr/local/include -I/usr/local/include/SDL2 -I/usr/X11R6/include -D_REENTRANT -I/usr/X11R6/include -Isrc/unix -Isrc/gui -Isrc/debugger -Isrc/debugger/gui -Isrc/yacc -Isrc/cheat -Isrc/httplib -c src/gui/EmulationDialog.cxx -o out/src/gui/EmulationDialog.o In file included from src/gui/EmulationDialog.cxx:18: In file included from src/emucore/OSystem.hxx:55: In file included from src/emucore/FSNode.hxx:23: src/common/bspf.hxx:245:37: warning: unsafe pointer arithmetic [-Wunsafe-buffer-usage] const auto pos = std::search(s1.cbegin()+startpos, s1.cend(), ~~~^~~~~~~~ src/common/bspf.hxx:249:56: warning: unsafe pointer arithmetic [-Wunsafe-buffer-usage] return pos == s1.cend() ? string::npos : pos - (s1.cbegin()+startpos); ~~~^~~~~~~~ In file included from src/gui/EmulationDialog.cxx:18: In file included from src/emucore/OSystem.hxx:55: src/emucore/FSNode.hxx:513:31: warning: unsafe pointer arithmetic [-Wunsafe-buffer-usage] const char* cur = start + str.size() - 2; ~~~~~~^~~~~~~~~~~~ src/emucore/FSNode.hxx:512:19: warning: 'start' is an unsafe pointer used for buffer access [-Wunsafe-buffer-usage] const char* start = str.c_str(); ~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~ src/emucore/FSNode.hxx:513:25: note: used in pointer arithmetic here const char* cur = start + str.size() - 2; ^~~~~ src/emucore/FSNode.hxx:513:19: warning: 'cur' is an unsafe pointer used for buffer access [-Wunsafe-buffer-usage] const char* cur = start + str.size() - 2; ~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~ src/emucore/FSNode.hxx:516:11: note: used in pointer arithmetic here --cur; ^~~ src/emucore/FSNode.hxx:518:14: note: used in pointer arithmetic here return cur + 1; ^~~ In file included from src/gui/EmulationDialog.cxx:21: In file included from src/gui/RadioButtonWidget.hxx:25: In file included from src/gui/Widget.hxx:33: In file included from src/common/StellaKeys.hxx:22: In file included from src/common/SDL_lib.hxx:34: In file included from /usr/local/include/SDL2/SDL.h:32: In file included from /usr/local/include/SDL2/SDL_main.h:25: /usr/local/include/SDL2/SDL_stdinc.h:544:13: warning: '_p' is an unsafe pointer used for buffer access [-Wunsafe-buffer-usage] Uint32 *_p = SDL_static_cast(Uint32 *, dst); ~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /usr/local/include/SDL2/SDL_stdinc.h:553:26: note: used in pointer arithmetic here case 1: *_p++ = _val; ^~ /usr/local/include/SDL2/SDL_stdinc.h:552:26: note: used in pointer arithmetic here case 2: *_p++ = _val; SDL_FALLTHROUGH; ^~ /usr/local/include/SDL2/SDL_stdinc.h:551:26: note: used in pointer arithmetic here case 3: *_p++ = _val; SDL_FALLTHROUGH; ^~ /usr/local/include/SDL2/SDL_stdinc.h:550:26: note: used in pointer arithmetic here case 0: do { *_p++ = _val; SDL_FALLTHROUGH; ^~ In file included from src/gui/EmulationDialog.cxx:22: In file included from src/emucore/TIASurface.hxx:31: In file included from src/common/tv_filters/NTSCFilter.hxx:25: src/common/tv_filters/AtariNTSC.hxx:238:22: warning: 'to_rgb' is an unsafe pointer used for buffer access [-Wunsafe-buffer-usage] const float* to_rgb, int& ir, int& ig, int& ib) { ~~~~~~~~~~~~~^~~~~~ src/common/tv_filters/AtariNTSC.hxx:241:49: note: used in buffer access here ib = static_cast(y + to_rgb[4] * i + to_rgb[5] * q); ^~~~~~ src/common/tv_filters/AtariNTSC.hxx:240:33: note: used in buffer access here ig = static_cast(y + to_rgb[2] * i + to_rgb[3] * q); ^~~~~~ src/common/tv_filters/AtariNTSC.hxx:240:49: note: used in buffer access here ig = static_cast(y + to_rgb[2] * i + to_rgb[3] * q); ^~~~~~ src/common/tv_filters/AtariNTSC.hxx:239:49: note: used in buffer access here ir = static_cast(y + to_rgb[0] * i + to_rgb[1] * q); ^~~~~~ src/common/tv_filters/AtariNTSC.hxx:241:33: note: used in buffer access here ib = static_cast(y + to_rgb[4] * i + to_rgb[5] * q); ^~~~~~ 7 warnings generated. mkdir -p -p src/gui/.deps mkdir -p -p out/src/gui c++ -MMD -MF "src/gui/.deps/EventMappingWidget.d" -MQ "out/src/gui/EventMappingWidget.o" -MP -O2 -pipe -I/usr/X11R6/include -I/usr/local/include -x c++ -Wall -Wextra -Wno-unused-parameter -Wno-multichar -Wunused -Woverloaded-virtual -Wnon-virtual-dtor -std=c++17 -Weverything -Wno-c++98-compat-pedantic -Wno-unknown-warning-option -Wno-switch-enum -Wno-conversion -Wno-covered-switch-default -Wno-inconsistent-missing-destructor-override -Wno-float-equal -Wno-exit-time-destructors -Wno-global-constructors -Wno-weak-vtables -Wno-four-char-constants -Wno-padded -Wno-reserved-identifier -Wno-duplicate-enum -fomit-frame-pointer -DSDL_SUPPORT -D_GLIBCXX_USE_CXX11_ABI=1 -DUNIX -DBSPF_UNIX -DGUI_SUPPORT -DWINDOWED_SUPPORT -DSOUND_SUPPORT -DDEBUGGER_SUPPORT -DJOYSTICK_SUPPORT -DCHEATCODE_SUPPORT -DHTTP_LIB_SUPPORT -DPNG_SUPPORT -DZIP_SUPPORT -Isrc/emucore -Isrc/common -Isrc/common/tv_filters -Isrc/emucore/tia -Isrc/emucore/tia/frame-manager -Isrc/json -Isrc/common/repository/sqlite -I/usr/local/include -I/usr/local/include/SDL2 -I/usr/X11R6/include -D_REENTRANT -I/usr/X11R6/include -Isrc/unix -Isrc/gui -Isrc/debugger -Isrc/debugger/gui -Isrc/yacc -Isrc/cheat -Isrc/httplib -c src/gui/EventMappingWidget.cxx -o out/src/gui/EventMappingWidget.o In file included from src/gui/EventMappingWidget.cxx:20: src/common/bspf.hxx:245:37: warning: unsafe pointer arithmetic [-Wunsafe-buffer-usage] const auto pos = std::search(s1.cbegin()+startpos, s1.cend(), ~~~^~~~~~~~ src/common/bspf.hxx:249:56: warning: unsafe pointer arithmetic [-Wunsafe-buffer-usage] return pos == s1.cend() ? string::npos : pos - (s1.cbegin()+startpos); ~~~^~~~~~~~ In file included from src/gui/EventMappingWidget.cxx:22: In file included from src/emucore/OSystem.hxx:55: src/emucore/FSNode.hxx:513:31: warning: unsafe pointer arithmetic [-Wunsafe-buffer-usage] const char* cur = start + str.size() - 2; ~~~~~~^~~~~~~~~~~~ src/emucore/FSNode.hxx:512:19: warning: 'start' is an unsafe pointer used for buffer access [-Wunsafe-buffer-usage] const char* start = str.c_str(); ~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~ src/emucore/FSNode.hxx:513:25: note: used in pointer arithmetic here const char* cur = start + str.size() - 2; ^~~~~ src/emucore/FSNode.hxx:513:19: warning: 'cur' is an unsafe pointer used for buffer access [-Wunsafe-buffer-usage] const char* cur = start + str.size() - 2; ~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~ src/emucore/FSNode.hxx:518:14: note: used in pointer arithmetic here return cur + 1; ^~~ src/emucore/FSNode.hxx:516:11: note: used in pointer arithmetic here --cur; ^~~ In file included from src/gui/EventMappingWidget.cxx:24: In file included from src/gui/PopUpWidget.hxx:27: In file included from src/gui/EditableWidget.hxx:23: In file included from src/gui/Widget.hxx:33: In file included from src/common/StellaKeys.hxx:22: In file included from src/common/SDL_lib.hxx:34: In file included from /usr/local/include/SDL2/SDL.h:32: In file included from /usr/local/include/SDL2/SDL_main.h:25: /usr/local/include/SDL2/SDL_stdinc.h:544:13: warning: '_p' is an unsafe pointer used for buffer access [-Wunsafe-buffer-usage] Uint32 *_p = SDL_static_cast(Uint32 *, dst); ~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /usr/local/include/SDL2/SDL_stdinc.h:551:26: note: used in pointer arithmetic here case 3: *_p++ = _val; SDL_FALLTHROUGH; ^~ /usr/local/include/SDL2/SDL_stdinc.h:550:26: note: used in pointer arithmetic here case 0: do { *_p++ = _val; SDL_FALLTHROUGH; ^~ /usr/local/include/SDL2/SDL_stdinc.h:552:26: note: used in pointer arithmetic here case 2: *_p++ = _val; SDL_FALLTHROUGH; ^~ /usr/local/include/SDL2/SDL_stdinc.h:553:26: note: used in pointer arithmetic here case 1: *_p++ = _val; ^~ 6 warnings generated. mkdir -p -p src/gui/.deps mkdir -p -p out/src/gui c++ -MMD -MF "src/gui/.deps/FavoritesManager.d" -MQ "out/src/gui/FavoritesManager.o" -MP -O2 -pipe -I/usr/X11R6/include -I/usr/local/include -x c++ -Wall -Wextra -Wno-unused-parameter -Wno-multichar -Wunused -Woverloaded-virtual -Wnon-virtual-dtor -std=c++17 -Weverything -Wno-c++98-compat-pedantic -Wno-unknown-warning-option -Wno-switch-enum -Wno-conversion -Wno-covered-switch-default -Wno-inconsistent-missing-destructor-override -Wno-float-equal -Wno-exit-time-destructors -Wno-global-constructors -Wno-weak-vtables -Wno-four-char-constants -Wno-padded -Wno-reserved-identifier -Wno-duplicate-enum -fomit-frame-pointer -DSDL_SUPPORT -D_GLIBCXX_USE_CXX11_ABI=1 -DUNIX -DBSPF_UNIX -DGUI_SUPPORT -DWINDOWED_SUPPORT -DSOUND_SUPPORT -DDEBUGGER_SUPPORT -DJOYSTICK_SUPPORT -DCHEATCODE_SUPPORT -DHTTP_LIB_SUPPORT -DPNG_SUPPORT -DZIP_SUPPORT -Isrc/emucore -Isrc/common -Isrc/common/tv_filters -Isrc/emucore/tia -Isrc/emucore/tia/frame-manager -Isrc/json -Isrc/common/repository/sqlite -I/usr/local/include -I/usr/local/include/SDL2 -I/usr/X11R6/include -D_REENTRANT -I/usr/X11R6/include -Isrc/unix -Isrc/gui -Isrc/debugger -Isrc/debugger/gui -Isrc/yacc -Isrc/cheat -Isrc/httplib -c src/gui/FavoritesManager.cxx -o out/src/gui/FavoritesManager.o In file included from src/gui/FavoritesManager.cxx:18: In file included from src/emucore/FSNode.hxx:23: src/common/bspf.hxx:245:37: warning: unsafe pointer arithmetic [-Wunsafe-buffer-usage] const auto pos = std::search(s1.cbegin()+startpos, s1.cend(), ~~~^~~~~~~~ src/common/bspf.hxx:249:56: warning: unsafe pointer arithmetic [-Wunsafe-buffer-usage] return pos == s1.cend() ? string::npos : pos - (s1.cbegin()+startpos); ~~~^~~~~~~~ In file included from src/gui/FavoritesManager.cxx:18: src/emucore/FSNode.hxx:513:31: warning: unsafe pointer arithmetic [-Wunsafe-buffer-usage] const char* cur = start + str.size() - 2; ~~~~~~^~~~~~~~~~~~ src/emucore/FSNode.hxx:512:19: warning: 'start' is an unsafe pointer used for buffer access [-Wunsafe-buffer-usage] const char* start = str.c_str(); ~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~ src/emucore/FSNode.hxx:513:25: note: used in pointer arithmetic here const char* cur = start + str.size() - 2; ^~~~~ src/emucore/FSNode.hxx:513:19: warning: 'cur' is an unsafe pointer used for buffer access [-Wunsafe-buffer-usage] const char* cur = start + str.size() - 2; ~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~ src/emucore/FSNode.hxx:518:14: note: used in pointer arithmetic here return cur + 1; ^~~ src/emucore/FSNode.hxx:516:11: note: used in pointer arithmetic here --cur; ^~~ 5 warnings generated. mkdir -p -p src/gui/.deps mkdir -p -p out/src/gui c++ -MMD -MF "src/gui/.deps/FileListWidget.d" -MQ "out/src/gui/FileListWidget.o" -MP -O2 -pipe -I/usr/X11R6/include -I/usr/local/include -x c++ -Wall -Wextra -Wno-unused-parameter -Wno-multichar -Wunused -Woverloaded-virtual -Wnon-virtual-dtor -std=c++17 -Weverything -Wno-c++98-compat-pedantic -Wno-unknown-warning-option -Wno-switch-enum -Wno-conversion -Wno-covered-switch-default -Wno-inconsistent-missing-destructor-override -Wno-float-equal -Wno-exit-time-destructors -Wno-global-constructors -Wno-weak-vtables -Wno-four-char-constants -Wno-padded -Wno-reserved-identifier -Wno-duplicate-enum -fomit-frame-pointer -DSDL_SUPPORT -D_GLIBCXX_USE_CXX11_ABI=1 -DUNIX -DBSPF_UNIX -DGUI_SUPPORT -DWINDOWED_SUPPORT -DSOUND_SUPPORT -DDEBUGGER_SUPPORT -DJOYSTICK_SUPPORT -DCHEATCODE_SUPPORT -DHTTP_LIB_SUPPORT -DPNG_SUPPORT -DZIP_SUPPORT -Isrc/emucore -Isrc/common -Isrc/common/tv_filters -Isrc/emucore/tia -Isrc/emucore/tia/frame-manager -Isrc/json -Isrc/common/repository/sqlite -I/usr/local/include -I/usr/local/include/SDL2 -I/usr/X11R6/include -D_REENTRANT -I/usr/X11R6/include -Isrc/unix -Isrc/gui -Isrc/debugger -Isrc/debugger/gui -Isrc/yacc -Isrc/cheat -Isrc/httplib -c src/gui/FileListWidget.cxx -o out/src/gui/FileListWidget.o In file included from src/gui/FileListWidget.cxx:20: In file included from src/gui/ScrollBarWidget.hxx:23: In file included from src/gui/Widget.hxx:28: src/common/bspf.hxx:245:37: warning: unsafe pointer arithmetic [-Wunsafe-buffer-usage] const auto pos = std::search(s1.cbegin()+startpos, s1.cend(), ~~~^~~~~~~~ src/common/bspf.hxx:249:56: warning: unsafe pointer arithmetic [-Wunsafe-buffer-usage] return pos == s1.cend() ? string::npos : pos - (s1.cbegin()+startpos); ~~~^~~~~~~~ In file included from src/gui/FileListWidget.cxx:20: In file included from src/gui/ScrollBarWidget.hxx:23: In file included from src/gui/Widget.hxx:33: In file included from src/common/StellaKeys.hxx:22: In file included from src/common/SDL_lib.hxx:34: In file included from /usr/local/include/SDL2/SDL.h:32: In file included from /usr/local/include/SDL2/SDL_main.h:25: /usr/local/include/SDL2/SDL_stdinc.h:544:13: warning: '_p' is an unsafe pointer used for buffer access [-Wunsafe-buffer-usage] Uint32 *_p = SDL_static_cast(Uint32 *, dst); ~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /usr/local/include/SDL2/SDL_stdinc.h:553:26: note: used in pointer arithmetic here case 1: *_p++ = _val; ^~ /usr/local/include/SDL2/SDL_stdinc.h:550:26: note: used in pointer arithmetic here case 0: do { *_p++ = _val; SDL_FALLTHROUGH; ^~ /usr/local/include/SDL2/SDL_stdinc.h:552:26: note: used in pointer arithmetic here case 2: *_p++ = _val; SDL_FALLTHROUGH; ^~ /usr/local/include/SDL2/SDL_stdinc.h:551:26: note: used in pointer arithmetic here case 3: *_p++ = _val; SDL_FALLTHROUGH; ^~ In file included from src/gui/FileListWidget.cxx:21: In file included from src/gui/FileListWidget.hxx:24: src/emucore/FSNode.hxx:513:31: warning: unsafe pointer arithmetic [-Wunsafe-buffer-usage] const char* cur = start + str.size() - 2; ~~~~~~^~~~~~~~~~~~ src/emucore/FSNode.hxx:512:19: warning: 'start' is an unsafe pointer used for buffer access [-Wunsafe-buffer-usage] const char* start = str.c_str(); ~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~ src/emucore/FSNode.hxx:513:25: note: used in pointer arithmetic here const char* cur = start + str.size() - 2; ^~~~~ src/emucore/FSNode.hxx:513:19: warning: 'cur' is an unsafe pointer used for buffer access [-Wunsafe-buffer-usage] const char* cur = start + str.size() - 2; ~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~ src/emucore/FSNode.hxx:518:14: note: used in pointer arithmetic here return cur + 1; ^~~ src/emucore/FSNode.hxx:516:11: note: used in pointer arithmetic here --cur; ^~~ src/gui/FileListWidget.cxx:688:22: warning: 'small_icons' is an unsafe buffer that does not perform bounds checks [-Wunsafe-buffer-usage] static const Icon* small_icons[int(IconType::numTypes)] = { ~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ src/gui/FileListWidget.cxx:699:22: note: used in buffer access here return smallIcon ? small_icons[iconType] : large_icons[iconType]; ^~~~~~~~~~~ src/gui/FileListWidget.cxx:691:22: warning: 'large_icons' is an unsafe buffer that does not perform bounds checks [-Wunsafe-buffer-usage] static const Icon* large_icons[int(IconType::numTypes)] = { ~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ src/gui/FileListWidget.cxx:699:46: note: used in buffer access here return smallIcon ? small_icons[iconType] : large_icons[iconType]; ^~~~~~~~~~~ 8 warnings generated. mkdir -p -p src/gui/.deps mkdir -p -p out/src/gui c++ -MMD -MF "src/gui/.deps/Font.d" -MQ "out/src/gui/Font.o" -MP -O2 -pipe -I/usr/X11R6/include -I/usr/local/include -x c++ -Wall -Wextra -Wno-unused-parameter -Wno-multichar -Wunused -Woverloaded-virtual -Wnon-virtual-dtor -std=c++17 -Weverything -Wno-c++98-compat-pedantic -Wno-unknown-warning-option -Wno-switch-enum -Wno-conversion -Wno-covered-switch-default -Wno-inconsistent-missing-destructor-override -Wno-float-equal -Wno-exit-time-destructors -Wno-global-constructors -Wno-weak-vtables -Wno-four-char-constants -Wno-padded -Wno-reserved-identifier -Wno-duplicate-enum -fomit-frame-pointer -DSDL_SUPPORT -D_GLIBCXX_USE_CXX11_ABI=1 -DUNIX -DBSPF_UNIX -DGUI_SUPPORT -DWINDOWED_SUPPORT -DSOUND_SUPPORT -DDEBUGGER_SUPPORT -DJOYSTICK_SUPPORT -DCHEATCODE_SUPPORT -DHTTP_LIB_SUPPORT -DPNG_SUPPORT -DZIP_SUPPORT -Isrc/emucore -Isrc/common -Isrc/common/tv_filters -Isrc/emucore/tia -Isrc/emucore/tia/frame-manager -Isrc/json -Isrc/common/repository/sqlite -I/usr/local/include -I/usr/local/include/SDL2 -I/usr/X11R6/include -D_REENTRANT -I/usr/X11R6/include -Isrc/unix -Isrc/gui -Isrc/debugger -Isrc/debugger/gui -Isrc/yacc -Isrc/cheat -Isrc/httplib -c src/gui/Font.cxx -o out/src/gui/Font.o In file included from src/gui/Font.cxx:23: In file included from src/gui/Font.hxx:24: src/common/bspf.hxx:245:37: warning: unsafe pointer arithmetic [-Wunsafe-buffer-usage] const auto pos = std::search(s1.cbegin()+startpos, s1.cend(), ~~~^~~~~~~~ src/common/bspf.hxx:249:56: warning: unsafe pointer arithmetic [-Wunsafe-buffer-usage] return pos == s1.cend() ? string::npos : pos - (s1.cbegin()+startpos); ~~~^~~~~~~~ src/gui/Font.cxx:48:10: warning: unsafe buffer access [-Wunsafe-buffer-usage] return myFontDesc.width[chr - myFontDesc.firstchar]; ^~~~~~~~~~~~~~~~ 3 warnings generated. mkdir -p -p src/gui/.deps mkdir -p -p out/src/gui c++ -MMD -MF "src/gui/.deps/GameInfoDialog.d" -MQ "out/src/gui/GameInfoDialog.o" -MP -O2 -pipe -I/usr/X11R6/include -I/usr/local/include -x c++ -Wall -Wextra -Wno-unused-parameter -Wno-multichar -Wunused -Woverloaded-virtual -Wnon-virtual-dtor -std=c++17 -Weverything -Wno-c++98-compat-pedantic -Wno-unknown-warning-option -Wno-switch-enum -Wno-conversion -Wno-covered-switch-default -Wno-inconsistent-missing-destructor-override -Wno-float-equal -Wno-exit-time-destructors -Wno-global-constructors -Wno-weak-vtables -Wno-four-char-constants -Wno-padded -Wno-reserved-identifier -Wno-duplicate-enum -fomit-frame-pointer -DSDL_SUPPORT -D_GLIBCXX_USE_CXX11_ABI=1 -DUNIX -DBSPF_UNIX -DGUI_SUPPORT -DWINDOWED_SUPPORT -DSOUND_SUPPORT -DDEBUGGER_SUPPORT -DJOYSTICK_SUPPORT -DCHEATCODE_SUPPORT -DHTTP_LIB_SUPPORT -DPNG_SUPPORT -DZIP_SUPPORT -Isrc/emucore -Isrc/common -Isrc/common/tv_filters -Isrc/emucore/tia -Isrc/emucore/tia/frame-manager -Isrc/json -Isrc/common/repository/sqlite -I/usr/local/include -I/usr/local/include/SDL2 -I/usr/X11R6/include -D_REENTRANT -I/usr/X11R6/include -Isrc/unix -Isrc/gui -Isrc/debugger -Isrc/debugger/gui -Isrc/yacc -Isrc/cheat -Isrc/httplib -c src/gui/GameInfoDialog.cxx -o out/src/gui/GameInfoDialog.o In file included from src/gui/GameInfoDialog.cxx:18: In file included from src/emucore/Bankswitch.hxx:23: In file included from src/emucore/FSNode.hxx:23: src/common/bspf.hxx:245:37: warning: unsafe pointer arithmetic [-Wunsafe-buffer-usage] const auto pos = std::search(s1.cbegin()+startpos, s1.cend(), ~~~^~~~~~~~ src/common/bspf.hxx:249:56: warning: unsafe pointer arithmetic [-Wunsafe-buffer-usage] return pos == s1.cend() ? string::npos : pos - (s1.cbegin()+startpos); ~~~^~~~~~~~ In file included from src/gui/GameInfoDialog.cxx:18: In file included from src/emucore/Bankswitch.hxx:23: src/emucore/FSNode.hxx:513:31: warning: unsafe pointer arithmetic [-Wunsafe-buffer-usage] const char* cur = start + str.size() - 2; ~~~~~~^~~~~~~~~~~~ src/emucore/FSNode.hxx:512:19: warning: 'start' is an unsafe pointer used for buffer access [-Wunsafe-buffer-usage] const char* start = str.c_str(); ~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~ src/emucore/FSNode.hxx:513:25: note: used in pointer arithmetic here const char* cur = start + str.size() - 2; ^~~~~ src/emucore/FSNode.hxx:513:19: warning: 'cur' is an unsafe pointer used for buffer access [-Wunsafe-buffer-usage] const char* cur = start + str.size() - 2; ~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~ src/emucore/FSNode.hxx:516:11: note: used in pointer arithmetic here --cur; ^~~ src/emucore/FSNode.hxx:518:14: note: used in pointer arithmetic here return cur + 1; ^~~ In file included from src/gui/GameInfoDialog.cxx:23: In file included from src/gui/EditTextWidget.hxx:22: In file included from src/gui/EditableWidget.hxx:23: In file included from src/gui/Widget.hxx:33: In file included from src/common/StellaKeys.hxx:22: In file included from src/common/SDL_lib.hxx:34: In file included from /usr/local/include/SDL2/SDL.h:32: In file included from /usr/local/include/SDL2/SDL_main.h:25: /usr/local/include/SDL2/SDL_stdinc.h:544:13: warning: '_p' is an unsafe pointer used for buffer access [-Wunsafe-buffer-usage] Uint32 *_p = SDL_static_cast(Uint32 *, dst); ~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /usr/local/include/SDL2/SDL_stdinc.h:552:26: note: used in pointer arithmetic here case 2: *_p++ = _val; SDL_FALLTHROUGH; ^~ /usr/local/include/SDL2/SDL_stdinc.h:551:26: note: used in pointer arithmetic here case 3: *_p++ = _val; SDL_FALLTHROUGH; ^~ /usr/local/include/SDL2/SDL_stdinc.h:553:26: note: used in pointer arithmetic here case 1: *_p++ = _val; ^~ /usr/local/include/SDL2/SDL_stdinc.h:550:26: note: used in pointer arithmetic here case 0: do { *_p++ = _val; SDL_FALLTHROUGH; ^~ In file included from src/gui/GameInfoDialog.cxx:41: In file included from src/emucore/TIASurface.hxx:31: In file included from src/common/tv_filters/NTSCFilter.hxx:25: src/common/tv_filters/AtariNTSC.hxx:238:22: warning: 'to_rgb' is an unsafe pointer used for buffer access [-Wunsafe-buffer-usage] const float* to_rgb, int& ir, int& ig, int& ib) { ~~~~~~~~~~~~~^~~~~~ src/common/tv_filters/AtariNTSC.hxx:239:49: note: used in buffer access here ir = static_cast(y + to_rgb[0] * i + to_rgb[1] * q); ^~~~~~ src/common/tv_filters/AtariNTSC.hxx:240:49: note: used in buffer access here ig = static_cast(y + to_rgb[2] * i + to_rgb[3] * q); ^~~~~~ src/common/tv_filters/AtariNTSC.hxx:240:33: note: used in buffer access here ig = static_cast(y + to_rgb[2] * i + to_rgb[3] * q); ^~~~~~ src/common/tv_filters/AtariNTSC.hxx:241:49: note: used in buffer access here ib = static_cast(y + to_rgb[4] * i + to_rgb[5] * q); ^~~~~~ src/common/tv_filters/AtariNTSC.hxx:241:33: note: used in buffer access here ib = static_cast(y + to_rgb[4] * i + to_rgb[5] * q); ^~~~~~ In file included from src/gui/GameInfoDialog.cxx:42: In file included from src/emucore/tia/TIA.hxx:37: src/emucore/tia/Missile.hxx:170:7: warning: unsafe buffer access [-Wunsafe-buffer-usage] if (myDecodes[myCounter] && !myResmp) { ^~~~~~~~~ src/emucore/tia/Missile.hxx:173:14: warning: unsafe buffer access [-Wunsafe-buffer-usage] myCopy = myDecodes[myCounter]; ^~~~~~~~~ In file included from src/gui/GameInfoDialog.cxx:42: In file included from src/emucore/tia/TIA.hxx:38: src/emucore/tia/Player.hxx:186:7: warning: unsafe buffer access [-Wunsafe-buffer-usage] if (myDecodes[myCounter]) { ^~~~~~~~~ src/emucore/tia/Player.hxx:190:14: warning: unsafe buffer access [-Wunsafe-buffer-usage] myCopy = myDecodes[myCounter]; ^~~~~~~~~ src/gui/GameInfoDialog.cxx:618:5: warning: unsafe buffer access [-Wunsafe-buffer-usage] myScoreAddress[a] = new EditTextWidget(myTab, _font, s_xpos, ypos - 1, awidth, lineHeight); ^~~~~~~~~~~~~~ src/gui/GameInfoDialog.cxx:619:5: warning: unsafe buffer access [-Wunsafe-buffer-usage] myScoreAddress[a]->setTextFilter(fAddr); ^~~~~~~~~~~~~~ src/gui/GameInfoDialog.cxx:620:5: warning: unsafe buffer access [-Wunsafe-buffer-usage] myScoreAddress[a]->setMaxLen(4); ^~~~~~~~~~~~~~ src/gui/GameInfoDialog.cxx:621:5: warning: unsafe buffer access [-Wunsafe-buffer-usage] myScoreAddress[a]->setToolTip("Define the addresses (in hex format, highest byte first) " ^~~~~~~~~~~~~~ src/gui/GameInfoDialog.cxx:623:19: warning: unsafe buffer access [-Wunsafe-buffer-usage] wid.push_back(myScoreAddress[a]); ^~~~~~~~~~~~~~ src/gui/GameInfoDialog.cxx:624:15: warning: unsafe buffer access [-Wunsafe-buffer-usage] s_xpos += myScoreAddress[a]->getWidth() + 2; ^~~~~~~~~~~~~~ src/gui/GameInfoDialog.cxx:626:5: warning: unsafe buffer access [-Wunsafe-buffer-usage] myScoreAddressVal[a] = new EditTextWidget(myTab, _font, myScoreAddress[a]->getRight() + 2, ^~~~~~~~~~~~~~~~~ src/gui/GameInfoDialog.cxx:626:61: warning: unsafe buffer access [-Wunsafe-buffer-usage] myScoreAddressVal[a] = new EditTextWidget(myTab, _font, myScoreAddress[a]->getRight() + 2, ^~~~~~~~~~~~~~ src/gui/GameInfoDialog.cxx:628:5: warning: unsafe buffer access [-Wunsafe-buffer-usage] myScoreAddressVal[a]->setEditable(false); ^~~~~~~~~~~~~~~~~ src/gui/GameInfoDialog.cxx:629:15: warning: unsafe buffer access [-Wunsafe-buffer-usage] s_xpos += myScoreAddressVal[a]->getWidth() + 16; ^~~~~~~~~~~~~~~~~ src/gui/GameInfoDialog.cxx:924:5: warning: unsafe buffer access [-Wunsafe-buffer-usage] myScoreAddress[a]->setText(ss.str()); ^~~~~~~~~~~~~~ src/gui/GameInfoDialog.cxx:1071:17: warning: unsafe buffer access [-Wunsafe-buffer-usage] strAddr = myScoreAddress[a]->getText(); ^~~~~~~~~~~~~~ src/gui/GameInfoDialog.cxx:1304:5: warning: unsafe buffer access [-Wunsafe-buffer-usage] myScoreAddress[a]->setEnabled(enable && numAddr > a); ^~~~~~~~~~~~~~ src/gui/GameInfoDialog.cxx:1305:5: warning: unsafe buffer access [-Wunsafe-buffer-usage] myScoreAddressVal[a]->setEnabled(enable && numAddr > a&& enableConsole); ^~~~~~~~~~~~~~~~~ src/gui/GameInfoDialog.cxx:1340:21: warning: unsafe buffer access [-Wunsafe-buffer-usage] setAddressVal(myScoreAddress[a], myScoreAddressVal[a]); ^~~~~~~~~~~~~~ src/gui/GameInfoDialog.cxx:1340:40: warning: unsafe buffer access [-Wunsafe-buffer-usage] setAddressVal(myScoreAddress[a], myScoreAddressVal[a]); ^~~~~~~~~~~~~~~~~ src/gui/GameInfoDialog.cxx:1341:24: warning: unsafe buffer access [-Wunsafe-buffer-usage] string strAddr = myScoreAddress[a]->getText(); ^~~~~~~~~~~~~~ src/gui/GameInfoDialog.cxx:1345:7: warning: unsafe buffer access [-Wunsafe-buffer-usage] myScoreAddressVal[a]->setText(""); ^~~~~~~~~~~~~~~~~ 29 warnings generated. mkdir -p -p src/gui/.deps mkdir -p -p out/src/gui c++ -MMD -MF "src/gui/.deps/GlobalPropsDialog.d" -MQ "out/src/gui/GlobalPropsDialog.o" -MP -O2 -pipe -I/usr/X11R6/include -I/usr/local/include -x c++ -Wall -Wextra -Wno-unused-parameter -Wno-multichar -Wunused -Woverloaded-virtual -Wnon-virtual-dtor -std=c++17 -Weverything -Wno-c++98-compat-pedantic -Wno-unknown-warning-option -Wno-switch-enum -Wno-conversion -Wno-covered-switch-default -Wno-inconsistent-missing-destructor-override -Wno-float-equal -Wno-exit-time-destructors -Wno-global-constructors -Wno-weak-vtables -Wno-four-char-constants -Wno-padded -Wno-reserved-identifier -Wno-duplicate-enum -fomit-frame-pointer -DSDL_SUPPORT -D_GLIBCXX_USE_CXX11_ABI=1 -DUNIX -DBSPF_UNIX -DGUI_SUPPORT -DWINDOWED_SUPPORT -DSOUND_SUPPORT -DDEBUGGER_SUPPORT -DJOYSTICK_SUPPORT -DCHEATCODE_SUPPORT -DHTTP_LIB_SUPPORT -DPNG_SUPPORT -DZIP_SUPPORT -Isrc/emucore -Isrc/common -Isrc/common/tv_filters -Isrc/emucore/tia -Isrc/emucore/tia/frame-manager -Isrc/json -Isrc/common/repository/sqlite -I/usr/local/include -I/usr/local/include/SDL2 -I/usr/X11R6/include -D_REENTRANT -I/usr/X11R6/include -Isrc/unix -Isrc/gui -Isrc/debugger -Isrc/debugger/gui -Isrc/yacc -Isrc/cheat -Isrc/httplib -c src/gui/GlobalPropsDialog.cxx -o out/src/gui/GlobalPropsDialog.o In file included from src/gui/GlobalPropsDialog.cxx:18: src/common/bspf.hxx:245:37: warning: unsafe pointer arithmetic [-Wunsafe-buffer-usage] const auto pos = std::search(s1.cbegin()+startpos, s1.cend(), ~~~^~~~~~~~ src/common/bspf.hxx:249:56: warning: unsafe pointer arithmetic [-Wunsafe-buffer-usage] return pos == s1.cend() ? string::npos : pos - (s1.cbegin()+startpos); ~~~^~~~~~~~ In file included from src/gui/GlobalPropsDialog.cxx:19: In file included from src/emucore/Bankswitch.hxx:23: src/emucore/FSNode.hxx:513:31: warning: unsafe pointer arithmetic [-Wunsafe-buffer-usage] const char* cur = start + str.size() - 2; ~~~~~~^~~~~~~~~~~~ src/emucore/FSNode.hxx:512:19: warning: 'start' is an unsafe pointer used for buffer access [-Wunsafe-buffer-usage] const char* start = str.c_str(); ~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~ src/emucore/FSNode.hxx:513:25: note: used in pointer arithmetic here const char* cur = start + str.size() - 2; ^~~~~ src/emucore/FSNode.hxx:513:19: warning: 'cur' is an unsafe pointer used for buffer access [-Wunsafe-buffer-usage] const char* cur = start + str.size() - 2; ~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~ src/emucore/FSNode.hxx:518:14: note: used in pointer arithmetic here return cur + 1; ^~~ src/emucore/FSNode.hxx:516:11: note: used in pointer arithmetic here --cur; ^~~ In file included from src/gui/GlobalPropsDialog.cxx:21: In file included from src/gui/Dialog.hxx:31: In file included from src/gui/Widget.hxx:33: In file included from src/common/StellaKeys.hxx:22: In file included from src/common/SDL_lib.hxx:34: In file included from /usr/local/include/SDL2/SDL.h:32: In file included from /usr/local/include/SDL2/SDL_main.h:25: /usr/local/include/SDL2/SDL_stdinc.h:544:13: warning: '_p' is an unsafe pointer used for buffer access [-Wunsafe-buffer-usage] Uint32 *_p = SDL_static_cast(Uint32 *, dst); ~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /usr/local/include/SDL2/SDL_stdinc.h:552:26: note: used in pointer arithmetic here case 2: *_p++ = _val; SDL_FALLTHROUGH; ^~ /usr/local/include/SDL2/SDL_stdinc.h:553:26: note: used in pointer arithmetic here case 1: *_p++ = _val; ^~ /usr/local/include/SDL2/SDL_stdinc.h:550:26: note: used in pointer arithmetic here case 0: do { *_p++ = _val; SDL_FALLTHROUGH; ^~ /usr/local/include/SDL2/SDL_stdinc.h:551:26: note: used in pointer arithmetic here case 3: *_p++ = _val; SDL_FALLTHROUGH; ^~ 6 warnings generated. mkdir -p -p src/gui/.deps mkdir -p -p out/src/gui c++ -MMD -MF "src/gui/.deps/HelpDialog.d" -MQ "out/src/gui/HelpDialog.o" -MP -O2 -pipe -I/usr/X11R6/include -I/usr/local/include -x c++ -Wall -Wextra -Wno-unused-parameter -Wno-multichar -Wunused -Woverloaded-virtual -Wnon-virtual-dtor -std=c++17 -Weverything -Wno-c++98-compat-pedantic -Wno-unknown-warning-option -Wno-switch-enum -Wno-conversion -Wno-covered-switch-default -Wno-inconsistent-missing-destructor-override -Wno-float-equal -Wno-exit-time-destructors -Wno-global-constructors -Wno-weak-vtables -Wno-four-char-constants -Wno-padded -Wno-reserved-identifier -Wno-duplicate-enum -fomit-frame-pointer -DSDL_SUPPORT -D_GLIBCXX_USE_CXX11_ABI=1 -DUNIX -DBSPF_UNIX -DGUI_SUPPORT -DWINDOWED_SUPPORT -DSOUND_SUPPORT -DDEBUGGER_SUPPORT -DJOYSTICK_SUPPORT -DCHEATCODE_SUPPORT -DHTTP_LIB_SUPPORT -DPNG_SUPPORT -DZIP_SUPPORT -Isrc/emucore -Isrc/common -Isrc/common/tv_filters -Isrc/emucore/tia -Isrc/emucore/tia/frame-manager -Isrc/json -Isrc/common/repository/sqlite -I/usr/local/include -I/usr/local/include/SDL2 -I/usr/X11R6/include -D_REENTRANT -I/usr/X11R6/include -Isrc/unix -Isrc/gui -Isrc/debugger -Isrc/debugger/gui -Isrc/yacc -Isrc/cheat -Isrc/httplib -c src/gui/HelpDialog.cxx -o out/src/gui/HelpDialog.o In file included from src/gui/HelpDialog.cxx:18: In file included from src/emucore/OSystem.hxx:55: In file included from src/emucore/FSNode.hxx:23: src/common/bspf.hxx:245:37: warning: unsafe pointer arithmetic [-Wunsafe-buffer-usage] const auto pos = std::search(s1.cbegin()+startpos, s1.cend(), ~~~^~~~~~~~ src/common/bspf.hxx:249:56: warning: unsafe pointer arithmetic [-Wunsafe-buffer-usage] return pos == s1.cend() ? string::npos : pos - (s1.cbegin()+startpos); ~~~^~~~~~~~ In file included from src/gui/HelpDialog.cxx:18: In file included from src/emucore/OSystem.hxx:55: src/emucore/FSNode.hxx:513:31: warning: unsafe pointer arithmetic [-Wunsafe-buffer-usage] const char* cur = start + str.size() - 2; ~~~~~~^~~~~~~~~~~~ src/emucore/FSNode.hxx:512:19: warning: 'start' is an unsafe pointer used for buffer access [-Wunsafe-buffer-usage] const char* start = str.c_str(); ~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~ src/emucore/FSNode.hxx:513:25: note: used in pointer arithmetic here const char* cur = start + str.size() - 2; ^~~~~ src/emucore/FSNode.hxx:513:19: warning: 'cur' is an unsafe pointer used for buffer access [-Wunsafe-buffer-usage] const char* cur = start + str.size() - 2; ~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~ src/emucore/FSNode.hxx:518:14: note: used in pointer arithmetic here return cur + 1; ^~~ src/emucore/FSNode.hxx:516:11: note: used in pointer arithmetic here --cur; ^~~ In file included from src/gui/HelpDialog.cxx:19: In file included from src/emucore/EventHandler.hxx:38: In file included from src/common/PKeyboardHandler.hxx:30: In file included from src/common/KeyMap.hxx:24: In file included from src/common/StellaKeys.hxx:22: In file included from src/common/SDL_lib.hxx:34: In file included from /usr/local/include/SDL2/SDL.h:32: In file included from /usr/local/include/SDL2/SDL_main.h:25: /usr/local/include/SDL2/SDL_stdinc.h:544:13: warning: '_p' is an unsafe pointer used for buffer access [-Wunsafe-buffer-usage] Uint32 *_p = SDL_static_cast(Uint32 *, dst); ~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /usr/local/include/SDL2/SDL_stdinc.h:551:26: note: used in pointer arithmetic here case 3: *_p++ = _val; SDL_FALLTHROUGH; ^~ /usr/local/include/SDL2/SDL_stdinc.h:550:26: note: used in pointer arithmetic here case 0: do { *_p++ = _val; SDL_FALLTHROUGH; ^~ /usr/local/include/SDL2/SDL_stdinc.h:552:26: note: used in pointer arithmetic here case 2: *_p++ = _val; SDL_FALLTHROUGH; ^~ /usr/local/include/SDL2/SDL_stdinc.h:553:26: note: used in pointer arithmetic here case 1: *_p++ = _val; ^~ 6 warnings generated. mkdir -p -p src/gui/.deps mkdir -p -p out/src/gui c++ -MMD -MF "src/gui/.deps/HighScoresDialog.d" -MQ "out/src/gui/HighScoresDialog.o" -MP -O2 -pipe -I/usr/X11R6/include -I/usr/local/include -x c++ -Wall -Wextra -Wno-unused-parameter -Wno-multichar -Wunused -Woverloaded-virtual -Wnon-virtual-dtor -std=c++17 -Weverything -Wno-c++98-compat-pedantic -Wno-unknown-warning-option -Wno-switch-enum -Wno-conversion -Wno-covered-switch-default -Wno-inconsistent-missing-destructor-override -Wno-float-equal -Wno-exit-time-destructors -Wno-global-constructors -Wno-weak-vtables -Wno-four-char-constants -Wno-padded -Wno-reserved-identifier -Wno-duplicate-enum -fomit-frame-pointer -DSDL_SUPPORT -D_GLIBCXX_USE_CXX11_ABI=1 -DUNIX -DBSPF_UNIX -DGUI_SUPPORT -DWINDOWED_SUPPORT -DSOUND_SUPPORT -DDEBUGGER_SUPPORT -DJOYSTICK_SUPPORT -DCHEATCODE_SUPPORT -DHTTP_LIB_SUPPORT -DPNG_SUPPORT -DZIP_SUPPORT -Isrc/emucore -Isrc/common -Isrc/common/tv_filters -Isrc/emucore/tia -Isrc/emucore/tia/frame-manager -Isrc/json -Isrc/common/repository/sqlite -I/usr/local/include -I/usr/local/include/SDL2 -I/usr/X11R6/include -D_REENTRANT -I/usr/X11R6/include -Isrc/unix -Isrc/gui -Isrc/debugger -Isrc/debugger/gui -Isrc/yacc -Isrc/cheat -Isrc/httplib -c src/gui/HighScoresDialog.cxx -o out/src/gui/HighScoresDialog.o In file included from src/gui/HighScoresDialog.cxx:18: In file included from src/emucore/OSystem.hxx:55: In file included from src/emucore/FSNode.hxx:23: src/common/bspf.hxx:245:37: warning: unsafe pointer arithmetic [-Wunsafe-buffer-usage] const auto pos = std::search(s1.cbegin()+startpos, s1.cend(), ~~~^~~~~~~~ src/common/bspf.hxx:249:56: warning: unsafe pointer arithmetic [-Wunsafe-buffer-usage] return pos == s1.cend() ? string::npos : pos - (s1.cbegin()+startpos); ~~~^~~~~~~~ In file included from src/gui/HighScoresDialog.cxx:18: In file included from src/emucore/OSystem.hxx:55: src/emucore/FSNode.hxx:513:31: warning: unsafe pointer arithmetic [-Wunsafe-buffer-usage] const char* cur = start + str.size() - 2; ~~~~~~^~~~~~~~~~~~ src/emucore/FSNode.hxx:512:19: warning: 'start' is an unsafe pointer used for buffer access [-Wunsafe-buffer-usage] const char* start = str.c_str(); ~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~ src/emucore/FSNode.hxx:513:25: note: used in pointer arithmetic here const char* cur = start + str.size() - 2; ^~~~~ src/emucore/FSNode.hxx:513:19: warning: 'cur' is an unsafe pointer used for buffer access [-Wunsafe-buffer-usage] const char* cur = start + str.size() - 2; ~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~ src/emucore/FSNode.hxx:516:11: note: used in pointer arithmetic here --cur; ^~~ src/emucore/FSNode.hxx:518:14: note: used in pointer arithmetic here return cur + 1; ^~~ In file included from src/gui/HighScoresDialog.cxx:20: In file included from src/gui/Launcher.hxx:27: In file included from src/gui/DialogContainer.hxx:26: In file included from src/common/StellaKeys.hxx:22: In file included from src/common/SDL_lib.hxx:34: In file included from /usr/local/include/SDL2/SDL.h:32: In file included from /usr/local/include/SDL2/SDL_main.h:25: /usr/local/include/SDL2/SDL_stdinc.h:544:13: warning: '_p' is an unsafe pointer used for buffer access [-Wunsafe-buffer-usage] Uint32 *_p = SDL_static_cast(Uint32 *, dst); ~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /usr/local/include/SDL2/SDL_stdinc.h:552:26: note: used in pointer arithmetic here case 2: *_p++ = _val; SDL_FALLTHROUGH; ^~ /usr/local/include/SDL2/SDL_stdinc.h:551:26: note: used in pointer arithmetic here case 3: *_p++ = _val; SDL_FALLTHROUGH; ^~ /usr/local/include/SDL2/SDL_stdinc.h:553:26: note: used in pointer arithmetic here case 1: *_p++ = _val; ^~ /usr/local/include/SDL2/SDL_stdinc.h:550:26: note: used in pointer arithmetic here case 0: do { *_p++ = _val; SDL_FALLTHROUGH; ^~ src/gui/HighScoresDialog.cxx:164:5: warning: unsafe buffer access [-Wunsafe-buffer-usage] myRankWidgets[r] = new StaticTextWidget(this, _font, xposRank + 8, ypos + 1, ^~~~~~~~~~~~~ src/gui/HighScoresDialog.cxx:166:5: warning: unsafe buffer access [-Wunsafe-buffer-usage] myScoreWidgets[r] = new StaticTextWidget(this, _font, xposScore, ypos + 1, "12345678"); ^~~~~~~~~~~~~~ src/gui/HighScoresDialog.cxx:167:5: warning: unsafe buffer access [-Wunsafe-buffer-usage] mySpecialWidgets[r] = new StaticTextWidget(this, _font, xposSpecial + 8, ypos + 1, "123"); ^~~~~~~~~~~~~~~~ src/gui/HighScoresDialog.cxx:168:5: warning: unsafe buffer access [-Wunsafe-buffer-usage] myNameWidgets[r] = new StaticTextWidget(this, _font, xposName + 2, ypos + 1, " "); ^~~~~~~~~~~~~ src/gui/HighScoresDialog.cxx:169:5: warning: unsafe buffer access [-Wunsafe-buffer-usage] myEditNameWidgets[r] = new EditTextWidget(this, _font, xposName, ypos - 1, nWidth, lineHeight); ^~~~~~~~~~~~~~~~~ src/gui/HighScoresDialog.cxx:170:5: warning: unsafe buffer access [-Wunsafe-buffer-usage] myEditNameWidgets[r]->setFlags(EditTextWidget::FLAG_INVISIBLE); ^~~~~~~~~~~~~~~~~ src/gui/HighScoresDialog.cxx:171:5: warning: unsafe buffer access [-Wunsafe-buffer-usage] myEditNameWidgets[r]->setEnabled(false); ^~~~~~~~~~~~~~~~~ src/gui/HighScoresDialog.cxx:172:19: warning: unsafe buffer access [-Wunsafe-buffer-usage] wid.push_back(myEditNameWidgets[r]); ^~~~~~~~~~~~~~~~~ src/gui/HighScoresDialog.cxx:173:5: warning: unsafe buffer access [-Wunsafe-buffer-usage] myDateWidgets[r] = new StaticTextWidget(this, _font, xposDate, ypos + 1, "YY-MM-DD HH:MM"); ^~~~~~~~~~~~~ src/gui/HighScoresDialog.cxx:174:5: warning: unsafe buffer access [-Wunsafe-buffer-usage] myDeleteButtons[r] = new ButtonWidget(this, _font, xposDelete, ypos + 1, fontWidth * 2, fontHeight, "X", ^~~~~~~~~~~~~~~ src/gui/HighScoresDialog.cxx:176:5: warning: unsafe buffer access [-Wunsafe-buffer-usage] myDeleteButtons[r]->setID(r); ^~~~~~~~~~~~~~~ src/gui/HighScoresDialog.cxx:177:5: warning: unsafe buffer access [-Wunsafe-buffer-usage] myDeleteButtons[r]->setToolTip("Click to delete this high score."); ^~~~~~~~~~~~~~~ src/gui/HighScoresDialog.cxx:178:19: warning: unsafe buffer access [-Wunsafe-buffer-usage] wid.push_back(myDeleteButtons[r]); ^~~~~~~~~~~~~~~ src/gui/HighScoresDialog.cxx:297:18: warning: unsafe buffer access [-Wunsafe-buffer-usage] myInitials = myEditNameWidgets[myHighScoreRank]->getText(); ^~~~~~~~~~~~~~~~~ src/gui/HighScoresDialog.cxx:298:5: warning: unsafe buffer access [-Wunsafe-buffer-usage] myScores.scores[myHighScoreRank].name = myInitials; ^~~~~~~~~~~~~~~ src/gui/HighScoresDialog.cxx:388:8: warning: unsafe buffer access [-Wunsafe-buffer-usage] if(myScores.scores[r].score > 0) ^~~~~~~~~~~~~~~ src/gui/HighScoresDialog.cxx:390:7: warning: unsafe buffer access [-Wunsafe-buffer-usage] myRankWidgets[r]->clearFlags(Widget::FLAG_INVISIBLE); ^~~~~~~~~~~~~ src/gui/HighScoresDialog.cxx:391:7: warning: unsafe buffer access [-Wunsafe-buffer-usage] myDeleteButtons[r]->clearFlags(Widget::FLAG_INVISIBLE); ^~~~~~~~~~~~~~~ src/gui/HighScoresDialog.cxx:392:7: warning: unsafe buffer access [-Wunsafe-buffer-usage] myDeleteButtons[r]->setEnabled(true); ^~~~~~~~~~~~~~~ src/gui/HighScoresDialog.cxx:396:7: warning: unsafe buffer access [-Wunsafe-buffer-usage] myRankWidgets[r]->setFlags(Widget::FLAG_INVISIBLE); ^~~~~~~~~~~~~ src/gui/HighScoresDialog.cxx:397:7: warning: unsafe buffer access [-Wunsafe-buffer-usage] myDeleteButtons[r]->setFlags(Widget::FLAG_INVISIBLE); ^~~~~~~~~~~~~~~ src/gui/HighScoresDialog.cxx:398:7: warning: unsafe buffer access [-Wunsafe-buffer-usage] myDeleteButtons[r]->setEnabled(false); ^~~~~~~~~~~~~~~ src/gui/HighScoresDialog.cxx:400:5: warning: unsafe buffer access [-Wunsafe-buffer-usage] myScoreWidgets[r]->setLabel(instance().highScores().formattedScore(myScores.scores[r].score, ^~~~~~~~~~~~~~ src/gui/HighScoresDialog.cxx:400:72: warning: unsafe buffer access [-Wunsafe-buffer-usage] myScoreWidgets[r]->setLabel(instance().highScores().formattedScore(myScores.scores[r].score, ^~~~~~~~~~~~~~~ src/gui/HighScoresDialog.cxx:403:9: warning: unsafe buffer access [-Wunsafe-buffer-usage] if (myScores.scores[r].special > 0) ^~~~~~~~~~~~~~~ src/gui/HighScoresDialog.cxx:405:10: warning: unsafe buffer access [-Wunsafe-buffer-usage] << myScores.scores[r].special; ^~~~~~~~~~~~~~~ src/gui/HighScoresDialog.cxx:406:5: warning: unsafe buffer access [-Wunsafe-buffer-usage] mySpecialWidgets[r]->setLabel(buf.str()); ^~~~~~~~~~~~~~~~ src/gui/HighScoresDialog.cxx:408:5: warning: unsafe buffer access [-Wunsafe-buffer-usage] myNameWidgets[r]->setLabel(myScores.scores[r].name); ^~~~~~~~~~~~~ src/gui/HighScoresDialog.cxx:408:32: warning: unsafe buffer access [-Wunsafe-buffer-usage] myNameWidgets[r]->setLabel(myScores.scores[r].name); ^~~~~~~~~~~~~~~ src/gui/HighScoresDialog.cxx:409:5: warning: unsafe buffer access [-Wunsafe-buffer-usage] myDateWidgets[r]->setLabel(myScores.scores[r].date); ^~~~~~~~~~~~~ src/gui/HighScoresDialog.cxx:409:32: warning: unsafe buffer access [-Wunsafe-buffer-usage] myDateWidgets[r]->setLabel(myScores.scores[r].date); ^~~~~~~~~~~~~~~ src/gui/HighScoresDialog.cxx:413:7: warning: unsafe buffer access [-Wunsafe-buffer-usage] myNameWidgets[r]->setFlags(EditTextWidget::FLAG_INVISIBLE); ^~~~~~~~~~~~~ src/gui/HighScoresDialog.cxx:414:7: warning: unsafe buffer access [-Wunsafe-buffer-usage] myEditNameWidgets[r]->clearFlags(EditTextWidget::FLAG_INVISIBLE); ^~~~~~~~~~~~~~~~~ src/gui/HighScoresDialog.cxx:415:7: warning: unsafe buffer access [-Wunsafe-buffer-usage] myEditNameWidgets[r]->setEnabled(true); ^~~~~~~~~~~~~~~~~ src/gui/HighScoresDialog.cxx:416:7: warning: unsafe buffer access [-Wunsafe-buffer-usage] myEditNameWidgets[r]->setEditable(true); ^~~~~~~~~~~~~~~~~ src/gui/HighScoresDialog.cxx:418:9: warning: unsafe buffer access [-Wunsafe-buffer-usage] myEditNameWidgets[r]->setText(myInitials); ^~~~~~~~~~~~~~~~~ src/gui/HighScoresDialog.cxx:422:7: warning: unsafe buffer access [-Wunsafe-buffer-usage] myNameWidgets[r]->clearFlags(EditTextWidget::FLAG_INVISIBLE); ^~~~~~~~~~~~~ src/gui/HighScoresDialog.cxx:423:7: warning: unsafe buffer access [-Wunsafe-buffer-usage] myEditNameWidgets[r]->setFlags(EditTextWidget::FLAG_INVISIBLE); ^~~~~~~~~~~~~~~~~ src/gui/HighScoresDialog.cxx:424:7: warning: unsafe buffer access [-Wunsafe-buffer-usage] myEditNameWidgets[r]->setEnabled(false); ^~~~~~~~~~~~~~~~~ src/gui/HighScoresDialog.cxx:425:7: warning: unsafe buffer access [-Wunsafe-buffer-usage] myEditNameWidgets[r]->setEditable(false); ^~~~~~~~~~~~~~~~~ src/gui/HighScoresDialog.cxx:444:31: warning: unsafe buffer access [-Wunsafe-buffer-usage] const Int32 highScore = myScores.scores[myHighScoreRank].score; ^~~~~~~~~~~~~~~ src/gui/HighScoresDialog.cxx:450:49: warning: unsafe buffer access [-Wunsafe-buffer-usage] if (newScore == highScore && newSpecial > myScores.scores[myHighScoreRank].special) ^~~~~~~~~~~~~~~ src/gui/HighScoresDialog.cxx:459:9: warning: unsafe buffer access [-Wunsafe-buffer-usage] myScores.scores[r].score = myScores.scores[r - 1].score; ^~~~~~~~~~~~~~~ src/gui/HighScoresDialog.cxx:459:36: warning: unsafe buffer access [-Wunsafe-buffer-usage] myScores.scores[r].score = myScores.scores[r - 1].score; ^~~~~~~~~~~~~~~ src/gui/HighScoresDialog.cxx:460:9: warning: unsafe buffer access [-Wunsafe-buffer-usage] myScores.scores[r].special = myScores.scores[r - 1].special; ^~~~~~~~~~~~~~~ src/gui/HighScoresDialog.cxx:460:38: warning: unsafe buffer access [-Wunsafe-buffer-usage] myScores.scores[r].special = myScores.scores[r - 1].special; ^~~~~~~~~~~~~~~ src/gui/HighScoresDialog.cxx:461:9: warning: unsafe buffer access [-Wunsafe-buffer-usage] myScores.scores[r].name = myScores.scores[r - 1].name; ^~~~~~~~~~~~~~~ src/gui/HighScoresDialog.cxx:461:35: warning: unsafe buffer access [-Wunsafe-buffer-usage] myScores.scores[r].name = myScores.scores[r - 1].name; ^~~~~~~~~~~~~~~ src/gui/HighScoresDialog.cxx:462:9: warning: unsafe buffer access [-Wunsafe-buffer-usage] myScores.scores[r].date = myScores.scores[r - 1].date; ^~~~~~~~~~~~~~~ src/gui/HighScoresDialog.cxx:462:35: warning: unsafe buffer access [-Wunsafe-buffer-usage] myScores.scores[r].date = myScores.scores[r - 1].date; ^~~~~~~~~~~~~~~ src/gui/HighScoresDialog.cxx:464:7: warning: unsafe buffer access [-Wunsafe-buffer-usage] myScores.scores[myHighScoreRank].score = newScore; ^~~~~~~~~~~~~~~ src/gui/HighScoresDialog.cxx:465:7: warning: unsafe buffer access [-Wunsafe-buffer-usage] myScores.scores[myHighScoreRank].special = newSpecial; ^~~~~~~~~~~~~~~ src/gui/HighScoresDialog.cxx:466:7: warning: unsafe buffer access [-Wunsafe-buffer-usage] myScores.scores[myHighScoreRank].date = myNow; ^~~~~~~~~~~~~~~ src/gui/HighScoresDialog.cxx:479:5: warning: unsafe buffer access [-Wunsafe-buffer-usage] myScores.scores[r].score = myScores.scores[r + 1].score; ^~~~~~~~~~~~~~~ src/gui/HighScoresDialog.cxx:479:32: warning: unsafe buffer access [-Wunsafe-buffer-usage] myScores.scores[r].score = myScores.scores[r + 1].score; ^~~~~~~~~~~~~~~ src/gui/HighScoresDialog.cxx:480:5: warning: unsafe buffer access [-Wunsafe-buffer-usage] myScores.scores[r].special = myScores.scores[r + 1].special; ^~~~~~~~~~~~~~~ src/gui/HighScoresDialog.cxx:480:34: warning: unsafe buffer access [-Wunsafe-buffer-usage] myScores.scores[r].special = myScores.scores[r + 1].special; ^~~~~~~~~~~~~~~ src/gui/HighScoresDialog.cxx:481:5: warning: unsafe buffer access [-Wunsafe-buffer-usage] myScores.scores[r].name = myScores.scores[r + 1].name; ^~~~~~~~~~~~~~~ src/gui/HighScoresDialog.cxx:481:31: warning: unsafe buffer access [-Wunsafe-buffer-usage] myScores.scores[r].name = myScores.scores[r + 1].name; ^~~~~~~~~~~~~~~ src/gui/HighScoresDialog.cxx:482:5: warning: unsafe buffer access [-Wunsafe-buffer-usage] myScores.scores[r].date = myScores.scores[r + 1].date; ^~~~~~~~~~~~~~~ src/gui/HighScoresDialog.cxx:482:31: warning: unsafe buffer access [-Wunsafe-buffer-usage] myScores.scores[r].date = myScores.scores[r + 1].date; ^~~~~~~~~~~~~~~ src/gui/HighScoresDialog.cxx:484:3: warning: unsafe buffer access [-Wunsafe-buffer-usage] myScores.scores[NUM_RANKS - 1].score = 0; ^~~~~~~~~~~~~~~ src/gui/HighScoresDialog.cxx:485:3: warning: unsafe buffer access [-Wunsafe-buffer-usage] myScores.scores[NUM_RANKS - 1].special = 0; ^~~~~~~~~~~~~~~ src/gui/HighScoresDialog.cxx:486:3: warning: unsafe buffer access [-Wunsafe-buffer-usage] myScores.scores[NUM_RANKS - 1].name = ""; ^~~~~~~~~~~~~~~ src/gui/HighScoresDialog.cxx:487:3: warning: unsafe buffer access [-Wunsafe-buffer-usage] myScores.scores[NUM_RANKS - 1].date = ""; ^~~~~~~~~~~~~~~ src/gui/HighScoresDialog.cxx:497:5: warning: unsafe buffer access [-Wunsafe-buffer-usage] myEditNameWidgets[myEditRank]->setText(myEditNameWidgets[myEditRank + 1]->getText()); ^~~~~~~~~~~~~~~~~ src/gui/HighScoresDialog.cxx:497:44: warning: unsafe buffer access [-Wunsafe-buffer-usage] myEditNameWidgets[myEditRank]->setText(myEditNameWidgets[myEditRank + 1]->getText()); ^~~~~~~~~~~~~~~~~ 73 warnings generated. mkdir -p -p src/gui/.deps mkdir -p -p out/src/gui c++ -MMD -MF "src/gui/.deps/HighScoresMenu.d" -MQ "out/src/gui/HighScoresMenu.o" -MP -O2 -pipe -I/usr/X11R6/include -I/usr/local/include -x c++ -Wall -Wextra -Wno-unused-parameter -Wno-multichar -Wunused -Woverloaded-virtual -Wnon-virtual-dtor -std=c++17 -Weverything -Wno-c++98-compat-pedantic -Wno-unknown-warning-option -Wno-switch-enum -Wno-conversion -Wno-covered-switch-default -Wno-inconsistent-missing-destructor-override -Wno-float-equal -Wno-exit-time-destructors -Wno-global-constructors -Wno-weak-vtables -Wno-four-char-constants -Wno-padded -Wno-reserved-identifier -Wno-duplicate-enum -fomit-frame-pointer -DSDL_SUPPORT -D_GLIBCXX_USE_CXX11_ABI=1 -DUNIX -DBSPF_UNIX -DGUI_SUPPORT -DWINDOWED_SUPPORT -DSOUND_SUPPORT -DDEBUGGER_SUPPORT -DJOYSTICK_SUPPORT -DCHEATCODE_SUPPORT -DHTTP_LIB_SUPPORT -DPNG_SUPPORT -DZIP_SUPPORT -Isrc/emucore -Isrc/common -Isrc/common/tv_filters -Isrc/emucore/tia -Isrc/emucore/tia/frame-manager -Isrc/json -Isrc/common/repository/sqlite -I/usr/local/include -I/usr/local/include/SDL2 -I/usr/X11R6/include -D_REENTRANT -I/usr/X11R6/include -Isrc/unix -Isrc/gui -Isrc/debugger -Isrc/debugger/gui -Isrc/yacc -Isrc/cheat -Isrc/httplib -c src/gui/HighScoresMenu.cxx -o out/src/gui/HighScoresMenu.o In file included from src/gui/HighScoresMenu.cxx:18: In file included from src/gui/Dialog.hxx:31: In file included from src/gui/Widget.hxx:28: src/common/bspf.hxx:245:37: warning: unsafe pointer arithmetic [-Wunsafe-buffer-usage] const auto pos = std::search(s1.cbegin()+startpos, s1.cend(), ~~~^~~~~~~~ src/common/bspf.hxx:249:56: warning: unsafe pointer arithmetic [-Wunsafe-buffer-usage] return pos == s1.cend() ? string::npos : pos - (s1.cbegin()+startpos); ~~~^~~~~~~~ In file included from src/gui/HighScoresMenu.cxx:18: In file included from src/gui/Dialog.hxx:31: In file included from src/gui/Widget.hxx:33: In file included from src/common/StellaKeys.hxx:22: In file included from src/common/SDL_lib.hxx:34: In file included from /usr/local/include/SDL2/SDL.h:32: In file included from /usr/local/include/SDL2/SDL_main.h:25: /usr/local/include/SDL2/SDL_stdinc.h:544:13: warning: '_p' is an unsafe pointer used for buffer access [-Wunsafe-buffer-usage] Uint32 *_p = SDL_static_cast(Uint32 *, dst); ~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /usr/local/include/SDL2/SDL_stdinc.h:553:26: note: used in pointer arithmetic here case 1: *_p++ = _val; ^~ /usr/local/include/SDL2/SDL_stdinc.h:551:26: note: used in pointer arithmetic here case 3: *_p++ = _val; SDL_FALLTHROUGH; ^~ /usr/local/include/SDL2/SDL_stdinc.h:550:26: note: used in pointer arithmetic here case 0: do { *_p++ = _val; SDL_FALLTHROUGH; ^~ /usr/local/include/SDL2/SDL_stdinc.h:552:26: note: used in pointer arithmetic here case 2: *_p++ = _val; SDL_FALLTHROUGH; ^~ In file included from src/gui/HighScoresMenu.cxx:20: In file included from src/gui/HighScoresDialog.hxx:33: In file included from src/common/HighScoresManager.hxx:27: src/emucore/FSNode.hxx:513:31: warning: unsafe pointer arithmetic [-Wunsafe-buffer-usage] const char* cur = start + str.size() - 2; ~~~~~~^~~~~~~~~~~~ src/emucore/FSNode.hxx:512:19: warning: 'start' is an unsafe pointer used for buffer access [-Wunsafe-buffer-usage] const char* start = str.c_str(); ~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~ src/emucore/FSNode.hxx:513:25: note: used in pointer arithmetic here const char* cur = start + str.size() - 2; ^~~~~ src/emucore/FSNode.hxx:513:19: warning: 'cur' is an unsafe pointer used for buffer access [-Wunsafe-buffer-usage] const char* cur = start + str.size() - 2; ~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~ src/emucore/FSNode.hxx:516:11: note: used in pointer arithmetic here --cur; ^~~ src/emucore/FSNode.hxx:518:14: note: used in pointer arithmetic here return cur + 1; ^~~ 6 warnings generated. mkdir -p -p src/gui/.deps mkdir -p -p out/src/gui c++ -MMD -MF "src/gui/.deps/InputDialog.d" -MQ "out/src/gui/InputDialog.o" -MP -O2 -pipe -I/usr/X11R6/include -I/usr/local/include -x c++ -Wall -Wextra -Wno-unused-parameter -Wno-multichar -Wunused -Woverloaded-virtual -Wnon-virtual-dtor -std=c++17 -Weverything -Wno-c++98-compat-pedantic -Wno-unknown-warning-option -Wno-switch-enum -Wno-conversion -Wno-covered-switch-default -Wno-inconsistent-missing-destructor-override -Wno-float-equal -Wno-exit-time-destructors -Wno-global-constructors -Wno-weak-vtables -Wno-four-char-constants -Wno-padded -Wno-reserved-identifier -Wno-duplicate-enum -fomit-frame-pointer -DSDL_SUPPORT -D_GLIBCXX_USE_CXX11_ABI=1 -DUNIX -DBSPF_UNIX -DGUI_SUPPORT -DWINDOWED_SUPPORT -DSOUND_SUPPORT -DDEBUGGER_SUPPORT -DJOYSTICK_SUPPORT -DCHEATCODE_SUPPORT -DHTTP_LIB_SUPPORT -DPNG_SUPPORT -DZIP_SUPPORT -Isrc/emucore -Isrc/common -Isrc/common/tv_filters -Isrc/emucore/tia -Isrc/emucore/tia/frame-manager -Isrc/json -Isrc/common/repository/sqlite -I/usr/local/include -I/usr/local/include/SDL2 -I/usr/X11R6/include -D_REENTRANT -I/usr/X11R6/include -Isrc/unix -Isrc/gui -Isrc/debugger -Isrc/debugger/gui -Isrc/yacc -Isrc/cheat -Isrc/httplib -c src/gui/InputDialog.cxx -o out/src/gui/InputDialog.o In file included from src/gui/InputDialog.cxx:18: src/common/bspf.hxx:245:37: warning: unsafe pointer arithmetic [-Wunsafe-buffer-usage] const auto pos = std::search(s1.cbegin()+startpos, s1.cend(), ~~~^~~~~~~~ src/common/bspf.hxx:249:56: warning: unsafe pointer arithmetic [-Wunsafe-buffer-usage] return pos == s1.cend() ? string::npos : pos - (s1.cbegin()+startpos); ~~~^~~~~~~~ In file included from src/gui/InputDialog.cxx:19: In file included from src/emucore/OSystem.hxx:55: src/emucore/FSNode.hxx:513:31: warning: unsafe pointer arithmetic [-Wunsafe-buffer-usage] const char* cur = start + str.size() - 2; ~~~~~~^~~~~~~~~~~~ src/emucore/FSNode.hxx:512:19: warning: 'start' is an unsafe pointer used for buffer access [-Wunsafe-buffer-usage] const char* start = str.c_str(); ~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~ src/emucore/FSNode.hxx:513:25: note: used in pointer arithmetic here const char* cur = start + str.size() - 2; ^~~~~ src/emucore/FSNode.hxx:513:19: warning: 'cur' is an unsafe pointer used for buffer access [-Wunsafe-buffer-usage] const char* cur = start + str.size() - 2; ~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~ src/emucore/FSNode.hxx:518:14: note: used in pointer arithmetic here return cur + 1; ^~~ src/emucore/FSNode.hxx:516:11: note: used in pointer arithmetic here --cur; ^~~ In file included from src/gui/InputDialog.cxx:21: In file included from src/emucore/EventHandler.hxx:38: In file included from src/common/PKeyboardHandler.hxx:30: In file included from src/common/KeyMap.hxx:24: In file included from src/common/StellaKeys.hxx:22: In file included from src/common/SDL_lib.hxx:34: In file included from /usr/local/include/SDL2/SDL.h:32: In file included from /usr/local/include/SDL2/SDL_main.h:25: /usr/local/include/SDL2/SDL_stdinc.h:544:13: warning: '_p' is an unsafe pointer used for buffer access [-Wunsafe-buffer-usage] Uint32 *_p = SDL_static_cast(Uint32 *, dst); ~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /usr/local/include/SDL2/SDL_stdinc.h:552:26: note: used in pointer arithmetic here case 2: *_p++ = _val; SDL_FALLTHROUGH; ^~ /usr/local/include/SDL2/SDL_stdinc.h:550:26: note: used in pointer arithmetic here case 0: do { *_p++ = _val; SDL_FALLTHROUGH; ^~ /usr/local/include/SDL2/SDL_stdinc.h:553:26: note: used in pointer arithmetic here case 1: *_p++ = _val; ^~ /usr/local/include/SDL2/SDL_stdinc.h:551:26: note: used in pointer arithmetic here case 3: *_p++ = _val; SDL_FALLTHROUGH; ^~ 6 warnings generated. mkdir -p -p src/gui/.deps mkdir -p -p out/src/gui c++ -MMD -MF "src/gui/.deps/InputTextDialog.d" -MQ "out/src/gui/InputTextDialog.o" -MP -O2 -pipe -I/usr/X11R6/include -I/usr/local/include -x c++ -Wall -Wextra -Wno-unused-parameter -Wno-multichar -Wunused -Woverloaded-virtual -Wnon-virtual-dtor -std=c++17 -Weverything -Wno-c++98-compat-pedantic -Wno-unknown-warning-option -Wno-switch-enum -Wno-conversion -Wno-covered-switch-default -Wno-inconsistent-missing-destructor-override -Wno-float-equal -Wno-exit-time-destructors -Wno-global-constructors -Wno-weak-vtables -Wno-four-char-constants -Wno-padded -Wno-reserved-identifier -Wno-duplicate-enum -fomit-frame-pointer -DSDL_SUPPORT -D_GLIBCXX_USE_CXX11_ABI=1 -DUNIX -DBSPF_UNIX -DGUI_SUPPORT -DWINDOWED_SUPPORT -DSOUND_SUPPORT -DDEBUGGER_SUPPORT -DJOYSTICK_SUPPORT -DCHEATCODE_SUPPORT -DHTTP_LIB_SUPPORT -DPNG_SUPPORT -DZIP_SUPPORT -Isrc/emucore -Isrc/common -Isrc/common/tv_filters -Isrc/emucore/tia -Isrc/emucore/tia/frame-manager -Isrc/json -Isrc/common/repository/sqlite -I/usr/local/include -I/usr/local/include/SDL2 -I/usr/X11R6/include -D_REENTRANT -I/usr/X11R6/include -Isrc/unix -Isrc/gui -Isrc/debugger -Isrc/debugger/gui -Isrc/yacc -Isrc/cheat -Isrc/httplib -c src/gui/InputTextDialog.cxx -o out/src/gui/InputTextDialog.o In file included from src/gui/InputTextDialog.cxx:18: src/common/bspf.hxx:245:37: warning: unsafe pointer arithmetic [-Wunsafe-buffer-usage] const auto pos = std::search(s1.cbegin()+startpos, s1.cend(), ~~~^~~~~~~~ src/common/bspf.hxx:249:56: warning: unsafe pointer arithmetic [-Wunsafe-buffer-usage] return pos == s1.cend() ? string::npos : pos - (s1.cbegin()+startpos); ~~~^~~~~~~~ In file included from src/gui/InputTextDialog.cxx:19: In file included from src/gui/Dialog.hxx:31: In file included from src/gui/Widget.hxx:33: In file included from src/common/StellaKeys.hxx:22: In file included from src/common/SDL_lib.hxx:34: In file included from /usr/local/include/SDL2/SDL.h:32: In file included from /usr/local/include/SDL2/SDL_main.h:25: /usr/local/include/SDL2/SDL_stdinc.h:544:13: warning: '_p' is an unsafe pointer used for buffer access [-Wunsafe-buffer-usage] Uint32 *_p = SDL_static_cast(Uint32 *, dst); ~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /usr/local/include/SDL2/SDL_stdinc.h:553:26: note: used in pointer arithmetic here case 1: *_p++ = _val; ^~ /usr/local/include/SDL2/SDL_stdinc.h:550:26: note: used in pointer arithmetic here case 0: do { *_p++ = _val; SDL_FALLTHROUGH; ^~ /usr/local/include/SDL2/SDL_stdinc.h:551:26: note: used in pointer arithmetic here case 3: *_p++ = _val; SDL_FALLTHROUGH; ^~ /usr/local/include/SDL2/SDL_stdinc.h:552:26: note: used in pointer arithmetic here case 2: *_p++ = _val; SDL_FALLTHROUGH; ^~ In file included from src/gui/InputTextDialog.cxx:23: In file included from src/emucore/OSystem.hxx:55: src/emucore/FSNode.hxx:513:31: warning: unsafe pointer arithmetic [-Wunsafe-buffer-usage] const char* cur = start + str.size() - 2; ~~~~~~^~~~~~~~~~~~ src/emucore/FSNode.hxx:512:19: warning: 'start' is an unsafe pointer used for buffer access [-Wunsafe-buffer-usage] const char* start = str.c_str(); ~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~ src/emucore/FSNode.hxx:513:25: note: used in pointer arithmetic here const char* cur = start + str.size() - 2; ^~~~~ src/emucore/FSNode.hxx:513:19: warning: 'cur' is an unsafe pointer used for buffer access [-Wunsafe-buffer-usage] const char* cur = start + str.size() - 2; ~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~ src/emucore/FSNode.hxx:518:14: note: used in pointer arithmetic here return cur + 1; ^~~ src/emucore/FSNode.hxx:516:11: note: used in pointer arithmetic here --cur; ^~~ 6 warnings generated. mkdir -p -p src/gui/.deps mkdir -p -p out/src/gui c++ -MMD -MF "src/gui/.deps/JoystickDialog.d" -MQ "out/src/gui/JoystickDialog.o" -MP -O2 -pipe -I/usr/X11R6/include -I/usr/local/include -x c++ -Wall -Wextra -Wno-unused-parameter -Wno-multichar -Wunused -Woverloaded-virtual -Wnon-virtual-dtor -std=c++17 -Weverything -Wno-c++98-compat-pedantic -Wno-unknown-warning-option -Wno-switch-enum -Wno-conversion -Wno-covered-switch-default -Wno-inconsistent-missing-destructor-override -Wno-float-equal -Wno-exit-time-destructors -Wno-global-constructors -Wno-weak-vtables -Wno-four-char-constants -Wno-padded -Wno-reserved-identifier -Wno-duplicate-enum -fomit-frame-pointer -DSDL_SUPPORT -D_GLIBCXX_USE_CXX11_ABI=1 -DUNIX -DBSPF_UNIX -DGUI_SUPPORT -DWINDOWED_SUPPORT -DSOUND_SUPPORT -DDEBUGGER_SUPPORT -DJOYSTICK_SUPPORT -DCHEATCODE_SUPPORT -DHTTP_LIB_SUPPORT -DPNG_SUPPORT -DZIP_SUPPORT -Isrc/emucore -Isrc/common -Isrc/common/tv_filters -Isrc/emucore/tia -Isrc/emucore/tia/frame-manager -Isrc/json -Isrc/common/repository/sqlite -I/usr/local/include -I/usr/local/include/SDL2 -I/usr/X11R6/include -D_REENTRANT -I/usr/X11R6/include -Isrc/unix -Isrc/gui -Isrc/debugger -Isrc/debugger/gui -Isrc/yacc -Isrc/cheat -Isrc/httplib -c src/gui/JoystickDialog.cxx -o out/src/gui/JoystickDialog.o In file included from src/gui/JoystickDialog.cxx:18: In file included from src/emucore/OSystem.hxx:55: In file included from src/emucore/FSNode.hxx:23: src/common/bspf.hxx:245:37: warning: unsafe pointer arithmetic [-Wunsafe-buffer-usage] const auto pos = std::search(s1.cbegin()+startpos, s1.cend(), ~~~^~~~~~~~ src/common/bspf.hxx:249:56: warning: unsafe pointer arithmetic [-Wunsafe-buffer-usage] return pos == s1.cend() ? string::npos : pos - (s1.cbegin()+startpos); ~~~^~~~~~~~ In file included from src/gui/JoystickDialog.cxx:18: In file included from src/emucore/OSystem.hxx:55: src/emucore/FSNode.hxx:513:31: warning: unsafe pointer arithmetic [-Wunsafe-buffer-usage] const char* cur = start + str.size() - 2; ~~~~~~^~~~~~~~~~~~ src/emucore/FSNode.hxx:512:19: warning: 'start' is an unsafe pointer used for buffer access [-Wunsafe-buffer-usage] const char* start = str.c_str(); ~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~ src/emucore/FSNode.hxx:513:25: note: used in pointer arithmetic here const char* cur = start + str.size() - 2; ^~~~~ src/emucore/FSNode.hxx:513:19: warning: 'cur' is an unsafe pointer used for buffer access [-Wunsafe-buffer-usage] const char* cur = start + str.size() - 2; ~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~ src/emucore/FSNode.hxx:516:11: note: used in pointer arithmetic here --cur; ^~~ src/emucore/FSNode.hxx:518:14: note: used in pointer arithmetic here return cur + 1; ^~~ In file included from src/gui/JoystickDialog.cxx:19: In file included from src/emucore/EventHandler.hxx:38: In file included from src/common/PKeyboardHandler.hxx:30: In file included from src/common/KeyMap.hxx:24: In file included from src/common/StellaKeys.hxx:22: In file included from src/common/SDL_lib.hxx:34: In file included from /usr/local/include/SDL2/SDL.h:32: In file included from /usr/local/include/SDL2/SDL_main.h:25: /usr/local/include/SDL2/SDL_stdinc.h:544:13: warning: '_p' is an unsafe pointer used for buffer access [-Wunsafe-buffer-usage] Uint32 *_p = SDL_static_cast(Uint32 *, dst); ~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /usr/local/include/SDL2/SDL_stdinc.h:553:26: note: used in pointer arithmetic here case 1: *_p++ = _val; ^~ /usr/local/include/SDL2/SDL_stdinc.h:550:26: note: used in pointer arithmetic here case 0: do { *_p++ = _val; SDL_FALLTHROUGH; ^~ /usr/local/include/SDL2/SDL_stdinc.h:551:26: note: used in pointer arithmetic here case 3: *_p++ = _val; SDL_FALLTHROUGH; ^~ /usr/local/include/SDL2/SDL_stdinc.h:552:26: note: used in pointer arithmetic here case 2: *_p++ = _val; SDL_FALLTHROUGH; ^~ 6 warnings generated. mkdir -p -p src/gui/.deps mkdir -p -p out/src/gui c++ -MMD -MF "src/gui/.deps/LauncherDialog.d" -MQ "out/src/gui/LauncherDialog.o" -MP -O2 -pipe -I/usr/X11R6/include -I/usr/local/include -x c++ -Wall -Wextra -Wno-unused-parameter -Wno-multichar -Wunused -Woverloaded-virtual -Wnon-virtual-dtor -std=c++17 -Weverything -Wno-c++98-compat-pedantic -Wno-unknown-warning-option -Wno-switch-enum -Wno-conversion -Wno-covered-switch-default -Wno-inconsistent-missing-destructor-override -Wno-float-equal -Wno-exit-time-destructors -Wno-global-constructors -Wno-weak-vtables -Wno-four-char-constants -Wno-padded -Wno-reserved-identifier -Wno-duplicate-enum -fomit-frame-pointer -DSDL_SUPPORT -D_GLIBCXX_USE_CXX11_ABI=1 -DUNIX -DBSPF_UNIX -DGUI_SUPPORT -DWINDOWED_SUPPORT -DSOUND_SUPPORT -DDEBUGGER_SUPPORT -DJOYSTICK_SUPPORT -DCHEATCODE_SUPPORT -DHTTP_LIB_SUPPORT -DPNG_SUPPORT -DZIP_SUPPORT -Isrc/emucore -Isrc/common -Isrc/common/tv_filters -Isrc/emucore/tia -Isrc/emucore/tia/frame-manager -Isrc/json -Isrc/common/repository/sqlite -I/usr/local/include -I/usr/local/include/SDL2 -I/usr/X11R6/include -D_REENTRANT -I/usr/X11R6/include -Isrc/unix -Isrc/gui -Isrc/debugger -Isrc/debugger/gui -Isrc/yacc -Isrc/cheat -Isrc/httplib -c src/gui/LauncherDialog.cxx -o out/src/gui/LauncherDialog.o In file included from src/gui/LauncherDialog.cxx:18: src/common/bspf.hxx:245:37: warning: unsafe pointer arithmetic [-Wunsafe-buffer-usage] const auto pos = std::search(s1.cbegin()+startpos, s1.cend(), ~~~^~~~~~~~ src/common/bspf.hxx:249:56: warning: unsafe pointer arithmetic [-Wunsafe-buffer-usage] return pos == s1.cend() ? string::npos : pos - (s1.cbegin()+startpos); ~~~^~~~~~~~ In file included from src/gui/LauncherDialog.cxx:19: In file included from src/emucore/Bankswitch.hxx:23: src/emucore/FSNode.hxx:513:31: warning: unsafe pointer arithmetic [-Wunsafe-buffer-usage] const char* cur = start + str.size() - 2; ~~~~~~^~~~~~~~~~~~ src/emucore/FSNode.hxx:512:19: warning: 'start' is an unsafe pointer used for buffer access [-Wunsafe-buffer-usage] const char* start = str.c_str(); ~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~ src/emucore/FSNode.hxx:513:25: note: used in pointer arithmetic here const char* cur = start + str.size() - 2; ^~~~~ src/emucore/FSNode.hxx:513:19: warning: 'cur' is an unsafe pointer used for buffer access [-Wunsafe-buffer-usage] const char* cur = start + str.size() - 2; ~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~ src/emucore/FSNode.hxx:518:14: note: used in pointer arithmetic here return cur + 1; ^~~ src/emucore/FSNode.hxx:516:11: note: used in pointer arithmetic here --cur; ^~~ In file included from src/gui/LauncherDialog.cxx:20: In file included from src/gui/BrowserDialog.hxx:28: In file included from src/gui/Dialog.hxx:31: In file included from src/gui/Widget.hxx:33: In file included from src/common/StellaKeys.hxx:22: In file included from src/common/SDL_lib.hxx:34: In file included from /usr/local/include/SDL2/SDL.h:32: In file included from /usr/local/include/SDL2/SDL_main.h:25: /usr/local/include/SDL2/SDL_stdinc.h:544:13: warning: '_p' is an unsafe pointer used for buffer access [-Wunsafe-buffer-usage] Uint32 *_p = SDL_static_cast(Uint32 *, dst); ~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /usr/local/include/SDL2/SDL_stdinc.h:552:26: note: used in pointer arithmetic here case 2: *_p++ = _val; SDL_FALLTHROUGH; ^~ /usr/local/include/SDL2/SDL_stdinc.h:550:26: note: used in pointer arithmetic here case 0: do { *_p++ = _val; SDL_FALLTHROUGH; ^~ /usr/local/include/SDL2/SDL_stdinc.h:551:26: note: used in pointer arithmetic here case 3: *_p++ = _val; SDL_FALLTHROUGH; ^~ /usr/local/include/SDL2/SDL_stdinc.h:553:26: note: used in pointer arithmetic here case 1: *_p++ = _val; ^~ src/gui/LauncherDialog.cxx:670:12: warning: 'FONTS' is an unsafe buffer that does not perform bounds checks [-Wunsafe-buffer-usage] FontDesc FONTS[7] = { ~~~~~~~~~^~~~~~~~~~~~ src/gui/LauncherDialog.cxx:684:63: note: used in buffer access here && area.w >= static_cast(MIN_ROMINFO_CHARS * FONTS[i].maxwidth)) ^~~~~ src/gui/LauncherDialog.cxx:686:48: note: used in buffer access here myROMInfoFont = make_unique(FONTS[i]); ^~~~~ src/gui/LauncherDialog.cxx:683:32: note: used in buffer access here + MIN_ROMINFO_LINES * FONTS[i].height) ^~~~~ src/gui/LauncherDialog.cxx:680:32: note: used in buffer access here if(Dialog::fontHeight() >= FONTS[i].height) ^~~~~ src/gui/LauncherDialog.cxx:682:59: note: used in buffer access here if(area.h >= static_cast(MIN_ROMINFO_ROWS * FONTS[i].height + 2 ^~~~~ 7 warnings generated. mkdir -p -p src/gui/.deps mkdir -p -p out/src/gui c++ -MMD -MF "src/gui/.deps/LauncherFileListWidget.d" -MQ "out/src/gui/LauncherFileListWidget.o" -MP -O2 -pipe -I/usr/X11R6/include -I/usr/local/include -x c++ -Wall -Wextra -Wno-unused-parameter -Wno-multichar -Wunused -Woverloaded-virtual -Wnon-virtual-dtor -std=c++17 -Weverything -Wno-c++98-compat-pedantic -Wno-unknown-warning-option -Wno-switch-enum -Wno-conversion -Wno-covered-switch-default -Wno-inconsistent-missing-destructor-override -Wno-float-equal -Wno-exit-time-destructors -Wno-global-constructors -Wno-weak-vtables -Wno-four-char-constants -Wno-padded -Wno-reserved-identifier -Wno-duplicate-enum -fomit-frame-pointer -DSDL_SUPPORT -D_GLIBCXX_USE_CXX11_ABI=1 -DUNIX -DBSPF_UNIX -DGUI_SUPPORT -DWINDOWED_SUPPORT -DSOUND_SUPPORT -DDEBUGGER_SUPPORT -DJOYSTICK_SUPPORT -DCHEATCODE_SUPPORT -DHTTP_LIB_SUPPORT -DPNG_SUPPORT -DZIP_SUPPORT -Isrc/emucore -Isrc/common -Isrc/common/tv_filters -Isrc/emucore/tia -Isrc/emucore/tia/frame-manager -Isrc/json -Isrc/common/repository/sqlite -I/usr/local/include -I/usr/local/include/SDL2 -I/usr/X11R6/include -D_REENTRANT -I/usr/X11R6/include -Isrc/unix -Isrc/gui -Isrc/debugger -Isrc/debugger/gui -Isrc/yacc -Isrc/cheat -Isrc/httplib -c src/gui/LauncherFileListWidget.cxx -o out/src/gui/LauncherFileListWidget.o In file included from src/gui/LauncherFileListWidget.cxx:18: In file included from src/emucore/Bankswitch.hxx:23: In file included from src/emucore/FSNode.hxx:23: src/common/bspf.hxx:245:37: warning: unsafe pointer arithmetic [-Wunsafe-buffer-usage] const auto pos = std::search(s1.cbegin()+startpos, s1.cend(), ~~~^~~~~~~~ src/common/bspf.hxx:249:56: warning: unsafe pointer arithmetic [-Wunsafe-buffer-usage] return pos == s1.cend() ? string::npos : pos - (s1.cbegin()+startpos); ~~~^~~~~~~~ In file included from src/gui/LauncherFileListWidget.cxx:18: In file included from src/emucore/Bankswitch.hxx:23: src/emucore/FSNode.hxx:513:31: warning: unsafe pointer arithmetic [-Wunsafe-buffer-usage] const char* cur = start + str.size() - 2; ~~~~~~^~~~~~~~~~~~ src/emucore/FSNode.hxx:512:19: warning: 'start' is an unsafe pointer used for buffer access [-Wunsafe-buffer-usage] const char* start = str.c_str(); ~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~ src/emucore/FSNode.hxx:513:25: note: used in pointer arithmetic here const char* cur = start + str.size() - 2; ^~~~~ src/emucore/FSNode.hxx:513:19: warning: 'cur' is an unsafe pointer used for buffer access [-Wunsafe-buffer-usage] const char* cur = start + str.size() - 2; ~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~ src/emucore/FSNode.hxx:518:14: note: used in pointer arithmetic here return cur + 1; ^~~ src/emucore/FSNode.hxx:516:11: note: used in pointer arithmetic here --cur; ^~~ In file included from src/gui/LauncherFileListWidget.cxx:21: In file included from src/gui/ProgressDialog.hxx:27: In file included from src/gui/Dialog.hxx:31: In file included from src/gui/Widget.hxx:33: In file included from src/common/StellaKeys.hxx:22: In file included from src/common/SDL_lib.hxx:34: In file included from /usr/local/include/SDL2/SDL.h:32: In file included from /usr/local/include/SDL2/SDL_main.h:25: /usr/local/include/SDL2/SDL_stdinc.h:544:13: warning: '_p' is an unsafe pointer used for buffer access [-Wunsafe-buffer-usage] Uint32 *_p = SDL_static_cast(Uint32 *, dst); ~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /usr/local/include/SDL2/SDL_stdinc.h:550:26: note: used in pointer arithmetic here case 0: do { *_p++ = _val; SDL_FALLTHROUGH; ^~ /usr/local/include/SDL2/SDL_stdinc.h:551:26: note: used in pointer arithmetic here case 3: *_p++ = _val; SDL_FALLTHROUGH; ^~ /usr/local/include/SDL2/SDL_stdinc.h:552:26: note: used in pointer arithmetic here case 2: *_p++ = _val; SDL_FALLTHROUGH; ^~ /usr/local/include/SDL2/SDL_stdinc.h:553:26: note: used in pointer arithmetic here case 1: *_p++ = _val; ^~ src/gui/LauncherFileListWidget.cxx:511:22: warning: 'small_icons' is an unsafe buffer that does not perform bounds checks [-Wunsafe-buffer-usage] static const Icon* small_icons[int(IconType::numLauncherTypes)] = { ~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ src/gui/LauncherFileListWidget.cxx:527:22: note: used in buffer access here return smallIcon ? small_icons[iconType] : large_icons[iconType]; ^~~~~~~~~~~ src/gui/LauncherFileListWidget.cxx:515:22: warning: 'large_icons' is an unsafe buffer that does not perform bounds checks [-Wunsafe-buffer-usage] static const Icon* large_icons[int(IconType::numLauncherTypes)] = { ~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ src/gui/LauncherFileListWidget.cxx:527:46: note: used in buffer access here return smallIcon ? small_icons[iconType] : large_icons[iconType]; ^~~~~~~~~~~ 8 warnings generated. mkdir -p -p src/gui/.deps mkdir -p -p out/src/gui c++ -MMD -MF "src/gui/.deps/Launcher.d" -MQ "out/src/gui/Launcher.o" -MP -O2 -pipe -I/usr/X11R6/include -I/usr/local/include -x c++ -Wall -Wextra -Wno-unused-parameter -Wno-multichar -Wunused -Woverloaded-virtual -Wnon-virtual-dtor -std=c++17 -Weverything -Wno-c++98-compat-pedantic -Wno-unknown-warning-option -Wno-switch-enum -Wno-conversion -Wno-covered-switch-default -Wno-inconsistent-missing-destructor-override -Wno-float-equal -Wno-exit-time-destructors -Wno-global-constructors -Wno-weak-vtables -Wno-four-char-constants -Wno-padded -Wno-reserved-identifier -Wno-duplicate-enum -fomit-frame-pointer -DSDL_SUPPORT -D_GLIBCXX_USE_CXX11_ABI=1 -DUNIX -DBSPF_UNIX -DGUI_SUPPORT -DWINDOWED_SUPPORT -DSOUND_SUPPORT -DDEBUGGER_SUPPORT -DJOYSTICK_SUPPORT -DCHEATCODE_SUPPORT -DHTTP_LIB_SUPPORT -DPNG_SUPPORT -DZIP_SUPPORT -Isrc/emucore -Isrc/common -Isrc/common/tv_filters -Isrc/emucore/tia -Isrc/emucore/tia/frame-manager -Isrc/json -Isrc/common/repository/sqlite -I/usr/local/include -I/usr/local/include/SDL2 -I/usr/X11R6/include -D_REENTRANT -I/usr/X11R6/include -Isrc/unix -Isrc/gui -Isrc/debugger -Isrc/debugger/gui -Isrc/yacc -Isrc/cheat -Isrc/httplib -c src/gui/Launcher.cxx -o out/src/gui/Launcher.o In file included from src/gui/Launcher.cxx:18: In file included from src/gui/LauncherDialog.hxx:43: src/common/bspf.hxx:245:37: warning: unsafe pointer arithmetic [-Wunsafe-buffer-usage] const auto pos = std::search(s1.cbegin()+startpos, s1.cend(), ~~~^~~~~~~~ src/common/bspf.hxx:249:56: warning: unsafe pointer arithmetic [-Wunsafe-buffer-usage] return pos == s1.cend() ? string::npos : pos - (s1.cbegin()+startpos); ~~~^~~~~~~~ In file included from src/gui/Launcher.cxx:18: In file included from src/gui/LauncherDialog.hxx:44: In file included from src/gui/Dialog.hxx:31: In file included from src/gui/Widget.hxx:33: In file included from src/common/StellaKeys.hxx:22: In file included from src/common/SDL_lib.hxx:34: In file included from /usr/local/include/SDL2/SDL.h:32: In file included from /usr/local/include/SDL2/SDL_main.h:25: /usr/local/include/SDL2/SDL_stdinc.h:544:13: warning: '_p' is an unsafe pointer used for buffer access [-Wunsafe-buffer-usage] Uint32 *_p = SDL_static_cast(Uint32 *, dst); ~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /usr/local/include/SDL2/SDL_stdinc.h:553:26: note: used in pointer arithmetic here case 1: *_p++ = _val; ^~ /usr/local/include/SDL2/SDL_stdinc.h:550:26: note: used in pointer arithmetic here case 0: do { *_p++ = _val; SDL_FALLTHROUGH; ^~ /usr/local/include/SDL2/SDL_stdinc.h:551:26: note: used in pointer arithmetic here case 3: *_p++ = _val; SDL_FALLTHROUGH; ^~ /usr/local/include/SDL2/SDL_stdinc.h:552:26: note: used in pointer arithmetic here case 2: *_p++ = _val; SDL_FALLTHROUGH; ^~ In file included from src/gui/Launcher.cxx:18: In file included from src/gui/LauncherDialog.hxx:45: src/emucore/FSNode.hxx:513:31: warning: unsafe pointer arithmetic [-Wunsafe-buffer-usage] const char* cur = start + str.size() - 2; ~~~~~~^~~~~~~~~~~~ src/emucore/FSNode.hxx:512:19: warning: 'start' is an unsafe pointer used for buffer access [-Wunsafe-buffer-usage] const char* start = str.c_str(); ~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~ src/emucore/FSNode.hxx:513:25: note: used in pointer arithmetic here const char* cur = start + str.size() - 2; ^~~~~ src/emucore/FSNode.hxx:513:19: warning: 'cur' is an unsafe pointer used for buffer access [-Wunsafe-buffer-usage] const char* cur = start + str.size() - 2; ~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~ src/emucore/FSNode.hxx:516:11: note: used in pointer arithmetic here --cur; ^~~ src/emucore/FSNode.hxx:518:14: note: used in pointer arithmetic here return cur + 1; ^~~ 6 warnings generated. mkdir -p -p src/gui/.deps mkdir -p -p out/src/gui c++ -MMD -MF "src/gui/.deps/ListWidget.d" -MQ "out/src/gui/ListWidget.o" -MP -O2 -pipe -I/usr/X11R6/include -I/usr/local/include -x c++ -Wall -Wextra -Wno-unused-parameter -Wno-multichar -Wunused -Woverloaded-virtual -Wnon-virtual-dtor -std=c++17 -Weverything -Wno-c++98-compat-pedantic -Wno-unknown-warning-option -Wno-switch-enum -Wno-conversion -Wno-covered-switch-default -Wno-inconsistent-missing-destructor-override -Wno-float-equal -Wno-exit-time-destructors -Wno-global-constructors -Wno-weak-vtables -Wno-four-char-constants -Wno-padded -Wno-reserved-identifier -Wno-duplicate-enum -fomit-frame-pointer -DSDL_SUPPORT -D_GLIBCXX_USE_CXX11_ABI=1 -DUNIX -DBSPF_UNIX -DGUI_SUPPORT -DWINDOWED_SUPPORT -DSOUND_SUPPORT -DDEBUGGER_SUPPORT -DJOYSTICK_SUPPORT -DCHEATCODE_SUPPORT -DHTTP_LIB_SUPPORT -DPNG_SUPPORT -DZIP_SUPPORT -Isrc/emucore -Isrc/common -Isrc/common/tv_filters -Isrc/emucore/tia -Isrc/emucore/tia/frame-manager -Isrc/json -Isrc/common/repository/sqlite -I/usr/local/include -I/usr/local/include/SDL2 -I/usr/X11R6/include -D_REENTRANT -I/usr/X11R6/include -Isrc/unix -Isrc/gui -Isrc/debugger -Isrc/debugger/gui -Isrc/yacc -Isrc/cheat -Isrc/httplib -c src/gui/ListWidget.cxx -o out/src/gui/ListWidget.o In file included from src/gui/ListWidget.cxx:18: In file included from src/emucore/OSystem.hxx:55: In file included from src/emucore/FSNode.hxx:23: src/common/bspf.hxx:245:37: warning: unsafe pointer arithmetic [-Wunsafe-buffer-usage] const auto pos = std::search(s1.cbegin()+startpos, s1.cend(), ~~~^~~~~~~~ src/common/bspf.hxx:249:56: warning: unsafe pointer arithmetic [-Wunsafe-buffer-usage] return pos == s1.cend() ? string::npos : pos - (s1.cbegin()+startpos); ~~~^~~~~~~~ In file included from src/gui/ListWidget.cxx:18: In file included from src/emucore/OSystem.hxx:55: src/emucore/FSNode.hxx:513:31: warning: unsafe pointer arithmetic [-Wunsafe-buffer-usage] const char* cur = start + str.size() - 2; ~~~~~~^~~~~~~~~~~~ src/emucore/FSNode.hxx:512:19: warning: 'start' is an unsafe pointer used for buffer access [-Wunsafe-buffer-usage] const char* start = str.c_str(); ~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~ src/emucore/FSNode.hxx:513:25: note: used in pointer arithmetic here const char* cur = start + str.size() - 2; ^~~~~ src/emucore/FSNode.hxx:513:19: warning: 'cur' is an unsafe pointer used for buffer access [-Wunsafe-buffer-usage] const char* cur = start + str.size() - 2; ~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~ src/emucore/FSNode.hxx:518:14: note: used in pointer arithmetic here return cur + 1; ^~~ src/emucore/FSNode.hxx:516:11: note: used in pointer arithmetic here --cur; ^~~ In file included from src/gui/ListWidget.cxx:19: In file included from src/gui/Widget.hxx:33: In file included from src/common/StellaKeys.hxx:22: In file included from src/common/SDL_lib.hxx:34: In file included from /usr/local/include/SDL2/SDL.h:32: In file included from /usr/local/include/SDL2/SDL_main.h:25: /usr/local/include/SDL2/SDL_stdinc.h:544:13: warning: '_p' is an unsafe pointer used for buffer access [-Wunsafe-buffer-usage] Uint32 *_p = SDL_static_cast(Uint32 *, dst); ~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /usr/local/include/SDL2/SDL_stdinc.h:551:26: note: used in pointer arithmetic here case 3: *_p++ = _val; SDL_FALLTHROUGH; ^~ /usr/local/include/SDL2/SDL_stdinc.h:553:26: note: used in pointer arithmetic here case 1: *_p++ = _val; ^~ /usr/local/include/SDL2/SDL_stdinc.h:552:26: note: used in pointer arithmetic here case 2: *_p++ = _val; SDL_FALLTHROUGH; ^~ /usr/local/include/SDL2/SDL_stdinc.h:550:26: note: used in pointer arithmetic here case 0: do { *_p++ = _val; SDL_FALLTHROUGH; ^~ 6 warnings generated. mkdir -p -p src/gui/.deps mkdir -p -p out/src/gui c++ -MMD -MF "src/gui/.deps/LoggerDialog.d" -MQ "out/src/gui/LoggerDialog.o" -MP -O2 -pipe -I/usr/X11R6/include -I/usr/local/include -x c++ -Wall -Wextra -Wno-unused-parameter -Wno-multichar -Wunused -Woverloaded-virtual -Wnon-virtual-dtor -std=c++17 -Weverything -Wno-c++98-compat-pedantic -Wno-unknown-warning-option -Wno-switch-enum -Wno-conversion -Wno-covered-switch-default -Wno-inconsistent-missing-destructor-override -Wno-float-equal -Wno-exit-time-destructors -Wno-global-constructors -Wno-weak-vtables -Wno-four-char-constants -Wno-padded -Wno-reserved-identifier -Wno-duplicate-enum -fomit-frame-pointer -DSDL_SUPPORT -D_GLIBCXX_USE_CXX11_ABI=1 -DUNIX -DBSPF_UNIX -DGUI_SUPPORT -DWINDOWED_SUPPORT -DSOUND_SUPPORT -DDEBUGGER_SUPPORT -DJOYSTICK_SUPPORT -DCHEATCODE_SUPPORT -DHTTP_LIB_SUPPORT -DPNG_SUPPORT -DZIP_SUPPORT -Isrc/emucore -Isrc/common -Isrc/common/tv_filters -Isrc/emucore/tia -Isrc/emucore/tia/frame-manager -Isrc/json -Isrc/common/repository/sqlite -I/usr/local/include -I/usr/local/include/SDL2 -I/usr/X11R6/include -D_REENTRANT -I/usr/X11R6/include -Isrc/unix -Isrc/gui -Isrc/debugger -Isrc/debugger/gui -Isrc/yacc -Isrc/cheat -Isrc/httplib -c src/gui/LoggerDialog.cxx -o out/src/gui/LoggerDialog.o In file included from src/gui/LoggerDialog.cxx:18: src/common/bspf.hxx:245:37: warning: unsafe pointer arithmetic [-Wunsafe-buffer-usage] const auto pos = std::search(s1.cbegin()+startpos, s1.cend(), ~~~^~~~~~~~ src/common/bspf.hxx:249:56: warning: unsafe pointer arithmetic [-Wunsafe-buffer-usage] return pos == s1.cend() ? string::npos : pos - (s1.cbegin()+startpos); ~~~^~~~~~~~ In file included from src/gui/LoggerDialog.cxx:19: In file included from src/gui/Dialog.hxx:31: In file included from src/gui/Widget.hxx:33: In file included from src/common/StellaKeys.hxx:22: In file included from src/common/SDL_lib.hxx:34: In file included from /usr/local/include/SDL2/SDL.h:32: In file included from /usr/local/include/SDL2/SDL_main.h:25: /usr/local/include/SDL2/SDL_stdinc.h:544:13: warning: '_p' is an unsafe pointer used for buffer access [-Wunsafe-buffer-usage] Uint32 *_p = SDL_static_cast(Uint32 *, dst); ~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /usr/local/include/SDL2/SDL_stdinc.h:553:26: note: used in pointer arithmetic here case 1: *_p++ = _val; ^~ /usr/local/include/SDL2/SDL_stdinc.h:552:26: note: used in pointer arithmetic here case 2: *_p++ = _val; SDL_FALLTHROUGH; ^~ /usr/local/include/SDL2/SDL_stdinc.h:551:26: note: used in pointer arithmetic here case 3: *_p++ = _val; SDL_FALLTHROUGH; ^~ /usr/local/include/SDL2/SDL_stdinc.h:550:26: note: used in pointer arithmetic here case 0: do { *_p++ = _val; SDL_FALLTHROUGH; ^~ In file included from src/gui/LoggerDialog.cxx:20: src/emucore/FSNode.hxx:513:31: warning: unsafe pointer arithmetic [-Wunsafe-buffer-usage] const char* cur = start + str.size() - 2; ~~~~~~^~~~~~~~~~~~ src/emucore/FSNode.hxx:512:19: warning: 'start' is an unsafe pointer used for buffer access [-Wunsafe-buffer-usage] const char* start = str.c_str(); ~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~ src/emucore/FSNode.hxx:513:25: note: used in pointer arithmetic here const char* cur = start + str.size() - 2; ^~~~~ src/emucore/FSNode.hxx:513:19: warning: 'cur' is an unsafe pointer used for buffer access [-Wunsafe-buffer-usage] const char* cur = start + str.size() - 2; ~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~ src/emucore/FSNode.hxx:518:14: note: used in pointer arithmetic here return cur + 1; ^~~ src/emucore/FSNode.hxx:516:11: note: used in pointer arithmetic here --cur; ^~~ 6 warnings generated. mkdir -p -p src/gui/.deps mkdir -p -p out/src/gui c++ -MMD -MF "src/gui/.deps/MessageBox.d" -MQ "out/src/gui/MessageBox.o" -MP -O2 -pipe -I/usr/X11R6/include -I/usr/local/include -x c++ -Wall -Wextra -Wno-unused-parameter -Wno-multichar -Wunused -Woverloaded-virtual -Wnon-virtual-dtor -std=c++17 -Weverything -Wno-c++98-compat-pedantic -Wno-unknown-warning-option -Wno-switch-enum -Wno-conversion -Wno-covered-switch-default -Wno-inconsistent-missing-destructor-override -Wno-float-equal -Wno-exit-time-destructors -Wno-global-constructors -Wno-weak-vtables -Wno-four-char-constants -Wno-padded -Wno-reserved-identifier -Wno-duplicate-enum -fomit-frame-pointer -DSDL_SUPPORT -D_GLIBCXX_USE_CXX11_ABI=1 -DUNIX -DBSPF_UNIX -DGUI_SUPPORT -DWINDOWED_SUPPORT -DSOUND_SUPPORT -DDEBUGGER_SUPPORT -DJOYSTICK_SUPPORT -DCHEATCODE_SUPPORT -DHTTP_LIB_SUPPORT -DPNG_SUPPORT -DZIP_SUPPORT -Isrc/emucore -Isrc/common -Isrc/common/tv_filters -Isrc/emucore/tia -Isrc/emucore/tia/frame-manager -Isrc/json -Isrc/common/repository/sqlite -I/usr/local/include -I/usr/local/include/SDL2 -I/usr/X11R6/include -D_REENTRANT -I/usr/X11R6/include -Isrc/unix -Isrc/gui -Isrc/debugger -Isrc/debugger/gui -Isrc/yacc -Isrc/cheat -Isrc/httplib -c src/gui/MessageBox.cxx -o out/src/gui/MessageBox.o In file included from src/gui/MessageBox.cxx:18: In file included from src/gui/Dialog.hxx:31: In file included from src/gui/Widget.hxx:28: src/common/bspf.hxx:245:37: warning: unsafe pointer arithmetic [-Wunsafe-buffer-usage] const auto pos = std::search(s1.cbegin()+startpos, s1.cend(), ~~~^~~~~~~~ src/common/bspf.hxx:249:56: warning: unsafe pointer arithmetic [-Wunsafe-buffer-usage] return pos == s1.cend() ? string::npos : pos - (s1.cbegin()+startpos); ~~~^~~~~~~~ In file included from src/gui/MessageBox.cxx:18: In file included from src/gui/Dialog.hxx:31: In file included from src/gui/Widget.hxx:33: In file included from src/common/StellaKeys.hxx:22: In file included from src/common/SDL_lib.hxx:34: In file included from /usr/local/include/SDL2/SDL.h:32: In file included from /usr/local/include/SDL2/SDL_main.h:25: /usr/local/include/SDL2/SDL_stdinc.h:544:13: warning: '_p' is an unsafe pointer used for buffer access [-Wunsafe-buffer-usage] Uint32 *_p = SDL_static_cast(Uint32 *, dst); ~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /usr/local/include/SDL2/SDL_stdinc.h:553:26: note: used in pointer arithmetic here case 1: *_p++ = _val; ^~ /usr/local/include/SDL2/SDL_stdinc.h:551:26: note: used in pointer arithmetic here case 3: *_p++ = _val; SDL_FALLTHROUGH; ^~ /usr/local/include/SDL2/SDL_stdinc.h:550:26: note: used in pointer arithmetic here case 0: do { *_p++ = _val; SDL_FALLTHROUGH; ^~ /usr/local/include/SDL2/SDL_stdinc.h:552:26: note: used in pointer arithmetic here case 2: *_p++ = _val; SDL_FALLTHROUGH; ^~ In file included from src/gui/MessageBox.cxx:19: In file included from src/emucore/OSystem.hxx:55: src/emucore/FSNode.hxx:513:31: warning: unsafe pointer arithmetic [-Wunsafe-buffer-usage] const char* cur = start + str.size() - 2; ~~~~~~^~~~~~~~~~~~ src/emucore/FSNode.hxx:512:19: warning: 'start' is an unsafe pointer used for buffer access [-Wunsafe-buffer-usage] const char* start = str.c_str(); ~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~ src/emucore/FSNode.hxx:513:25: note: used in pointer arithmetic here const char* cur = start + str.size() - 2; ^~~~~ src/emucore/FSNode.hxx:513:19: warning: 'cur' is an unsafe pointer used for buffer access [-Wunsafe-buffer-usage] const char* cur = start + str.size() - 2; ~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~ src/emucore/FSNode.hxx:516:11: note: used in pointer arithmetic here --cur; ^~~ src/emucore/FSNode.hxx:518:14: note: used in pointer arithmetic here return cur + 1; ^~~ 6 warnings generated. mkdir -p -p src/gui/.deps mkdir -p -p out/src/gui c++ -MMD -MF "src/gui/.deps/MessageDialog.d" -MQ "out/src/gui/MessageDialog.o" -MP -O2 -pipe -I/usr/X11R6/include -I/usr/local/include -x c++ -Wall -Wextra -Wno-unused-parameter -Wno-multichar -Wunused -Woverloaded-virtual -Wnon-virtual-dtor -std=c++17 -Weverything -Wno-c++98-compat-pedantic -Wno-unknown-warning-option -Wno-switch-enum -Wno-conversion -Wno-covered-switch-default -Wno-inconsistent-missing-destructor-override -Wno-float-equal -Wno-exit-time-destructors -Wno-global-constructors -Wno-weak-vtables -Wno-four-char-constants -Wno-padded -Wno-reserved-identifier -Wno-duplicate-enum -fomit-frame-pointer -DSDL_SUPPORT -D_GLIBCXX_USE_CXX11_ABI=1 -DUNIX -DBSPF_UNIX -DGUI_SUPPORT -DWINDOWED_SUPPORT -DSOUND_SUPPORT -DDEBUGGER_SUPPORT -DJOYSTICK_SUPPORT -DCHEATCODE_SUPPORT -DHTTP_LIB_SUPPORT -DPNG_SUPPORT -DZIP_SUPPORT -Isrc/emucore -Isrc/common -Isrc/common/tv_filters -Isrc/emucore/tia -Isrc/emucore/tia/frame-manager -Isrc/json -Isrc/common/repository/sqlite -I/usr/local/include -I/usr/local/include/SDL2 -I/usr/X11R6/include -D_REENTRANT -I/usr/X11R6/include -Isrc/unix -Isrc/gui -Isrc/debugger -Isrc/debugger/gui -Isrc/yacc -Isrc/cheat -Isrc/httplib -c src/gui/MessageDialog.cxx -o out/src/gui/MessageDialog.o In file included from src/gui/MessageDialog.cxx:18: In file included from src/emucore/OSystem.hxx:55: In file included from src/emucore/FSNode.hxx:23: src/common/bspf.hxx:245:37: warning: unsafe pointer arithmetic [-Wunsafe-buffer-usage] const auto pos = std::search(s1.cbegin()+startpos, s1.cend(), ~~~^~~~~~~~ src/common/bspf.hxx:249:56: warning: unsafe pointer arithmetic [-Wunsafe-buffer-usage] return pos == s1.cend() ? string::npos : pos - (s1.cbegin()+startpos); ~~~^~~~~~~~ In file included from src/gui/MessageDialog.cxx:18: In file included from src/emucore/OSystem.hxx:55: src/emucore/FSNode.hxx:513:31: warning: unsafe pointer arithmetic [-Wunsafe-buffer-usage] const char* cur = start + str.size() - 2; ~~~~~~^~~~~~~~~~~~ src/emucore/FSNode.hxx:512:19: warning: 'start' is an unsafe pointer used for buffer access [-Wunsafe-buffer-usage] const char* start = str.c_str(); ~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~ src/emucore/FSNode.hxx:513:25: note: used in pointer arithmetic here const char* cur = start + str.size() - 2; ^~~~~ src/emucore/FSNode.hxx:513:19: warning: 'cur' is an unsafe pointer used for buffer access [-Wunsafe-buffer-usage] const char* cur = start + str.size() - 2; ~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~ src/emucore/FSNode.hxx:516:11: note: used in pointer arithmetic here --cur; ^~~ src/emucore/FSNode.hxx:518:14: note: used in pointer arithmetic here return cur + 1; ^~~ In file included from src/gui/MessageDialog.cxx:20: In file included from src/emucore/EventHandler.hxx:38: In file included from src/common/PKeyboardHandler.hxx:30: In file included from src/common/KeyMap.hxx:24: In file included from src/common/StellaKeys.hxx:22: In file included from src/common/SDL_lib.hxx:34: In file included from /usr/local/include/SDL2/SDL.h:32: In file included from /usr/local/include/SDL2/SDL_main.h:25: /usr/local/include/SDL2/SDL_stdinc.h:544:13: warning: '_p' is an unsafe pointer used for buffer access [-Wunsafe-buffer-usage] Uint32 *_p = SDL_static_cast(Uint32 *, dst); ~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /usr/local/include/SDL2/SDL_stdinc.h:551:26: note: used in pointer arithmetic here case 3: *_p++ = _val; SDL_FALLTHROUGH; ^~ /usr/local/include/SDL2/SDL_stdinc.h:553:26: note: used in pointer arithmetic here case 1: *_p++ = _val; ^~ /usr/local/include/SDL2/SDL_stdinc.h:552:26: note: used in pointer arithmetic here case 2: *_p++ = _val; SDL_FALLTHROUGH; ^~ /usr/local/include/SDL2/SDL_stdinc.h:550:26: note: used in pointer arithmetic here case 0: do { *_p++ = _val; SDL_FALLTHROUGH; ^~ 6 warnings generated. mkdir -p -p src/gui/.deps mkdir -p -p out/src/gui c++ -MMD -MF "src/gui/.deps/MessageMenu.d" -MQ "out/src/gui/MessageMenu.o" -MP -O2 -pipe -I/usr/X11R6/include -I/usr/local/include -x c++ -Wall -Wextra -Wno-unused-parameter -Wno-multichar -Wunused -Woverloaded-virtual -Wnon-virtual-dtor -std=c++17 -Weverything -Wno-c++98-compat-pedantic -Wno-unknown-warning-option -Wno-switch-enum -Wno-conversion -Wno-covered-switch-default -Wno-inconsistent-missing-destructor-override -Wno-float-equal -Wno-exit-time-destructors -Wno-global-constructors -Wno-weak-vtables -Wno-four-char-constants -Wno-padded -Wno-reserved-identifier -Wno-duplicate-enum -fomit-frame-pointer -DSDL_SUPPORT -D_GLIBCXX_USE_CXX11_ABI=1 -DUNIX -DBSPF_UNIX -DGUI_SUPPORT -DWINDOWED_SUPPORT -DSOUND_SUPPORT -DDEBUGGER_SUPPORT -DJOYSTICK_SUPPORT -DCHEATCODE_SUPPORT -DHTTP_LIB_SUPPORT -DPNG_SUPPORT -DZIP_SUPPORT -Isrc/emucore -Isrc/common -Isrc/common/tv_filters -Isrc/emucore/tia -Isrc/emucore/tia/frame-manager -Isrc/json -Isrc/common/repository/sqlite -I/usr/local/include -I/usr/local/include/SDL2 -I/usr/X11R6/include -D_REENTRANT -I/usr/X11R6/include -Isrc/unix -Isrc/gui -Isrc/debugger -Isrc/debugger/gui -Isrc/yacc -Isrc/cheat -Isrc/httplib -c src/gui/MessageMenu.cxx -o out/src/gui/MessageMenu.o In file included from src/gui/MessageMenu.cxx:18: In file included from src/gui/Dialog.hxx:31: In file included from src/gui/Widget.hxx:28: src/common/bspf.hxx:245:37: warning: unsafe pointer arithmetic [-Wunsafe-buffer-usage] const auto pos = std::search(s1.cbegin()+startpos, s1.cend(), ~~~^~~~~~~~ src/common/bspf.hxx:249:56: warning: unsafe pointer arithmetic [-Wunsafe-buffer-usage] return pos == s1.cend() ? string::npos : pos - (s1.cbegin()+startpos); ~~~^~~~~~~~ In file included from src/gui/MessageMenu.cxx:18: In file included from src/gui/Dialog.hxx:31: In file included from src/gui/Widget.hxx:33: In file included from src/common/StellaKeys.hxx:22: In file included from src/common/SDL_lib.hxx:34: In file included from /usr/local/include/SDL2/SDL.h:32: In file included from /usr/local/include/SDL2/SDL_main.h:25: /usr/local/include/SDL2/SDL_stdinc.h:544:13: warning: '_p' is an unsafe pointer used for buffer access [-Wunsafe-buffer-usage] Uint32 *_p = SDL_static_cast(Uint32 *, dst); ~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /usr/local/include/SDL2/SDL_stdinc.h:550:26: note: used in pointer arithmetic here case 0: do { *_p++ = _val; SDL_FALLTHROUGH; ^~ /usr/local/include/SDL2/SDL_stdinc.h:553:26: note: used in pointer arithmetic here case 1: *_p++ = _val; ^~ /usr/local/include/SDL2/SDL_stdinc.h:552:26: note: used in pointer arithmetic here case 2: *_p++ = _val; SDL_FALLTHROUGH; ^~ /usr/local/include/SDL2/SDL_stdinc.h:551:26: note: used in pointer arithmetic here case 3: *_p++ = _val; SDL_FALLTHROUGH; ^~ In file included from src/gui/MessageMenu.cxx:19: In file included from src/emucore/OSystem.hxx:55: src/emucore/FSNode.hxx:513:31: warning: unsafe pointer arithmetic [-Wunsafe-buffer-usage] const char* cur = start + str.size() - 2; ~~~~~~^~~~~~~~~~~~ src/emucore/FSNode.hxx:512:19: warning: 'start' is an unsafe pointer used for buffer access [-Wunsafe-buffer-usage] const char* start = str.c_str(); ~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~ src/emucore/FSNode.hxx:513:25: note: used in pointer arithmetic here const char* cur = start + str.size() - 2; ^~~~~ src/emucore/FSNode.hxx:513:19: warning: 'cur' is an unsafe pointer used for buffer access [-Wunsafe-buffer-usage] const char* cur = start + str.size() - 2; ~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~ src/emucore/FSNode.hxx:518:14: note: used in pointer arithmetic here return cur + 1; ^~~ src/emucore/FSNode.hxx:516:11: note: used in pointer arithmetic here --cur; ^~~ 6 warnings generated. mkdir -p -p src/gui/.deps mkdir -p -p out/src/gui c++ -MMD -MF "src/gui/.deps/MinUICommandDialog.d" -MQ "out/src/gui/MinUICommandDialog.o" -MP -O2 -pipe -I/usr/X11R6/include -I/usr/local/include -x c++ -Wall -Wextra -Wno-unused-parameter -Wno-multichar -Wunused -Woverloaded-virtual -Wnon-virtual-dtor -std=c++17 -Weverything -Wno-c++98-compat-pedantic -Wno-unknown-warning-option -Wno-switch-enum -Wno-conversion -Wno-covered-switch-default -Wno-inconsistent-missing-destructor-override -Wno-float-equal -Wno-exit-time-destructors -Wno-global-constructors -Wno-weak-vtables -Wno-four-char-constants -Wno-padded -Wno-reserved-identifier -Wno-duplicate-enum -fomit-frame-pointer -DSDL_SUPPORT -D_GLIBCXX_USE_CXX11_ABI=1 -DUNIX -DBSPF_UNIX -DGUI_SUPPORT -DWINDOWED_SUPPORT -DSOUND_SUPPORT -DDEBUGGER_SUPPORT -DJOYSTICK_SUPPORT -DCHEATCODE_SUPPORT -DHTTP_LIB_SUPPORT -DPNG_SUPPORT -DZIP_SUPPORT -Isrc/emucore -Isrc/common -Isrc/common/tv_filters -Isrc/emucore/tia -Isrc/emucore/tia/frame-manager -Isrc/json -Isrc/common/repository/sqlite -I/usr/local/include -I/usr/local/include/SDL2 -I/usr/X11R6/include -D_REENTRANT -I/usr/X11R6/include -Isrc/unix -Isrc/gui -Isrc/debugger -Isrc/debugger/gui -Isrc/yacc -Isrc/cheat -Isrc/httplib -c src/gui/MinUICommandDialog.cxx -o out/src/gui/MinUICommandDialog.o In file included from src/gui/MinUICommandDialog.cxx:18: In file included from src/emucore/Console.hxx:34: src/common/bspf.hxx:245:37: warning: unsafe pointer arithmetic [-Wunsafe-buffer-usage] const auto pos = std::search(s1.cbegin()+startpos, s1.cend(), ~~~^~~~~~~~ src/common/bspf.hxx:249:56: warning: unsafe pointer arithmetic [-Wunsafe-buffer-usage] return pos == s1.cend() ? string::npos : pos - (s1.cbegin()+startpos); ~~~^~~~~~~~ In file included from src/gui/MinUICommandDialog.cxx:19: In file included from src/emucore/tia/TIA.hxx:37: src/emucore/tia/Missile.hxx:170:7: warning: unsafe buffer access [-Wunsafe-buffer-usage] if (myDecodes[myCounter] && !myResmp) { ^~~~~~~~~ src/emucore/tia/Missile.hxx:173:14: warning: unsafe buffer access [-Wunsafe-buffer-usage] myCopy = myDecodes[myCounter]; ^~~~~~~~~ In file included from src/gui/MinUICommandDialog.cxx:19: In file included from src/emucore/tia/TIA.hxx:38: src/emucore/tia/Player.hxx:186:7: warning: unsafe buffer access [-Wunsafe-buffer-usage] if (myDecodes[myCounter]) { ^~~~~~~~~ src/emucore/tia/Player.hxx:190:14: warning: unsafe buffer access [-Wunsafe-buffer-usage] myCopy = myDecodes[myCounter]; ^~~~~~~~~ In file included from src/gui/MinUICommandDialog.cxx:21: In file included from src/gui/Dialog.hxx:31: In file included from src/gui/Widget.hxx:33: In file included from src/common/StellaKeys.hxx:22: In file included from src/common/SDL_lib.hxx:34: In file included from /usr/local/include/SDL2/SDL.h:32: In file included from /usr/local/include/SDL2/SDL_main.h:25: /usr/local/include/SDL2/SDL_stdinc.h:544:13: warning: '_p' is an unsafe pointer used for buffer access [-Wunsafe-buffer-usage] Uint32 *_p = SDL_static_cast(Uint32 *, dst); ~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /usr/local/include/SDL2/SDL_stdinc.h:552:26: note: used in pointer arithmetic here case 2: *_p++ = _val; SDL_FALLTHROUGH; ^~ /usr/local/include/SDL2/SDL_stdinc.h:550:26: note: used in pointer arithmetic here case 0: do { *_p++ = _val; SDL_FALLTHROUGH; ^~ /usr/local/include/SDL2/SDL_stdinc.h:551:26: note: used in pointer arithmetic here case 3: *_p++ = _val; SDL_FALLTHROUGH; ^~ /usr/local/include/SDL2/SDL_stdinc.h:553:26: note: used in pointer arithmetic here case 1: *_p++ = _val; ^~ In file included from src/gui/MinUICommandDialog.cxx:26: In file included from src/common/HighScoresManager.hxx:27: src/emucore/FSNode.hxx:513:31: warning: unsafe pointer arithmetic [-Wunsafe-buffer-usage] const char* cur = start + str.size() - 2; ~~~~~~^~~~~~~~~~~~ src/emucore/FSNode.hxx:512:19: warning: 'start' is an unsafe pointer used for buffer access [-Wunsafe-buffer-usage] const char* start = str.c_str(); ~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~ src/emucore/FSNode.hxx:513:25: note: used in pointer arithmetic here const char* cur = start + str.size() - 2; ^~~~~ src/emucore/FSNode.hxx:513:19: warning: 'cur' is an unsafe pointer used for buffer access [-Wunsafe-buffer-usage] const char* cur = start + str.size() - 2; ~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~ src/emucore/FSNode.hxx:516:11: note: used in pointer arithmetic here --cur; ^~~ src/emucore/FSNode.hxx:518:14: note: used in pointer arithmetic here return cur + 1; ^~~ In file included from src/gui/MinUICommandDialog.cxx:32: In file included from src/emucore/TIASurface.hxx:31: In file included from src/common/tv_filters/NTSCFilter.hxx:25: src/common/tv_filters/AtariNTSC.hxx:238:22: warning: 'to_rgb' is an unsafe pointer used for buffer access [-Wunsafe-buffer-usage] const float* to_rgb, int& ir, int& ig, int& ib) { ~~~~~~~~~~~~~^~~~~~ src/common/tv_filters/AtariNTSC.hxx:240:33: note: used in buffer access here ig = static_cast(y + to_rgb[2] * i + to_rgb[3] * q); ^~~~~~ src/common/tv_filters/AtariNTSC.hxx:241:49: note: used in buffer access here ib = static_cast(y + to_rgb[4] * i + to_rgb[5] * q); ^~~~~~ src/common/tv_filters/AtariNTSC.hxx:239:49: note: used in buffer access here ir = static_cast(y + to_rgb[0] * i + to_rgb[1] * q); ^~~~~~ src/common/tv_filters/AtariNTSC.hxx:241:33: note: used in buffer access here ib = static_cast(y + to_rgb[4] * i + to_rgb[5] * q); ^~~~~~ src/common/tv_filters/AtariNTSC.hxx:240:49: note: used in buffer access here ig = static_cast(y + to_rgb[2] * i + to_rgb[3] * q); ^~~~~~ 11 warnings generated. mkdir -p -p src/gui/.deps mkdir -p -p out/src/gui c++ -MMD -MF "src/gui/.deps/NavigationWidget.d" -MQ "out/src/gui/NavigationWidget.o" -MP -O2 -pipe -I/usr/X11R6/include -I/usr/local/include -x c++ -Wall -Wextra -Wno-unused-parameter -Wno-multichar -Wunused -Woverloaded-virtual -Wnon-virtual-dtor -std=c++17 -Weverything -Wno-c++98-compat-pedantic -Wno-unknown-warning-option -Wno-switch-enum -Wno-conversion -Wno-covered-switch-default -Wno-inconsistent-missing-destructor-override -Wno-float-equal -Wno-exit-time-destructors -Wno-global-constructors -Wno-weak-vtables -Wno-four-char-constants -Wno-padded -Wno-reserved-identifier -Wno-duplicate-enum -fomit-frame-pointer -DSDL_SUPPORT -D_GLIBCXX_USE_CXX11_ABI=1 -DUNIX -DBSPF_UNIX -DGUI_SUPPORT -DWINDOWED_SUPPORT -DSOUND_SUPPORT -DDEBUGGER_SUPPORT -DJOYSTICK_SUPPORT -DCHEATCODE_SUPPORT -DHTTP_LIB_SUPPORT -DPNG_SUPPORT -DZIP_SUPPORT -Isrc/emucore -Isrc/common -Isrc/common/tv_filters -Isrc/emucore/tia -Isrc/emucore/tia/frame-manager -Isrc/json -Isrc/common/repository/sqlite -I/usr/local/include -I/usr/local/include/SDL2 -I/usr/X11R6/include -D_REENTRANT -I/usr/X11R6/include -Isrc/unix -Isrc/gui -Isrc/debugger -Isrc/debugger/gui -Isrc/yacc -Isrc/cheat -Isrc/httplib -c src/gui/NavigationWidget.cxx -o out/src/gui/NavigationWidget.o In file included from src/gui/NavigationWidget.cxx:18: In file included from src/gui/Command.hxx:24: src/common/bspf.hxx:245:37: warning: unsafe pointer arithmetic [-Wunsafe-buffer-usage] const auto pos = std::search(s1.cbegin()+startpos, s1.cend(), ~~~^~~~~~~~ src/common/bspf.hxx:249:56: warning: unsafe pointer arithmetic [-Wunsafe-buffer-usage] return pos == s1.cend() ? string::npos : pos - (s1.cbegin()+startpos); ~~~^~~~~~~~ In file included from src/gui/NavigationWidget.cxx:19: In file included from src/gui/Dialog.hxx:31: In file included from src/gui/Widget.hxx:33: In file included from src/common/StellaKeys.hxx:22: In file included from src/common/SDL_lib.hxx:34: In file included from /usr/local/include/SDL2/SDL.h:32: In file included from /usr/local/include/SDL2/SDL_main.h:25: /usr/local/include/SDL2/SDL_stdinc.h:544:13: warning: '_p' is an unsafe pointer used for buffer access [-Wunsafe-buffer-usage] Uint32 *_p = SDL_static_cast(Uint32 *, dst); ~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /usr/local/include/SDL2/SDL_stdinc.h:551:26: note: used in pointer arithmetic here case 3: *_p++ = _val; SDL_FALLTHROUGH; ^~ /usr/local/include/SDL2/SDL_stdinc.h:553:26: note: used in pointer arithmetic here case 1: *_p++ = _val; ^~ /usr/local/include/SDL2/SDL_stdinc.h:552:26: note: used in pointer arithmetic here case 2: *_p++ = _val; SDL_FALLTHROUGH; ^~ /usr/local/include/SDL2/SDL_stdinc.h:550:26: note: used in pointer arithmetic here case 0: do { *_p++ = _val; SDL_FALLTHROUGH; ^~ In file included from src/gui/NavigationWidget.cxx:22: In file included from src/gui/FileListWidget.hxx:24: src/emucore/FSNode.hxx:513:31: warning: unsafe pointer arithmetic [-Wunsafe-buffer-usage] const char* cur = start + str.size() - 2; ~~~~~~^~~~~~~~~~~~ src/emucore/FSNode.hxx:512:19: warning: 'start' is an unsafe pointer used for buffer access [-Wunsafe-buffer-usage] const char* start = str.c_str(); ~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~ src/emucore/FSNode.hxx:513:25: note: used in pointer arithmetic here const char* cur = start + str.size() - 2; ^~~~~ src/emucore/FSNode.hxx:513:19: warning: 'cur' is an unsafe pointer used for buffer access [-Wunsafe-buffer-usage] const char* cur = start + str.size() - 2; ~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~ src/emucore/FSNode.hxx:518:14: note: used in pointer arithmetic here return cur + 1; ^~~ src/emucore/FSNode.hxx:516:11: note: used in pointer arithmetic here --cur; ^~~ 6 warnings generated. mkdir -p -p src/gui/.deps mkdir -p -p out/src/gui c++ -MMD -MF "src/gui/.deps/OptionsDialog.d" -MQ "out/src/gui/OptionsDialog.o" -MP -O2 -pipe -I/usr/X11R6/include -I/usr/local/include -x c++ -Wall -Wextra -Wno-unused-parameter -Wno-multichar -Wunused -Woverloaded-virtual -Wnon-virtual-dtor -std=c++17 -Weverything -Wno-c++98-compat-pedantic -Wno-unknown-warning-option -Wno-switch-enum -Wno-conversion -Wno-covered-switch-default -Wno-inconsistent-missing-destructor-override -Wno-float-equal -Wno-exit-time-destructors -Wno-global-constructors -Wno-weak-vtables -Wno-four-char-constants -Wno-padded -Wno-reserved-identifier -Wno-duplicate-enum -fomit-frame-pointer -DSDL_SUPPORT -D_GLIBCXX_USE_CXX11_ABI=1 -DUNIX -DBSPF_UNIX -DGUI_SUPPORT -DWINDOWED_SUPPORT -DSOUND_SUPPORT -DDEBUGGER_SUPPORT -DJOYSTICK_SUPPORT -DCHEATCODE_SUPPORT -DHTTP_LIB_SUPPORT -DPNG_SUPPORT -DZIP_SUPPORT -Isrc/emucore -Isrc/common -Isrc/common/tv_filters -Isrc/emucore/tia -Isrc/emucore/tia/frame-manager -Isrc/json -Isrc/common/repository/sqlite -I/usr/local/include -I/usr/local/include/SDL2 -I/usr/X11R6/include -D_REENTRANT -I/usr/X11R6/include -Isrc/unix -Isrc/gui -Isrc/debugger -Isrc/debugger/gui -Isrc/yacc -Isrc/cheat -Isrc/httplib -c src/gui/OptionsDialog.cxx -o out/src/gui/OptionsDialog.o In file included from src/gui/OptionsDialog.cxx:18: In file included from src/emucore/OSystem.hxx:55: In file included from src/emucore/FSNode.hxx:23: src/common/bspf.hxx:245:37: warning: unsafe pointer arithmetic [-Wunsafe-buffer-usage] const auto pos = std::search(s1.cbegin()+startpos, s1.cend(), ~~~^~~~~~~~ src/common/bspf.hxx:249:56: warning: unsafe pointer arithmetic [-Wunsafe-buffer-usage] return pos == s1.cend() ? string::npos : pos - (s1.cbegin()+startpos); ~~~^~~~~~~~ In file included from src/gui/OptionsDialog.cxx:18: In file included from src/emucore/OSystem.hxx:55: src/emucore/FSNode.hxx:513:31: warning: unsafe pointer arithmetic [-Wunsafe-buffer-usage] const char* cur = start + str.size() - 2; ~~~~~~^~~~~~~~~~~~ src/emucore/FSNode.hxx:512:19: warning: 'start' is an unsafe pointer used for buffer access [-Wunsafe-buffer-usage] const char* start = str.c_str(); ~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~ src/emucore/FSNode.hxx:513:25: note: used in pointer arithmetic here const char* cur = start + str.size() - 2; ^~~~~ src/emucore/FSNode.hxx:513:19: warning: 'cur' is an unsafe pointer used for buffer access [-Wunsafe-buffer-usage] const char* cur = start + str.size() - 2; ~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~ src/emucore/FSNode.hxx:518:14: note: used in pointer arithmetic here return cur + 1; ^~~ src/emucore/FSNode.hxx:516:11: note: used in pointer arithmetic here --cur; ^~~ In file included from src/gui/OptionsDialog.cxx:20: In file included from src/emucore/EventHandler.hxx:38: In file included from src/common/PKeyboardHandler.hxx:30: In file included from src/common/KeyMap.hxx:24: In file included from src/common/StellaKeys.hxx:22: In file included from src/common/SDL_lib.hxx:34: In file included from /usr/local/include/SDL2/SDL.h:32: In file included from /usr/local/include/SDL2/SDL_main.h:25: /usr/local/include/SDL2/SDL_stdinc.h:544:13: warning: '_p' is an unsafe pointer used for buffer access [-Wunsafe-buffer-usage] Uint32 *_p = SDL_static_cast(Uint32 *, dst); ~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /usr/local/include/SDL2/SDL_stdinc.h:550:26: note: used in pointer arithmetic here case 0: do { *_p++ = _val; SDL_FALLTHROUGH; ^~ /usr/local/include/SDL2/SDL_stdinc.h:553:26: note: used in pointer arithmetic here case 1: *_p++ = _val; ^~ /usr/local/include/SDL2/SDL_stdinc.h:552:26: note: used in pointer arithmetic here case 2: *_p++ = _val; SDL_FALLTHROUGH; ^~ /usr/local/include/SDL2/SDL_stdinc.h:551:26: note: used in pointer arithmetic here case 3: *_p++ = _val; SDL_FALLTHROUGH; ^~ In file included from src/gui/OptionsDialog.cxx:27: In file included from src/gui/VideoAudioDialog.hxx:34: In file included from src/common/tv_filters/NTSCFilter.hxx:25: src/common/tv_filters/AtariNTSC.hxx:238:22: warning: 'to_rgb' is an unsafe pointer used for buffer access [-Wunsafe-buffer-usage] const float* to_rgb, int& ir, int& ig, int& ib) { ~~~~~~~~~~~~~^~~~~~ src/common/tv_filters/AtariNTSC.hxx:239:49: note: used in buffer access here ir = static_cast(y + to_rgb[0] * i + to_rgb[1] * q); ^~~~~~ src/common/tv_filters/AtariNTSC.hxx:240:33: note: used in buffer access here ig = static_cast(y + to_rgb[2] * i + to_rgb[3] * q); ^~~~~~ src/common/tv_filters/AtariNTSC.hxx:240:49: note: used in buffer access here ig = static_cast(y + to_rgb[2] * i + to_rgb[3] * q); ^~~~~~ src/common/tv_filters/AtariNTSC.hxx:241:33: note: used in buffer access here ib = static_cast(y + to_rgb[4] * i + to_rgb[5] * q); ^~~~~~ src/common/tv_filters/AtariNTSC.hxx:241:49: note: used in buffer access here ib = static_cast(y + to_rgb[4] * i + to_rgb[5] * q); ^~~~~~ 7 warnings generated. mkdir -p -p src/gui/.deps mkdir -p -p out/src/gui c++ -MMD -MF "src/gui/.deps/OptionsMenu.d" -MQ "out/src/gui/OptionsMenu.o" -MP -O2 -pipe -I/usr/X11R6/include -I/usr/local/include -x c++ -Wall -Wextra -Wno-unused-parameter -Wno-multichar -Wunused -Woverloaded-virtual -Wnon-virtual-dtor -std=c++17 -Weverything -Wno-c++98-compat-pedantic -Wno-unknown-warning-option -Wno-switch-enum -Wno-conversion -Wno-covered-switch-default -Wno-inconsistent-missing-destructor-override -Wno-float-equal -Wno-exit-time-destructors -Wno-global-constructors -Wno-weak-vtables -Wno-four-char-constants -Wno-padded -Wno-reserved-identifier -Wno-duplicate-enum -fomit-frame-pointer -DSDL_SUPPORT -D_GLIBCXX_USE_CXX11_ABI=1 -DUNIX -DBSPF_UNIX -DGUI_SUPPORT -DWINDOWED_SUPPORT -DSOUND_SUPPORT -DDEBUGGER_SUPPORT -DJOYSTICK_SUPPORT -DCHEATCODE_SUPPORT -DHTTP_LIB_SUPPORT -DPNG_SUPPORT -DZIP_SUPPORT -Isrc/emucore -Isrc/common -Isrc/common/tv_filters -Isrc/emucore/tia -Isrc/emucore/tia/frame-manager -Isrc/json -Isrc/common/repository/sqlite -I/usr/local/include -I/usr/local/include/SDL2 -I/usr/X11R6/include -D_REENTRANT -I/usr/X11R6/include -Isrc/unix -Isrc/gui -Isrc/debugger -Isrc/debugger/gui -Isrc/yacc -Isrc/cheat -Isrc/httplib -c src/gui/OptionsMenu.cxx -o out/src/gui/OptionsMenu.o In file included from src/gui/OptionsMenu.cxx:18: In file included from src/gui/Dialog.hxx:31: In file included from src/gui/Widget.hxx:28: src/common/bspf.hxx:245:37: warning: unsafe pointer arithmetic [-Wunsafe-buffer-usage] const auto pos = std::search(s1.cbegin()+startpos, s1.cend(), ~~~^~~~~~~~ src/common/bspf.hxx:249:56: warning: unsafe pointer arithmetic [-Wunsafe-buffer-usage] return pos == s1.cend() ? string::npos : pos - (s1.cbegin()+startpos); ~~~^~~~~~~~ In file included from src/gui/OptionsMenu.cxx:18: In file included from src/gui/Dialog.hxx:31: In file included from src/gui/Widget.hxx:33: In file included from src/common/StellaKeys.hxx:22: In file included from src/common/SDL_lib.hxx:34: In file included from /usr/local/include/SDL2/SDL.h:32: In file included from /usr/local/include/SDL2/SDL_main.h:25: /usr/local/include/SDL2/SDL_stdinc.h:544:13: warning: '_p' is an unsafe pointer used for buffer access [-Wunsafe-buffer-usage] Uint32 *_p = SDL_static_cast(Uint32 *, dst); ~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /usr/local/include/SDL2/SDL_stdinc.h:553:26: note: used in pointer arithmetic here case 1: *_p++ = _val; ^~ /usr/local/include/SDL2/SDL_stdinc.h:552:26: note: used in pointer arithmetic here case 2: *_p++ = _val; SDL_FALLTHROUGH; ^~ /usr/local/include/SDL2/SDL_stdinc.h:551:26: note: used in pointer arithmetic here case 3: *_p++ = _val; SDL_FALLTHROUGH; ^~ /usr/local/include/SDL2/SDL_stdinc.h:550:26: note: used in pointer arithmetic here case 0: do { *_p++ = _val; SDL_FALLTHROUGH; ^~ In file included from src/gui/OptionsMenu.cxx:22: In file included from src/emucore/OSystem.hxx:55: src/emucore/FSNode.hxx:513:31: warning: unsafe pointer arithmetic [-Wunsafe-buffer-usage] const char* cur = start + str.size() - 2; ~~~~~~^~~~~~~~~~~~ src/emucore/FSNode.hxx:512:19: warning: 'start' is an unsafe pointer used for buffer access [-Wunsafe-buffer-usage] const char* start = str.c_str(); ~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~ src/emucore/FSNode.hxx:513:25: note: used in pointer arithmetic here const char* cur = start + str.size() - 2; ^~~~~ src/emucore/FSNode.hxx:513:19: warning: 'cur' is an unsafe pointer used for buffer access [-Wunsafe-buffer-usage] const char* cur = start + str.size() - 2; ~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~ src/emucore/FSNode.hxx:518:14: note: used in pointer arithmetic here return cur + 1; ^~~ src/emucore/FSNode.hxx:516:11: note: used in pointer arithmetic here --cur; ^~~ 6 warnings generated. mkdir -p -p src/gui/.deps mkdir -p -p out/src/gui c++ -MMD -MF "src/gui/.deps/PlusRomsMenu.d" -MQ "out/src/gui/PlusRomsMenu.o" -MP -O2 -pipe -I/usr/X11R6/include -I/usr/local/include -x c++ -Wall -Wextra -Wno-unused-parameter -Wno-multichar -Wunused -Woverloaded-virtual -Wnon-virtual-dtor -std=c++17 -Weverything -Wno-c++98-compat-pedantic -Wno-unknown-warning-option -Wno-switch-enum -Wno-conversion -Wno-covered-switch-default -Wno-inconsistent-missing-destructor-override -Wno-float-equal -Wno-exit-time-destructors -Wno-global-constructors -Wno-weak-vtables -Wno-four-char-constants -Wno-padded -Wno-reserved-identifier -Wno-duplicate-enum -fomit-frame-pointer -DSDL_SUPPORT -D_GLIBCXX_USE_CXX11_ABI=1 -DUNIX -DBSPF_UNIX -DGUI_SUPPORT -DWINDOWED_SUPPORT -DSOUND_SUPPORT -DDEBUGGER_SUPPORT -DJOYSTICK_SUPPORT -DCHEATCODE_SUPPORT -DHTTP_LIB_SUPPORT -DPNG_SUPPORT -DZIP_SUPPORT -Isrc/emucore -Isrc/common -Isrc/common/tv_filters -Isrc/emucore/tia -Isrc/emucore/tia/frame-manager -Isrc/json -Isrc/common/repository/sqlite -I/usr/local/include -I/usr/local/include/SDL2 -I/usr/X11R6/include -D_REENTRANT -I/usr/X11R6/include -Isrc/unix -Isrc/gui -Isrc/debugger -Isrc/debugger/gui -Isrc/yacc -Isrc/cheat -Isrc/httplib -c src/gui/PlusRomsMenu.cxx -o out/src/gui/PlusRomsMenu.o In file included from src/gui/PlusRomsMenu.cxx:18: In file included from src/emucore/OSystem.hxx:55: In file included from src/emucore/FSNode.hxx:23: src/common/bspf.hxx:245:37: warning: unsafe pointer arithmetic [-Wunsafe-buffer-usage] const auto pos = std::search(s1.cbegin()+startpos, s1.cend(), ~~~^~~~~~~~ src/common/bspf.hxx:249:56: warning: unsafe pointer arithmetic [-Wunsafe-buffer-usage] return pos == s1.cend() ? string::npos : pos - (s1.cbegin()+startpos); ~~~^~~~~~~~ In file included from src/gui/PlusRomsMenu.cxx:18: In file included from src/emucore/OSystem.hxx:55: src/emucore/FSNode.hxx:513:31: warning: unsafe pointer arithmetic [-Wunsafe-buffer-usage] const char* cur = start + str.size() - 2; ~~~~~~^~~~~~~~~~~~ src/emucore/FSNode.hxx:512:19: warning: 'start' is an unsafe pointer used for buffer access [-Wunsafe-buffer-usage] const char* start = str.c_str(); ~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~ src/emucore/FSNode.hxx:513:25: note: used in pointer arithmetic here const char* cur = start + str.size() - 2; ^~~~~ src/emucore/FSNode.hxx:513:19: warning: 'cur' is an unsafe pointer used for buffer access [-Wunsafe-buffer-usage] const char* cur = start + str.size() - 2; ~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~ src/emucore/FSNode.hxx:516:11: note: used in pointer arithmetic here --cur; ^~~ src/emucore/FSNode.hxx:518:14: note: used in pointer arithmetic here return cur + 1; ^~~ In file included from src/gui/PlusRomsMenu.cxx:20: In file included from src/gui/PlusRomsSetupDialog.hxx:21: In file included from src/gui/InputTextDialog.hxx:25: In file included from src/gui/Dialog.hxx:31: In file included from src/gui/Widget.hxx:33: In file included from src/common/StellaKeys.hxx:22: In file included from src/common/SDL_lib.hxx:34: In file included from /usr/local/include/SDL2/SDL.h:32: In file included from /usr/local/include/SDL2/SDL_main.h:25: /usr/local/include/SDL2/SDL_stdinc.h:544:13: warning: '_p' is an unsafe pointer used for buffer access [-Wunsafe-buffer-usage] Uint32 *_p = SDL_static_cast(Uint32 *, dst); ~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /usr/local/include/SDL2/SDL_stdinc.h:550:26: note: used in pointer arithmetic here case 0: do { *_p++ = _val; SDL_FALLTHROUGH; ^~ /usr/local/include/SDL2/SDL_stdinc.h:551:26: note: used in pointer arithmetic here case 3: *_p++ = _val; SDL_FALLTHROUGH; ^~ /usr/local/include/SDL2/SDL_stdinc.h:552:26: note: used in pointer arithmetic here case 2: *_p++ = _val; SDL_FALLTHROUGH; ^~ /usr/local/include/SDL2/SDL_stdinc.h:553:26: note: used in pointer arithmetic here case 1: *_p++ = _val; ^~ 6 warnings generated. mkdir -p -p src/gui/.deps mkdir -p -p out/src/gui c++ -MMD -MF "src/gui/.deps/PlusRomsSetupDialog.d" -MQ "out/src/gui/PlusRomsSetupDialog.o" -MP -O2 -pipe -I/usr/X11R6/include -I/usr/local/include -x c++ -Wall -Wextra -Wno-unused-parameter -Wno-multichar -Wunused -Woverloaded-virtual -Wnon-virtual-dtor -std=c++17 -Weverything -Wno-c++98-compat-pedantic -Wno-unknown-warning-option -Wno-switch-enum -Wno-conversion -Wno-covered-switch-default -Wno-inconsistent-missing-destructor-override -Wno-float-equal -Wno-exit-time-destructors -Wno-global-constructors -Wno-weak-vtables -Wno-four-char-constants -Wno-padded -Wno-reserved-identifier -Wno-duplicate-enum -fomit-frame-pointer -DSDL_SUPPORT -D_GLIBCXX_USE_CXX11_ABI=1 -DUNIX -DBSPF_UNIX -DGUI_SUPPORT -DWINDOWED_SUPPORT -DSOUND_SUPPORT -DDEBUGGER_SUPPORT -DJOYSTICK_SUPPORT -DCHEATCODE_SUPPORT -DHTTP_LIB_SUPPORT -DPNG_SUPPORT -DZIP_SUPPORT -Isrc/emucore -Isrc/common -Isrc/common/tv_filters -Isrc/emucore/tia -Isrc/emucore/tia/frame-manager -Isrc/json -Isrc/common/repository/sqlite -I/usr/local/include -I/usr/local/include/SDL2 -I/usr/X11R6/include -D_REENTRANT -I/usr/X11R6/include -Isrc/unix -Isrc/gui -Isrc/debugger -Isrc/debugger/gui -Isrc/yacc -Isrc/cheat -Isrc/httplib -c src/gui/PlusRomsSetupDialog.cxx -o out/src/gui/PlusRomsSetupDialog.o In file included from src/gui/PlusRomsSetupDialog.cxx:18: In file included from src/emucore/OSystem.hxx:55: In file included from src/emucore/FSNode.hxx:23: src/common/bspf.hxx:245:37: warning: unsafe pointer arithmetic [-Wunsafe-buffer-usage] const auto pos = std::search(s1.cbegin()+startpos, s1.cend(), ~~~^~~~~~~~ src/common/bspf.hxx:249:56: warning: unsafe pointer arithmetic [-Wunsafe-buffer-usage] return pos == s1.cend() ? string::npos : pos - (s1.cbegin()+startpos); ~~~^~~~~~~~ In file included from src/gui/PlusRomsSetupDialog.cxx:18: In file included from src/emucore/OSystem.hxx:55: src/emucore/FSNode.hxx:513:31: warning: unsafe pointer arithmetic [-Wunsafe-buffer-usage] const char* cur = start + str.size() - 2; ~~~~~~^~~~~~~~~~~~ src/emucore/FSNode.hxx:512:19: warning: 'start' is an unsafe pointer used for buffer access [-Wunsafe-buffer-usage] const char* start = str.c_str(); ~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~ src/emucore/FSNode.hxx:513:25: note: used in pointer arithmetic here const char* cur = start + str.size() - 2; ^~~~~ src/emucore/FSNode.hxx:513:19: warning: 'cur' is an unsafe pointer used for buffer access [-Wunsafe-buffer-usage] const char* cur = start + str.size() - 2; ~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~ src/emucore/FSNode.hxx:518:14: note: used in pointer arithmetic here return cur + 1; ^~~ src/emucore/FSNode.hxx:516:11: note: used in pointer arithmetic here --cur; ^~~ In file included from src/gui/PlusRomsSetupDialog.cxx:19: In file included from src/emucore/EventHandler.hxx:38: In file included from src/common/PKeyboardHandler.hxx:30: In file included from src/common/KeyMap.hxx:24: In file included from src/common/StellaKeys.hxx:22: In file included from src/common/SDL_lib.hxx:34: In file included from /usr/local/include/SDL2/SDL.h:32: In file included from /usr/local/include/SDL2/SDL_main.h:25: /usr/local/include/SDL2/SDL_stdinc.h:544:13: warning: '_p' is an unsafe pointer used for buffer access [-Wunsafe-buffer-usage] Uint32 *_p = SDL_static_cast(Uint32 *, dst); ~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /usr/local/include/SDL2/SDL_stdinc.h:552:26: note: used in pointer arithmetic here case 2: *_p++ = _val; SDL_FALLTHROUGH; ^~ /usr/local/include/SDL2/SDL_stdinc.h:551:26: note: used in pointer arithmetic here case 3: *_p++ = _val; SDL_FALLTHROUGH; ^~ /usr/local/include/SDL2/SDL_stdinc.h:550:26: note: used in pointer arithmetic here case 0: do { *_p++ = _val; SDL_FALLTHROUGH; ^~ /usr/local/include/SDL2/SDL_stdinc.h:553:26: note: used in pointer arithmetic here case 1: *_p++ = _val; ^~ 6 warnings generated. mkdir -p -p src/gui/.deps mkdir -p -p out/src/gui c++ -MMD -MF "src/gui/.deps/PopUpWidget.d" -MQ "out/src/gui/PopUpWidget.o" -MP -O2 -pipe -I/usr/X11R6/include -I/usr/local/include -x c++ -Wall -Wextra -Wno-unused-parameter -Wno-multichar -Wunused -Woverloaded-virtual -Wnon-virtual-dtor -std=c++17 -Weverything -Wno-c++98-compat-pedantic -Wno-unknown-warning-option -Wno-switch-enum -Wno-conversion -Wno-covered-switch-default -Wno-inconsistent-missing-destructor-override -Wno-float-equal -Wno-exit-time-destructors -Wno-global-constructors -Wno-weak-vtables -Wno-four-char-constants -Wno-padded -Wno-reserved-identifier -Wno-duplicate-enum -fomit-frame-pointer -DSDL_SUPPORT -D_GLIBCXX_USE_CXX11_ABI=1 -DUNIX -DBSPF_UNIX -DGUI_SUPPORT -DWINDOWED_SUPPORT -DSOUND_SUPPORT -DDEBUGGER_SUPPORT -DJOYSTICK_SUPPORT -DCHEATCODE_SUPPORT -DHTTP_LIB_SUPPORT -DPNG_SUPPORT -DZIP_SUPPORT -Isrc/emucore -Isrc/common -Isrc/common/tv_filters -Isrc/emucore/tia -Isrc/emucore/tia/frame-manager -Isrc/json -Isrc/common/repository/sqlite -I/usr/local/include -I/usr/local/include/SDL2 -I/usr/X11R6/include -D_REENTRANT -I/usr/X11R6/include -Isrc/unix -Isrc/gui -Isrc/debugger -Isrc/debugger/gui -Isrc/yacc -Isrc/cheat -Isrc/httplib -c src/gui/PopUpWidget.cxx -o out/src/gui/PopUpWidget.o In file included from src/gui/PopUpWidget.cxx:18: src/common/bspf.hxx:245:37: warning: unsafe pointer arithmetic [-Wunsafe-buffer-usage] const auto pos = std::search(s1.cbegin()+startpos, s1.cend(), ~~~^~~~~~~~ src/common/bspf.hxx:249:56: warning: unsafe pointer arithmetic [-Wunsafe-buffer-usage] return pos == s1.cend() ? string::npos : pos - (s1.cbegin()+startpos); ~~~^~~~~~~~ In file included from src/gui/PopUpWidget.cxx:22: In file included from src/gui/ContextMenu.hxx:23: In file included from src/gui/Dialog.hxx:31: In file included from src/gui/Widget.hxx:33: In file included from src/common/StellaKeys.hxx:22: In file included from src/common/SDL_lib.hxx:34: In file included from /usr/local/include/SDL2/SDL.h:32: In file included from /usr/local/include/SDL2/SDL_main.h:25: /usr/local/include/SDL2/SDL_stdinc.h:544:13: warning: '_p' is an unsafe pointer used for buffer access [-Wunsafe-buffer-usage] Uint32 *_p = SDL_static_cast(Uint32 *, dst); ~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /usr/local/include/SDL2/SDL_stdinc.h:550:26: note: used in pointer arithmetic here case 0: do { *_p++ = _val; SDL_FALLTHROUGH; ^~ /usr/local/include/SDL2/SDL_stdinc.h:553:26: note: used in pointer arithmetic here case 1: *_p++ = _val; ^~ /usr/local/include/SDL2/SDL_stdinc.h:551:26: note: used in pointer arithmetic here case 3: *_p++ = _val; SDL_FALLTHROUGH; ^~ /usr/local/include/SDL2/SDL_stdinc.h:552:26: note: used in pointer arithmetic here case 2: *_p++ = _val; SDL_FALLTHROUGH; ^~ 3 warnings generated. mkdir -p -p src/gui/.deps mkdir -p -p out/src/gui c++ -MMD -MF "src/gui/.deps/ProgressDialog.d" -MQ "out/src/gui/ProgressDialog.o" -MP -O2 -pipe -I/usr/X11R6/include -I/usr/local/include -x c++ -Wall -Wextra -Wno-unused-parameter -Wno-multichar -Wunused -Woverloaded-virtual -Wnon-virtual-dtor -std=c++17 -Weverything -Wno-c++98-compat-pedantic -Wno-unknown-warning-option -Wno-switch-enum -Wno-conversion -Wno-covered-switch-default -Wno-inconsistent-missing-destructor-override -Wno-float-equal -Wno-exit-time-destructors -Wno-global-constructors -Wno-weak-vtables -Wno-four-char-constants -Wno-padded -Wno-reserved-identifier -Wno-duplicate-enum -fomit-frame-pointer -DSDL_SUPPORT -D_GLIBCXX_USE_CXX11_ABI=1 -DUNIX -DBSPF_UNIX -DGUI_SUPPORT -DWINDOWED_SUPPORT -DSOUND_SUPPORT -DDEBUGGER_SUPPORT -DJOYSTICK_SUPPORT -DCHEATCODE_SUPPORT -DHTTP_LIB_SUPPORT -DPNG_SUPPORT -DZIP_SUPPORT -Isrc/emucore -Isrc/common -Isrc/common/tv_filters -Isrc/emucore/tia -Isrc/emucore/tia/frame-manager -Isrc/json -Isrc/common/repository/sqlite -I/usr/local/include -I/usr/local/include/SDL2 -I/usr/X11R6/include -D_REENTRANT -I/usr/X11R6/include -Isrc/unix -Isrc/gui -Isrc/debugger -Isrc/debugger/gui -Isrc/yacc -Isrc/cheat -Isrc/httplib -c src/gui/ProgressDialog.cxx -o out/src/gui/ProgressDialog.o In file included from src/gui/ProgressDialog.cxx:18: src/common/bspf.hxx:245:37: warning: unsafe pointer arithmetic [-Wunsafe-buffer-usage] const auto pos = std::search(s1.cbegin()+startpos, s1.cend(), ~~~^~~~~~~~ src/common/bspf.hxx:249:56: warning: unsafe pointer arithmetic [-Wunsafe-buffer-usage] return pos == s1.cend() ? string::npos : pos - (s1.cbegin()+startpos); ~~~^~~~~~~~ In file included from src/gui/ProgressDialog.cxx:19: In file included from src/emucore/OSystem.hxx:55: src/emucore/FSNode.hxx:513:31: warning: unsafe pointer arithmetic [-Wunsafe-buffer-usage] const char* cur = start + str.size() - 2; ~~~~~~^~~~~~~~~~~~ src/emucore/FSNode.hxx:512:19: warning: 'start' is an unsafe pointer used for buffer access [-Wunsafe-buffer-usage] const char* start = str.c_str(); ~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~ src/emucore/FSNode.hxx:513:25: note: used in pointer arithmetic here const char* cur = start + str.size() - 2; ^~~~~ src/emucore/FSNode.hxx:513:19: warning: 'cur' is an unsafe pointer used for buffer access [-Wunsafe-buffer-usage] const char* cur = start + str.size() - 2; ~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~ src/emucore/FSNode.hxx:518:14: note: used in pointer arithmetic here return cur + 1; ^~~ src/emucore/FSNode.hxx:516:11: note: used in pointer arithmetic here --cur; ^~~ In file included from src/gui/ProgressDialog.cxx:21: In file included from src/emucore/EventHandler.hxx:38: In file included from src/common/PKeyboardHandler.hxx:30: In file included from src/common/KeyMap.hxx:24: In file included from src/common/StellaKeys.hxx:22: In file included from src/common/SDL_lib.hxx:34: In file included from /usr/local/include/SDL2/SDL.h:32: In file included from /usr/local/include/SDL2/SDL_main.h:25: /usr/local/include/SDL2/SDL_stdinc.h:544:13: warning: '_p' is an unsafe pointer used for buffer access [-Wunsafe-buffer-usage] Uint32 *_p = SDL_static_cast(Uint32 *, dst); ~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /usr/local/include/SDL2/SDL_stdinc.h:553:26: note: used in pointer arithmetic here case 1: *_p++ = _val; ^~ /usr/local/include/SDL2/SDL_stdinc.h:552:26: note: used in pointer arithmetic here case 2: *_p++ = _val; SDL_FALLTHROUGH; ^~ /usr/local/include/SDL2/SDL_stdinc.h:550:26: note: used in pointer arithmetic here case 0: do { *_p++ = _val; SDL_FALLTHROUGH; ^~ /usr/local/include/SDL2/SDL_stdinc.h:551:26: note: used in pointer arithmetic here case 3: *_p++ = _val; SDL_FALLTHROUGH; ^~ 6 warnings generated. mkdir -p -p src/gui/.deps mkdir -p -p out/src/gui c++ -MMD -MF "src/gui/.deps/QuadTariDialog.d" -MQ "out/src/gui/QuadTariDialog.o" -MP -O2 -pipe -I/usr/X11R6/include -I/usr/local/include -x c++ -Wall -Wextra -Wno-unused-parameter -Wno-multichar -Wunused -Woverloaded-virtual -Wnon-virtual-dtor -std=c++17 -Weverything -Wno-c++98-compat-pedantic -Wno-unknown-warning-option -Wno-switch-enum -Wno-conversion -Wno-covered-switch-default -Wno-inconsistent-missing-destructor-override -Wno-float-equal -Wno-exit-time-destructors -Wno-global-constructors -Wno-weak-vtables -Wno-four-char-constants -Wno-padded -Wno-reserved-identifier -Wno-duplicate-enum -fomit-frame-pointer -DSDL_SUPPORT -D_GLIBCXX_USE_CXX11_ABI=1 -DUNIX -DBSPF_UNIX -DGUI_SUPPORT -DWINDOWED_SUPPORT -DSOUND_SUPPORT -DDEBUGGER_SUPPORT -DJOYSTICK_SUPPORT -DCHEATCODE_SUPPORT -DHTTP_LIB_SUPPORT -DPNG_SUPPORT -DZIP_SUPPORT -Isrc/emucore -Isrc/common -Isrc/common/tv_filters -Isrc/emucore/tia -Isrc/emucore/tia/frame-manager -Isrc/json -Isrc/common/repository/sqlite -I/usr/local/include -I/usr/local/include/SDL2 -I/usr/X11R6/include -D_REENTRANT -I/usr/X11R6/include -Isrc/unix -Isrc/gui -Isrc/debugger -Isrc/debugger/gui -Isrc/yacc -Isrc/cheat -Isrc/httplib -c src/gui/QuadTariDialog.cxx -o out/src/gui/QuadTariDialog.o In file included from src/gui/QuadTariDialog.cxx:18: In file included from src/emucore/OSystem.hxx:55: In file included from src/emucore/FSNode.hxx:23: src/common/bspf.hxx:245:37: warning: unsafe pointer arithmetic [-Wunsafe-buffer-usage] const auto pos = std::search(s1.cbegin()+startpos, s1.cend(), ~~~^~~~~~~~ src/common/bspf.hxx:249:56: warning: unsafe pointer arithmetic [-Wunsafe-buffer-usage] return pos == s1.cend() ? string::npos : pos - (s1.cbegin()+startpos); ~~~^~~~~~~~ In file included from src/gui/QuadTariDialog.cxx:18: In file included from src/emucore/OSystem.hxx:55: src/emucore/FSNode.hxx:513:31: warning: unsafe pointer arithmetic [-Wunsafe-buffer-usage] const char* cur = start + str.size() - 2; ~~~~~~^~~~~~~~~~~~ src/emucore/FSNode.hxx:512:19: warning: 'start' is an unsafe pointer used for buffer access [-Wunsafe-buffer-usage] const char* start = str.c_str(); ~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~ src/emucore/FSNode.hxx:513:25: note: used in pointer arithmetic here const char* cur = start + str.size() - 2; ^~~~~ src/emucore/FSNode.hxx:513:19: warning: 'cur' is an unsafe pointer used for buffer access [-Wunsafe-buffer-usage] const char* cur = start + str.size() - 2; ~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~ src/emucore/FSNode.hxx:518:14: note: used in pointer arithmetic here return cur + 1; ^~~ src/emucore/FSNode.hxx:516:11: note: used in pointer arithmetic here --cur; ^~~ In file included from src/gui/QuadTariDialog.cxx:19: In file included from src/emucore/EventHandler.hxx:38: In file included from src/common/PKeyboardHandler.hxx:30: In file included from src/common/KeyMap.hxx:24: In file included from src/common/StellaKeys.hxx:22: In file included from src/common/SDL_lib.hxx:34: In file included from /usr/local/include/SDL2/SDL.h:32: In file included from /usr/local/include/SDL2/SDL_main.h:25: /usr/local/include/SDL2/SDL_stdinc.h:544:13: warning: '_p' is an unsafe pointer used for buffer access [-Wunsafe-buffer-usage] Uint32 *_p = SDL_static_cast(Uint32 *, dst); ~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /usr/local/include/SDL2/SDL_stdinc.h:553:26: note: used in pointer arithmetic here case 1: *_p++ = _val; ^~ /usr/local/include/SDL2/SDL_stdinc.h:552:26: note: used in pointer arithmetic here case 2: *_p++ = _val; SDL_FALLTHROUGH; ^~ /usr/local/include/SDL2/SDL_stdinc.h:551:26: note: used in pointer arithmetic here case 3: *_p++ = _val; SDL_FALLTHROUGH; ^~ /usr/local/include/SDL2/SDL_stdinc.h:550:26: note: used in pointer arithmetic here case 0: do { *_p++ = _val; SDL_FALLTHROUGH; ^~ 6 warnings generated. mkdir -p -p src/gui/.deps mkdir -p -p out/src/gui c++ -MMD -MF "src/gui/.deps/R77HelpDialog.d" -MQ "out/src/gui/R77HelpDialog.o" -MP -O2 -pipe -I/usr/X11R6/include -I/usr/local/include -x c++ -Wall -Wextra -Wno-unused-parameter -Wno-multichar -Wunused -Woverloaded-virtual -Wnon-virtual-dtor -std=c++17 -Weverything -Wno-c++98-compat-pedantic -Wno-unknown-warning-option -Wno-switch-enum -Wno-conversion -Wno-covered-switch-default -Wno-inconsistent-missing-destructor-override -Wno-float-equal -Wno-exit-time-destructors -Wno-global-constructors -Wno-weak-vtables -Wno-four-char-constants -Wno-padded -Wno-reserved-identifier -Wno-duplicate-enum -fomit-frame-pointer -DSDL_SUPPORT -D_GLIBCXX_USE_CXX11_ABI=1 -DUNIX -DBSPF_UNIX -DGUI_SUPPORT -DWINDOWED_SUPPORT -DSOUND_SUPPORT -DDEBUGGER_SUPPORT -DJOYSTICK_SUPPORT -DCHEATCODE_SUPPORT -DHTTP_LIB_SUPPORT -DPNG_SUPPORT -DZIP_SUPPORT -Isrc/emucore -Isrc/common -Isrc/common/tv_filters -Isrc/emucore/tia -Isrc/emucore/tia/frame-manager -Isrc/json -Isrc/common/repository/sqlite -I/usr/local/include -I/usr/local/include/SDL2 -I/usr/X11R6/include -D_REENTRANT -I/usr/X11R6/include -Isrc/unix -Isrc/gui -Isrc/debugger -Isrc/debugger/gui -Isrc/yacc -Isrc/cheat -Isrc/httplib -c src/gui/R77HelpDialog.cxx -o out/src/gui/R77HelpDialog.o In file included from src/gui/R77HelpDialog.cxx:18: src/common/bspf.hxx:245:37: warning: unsafe pointer arithmetic [-Wunsafe-buffer-usage] const auto pos = std::search(s1.cbegin()+startpos, s1.cend(), ~~~^~~~~~~~ src/common/bspf.hxx:249:56: warning: unsafe pointer arithmetic [-Wunsafe-buffer-usage] return pos == s1.cend() ? string::npos : pos - (s1.cbegin()+startpos); ~~~^~~~~~~~ In file included from src/gui/R77HelpDialog.cxx:19: In file included from src/gui/Dialog.hxx:31: In file included from src/gui/Widget.hxx:33: In file included from src/common/StellaKeys.hxx:22: In file included from src/common/SDL_lib.hxx:34: In file included from /usr/local/include/SDL2/SDL.h:32: In file included from /usr/local/include/SDL2/SDL_main.h:25: /usr/local/include/SDL2/SDL_stdinc.h:544:13: warning: '_p' is an unsafe pointer used for buffer access [-Wunsafe-buffer-usage] Uint32 *_p = SDL_static_cast(Uint32 *, dst); ~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /usr/local/include/SDL2/SDL_stdinc.h:551:26: note: used in pointer arithmetic here case 3: *_p++ = _val; SDL_FALLTHROUGH; ^~ /usr/local/include/SDL2/SDL_stdinc.h:550:26: note: used in pointer arithmetic here case 0: do { *_p++ = _val; SDL_FALLTHROUGH; ^~ /usr/local/include/SDL2/SDL_stdinc.h:552:26: note: used in pointer arithmetic here case 2: *_p++ = _val; SDL_FALLTHROUGH; ^~ /usr/local/include/SDL2/SDL_stdinc.h:553:26: note: used in pointer arithmetic here case 1: *_p++ = _val; ^~ src/gui/R77HelpDialog.cxx:192:15: warning: 'str' is an unsafe pointer used for buffer access [-Wunsafe-buffer-usage] const char* str = label.c_str(); ~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~ src/gui/R77HelpDialog.cxx:213:17: note: used in buffer access here switch (str[2]) ^~~ src/gui/R77HelpDialog.cxx:242:5: note: used in pointer arithmetic here str += 2; ^~~ src/gui/R77HelpDialog.cxx:198:13: note: used in buffer access here switch (str[1]) ^~~ src/gui/R77HelpDialog.cxx:236:9: note: used in pointer arithmetic here str++; ^~~ 4 warnings generated. mkdir -p -p src/gui/.deps mkdir -p -p out/src/gui c++ -MMD -MF "src/gui/.deps/RadioButtonWidget.d" -MQ "out/src/gui/RadioButtonWidget.o" -MP -O2 -pipe -I/usr/X11R6/include -I/usr/local/include -x c++ -Wall -Wextra -Wno-unused-parameter -Wno-multichar -Wunused -Woverloaded-virtual -Wnon-virtual-dtor -std=c++17 -Weverything -Wno-c++98-compat-pedantic -Wno-unknown-warning-option -Wno-switch-enum -Wno-conversion -Wno-covered-switch-default -Wno-inconsistent-missing-destructor-override -Wno-float-equal -Wno-exit-time-destructors -Wno-global-constructors -Wno-weak-vtables -Wno-four-char-constants -Wno-padded -Wno-reserved-identifier -Wno-duplicate-enum -fomit-frame-pointer -DSDL_SUPPORT -D_GLIBCXX_USE_CXX11_ABI=1 -DUNIX -DBSPF_UNIX -DGUI_SUPPORT -DWINDOWED_SUPPORT -DSOUND_SUPPORT -DDEBUGGER_SUPPORT -DJOYSTICK_SUPPORT -DCHEATCODE_SUPPORT -DHTTP_LIB_SUPPORT -DPNG_SUPPORT -DZIP_SUPPORT -Isrc/emucore -Isrc/common -Isrc/common/tv_filters -Isrc/emucore/tia -Isrc/emucore/tia/frame-manager -Isrc/json -Isrc/common/repository/sqlite -I/usr/local/include -I/usr/local/include/SDL2 -I/usr/X11R6/include -D_REENTRANT -I/usr/X11R6/include -Isrc/unix -Isrc/gui -Isrc/debugger -Isrc/debugger/gui -Isrc/yacc -Isrc/cheat -Isrc/httplib -c src/gui/RadioButtonWidget.cxx -o out/src/gui/RadioButtonWidget.o In file included from src/gui/RadioButtonWidget.cxx:18: In file included from src/emucore/FBSurface.hxx:31: In file included from src/emucore/FrameBufferConstants.hxx:21: In file included from src/emucore/tia/TIAConstants.hxx:21: src/common/bspf.hxx:245:37: warning: unsafe pointer arithmetic [-Wunsafe-buffer-usage] const auto pos = std::search(s1.cbegin()+startpos, s1.cend(), ~~~^~~~~~~~ src/common/bspf.hxx:249:56: warning: unsafe pointer arithmetic [-Wunsafe-buffer-usage] return pos == s1.cend() ? string::npos : pos - (s1.cbegin()+startpos); ~~~^~~~~~~~ In file included from src/gui/RadioButtonWidget.cxx:20: In file included from src/gui/Dialog.hxx:31: In file included from src/gui/Widget.hxx:33: In file included from src/common/StellaKeys.hxx:22: In file included from src/common/SDL_lib.hxx:34: In file included from /usr/local/include/SDL2/SDL.h:32: In file included from /usr/local/include/SDL2/SDL_main.h:25: /usr/local/include/SDL2/SDL_stdinc.h:544:13: warning: '_p' is an unsafe pointer used for buffer access [-Wunsafe-buffer-usage] Uint32 *_p = SDL_static_cast(Uint32 *, dst); ~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /usr/local/include/SDL2/SDL_stdinc.h:552:26: note: used in pointer arithmetic here case 2: *_p++ = _val; SDL_FALLTHROUGH; ^~ /usr/local/include/SDL2/SDL_stdinc.h:553:26: note: used in pointer arithmetic here case 1: *_p++ = _val; ^~ /usr/local/include/SDL2/SDL_stdinc.h:551:26: note: used in pointer arithmetic here case 3: *_p++ = _val; SDL_FALLTHROUGH; ^~ /usr/local/include/SDL2/SDL_stdinc.h:550:26: note: used in pointer arithmetic here case 0: do { *_p++ = _val; SDL_FALLTHROUGH; ^~ 3 warnings generated. mkdir -p -p src/gui/.deps mkdir -p -p out/src/gui c++ -MMD -MF "src/gui/.deps/RomAuditDialog.d" -MQ "out/src/gui/RomAuditDialog.o" -MP -O2 -pipe -I/usr/X11R6/include -I/usr/local/include -x c++ -Wall -Wextra -Wno-unused-parameter -Wno-multichar -Wunused -Woverloaded-virtual -Wnon-virtual-dtor -std=c++17 -Weverything -Wno-c++98-compat-pedantic -Wno-unknown-warning-option -Wno-switch-enum -Wno-conversion -Wno-covered-switch-default -Wno-inconsistent-missing-destructor-override -Wno-float-equal -Wno-exit-time-destructors -Wno-global-constructors -Wno-weak-vtables -Wno-four-char-constants -Wno-padded -Wno-reserved-identifier -Wno-duplicate-enum -fomit-frame-pointer -DSDL_SUPPORT -D_GLIBCXX_USE_CXX11_ABI=1 -DUNIX -DBSPF_UNIX -DGUI_SUPPORT -DWINDOWED_SUPPORT -DSOUND_SUPPORT -DDEBUGGER_SUPPORT -DJOYSTICK_SUPPORT -DCHEATCODE_SUPPORT -DHTTP_LIB_SUPPORT -DPNG_SUPPORT -DZIP_SUPPORT -Isrc/emucore -Isrc/common -Isrc/common/tv_filters -Isrc/emucore/tia -Isrc/emucore/tia/frame-manager -Isrc/json -Isrc/common/repository/sqlite -I/usr/local/include -I/usr/local/include/SDL2 -I/usr/X11R6/include -D_REENTRANT -I/usr/X11R6/include -Isrc/unix -Isrc/gui -Isrc/debugger -Isrc/debugger/gui -Isrc/yacc -Isrc/cheat -Isrc/httplib -c src/gui/RomAuditDialog.cxx -o out/src/gui/RomAuditDialog.o In file included from src/gui/RomAuditDialog.cxx:18: src/common/bspf.hxx:245:37: warning: unsafe pointer arithmetic [-Wunsafe-buffer-usage] const auto pos = std::search(s1.cbegin()+startpos, s1.cend(), ~~~^~~~~~~~ src/common/bspf.hxx:249:56: warning: unsafe pointer arithmetic [-Wunsafe-buffer-usage] return pos == s1.cend() ? string::npos : pos - (s1.cbegin()+startpos); ~~~^~~~~~~~ In file included from src/gui/RomAuditDialog.cxx:19: In file included from src/gui/Launcher.hxx:27: In file included from src/gui/DialogContainer.hxx:26: In file included from src/common/StellaKeys.hxx:22: In file included from src/common/SDL_lib.hxx:34: In file included from /usr/local/include/SDL2/SDL.h:32: In file included from /usr/local/include/SDL2/SDL_main.h:25: /usr/local/include/SDL2/SDL_stdinc.h:544:13: warning: '_p' is an unsafe pointer used for buffer access [-Wunsafe-buffer-usage] Uint32 *_p = SDL_static_cast(Uint32 *, dst); ~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /usr/local/include/SDL2/SDL_stdinc.h:551:26: note: used in pointer arithmetic here case 3: *_p++ = _val; SDL_FALLTHROUGH; ^~ /usr/local/include/SDL2/SDL_stdinc.h:553:26: note: used in pointer arithmetic here case 1: *_p++ = _val; ^~ /usr/local/include/SDL2/SDL_stdinc.h:552:26: note: used in pointer arithmetic here case 2: *_p++ = _val; SDL_FALLTHROUGH; ^~ /usr/local/include/SDL2/SDL_stdinc.h:550:26: note: used in pointer arithmetic here case 0: do { *_p++ = _val; SDL_FALLTHROUGH; ^~ In file included from src/gui/RomAuditDialog.cxx:20: In file included from src/emucore/Bankswitch.hxx:23: src/emucore/FSNode.hxx:513:31: warning: unsafe pointer arithmetic [-Wunsafe-buffer-usage] const char* cur = start + str.size() - 2; ~~~~~~^~~~~~~~~~~~ src/emucore/FSNode.hxx:512:19: warning: 'start' is an unsafe pointer used for buffer access [-Wunsafe-buffer-usage] const char* start = str.c_str(); ~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~ src/emucore/FSNode.hxx:513:25: note: used in pointer arithmetic here const char* cur = start + str.size() - 2; ^~~~~ src/emucore/FSNode.hxx:513:19: warning: 'cur' is an unsafe pointer used for buffer access [-Wunsafe-buffer-usage] const char* cur = start + str.size() - 2; ~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~ src/emucore/FSNode.hxx:516:11: note: used in pointer arithmetic here --cur; ^~~ src/emucore/FSNode.hxx:518:14: note: used in pointer arithmetic here return cur + 1; ^~~ 6 warnings generated. mkdir -p -p src/gui/.deps mkdir -p -p out/src/gui c++ -MMD -MF "src/gui/.deps/RomInfoWidget.d" -MQ "out/src/gui/RomInfoWidget.o" -MP -O2 -pipe -I/usr/X11R6/include -I/usr/local/include -x c++ -Wall -Wextra -Wno-unused-parameter -Wno-multichar -Wunused -Woverloaded-virtual -Wnon-virtual-dtor -std=c++17 -Weverything -Wno-c++98-compat-pedantic -Wno-unknown-warning-option -Wno-switch-enum -Wno-conversion -Wno-covered-switch-default -Wno-inconsistent-missing-destructor-override -Wno-float-equal -Wno-exit-time-destructors -Wno-global-constructors -Wno-weak-vtables -Wno-four-char-constants -Wno-padded -Wno-reserved-identifier -Wno-duplicate-enum -fomit-frame-pointer -DSDL_SUPPORT -D_GLIBCXX_USE_CXX11_ABI=1 -DUNIX -DBSPF_UNIX -DGUI_SUPPORT -DWINDOWED_SUPPORT -DSOUND_SUPPORT -DDEBUGGER_SUPPORT -DJOYSTICK_SUPPORT -DCHEATCODE_SUPPORT -DHTTP_LIB_SUPPORT -DPNG_SUPPORT -DZIP_SUPPORT -Isrc/emucore -Isrc/common -Isrc/common/tv_filters -Isrc/emucore/tia -Isrc/emucore/tia/frame-manager -Isrc/json -Isrc/common/repository/sqlite -I/usr/local/include -I/usr/local/include/SDL2 -I/usr/X11R6/include -D_REENTRANT -I/usr/X11R6/include -Isrc/unix -Isrc/gui -Isrc/debugger -Isrc/debugger/gui -Isrc/yacc -Isrc/cheat -Isrc/httplib -c src/gui/RomInfoWidget.cxx -o out/src/gui/RomInfoWidget.o In file included from src/gui/RomInfoWidget.cxx:18: In file included from src/emucore/EventHandler.hxx:35: In file included from src/emucore/Event.hxx:24: src/common/bspf.hxx:245:37: warning: unsafe pointer arithmetic [-Wunsafe-buffer-usage] const auto pos = std::search(s1.cbegin()+startpos, s1.cend(), ~~~^~~~~~~~ src/common/bspf.hxx:249:56: warning: unsafe pointer arithmetic [-Wunsafe-buffer-usage] return pos == s1.cend() ? string::npos : pos - (s1.cbegin()+startpos); ~~~^~~~~~~~ In file included from src/gui/RomInfoWidget.cxx:18: In file included from src/emucore/EventHandler.hxx:38: In file included from src/common/PKeyboardHandler.hxx:30: In file included from src/common/KeyMap.hxx:24: In file included from src/common/StellaKeys.hxx:22: In file included from src/common/SDL_lib.hxx:34: In file included from /usr/local/include/SDL2/SDL.h:32: In file included from /usr/local/include/SDL2/SDL_main.h:25: /usr/local/include/SDL2/SDL_stdinc.h:544:13: warning: '_p' is an unsafe pointer used for buffer access [-Wunsafe-buffer-usage] Uint32 *_p = SDL_static_cast(Uint32 *, dst); ~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /usr/local/include/SDL2/SDL_stdinc.h:550:26: note: used in pointer arithmetic here case 0: do { *_p++ = _val; SDL_FALLTHROUGH; ^~ /usr/local/include/SDL2/SDL_stdinc.h:552:26: note: used in pointer arithmetic here case 2: *_p++ = _val; SDL_FALLTHROUGH; ^~ /usr/local/include/SDL2/SDL_stdinc.h:553:26: note: used in pointer arithmetic here case 1: *_p++ = _val; ^~ /usr/local/include/SDL2/SDL_stdinc.h:551:26: note: used in pointer arithmetic here case 3: *_p++ = _val; SDL_FALLTHROUGH; ^~ In file included from src/gui/RomInfoWidget.cxx:23: In file included from src/emucore/OSystem.hxx:55: src/emucore/FSNode.hxx:513:31: warning: unsafe pointer arithmetic [-Wunsafe-buffer-usage] const char* cur = start + str.size() - 2; ~~~~~~^~~~~~~~~~~~ src/emucore/FSNode.hxx:512:19: warning: 'start' is an unsafe pointer used for buffer access [-Wunsafe-buffer-usage] const char* start = str.c_str(); ~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~ src/emucore/FSNode.hxx:513:25: note: used in pointer arithmetic here const char* cur = start + str.size() - 2; ^~~~~ src/emucore/FSNode.hxx:513:19: warning: 'cur' is an unsafe pointer used for buffer access [-Wunsafe-buffer-usage] const char* cur = start + str.size() - 2; ~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~ src/emucore/FSNode.hxx:516:11: note: used in pointer arithmetic here --cur; ^~~ src/emucore/FSNode.hxx:518:14: note: used in pointer arithmetic here return cur + 1; ^~~ 6 warnings generated. mkdir -p -p src/gui/.deps mkdir -p -p out/src/gui c++ -MMD -MF "src/gui/.deps/ScrollBarWidget.d" -MQ "out/src/gui/ScrollBarWidget.o" -MP -O2 -pipe -I/usr/X11R6/include -I/usr/local/include -x c++ -Wall -Wextra -Wno-unused-parameter -Wno-multichar -Wunused -Woverloaded-virtual -Wnon-virtual-dtor -std=c++17 -Weverything -Wno-c++98-compat-pedantic -Wno-unknown-warning-option -Wno-switch-enum -Wno-conversion -Wno-covered-switch-default -Wno-inconsistent-missing-destructor-override -Wno-float-equal -Wno-exit-time-destructors -Wno-global-constructors -Wno-weak-vtables -Wno-four-char-constants -Wno-padded -Wno-reserved-identifier -Wno-duplicate-enum -fomit-frame-pointer -DSDL_SUPPORT -D_GLIBCXX_USE_CXX11_ABI=1 -DUNIX -DBSPF_UNIX -DGUI_SUPPORT -DWINDOWED_SUPPORT -DSOUND_SUPPORT -DDEBUGGER_SUPPORT -DJOYSTICK_SUPPORT -DCHEATCODE_SUPPORT -DHTTP_LIB_SUPPORT -DPNG_SUPPORT -DZIP_SUPPORT -Isrc/emucore -Isrc/common -Isrc/common/tv_filters -Isrc/emucore/tia -Isrc/emucore/tia/frame-manager -Isrc/json -Isrc/common/repository/sqlite -I/usr/local/include -I/usr/local/include/SDL2 -I/usr/X11R6/include -D_REENTRANT -I/usr/X11R6/include -Isrc/unix -Isrc/gui -Isrc/debugger -Isrc/debugger/gui -Isrc/yacc -Isrc/cheat -Isrc/httplib -c src/gui/ScrollBarWidget.cxx -o out/src/gui/ScrollBarWidget.o In file included from src/gui/ScrollBarWidget.cxx:18: In file included from src/emucore/OSystem.hxx:55: In file included from src/emucore/FSNode.hxx:23: src/common/bspf.hxx:245:37: warning: unsafe pointer arithmetic [-Wunsafe-buffer-usage] const auto pos = std::search(s1.cbegin()+startpos, s1.cend(), ~~~^~~~~~~~ src/common/bspf.hxx:249:56: warning: unsafe pointer arithmetic [-Wunsafe-buffer-usage] return pos == s1.cend() ? string::npos : pos - (s1.cbegin()+startpos); ~~~^~~~~~~~ In file included from src/gui/ScrollBarWidget.cxx:18: In file included from src/emucore/OSystem.hxx:55: src/emucore/FSNode.hxx:513:31: warning: unsafe pointer arithmetic [-Wunsafe-buffer-usage] const char* cur = start + str.size() - 2; ~~~~~~^~~~~~~~~~~~ src/emucore/FSNode.hxx:512:19: warning: 'start' is an unsafe pointer used for buffer access [-Wunsafe-buffer-usage] const char* start = str.c_str(); ~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~ src/emucore/FSNode.hxx:513:25: note: used in pointer arithmetic here const char* cur = start + str.size() - 2; ^~~~~ src/emucore/FSNode.hxx:513:19: warning: 'cur' is an unsafe pointer used for buffer access [-Wunsafe-buffer-usage] const char* cur = start + str.size() - 2; ~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~ src/emucore/FSNode.hxx:518:14: note: used in pointer arithmetic here return cur + 1; ^~~ src/emucore/FSNode.hxx:516:11: note: used in pointer arithmetic here --cur; ^~~ In file included from src/gui/ScrollBarWidget.cxx:19: In file included from src/gui/Dialog.hxx:31: In file included from src/gui/Widget.hxx:33: In file included from src/common/StellaKeys.hxx:22: In file included from src/common/SDL_lib.hxx:34: In file included from /usr/local/include/SDL2/SDL.h:32: In file included from /usr/local/include/SDL2/SDL_main.h:25: /usr/local/include/SDL2/SDL_stdinc.h:544:13: warning: '_p' is an unsafe pointer used for buffer access [-Wunsafe-buffer-usage] Uint32 *_p = SDL_static_cast(Uint32 *, dst); ~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /usr/local/include/SDL2/SDL_stdinc.h:551:26: note: used in pointer arithmetic here case 3: *_p++ = _val; SDL_FALLTHROUGH; ^~ /usr/local/include/SDL2/SDL_stdinc.h:552:26: note: used in pointer arithmetic here case 2: *_p++ = _val; SDL_FALLTHROUGH; ^~ /usr/local/include/SDL2/SDL_stdinc.h:553:26: note: used in pointer arithmetic here case 1: *_p++ = _val; ^~ /usr/local/include/SDL2/SDL_stdinc.h:550:26: note: used in pointer arithmetic here case 0: do { *_p++ = _val; SDL_FALLTHROUGH; ^~ 6 warnings generated. mkdir -p -p src/gui/.deps mkdir -p -p out/src/gui c++ -MMD -MF "src/gui/.deps/SnapshotDialog.d" -MQ "out/src/gui/SnapshotDialog.o" -MP -O2 -pipe -I/usr/X11R6/include -I/usr/local/include -x c++ -Wall -Wextra -Wno-unused-parameter -Wno-multichar -Wunused -Woverloaded-virtual -Wnon-virtual-dtor -std=c++17 -Weverything -Wno-c++98-compat-pedantic -Wno-unknown-warning-option -Wno-switch-enum -Wno-conversion -Wno-covered-switch-default -Wno-inconsistent-missing-destructor-override -Wno-float-equal -Wno-exit-time-destructors -Wno-global-constructors -Wno-weak-vtables -Wno-four-char-constants -Wno-padded -Wno-reserved-identifier -Wno-duplicate-enum -fomit-frame-pointer -DSDL_SUPPORT -D_GLIBCXX_USE_CXX11_ABI=1 -DUNIX -DBSPF_UNIX -DGUI_SUPPORT -DWINDOWED_SUPPORT -DSOUND_SUPPORT -DDEBUGGER_SUPPORT -DJOYSTICK_SUPPORT -DCHEATCODE_SUPPORT -DHTTP_LIB_SUPPORT -DPNG_SUPPORT -DZIP_SUPPORT -Isrc/emucore -Isrc/common -Isrc/common/tv_filters -Isrc/emucore/tia -Isrc/emucore/tia/frame-manager -Isrc/json -Isrc/common/repository/sqlite -I/usr/local/include -I/usr/local/include/SDL2 -I/usr/X11R6/include -D_REENTRANT -I/usr/X11R6/include -Isrc/unix -Isrc/gui -Isrc/debugger -Isrc/debugger/gui -Isrc/yacc -Isrc/cheat -Isrc/httplib -c src/gui/SnapshotDialog.cxx -o out/src/gui/SnapshotDialog.o In file included from src/gui/SnapshotDialog.cxx:18: src/common/bspf.hxx:245:37: warning: unsafe pointer arithmetic [-Wunsafe-buffer-usage] const auto pos = std::search(s1.cbegin()+startpos, s1.cend(), ~~~^~~~~~~~ src/common/bspf.hxx:249:56: warning: unsafe pointer arithmetic [-Wunsafe-buffer-usage] return pos == s1.cend() ? string::npos : pos - (s1.cbegin()+startpos); ~~~^~~~~~~~ In file included from src/gui/SnapshotDialog.cxx:19: In file included from src/gui/BrowserDialog.hxx:28: In file included from src/gui/Dialog.hxx:31: In file included from src/gui/Widget.hxx:33: In file included from src/common/StellaKeys.hxx:22: In file included from src/common/SDL_lib.hxx:34: In file included from /usr/local/include/SDL2/SDL.h:32: In file included from /usr/local/include/SDL2/SDL_main.h:25: /usr/local/include/SDL2/SDL_stdinc.h:544:13: warning: '_p' is an unsafe pointer used for buffer access [-Wunsafe-buffer-usage] Uint32 *_p = SDL_static_cast(Uint32 *, dst); ~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /usr/local/include/SDL2/SDL_stdinc.h:550:26: note: used in pointer arithmetic here case 0: do { *_p++ = _val; SDL_FALLTHROUGH; ^~ /usr/local/include/SDL2/SDL_stdinc.h:553:26: note: used in pointer arithmetic here case 1: *_p++ = _val; ^~ /usr/local/include/SDL2/SDL_stdinc.h:551:26: note: used in pointer arithmetic here case 3: *_p++ = _val; SDL_FALLTHROUGH; ^~ /usr/local/include/SDL2/SDL_stdinc.h:552:26: note: used in pointer arithmetic here case 2: *_p++ = _val; SDL_FALLTHROUGH; ^~ In file included from src/gui/SnapshotDialog.cxx:19: In file included from src/gui/BrowserDialog.hxx:30: src/emucore/FSNode.hxx:513:31: warning: unsafe pointer arithmetic [-Wunsafe-buffer-usage] const char* cur = start + str.size() - 2; ~~~~~~^~~~~~~~~~~~ src/emucore/FSNode.hxx:512:19: warning: 'start' is an unsafe pointer used for buffer access [-Wunsafe-buffer-usage] const char* start = str.c_str(); ~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~ src/emucore/FSNode.hxx:513:25: note: used in pointer arithmetic here const char* cur = start + str.size() - 2; ^~~~~ src/emucore/FSNode.hxx:513:19: warning: 'cur' is an unsafe pointer used for buffer access [-Wunsafe-buffer-usage] const char* cur = start + str.size() - 2; ~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~ src/emucore/FSNode.hxx:518:14: note: used in pointer arithmetic here return cur + 1; ^~~ src/emucore/FSNode.hxx:516:11: note: used in pointer arithmetic here --cur; ^~~ 6 warnings generated. mkdir -p -p src/gui/.deps mkdir -p -p out/src/gui c++ -MMD -MF "src/gui/.deps/StellaSettingsDialog.d" -MQ "out/src/gui/StellaSettingsDialog.o" -MP -O2 -pipe -I/usr/X11R6/include -I/usr/local/include -x c++ -Wall -Wextra -Wno-unused-parameter -Wno-multichar -Wunused -Woverloaded-virtual -Wnon-virtual-dtor -std=c++17 -Weverything -Wno-c++98-compat-pedantic -Wno-unknown-warning-option -Wno-switch-enum -Wno-conversion -Wno-covered-switch-default -Wno-inconsistent-missing-destructor-override -Wno-float-equal -Wno-exit-time-destructors -Wno-global-constructors -Wno-weak-vtables -Wno-four-char-constants -Wno-padded -Wno-reserved-identifier -Wno-duplicate-enum -fomit-frame-pointer -DSDL_SUPPORT -D_GLIBCXX_USE_CXX11_ABI=1 -DUNIX -DBSPF_UNIX -DGUI_SUPPORT -DWINDOWED_SUPPORT -DSOUND_SUPPORT -DDEBUGGER_SUPPORT -DJOYSTICK_SUPPORT -DCHEATCODE_SUPPORT -DHTTP_LIB_SUPPORT -DPNG_SUPPORT -DZIP_SUPPORT -Isrc/emucore -Isrc/common -Isrc/common/tv_filters -Isrc/emucore/tia -Isrc/emucore/tia/frame-manager -Isrc/json -Isrc/common/repository/sqlite -I/usr/local/include -I/usr/local/include/SDL2 -I/usr/X11R6/include -D_REENTRANT -I/usr/X11R6/include -Isrc/unix -Isrc/gui -Isrc/debugger -Isrc/debugger/gui -Isrc/yacc -Isrc/cheat -Isrc/httplib -c src/gui/StellaSettingsDialog.cxx -o out/src/gui/StellaSettingsDialog.o In file included from src/gui/StellaSettingsDialog.cxx:18: In file included from src/emucore/OSystem.hxx:55: In file included from src/emucore/FSNode.hxx:23: src/common/bspf.hxx:245:37: warning: unsafe pointer arithmetic [-Wunsafe-buffer-usage] const auto pos = std::search(s1.cbegin()+startpos, s1.cend(), ~~~^~~~~~~~ src/common/bspf.hxx:249:56: warning: unsafe pointer arithmetic [-Wunsafe-buffer-usage] return pos == s1.cend() ? string::npos : pos - (s1.cbegin()+startpos); ~~~^~~~~~~~ In file included from src/gui/StellaSettingsDialog.cxx:18: In file included from src/emucore/OSystem.hxx:55: src/emucore/FSNode.hxx:513:31: warning: unsafe pointer arithmetic [-Wunsafe-buffer-usage] const char* cur = start + str.size() - 2; ~~~~~~^~~~~~~~~~~~ src/emucore/FSNode.hxx:512:19: warning: 'start' is an unsafe pointer used for buffer access [-Wunsafe-buffer-usage] const char* start = str.c_str(); ~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~ src/emucore/FSNode.hxx:513:25: note: used in pointer arithmetic here const char* cur = start + str.size() - 2; ^~~~~ src/emucore/FSNode.hxx:513:19: warning: 'cur' is an unsafe pointer used for buffer access [-Wunsafe-buffer-usage] const char* cur = start + str.size() - 2; ~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~ src/emucore/FSNode.hxx:518:14: note: used in pointer arithmetic here return cur + 1; ^~~ src/emucore/FSNode.hxx:516:11: note: used in pointer arithmetic here --cur; ^~~ In file included from src/gui/StellaSettingsDialog.cxx:20: In file included from src/emucore/EventHandler.hxx:38: In file included from src/common/PKeyboardHandler.hxx:30: In file included from src/common/KeyMap.hxx:24: In file included from src/common/StellaKeys.hxx:22: In file included from src/common/SDL_lib.hxx:34: In file included from /usr/local/include/SDL2/SDL.h:32: In file included from /usr/local/include/SDL2/SDL_main.h:25: /usr/local/include/SDL2/SDL_stdinc.h:544:13: warning: '_p' is an unsafe pointer used for buffer access [-Wunsafe-buffer-usage] Uint32 *_p = SDL_static_cast(Uint32 *, dst); ~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /usr/local/include/SDL2/SDL_stdinc.h:551:26: note: used in pointer arithmetic here case 3: *_p++ = _val; SDL_FALLTHROUGH; ^~ /usr/local/include/SDL2/SDL_stdinc.h:552:26: note: used in pointer arithmetic here case 2: *_p++ = _val; SDL_FALLTHROUGH; ^~ /usr/local/include/SDL2/SDL_stdinc.h:550:26: note: used in pointer arithmetic here case 0: do { *_p++ = _val; SDL_FALLTHROUGH; ^~ /usr/local/include/SDL2/SDL_stdinc.h:553:26: note: used in pointer arithmetic here case 1: *_p++ = _val; ^~ In file included from src/gui/StellaSettingsDialog.cxx:24: In file included from src/common/tv_filters/NTSCFilter.hxx:25: src/common/tv_filters/AtariNTSC.hxx:238:22: warning: 'to_rgb' is an unsafe pointer used for buffer access [-Wunsafe-buffer-usage] const float* to_rgb, int& ir, int& ig, int& ib) { ~~~~~~~~~~~~~^~~~~~ src/common/tv_filters/AtariNTSC.hxx:240:49: note: used in buffer access here ig = static_cast(y + to_rgb[2] * i + to_rgb[3] * q); ^~~~~~ src/common/tv_filters/AtariNTSC.hxx:240:33: note: used in buffer access here ig = static_cast(y + to_rgb[2] * i + to_rgb[3] * q); ^~~~~~ src/common/tv_filters/AtariNTSC.hxx:241:33: note: used in buffer access here ib = static_cast(y + to_rgb[4] * i + to_rgb[5] * q); ^~~~~~ src/common/tv_filters/AtariNTSC.hxx:241:49: note: used in buffer access here ib = static_cast(y + to_rgb[4] * i + to_rgb[5] * q); ^~~~~~ src/common/tv_filters/AtariNTSC.hxx:239:49: note: used in buffer access here ir = static_cast(y + to_rgb[0] * i + to_rgb[1] * q); ^~~~~~ 7 warnings generated. mkdir -p -p src/gui/.deps mkdir -p -p out/src/gui c++ -MMD -MF "src/gui/.deps/StringListWidget.d" -MQ "out/src/gui/StringListWidget.o" -MP -O2 -pipe -I/usr/X11R6/include -I/usr/local/include -x c++ -Wall -Wextra -Wno-unused-parameter -Wno-multichar -Wunused -Woverloaded-virtual -Wnon-virtual-dtor -std=c++17 -Weverything -Wno-c++98-compat-pedantic -Wno-unknown-warning-option -Wno-switch-enum -Wno-conversion -Wno-covered-switch-default -Wno-inconsistent-missing-destructor-override -Wno-float-equal -Wno-exit-time-destructors -Wno-global-constructors -Wno-weak-vtables -Wno-four-char-constants -Wno-padded -Wno-reserved-identifier -Wno-duplicate-enum -fomit-frame-pointer -DSDL_SUPPORT -D_GLIBCXX_USE_CXX11_ABI=1 -DUNIX -DBSPF_UNIX -DGUI_SUPPORT -DWINDOWED_SUPPORT -DSOUND_SUPPORT -DDEBUGGER_SUPPORT -DJOYSTICK_SUPPORT -DCHEATCODE_SUPPORT -DHTTP_LIB_SUPPORT -DPNG_SUPPORT -DZIP_SUPPORT -Isrc/emucore -Isrc/common -Isrc/common/tv_filters -Isrc/emucore/tia -Isrc/emucore/tia/frame-manager -Isrc/json -Isrc/common/repository/sqlite -I/usr/local/include -I/usr/local/include/SDL2 -I/usr/X11R6/include -D_REENTRANT -I/usr/X11R6/include -Isrc/unix -Isrc/gui -Isrc/debugger -Isrc/debugger/gui -Isrc/yacc -Isrc/cheat -Isrc/httplib -c src/gui/StringListWidget.cxx -o out/src/gui/StringListWidget.o In file included from src/gui/StringListWidget.cxx:18: src/common/bspf.hxx:245:37: warning: unsafe pointer arithmetic [-Wunsafe-buffer-usage] const auto pos = std::search(s1.cbegin()+startpos, s1.cend(), ~~~^~~~~~~~ src/common/bspf.hxx:249:56: warning: unsafe pointer arithmetic [-Wunsafe-buffer-usage] return pos == s1.cend() ? string::npos : pos - (s1.cbegin()+startpos); ~~~^~~~~~~~ In file included from src/gui/StringListWidget.cxx:19: In file included from src/gui/Dialog.hxx:31: In file included from src/gui/Widget.hxx:33: In file included from src/common/StellaKeys.hxx:22: In file included from src/common/SDL_lib.hxx:34: In file included from /usr/local/include/SDL2/SDL.h:32: In file included from /usr/local/include/SDL2/SDL_main.h:25: /usr/local/include/SDL2/SDL_stdinc.h:544:13: warning: '_p' is an unsafe pointer used for buffer access [-Wunsafe-buffer-usage] Uint32 *_p = SDL_static_cast(Uint32 *, dst); ~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /usr/local/include/SDL2/SDL_stdinc.h:552:26: note: used in pointer arithmetic here case 2: *_p++ = _val; SDL_FALLTHROUGH; ^~ /usr/local/include/SDL2/SDL_stdinc.h:553:26: note: used in pointer arithmetic here case 1: *_p++ = _val; ^~ /usr/local/include/SDL2/SDL_stdinc.h:550:26: note: used in pointer arithmetic here case 0: do { *_p++ = _val; SDL_FALLTHROUGH; ^~ /usr/local/include/SDL2/SDL_stdinc.h:551:26: note: used in pointer arithmetic here case 3: *_p++ = _val; SDL_FALLTHROUGH; ^~ 3 warnings generated. mkdir -p -p src/gui/.deps mkdir -p -p out/src/gui c++ -MMD -MF "src/gui/.deps/TabWidget.d" -MQ "out/src/gui/TabWidget.o" -MP -O2 -pipe -I/usr/X11R6/include -I/usr/local/include -x c++ -Wall -Wextra -Wno-unused-parameter -Wno-multichar -Wunused -Woverloaded-virtual -Wnon-virtual-dtor -std=c++17 -Weverything -Wno-c++98-compat-pedantic -Wno-unknown-warning-option -Wno-switch-enum -Wno-conversion -Wno-covered-switch-default -Wno-inconsistent-missing-destructor-override -Wno-float-equal -Wno-exit-time-destructors -Wno-global-constructors -Wno-weak-vtables -Wno-four-char-constants -Wno-padded -Wno-reserved-identifier -Wno-duplicate-enum -fomit-frame-pointer -DSDL_SUPPORT -D_GLIBCXX_USE_CXX11_ABI=1 -DUNIX -DBSPF_UNIX -DGUI_SUPPORT -DWINDOWED_SUPPORT -DSOUND_SUPPORT -DDEBUGGER_SUPPORT -DJOYSTICK_SUPPORT -DCHEATCODE_SUPPORT -DHTTP_LIB_SUPPORT -DPNG_SUPPORT -DZIP_SUPPORT -Isrc/emucore -Isrc/common -Isrc/common/tv_filters -Isrc/emucore/tia -Isrc/emucore/tia/frame-manager -Isrc/json -Isrc/common/repository/sqlite -I/usr/local/include -I/usr/local/include/SDL2 -I/usr/X11R6/include -D_REENTRANT -I/usr/X11R6/include -Isrc/unix -Isrc/gui -Isrc/debugger -Isrc/debugger/gui -Isrc/yacc -Isrc/cheat -Isrc/httplib -c src/gui/TabWidget.cxx -o out/src/gui/TabWidget.o In file included from src/gui/TabWidget.cxx:18: src/common/bspf.hxx:245:37: warning: unsafe pointer arithmetic [-Wunsafe-buffer-usage] const auto pos = std::search(s1.cbegin()+startpos, s1.cend(), ~~~^~~~~~~~ src/common/bspf.hxx:249:56: warning: unsafe pointer arithmetic [-Wunsafe-buffer-usage] return pos == s1.cend() ? string::npos : pos - (s1.cbegin()+startpos); ~~~^~~~~~~~ In file included from src/gui/TabWidget.cxx:19: In file included from src/gui/Dialog.hxx:31: In file included from src/gui/Widget.hxx:33: In file included from src/common/StellaKeys.hxx:22: In file included from src/common/SDL_lib.hxx:34: In file included from /usr/local/include/SDL2/SDL.h:32: In file included from /usr/local/include/SDL2/SDL_main.h:25: /usr/local/include/SDL2/SDL_stdinc.h:544:13: warning: '_p' is an unsafe pointer used for buffer access [-Wunsafe-buffer-usage] Uint32 *_p = SDL_static_cast(Uint32 *, dst); ~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /usr/local/include/SDL2/SDL_stdinc.h:553:26: note: used in pointer arithmetic here case 1: *_p++ = _val; ^~ /usr/local/include/SDL2/SDL_stdinc.h:551:26: note: used in pointer arithmetic here case 3: *_p++ = _val; SDL_FALLTHROUGH; ^~ /usr/local/include/SDL2/SDL_stdinc.h:550:26: note: used in pointer arithmetic here case 0: do { *_p++ = _val; SDL_FALLTHROUGH; ^~ /usr/local/include/SDL2/SDL_stdinc.h:552:26: note: used in pointer arithmetic here case 2: *_p++ = _val; SDL_FALLTHROUGH; ^~ In file included from src/gui/TabWidget.cxx:23: In file included from src/emucore/OSystem.hxx:55: src/emucore/FSNode.hxx:513:31: warning: unsafe pointer arithmetic [-Wunsafe-buffer-usage] const char* cur = start + str.size() - 2; ~~~~~~^~~~~~~~~~~~ src/emucore/FSNode.hxx:512:19: warning: 'start' is an unsafe pointer used for buffer access [-Wunsafe-buffer-usage] const char* start = str.c_str(); ~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~ src/emucore/FSNode.hxx:513:25: note: used in pointer arithmetic here const char* cur = start + str.size() - 2; ^~~~~ src/emucore/FSNode.hxx:513:19: warning: 'cur' is an unsafe pointer used for buffer access [-Wunsafe-buffer-usage] const char* cur = start + str.size() - 2; ~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~ src/emucore/FSNode.hxx:516:11: note: used in pointer arithmetic here --cur; ^~~ src/emucore/FSNode.hxx:518:14: note: used in pointer arithmetic here return cur + 1; ^~~ 6 warnings generated. mkdir -p -p src/gui/.deps mkdir -p -p out/src/gui c++ -MMD -MF "src/gui/.deps/TimeLineWidget.d" -MQ "out/src/gui/TimeLineWidget.o" -MP -O2 -pipe -I/usr/X11R6/include -I/usr/local/include -x c++ -Wall -Wextra -Wno-unused-parameter -Wno-multichar -Wunused -Woverloaded-virtual -Wnon-virtual-dtor -std=c++17 -Weverything -Wno-c++98-compat-pedantic -Wno-unknown-warning-option -Wno-switch-enum -Wno-conversion -Wno-covered-switch-default -Wno-inconsistent-missing-destructor-override -Wno-float-equal -Wno-exit-time-destructors -Wno-global-constructors -Wno-weak-vtables -Wno-four-char-constants -Wno-padded -Wno-reserved-identifier -Wno-duplicate-enum -fomit-frame-pointer -DSDL_SUPPORT -D_GLIBCXX_USE_CXX11_ABI=1 -DUNIX -DBSPF_UNIX -DGUI_SUPPORT -DWINDOWED_SUPPORT -DSOUND_SUPPORT -DDEBUGGER_SUPPORT -DJOYSTICK_SUPPORT -DCHEATCODE_SUPPORT -DHTTP_LIB_SUPPORT -DPNG_SUPPORT -DZIP_SUPPORT -Isrc/emucore -Isrc/common -Isrc/common/tv_filters -Isrc/emucore/tia -Isrc/emucore/tia/frame-manager -Isrc/json -Isrc/common/repository/sqlite -I/usr/local/include -I/usr/local/include/SDL2 -I/usr/X11R6/include -D_REENTRANT -I/usr/X11R6/include -Isrc/unix -Isrc/gui -Isrc/debugger -Isrc/debugger/gui -Isrc/yacc -Isrc/cheat -Isrc/httplib -c src/gui/TimeLineWidget.cxx -o out/src/gui/TimeLineWidget.o In file included from src/gui/TimeLineWidget.cxx:18: src/common/bspf.hxx:245:37: warning: unsafe pointer arithmetic [-Wunsafe-buffer-usage] const auto pos = std::search(s1.cbegin()+startpos, s1.cend(), ~~~^~~~~~~~ src/common/bspf.hxx:249:56: warning: unsafe pointer arithmetic [-Wunsafe-buffer-usage] return pos == s1.cend() ? string::npos : pos - (s1.cbegin()+startpos); ~~~^~~~~~~~ In file included from src/gui/TimeLineWidget.cxx:20: In file included from src/gui/Dialog.hxx:31: In file included from src/gui/Widget.hxx:33: In file included from src/common/StellaKeys.hxx:22: In file included from src/common/SDL_lib.hxx:34: In file included from /usr/local/include/SDL2/SDL.h:32: In file included from /usr/local/include/SDL2/SDL_main.h:25: /usr/local/include/SDL2/SDL_stdinc.h:544:13: warning: '_p' is an unsafe pointer used for buffer access [-Wunsafe-buffer-usage] Uint32 *_p = SDL_static_cast(Uint32 *, dst); ~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /usr/local/include/SDL2/SDL_stdinc.h:550:26: note: used in pointer arithmetic here case 0: do { *_p++ = _val; SDL_FALLTHROUGH; ^~ /usr/local/include/SDL2/SDL_stdinc.h:551:26: note: used in pointer arithmetic here case 3: *_p++ = _val; SDL_FALLTHROUGH; ^~ /usr/local/include/SDL2/SDL_stdinc.h:552:26: note: used in pointer arithmetic here case 2: *_p++ = _val; SDL_FALLTHROUGH; ^~ /usr/local/include/SDL2/SDL_stdinc.h:553:26: note: used in pointer arithmetic here case 1: *_p++ = _val; ^~ In file included from src/gui/TimeLineWidget.cxx:24: In file included from src/emucore/OSystem.hxx:55: src/emucore/FSNode.hxx:513:31: warning: unsafe pointer arithmetic [-Wunsafe-buffer-usage] const char* cur = start + str.size() - 2; ~~~~~~^~~~~~~~~~~~ src/emucore/FSNode.hxx:512:19: warning: 'start' is an unsafe pointer used for buffer access [-Wunsafe-buffer-usage] const char* start = str.c_str(); ~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~ src/emucore/FSNode.hxx:513:25: note: used in pointer arithmetic here const char* cur = start + str.size() - 2; ^~~~~ src/emucore/FSNode.hxx:513:19: warning: 'cur' is an unsafe pointer used for buffer access [-Wunsafe-buffer-usage] const char* cur = start + str.size() - 2; ~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~ src/emucore/FSNode.hxx:518:14: note: used in pointer arithmetic here return cur + 1; ^~~ src/emucore/FSNode.hxx:516:11: note: used in pointer arithmetic here --cur; ^~~ 6 warnings generated. mkdir -p -p src/gui/.deps mkdir -p -p out/src/gui c++ -MMD -MF "src/gui/.deps/TimeMachineDialog.d" -MQ "out/src/gui/TimeMachineDialog.o" -MP -O2 -pipe -I/usr/X11R6/include -I/usr/local/include -x c++ -Wall -Wextra -Wno-unused-parameter -Wno-multichar -Wunused -Woverloaded-virtual -Wnon-virtual-dtor -std=c++17 -Weverything -Wno-c++98-compat-pedantic -Wno-unknown-warning-option -Wno-switch-enum -Wno-conversion -Wno-covered-switch-default -Wno-inconsistent-missing-destructor-override -Wno-float-equal -Wno-exit-time-destructors -Wno-global-constructors -Wno-weak-vtables -Wno-four-char-constants -Wno-padded -Wno-reserved-identifier -Wno-duplicate-enum -fomit-frame-pointer -DSDL_SUPPORT -D_GLIBCXX_USE_CXX11_ABI=1 -DUNIX -DBSPF_UNIX -DGUI_SUPPORT -DWINDOWED_SUPPORT -DSOUND_SUPPORT -DDEBUGGER_SUPPORT -DJOYSTICK_SUPPORT -DCHEATCODE_SUPPORT -DHTTP_LIB_SUPPORT -DPNG_SUPPORT -DZIP_SUPPORT -Isrc/emucore -Isrc/common -Isrc/common/tv_filters -Isrc/emucore/tia -Isrc/emucore/tia/frame-manager -Isrc/json -Isrc/common/repository/sqlite -I/usr/local/include -I/usr/local/include/SDL2 -I/usr/X11R6/include -D_REENTRANT -I/usr/X11R6/include -Isrc/unix -Isrc/gui -Isrc/debugger -Isrc/debugger/gui -Isrc/yacc -Isrc/cheat -Isrc/httplib -c src/gui/TimeMachineDialog.cxx -o out/src/gui/TimeMachineDialog.o In file included from src/gui/TimeMachineDialog.cxx:18: In file included from src/gui/Dialog.hxx:31: In file included from src/gui/Widget.hxx:28: src/common/bspf.hxx:245:37: warning: unsafe pointer arithmetic [-Wunsafe-buffer-usage] const auto pos = std::search(s1.cbegin()+startpos, s1.cend(), ~~~^~~~~~~~ src/common/bspf.hxx:249:56: warning: unsafe pointer arithmetic [-Wunsafe-buffer-usage] return pos == s1.cend() ? string::npos : pos - (s1.cbegin()+startpos); ~~~^~~~~~~~ In file included from src/gui/TimeMachineDialog.cxx:18: In file included from src/gui/Dialog.hxx:31: In file included from src/gui/Widget.hxx:33: In file included from src/common/StellaKeys.hxx:22: In file included from src/common/SDL_lib.hxx:34: In file included from /usr/local/include/SDL2/SDL.h:32: In file included from /usr/local/include/SDL2/SDL_main.h:25: /usr/local/include/SDL2/SDL_stdinc.h:544:13: warning: '_p' is an unsafe pointer used for buffer access [-Wunsafe-buffer-usage] Uint32 *_p = SDL_static_cast(Uint32 *, dst); ~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /usr/local/include/SDL2/SDL_stdinc.h:550:26: note: used in pointer arithmetic here case 0: do { *_p++ = _val; SDL_FALLTHROUGH; ^~ /usr/local/include/SDL2/SDL_stdinc.h:553:26: note: used in pointer arithmetic here case 1: *_p++ = _val; ^~ /usr/local/include/SDL2/SDL_stdinc.h:551:26: note: used in pointer arithmetic here case 3: *_p++ = _val; SDL_FALLTHROUGH; ^~ /usr/local/include/SDL2/SDL_stdinc.h:552:26: note: used in pointer arithmetic here case 2: *_p++ = _val; SDL_FALLTHROUGH; ^~ In file included from src/gui/TimeMachineDialog.cxx:23: In file included from src/emucore/OSystem.hxx:55: src/emucore/FSNode.hxx:513:31: warning: unsafe pointer arithmetic [-Wunsafe-buffer-usage] const char* cur = start + str.size() - 2; ~~~~~~^~~~~~~~~~~~ src/emucore/FSNode.hxx:512:19: warning: 'start' is an unsafe pointer used for buffer access [-Wunsafe-buffer-usage] const char* start = str.c_str(); ~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~ src/emucore/FSNode.hxx:513:25: note: used in pointer arithmetic here const char* cur = start + str.size() - 2; ^~~~~ src/emucore/FSNode.hxx:513:19: warning: 'cur' is an unsafe pointer used for buffer access [-Wunsafe-buffer-usage] const char* cur = start + str.size() - 2; ~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~ src/emucore/FSNode.hxx:516:11: note: used in pointer arithmetic here --cur; ^~~ src/emucore/FSNode.hxx:518:14: note: used in pointer arithmetic here return cur + 1; ^~~ In file included from src/gui/TimeMachineDialog.cxx:28: In file included from src/emucore/TIASurface.hxx:31: In file included from src/common/tv_filters/NTSCFilter.hxx:25: src/common/tv_filters/AtariNTSC.hxx:238:22: warning: 'to_rgb' is an unsafe pointer used for buffer access [-Wunsafe-buffer-usage] const float* to_rgb, int& ir, int& ig, int& ib) { ~~~~~~~~~~~~~^~~~~~ src/common/tv_filters/AtariNTSC.hxx:239:49: note: used in buffer access here ir = static_cast(y + to_rgb[0] * i + to_rgb[1] * q); ^~~~~~ src/common/tv_filters/AtariNTSC.hxx:241:33: note: used in buffer access here ib = static_cast(y + to_rgb[4] * i + to_rgb[5] * q); ^~~~~~ src/common/tv_filters/AtariNTSC.hxx:240:33: note: used in buffer access here ig = static_cast(y + to_rgb[2] * i + to_rgb[3] * q); ^~~~~~ src/common/tv_filters/AtariNTSC.hxx:240:49: note: used in buffer access here ig = static_cast(y + to_rgb[2] * i + to_rgb[3] * q); ^~~~~~ src/common/tv_filters/AtariNTSC.hxx:241:49: note: used in buffer access here ib = static_cast(y + to_rgb[4] * i + to_rgb[5] * q); ^~~~~~ In file included from src/gui/TimeMachineDialog.cxx:31: In file included from src/emucore/tia/TIA.hxx:37: src/emucore/tia/Missile.hxx:170:7: warning: unsafe buffer access [-Wunsafe-buffer-usage] if (myDecodes[myCounter] && !myResmp) { ^~~~~~~~~ src/emucore/tia/Missile.hxx:173:14: warning: unsafe buffer access [-Wunsafe-buffer-usage] myCopy = myDecodes[myCounter]; ^~~~~~~~~ In file included from src/gui/TimeMachineDialog.cxx:31: In file included from src/emucore/tia/TIA.hxx:38: src/emucore/tia/Player.hxx:186:7: warning: unsafe buffer access [-Wunsafe-buffer-usage] if (myDecodes[myCounter]) { ^~~~~~~~~ src/emucore/tia/Player.hxx:190:14: warning: unsafe buffer access [-Wunsafe-buffer-usage] myCopy = myDecodes[myCounter]; ^~~~~~~~~ 11 warnings generated. mkdir -p -p src/gui/.deps mkdir -p -p out/src/gui c++ -MMD -MF "src/gui/.deps/TimeMachine.d" -MQ "out/src/gui/TimeMachine.o" -MP -O2 -pipe -I/usr/X11R6/include -I/usr/local/include -x c++ -Wall -Wextra -Wno-unused-parameter -Wno-multichar -Wunused -Woverloaded-virtual -Wnon-virtual-dtor -std=c++17 -Weverything -Wno-c++98-compat-pedantic -Wno-unknown-warning-option -Wno-switch-enum -Wno-conversion -Wno-covered-switch-default -Wno-inconsistent-missing-destructor-override -Wno-float-equal -Wno-exit-time-destructors -Wno-global-constructors -Wno-weak-vtables -Wno-four-char-constants -Wno-padded -Wno-reserved-identifier -Wno-duplicate-enum -fomit-frame-pointer -DSDL_SUPPORT -D_GLIBCXX_USE_CXX11_ABI=1 -DUNIX -DBSPF_UNIX -DGUI_SUPPORT -DWINDOWED_SUPPORT -DSOUND_SUPPORT -DDEBUGGER_SUPPORT -DJOYSTICK_SUPPORT -DCHEATCODE_SUPPORT -DHTTP_LIB_SUPPORT -DPNG_SUPPORT -DZIP_SUPPORT -Isrc/emucore -Isrc/common -Isrc/common/tv_filters -Isrc/emucore/tia -Isrc/emucore/tia/frame-manager -Isrc/json -Isrc/common/repository/sqlite -I/usr/local/include -I/usr/local/include/SDL2 -I/usr/X11R6/include -D_REENTRANT -I/usr/X11R6/include -Isrc/unix -Isrc/gui -Isrc/debugger -Isrc/debugger/gui -Isrc/yacc -Isrc/cheat -Isrc/httplib -c src/gui/TimeMachine.cxx -o out/src/gui/TimeMachine.o In file included from src/gui/TimeMachine.cxx:18: In file included from src/gui/Dialog.hxx:31: In file included from src/gui/Widget.hxx:28: src/common/bspf.hxx:245:37: warning: unsafe pointer arithmetic [-Wunsafe-buffer-usage] const auto pos = std::search(s1.cbegin()+startpos, s1.cend(), ~~~^~~~~~~~ src/common/bspf.hxx:249:56: warning: unsafe pointer arithmetic [-Wunsafe-buffer-usage] return pos == s1.cend() ? string::npos : pos - (s1.cbegin()+startpos); ~~~^~~~~~~~ In file included from src/gui/TimeMachine.cxx:18: In file included from src/gui/Dialog.hxx:31: In file included from src/gui/Widget.hxx:33: In file included from src/common/StellaKeys.hxx:22: In file included from src/common/SDL_lib.hxx:34: In file included from /usr/local/include/SDL2/SDL.h:32: In file included from /usr/local/include/SDL2/SDL_main.h:25: /usr/local/include/SDL2/SDL_stdinc.h:544:13: warning: '_p' is an unsafe pointer used for buffer access [-Wunsafe-buffer-usage] Uint32 *_p = SDL_static_cast(Uint32 *, dst); ~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /usr/local/include/SDL2/SDL_stdinc.h:550:26: note: used in pointer arithmetic here case 0: do { *_p++ = _val; SDL_FALLTHROUGH; ^~ /usr/local/include/SDL2/SDL_stdinc.h:551:26: note: used in pointer arithmetic here case 3: *_p++ = _val; SDL_FALLTHROUGH; ^~ /usr/local/include/SDL2/SDL_stdinc.h:552:26: note: used in pointer arithmetic here case 2: *_p++ = _val; SDL_FALLTHROUGH; ^~ /usr/local/include/SDL2/SDL_stdinc.h:553:26: note: used in pointer arithmetic here case 1: *_p++ = _val; ^~ 3 warnings generated. mkdir -p -p src/gui/.deps mkdir -p -p out/src/gui c++ -MMD -MF "src/gui/.deps/ToolTip.d" -MQ "out/src/gui/ToolTip.o" -MP -O2 -pipe -I/usr/X11R6/include -I/usr/local/include -x c++ -Wall -Wextra -Wno-unused-parameter -Wno-multichar -Wunused -Woverloaded-virtual -Wnon-virtual-dtor -std=c++17 -Weverything -Wno-c++98-compat-pedantic -Wno-unknown-warning-option -Wno-switch-enum -Wno-conversion -Wno-covered-switch-default -Wno-inconsistent-missing-destructor-override -Wno-float-equal -Wno-exit-time-destructors -Wno-global-constructors -Wno-weak-vtables -Wno-four-char-constants -Wno-padded -Wno-reserved-identifier -Wno-duplicate-enum -fomit-frame-pointer -DSDL_SUPPORT -D_GLIBCXX_USE_CXX11_ABI=1 -DUNIX -DBSPF_UNIX -DGUI_SUPPORT -DWINDOWED_SUPPORT -DSOUND_SUPPORT -DDEBUGGER_SUPPORT -DJOYSTICK_SUPPORT -DCHEATCODE_SUPPORT -DHTTP_LIB_SUPPORT -DPNG_SUPPORT -DZIP_SUPPORT -Isrc/emucore -Isrc/common -Isrc/common/tv_filters -Isrc/emucore/tia -Isrc/emucore/tia/frame-manager -Isrc/json -Isrc/common/repository/sqlite -I/usr/local/include -I/usr/local/include/SDL2 -I/usr/X11R6/include -D_REENTRANT -I/usr/X11R6/include -Isrc/unix -Isrc/gui -Isrc/debugger -Isrc/debugger/gui -Isrc/yacc -Isrc/cheat -Isrc/httplib -c src/gui/ToolTip.cxx -o out/src/gui/ToolTip.o In file included from src/gui/ToolTip.cxx:18: In file included from src/emucore/OSystem.hxx:55: In file included from src/emucore/FSNode.hxx:23: src/common/bspf.hxx:245:37: warning: unsafe pointer arithmetic [-Wunsafe-buffer-usage] const auto pos = std::search(s1.cbegin()+startpos, s1.cend(), ~~~^~~~~~~~ src/common/bspf.hxx:249:56: warning: unsafe pointer arithmetic [-Wunsafe-buffer-usage] return pos == s1.cend() ? string::npos : pos - (s1.cbegin()+startpos); ~~~^~~~~~~~ In file included from src/gui/ToolTip.cxx:18: In file included from src/emucore/OSystem.hxx:55: src/emucore/FSNode.hxx:513:31: warning: unsafe pointer arithmetic [-Wunsafe-buffer-usage] const char* cur = start + str.size() - 2; ~~~~~~^~~~~~~~~~~~ src/emucore/FSNode.hxx:512:19: warning: 'start' is an unsafe pointer used for buffer access [-Wunsafe-buffer-usage] const char* start = str.c_str(); ~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~ src/emucore/FSNode.hxx:513:25: note: used in pointer arithmetic here const char* cur = start + str.size() - 2; ^~~~~ src/emucore/FSNode.hxx:513:19: warning: 'cur' is an unsafe pointer used for buffer access [-Wunsafe-buffer-usage] const char* cur = start + str.size() - 2; ~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~ src/emucore/FSNode.hxx:516:11: note: used in pointer arithmetic here --cur; ^~~ src/emucore/FSNode.hxx:518:14: note: used in pointer arithmetic here return cur + 1; ^~~ In file included from src/gui/ToolTip.cxx:19: In file included from src/gui/Dialog.hxx:31: In file included from src/gui/Widget.hxx:33: In file included from src/common/StellaKeys.hxx:22: In file included from src/common/SDL_lib.hxx:34: In file included from /usr/local/include/SDL2/SDL.h:32: In file included from /usr/local/include/SDL2/SDL_main.h:25: /usr/local/include/SDL2/SDL_stdinc.h:544:13: warning: '_p' is an unsafe pointer used for buffer access [-Wunsafe-buffer-usage] Uint32 *_p = SDL_static_cast(Uint32 *, dst); ~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /usr/local/include/SDL2/SDL_stdinc.h:552:26: note: used in pointer arithmetic here case 2: *_p++ = _val; SDL_FALLTHROUGH; ^~ /usr/local/include/SDL2/SDL_stdinc.h:551:26: note: used in pointer arithmetic here case 3: *_p++ = _val; SDL_FALLTHROUGH; ^~ /usr/local/include/SDL2/SDL_stdinc.h:550:26: note: used in pointer arithmetic here case 0: do { *_p++ = _val; SDL_FALLTHROUGH; ^~ /usr/local/include/SDL2/SDL_stdinc.h:553:26: note: used in pointer arithmetic here case 1: *_p++ = _val; ^~ 6 warnings generated. mkdir -p -p src/gui/.deps mkdir -p -p out/src/gui c++ -MMD -MF "src/gui/.deps/UndoHandler.d" -MQ "out/src/gui/UndoHandler.o" -MP -O2 -pipe -I/usr/X11R6/include -I/usr/local/include -x c++ -Wall -Wextra -Wno-unused-parameter -Wno-multichar -Wunused -Woverloaded-virtual -Wnon-virtual-dtor -std=c++17 -Weverything -Wno-c++98-compat-pedantic -Wno-unknown-warning-option -Wno-switch-enum -Wno-conversion -Wno-covered-switch-default -Wno-inconsistent-missing-destructor-override -Wno-float-equal -Wno-exit-time-destructors -Wno-global-constructors -Wno-weak-vtables -Wno-four-char-constants -Wno-padded -Wno-reserved-identifier -Wno-duplicate-enum -fomit-frame-pointer -DSDL_SUPPORT -D_GLIBCXX_USE_CXX11_ABI=1 -DUNIX -DBSPF_UNIX -DGUI_SUPPORT -DWINDOWED_SUPPORT -DSOUND_SUPPORT -DDEBUGGER_SUPPORT -DJOYSTICK_SUPPORT -DCHEATCODE_SUPPORT -DHTTP_LIB_SUPPORT -DPNG_SUPPORT -DZIP_SUPPORT -Isrc/emucore -Isrc/common -Isrc/common/tv_filters -Isrc/emucore/tia -Isrc/emucore/tia/frame-manager -Isrc/json -Isrc/common/repository/sqlite -I/usr/local/include -I/usr/local/include/SDL2 -I/usr/X11R6/include -D_REENTRANT -I/usr/X11R6/include -Isrc/unix -Isrc/gui -Isrc/debugger -Isrc/debugger/gui -Isrc/yacc -Isrc/cheat -Isrc/httplib -c src/gui/UndoHandler.cxx -o out/src/gui/UndoHandler.o In file included from src/gui/UndoHandler.cxx:18: In file included from src/gui/UndoHandler.hxx:22: src/common/bspf.hxx:245:37: warning: unsafe pointer arithmetic [-Wunsafe-buffer-usage] const auto pos = std::search(s1.cbegin()+startpos, s1.cend(), ~~~^~~~~~~~ src/common/bspf.hxx:249:56: warning: unsafe pointer arithmetic [-Wunsafe-buffer-usage] return pos == s1.cend() ? string::npos : pos - (s1.cbegin()+startpos); ~~~^~~~~~~~ 2 warnings generated. mkdir -p -p src/gui/.deps mkdir -p -p out/src/gui c++ -MMD -MF "src/gui/.deps/UIDialog.d" -MQ "out/src/gui/UIDialog.o" -MP -O2 -pipe -I/usr/X11R6/include -I/usr/local/include -x c++ -Wall -Wextra -Wno-unused-parameter -Wno-multichar -Wunused -Woverloaded-virtual -Wnon-virtual-dtor -std=c++17 -Weverything -Wno-c++98-compat-pedantic -Wno-unknown-warning-option -Wno-switch-enum -Wno-conversion -Wno-covered-switch-default -Wno-inconsistent-missing-destructor-override -Wno-float-equal -Wno-exit-time-destructors -Wno-global-constructors -Wno-weak-vtables -Wno-four-char-constants -Wno-padded -Wno-reserved-identifier -Wno-duplicate-enum -fomit-frame-pointer -DSDL_SUPPORT -D_GLIBCXX_USE_CXX11_ABI=1 -DUNIX -DBSPF_UNIX -DGUI_SUPPORT -DWINDOWED_SUPPORT -DSOUND_SUPPORT -DDEBUGGER_SUPPORT -DJOYSTICK_SUPPORT -DCHEATCODE_SUPPORT -DHTTP_LIB_SUPPORT -DPNG_SUPPORT -DZIP_SUPPORT -Isrc/emucore -Isrc/common -Isrc/common/tv_filters -Isrc/emucore/tia -Isrc/emucore/tia/frame-manager -Isrc/json -Isrc/common/repository/sqlite -I/usr/local/include -I/usr/local/include/SDL2 -I/usr/X11R6/include -D_REENTRANT -I/usr/X11R6/include -Isrc/unix -Isrc/gui -Isrc/debugger -Isrc/debugger/gui -Isrc/yacc -Isrc/cheat -Isrc/httplib -c src/gui/UIDialog.cxx -o out/src/gui/UIDialog.o In file included from src/gui/UIDialog.cxx:18: src/common/bspf.hxx:245:37: warning: unsafe pointer arithmetic [-Wunsafe-buffer-usage] const auto pos = std::search(s1.cbegin()+startpos, s1.cend(), ~~~^~~~~~~~ src/common/bspf.hxx:249:56: warning: unsafe pointer arithmetic [-Wunsafe-buffer-usage] return pos == s1.cend() ? string::npos : pos - (s1.cbegin()+startpos); ~~~^~~~~~~~ In file included from src/gui/UIDialog.cxx:19: In file included from src/gui/DialogContainer.hxx:26: In file included from src/common/StellaKeys.hxx:22: In file included from src/common/SDL_lib.hxx:34: In file included from /usr/local/include/SDL2/SDL.h:32: In file included from /usr/local/include/SDL2/SDL_main.h:25: /usr/local/include/SDL2/SDL_stdinc.h:544:13: warning: '_p' is an unsafe pointer used for buffer access [-Wunsafe-buffer-usage] Uint32 *_p = SDL_static_cast(Uint32 *, dst); ~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /usr/local/include/SDL2/SDL_stdinc.h:551:26: note: used in pointer arithmetic here case 3: *_p++ = _val; SDL_FALLTHROUGH; ^~ /usr/local/include/SDL2/SDL_stdinc.h:552:26: note: used in pointer arithmetic here case 2: *_p++ = _val; SDL_FALLTHROUGH; ^~ /usr/local/include/SDL2/SDL_stdinc.h:550:26: note: used in pointer arithmetic here case 0: do { *_p++ = _val; SDL_FALLTHROUGH; ^~ /usr/local/include/SDL2/SDL_stdinc.h:553:26: note: used in pointer arithmetic here case 1: *_p++ = _val; ^~ In file included from src/gui/UIDialog.cxx:20: In file included from src/gui/BrowserDialog.hxx:30: src/emucore/FSNode.hxx:513:31: warning: unsafe pointer arithmetic [-Wunsafe-buffer-usage] const char* cur = start + str.size() - 2; ~~~~~~^~~~~~~~~~~~ src/emucore/FSNode.hxx:512:19: warning: 'start' is an unsafe pointer used for buffer access [-Wunsafe-buffer-usage] const char* start = str.c_str(); ~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~ src/emucore/FSNode.hxx:513:25: note: used in pointer arithmetic here const char* cur = start + str.size() - 2; ^~~~~ src/emucore/FSNode.hxx:513:19: warning: 'cur' is an unsafe pointer used for buffer access [-Wunsafe-buffer-usage] const char* cur = start + str.size() - 2; ~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~ src/emucore/FSNode.hxx:518:14: note: used in pointer arithmetic here return cur + 1; ^~~ src/emucore/FSNode.hxx:516:11: note: used in pointer arithmetic here --cur; ^~~ 6 warnings generated. mkdir -p -p src/gui/.deps mkdir -p -p out/src/gui c++ -MMD -MF "src/gui/.deps/VideoAudioDialog.d" -MQ "out/src/gui/VideoAudioDialog.o" -MP -O2 -pipe -I/usr/X11R6/include -I/usr/local/include -x c++ -Wall -Wextra -Wno-unused-parameter -Wno-multichar -Wunused -Woverloaded-virtual -Wnon-virtual-dtor -std=c++17 -Weverything -Wno-c++98-compat-pedantic -Wno-unknown-warning-option -Wno-switch-enum -Wno-conversion -Wno-covered-switch-default -Wno-inconsistent-missing-destructor-override -Wno-float-equal -Wno-exit-time-destructors -Wno-global-constructors -Wno-weak-vtables -Wno-four-char-constants -Wno-padded -Wno-reserved-identifier -Wno-duplicate-enum -fomit-frame-pointer -DSDL_SUPPORT -D_GLIBCXX_USE_CXX11_ABI=1 -DUNIX -DBSPF_UNIX -DGUI_SUPPORT -DWINDOWED_SUPPORT -DSOUND_SUPPORT -DDEBUGGER_SUPPORT -DJOYSTICK_SUPPORT -DCHEATCODE_SUPPORT -DHTTP_LIB_SUPPORT -DPNG_SUPPORT -DZIP_SUPPORT -Isrc/emucore -Isrc/common -Isrc/common/tv_filters -Isrc/emucore/tia -Isrc/emucore/tia/frame-manager -Isrc/json -Isrc/common/repository/sqlite -I/usr/local/include -I/usr/local/include/SDL2 -I/usr/X11R6/include -D_REENTRANT -I/usr/X11R6/include -Isrc/unix -Isrc/gui -Isrc/debugger -Isrc/debugger/gui -Isrc/yacc -Isrc/cheat -Isrc/httplib -c src/gui/VideoAudioDialog.cxx -o out/src/gui/VideoAudioDialog.o In file included from src/gui/VideoAudioDialog.cxx:20: src/common/bspf.hxx:245:37: warning: unsafe pointer arithmetic [-Wunsafe-buffer-usage] const auto pos = std::search(s1.cbegin()+startpos, s1.cend(), ~~~^~~~~~~~ src/common/bspf.hxx:249:56: warning: unsafe pointer arithmetic [-Wunsafe-buffer-usage] return pos == s1.cend() ? string::npos : pos - (s1.cbegin()+startpos); ~~~^~~~~~~~ In file included from src/gui/VideoAudioDialog.cxx:24: In file included from src/emucore/CartDPC.hxx:21: In file included from src/emucore/CartF8.hxx:21: In file included from src/emucore/CartEnhanced.hxx:27: In file included from src/debugger/gui/CartEnhancedWidget.hxx:31: In file included from src/debugger/gui/CartDebugWidget.hxx:30: In file included from src/gui/Widget.hxx:33: In file included from src/common/StellaKeys.hxx:22: In file included from src/common/SDL_lib.hxx:34: In file included from /usr/local/include/SDL2/SDL.h:32: In file included from /usr/local/include/SDL2/SDL_main.h:25: /usr/local/include/SDL2/SDL_stdinc.h:544:13: warning: '_p' is an unsafe pointer used for buffer access [-Wunsafe-buffer-usage] Uint32 *_p = SDL_static_cast(Uint32 *, dst); ~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /usr/local/include/SDL2/SDL_stdinc.h:550:26: note: used in pointer arithmetic here case 0: do { *_p++ = _val; SDL_FALLTHROUGH; ^~ /usr/local/include/SDL2/SDL_stdinc.h:553:26: note: used in pointer arithmetic here case 1: *_p++ = _val; ^~ /usr/local/include/SDL2/SDL_stdinc.h:551:26: note: used in pointer arithmetic here case 3: *_p++ = _val; SDL_FALLTHROUGH; ^~ /usr/local/include/SDL2/SDL_stdinc.h:552:26: note: used in pointer arithmetic here case 2: *_p++ = _val; SDL_FALLTHROUGH; ^~ In file included from src/gui/VideoAudioDialog.cxx:26: In file included from src/emucore/OSystem.hxx:55: src/emucore/FSNode.hxx:513:31: warning: unsafe pointer arithmetic [-Wunsafe-buffer-usage] const char* cur = start + str.size() - 2; ~~~~~~^~~~~~~~~~~~ src/emucore/FSNode.hxx:512:19: warning: 'start' is an unsafe pointer used for buffer access [-Wunsafe-buffer-usage] const char* start = str.c_str(); ~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~ src/emucore/FSNode.hxx:513:25: note: used in pointer arithmetic here const char* cur = start + str.size() - 2; ^~~~~ src/emucore/FSNode.hxx:513:19: warning: 'cur' is an unsafe pointer used for buffer access [-Wunsafe-buffer-usage] const char* cur = start + str.size() - 2; ~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~ src/emucore/FSNode.hxx:518:14: note: used in pointer arithmetic here return cur + 1; ^~~ src/emucore/FSNode.hxx:516:11: note: used in pointer arithmetic here --cur; ^~~ In file included from src/gui/VideoAudioDialog.cxx:32: In file included from src/emucore/tia/TIA.hxx:37: src/emucore/tia/Missile.hxx:170:7: warning: unsafe buffer access [-Wunsafe-buffer-usage] if (myDecodes[myCounter] && !myResmp) { ^~~~~~~~~ src/emucore/tia/Missile.hxx:173:14: warning: unsafe buffer access [-Wunsafe-buffer-usage] myCopy = myDecodes[myCounter]; ^~~~~~~~~ In file included from src/gui/VideoAudioDialog.cxx:32: In file included from src/emucore/tia/TIA.hxx:38: src/emucore/tia/Player.hxx:186:7: warning: unsafe buffer access [-Wunsafe-buffer-usage] if (myDecodes[myCounter]) { ^~~~~~~~~ src/emucore/tia/Player.hxx:190:14: warning: unsafe buffer access [-Wunsafe-buffer-usage] myCopy = myDecodes[myCounter]; ^~~~~~~~~ In file included from src/gui/VideoAudioDialog.cxx:39: In file included from src/common/tv_filters/NTSCFilter.hxx:25: src/common/tv_filters/AtariNTSC.hxx:238:22: warning: 'to_rgb' is an unsafe pointer used for buffer access [-Wunsafe-buffer-usage] const float* to_rgb, int& ir, int& ig, int& ib) { ~~~~~~~~~~~~~^~~~~~ src/common/tv_filters/AtariNTSC.hxx:240:49: note: used in buffer access here ig = static_cast(y + to_rgb[2] * i + to_rgb[3] * q); ^~~~~~ src/common/tv_filters/AtariNTSC.hxx:241:33: note: used in buffer access here ib = static_cast(y + to_rgb[4] * i + to_rgb[5] * q); ^~~~~~ src/common/tv_filters/AtariNTSC.hxx:239:49: note: used in buffer access here ir = static_cast(y + to_rgb[0] * i + to_rgb[1] * q); ^~~~~~ src/common/tv_filters/AtariNTSC.hxx:241:49: note: used in buffer access here ib = static_cast(y + to_rgb[4] * i + to_rgb[5] * q); ^~~~~~ src/common/tv_filters/AtariNTSC.hxx:240:33: note: used in buffer access here ig = static_cast(y + to_rgb[2] * i + to_rgb[3] * q); ^~~~~~ src/gui/VideoAudioDialog.cxx:1047:9: warning: unsafe buffer access [-Wunsafe-buffer-usage] myColor[idx][lum]->setDirty(); ^~~~~~~~~~~~ src/gui/VideoAudioDialog.cxx:1047:9: warning: unsafe buffer access [-Wunsafe-buffer-usage] myColor[idx][lum]->setDirty(); ^~~~~~~ src/gui/VideoAudioDialog.cxx:1241:7: warning: unsafe buffer access [-Wunsafe-buffer-usage] myColor[idx][lum] = new ColorWidget(myTab, _font, x + lwidth + lum * COLW, y + idx * COLH, ^~~~~~~~~~~~ src/gui/VideoAudioDialog.cxx:1241:7: warning: unsafe buffer access [-Wunsafe-buffer-usage] myColor[idx][lum] = new ColorWidget(myTab, _font, x + lwidth + lum * COLW, y + idx * COLH, ^~~~~~~ src/gui/VideoAudioDialog.cxx:1243:7: warning: unsafe buffer access [-Wunsafe-buffer-usage] myColor[idx][lum]->clearFlags(FLAG_CLEARBG | FLAG_RETAIN_FOCUS | FLAG_MOUSE_FOCUS | FLAG_BORDER); ^~~~~~~~~~~~ src/gui/VideoAudioDialog.cxx:1243:7: warning: unsafe buffer access [-Wunsafe-buffer-usage] myColor[idx][lum]->clearFlags(FLAG_CLEARBG | FLAG_RETAIN_FOCUS | FLAG_MOUSE_FOCUS | FLAG_BORDER); ^~~~~~~ src/gui/VideoAudioDialog.cxx:1266:25: warning: unsafe buffer access [-Wunsafe-buffer-usage] const int color = order[type][idx]; ^~~~~~~~~~~ src/gui/VideoAudioDialog.cxx:1271:9: warning: unsafe buffer access [-Wunsafe-buffer-usage] myColor[idx][lum]->setColor(color * NUM_CHROMA + lum * 2); // skip grayscale colors ^~~~~~~~~~~~ src/gui/VideoAudioDialog.cxx:1271:9: warning: unsafe buffer access [-Wunsafe-buffer-usage] myColor[idx][lum]->setColor(color * NUM_CHROMA + lum * 2); // skip grayscale colors ^~~~~~~ src/gui/VideoAudioDialog.cxx:1278:9: warning: unsafe buffer access [-Wunsafe-buffer-usage] myColor[idx][lum]->setEnabled(false); ^~~~~~~~~~~~ src/gui/VideoAudioDialog.cxx:1278:9: warning: unsafe buffer access [-Wunsafe-buffer-usage] myColor[idx][lum]->setEnabled(false); ^~~~~~~ src/gui/VideoAudioDialog.cxx:1256:15: warning: 'order' is an unsafe buffer that does not perform bounds checks [-Wunsafe-buffer-usage] const int order[2][NUM_CHROMA] = ~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~ src/gui/VideoAudioDialog.cxx:1266:25: note: used in buffer access here const int color = order[type][idx]; ^~~~~ 23 warnings generated. mkdir -p -p src/gui/.deps mkdir -p -p out/src/gui c++ -MMD -MF "src/gui/.deps/WhatsNewDialog.d" -MQ "out/src/gui/WhatsNewDialog.o" -MP -O2 -pipe -I/usr/X11R6/include -I/usr/local/include -x c++ -Wall -Wextra -Wno-unused-parameter -Wno-multichar -Wunused -Woverloaded-virtual -Wnon-virtual-dtor -std=c++17 -Weverything -Wno-c++98-compat-pedantic -Wno-unknown-warning-option -Wno-switch-enum -Wno-conversion -Wno-covered-switch-default -Wno-inconsistent-missing-destructor-override -Wno-float-equal -Wno-exit-time-destructors -Wno-global-constructors -Wno-weak-vtables -Wno-four-char-constants -Wno-padded -Wno-reserved-identifier -Wno-duplicate-enum -fomit-frame-pointer -DSDL_SUPPORT -D_GLIBCXX_USE_CXX11_ABI=1 -DUNIX -DBSPF_UNIX -DGUI_SUPPORT -DWINDOWED_SUPPORT -DSOUND_SUPPORT -DDEBUGGER_SUPPORT -DJOYSTICK_SUPPORT -DCHEATCODE_SUPPORT -DHTTP_LIB_SUPPORT -DPNG_SUPPORT -DZIP_SUPPORT -Isrc/emucore -Isrc/common -Isrc/common/tv_filters -Isrc/emucore/tia -Isrc/emucore/tia/frame-manager -Isrc/json -Isrc/common/repository/sqlite -I/usr/local/include -I/usr/local/include/SDL2 -I/usr/X11R6/include -D_REENTRANT -I/usr/X11R6/include -Isrc/unix -Isrc/gui -Isrc/debugger -Isrc/debugger/gui -Isrc/yacc -Isrc/cheat -Isrc/httplib -c src/gui/WhatsNewDialog.cxx -o out/src/gui/WhatsNewDialog.o In file included from src/gui/WhatsNewDialog.cxx:18: In file included from src/emucore/OSystem.hxx:55: In file included from src/emucore/FSNode.hxx:23: src/common/bspf.hxx:245:37: warning: unsafe pointer arithmetic [-Wunsafe-buffer-usage] const auto pos = std::search(s1.cbegin()+startpos, s1.cend(), ~~~^~~~~~~~ src/common/bspf.hxx:249:56: warning: unsafe pointer arithmetic [-Wunsafe-buffer-usage] return pos == s1.cend() ? string::npos : pos - (s1.cbegin()+startpos); ~~~^~~~~~~~ In file included from src/gui/WhatsNewDialog.cxx:18: In file included from src/emucore/OSystem.hxx:55: src/emucore/FSNode.hxx:513:31: warning: unsafe pointer arithmetic [-Wunsafe-buffer-usage] const char* cur = start + str.size() - 2; ~~~~~~^~~~~~~~~~~~ src/emucore/FSNode.hxx:512:19: warning: 'start' is an unsafe pointer used for buffer access [-Wunsafe-buffer-usage] const char* start = str.c_str(); ~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~ src/emucore/FSNode.hxx:513:25: note: used in pointer arithmetic here const char* cur = start + str.size() - 2; ^~~~~ src/emucore/FSNode.hxx:513:19: warning: 'cur' is an unsafe pointer used for buffer access [-Wunsafe-buffer-usage] const char* cur = start + str.size() - 2; ~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~ src/emucore/FSNode.hxx:518:14: note: used in pointer arithmetic here return cur + 1; ^~~ src/emucore/FSNode.hxx:516:11: note: used in pointer arithmetic here --cur; ^~~ In file included from src/gui/WhatsNewDialog.cxx:22: In file included from src/gui/WhatsNewDialog.hxx:21: In file included from src/gui/Dialog.hxx:31: In file included from src/gui/Widget.hxx:33: In file included from src/common/StellaKeys.hxx:22: In file included from src/common/SDL_lib.hxx:34: In file included from /usr/local/include/SDL2/SDL.h:32: In file included from /usr/local/include/SDL2/SDL_main.h:25: /usr/local/include/SDL2/SDL_stdinc.h:544:13: warning: '_p' is an unsafe pointer used for buffer access [-Wunsafe-buffer-usage] Uint32 *_p = SDL_static_cast(Uint32 *, dst); ~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /usr/local/include/SDL2/SDL_stdinc.h:550:26: note: used in pointer arithmetic here case 0: do { *_p++ = _val; SDL_FALLTHROUGH; ^~ /usr/local/include/SDL2/SDL_stdinc.h:553:26: note: used in pointer arithmetic here case 1: *_p++ = _val; ^~ /usr/local/include/SDL2/SDL_stdinc.h:551:26: note: used in pointer arithmetic here case 3: *_p++ = _val; SDL_FALLTHROUGH; ^~ /usr/local/include/SDL2/SDL_stdinc.h:552:26: note: used in pointer arithmetic here case 2: *_p++ = _val; SDL_FALLTHROUGH; ^~ 6 warnings generated. mkdir -p -p src/gui/.deps mkdir -p -p out/src/gui c++ -MMD -MF "src/gui/.deps/Widget.d" -MQ "out/src/gui/Widget.o" -MP -O2 -pipe -I/usr/X11R6/include -I/usr/local/include -x c++ -Wall -Wextra -Wno-unused-parameter -Wno-multichar -Wunused -Woverloaded-virtual -Wnon-virtual-dtor -std=c++17 -Weverything -Wno-c++98-compat-pedantic -Wno-unknown-warning-option -Wno-switch-enum -Wno-conversion -Wno-covered-switch-default -Wno-inconsistent-missing-destructor-override -Wno-float-equal -Wno-exit-time-destructors -Wno-global-constructors -Wno-weak-vtables -Wno-four-char-constants -Wno-padded -Wno-reserved-identifier -Wno-duplicate-enum -fomit-frame-pointer -DSDL_SUPPORT -D_GLIBCXX_USE_CXX11_ABI=1 -DUNIX -DBSPF_UNIX -DGUI_SUPPORT -DWINDOWED_SUPPORT -DSOUND_SUPPORT -DDEBUGGER_SUPPORT -DJOYSTICK_SUPPORT -DCHEATCODE_SUPPORT -DHTTP_LIB_SUPPORT -DPNG_SUPPORT -DZIP_SUPPORT -Isrc/emucore -Isrc/common -Isrc/common/tv_filters -Isrc/emucore/tia -Isrc/emucore/tia/frame-manager -Isrc/json -Isrc/common/repository/sqlite -I/usr/local/include -I/usr/local/include/SDL2 -I/usr/X11R6/include -D_REENTRANT -I/usr/X11R6/include -Isrc/unix -Isrc/gui -Isrc/debugger -Isrc/debugger/gui -Isrc/yacc -Isrc/cheat -Isrc/httplib -c src/gui/Widget.cxx -o out/src/gui/Widget.o In file included from src/gui/Widget.cxx:21: src/common/bspf.hxx:245:37: warning: unsafe pointer arithmetic [-Wunsafe-buffer-usage] const auto pos = std::search(s1.cbegin()+startpos, s1.cend(), ~~~^~~~~~~~ src/common/bspf.hxx:249:56: warning: unsafe pointer arithmetic [-Wunsafe-buffer-usage] return pos == s1.cend() ? string::npos : pos - (s1.cbegin()+startpos); ~~~^~~~~~~~ In file included from src/gui/Widget.cxx:23: In file included from src/gui/Dialog.hxx:31: In file included from src/gui/Widget.hxx:33: In file included from src/common/StellaKeys.hxx:22: In file included from src/common/SDL_lib.hxx:34: In file included from /usr/local/include/SDL2/SDL.h:32: In file included from /usr/local/include/SDL2/SDL_main.h:25: /usr/local/include/SDL2/SDL_stdinc.h:544:13: warning: '_p' is an unsafe pointer used for buffer access [-Wunsafe-buffer-usage] Uint32 *_p = SDL_static_cast(Uint32 *, dst); ~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /usr/local/include/SDL2/SDL_stdinc.h:553:26: note: used in pointer arithmetic here case 1: *_p++ = _val; ^~ /usr/local/include/SDL2/SDL_stdinc.h:550:26: note: used in pointer arithmetic here case 0: do { *_p++ = _val; SDL_FALLTHROUGH; ^~ /usr/local/include/SDL2/SDL_stdinc.h:552:26: note: used in pointer arithmetic here case 2: *_p++ = _val; SDL_FALLTHROUGH; ^~ /usr/local/include/SDL2/SDL_stdinc.h:551:26: note: used in pointer arithmetic here case 3: *_p++ = _val; SDL_FALLTHROUGH; ^~ In file included from src/gui/Widget.cxx:27: In file included from src/emucore/OSystem.hxx:55: src/emucore/FSNode.hxx:513:31: warning: unsafe pointer arithmetic [-Wunsafe-buffer-usage] const char* cur = start + str.size() - 2; ~~~~~~^~~~~~~~~~~~ src/emucore/FSNode.hxx:512:19: warning: 'start' is an unsafe pointer used for buffer access [-Wunsafe-buffer-usage] const char* start = str.c_str(); ~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~ src/emucore/FSNode.hxx:513:25: note: used in pointer arithmetic here const char* cur = start + str.size() - 2; ^~~~~ src/emucore/FSNode.hxx:513:19: warning: 'cur' is an unsafe pointer used for buffer access [-Wunsafe-buffer-usage] const char* cur = start + str.size() - 2; ~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~ src/emucore/FSNode.hxx:518:14: note: used in pointer arithmetic here return cur + 1; ^~~ src/emucore/FSNode.hxx:516:11: note: used in pointer arithmetic here --cur; ^~~ 6 warnings generated. mkdir -p -p src/debugger/.deps mkdir -p -p out/src/debugger c++ -MMD -MF "src/debugger/.deps/BreakpointMap.d" -MQ "out/src/debugger/BreakpointMap.o" -MP -O2 -pipe -I/usr/X11R6/include -I/usr/local/include -x c++ -Wall -Wextra -Wno-unused-parameter -Wno-multichar -Wunused -Woverloaded-virtual -Wnon-virtual-dtor -std=c++17 -Weverything -Wno-c++98-compat-pedantic -Wno-unknown-warning-option -Wno-switch-enum -Wno-conversion -Wno-covered-switch-default -Wno-inconsistent-missing-destructor-override -Wno-float-equal -Wno-exit-time-destructors -Wno-global-constructors -Wno-weak-vtables -Wno-four-char-constants -Wno-padded -Wno-reserved-identifier -Wno-duplicate-enum -fomit-frame-pointer -DSDL_SUPPORT -D_GLIBCXX_USE_CXX11_ABI=1 -DUNIX -DBSPF_UNIX -DGUI_SUPPORT -DWINDOWED_SUPPORT -DSOUND_SUPPORT -DDEBUGGER_SUPPORT -DJOYSTICK_SUPPORT -DCHEATCODE_SUPPORT -DHTTP_LIB_SUPPORT -DPNG_SUPPORT -DZIP_SUPPORT -Isrc/emucore -Isrc/common -Isrc/common/tv_filters -Isrc/emucore/tia -Isrc/emucore/tia/frame-manager -Isrc/json -Isrc/common/repository/sqlite -I/usr/local/include -I/usr/local/include/SDL2 -I/usr/X11R6/include -D_REENTRANT -I/usr/X11R6/include -Isrc/unix -Isrc/gui -Isrc/debugger -Isrc/debugger/gui -Isrc/yacc -Isrc/cheat -Isrc/httplib -c src/debugger/BreakpointMap.cxx -o out/src/debugger/BreakpointMap.o In file included from src/debugger/BreakpointMap.cxx:19: In file included from src/debugger/BreakpointMap.hxx:23: src/common/bspf.hxx:245:37: warning: unsafe pointer arithmetic [-Wunsafe-buffer-usage] const auto pos = std::search(s1.cbegin()+startpos, s1.cend(), ~~~^~~~~~~~ src/common/bspf.hxx:249:56: warning: unsafe pointer arithmetic [-Wunsafe-buffer-usage] return pos == s1.cend() ? string::npos : pos - (s1.cbegin()+startpos); ~~~^~~~~~~~ 2 warnings generated. mkdir -p -p src/debugger/.deps mkdir -p -p out/src/debugger c++ -MMD -MF "src/debugger/.deps/Debugger.d" -MQ "out/src/debugger/Debugger.o" -MP -O2 -pipe -I/usr/X11R6/include -I/usr/local/include -x c++ -Wall -Wextra -Wno-unused-parameter -Wno-multichar -Wunused -Woverloaded-virtual -Wnon-virtual-dtor -std=c++17 -Weverything -Wno-c++98-compat-pedantic -Wno-unknown-warning-option -Wno-switch-enum -Wno-conversion -Wno-covered-switch-default -Wno-inconsistent-missing-destructor-override -Wno-float-equal -Wno-exit-time-destructors -Wno-global-constructors -Wno-weak-vtables -Wno-four-char-constants -Wno-padded -Wno-reserved-identifier -Wno-duplicate-enum -fomit-frame-pointer -DSDL_SUPPORT -D_GLIBCXX_USE_CXX11_ABI=1 -DUNIX -DBSPF_UNIX -DGUI_SUPPORT -DWINDOWED_SUPPORT -DSOUND_SUPPORT -DDEBUGGER_SUPPORT -DJOYSTICK_SUPPORT -DCHEATCODE_SUPPORT -DHTTP_LIB_SUPPORT -DPNG_SUPPORT -DZIP_SUPPORT -Isrc/emucore -Isrc/common -Isrc/common/tv_filters -Isrc/emucore/tia -Isrc/emucore/tia/frame-manager -Isrc/json -Isrc/common/repository/sqlite -I/usr/local/include -I/usr/local/include/SDL2 -I/usr/X11R6/include -D_REENTRANT -I/usr/X11R6/include -Isrc/unix -Isrc/gui -Isrc/debugger -Isrc/debugger/gui -Isrc/yacc -Isrc/cheat -Isrc/httplib -c src/debugger/Debugger.cxx -o out/src/debugger/Debugger.o In file included from src/debugger/Debugger.cxx:20: src/common/bspf.hxx:245:37: warning: unsafe pointer arithmetic [-Wunsafe-buffer-usage] const auto pos = std::search(s1.cbegin()+startpos, s1.cend(), ~~~^~~~~~~~ src/common/bspf.hxx:249:56: warning: unsafe pointer arithmetic [-Wunsafe-buffer-usage] return pos == s1.cend() ? string::npos : pos - (s1.cbegin()+startpos); ~~~^~~~~~~~ In file included from src/debugger/Debugger.cxx:23: In file included from src/emucore/OSystem.hxx:55: src/emucore/FSNode.hxx:513:31: warning: unsafe pointer arithmetic [-Wunsafe-buffer-usage] const char* cur = start + str.size() - 2; ~~~~~~^~~~~~~~~~~~ src/emucore/FSNode.hxx:512:19: warning: 'start' is an unsafe pointer used for buffer access [-Wunsafe-buffer-usage] const char* start = str.c_str(); ~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~ src/emucore/FSNode.hxx:513:25: note: used in pointer arithmetic here const char* cur = start + str.size() - 2; ^~~~~ src/emucore/FSNode.hxx:513:19: warning: 'cur' is an unsafe pointer used for buffer access [-Wunsafe-buffer-usage] const char* cur = start + str.size() - 2; ~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~ src/emucore/FSNode.hxx:516:11: note: used in pointer arithmetic here --cur; ^~~ src/emucore/FSNode.hxx:518:14: note: used in pointer arithmetic here return cur + 1; ^~~ In file included from src/debugger/Debugger.cxx:25: In file included from src/emucore/EventHandler.hxx:38: In file included from src/common/PKeyboardHandler.hxx:30: In file included from src/common/KeyMap.hxx:24: In file included from src/common/StellaKeys.hxx:22: In file included from src/common/SDL_lib.hxx:34: In file included from /usr/local/include/SDL2/SDL.h:32: In file included from /usr/local/include/SDL2/SDL_main.h:25: /usr/local/include/SDL2/SDL_stdinc.h:544:13: warning: '_p' is an unsafe pointer used for buffer access [-Wunsafe-buffer-usage] Uint32 *_p = SDL_static_cast(Uint32 *, dst); ~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /usr/local/include/SDL2/SDL_stdinc.h:550:26: note: used in pointer arithmetic here case 0: do { *_p++ = _val; SDL_FALLTHROUGH; ^~ /usr/local/include/SDL2/SDL_stdinc.h:551:26: note: used in pointer arithmetic here case 3: *_p++ = _val; SDL_FALLTHROUGH; ^~ /usr/local/include/SDL2/SDL_stdinc.h:552:26: note: used in pointer arithmetic here case 2: *_p++ = _val; SDL_FALLTHROUGH; ^~ /usr/local/include/SDL2/SDL_stdinc.h:553:26: note: used in pointer arithmetic here case 1: *_p++ = _val; ^~ In file included from src/debugger/Debugger.cxx:29: src/debugger/gui/PromptWidget.hxx:61:35: warning: unsafe buffer access [-Wunsafe-buffer-usage] int& buffer(int idx) { return _buffer[idx % kBufferSize]; } ^~~~~~~ In file included from src/debugger/Debugger.cxx:55: In file included from src/emucore/tia/TIA.hxx:37: src/emucore/tia/Missile.hxx:170:7: warning: unsafe buffer access [-Wunsafe-buffer-usage] if (myDecodes[myCounter] && !myResmp) { ^~~~~~~~~ src/emucore/tia/Missile.hxx:173:14: warning: unsafe buffer access [-Wunsafe-buffer-usage] myCopy = myDecodes[myCounter]; ^~~~~~~~~ In file included from src/debugger/Debugger.cxx:55: In file included from src/emucore/tia/TIA.hxx:38: src/emucore/tia/Player.hxx:186:7: warning: unsafe buffer access [-Wunsafe-buffer-usage] if (myDecodes[myCounter]) { ^~~~~~~~~ src/emucore/tia/Player.hxx:190:14: warning: unsafe buffer access [-Wunsafe-buffer-usage] myCopy = myDecodes[myCounter]; ^~~~~~~~~ 11 warnings generated. mkdir -p -p src/debugger/.deps mkdir -p -p out/src/debugger c++ -MMD -MF "src/debugger/.deps/DebuggerParser.d" -MQ "out/src/debugger/DebuggerParser.o" -MP -O2 -pipe -I/usr/X11R6/include -I/usr/local/include -x c++ -Wall -Wextra -Wno-unused-parameter -Wno-multichar -Wunused -Woverloaded-virtual -Wnon-virtual-dtor -std=c++17 -Weverything -Wno-c++98-compat-pedantic -Wno-unknown-warning-option -Wno-switch-enum -Wno-conversion -Wno-covered-switch-default -Wno-inconsistent-missing-destructor-override -Wno-float-equal -Wno-exit-time-destructors -Wno-global-constructors -Wno-weak-vtables -Wno-four-char-constants -Wno-padded -Wno-reserved-identifier -Wno-duplicate-enum -fomit-frame-pointer -DSDL_SUPPORT -D_GLIBCXX_USE_CXX11_ABI=1 -DUNIX -DBSPF_UNIX -DGUI_SUPPORT -DWINDOWED_SUPPORT -DSOUND_SUPPORT -DDEBUGGER_SUPPORT -DJOYSTICK_SUPPORT -DCHEATCODE_SUPPORT -DHTTP_LIB_SUPPORT -DPNG_SUPPORT -DZIP_SUPPORT -Isrc/emucore -Isrc/common -Isrc/common/tv_filters -Isrc/emucore/tia -Isrc/emucore/tia/frame-manager -Isrc/json -Isrc/common/repository/sqlite -I/usr/local/include -I/usr/local/include/SDL2 -I/usr/X11R6/include -D_REENTRANT -I/usr/X11R6/include -Isrc/unix -Isrc/gui -Isrc/debugger -Isrc/debugger/gui -Isrc/yacc -Isrc/cheat -Isrc/httplib -c src/debugger/DebuggerParser.cxx -o out/src/debugger/DebuggerParser.o In file included from src/debugger/DebuggerParser.cxx:18: src/common/bspf.hxx:245:37: warning: unsafe pointer arithmetic [-Wunsafe-buffer-usage] const auto pos = std::search(s1.cbegin()+startpos, s1.cend(), ~~~^~~~~~~~ src/common/bspf.hxx:249:56: warning: unsafe pointer arithmetic [-Wunsafe-buffer-usage] return pos == s1.cend() ? string::npos : pos - (s1.cbegin()+startpos); ~~~^~~~~~~~ In file included from src/debugger/DebuggerParser.cxx:20: In file included from src/gui/Dialog.hxx:31: In file included from src/gui/Widget.hxx:33: In file included from src/common/StellaKeys.hxx:22: In file included from src/common/SDL_lib.hxx:34: In file included from /usr/local/include/SDL2/SDL.h:32: In file included from /usr/local/include/SDL2/SDL_main.h:25: /usr/local/include/SDL2/SDL_stdinc.h:544:13: warning: '_p' is an unsafe pointer used for buffer access [-Wunsafe-buffer-usage] Uint32 *_p = SDL_static_cast(Uint32 *, dst); ~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /usr/local/include/SDL2/SDL_stdinc.h:552:26: note: used in pointer arithmetic here case 2: *_p++ = _val; SDL_FALLTHROUGH; ^~ /usr/local/include/SDL2/SDL_stdinc.h:553:26: note: used in pointer arithmetic here case 1: *_p++ = _val; ^~ /usr/local/include/SDL2/SDL_stdinc.h:550:26: note: used in pointer arithmetic here case 0: do { *_p++ = _val; SDL_FALLTHROUGH; ^~ /usr/local/include/SDL2/SDL_stdinc.h:551:26: note: used in pointer arithmetic here case 3: *_p++ = _val; SDL_FALLTHROUGH; ^~ In file included from src/debugger/DebuggerParser.cxx:32: src/emucore/FSNode.hxx:513:31: warning: unsafe pointer arithmetic [-Wunsafe-buffer-usage] const char* cur = start + str.size() - 2; ~~~~~~^~~~~~~~~~~~ src/emucore/FSNode.hxx:512:19: warning: 'start' is an unsafe pointer used for buffer access [-Wunsafe-buffer-usage] const char* start = str.c_str(); ~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~ src/emucore/FSNode.hxx:513:25: note: used in pointer arithmetic here const char* cur = start + str.size() - 2; ^~~~~ src/emucore/FSNode.hxx:513:19: warning: 'cur' is an unsafe pointer used for buffer access [-Wunsafe-buffer-usage] const char* cur = start + str.size() - 2; ~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~ src/emucore/FSNode.hxx:518:14: note: used in pointer arithmetic here return cur + 1; ^~~ src/emucore/FSNode.hxx:516:11: note: used in pointer arithmetic here --cur; ^~~ In file included from src/debugger/DebuggerParser.cxx:37: src/debugger/gui/PromptWidget.hxx:61:35: warning: unsafe buffer access [-Wunsafe-buffer-usage] int& buffer(int idx) { return _buffer[idx % kBufferSize]; } ^~~~~~~ src/debugger/DebuggerParser.cxx:248:17: warning: 'a' is an unsafe pointer used for buffer access [-Wunsafe-buffer-usage] const char* a = arg.c_str(); ~~~~~~~~~~~~^~~~~~~~~~~~~~~ src/debugger/DebuggerParser.cxx:281:27: note: used in pointer arithmetic here const char d = *a++; ^ src/debugger/DebuggerParser.cxx:271:31: note: used in pointer arithmetic here const int digit = (*a++) - '0'; ^ src/debugger/DebuggerParser.cxx:256:19: note: used in pointer arithmetic here switch(*a++) { ^ src/debugger/DebuggerParser.cxx:415:15: warning: 'p' is an unsafe pointer used for buffer access [-Wunsafe-buffer-usage] Parameters* p = commands[cmd].parms.data(); ~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ src/debugger/DebuggerParser.cxx:508:7: note: used in pointer arithmetic here ++p; ^ src/debugger/DebuggerParser.cxx:434:7: note: used in pointer arithmetic here ++p; ^ src/debugger/DebuggerParser.cxx:2138:10: warning: variable 'count' set but not used [-Wunused-but-set-variable] uInt32 count = 0; ^ 10 warnings generated. mkdir -p -p src/debugger/.deps mkdir -p -p out/src/debugger c++ -MMD -MF "src/debugger/.deps/CartDebug.d" -MQ "out/src/debugger/CartDebug.o" -MP -O2 -pipe -I/usr/X11R6/include -I/usr/local/include -x c++ -Wall -Wextra -Wno-unused-parameter -Wno-multichar -Wunused -Woverloaded-virtual -Wnon-virtual-dtor -std=c++17 -Weverything -Wno-c++98-compat-pedantic -Wno-unknown-warning-option -Wno-switch-enum -Wno-conversion -Wno-covered-switch-default -Wno-inconsistent-missing-destructor-override -Wno-float-equal -Wno-exit-time-destructors -Wno-global-constructors -Wno-weak-vtables -Wno-four-char-constants -Wno-padded -Wno-reserved-identifier -Wno-duplicate-enum -fomit-frame-pointer -DSDL_SUPPORT -D_GLIBCXX_USE_CXX11_ABI=1 -DUNIX -DBSPF_UNIX -DGUI_SUPPORT -DWINDOWED_SUPPORT -DSOUND_SUPPORT -DDEBUGGER_SUPPORT -DJOYSTICK_SUPPORT -DCHEATCODE_SUPPORT -DHTTP_LIB_SUPPORT -DPNG_SUPPORT -DZIP_SUPPORT -Isrc/emucore -Isrc/common -Isrc/common/tv_filters -Isrc/emucore/tia -Isrc/emucore/tia/frame-manager -Isrc/json -Isrc/common/repository/sqlite -I/usr/local/include -I/usr/local/include/SDL2 -I/usr/X11R6/include -D_REENTRANT -I/usr/X11R6/include -Isrc/unix -Isrc/gui -Isrc/debugger -Isrc/debugger/gui -Isrc/yacc -Isrc/cheat -Isrc/httplib -c src/debugger/CartDebug.cxx -o out/src/debugger/CartDebug.o In file included from src/debugger/CartDebug.cxx:18: src/common/bspf.hxx:245:37: warning: unsafe pointer arithmetic [-Wunsafe-buffer-usage] const auto pos = std::search(s1.cbegin()+startpos, s1.cend(), ~~~^~~~~~~~ src/common/bspf.hxx:249:56: warning: unsafe pointer arithmetic [-Wunsafe-buffer-usage] return pos == s1.cend() ? string::npos : pos - (s1.cbegin()+startpos); ~~~^~~~~~~~ In file included from src/debugger/CartDebug.cxx:21: src/emucore/FSNode.hxx:513:31: warning: unsafe pointer arithmetic [-Wunsafe-buffer-usage] const char* cur = start + str.size() - 2; ~~~~~~^~~~~~~~~~~~ src/emucore/FSNode.hxx:512:19: warning: 'start' is an unsafe pointer used for buffer access [-Wunsafe-buffer-usage] const char* start = str.c_str(); ~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~ src/emucore/FSNode.hxx:513:25: note: used in pointer arithmetic here const char* cur = start + str.size() - 2; ^~~~~ src/emucore/FSNode.hxx:513:19: warning: 'cur' is an unsafe pointer used for buffer access [-Wunsafe-buffer-usage] const char* cur = start + str.size() - 2; ~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~ src/emucore/FSNode.hxx:518:14: note: used in pointer arithmetic here return cur + 1; ^~~ src/emucore/FSNode.hxx:516:11: note: used in pointer arithmetic here --cur; ^~~ In file included from src/debugger/CartDebug.cxx:23: In file included from src/debugger/Debugger.hxx:48: In file included from src/gui/DialogContainer.hxx:26: In file included from src/common/StellaKeys.hxx:22: In file included from src/common/SDL_lib.hxx:34: In file included from /usr/local/include/SDL2/SDL.h:32: In file included from /usr/local/include/SDL2/SDL_main.h:25: /usr/local/include/SDL2/SDL_stdinc.h:544:13: warning: '_p' is an unsafe pointer used for buffer access [-Wunsafe-buffer-usage] Uint32 *_p = SDL_static_cast(Uint32 *, dst); ~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /usr/local/include/SDL2/SDL_stdinc.h:551:26: note: used in pointer arithmetic here case 3: *_p++ = _val; SDL_FALLTHROUGH; ^~ /usr/local/include/SDL2/SDL_stdinc.h:552:26: note: used in pointer arithmetic here case 2: *_p++ = _val; SDL_FALLTHROUGH; ^~ /usr/local/include/SDL2/SDL_stdinc.h:550:26: note: used in pointer arithmetic here case 0: do { *_p++ = _val; SDL_FALLTHROUGH; ^~ /usr/local/include/SDL2/SDL_stdinc.h:553:26: note: used in pointer arithmetic here case 1: *_p++ = _val; ^~ In file included from src/debugger/CartDebug.cxx:37: In file included from src/emucore/tia/TIA.hxx:37: src/emucore/tia/Missile.hxx:170:7: warning: unsafe buffer access [-Wunsafe-buffer-usage] if (myDecodes[myCounter] && !myResmp) { ^~~~~~~~~ src/emucore/tia/Missile.hxx:173:14: warning: unsafe buffer access [-Wunsafe-buffer-usage] myCopy = myDecodes[myCounter]; ^~~~~~~~~ In file included from src/debugger/CartDebug.cxx:37: In file included from src/emucore/tia/TIA.hxx:38: src/emucore/tia/Player.hxx:186:7: warning: unsafe buffer access [-Wunsafe-buffer-usage] if (myDecodes[myCounter]) { ^~~~~~~~~ src/emucore/tia/Player.hxx:190:14: warning: unsafe buffer access [-Wunsafe-buffer-usage] myCopy = myDecodes[myCounter]; ^~~~~~~~~ src/debugger/CartDebug.cxx:223:12: warning: 'port' is an unsafe buffer that does not perform bounds checks [-Wunsafe-buffer-usage] char port[37]; // NOLINT (convert to stringstream) ~~~~~^~~~~~~~ src/debugger/CartDebug.cxx:226:7: note: used in buffer access here port[2] = port[3] = 'x'; ^~~~ src/debugger/CartDebug.cxx:226:17: note: used in buffer access here port[2] = port[3] = 'x'; ^~~~ src/debugger/CartDebug.cxx:851:49: warning: unsafe pointer arithmetic [-Wunsafe-buffer-usage] const char* p = addr_s[0] == 'U' ? addr_s.c_str() + 1 : addr_s.c_str(); ~~~~~~~^~~~~~~ src/debugger/CartDebug.cxx:1288:12: warning: 'SECAM_COLOR' is an unsafe buffer that does not perform bounds checks [-Wunsafe-buffer-usage] string SECAM_COLOR[8] = { ~~~~~~~^~~~~~~~~~~~~~~~~~ src/debugger/CartDebug.cxx:1294:27: note: used in buffer access here out << ALIGN(16) << SECAM_COLOR[i] << " = $" << Base::HEX1 << (i << 1) << "\n"; ^~~~~~~~~~~ src/debugger/CartDebug.cxx:1264:12: warning: 'NTSC_COLOR' is an unsafe buffer that does not perform bounds checks [-Wunsafe-buffer-usage] string NTSC_COLOR[16] = { ~~~~~~~^~~~~~~~~~~~~~~~~~ src/debugger/CartDebug.cxx:1272:27: note: used in buffer access here out << ALIGN(16) << NTSC_COLOR[i] << " = $" << Base::HEX2 << (i << 4) << "\n"; ^~~~~~~~~~ src/debugger/CartDebug.cxx:1276:12: warning: 'PAL_COLOR' is an unsafe buffer that does not perform bounds checks [-Wunsafe-buffer-usage] string PAL_COLOR[16] = { ~~~~~~~^~~~~~~~~~~~~~~~~ src/debugger/CartDebug.cxx:1284:27: note: used in buffer access here out << ALIGN(16) << PAL_COLOR[i] << " = $" << Base::HEX2 << (i << 4) << "\n"; ^~~~~~~~~ 15 warnings generated. mkdir -p -p src/debugger/.deps mkdir -p -p out/src/debugger c++ -MMD -MF "src/debugger/.deps/CpuDebug.d" -MQ "out/src/debugger/CpuDebug.o" -MP -O2 -pipe -I/usr/X11R6/include -I/usr/local/include -x c++ -Wall -Wextra -Wno-unused-parameter -Wno-multichar -Wunused -Woverloaded-virtual -Wnon-virtual-dtor -std=c++17 -Weverything -Wno-c++98-compat-pedantic -Wno-unknown-warning-option -Wno-switch-enum -Wno-conversion -Wno-covered-switch-default -Wno-inconsistent-missing-destructor-override -Wno-float-equal -Wno-exit-time-destructors -Wno-global-constructors -Wno-weak-vtables -Wno-four-char-constants -Wno-padded -Wno-reserved-identifier -Wno-duplicate-enum -fomit-frame-pointer -DSDL_SUPPORT -D_GLIBCXX_USE_CXX11_ABI=1 -DUNIX -DBSPF_UNIX -DGUI_SUPPORT -DWINDOWED_SUPPORT -DSOUND_SUPPORT -DDEBUGGER_SUPPORT -DJOYSTICK_SUPPORT -DCHEATCODE_SUPPORT -DHTTP_LIB_SUPPORT -DPNG_SUPPORT -DZIP_SUPPORT -Isrc/emucore -Isrc/common -Isrc/common/tv_filters -Isrc/emucore/tia -Isrc/emucore/tia/frame-manager -Isrc/json -Isrc/common/repository/sqlite -I/usr/local/include -I/usr/local/include/SDL2 -I/usr/X11R6/include -D_REENTRANT -I/usr/X11R6/include -Isrc/unix -Isrc/gui -Isrc/debugger -Isrc/debugger/gui -Isrc/yacc -Isrc/cheat -Isrc/httplib -c src/debugger/CpuDebug.cxx -o out/src/debugger/CpuDebug.o In file included from src/debugger/CpuDebug.cxx:20: In file included from src/emucore/M6502.hxx:31: In file included from src/debugger/Expression.hxx:21: src/common/bspf.hxx:245:37: warning: unsafe pointer arithmetic [-Wunsafe-buffer-usage] const auto pos = std::search(s1.cbegin()+startpos, s1.cend(), ~~~^~~~~~~~ src/common/bspf.hxx:249:56: warning: unsafe pointer arithmetic [-Wunsafe-buffer-usage] return pos == s1.cend() ? string::npos : pos - (s1.cbegin()+startpos); ~~~^~~~~~~~ In file included from src/debugger/CpuDebug.cxx:22: In file included from src/debugger/Debugger.hxx:48: In file included from src/gui/DialogContainer.hxx:26: In file included from src/common/StellaKeys.hxx:22: In file included from src/common/SDL_lib.hxx:34: In file included from /usr/local/include/SDL2/SDL.h:32: In file included from /usr/local/include/SDL2/SDL_main.h:25: /usr/local/include/SDL2/SDL_stdinc.h:544:13: warning: '_p' is an unsafe pointer used for buffer access [-Wunsafe-buffer-usage] Uint32 *_p = SDL_static_cast(Uint32 *, dst); ~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /usr/local/include/SDL2/SDL_stdinc.h:550:26: note: used in pointer arithmetic here case 0: do { *_p++ = _val; SDL_FALLTHROUGH; ^~ /usr/local/include/SDL2/SDL_stdinc.h:551:26: note: used in pointer arithmetic here case 3: *_p++ = _val; SDL_FALLTHROUGH; ^~ /usr/local/include/SDL2/SDL_stdinc.h:552:26: note: used in pointer arithmetic here case 2: *_p++ = _val; SDL_FALLTHROUGH; ^~ /usr/local/include/SDL2/SDL_stdinc.h:553:26: note: used in pointer arithmetic here case 1: *_p++ = _val; ^~ 3 warnings generated. mkdir -p -p src/debugger/.deps mkdir -p -p out/src/debugger c++ -MMD -MF "src/debugger/.deps/DiStella.d" -MQ "out/src/debugger/DiStella.o" -MP -O2 -pipe -I/usr/X11R6/include -I/usr/local/include -x c++ -Wall -Wextra -Wno-unused-parameter -Wno-multichar -Wunused -Woverloaded-virtual -Wnon-virtual-dtor -std=c++17 -Weverything -Wno-c++98-compat-pedantic -Wno-unknown-warning-option -Wno-switch-enum -Wno-conversion -Wno-covered-switch-default -Wno-inconsistent-missing-destructor-override -Wno-float-equal -Wno-exit-time-destructors -Wno-global-constructors -Wno-weak-vtables -Wno-four-char-constants -Wno-padded -Wno-reserved-identifier -Wno-duplicate-enum -fomit-frame-pointer -DSDL_SUPPORT -D_GLIBCXX_USE_CXX11_ABI=1 -DUNIX -DBSPF_UNIX -DGUI_SUPPORT -DWINDOWED_SUPPORT -DSOUND_SUPPORT -DDEBUGGER_SUPPORT -DJOYSTICK_SUPPORT -DCHEATCODE_SUPPORT -DHTTP_LIB_SUPPORT -DPNG_SUPPORT -DZIP_SUPPORT -Isrc/emucore -Isrc/common -Isrc/common/tv_filters -Isrc/emucore/tia -Isrc/emucore/tia/frame-manager -Isrc/json -Isrc/common/repository/sqlite -I/usr/local/include -I/usr/local/include/SDL2 -I/usr/X11R6/include -D_REENTRANT -I/usr/X11R6/include -Isrc/unix -Isrc/gui -Isrc/debugger -Isrc/debugger/gui -Isrc/yacc -Isrc/cheat -Isrc/httplib -c src/debugger/DiStella.cxx -o out/src/debugger/DiStella.o In file included from src/debugger/DiStella.cxx:18: src/common/bspf.hxx:245:37: warning: unsafe pointer arithmetic [-Wunsafe-buffer-usage] const auto pos = std::search(s1.cbegin()+startpos, s1.cend(), ~~~^~~~~~~~ src/common/bspf.hxx:249:56: warning: unsafe pointer arithmetic [-Wunsafe-buffer-usage] return pos == s1.cend() ? string::npos : pos - (s1.cbegin()+startpos); ~~~^~~~~~~~ In file included from src/debugger/DiStella.cxx:19: In file included from src/debugger/Debugger.hxx:48: In file included from src/gui/DialogContainer.hxx:26: In file included from src/common/StellaKeys.hxx:22: In file included from src/common/SDL_lib.hxx:34: In file included from /usr/local/include/SDL2/SDL.h:32: In file included from /usr/local/include/SDL2/SDL_main.h:25: /usr/local/include/SDL2/SDL_stdinc.h:544:13: warning: '_p' is an unsafe pointer used for buffer access [-Wunsafe-buffer-usage] Uint32 *_p = SDL_static_cast(Uint32 *, dst); ~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /usr/local/include/SDL2/SDL_stdinc.h:553:26: note: used in pointer arithmetic here case 1: *_p++ = _val; ^~ /usr/local/include/SDL2/SDL_stdinc.h:552:26: note: used in pointer arithmetic here case 2: *_p++ = _val; SDL_FALLTHROUGH; ^~ /usr/local/include/SDL2/SDL_stdinc.h:550:26: note: used in pointer arithmetic here case 0: do { *_p++ = _val; SDL_FALLTHROUGH; ^~ /usr/local/include/SDL2/SDL_stdinc.h:551:26: note: used in pointer arithmetic here case 3: *_p++ = _val; SDL_FALLTHROUGH; ^~ src/debugger/DiStella.cxx:1142:10: warning: 'NTSC_COLOR' is an unsafe buffer that does not perform bounds checks [-Wunsafe-buffer-usage] string NTSC_COLOR[16] = { ~~~~~~~^~~~~~~~~~~~~~~~~~ src/debugger/DiStella.cxx:1181:13: note: used in buffer access here color = NTSC_COLOR[byte >> 4]; ^~~~~~~~~~ src/debugger/DiStella.cxx:1148:10: warning: 'PAL_COLOR' is an unsafe buffer that does not perform bounds checks [-Wunsafe-buffer-usage] string PAL_COLOR[16] = { ~~~~~~~^~~~~~~~~~~~~~~~~ src/debugger/DiStella.cxx:1186:13: note: used in buffer access here color = PAL_COLOR[byte >> 4]; ^~~~~~~~~ src/debugger/DiStella.cxx:1154:10: warning: 'SECAM_COLOR' is an unsafe buffer that does not perform bounds checks [-Wunsafe-buffer-usage] string SECAM_COLOR[8] = { ~~~~~~~^~~~~~~~~~~~~~~~~~ src/debugger/DiStella.cxx:1191:13: note: used in buffer access here color = SECAM_COLOR[(byte >> 1) & 0x7]; ^~~~~~~~~~~ 6 warnings generated. mkdir -p -p src/debugger/.deps mkdir -p -p out/src/debugger c++ -MMD -MF "src/debugger/.deps/RiotDebug.d" -MQ "out/src/debugger/RiotDebug.o" -MP -O2 -pipe -I/usr/X11R6/include -I/usr/local/include -x c++ -Wall -Wextra -Wno-unused-parameter -Wno-multichar -Wunused -Woverloaded-virtual -Wnon-virtual-dtor -std=c++17 -Weverything -Wno-c++98-compat-pedantic -Wno-unknown-warning-option -Wno-switch-enum -Wno-conversion -Wno-covered-switch-default -Wno-inconsistent-missing-destructor-override -Wno-float-equal -Wno-exit-time-destructors -Wno-global-constructors -Wno-weak-vtables -Wno-four-char-constants -Wno-padded -Wno-reserved-identifier -Wno-duplicate-enum -fomit-frame-pointer -DSDL_SUPPORT -D_GLIBCXX_USE_CXX11_ABI=1 -DUNIX -DBSPF_UNIX -DGUI_SUPPORT -DWINDOWED_SUPPORT -DSOUND_SUPPORT -DDEBUGGER_SUPPORT -DJOYSTICK_SUPPORT -DCHEATCODE_SUPPORT -DHTTP_LIB_SUPPORT -DPNG_SUPPORT -DZIP_SUPPORT -Isrc/emucore -Isrc/common -Isrc/common/tv_filters -Isrc/emucore/tia -Isrc/emucore/tia/frame-manager -Isrc/json -Isrc/common/repository/sqlite -I/usr/local/include -I/usr/local/include/SDL2 -I/usr/X11R6/include -D_REENTRANT -I/usr/X11R6/include -Isrc/unix -Isrc/gui -Isrc/debugger -Isrc/debugger/gui -Isrc/yacc -Isrc/cheat -Isrc/httplib -c src/debugger/RiotDebug.cxx -o out/src/debugger/RiotDebug.o In file included from src/debugger/RiotDebug.cxx:18: In file included from src/emucore/System.hxx:26: src/common/bspf.hxx:245:37: warning: unsafe pointer arithmetic [-Wunsafe-buffer-usage] const auto pos = std::search(s1.cbegin()+startpos, s1.cend(), ~~~^~~~~~~~ src/common/bspf.hxx:249:56: warning: unsafe pointer arithmetic [-Wunsafe-buffer-usage] return pos == s1.cend() ? string::npos : pos - (s1.cbegin()+startpos); ~~~^~~~~~~~ In file included from src/debugger/RiotDebug.cxx:19: In file included from src/emucore/tia/TIA.hxx:37: src/emucore/tia/Missile.hxx:170:7: warning: unsafe buffer access [-Wunsafe-buffer-usage] if (myDecodes[myCounter] && !myResmp) { ^~~~~~~~~ src/emucore/tia/Missile.hxx:173:14: warning: unsafe buffer access [-Wunsafe-buffer-usage] myCopy = myDecodes[myCounter]; ^~~~~~~~~ In file included from src/debugger/RiotDebug.cxx:19: In file included from src/emucore/tia/TIA.hxx:38: src/emucore/tia/Player.hxx:186:7: warning: unsafe buffer access [-Wunsafe-buffer-usage] if (myDecodes[myCounter]) { ^~~~~~~~~ src/emucore/tia/Player.hxx:190:14: warning: unsafe buffer access [-Wunsafe-buffer-usage] myCopy = myDecodes[myCounter]; ^~~~~~~~~ In file included from src/debugger/RiotDebug.cxx:21: In file included from src/debugger/Debugger.hxx:48: In file included from src/gui/DialogContainer.hxx:26: In file included from src/common/StellaKeys.hxx:22: In file included from src/common/SDL_lib.hxx:34: In file included from /usr/local/include/SDL2/SDL.h:32: In file included from /usr/local/include/SDL2/SDL_main.h:25: /usr/local/include/SDL2/SDL_stdinc.h:544:13: warning: '_p' is an unsafe pointer used for buffer access [-Wunsafe-buffer-usage] Uint32 *_p = SDL_static_cast(Uint32 *, dst); ~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /usr/local/include/SDL2/SDL_stdinc.h:550:26: note: used in pointer arithmetic here case 0: do { *_p++ = _val; SDL_FALLTHROUGH; ^~ /usr/local/include/SDL2/SDL_stdinc.h:551:26: note: used in pointer arithmetic here case 3: *_p++ = _val; SDL_FALLTHROUGH; ^~ /usr/local/include/SDL2/SDL_stdinc.h:552:26: note: used in pointer arithmetic here case 2: *_p++ = _val; SDL_FALLTHROUGH; ^~ /usr/local/include/SDL2/SDL_stdinc.h:553:26: note: used in pointer arithmetic here case 1: *_p++ = _val; ^~ 7 warnings generated. mkdir -p -p src/debugger/.deps mkdir -p -p out/src/debugger c++ -MMD -MF "src/debugger/.deps/TIADebug.d" -MQ "out/src/debugger/TIADebug.o" -MP -O2 -pipe -I/usr/X11R6/include -I/usr/local/include -x c++ -Wall -Wextra -Wno-unused-parameter -Wno-multichar -Wunused -Woverloaded-virtual -Wnon-virtual-dtor -std=c++17 -Weverything -Wno-c++98-compat-pedantic -Wno-unknown-warning-option -Wno-switch-enum -Wno-conversion -Wno-covered-switch-default -Wno-inconsistent-missing-destructor-override -Wno-float-equal -Wno-exit-time-destructors -Wno-global-constructors -Wno-weak-vtables -Wno-four-char-constants -Wno-padded -Wno-reserved-identifier -Wno-duplicate-enum -fomit-frame-pointer -DSDL_SUPPORT -D_GLIBCXX_USE_CXX11_ABI=1 -DUNIX -DBSPF_UNIX -DGUI_SUPPORT -DWINDOWED_SUPPORT -DSOUND_SUPPORT -DDEBUGGER_SUPPORT -DJOYSTICK_SUPPORT -DCHEATCODE_SUPPORT -DHTTP_LIB_SUPPORT -DPNG_SUPPORT -DZIP_SUPPORT -Isrc/emucore -Isrc/common -Isrc/common/tv_filters -Isrc/emucore/tia -Isrc/emucore/tia/frame-manager -Isrc/json -Isrc/common/repository/sqlite -I/usr/local/include -I/usr/local/include/SDL2 -I/usr/X11R6/include -D_REENTRANT -I/usr/X11R6/include -Isrc/unix -Isrc/gui -Isrc/debugger -Isrc/debugger/gui -Isrc/yacc -Isrc/cheat -Isrc/httplib -c src/debugger/TIADebug.cxx -o out/src/debugger/TIADebug.o In file included from src/debugger/TIADebug.cxx:18: In file included from src/common/Base.hxx:24: src/common/bspf.hxx:245:37: warning: unsafe pointer arithmetic [-Wunsafe-buffer-usage] const auto pos = std::search(s1.cbegin()+startpos, s1.cend(), ~~~^~~~~~~~ src/common/bspf.hxx:249:56: warning: unsafe pointer arithmetic [-Wunsafe-buffer-usage] return pos == s1.cend() ? string::npos : pos - (s1.cbegin()+startpos); ~~~^~~~~~~~ In file included from src/debugger/TIADebug.cxx:20: In file included from src/debugger/Debugger.hxx:48: In file included from src/gui/DialogContainer.hxx:26: In file included from src/common/StellaKeys.hxx:22: In file included from src/common/SDL_lib.hxx:34: In file included from /usr/local/include/SDL2/SDL.h:32: In file included from /usr/local/include/SDL2/SDL_main.h:25: /usr/local/include/SDL2/SDL_stdinc.h:544:13: warning: '_p' is an unsafe pointer used for buffer access [-Wunsafe-buffer-usage] Uint32 *_p = SDL_static_cast(Uint32 *, dst); ~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /usr/local/include/SDL2/SDL_stdinc.h:551:26: note: used in pointer arithmetic here case 3: *_p++ = _val; SDL_FALLTHROUGH; ^~ /usr/local/include/SDL2/SDL_stdinc.h:552:26: note: used in pointer arithmetic here case 2: *_p++ = _val; SDL_FALLTHROUGH; ^~ /usr/local/include/SDL2/SDL_stdinc.h:553:26: note: used in pointer arithmetic here case 1: *_p++ = _val; ^~ /usr/local/include/SDL2/SDL_stdinc.h:550:26: note: used in pointer arithmetic here case 0: do { *_p++ = _val; SDL_FALLTHROUGH; ^~ In file included from src/debugger/TIADebug.cxx:21: In file included from src/emucore/tia/TIA.hxx:37: src/emucore/tia/Missile.hxx:170:7: warning: unsafe buffer access [-Wunsafe-buffer-usage] if (myDecodes[myCounter] && !myResmp) { ^~~~~~~~~ src/emucore/tia/Missile.hxx:173:14: warning: unsafe buffer access [-Wunsafe-buffer-usage] myCopy = myDecodes[myCounter]; ^~~~~~~~~ In file included from src/debugger/TIADebug.cxx:21: In file included from src/emucore/tia/TIA.hxx:38: src/emucore/tia/Player.hxx:186:7: warning: unsafe buffer access [-Wunsafe-buffer-usage] if (myDecodes[myCounter]) { ^~~~~~~~~ src/emucore/tia/Player.hxx:190:14: warning: unsafe buffer access [-Wunsafe-buffer-usage] myCopy = myDecodes[myCounter]; ^~~~~~~~~ src/debugger/TIADebug.cxx:1024:20: warning: 'dist_div' is an unsafe buffer that does not perform bounds checks [-Wunsafe-buffer-usage] constexpr uInt16 dist_div[16] = { ~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~ src/debugger/TIADebug.cxx:1030:7: note: used in buffer access here / dist_div[dist] / (div + 1); ^~~~~~~~ 8 warnings generated. mkdir -p -p src/debugger/gui/.deps mkdir -p -p out/src/debugger/gui c++ -MMD -MF "src/debugger/gui/.deps/AmigaMouseWidget.d" -MQ "out/src/debugger/gui/AmigaMouseWidget.o" -MP -O2 -pipe -I/usr/X11R6/include -I/usr/local/include -x c++ -Wall -Wextra -Wno-unused-parameter -Wno-multichar -Wunused -Woverloaded-virtual -Wnon-virtual-dtor -std=c++17 -Weverything -Wno-c++98-compat-pedantic -Wno-unknown-warning-option -Wno-switch-enum -Wno-conversion -Wno-covered-switch-default -Wno-inconsistent-missing-destructor-override -Wno-float-equal -Wno-exit-time-destructors -Wno-global-constructors -Wno-weak-vtables -Wno-four-char-constants -Wno-padded -Wno-reserved-identifier -Wno-duplicate-enum -fomit-frame-pointer -DSDL_SUPPORT -D_GLIBCXX_USE_CXX11_ABI=1 -DUNIX -DBSPF_UNIX -DGUI_SUPPORT -DWINDOWED_SUPPORT -DSOUND_SUPPORT -DDEBUGGER_SUPPORT -DJOYSTICK_SUPPORT -DCHEATCODE_SUPPORT -DHTTP_LIB_SUPPORT -DPNG_SUPPORT -DZIP_SUPPORT -Isrc/emucore -Isrc/common -Isrc/common/tv_filters -Isrc/emucore/tia -Isrc/emucore/tia/frame-manager -Isrc/json -Isrc/common/repository/sqlite -I/usr/local/include -I/usr/local/include/SDL2 -I/usr/X11R6/include -D_REENTRANT -I/usr/X11R6/include -Isrc/unix -Isrc/gui -Isrc/debugger -Isrc/debugger/gui -Isrc/yacc -Isrc/cheat -Isrc/httplib -c src/debugger/gui/AmigaMouseWidget.cxx -o out/src/debugger/gui/AmigaMouseWidget.o In file included from src/debugger/gui/AmigaMouseWidget.cxx:18: In file included from src/debugger/gui/AmigaMouseWidget.hxx:23: In file included from src/debugger/gui/PointingDeviceWidget.hxx:24: In file included from src/debugger/gui/ControllerWidget.hxx:24: In file included from src/gui/Font.hxx:24: src/common/bspf.hxx:245:37: warning: unsafe pointer arithmetic [-Wunsafe-buffer-usage] const auto pos = std::search(s1.cbegin()+startpos, s1.cend(), ~~~^~~~~~~~ src/common/bspf.hxx:249:56: warning: unsafe pointer arithmetic [-Wunsafe-buffer-usage] return pos == s1.cend() ? string::npos : pos - (s1.cbegin()+startpos); ~~~^~~~~~~~ In file included from src/debugger/gui/AmigaMouseWidget.cxx:18: In file included from src/debugger/gui/AmigaMouseWidget.hxx:23: In file included from src/debugger/gui/PointingDeviceWidget.hxx:24: In file included from src/debugger/gui/ControllerWidget.hxx:25: In file included from src/gui/Widget.hxx:33: In file included from src/common/StellaKeys.hxx:22: In file included from src/common/SDL_lib.hxx:34: In file included from /usr/local/include/SDL2/SDL.h:32: In file included from /usr/local/include/SDL2/SDL_main.h:25: /usr/local/include/SDL2/SDL_stdinc.h:544:13: warning: '_p' is an unsafe pointer used for buffer access [-Wunsafe-buffer-usage] Uint32 *_p = SDL_static_cast(Uint32 *, dst); ~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /usr/local/include/SDL2/SDL_stdinc.h:553:26: note: used in pointer arithmetic here case 1: *_p++ = _val; ^~ /usr/local/include/SDL2/SDL_stdinc.h:550:26: note: used in pointer arithmetic here case 0: do { *_p++ = _val; SDL_FALLTHROUGH; ^~ /usr/local/include/SDL2/SDL_stdinc.h:552:26: note: used in pointer arithmetic here case 2: *_p++ = _val; SDL_FALLTHROUGH; ^~ /usr/local/include/SDL2/SDL_stdinc.h:551:26: note: used in pointer arithmetic here case 3: *_p++ = _val; SDL_FALLTHROUGH; ^~ In file included from src/debugger/gui/AmigaMouseWidget.cxx:18: In file included from src/debugger/gui/AmigaMouseWidget.hxx:23: In file included from src/debugger/gui/PointingDeviceWidget.hxx:24: In file included from src/debugger/gui/ControllerWidget.hxx:26: In file included from src/emucore/OSystem.hxx:55: src/emucore/FSNode.hxx:513:31: warning: unsafe pointer arithmetic [-Wunsafe-buffer-usage] const char* cur = start + str.size() - 2; ~~~~~~^~~~~~~~~~~~ src/emucore/FSNode.hxx:512:19: warning: 'start' is an unsafe pointer used for buffer access [-Wunsafe-buffer-usage] const char* start = str.c_str(); ~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~ src/emucore/FSNode.hxx:513:25: note: used in pointer arithmetic here const char* cur = start + str.size() - 2; ^~~~~ src/emucore/FSNode.hxx:513:19: warning: 'cur' is an unsafe pointer used for buffer access [-Wunsafe-buffer-usage] const char* cur = start + str.size() - 2; ~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~ src/emucore/FSNode.hxx:516:11: note: used in pointer arithmetic here --cur; ^~~ src/emucore/FSNode.hxx:518:14: note: used in pointer arithmetic here return cur + 1; ^~~ 6 warnings generated. mkdir -p -p src/debugger/gui/.deps mkdir -p -p out/src/debugger/gui c++ -MMD -MF "src/debugger/gui/.deps/AtariMouseWidget.d" -MQ "out/src/debugger/gui/AtariMouseWidget.o" -MP -O2 -pipe -I/usr/X11R6/include -I/usr/local/include -x c++ -Wall -Wextra -Wno-unused-parameter -Wno-multichar -Wunused -Woverloaded-virtual -Wnon-virtual-dtor -std=c++17 -Weverything -Wno-c++98-compat-pedantic -Wno-unknown-warning-option -Wno-switch-enum -Wno-conversion -Wno-covered-switch-default -Wno-inconsistent-missing-destructor-override -Wno-float-equal -Wno-exit-time-destructors -Wno-global-constructors -Wno-weak-vtables -Wno-four-char-constants -Wno-padded -Wno-reserved-identifier -Wno-duplicate-enum -fomit-frame-pointer -DSDL_SUPPORT -D_GLIBCXX_USE_CXX11_ABI=1 -DUNIX -DBSPF_UNIX -DGUI_SUPPORT -DWINDOWED_SUPPORT -DSOUND_SUPPORT -DDEBUGGER_SUPPORT -DJOYSTICK_SUPPORT -DCHEATCODE_SUPPORT -DHTTP_LIB_SUPPORT -DPNG_SUPPORT -DZIP_SUPPORT -Isrc/emucore -Isrc/common -Isrc/common/tv_filters -Isrc/emucore/tia -Isrc/emucore/tia/frame-manager -Isrc/json -Isrc/common/repository/sqlite -I/usr/local/include -I/usr/local/include/SDL2 -I/usr/X11R6/include -D_REENTRANT -I/usr/X11R6/include -Isrc/unix -Isrc/gui -Isrc/debugger -Isrc/debugger/gui -Isrc/yacc -Isrc/cheat -Isrc/httplib -c src/debugger/gui/AtariMouseWidget.cxx -o out/src/debugger/gui/AtariMouseWidget.o In file included from src/debugger/gui/AtariMouseWidget.cxx:18: In file included from src/debugger/gui/AtariMouseWidget.hxx:23: In file included from src/debugger/gui/PointingDeviceWidget.hxx:24: In file included from src/debugger/gui/ControllerWidget.hxx:24: In file included from src/gui/Font.hxx:24: src/common/bspf.hxx:245:37: warning: unsafe pointer arithmetic [-Wunsafe-buffer-usage] const auto pos = std::search(s1.cbegin()+startpos, s1.cend(), ~~~^~~~~~~~ src/common/bspf.hxx:249:56: warning: unsafe pointer arithmetic [-Wunsafe-buffer-usage] return pos == s1.cend() ? string::npos : pos - (s1.cbegin()+startpos); ~~~^~~~~~~~ In file included from src/debugger/gui/AtariMouseWidget.cxx:18: In file included from src/debugger/gui/AtariMouseWidget.hxx:23: In file included from src/debugger/gui/PointingDeviceWidget.hxx:24: In file included from src/debugger/gui/ControllerWidget.hxx:25: In file included from src/gui/Widget.hxx:33: In file included from src/common/StellaKeys.hxx:22: In file included from src/common/SDL_lib.hxx:34: In file included from /usr/local/include/SDL2/SDL.h:32: In file included from /usr/local/include/SDL2/SDL_main.h:25: /usr/local/include/SDL2/SDL_stdinc.h:544:13: warning: '_p' is an unsafe pointer used for buffer access [-Wunsafe-buffer-usage] Uint32 *_p = SDL_static_cast(Uint32 *, dst); ~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /usr/local/include/SDL2/SDL_stdinc.h:553:26: note: used in pointer arithmetic here case 1: *_p++ = _val; ^~ /usr/local/include/SDL2/SDL_stdinc.h:552:26: note: used in pointer arithmetic here case 2: *_p++ = _val; SDL_FALLTHROUGH; ^~ /usr/local/include/SDL2/SDL_stdinc.h:551:26: note: used in pointer arithmetic here case 3: *_p++ = _val; SDL_FALLTHROUGH; ^~ /usr/local/include/SDL2/SDL_stdinc.h:550:26: note: used in pointer arithmetic here case 0: do { *_p++ = _val; SDL_FALLTHROUGH; ^~ In file included from src/debugger/gui/AtariMouseWidget.cxx:18: In file included from src/debugger/gui/AtariMouseWidget.hxx:23: In file included from src/debugger/gui/PointingDeviceWidget.hxx:24: In file included from src/debugger/gui/ControllerWidget.hxx:26: In file included from src/emucore/OSystem.hxx:55: src/emucore/FSNode.hxx:513:31: warning: unsafe pointer arithmetic [-Wunsafe-buffer-usage] const char* cur = start + str.size() - 2; ~~~~~~^~~~~~~~~~~~ src/emucore/FSNode.hxx:512:19: warning: 'start' is an unsafe pointer used for buffer access [-Wunsafe-buffer-usage] const char* start = str.c_str(); ~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~ src/emucore/FSNode.hxx:513:25: note: used in pointer arithmetic here const char* cur = start + str.size() - 2; ^~~~~ src/emucore/FSNode.hxx:513:19: warning: 'cur' is an unsafe pointer used for buffer access [-Wunsafe-buffer-usage] const char* cur = start + str.size() - 2; ~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~ src/emucore/FSNode.hxx:518:14: note: used in pointer arithmetic here return cur + 1; ^~~ src/emucore/FSNode.hxx:516:11: note: used in pointer arithmetic here --cur; ^~~ 6 warnings generated. mkdir -p -p src/debugger/gui/.deps mkdir -p -p out/src/debugger/gui c++ -MMD -MF "src/debugger/gui/.deps/AtariVoxWidget.d" -MQ "out/src/debugger/gui/AtariVoxWidget.o" -MP -O2 -pipe -I/usr/X11R6/include -I/usr/local/include -x c++ -Wall -Wextra -Wno-unused-parameter -Wno-multichar -Wunused -Woverloaded-virtual -Wnon-virtual-dtor -std=c++17 -Weverything -Wno-c++98-compat-pedantic -Wno-unknown-warning-option -Wno-switch-enum -Wno-conversion -Wno-covered-switch-default -Wno-inconsistent-missing-destructor-override -Wno-float-equal -Wno-exit-time-destructors -Wno-global-constructors -Wno-weak-vtables -Wno-four-char-constants -Wno-padded -Wno-reserved-identifier -Wno-duplicate-enum -fomit-frame-pointer -DSDL_SUPPORT -D_GLIBCXX_USE_CXX11_ABI=1 -DUNIX -DBSPF_UNIX -DGUI_SUPPORT -DWINDOWED_SUPPORT -DSOUND_SUPPORT -DDEBUGGER_SUPPORT -DJOYSTICK_SUPPORT -DCHEATCODE_SUPPORT -DHTTP_LIB_SUPPORT -DPNG_SUPPORT -DZIP_SUPPORT -Isrc/emucore -Isrc/common -Isrc/common/tv_filters -Isrc/emucore/tia -Isrc/emucore/tia/frame-manager -Isrc/json -Isrc/common/repository/sqlite -I/usr/local/include -I/usr/local/include/SDL2 -I/usr/X11R6/include -D_REENTRANT -I/usr/X11R6/include -Isrc/unix -Isrc/gui -Isrc/debugger -Isrc/debugger/gui -Isrc/yacc -Isrc/cheat -Isrc/httplib -c src/debugger/gui/AtariVoxWidget.cxx -o out/src/debugger/gui/AtariVoxWidget.o In file included from src/debugger/gui/AtariVoxWidget.cxx:18: In file included from src/emucore/AtariVox.hxx:25: In file included from src/emucore/Control.hxx:28: src/common/bspf.hxx:245:37: warning: unsafe pointer arithmetic [-Wunsafe-buffer-usage] const auto pos = std::search(s1.cbegin()+startpos, s1.cend(), ~~~^~~~~~~~ src/common/bspf.hxx:249:56: warning: unsafe pointer arithmetic [-Wunsafe-buffer-usage] return pos == s1.cend() ? string::npos : pos - (s1.cbegin()+startpos); ~~~^~~~~~~~ In file included from src/debugger/gui/AtariVoxWidget.cxx:19: In file included from src/debugger/gui/AtariVoxWidget.hxx:23: In file included from src/debugger/gui/FlashWidget.hxx:24: In file included from src/debugger/gui/ControllerWidget.hxx:25: In file included from src/gui/Widget.hxx:33: In file included from src/common/StellaKeys.hxx:22: In file included from src/common/SDL_lib.hxx:34: In file included from /usr/local/include/SDL2/SDL.h:32: In file included from /usr/local/include/SDL2/SDL_main.h:25: /usr/local/include/SDL2/SDL_stdinc.h:544:13: warning: '_p' is an unsafe pointer used for buffer access [-Wunsafe-buffer-usage] Uint32 *_p = SDL_static_cast(Uint32 *, dst); ~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /usr/local/include/SDL2/SDL_stdinc.h:552:26: note: used in pointer arithmetic here case 2: *_p++ = _val; SDL_FALLTHROUGH; ^~ /usr/local/include/SDL2/SDL_stdinc.h:550:26: note: used in pointer arithmetic here case 0: do { *_p++ = _val; SDL_FALLTHROUGH; ^~ /usr/local/include/SDL2/SDL_stdinc.h:551:26: note: used in pointer arithmetic here case 3: *_p++ = _val; SDL_FALLTHROUGH; ^~ /usr/local/include/SDL2/SDL_stdinc.h:553:26: note: used in pointer arithmetic here case 1: *_p++ = _val; ^~ In file included from src/debugger/gui/AtariVoxWidget.cxx:19: In file included from src/debugger/gui/AtariVoxWidget.hxx:23: In file included from src/debugger/gui/FlashWidget.hxx:24: In file included from src/debugger/gui/ControllerWidget.hxx:26: In file included from src/emucore/OSystem.hxx:55: src/emucore/FSNode.hxx:513:31: warning: unsafe pointer arithmetic [-Wunsafe-buffer-usage] const char* cur = start + str.size() - 2; ~~~~~~^~~~~~~~~~~~ src/emucore/FSNode.hxx:512:19: warning: 'start' is an unsafe pointer used for buffer access [-Wunsafe-buffer-usage] const char* start = str.c_str(); ~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~ src/emucore/FSNode.hxx:513:25: note: used in pointer arithmetic here const char* cur = start + str.size() - 2; ^~~~~ src/emucore/FSNode.hxx:513:19: warning: 'cur' is an unsafe pointer used for buffer access [-Wunsafe-buffer-usage] const char* cur = start + str.size() - 2; ~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~ src/emucore/FSNode.hxx:518:14: note: used in pointer arithmetic here return cur + 1; ^~~ src/emucore/FSNode.hxx:516:11: note: used in pointer arithmetic here --cur; ^~~ 6 warnings generated. mkdir -p -p src/debugger/gui/.deps mkdir -p -p out/src/debugger/gui c++ -MMD -MF "src/debugger/gui/.deps/AudioWidget.d" -MQ "out/src/debugger/gui/AudioWidget.o" -MP -O2 -pipe -I/usr/X11R6/include -I/usr/local/include -x c++ -Wall -Wextra -Wno-unused-parameter -Wno-multichar -Wunused -Woverloaded-virtual -Wnon-virtual-dtor -std=c++17 -Weverything -Wno-c++98-compat-pedantic -Wno-unknown-warning-option -Wno-switch-enum -Wno-conversion -Wno-covered-switch-default -Wno-inconsistent-missing-destructor-override -Wno-float-equal -Wno-exit-time-destructors -Wno-global-constructors -Wno-weak-vtables -Wno-four-char-constants -Wno-padded -Wno-reserved-identifier -Wno-duplicate-enum -fomit-frame-pointer -DSDL_SUPPORT -D_GLIBCXX_USE_CXX11_ABI=1 -DUNIX -DBSPF_UNIX -DGUI_SUPPORT -DWINDOWED_SUPPORT -DSOUND_SUPPORT -DDEBUGGER_SUPPORT -DJOYSTICK_SUPPORT -DCHEATCODE_SUPPORT -DHTTP_LIB_SUPPORT -DPNG_SUPPORT -DZIP_SUPPORT -Isrc/emucore -Isrc/common -Isrc/common/tv_filters -Isrc/emucore/tia -Isrc/emucore/tia/frame-manager -Isrc/json -Isrc/common/repository/sqlite -I/usr/local/include -I/usr/local/include/SDL2 -I/usr/X11R6/include -D_REENTRANT -I/usr/X11R6/include -Isrc/unix -Isrc/gui -Isrc/debugger -Isrc/debugger/gui -Isrc/yacc -Isrc/cheat -Isrc/httplib -c src/debugger/gui/AudioWidget.cxx -o out/src/debugger/gui/AudioWidget.o In file included from src/debugger/gui/AudioWidget.cxx:18: In file included from src/debugger/gui/DataGridWidget.hxx:25: In file included from src/gui/Widget.hxx:28: src/common/bspf.hxx:245:37: warning: unsafe pointer arithmetic [-Wunsafe-buffer-usage] const auto pos = std::search(s1.cbegin()+startpos, s1.cend(), ~~~^~~~~~~~ src/common/bspf.hxx:249:56: warning: unsafe pointer arithmetic [-Wunsafe-buffer-usage] return pos == s1.cend() ? string::npos : pos - (s1.cbegin()+startpos); ~~~^~~~~~~~ In file included from src/debugger/gui/AudioWidget.cxx:18: In file included from src/debugger/gui/DataGridWidget.hxx:25: In file included from src/gui/Widget.hxx:33: In file included from src/common/StellaKeys.hxx:22: In file included from src/common/SDL_lib.hxx:34: In file included from /usr/local/include/SDL2/SDL.h:32: In file included from /usr/local/include/SDL2/SDL_main.h:25: /usr/local/include/SDL2/SDL_stdinc.h:544:13: warning: '_p' is an unsafe pointer used for buffer access [-Wunsafe-buffer-usage] Uint32 *_p = SDL_static_cast(Uint32 *, dst); ~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /usr/local/include/SDL2/SDL_stdinc.h:551:26: note: used in pointer arithmetic here case 3: *_p++ = _val; SDL_FALLTHROUGH; ^~ /usr/local/include/SDL2/SDL_stdinc.h:553:26: note: used in pointer arithmetic here case 1: *_p++ = _val; ^~ /usr/local/include/SDL2/SDL_stdinc.h:552:26: note: used in pointer arithmetic here case 2: *_p++ = _val; SDL_FALLTHROUGH; ^~ /usr/local/include/SDL2/SDL_stdinc.h:550:26: note: used in pointer arithmetic here case 0: do { *_p++ = _val; SDL_FALLTHROUGH; ^~ In file included from src/debugger/gui/AudioWidget.cxx:21: In file included from src/emucore/OSystem.hxx:55: src/emucore/FSNode.hxx:513:31: warning: unsafe pointer arithmetic [-Wunsafe-buffer-usage] const char* cur = start + str.size() - 2; ~~~~~~^~~~~~~~~~~~ src/emucore/FSNode.hxx:512:19: warning: 'start' is an unsafe pointer used for buffer access [-Wunsafe-buffer-usage] const char* start = str.c_str(); ~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~ src/emucore/FSNode.hxx:513:25: note: used in pointer arithmetic here const char* cur = start + str.size() - 2; ^~~~~ src/emucore/FSNode.hxx:513:19: warning: 'cur' is an unsafe pointer used for buffer access [-Wunsafe-buffer-usage] const char* cur = start + str.size() - 2; ~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~ src/emucore/FSNode.hxx:518:14: note: used in pointer arithmetic here return cur + 1; ^~~ src/emucore/FSNode.hxx:516:11: note: used in pointer arithmetic here --cur; ^~~ 6 warnings generated. mkdir -p -p src/debugger/gui/.deps mkdir -p -p out/src/debugger/gui c++ -MMD -MF "src/debugger/gui/.deps/BoosterWidget.d" -MQ "out/src/debugger/gui/BoosterWidget.o" -MP -O2 -pipe -I/usr/X11R6/include -I/usr/local/include -x c++ -Wall -Wextra -Wno-unused-parameter -Wno-multichar -Wunused -Woverloaded-virtual -Wnon-virtual-dtor -std=c++17 -Weverything -Wno-c++98-compat-pedantic -Wno-unknown-warning-option -Wno-switch-enum -Wno-conversion -Wno-covered-switch-default -Wno-inconsistent-missing-destructor-override -Wno-float-equal -Wno-exit-time-destructors -Wno-global-constructors -Wno-weak-vtables -Wno-four-char-constants -Wno-padded -Wno-reserved-identifier -Wno-duplicate-enum -fomit-frame-pointer -DSDL_SUPPORT -D_GLIBCXX_USE_CXX11_ABI=1 -DUNIX -DBSPF_UNIX -DGUI_SUPPORT -DWINDOWED_SUPPORT -DSOUND_SUPPORT -DDEBUGGER_SUPPORT -DJOYSTICK_SUPPORT -DCHEATCODE_SUPPORT -DHTTP_LIB_SUPPORT -DPNG_SUPPORT -DZIP_SUPPORT -Isrc/emucore -Isrc/common -Isrc/common/tv_filters -Isrc/emucore/tia -Isrc/emucore/tia/frame-manager -Isrc/json -Isrc/common/repository/sqlite -I/usr/local/include -I/usr/local/include/SDL2 -I/usr/X11R6/include -D_REENTRANT -I/usr/X11R6/include -Isrc/unix -Isrc/gui -Isrc/debugger -Isrc/debugger/gui -Isrc/yacc -Isrc/cheat -Isrc/httplib -c src/debugger/gui/BoosterWidget.cxx -o out/src/debugger/gui/BoosterWidget.o In file included from src/debugger/gui/BoosterWidget.cxx:18: In file included from src/debugger/gui/BoosterWidget.hxx:21: In file included from src/emucore/Control.hxx:28: src/common/bspf.hxx:245:37: warning: unsafe pointer arithmetic [-Wunsafe-buffer-usage] const auto pos = std::search(s1.cbegin()+startpos, s1.cend(), ~~~^~~~~~~~ src/common/bspf.hxx:249:56: warning: unsafe pointer arithmetic [-Wunsafe-buffer-usage] return pos == s1.cend() ? string::npos : pos - (s1.cbegin()+startpos); ~~~^~~~~~~~ In file included from src/debugger/gui/BoosterWidget.cxx:18: In file included from src/debugger/gui/BoosterWidget.hxx:22: In file included from src/debugger/gui/ControllerWidget.hxx:25: In file included from src/gui/Widget.hxx:33: In file included from src/common/StellaKeys.hxx:22: In file included from src/common/SDL_lib.hxx:34: In file included from /usr/local/include/SDL2/SDL.h:32: In file included from /usr/local/include/SDL2/SDL_main.h:25: /usr/local/include/SDL2/SDL_stdinc.h:544:13: warning: '_p' is an unsafe pointer used for buffer access [-Wunsafe-buffer-usage] Uint32 *_p = SDL_static_cast(Uint32 *, dst); ~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /usr/local/include/SDL2/SDL_stdinc.h:550:26: note: used in pointer arithmetic here case 0: do { *_p++ = _val; SDL_FALLTHROUGH; ^~ /usr/local/include/SDL2/SDL_stdinc.h:551:26: note: used in pointer arithmetic here case 3: *_p++ = _val; SDL_FALLTHROUGH; ^~ /usr/local/include/SDL2/SDL_stdinc.h:552:26: note: used in pointer arithmetic here case 2: *_p++ = _val; SDL_FALLTHROUGH; ^~ /usr/local/include/SDL2/SDL_stdinc.h:553:26: note: used in pointer arithmetic here case 1: *_p++ = _val; ^~ In file included from src/debugger/gui/BoosterWidget.cxx:18: In file included from src/debugger/gui/BoosterWidget.hxx:22: In file included from src/debugger/gui/ControllerWidget.hxx:26: In file included from src/emucore/OSystem.hxx:55: src/emucore/FSNode.hxx:513:31: warning: unsafe pointer arithmetic [-Wunsafe-buffer-usage] const char* cur = start + str.size() - 2; ~~~~~~^~~~~~~~~~~~ src/emucore/FSNode.hxx:512:19: warning: 'start' is an unsafe pointer used for buffer access [-Wunsafe-buffer-usage] const char* start = str.c_str(); ~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~ src/emucore/FSNode.hxx:513:25: note: used in pointer arithmetic here const char* cur = start + str.size() - 2; ^~~~~ src/emucore/FSNode.hxx:513:19: warning: 'cur' is an unsafe pointer used for buffer access [-Wunsafe-buffer-usage] const char* cur = start + str.size() - 2; ~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~ src/emucore/FSNode.hxx:516:11: note: used in pointer arithmetic here --cur; ^~~ src/emucore/FSNode.hxx:518:14: note: used in pointer arithmetic here return cur + 1; ^~~ src/debugger/gui/BoosterWidget.cxx:133:64: warning: out-of-line definition of constexpr static data member is redundant in C++17 and is deprecated [-Wdeprecated] constexpr std::array BoosterWidget::ourPinNo; ^ 7 warnings generated. mkdir -p -p src/debugger/gui/.deps mkdir -p -p out/src/debugger/gui c++ -MMD -MF "src/debugger/gui/.deps/Cart0840Widget.d" -MQ "out/src/debugger/gui/Cart0840Widget.o" -MP -O2 -pipe -I/usr/X11R6/include -I/usr/local/include -x c++ -Wall -Wextra -Wno-unused-parameter -Wno-multichar -Wunused -Woverloaded-virtual -Wnon-virtual-dtor -std=c++17 -Weverything -Wno-c++98-compat-pedantic -Wno-unknown-warning-option -Wno-switch-enum -Wno-conversion -Wno-covered-switch-default -Wno-inconsistent-missing-destructor-override -Wno-float-equal -Wno-exit-time-destructors -Wno-global-constructors -Wno-weak-vtables -Wno-four-char-constants -Wno-padded -Wno-reserved-identifier -Wno-duplicate-enum -fomit-frame-pointer -DSDL_SUPPORT -D_GLIBCXX_USE_CXX11_ABI=1 -DUNIX -DBSPF_UNIX -DGUI_SUPPORT -DWINDOWED_SUPPORT -DSOUND_SUPPORT -DDEBUGGER_SUPPORT -DJOYSTICK_SUPPORT -DCHEATCODE_SUPPORT -DHTTP_LIB_SUPPORT -DPNG_SUPPORT -DZIP_SUPPORT -Isrc/emucore -Isrc/common -Isrc/common/tv_filters -Isrc/emucore/tia -Isrc/emucore/tia/frame-manager -Isrc/json -Isrc/common/repository/sqlite -I/usr/local/include -I/usr/local/include/SDL2 -I/usr/X11R6/include -D_REENTRANT -I/usr/X11R6/include -Isrc/unix -Isrc/gui -Isrc/debugger -Isrc/debugger/gui -Isrc/yacc -Isrc/cheat -Isrc/httplib -c src/debugger/gui/Cart0840Widget.cxx -o out/src/debugger/gui/Cart0840Widget.o In file included from src/debugger/gui/Cart0840Widget.cxx:18: In file included from src/emucore/Cart0840.hxx:21: src/common/bspf.hxx:245:37: warning: unsafe pointer arithmetic [-Wunsafe-buffer-usage] const auto pos = std::search(s1.cbegin()+startpos, s1.cend(), ~~~^~~~~~~~ src/common/bspf.hxx:249:56: warning: unsafe pointer arithmetic [-Wunsafe-buffer-usage] return pos == s1.cend() ? string::npos : pos - (s1.cbegin()+startpos); ~~~^~~~~~~~ In file included from src/debugger/gui/Cart0840Widget.cxx:18: In file included from src/emucore/Cart0840.hxx:22: In file included from src/emucore/CartEnhanced.hxx:27: In file included from src/debugger/gui/CartEnhancedWidget.hxx:31: In file included from src/debugger/gui/CartDebugWidget.hxx:30: In file included from src/gui/Widget.hxx:33: In file included from src/common/StellaKeys.hxx:22: In file included from src/common/SDL_lib.hxx:34: In file included from /usr/local/include/SDL2/SDL.h:32: In file included from /usr/local/include/SDL2/SDL_main.h:25: /usr/local/include/SDL2/SDL_stdinc.h:544:13: warning: '_p' is an unsafe pointer used for buffer access [-Wunsafe-buffer-usage] Uint32 *_p = SDL_static_cast(Uint32 *, dst); ~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /usr/local/include/SDL2/SDL_stdinc.h:551:26: note: used in pointer arithmetic here case 3: *_p++ = _val; SDL_FALLTHROUGH; ^~ /usr/local/include/SDL2/SDL_stdinc.h:552:26: note: used in pointer arithmetic here case 2: *_p++ = _val; SDL_FALLTHROUGH; ^~ /usr/local/include/SDL2/SDL_stdinc.h:553:26: note: used in pointer arithmetic here case 1: *_p++ = _val; ^~ /usr/local/include/SDL2/SDL_stdinc.h:550:26: note: used in pointer arithmetic here case 0: do { *_p++ = _val; SDL_FALLTHROUGH; ^~ 3 warnings generated. mkdir -p -p src/debugger/gui/.deps mkdir -p -p out/src/debugger/gui c++ -MMD -MF "src/debugger/gui/.deps/Cart0FA0Widget.d" -MQ "out/src/debugger/gui/Cart0FA0Widget.o" -MP -O2 -pipe -I/usr/X11R6/include -I/usr/local/include -x c++ -Wall -Wextra -Wno-unused-parameter -Wno-multichar -Wunused -Woverloaded-virtual -Wnon-virtual-dtor -std=c++17 -Weverything -Wno-c++98-compat-pedantic -Wno-unknown-warning-option -Wno-switch-enum -Wno-conversion -Wno-covered-switch-default -Wno-inconsistent-missing-destructor-override -Wno-float-equal -Wno-exit-time-destructors -Wno-global-constructors -Wno-weak-vtables -Wno-four-char-constants -Wno-padded -Wno-reserved-identifier -Wno-duplicate-enum -fomit-frame-pointer -DSDL_SUPPORT -D_GLIBCXX_USE_CXX11_ABI=1 -DUNIX -DBSPF_UNIX -DGUI_SUPPORT -DWINDOWED_SUPPORT -DSOUND_SUPPORT -DDEBUGGER_SUPPORT -DJOYSTICK_SUPPORT -DCHEATCODE_SUPPORT -DHTTP_LIB_SUPPORT -DPNG_SUPPORT -DZIP_SUPPORT -Isrc/emucore -Isrc/common -Isrc/common/tv_filters -Isrc/emucore/tia -Isrc/emucore/tia/frame-manager -Isrc/json -Isrc/common/repository/sqlite -I/usr/local/include -I/usr/local/include/SDL2 -I/usr/X11R6/include -D_REENTRANT -I/usr/X11R6/include -Isrc/unix -Isrc/gui -Isrc/debugger -Isrc/debugger/gui -Isrc/yacc -Isrc/cheat -Isrc/httplib -c src/debugger/gui/Cart0FA0Widget.cxx -o out/src/debugger/gui/Cart0FA0Widget.o In file included from src/debugger/gui/Cart0FA0Widget.cxx:18: In file included from src/emucore/Cart0FA0.hxx:21: src/common/bspf.hxx:245:37: warning: unsafe pointer arithmetic [-Wunsafe-buffer-usage] const auto pos = std::search(s1.cbegin()+startpos, s1.cend(), ~~~^~~~~~~~ src/common/bspf.hxx:249:56: warning: unsafe pointer arithmetic [-Wunsafe-buffer-usage] return pos == s1.cend() ? string::npos : pos - (s1.cbegin()+startpos); ~~~^~~~~~~~ In file included from src/debugger/gui/Cart0FA0Widget.cxx:18: In file included from src/emucore/Cart0FA0.hxx:22: In file included from src/emucore/CartEnhanced.hxx:27: In file included from src/debugger/gui/CartEnhancedWidget.hxx:31: In file included from src/debugger/gui/CartDebugWidget.hxx:30: In file included from src/gui/Widget.hxx:33: In file included from src/common/StellaKeys.hxx:22: In file included from src/common/SDL_lib.hxx:34: In file included from /usr/local/include/SDL2/SDL.h:32: In file included from /usr/local/include/SDL2/SDL_main.h:25: /usr/local/include/SDL2/SDL_stdinc.h:544:13: warning: '_p' is an unsafe pointer used for buffer access [-Wunsafe-buffer-usage] Uint32 *_p = SDL_static_cast(Uint32 *, dst); ~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /usr/local/include/SDL2/SDL_stdinc.h:551:26: note: used in pointer arithmetic here case 3: *_p++ = _val; SDL_FALLTHROUGH; ^~ /usr/local/include/SDL2/SDL_stdinc.h:550:26: note: used in pointer arithmetic here case 0: do { *_p++ = _val; SDL_FALLTHROUGH; ^~ /usr/local/include/SDL2/SDL_stdinc.h:552:26: note: used in pointer arithmetic here case 2: *_p++ = _val; SDL_FALLTHROUGH; ^~ /usr/local/include/SDL2/SDL_stdinc.h:553:26: note: used in pointer arithmetic here case 1: *_p++ = _val; ^~ 3 warnings generated. mkdir -p -p src/debugger/gui/.deps mkdir -p -p out/src/debugger/gui c++ -MMD -MF "src/debugger/gui/.deps/Cart2KWidget.d" -MQ "out/src/debugger/gui/Cart2KWidget.o" -MP -O2 -pipe -I/usr/X11R6/include -I/usr/local/include -x c++ -Wall -Wextra -Wno-unused-parameter -Wno-multichar -Wunused -Woverloaded-virtual -Wnon-virtual-dtor -std=c++17 -Weverything -Wno-c++98-compat-pedantic -Wno-unknown-warning-option -Wno-switch-enum -Wno-conversion -Wno-covered-switch-default -Wno-inconsistent-missing-destructor-override -Wno-float-equal -Wno-exit-time-destructors -Wno-global-constructors -Wno-weak-vtables -Wno-four-char-constants -Wno-padded -Wno-reserved-identifier -Wno-duplicate-enum -fomit-frame-pointer -DSDL_SUPPORT -D_GLIBCXX_USE_CXX11_ABI=1 -DUNIX -DBSPF_UNIX -DGUI_SUPPORT -DWINDOWED_SUPPORT -DSOUND_SUPPORT -DDEBUGGER_SUPPORT -DJOYSTICK_SUPPORT -DCHEATCODE_SUPPORT -DHTTP_LIB_SUPPORT -DPNG_SUPPORT -DZIP_SUPPORT -Isrc/emucore -Isrc/common -Isrc/common/tv_filters -Isrc/emucore/tia -Isrc/emucore/tia/frame-manager -Isrc/json -Isrc/common/repository/sqlite -I/usr/local/include -I/usr/local/include/SDL2 -I/usr/X11R6/include -D_REENTRANT -I/usr/X11R6/include -Isrc/unix -Isrc/gui -Isrc/debugger -Isrc/debugger/gui -Isrc/yacc -Isrc/cheat -Isrc/httplib -c src/debugger/gui/Cart2KWidget.cxx -o out/src/debugger/gui/Cart2KWidget.o In file included from src/debugger/gui/Cart2KWidget.cxx:18: In file included from src/emucore/Cart2K.hxx:23: src/common/bspf.hxx:245:37: warning: unsafe pointer arithmetic [-Wunsafe-buffer-usage] const auto pos = std::search(s1.cbegin()+startpos, s1.cend(), ~~~^~~~~~~~ src/common/bspf.hxx:249:56: warning: unsafe pointer arithmetic [-Wunsafe-buffer-usage] return pos == s1.cend() ? string::npos : pos - (s1.cbegin()+startpos); ~~~^~~~~~~~ In file included from src/debugger/gui/Cart2KWidget.cxx:18: In file included from src/emucore/Cart2K.hxx:24: In file included from src/emucore/CartEnhanced.hxx:27: In file included from src/debugger/gui/CartEnhancedWidget.hxx:31: In file included from src/debugger/gui/CartDebugWidget.hxx:30: In file included from src/gui/Widget.hxx:33: In file included from src/common/StellaKeys.hxx:22: In file included from src/common/SDL_lib.hxx:34: In file included from /usr/local/include/SDL2/SDL.h:32: In file included from /usr/local/include/SDL2/SDL_main.h:25: /usr/local/include/SDL2/SDL_stdinc.h:544:13: warning: '_p' is an unsafe pointer used for buffer access [-Wunsafe-buffer-usage] Uint32 *_p = SDL_static_cast(Uint32 *, dst); ~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /usr/local/include/SDL2/SDL_stdinc.h:552:26: note: used in pointer arithmetic here case 2: *_p++ = _val; SDL_FALLTHROUGH; ^~ /usr/local/include/SDL2/SDL_stdinc.h:553:26: note: used in pointer arithmetic here case 1: *_p++ = _val; ^~ /usr/local/include/SDL2/SDL_stdinc.h:550:26: note: used in pointer arithmetic here case 0: do { *_p++ = _val; SDL_FALLTHROUGH; ^~ /usr/local/include/SDL2/SDL_stdinc.h:551:26: note: used in pointer arithmetic here case 3: *_p++ = _val; SDL_FALLTHROUGH; ^~ 3 warnings generated. mkdir -p -p src/debugger/gui/.deps mkdir -p -p out/src/debugger/gui c++ -MMD -MF "src/debugger/gui/.deps/Cart3EPlusWidget.d" -MQ "out/src/debugger/gui/Cart3EPlusWidget.o" -MP -O2 -pipe -I/usr/X11R6/include -I/usr/local/include -x c++ -Wall -Wextra -Wno-unused-parameter -Wno-multichar -Wunused -Woverloaded-virtual -Wnon-virtual-dtor -std=c++17 -Weverything -Wno-c++98-compat-pedantic -Wno-unknown-warning-option -Wno-switch-enum -Wno-conversion -Wno-covered-switch-default -Wno-inconsistent-missing-destructor-override -Wno-float-equal -Wno-exit-time-destructors -Wno-global-constructors -Wno-weak-vtables -Wno-four-char-constants -Wno-padded -Wno-reserved-identifier -Wno-duplicate-enum -fomit-frame-pointer -DSDL_SUPPORT -D_GLIBCXX_USE_CXX11_ABI=1 -DUNIX -DBSPF_UNIX -DGUI_SUPPORT -DWINDOWED_SUPPORT -DSOUND_SUPPORT -DDEBUGGER_SUPPORT -DJOYSTICK_SUPPORT -DCHEATCODE_SUPPORT -DHTTP_LIB_SUPPORT -DPNG_SUPPORT -DZIP_SUPPORT -Isrc/emucore -Isrc/common -Isrc/common/tv_filters -Isrc/emucore/tia -Isrc/emucore/tia/frame-manager -Isrc/json -Isrc/common/repository/sqlite -I/usr/local/include -I/usr/local/include/SDL2 -I/usr/X11R6/include -D_REENTRANT -I/usr/X11R6/include -Isrc/unix -Isrc/gui -Isrc/debugger -Isrc/debugger/gui -Isrc/yacc -Isrc/cheat -Isrc/httplib -c src/debugger/gui/Cart3EPlusWidget.cxx -o out/src/debugger/gui/Cart3EPlusWidget.o In file included from src/debugger/gui/Cart3EPlusWidget.cxx:18: In file included from src/emucore/Cart3EPlus.hxx:23: src/common/bspf.hxx:245:37: warning: unsafe pointer arithmetic [-Wunsafe-buffer-usage] const auto pos = std::search(s1.cbegin()+startpos, s1.cend(), ~~~^~~~~~~~ src/common/bspf.hxx:249:56: warning: unsafe pointer arithmetic [-Wunsafe-buffer-usage] return pos == s1.cend() ? string::npos : pos - (s1.cbegin()+startpos); ~~~^~~~~~~~ In file included from src/debugger/gui/Cart3EPlusWidget.cxx:18: In file included from src/emucore/Cart3EPlus.hxx:24: In file included from src/emucore/Cart3E.hxx:24: In file included from src/emucore/CartEnhanced.hxx:27: In file included from src/debugger/gui/CartEnhancedWidget.hxx:31: In file included from src/debugger/gui/CartDebugWidget.hxx:30: In file included from src/gui/Widget.hxx:33: In file included from src/common/StellaKeys.hxx:22: In file included from src/common/SDL_lib.hxx:34: In file included from /usr/local/include/SDL2/SDL.h:32: In file included from /usr/local/include/SDL2/SDL_main.h:25: /usr/local/include/SDL2/SDL_stdinc.h:544:13: warning: '_p' is an unsafe pointer used for buffer access [-Wunsafe-buffer-usage] Uint32 *_p = SDL_static_cast(Uint32 *, dst); ~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /usr/local/include/SDL2/SDL_stdinc.h:552:26: note: used in pointer arithmetic here case 2: *_p++ = _val; SDL_FALLTHROUGH; ^~ /usr/local/include/SDL2/SDL_stdinc.h:550:26: note: used in pointer arithmetic here case 0: do { *_p++ = _val; SDL_FALLTHROUGH; ^~ /usr/local/include/SDL2/SDL_stdinc.h:553:26: note: used in pointer arithmetic here case 1: *_p++ = _val; ^~ /usr/local/include/SDL2/SDL_stdinc.h:551:26: note: used in pointer arithmetic here case 3: *_p++ = _val; SDL_FALLTHROUGH; ^~ 3 warnings generated. mkdir -p -p src/debugger/gui/.deps mkdir -p -p out/src/debugger/gui c++ -MMD -MF "src/debugger/gui/.deps/Cart3EWidget.d" -MQ "out/src/debugger/gui/Cart3EWidget.o" -MP -O2 -pipe -I/usr/X11R6/include -I/usr/local/include -x c++ -Wall -Wextra -Wno-unused-parameter -Wno-multichar -Wunused -Woverloaded-virtual -Wnon-virtual-dtor -std=c++17 -Weverything -Wno-c++98-compat-pedantic -Wno-unknown-warning-option -Wno-switch-enum -Wno-conversion -Wno-covered-switch-default -Wno-inconsistent-missing-destructor-override -Wno-float-equal -Wno-exit-time-destructors -Wno-global-constructors -Wno-weak-vtables -Wno-four-char-constants -Wno-padded -Wno-reserved-identifier -Wno-duplicate-enum -fomit-frame-pointer -DSDL_SUPPORT -D_GLIBCXX_USE_CXX11_ABI=1 -DUNIX -DBSPF_UNIX -DGUI_SUPPORT -DWINDOWED_SUPPORT -DSOUND_SUPPORT -DDEBUGGER_SUPPORT -DJOYSTICK_SUPPORT -DCHEATCODE_SUPPORT -DHTTP_LIB_SUPPORT -DPNG_SUPPORT -DZIP_SUPPORT -Isrc/emucore -Isrc/common -Isrc/common/tv_filters -Isrc/emucore/tia -Isrc/emucore/tia/frame-manager -Isrc/json -Isrc/common/repository/sqlite -I/usr/local/include -I/usr/local/include/SDL2 -I/usr/X11R6/include -D_REENTRANT -I/usr/X11R6/include -Isrc/unix -Isrc/gui -Isrc/debugger -Isrc/debugger/gui -Isrc/yacc -Isrc/cheat -Isrc/httplib -c src/debugger/gui/Cart3EWidget.cxx -o out/src/debugger/gui/Cart3EWidget.o In file included from src/debugger/gui/Cart3EWidget.cxx:18: In file included from src/emucore/Cart3E.hxx:23: src/common/bspf.hxx:245:37: warning: unsafe pointer arithmetic [-Wunsafe-buffer-usage] const auto pos = std::search(s1.cbegin()+startpos, s1.cend(), ~~~^~~~~~~~ src/common/bspf.hxx:249:56: warning: unsafe pointer arithmetic [-Wunsafe-buffer-usage] return pos == s1.cend() ? string::npos : pos - (s1.cbegin()+startpos); ~~~^~~~~~~~ In file included from src/debugger/gui/Cart3EWidget.cxx:18: In file included from src/emucore/Cart3E.hxx:24: In file included from src/emucore/CartEnhanced.hxx:27: In file included from src/debugger/gui/CartEnhancedWidget.hxx:31: In file included from src/debugger/gui/CartDebugWidget.hxx:30: In file included from src/gui/Widget.hxx:33: In file included from src/common/StellaKeys.hxx:22: In file included from src/common/SDL_lib.hxx:34: In file included from /usr/local/include/SDL2/SDL.h:32: In file included from /usr/local/include/SDL2/SDL_main.h:25: /usr/local/include/SDL2/SDL_stdinc.h:544:13: warning: '_p' is an unsafe pointer used for buffer access [-Wunsafe-buffer-usage] Uint32 *_p = SDL_static_cast(Uint32 *, dst); ~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /usr/local/include/SDL2/SDL_stdinc.h:553:26: note: used in pointer arithmetic here case 1: *_p++ = _val; ^~ /usr/local/include/SDL2/SDL_stdinc.h:552:26: note: used in pointer arithmetic here case 2: *_p++ = _val; SDL_FALLTHROUGH; ^~ /usr/local/include/SDL2/SDL_stdinc.h:551:26: note: used in pointer arithmetic here case 3: *_p++ = _val; SDL_FALLTHROUGH; ^~ /usr/local/include/SDL2/SDL_stdinc.h:550:26: note: used in pointer arithmetic here case 0: do { *_p++ = _val; SDL_FALLTHROUGH; ^~ 3 warnings generated. mkdir -p -p src/debugger/gui/.deps mkdir -p -p out/src/debugger/gui c++ -MMD -MF "src/debugger/gui/.deps/Cart3FWidget.d" -MQ "out/src/debugger/gui/Cart3FWidget.o" -MP -O2 -pipe -I/usr/X11R6/include -I/usr/local/include -x c++ -Wall -Wextra -Wno-unused-parameter -Wno-multichar -Wunused -Woverloaded-virtual -Wnon-virtual-dtor -std=c++17 -Weverything -Wno-c++98-compat-pedantic -Wno-unknown-warning-option -Wno-switch-enum -Wno-conversion -Wno-covered-switch-default -Wno-inconsistent-missing-destructor-override -Wno-float-equal -Wno-exit-time-destructors -Wno-global-constructors -Wno-weak-vtables -Wno-four-char-constants -Wno-padded -Wno-reserved-identifier -Wno-duplicate-enum -fomit-frame-pointer -DSDL_SUPPORT -D_GLIBCXX_USE_CXX11_ABI=1 -DUNIX -DBSPF_UNIX -DGUI_SUPPORT -DWINDOWED_SUPPORT -DSOUND_SUPPORT -DDEBUGGER_SUPPORT -DJOYSTICK_SUPPORT -DCHEATCODE_SUPPORT -DHTTP_LIB_SUPPORT -DPNG_SUPPORT -DZIP_SUPPORT -Isrc/emucore -Isrc/common -Isrc/common/tv_filters -Isrc/emucore/tia -Isrc/emucore/tia/frame-manager -Isrc/json -Isrc/common/repository/sqlite -I/usr/local/include -I/usr/local/include/SDL2 -I/usr/X11R6/include -D_REENTRANT -I/usr/X11R6/include -Isrc/unix -Isrc/gui -Isrc/debugger -Isrc/debugger/gui -Isrc/yacc -Isrc/cheat -Isrc/httplib -c src/debugger/gui/Cart3FWidget.cxx -o out/src/debugger/gui/Cart3FWidget.o In file included from src/debugger/gui/Cart3FWidget.cxx:18: In file included from src/emucore/Cart3F.hxx:23: src/common/bspf.hxx:245:37: warning: unsafe pointer arithmetic [-Wunsafe-buffer-usage] const auto pos = std::search(s1.cbegin()+startpos, s1.cend(), ~~~^~~~~~~~ src/common/bspf.hxx:249:56: warning: unsafe pointer arithmetic [-Wunsafe-buffer-usage] return pos == s1.cend() ? string::npos : pos - (s1.cbegin()+startpos); ~~~^~~~~~~~ In file included from src/debugger/gui/Cart3FWidget.cxx:18: In file included from src/emucore/Cart3F.hxx:24: In file included from src/emucore/CartEnhanced.hxx:27: In file included from src/debugger/gui/CartEnhancedWidget.hxx:31: In file included from src/debugger/gui/CartDebugWidget.hxx:30: In file included from src/gui/Widget.hxx:33: In file included from src/common/StellaKeys.hxx:22: In file included from src/common/SDL_lib.hxx:34: In file included from /usr/local/include/SDL2/SDL.h:32: In file included from /usr/local/include/SDL2/SDL_main.h:25: /usr/local/include/SDL2/SDL_stdinc.h:544:13: warning: '_p' is an unsafe pointer used for buffer access [-Wunsafe-buffer-usage] Uint32 *_p = SDL_static_cast(Uint32 *, dst); ~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /usr/local/include/SDL2/SDL_stdinc.h:550:26: note: used in pointer arithmetic here case 0: do { *_p++ = _val; SDL_FALLTHROUGH; ^~ /usr/local/include/SDL2/SDL_stdinc.h:551:26: note: used in pointer arithmetic here case 3: *_p++ = _val; SDL_FALLTHROUGH; ^~ /usr/local/include/SDL2/SDL_stdinc.h:552:26: note: used in pointer arithmetic here case 2: *_p++ = _val; SDL_FALLTHROUGH; ^~ /usr/local/include/SDL2/SDL_stdinc.h:553:26: note: used in pointer arithmetic here case 1: *_p++ = _val; ^~ 3 warnings generated. mkdir -p -p src/debugger/gui/.deps mkdir -p -p out/src/debugger/gui c++ -MMD -MF "src/debugger/gui/.deps/Cart4A50Widget.d" -MQ "out/src/debugger/gui/Cart4A50Widget.o" -MP -O2 -pipe -I/usr/X11R6/include -I/usr/local/include -x c++ -Wall -Wextra -Wno-unused-parameter -Wno-multichar -Wunused -Woverloaded-virtual -Wnon-virtual-dtor -std=c++17 -Weverything -Wno-c++98-compat-pedantic -Wno-unknown-warning-option -Wno-switch-enum -Wno-conversion -Wno-covered-switch-default -Wno-inconsistent-missing-destructor-override -Wno-float-equal -Wno-exit-time-destructors -Wno-global-constructors -Wno-weak-vtables -Wno-four-char-constants -Wno-padded -Wno-reserved-identifier -Wno-duplicate-enum -fomit-frame-pointer -DSDL_SUPPORT -D_GLIBCXX_USE_CXX11_ABI=1 -DUNIX -DBSPF_UNIX -DGUI_SUPPORT -DWINDOWED_SUPPORT -DSOUND_SUPPORT -DDEBUGGER_SUPPORT -DJOYSTICK_SUPPORT -DCHEATCODE_SUPPORT -DHTTP_LIB_SUPPORT -DPNG_SUPPORT -DZIP_SUPPORT -Isrc/emucore -Isrc/common -Isrc/common/tv_filters -Isrc/emucore/tia -Isrc/emucore/tia/frame-manager -Isrc/json -Isrc/common/repository/sqlite -I/usr/local/include -I/usr/local/include/SDL2 -I/usr/X11R6/include -D_REENTRANT -I/usr/X11R6/include -Isrc/unix -Isrc/gui -Isrc/debugger -Isrc/debugger/gui -Isrc/yacc -Isrc/cheat -Isrc/httplib -c src/debugger/gui/Cart4A50Widget.cxx -o out/src/debugger/gui/Cart4A50Widget.o In file included from src/debugger/gui/Cart4A50Widget.cxx:18: In file included from src/emucore/Cart4A50.hxx:23: src/common/bspf.hxx:245:37: warning: unsafe pointer arithmetic [-Wunsafe-buffer-usage] const auto pos = std::search(s1.cbegin()+startpos, s1.cend(), ~~~^~~~~~~~ src/common/bspf.hxx:249:56: warning: unsafe pointer arithmetic [-Wunsafe-buffer-usage] return pos == s1.cend() ? string::npos : pos - (s1.cbegin()+startpos); ~~~^~~~~~~~ In file included from src/debugger/gui/Cart4A50Widget.cxx:18: In file included from src/emucore/Cart4A50.hxx:26: In file included from src/debugger/gui/Cart4A50Widget.hxx:24: In file included from src/debugger/gui/CartDebugWidget.hxx:30: In file included from src/gui/Widget.hxx:33: In file included from src/common/StellaKeys.hxx:22: In file included from src/common/SDL_lib.hxx:34: In file included from /usr/local/include/SDL2/SDL.h:32: In file included from /usr/local/include/SDL2/SDL_main.h:25: /usr/local/include/SDL2/SDL_stdinc.h:544:13: warning: '_p' is an unsafe pointer used for buffer access [-Wunsafe-buffer-usage] Uint32 *_p = SDL_static_cast(Uint32 *, dst); ~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /usr/local/include/SDL2/SDL_stdinc.h:552:26: note: used in pointer arithmetic here case 2: *_p++ = _val; SDL_FALLTHROUGH; ^~ /usr/local/include/SDL2/SDL_stdinc.h:553:26: note: used in pointer arithmetic here case 1: *_p++ = _val; ^~ /usr/local/include/SDL2/SDL_stdinc.h:550:26: note: used in pointer arithmetic here case 0: do { *_p++ = _val; SDL_FALLTHROUGH; ^~ /usr/local/include/SDL2/SDL_stdinc.h:551:26: note: used in pointer arithmetic here case 3: *_p++ = _val; SDL_FALLTHROUGH; ^~ 3 warnings generated. mkdir -p -p src/debugger/gui/.deps mkdir -p -p out/src/debugger/gui c++ -MMD -MF "src/debugger/gui/.deps/Cart4KSCWidget.d" -MQ "out/src/debugger/gui/Cart4KSCWidget.o" -MP -O2 -pipe -I/usr/X11R6/include -I/usr/local/include -x c++ -Wall -Wextra -Wno-unused-parameter -Wno-multichar -Wunused -Woverloaded-virtual -Wnon-virtual-dtor -std=c++17 -Weverything -Wno-c++98-compat-pedantic -Wno-unknown-warning-option -Wno-switch-enum -Wno-conversion -Wno-covered-switch-default -Wno-inconsistent-missing-destructor-override -Wno-float-equal -Wno-exit-time-destructors -Wno-global-constructors -Wno-weak-vtables -Wno-four-char-constants -Wno-padded -Wno-reserved-identifier -Wno-duplicate-enum -fomit-frame-pointer -DSDL_SUPPORT -D_GLIBCXX_USE_CXX11_ABI=1 -DUNIX -DBSPF_UNIX -DGUI_SUPPORT -DWINDOWED_SUPPORT -DSOUND_SUPPORT -DDEBUGGER_SUPPORT -DJOYSTICK_SUPPORT -DCHEATCODE_SUPPORT -DHTTP_LIB_SUPPORT -DPNG_SUPPORT -DZIP_SUPPORT -Isrc/emucore -Isrc/common -Isrc/common/tv_filters -Isrc/emucore/tia -Isrc/emucore/tia/frame-manager -Isrc/json -Isrc/common/repository/sqlite -I/usr/local/include -I/usr/local/include/SDL2 -I/usr/X11R6/include -D_REENTRANT -I/usr/X11R6/include -Isrc/unix -Isrc/gui -Isrc/debugger -Isrc/debugger/gui -Isrc/yacc -Isrc/cheat -Isrc/httplib -c src/debugger/gui/Cart4KSCWidget.cxx -o out/src/debugger/gui/Cart4KSCWidget.o In file included from src/debugger/gui/Cart4KSCWidget.cxx:18: In file included from src/emucore/Cart4KSC.hxx:23: src/common/bspf.hxx:245:37: warning: unsafe pointer arithmetic [-Wunsafe-buffer-usage] const auto pos = std::search(s1.cbegin()+startpos, s1.cend(), ~~~^~~~~~~~ src/common/bspf.hxx:249:56: warning: unsafe pointer arithmetic [-Wunsafe-buffer-usage] return pos == s1.cend() ? string::npos : pos - (s1.cbegin()+startpos); ~~~^~~~~~~~ In file included from src/debugger/gui/Cart4KSCWidget.cxx:18: In file included from src/emucore/Cart4KSC.hxx:24: In file included from src/emucore/Cart4K.hxx:24: In file included from src/emucore/CartEnhanced.hxx:27: In file included from src/debugger/gui/CartEnhancedWidget.hxx:31: In file included from src/debugger/gui/CartDebugWidget.hxx:30: In file included from src/gui/Widget.hxx:33: In file included from src/common/StellaKeys.hxx:22: In file included from src/common/SDL_lib.hxx:34: In file included from /usr/local/include/SDL2/SDL.h:32: In file included from /usr/local/include/SDL2/SDL_main.h:25: /usr/local/include/SDL2/SDL_stdinc.h:544:13: warning: '_p' is an unsafe pointer used for buffer access [-Wunsafe-buffer-usage] Uint32 *_p = SDL_static_cast(Uint32 *, dst); ~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /usr/local/include/SDL2/SDL_stdinc.h:550:26: note: used in pointer arithmetic here case 0: do { *_p++ = _val; SDL_FALLTHROUGH; ^~ /usr/local/include/SDL2/SDL_stdinc.h:551:26: note: used in pointer arithmetic here case 3: *_p++ = _val; SDL_FALLTHROUGH; ^~ /usr/local/include/SDL2/SDL_stdinc.h:553:26: note: used in pointer arithmetic here case 1: *_p++ = _val; ^~ /usr/local/include/SDL2/SDL_stdinc.h:552:26: note: used in pointer arithmetic here case 2: *_p++ = _val; SDL_FALLTHROUGH; ^~ 3 warnings generated. mkdir -p -p src/debugger/gui/.deps mkdir -p -p out/src/debugger/gui c++ -MMD -MF "src/debugger/gui/.deps/Cart4KWidget.d" -MQ "out/src/debugger/gui/Cart4KWidget.o" -MP -O2 -pipe -I/usr/X11R6/include -I/usr/local/include -x c++ -Wall -Wextra -Wno-unused-parameter -Wno-multichar -Wunused -Woverloaded-virtual -Wnon-virtual-dtor -std=c++17 -Weverything -Wno-c++98-compat-pedantic -Wno-unknown-warning-option -Wno-switch-enum -Wno-conversion -Wno-covered-switch-default -Wno-inconsistent-missing-destructor-override -Wno-float-equal -Wno-exit-time-destructors -Wno-global-constructors -Wno-weak-vtables -Wno-four-char-constants -Wno-padded -Wno-reserved-identifier -Wno-duplicate-enum -fomit-frame-pointer -DSDL_SUPPORT -D_GLIBCXX_USE_CXX11_ABI=1 -DUNIX -DBSPF_UNIX -DGUI_SUPPORT -DWINDOWED_SUPPORT -DSOUND_SUPPORT -DDEBUGGER_SUPPORT -DJOYSTICK_SUPPORT -DCHEATCODE_SUPPORT -DHTTP_LIB_SUPPORT -DPNG_SUPPORT -DZIP_SUPPORT -Isrc/emucore -Isrc/common -Isrc/common/tv_filters -Isrc/emucore/tia -Isrc/emucore/tia/frame-manager -Isrc/json -Isrc/common/repository/sqlite -I/usr/local/include -I/usr/local/include/SDL2 -I/usr/X11R6/include -D_REENTRANT -I/usr/X11R6/include -Isrc/unix -Isrc/gui -Isrc/debugger -Isrc/debugger/gui -Isrc/yacc -Isrc/cheat -Isrc/httplib -c src/debugger/gui/Cart4KWidget.cxx -o out/src/debugger/gui/Cart4KWidget.o In file included from src/debugger/gui/Cart4KWidget.cxx:18: In file included from src/emucore/Cart4K.hxx:23: src/common/bspf.hxx:245:37: warning: unsafe pointer arithmetic [-Wunsafe-buffer-usage] const auto pos = std::search(s1.cbegin()+startpos, s1.cend(), ~~~^~~~~~~~ src/common/bspf.hxx:249:56: warning: unsafe pointer arithmetic [-Wunsafe-buffer-usage] return pos == s1.cend() ? string::npos : pos - (s1.cbegin()+startpos); ~~~^~~~~~~~ In file included from src/debugger/gui/Cart4KWidget.cxx:18: In file included from src/emucore/Cart4K.hxx:24: In file included from src/emucore/CartEnhanced.hxx:27: In file included from src/debugger/gui/CartEnhancedWidget.hxx:31: In file included from src/debugger/gui/CartDebugWidget.hxx:30: In file included from src/gui/Widget.hxx:33: In file included from src/common/StellaKeys.hxx:22: In file included from src/common/SDL_lib.hxx:34: In file included from /usr/local/include/SDL2/SDL.h:32: In file included from /usr/local/include/SDL2/SDL_main.h:25: /usr/local/include/SDL2/SDL_stdinc.h:544:13: warning: '_p' is an unsafe pointer used for buffer access [-Wunsafe-buffer-usage] Uint32 *_p = SDL_static_cast(Uint32 *, dst); ~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /usr/local/include/SDL2/SDL_stdinc.h:552:26: note: used in pointer arithmetic here case 2: *_p++ = _val; SDL_FALLTHROUGH; ^~ /usr/local/include/SDL2/SDL_stdinc.h:551:26: note: used in pointer arithmetic here case 3: *_p++ = _val; SDL_FALLTHROUGH; ^~ /usr/local/include/SDL2/SDL_stdinc.h:550:26: note: used in pointer arithmetic here case 0: do { *_p++ = _val; SDL_FALLTHROUGH; ^~ /usr/local/include/SDL2/SDL_stdinc.h:553:26: note: used in pointer arithmetic here case 1: *_p++ = _val; ^~ 3 warnings generated. mkdir -p -p src/debugger/gui/.deps mkdir -p -p out/src/debugger/gui c++ -MMD -MF "src/debugger/gui/.deps/CartARMWidget.d" -MQ "out/src/debugger/gui/CartARMWidget.o" -MP -O2 -pipe -I/usr/X11R6/include -I/usr/local/include -x c++ -Wall -Wextra -Wno-unused-parameter -Wno-multichar -Wunused -Woverloaded-virtual -Wnon-virtual-dtor -std=c++17 -Weverything -Wno-c++98-compat-pedantic -Wno-unknown-warning-option -Wno-switch-enum -Wno-conversion -Wno-covered-switch-default -Wno-inconsistent-missing-destructor-override -Wno-float-equal -Wno-exit-time-destructors -Wno-global-constructors -Wno-weak-vtables -Wno-four-char-constants -Wno-padded -Wno-reserved-identifier -Wno-duplicate-enum -fomit-frame-pointer -DSDL_SUPPORT -D_GLIBCXX_USE_CXX11_ABI=1 -DUNIX -DBSPF_UNIX -DGUI_SUPPORT -DWINDOWED_SUPPORT -DSOUND_SUPPORT -DDEBUGGER_SUPPORT -DJOYSTICK_SUPPORT -DCHEATCODE_SUPPORT -DHTTP_LIB_SUPPORT -DPNG_SUPPORT -DZIP_SUPPORT -Isrc/emucore -Isrc/common -Isrc/common/tv_filters -Isrc/emucore/tia -Isrc/emucore/tia/frame-manager -Isrc/json -Isrc/common/repository/sqlite -I/usr/local/include -I/usr/local/include/SDL2 -I/usr/X11R6/include -D_REENTRANT -I/usr/X11R6/include -Isrc/unix -Isrc/gui -Isrc/debugger -Isrc/debugger/gui -Isrc/yacc -Isrc/cheat -Isrc/httplib -c src/debugger/gui/CartARMWidget.cxx -o out/src/debugger/gui/CartARMWidget.o In file included from src/debugger/gui/CartARMWidget.cxx:20: In file included from src/emucore/OSystem.hxx:55: In file included from src/emucore/FSNode.hxx:23: src/common/bspf.hxx:245:37: warning: unsafe pointer arithmetic [-Wunsafe-buffer-usage] const auto pos = std::search(s1.cbegin()+startpos, s1.cend(), ~~~^~~~~~~~ src/common/bspf.hxx:249:56: warning: unsafe pointer arithmetic [-Wunsafe-buffer-usage] return pos == s1.cend() ? string::npos : pos - (s1.cbegin()+startpos); ~~~^~~~~~~~ In file included from src/debugger/gui/CartARMWidget.cxx:20: In file included from src/emucore/OSystem.hxx:55: src/emucore/FSNode.hxx:513:31: warning: unsafe pointer arithmetic [-Wunsafe-buffer-usage] const char* cur = start + str.size() - 2; ~~~~~~^~~~~~~~~~~~ src/emucore/FSNode.hxx:512:19: warning: 'start' is an unsafe pointer used for buffer access [-Wunsafe-buffer-usage] const char* start = str.c_str(); ~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~ src/emucore/FSNode.hxx:513:25: note: used in pointer arithmetic here const char* cur = start + str.size() - 2; ^~~~~ src/emucore/FSNode.hxx:513:19: warning: 'cur' is an unsafe pointer used for buffer access [-Wunsafe-buffer-usage] const char* cur = start + str.size() - 2; ~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~ src/emucore/FSNode.hxx:516:11: note: used in pointer arithmetic here --cur; ^~~ src/emucore/FSNode.hxx:518:14: note: used in pointer arithmetic here return cur + 1; ^~~ In file included from src/debugger/gui/CartARMWidget.cxx:22: In file included from src/gui/PopUpWidget.hxx:27: In file included from src/gui/EditableWidget.hxx:23: In file included from src/gui/Widget.hxx:33: In file included from src/common/StellaKeys.hxx:22: In file included from src/common/SDL_lib.hxx:34: In file included from /usr/local/include/SDL2/SDL.h:32: In file included from /usr/local/include/SDL2/SDL_main.h:25: /usr/local/include/SDL2/SDL_stdinc.h:544:13: warning: '_p' is an unsafe pointer used for buffer access [-Wunsafe-buffer-usage] Uint32 *_p = SDL_static_cast(Uint32 *, dst); ~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /usr/local/include/SDL2/SDL_stdinc.h:550:26: note: used in pointer arithmetic here case 0: do { *_p++ = _val; SDL_FALLTHROUGH; ^~ /usr/local/include/SDL2/SDL_stdinc.h:552:26: note: used in pointer arithmetic here case 2: *_p++ = _val; SDL_FALLTHROUGH; ^~ /usr/local/include/SDL2/SDL_stdinc.h:551:26: note: used in pointer arithmetic here case 3: *_p++ = _val; SDL_FALLTHROUGH; ^~ /usr/local/include/SDL2/SDL_stdinc.h:553:26: note: used in pointer arithmetic here case 1: *_p++ = _val; ^~ 6 warnings generated. mkdir -p -p src/debugger/gui/.deps mkdir -p -p out/src/debugger/gui c++ -MMD -MF "src/debugger/gui/.deps/CartARWidget.d" -MQ "out/src/debugger/gui/CartARWidget.o" -MP -O2 -pipe -I/usr/X11R6/include -I/usr/local/include -x c++ -Wall -Wextra -Wno-unused-parameter -Wno-multichar -Wunused -Woverloaded-virtual -Wnon-virtual-dtor -std=c++17 -Weverything -Wno-c++98-compat-pedantic -Wno-unknown-warning-option -Wno-switch-enum -Wno-conversion -Wno-covered-switch-default -Wno-inconsistent-missing-destructor-override -Wno-float-equal -Wno-exit-time-destructors -Wno-global-constructors -Wno-weak-vtables -Wno-four-char-constants -Wno-padded -Wno-reserved-identifier -Wno-duplicate-enum -fomit-frame-pointer -DSDL_SUPPORT -D_GLIBCXX_USE_CXX11_ABI=1 -DUNIX -DBSPF_UNIX -DGUI_SUPPORT -DWINDOWED_SUPPORT -DSOUND_SUPPORT -DDEBUGGER_SUPPORT -DJOYSTICK_SUPPORT -DCHEATCODE_SUPPORT -DHTTP_LIB_SUPPORT -DPNG_SUPPORT -DZIP_SUPPORT -Isrc/emucore -Isrc/common -Isrc/common/tv_filters -Isrc/emucore/tia -Isrc/emucore/tia/frame-manager -Isrc/json -Isrc/common/repository/sqlite -I/usr/local/include -I/usr/local/include/SDL2 -I/usr/X11R6/include -D_REENTRANT -I/usr/X11R6/include -Isrc/unix -Isrc/gui -Isrc/debugger -Isrc/debugger/gui -Isrc/yacc -Isrc/cheat -Isrc/httplib -c src/debugger/gui/CartARWidget.cxx -o out/src/debugger/gui/CartARWidget.o In file included from src/debugger/gui/CartARWidget.cxx:18: In file included from src/emucore/CartAR.hxx:23: src/common/bspf.hxx:245:37: warning: unsafe pointer arithmetic [-Wunsafe-buffer-usage] const auto pos = std::search(s1.cbegin()+startpos, s1.cend(), ~~~^~~~~~~~ src/common/bspf.hxx:249:56: warning: unsafe pointer arithmetic [-Wunsafe-buffer-usage] return pos == s1.cend() ? string::npos : pos - (s1.cbegin()+startpos); ~~~^~~~~~~~ In file included from src/debugger/gui/CartARWidget.cxx:18: In file included from src/emucore/CartAR.hxx:26: In file included from src/debugger/gui/CartARWidget.hxx:24: In file included from src/debugger/gui/CartDebugWidget.hxx:30: In file included from src/gui/Widget.hxx:33: In file included from src/common/StellaKeys.hxx:22: In file included from src/common/SDL_lib.hxx:34: In file included from /usr/local/include/SDL2/SDL.h:32: In file included from /usr/local/include/SDL2/SDL_main.h:25: /usr/local/include/SDL2/SDL_stdinc.h:544:13: warning: '_p' is an unsafe pointer used for buffer access [-Wunsafe-buffer-usage] Uint32 *_p = SDL_static_cast(Uint32 *, dst); ~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /usr/local/include/SDL2/SDL_stdinc.h:553:26: note: used in pointer arithmetic here case 1: *_p++ = _val; ^~ /usr/local/include/SDL2/SDL_stdinc.h:550:26: note: used in pointer arithmetic here case 0: do { *_p++ = _val; SDL_FALLTHROUGH; ^~ /usr/local/include/SDL2/SDL_stdinc.h:551:26: note: used in pointer arithmetic here case 3: *_p++ = _val; SDL_FALLTHROUGH; ^~ /usr/local/include/SDL2/SDL_stdinc.h:552:26: note: used in pointer arithmetic here case 2: *_p++ = _val; SDL_FALLTHROUGH; ^~ In file included from src/debugger/gui/CartARWidget.cxx:19: In file included from src/emucore/OSystem.hxx:55: src/emucore/FSNode.hxx:513:31: warning: unsafe pointer arithmetic [-Wunsafe-buffer-usage] const char* cur = start + str.size() - 2; ~~~~~~^~~~~~~~~~~~ src/emucore/FSNode.hxx:512:19: warning: 'start' is an unsafe pointer used for buffer access [-Wunsafe-buffer-usage] const char* start = str.c_str(); ~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~ src/emucore/FSNode.hxx:513:25: note: used in pointer arithmetic here const char* cur = start + str.size() - 2; ^~~~~ src/emucore/FSNode.hxx:513:19: warning: 'cur' is an unsafe pointer used for buffer access [-Wunsafe-buffer-usage] const char* cur = start + str.size() - 2; ~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~ src/emucore/FSNode.hxx:516:11: note: used in pointer arithmetic here --cur; ^~~ src/emucore/FSNode.hxx:518:14: note: used in pointer arithmetic here return cur + 1; ^~~ 6 warnings generated. mkdir -p -p src/debugger/gui/.deps mkdir -p -p out/src/debugger/gui c++ -MMD -MF "src/debugger/gui/.deps/CartBFSCWidget.d" -MQ "out/src/debugger/gui/CartBFSCWidget.o" -MP -O2 -pipe -I/usr/X11R6/include -I/usr/local/include -x c++ -Wall -Wextra -Wno-unused-parameter -Wno-multichar -Wunused -Woverloaded-virtual -Wnon-virtual-dtor -std=c++17 -Weverything -Wno-c++98-compat-pedantic -Wno-unknown-warning-option -Wno-switch-enum -Wno-conversion -Wno-covered-switch-default -Wno-inconsistent-missing-destructor-override -Wno-float-equal -Wno-exit-time-destructors -Wno-global-constructors -Wno-weak-vtables -Wno-four-char-constants -Wno-padded -Wno-reserved-identifier -Wno-duplicate-enum -fomit-frame-pointer -DSDL_SUPPORT -D_GLIBCXX_USE_CXX11_ABI=1 -DUNIX -DBSPF_UNIX -DGUI_SUPPORT -DWINDOWED_SUPPORT -DSOUND_SUPPORT -DDEBUGGER_SUPPORT -DJOYSTICK_SUPPORT -DCHEATCODE_SUPPORT -DHTTP_LIB_SUPPORT -DPNG_SUPPORT -DZIP_SUPPORT -Isrc/emucore -Isrc/common -Isrc/common/tv_filters -Isrc/emucore/tia -Isrc/emucore/tia/frame-manager -Isrc/json -Isrc/common/repository/sqlite -I/usr/local/include -I/usr/local/include/SDL2 -I/usr/X11R6/include -D_REENTRANT -I/usr/X11R6/include -Isrc/unix -Isrc/gui -Isrc/debugger -Isrc/debugger/gui -Isrc/yacc -Isrc/cheat -Isrc/httplib -c src/debugger/gui/CartBFSCWidget.cxx -o out/src/debugger/gui/CartBFSCWidget.o In file included from src/debugger/gui/CartBFSCWidget.cxx:18: In file included from src/emucore/CartBFSC.hxx:23: src/common/bspf.hxx:245:37: warning: unsafe pointer arithmetic [-Wunsafe-buffer-usage] const auto pos = std::search(s1.cbegin()+startpos, s1.cend(), ~~~^~~~~~~~ src/common/bspf.hxx:249:56: warning: unsafe pointer arithmetic [-Wunsafe-buffer-usage] return pos == s1.cend() ? string::npos : pos - (s1.cbegin()+startpos); ~~~^~~~~~~~ In file included from src/debugger/gui/CartBFSCWidget.cxx:18: In file included from src/emucore/CartBFSC.hxx:24: In file included from src/emucore/CartBF.hxx:24: In file included from src/emucore/CartEnhanced.hxx:27: In file included from src/debugger/gui/CartEnhancedWidget.hxx:31: In file included from src/debugger/gui/CartDebugWidget.hxx:30: In file included from src/gui/Widget.hxx:33: In file included from src/common/StellaKeys.hxx:22: In file included from src/common/SDL_lib.hxx:34: In file included from /usr/local/include/SDL2/SDL.h:32: In file included from /usr/local/include/SDL2/SDL_main.h:25: /usr/local/include/SDL2/SDL_stdinc.h:544:13: warning: '_p' is an unsafe pointer used for buffer access [-Wunsafe-buffer-usage] Uint32 *_p = SDL_static_cast(Uint32 *, dst); ~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /usr/local/include/SDL2/SDL_stdinc.h:550:26: note: used in pointer arithmetic here case 0: do { *_p++ = _val; SDL_FALLTHROUGH; ^~ /usr/local/include/SDL2/SDL_stdinc.h:551:26: note: used in pointer arithmetic here case 3: *_p++ = _val; SDL_FALLTHROUGH; ^~ /usr/local/include/SDL2/SDL_stdinc.h:553:26: note: used in pointer arithmetic here case 1: *_p++ = _val; ^~ /usr/local/include/SDL2/SDL_stdinc.h:552:26: note: used in pointer arithmetic here case 2: *_p++ = _val; SDL_FALLTHROUGH; ^~ 3 warnings generated. mkdir -p -p src/debugger/gui/.deps mkdir -p -p out/src/debugger/gui c++ -MMD -MF "src/debugger/gui/.deps/CartBFWidget.d" -MQ "out/src/debugger/gui/CartBFWidget.o" -MP -O2 -pipe -I/usr/X11R6/include -I/usr/local/include -x c++ -Wall -Wextra -Wno-unused-parameter -Wno-multichar -Wunused -Woverloaded-virtual -Wnon-virtual-dtor -std=c++17 -Weverything -Wno-c++98-compat-pedantic -Wno-unknown-warning-option -Wno-switch-enum -Wno-conversion -Wno-covered-switch-default -Wno-inconsistent-missing-destructor-override -Wno-float-equal -Wno-exit-time-destructors -Wno-global-constructors -Wno-weak-vtables -Wno-four-char-constants -Wno-padded -Wno-reserved-identifier -Wno-duplicate-enum -fomit-frame-pointer -DSDL_SUPPORT -D_GLIBCXX_USE_CXX11_ABI=1 -DUNIX -DBSPF_UNIX -DGUI_SUPPORT -DWINDOWED_SUPPORT -DSOUND_SUPPORT -DDEBUGGER_SUPPORT -DJOYSTICK_SUPPORT -DCHEATCODE_SUPPORT -DHTTP_LIB_SUPPORT -DPNG_SUPPORT -DZIP_SUPPORT -Isrc/emucore -Isrc/common -Isrc/common/tv_filters -Isrc/emucore/tia -Isrc/emucore/tia/frame-manager -Isrc/json -Isrc/common/repository/sqlite -I/usr/local/include -I/usr/local/include/SDL2 -I/usr/X11R6/include -D_REENTRANT -I/usr/X11R6/include -Isrc/unix -Isrc/gui -Isrc/debugger -Isrc/debugger/gui -Isrc/yacc -Isrc/cheat -Isrc/httplib -c src/debugger/gui/CartBFWidget.cxx -o out/src/debugger/gui/CartBFWidget.o In file included from src/debugger/gui/CartBFWidget.cxx:18: In file included from src/emucore/CartBF.hxx:23: src/common/bspf.hxx:245:37: warning: unsafe pointer arithmetic [-Wunsafe-buffer-usage] const auto pos = std::search(s1.cbegin()+startpos, s1.cend(), ~~~^~~~~~~~ src/common/bspf.hxx:249:56: warning: unsafe pointer arithmetic [-Wunsafe-buffer-usage] return pos == s1.cend() ? string::npos : pos - (s1.cbegin()+startpos); ~~~^~~~~~~~ In file included from src/debugger/gui/CartBFWidget.cxx:18: In file included from src/emucore/CartBF.hxx:24: In file included from src/emucore/CartEnhanced.hxx:27: In file included from src/debugger/gui/CartEnhancedWidget.hxx:31: In file included from src/debugger/gui/CartDebugWidget.hxx:30: In file included from src/gui/Widget.hxx:33: In file included from src/common/StellaKeys.hxx:22: In file included from src/common/SDL_lib.hxx:34: In file included from /usr/local/include/SDL2/SDL.h:32: In file included from /usr/local/include/SDL2/SDL_main.h:25: /usr/local/include/SDL2/SDL_stdinc.h:544:13: warning: '_p' is an unsafe pointer used for buffer access [-Wunsafe-buffer-usage] Uint32 *_p = SDL_static_cast(Uint32 *, dst); ~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /usr/local/include/SDL2/SDL_stdinc.h:551:26: note: used in pointer arithmetic here case 3: *_p++ = _val; SDL_FALLTHROUGH; ^~ /usr/local/include/SDL2/SDL_stdinc.h:553:26: note: used in pointer arithmetic here case 1: *_p++ = _val; ^~ /usr/local/include/SDL2/SDL_stdinc.h:552:26: note: used in pointer arithmetic here case 2: *_p++ = _val; SDL_FALLTHROUGH; ^~ /usr/local/include/SDL2/SDL_stdinc.h:550:26: note: used in pointer arithmetic here case 0: do { *_p++ = _val; SDL_FALLTHROUGH; ^~ 3 warnings generated. mkdir -p -p src/debugger/gui/.deps mkdir -p -p out/src/debugger/gui c++ -MMD -MF "src/debugger/gui/.deps/CartBUSWidget.d" -MQ "out/src/debugger/gui/CartBUSWidget.o" -MP -O2 -pipe -I/usr/X11R6/include -I/usr/local/include -x c++ -Wall -Wextra -Wno-unused-parameter -Wno-multichar -Wunused -Woverloaded-virtual -Wnon-virtual-dtor -std=c++17 -Weverything -Wno-c++98-compat-pedantic -Wno-unknown-warning-option -Wno-switch-enum -Wno-conversion -Wno-covered-switch-default -Wno-inconsistent-missing-destructor-override -Wno-float-equal -Wno-exit-time-destructors -Wno-global-constructors -Wno-weak-vtables -Wno-four-char-constants -Wno-padded -Wno-reserved-identifier -Wno-duplicate-enum -fomit-frame-pointer -DSDL_SUPPORT -D_GLIBCXX_USE_CXX11_ABI=1 -DUNIX -DBSPF_UNIX -DGUI_SUPPORT -DWINDOWED_SUPPORT -DSOUND_SUPPORT -DDEBUGGER_SUPPORT -DJOYSTICK_SUPPORT -DCHEATCODE_SUPPORT -DHTTP_LIB_SUPPORT -DPNG_SUPPORT -DZIP_SUPPORT -Isrc/emucore -Isrc/common -Isrc/common/tv_filters -Isrc/emucore/tia -Isrc/emucore/tia/frame-manager -Isrc/json -Isrc/common/repository/sqlite -I/usr/local/include -I/usr/local/include/SDL2 -I/usr/X11R6/include -D_REENTRANT -I/usr/X11R6/include -Isrc/unix -Isrc/gui -Isrc/debugger -Isrc/debugger/gui -Isrc/yacc -Isrc/cheat -Isrc/httplib -c src/debugger/gui/CartBUSWidget.cxx -o out/src/debugger/gui/CartBUSWidget.o In file included from src/debugger/gui/CartBUSWidget.cxx:18: In file included from src/emucore/CartBUS.hxx:23: src/common/bspf.hxx:245:37: warning: unsafe pointer arithmetic [-Wunsafe-buffer-usage] const auto pos = std::search(s1.cbegin()+startpos, s1.cend(), ~~~^~~~~~~~ src/common/bspf.hxx:249:56: warning: unsafe pointer arithmetic [-Wunsafe-buffer-usage] return pos == s1.cend() ? string::npos : pos - (s1.cbegin()+startpos); ~~~^~~~~~~~ In file included from src/debugger/gui/CartBUSWidget.cxx:19: In file included from src/debugger/gui/DataGridWidget.hxx:25: In file included from src/gui/Widget.hxx:33: In file included from src/common/StellaKeys.hxx:22: In file included from src/common/SDL_lib.hxx:34: In file included from /usr/local/include/SDL2/SDL.h:32: In file included from /usr/local/include/SDL2/SDL_main.h:25: /usr/local/include/SDL2/SDL_stdinc.h:544:13: warning: '_p' is an unsafe pointer used for buffer access [-Wunsafe-buffer-usage] Uint32 *_p = SDL_static_cast(Uint32 *, dst); ~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /usr/local/include/SDL2/SDL_stdinc.h:550:26: note: used in pointer arithmetic here case 0: do { *_p++ = _val; SDL_FALLTHROUGH; ^~ /usr/local/include/SDL2/SDL_stdinc.h:551:26: note: used in pointer arithmetic here case 3: *_p++ = _val; SDL_FALLTHROUGH; ^~ /usr/local/include/SDL2/SDL_stdinc.h:552:26: note: used in pointer arithmetic here case 2: *_p++ = _val; SDL_FALLTHROUGH; ^~ /usr/local/include/SDL2/SDL_stdinc.h:553:26: note: used in pointer arithmetic here case 1: *_p++ = _val; ^~ 3 warnings generated. mkdir -p -p src/debugger/gui/.deps mkdir -p -p out/src/debugger/gui c++ -MMD -MF "src/debugger/gui/.deps/CartBUSInfoWidget.d" -MQ "out/src/debugger/gui/CartBUSInfoWidget.o" -MP -O2 -pipe -I/usr/X11R6/include -I/usr/local/include -x c++ -Wall -Wextra -Wno-unused-parameter -Wno-multichar -Wunused -Woverloaded-virtual -Wnon-virtual-dtor -std=c++17 -Weverything -Wno-c++98-compat-pedantic -Wno-unknown-warning-option -Wno-switch-enum -Wno-conversion -Wno-covered-switch-default -Wno-inconsistent-missing-destructor-override -Wno-float-equal -Wno-exit-time-destructors -Wno-global-constructors -Wno-weak-vtables -Wno-four-char-constants -Wno-padded -Wno-reserved-identifier -Wno-duplicate-enum -fomit-frame-pointer -DSDL_SUPPORT -D_GLIBCXX_USE_CXX11_ABI=1 -DUNIX -DBSPF_UNIX -DGUI_SUPPORT -DWINDOWED_SUPPORT -DSOUND_SUPPORT -DDEBUGGER_SUPPORT -DJOYSTICK_SUPPORT -DCHEATCODE_SUPPORT -DHTTP_LIB_SUPPORT -DPNG_SUPPORT -DZIP_SUPPORT -Isrc/emucore -Isrc/common -Isrc/common/tv_filters -Isrc/emucore/tia -Isrc/emucore/tia/frame-manager -Isrc/json -Isrc/common/repository/sqlite -I/usr/local/include -I/usr/local/include/SDL2 -I/usr/X11R6/include -D_REENTRANT -I/usr/X11R6/include -Isrc/unix -Isrc/gui -Isrc/debugger -Isrc/debugger/gui -Isrc/yacc -Isrc/cheat -Isrc/httplib -c src/debugger/gui/CartBUSInfoWidget.cxx -o out/src/debugger/gui/CartBUSInfoWidget.o In file included from src/debugger/gui/CartBUSInfoWidget.cxx:18: In file included from src/debugger/gui/CartBUSInfoWidget.hxx:21: In file included from src/emucore/CartBUS.hxx:23: src/common/bspf.hxx:245:37: warning: unsafe pointer arithmetic [-Wunsafe-buffer-usage] const auto pos = std::search(s1.cbegin()+startpos, s1.cend(), ~~~^~~~~~~~ src/common/bspf.hxx:249:56: warning: unsafe pointer arithmetic [-Wunsafe-buffer-usage] return pos == s1.cend() ? string::npos : pos - (s1.cbegin()+startpos); ~~~^~~~~~~~ In file included from src/debugger/gui/CartBUSInfoWidget.cxx:18: In file included from src/debugger/gui/CartBUSInfoWidget.hxx:22: In file included from src/debugger/gui/CartDebugWidget.hxx:30: In file included from src/gui/Widget.hxx:33: In file included from src/common/StellaKeys.hxx:22: In file included from src/common/SDL_lib.hxx:34: In file included from /usr/local/include/SDL2/SDL.h:32: In file included from /usr/local/include/SDL2/SDL_main.h:25: /usr/local/include/SDL2/SDL_stdinc.h:544:13: warning: '_p' is an unsafe pointer used for buffer access [-Wunsafe-buffer-usage] Uint32 *_p = SDL_static_cast(Uint32 *, dst); ~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /usr/local/include/SDL2/SDL_stdinc.h:552:26: note: used in pointer arithmetic here case 2: *_p++ = _val; SDL_FALLTHROUGH; ^~ /usr/local/include/SDL2/SDL_stdinc.h:553:26: note: used in pointer arithmetic here case 1: *_p++ = _val; ^~ /usr/local/include/SDL2/SDL_stdinc.h:550:26: note: used in pointer arithmetic here case 0: do { *_p++ = _val; SDL_FALLTHROUGH; ^~ /usr/local/include/SDL2/SDL_stdinc.h:551:26: note: used in pointer arithmetic here case 3: *_p++ = _val; SDL_FALLTHROUGH; ^~ 3 warnings generated. mkdir -p -p src/debugger/gui/.deps mkdir -p -p out/src/debugger/gui c++ -MMD -MF "src/debugger/gui/.deps/CartCDFWidget.d" -MQ "out/src/debugger/gui/CartCDFWidget.o" -MP -O2 -pipe -I/usr/X11R6/include -I/usr/local/include -x c++ -Wall -Wextra -Wno-unused-parameter -Wno-multichar -Wunused -Woverloaded-virtual -Wnon-virtual-dtor -std=c++17 -Weverything -Wno-c++98-compat-pedantic -Wno-unknown-warning-option -Wno-switch-enum -Wno-conversion -Wno-covered-switch-default -Wno-inconsistent-missing-destructor-override -Wno-float-equal -Wno-exit-time-destructors -Wno-global-constructors -Wno-weak-vtables -Wno-four-char-constants -Wno-padded -Wno-reserved-identifier -Wno-duplicate-enum -fomit-frame-pointer -DSDL_SUPPORT -D_GLIBCXX_USE_CXX11_ABI=1 -DUNIX -DBSPF_UNIX -DGUI_SUPPORT -DWINDOWED_SUPPORT -DSOUND_SUPPORT -DDEBUGGER_SUPPORT -DJOYSTICK_SUPPORT -DCHEATCODE_SUPPORT -DHTTP_LIB_SUPPORT -DPNG_SUPPORT -DZIP_SUPPORT -Isrc/emucore -Isrc/common -Isrc/common/tv_filters -Isrc/emucore/tia -Isrc/emucore/tia/frame-manager -Isrc/json -Isrc/common/repository/sqlite -I/usr/local/include -I/usr/local/include/SDL2 -I/usr/X11R6/include -D_REENTRANT -I/usr/X11R6/include -Isrc/unix -Isrc/gui -Isrc/debugger -Isrc/debugger/gui -Isrc/yacc -Isrc/cheat -Isrc/httplib -c src/debugger/gui/CartCDFWidget.cxx -o out/src/debugger/gui/CartCDFWidget.o In file included from src/debugger/gui/CartCDFWidget.cxx:18: In file included from src/emucore/OSystem.hxx:55: In file included from src/emucore/FSNode.hxx:23: src/common/bspf.hxx:245:37: warning: unsafe pointer arithmetic [-Wunsafe-buffer-usage] const auto pos = std::search(s1.cbegin()+startpos, s1.cend(), ~~~^~~~~~~~ src/common/bspf.hxx:249:56: warning: unsafe pointer arithmetic [-Wunsafe-buffer-usage] return pos == s1.cend() ? string::npos : pos - (s1.cbegin()+startpos); ~~~^~~~~~~~ In file included from src/debugger/gui/CartCDFWidget.cxx:18: In file included from src/emucore/OSystem.hxx:55: src/emucore/FSNode.hxx:513:31: warning: unsafe pointer arithmetic [-Wunsafe-buffer-usage] const char* cur = start + str.size() - 2; ~~~~~~^~~~~~~~~~~~ src/emucore/FSNode.hxx:512:19: warning: 'start' is an unsafe pointer used for buffer access [-Wunsafe-buffer-usage] const char* start = str.c_str(); ~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~ src/emucore/FSNode.hxx:513:25: note: used in pointer arithmetic here const char* cur = start + str.size() - 2; ^~~~~ src/emucore/FSNode.hxx:513:19: warning: 'cur' is an unsafe pointer used for buffer access [-Wunsafe-buffer-usage] const char* cur = start + str.size() - 2; ~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~ src/emucore/FSNode.hxx:518:14: note: used in pointer arithmetic here return cur + 1; ^~~ src/emucore/FSNode.hxx:516:11: note: used in pointer arithmetic here --cur; ^~~ In file included from src/debugger/gui/CartCDFWidget.cxx:19: In file included from src/debugger/gui/DataGridWidget.hxx:25: In file included from src/gui/Widget.hxx:33: In file included from src/common/StellaKeys.hxx:22: In file included from src/common/SDL_lib.hxx:34: In file included from /usr/local/include/SDL2/SDL.h:32: In file included from /usr/local/include/SDL2/SDL_main.h:25: /usr/local/include/SDL2/SDL_stdinc.h:544:13: warning: '_p' is an unsafe pointer used for buffer access [-Wunsafe-buffer-usage] Uint32 *_p = SDL_static_cast(Uint32 *, dst); ~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /usr/local/include/SDL2/SDL_stdinc.h:551:26: note: used in pointer arithmetic here case 3: *_p++ = _val; SDL_FALLTHROUGH; ^~ /usr/local/include/SDL2/SDL_stdinc.h:552:26: note: used in pointer arithmetic here case 2: *_p++ = _val; SDL_FALLTHROUGH; ^~ /usr/local/include/SDL2/SDL_stdinc.h:553:26: note: used in pointer arithmetic here case 1: *_p++ = _val; ^~ /usr/local/include/SDL2/SDL_stdinc.h:550:26: note: used in pointer arithmetic here case 0: do { *_p++ = _val; SDL_FALLTHROUGH; ^~ 6 warnings generated. mkdir -p -p src/debugger/gui/.deps mkdir -p -p out/src/debugger/gui c++ -MMD -MF "src/debugger/gui/.deps/CartCDFInfoWidget.d" -MQ "out/src/debugger/gui/CartCDFInfoWidget.o" -MP -O2 -pipe -I/usr/X11R6/include -I/usr/local/include -x c++ -Wall -Wextra -Wno-unused-parameter -Wno-multichar -Wunused -Woverloaded-virtual -Wnon-virtual-dtor -std=c++17 -Weverything -Wno-c++98-compat-pedantic -Wno-unknown-warning-option -Wno-switch-enum -Wno-conversion -Wno-covered-switch-default -Wno-inconsistent-missing-destructor-override -Wno-float-equal -Wno-exit-time-destructors -Wno-global-constructors -Wno-weak-vtables -Wno-four-char-constants -Wno-padded -Wno-reserved-identifier -Wno-duplicate-enum -fomit-frame-pointer -DSDL_SUPPORT -D_GLIBCXX_USE_CXX11_ABI=1 -DUNIX -DBSPF_UNIX -DGUI_SUPPORT -DWINDOWED_SUPPORT -DSOUND_SUPPORT -DDEBUGGER_SUPPORT -DJOYSTICK_SUPPORT -DCHEATCODE_SUPPORT -DHTTP_LIB_SUPPORT -DPNG_SUPPORT -DZIP_SUPPORT -Isrc/emucore -Isrc/common -Isrc/common/tv_filters -Isrc/emucore/tia -Isrc/emucore/tia/frame-manager -Isrc/json -Isrc/common/repository/sqlite -I/usr/local/include -I/usr/local/include/SDL2 -I/usr/X11R6/include -D_REENTRANT -I/usr/X11R6/include -Isrc/unix -Isrc/gui -Isrc/debugger -Isrc/debugger/gui -Isrc/yacc -Isrc/cheat -Isrc/httplib -c src/debugger/gui/CartCDFInfoWidget.cxx -o out/src/debugger/gui/CartCDFInfoWidget.o In file included from src/debugger/gui/CartCDFInfoWidget.cxx:18: In file included from src/debugger/gui/CartCDFInfoWidget.hxx:21: In file included from src/emucore/CartCDF.hxx:23: src/common/bspf.hxx:245:37: warning: unsafe pointer arithmetic [-Wunsafe-buffer-usage] const auto pos = std::search(s1.cbegin()+startpos, s1.cend(), ~~~^~~~~~~~ src/common/bspf.hxx:249:56: warning: unsafe pointer arithmetic [-Wunsafe-buffer-usage] return pos == s1.cend() ? string::npos : pos - (s1.cbegin()+startpos); ~~~^~~~~~~~ In file included from src/debugger/gui/CartCDFInfoWidget.cxx:18: In file included from src/debugger/gui/CartCDFInfoWidget.hxx:22: In file included from src/debugger/gui/CartDebugWidget.hxx:30: In file included from src/gui/Widget.hxx:33: In file included from src/common/StellaKeys.hxx:22: In file included from src/common/SDL_lib.hxx:34: In file included from /usr/local/include/SDL2/SDL.h:32: In file included from /usr/local/include/SDL2/SDL_main.h:25: /usr/local/include/SDL2/SDL_stdinc.h:544:13: warning: '_p' is an unsafe pointer used for buffer access [-Wunsafe-buffer-usage] Uint32 *_p = SDL_static_cast(Uint32 *, dst); ~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /usr/local/include/SDL2/SDL_stdinc.h:550:26: note: used in pointer arithmetic here case 0: do { *_p++ = _val; SDL_FALLTHROUGH; ^~ /usr/local/include/SDL2/SDL_stdinc.h:552:26: note: used in pointer arithmetic here case 2: *_p++ = _val; SDL_FALLTHROUGH; ^~ /usr/local/include/SDL2/SDL_stdinc.h:553:26: note: used in pointer arithmetic here case 1: *_p++ = _val; ^~ /usr/local/include/SDL2/SDL_stdinc.h:551:26: note: used in pointer arithmetic here case 3: *_p++ = _val; SDL_FALLTHROUGH; ^~ 3 warnings generated. mkdir -p -p src/debugger/gui/.deps mkdir -p -p out/src/debugger/gui c++ -MMD -MF "src/debugger/gui/.deps/CartCMWidget.d" -MQ "out/src/debugger/gui/CartCMWidget.o" -MP -O2 -pipe -I/usr/X11R6/include -I/usr/local/include -x c++ -Wall -Wextra -Wno-unused-parameter -Wno-multichar -Wunused -Woverloaded-virtual -Wnon-virtual-dtor -std=c++17 -Weverything -Wno-c++98-compat-pedantic -Wno-unknown-warning-option -Wno-switch-enum -Wno-conversion -Wno-covered-switch-default -Wno-inconsistent-missing-destructor-override -Wno-float-equal -Wno-exit-time-destructors -Wno-global-constructors -Wno-weak-vtables -Wno-four-char-constants -Wno-padded -Wno-reserved-identifier -Wno-duplicate-enum -fomit-frame-pointer -DSDL_SUPPORT -D_GLIBCXX_USE_CXX11_ABI=1 -DUNIX -DBSPF_UNIX -DGUI_SUPPORT -DWINDOWED_SUPPORT -DSOUND_SUPPORT -DDEBUGGER_SUPPORT -DJOYSTICK_SUPPORT -DCHEATCODE_SUPPORT -DHTTP_LIB_SUPPORT -DPNG_SUPPORT -DZIP_SUPPORT -Isrc/emucore -Isrc/common -Isrc/common/tv_filters -Isrc/emucore/tia -Isrc/emucore/tia/frame-manager -Isrc/json -Isrc/common/repository/sqlite -I/usr/local/include -I/usr/local/include/SDL2 -I/usr/X11R6/include -D_REENTRANT -I/usr/X11R6/include -Isrc/unix -Isrc/gui -Isrc/debugger -Isrc/debugger/gui -Isrc/yacc -Isrc/cheat -Isrc/httplib -c src/debugger/gui/CartCMWidget.cxx -o out/src/debugger/gui/CartCMWidget.o In file included from src/debugger/gui/CartCMWidget.cxx:18: In file included from src/emucore/CartCM.hxx:24: src/common/bspf.hxx:245:37: warning: unsafe pointer arithmetic [-Wunsafe-buffer-usage] const auto pos = std::search(s1.cbegin()+startpos, s1.cend(), ~~~^~~~~~~~ src/common/bspf.hxx:249:56: warning: unsafe pointer arithmetic [-Wunsafe-buffer-usage] return pos == s1.cend() ? string::npos : pos - (s1.cbegin()+startpos); ~~~^~~~~~~~ In file included from src/debugger/gui/CartCMWidget.cxx:18: In file included from src/emucore/CartCM.hxx:27: In file included from src/debugger/gui/CartCMWidget.hxx:28: In file included from src/debugger/gui/CartDebugWidget.hxx:30: In file included from src/gui/Widget.hxx:33: In file included from src/common/StellaKeys.hxx:22: In file included from src/common/SDL_lib.hxx:34: In file included from /usr/local/include/SDL2/SDL.h:32: In file included from /usr/local/include/SDL2/SDL_main.h:25: /usr/local/include/SDL2/SDL_stdinc.h:544:13: warning: '_p' is an unsafe pointer used for buffer access [-Wunsafe-buffer-usage] Uint32 *_p = SDL_static_cast(Uint32 *, dst); ~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /usr/local/include/SDL2/SDL_stdinc.h:553:26: note: used in pointer arithmetic here case 1: *_p++ = _val; ^~ /usr/local/include/SDL2/SDL_stdinc.h:550:26: note: used in pointer arithmetic here case 0: do { *_p++ = _val; SDL_FALLTHROUGH; ^~ /usr/local/include/SDL2/SDL_stdinc.h:552:26: note: used in pointer arithmetic here case 2: *_p++ = _val; SDL_FALLTHROUGH; ^~ /usr/local/include/SDL2/SDL_stdinc.h:551:26: note: used in pointer arithmetic here case 3: *_p++ = _val; SDL_FALLTHROUGH; ^~ In file included from src/debugger/gui/CartCMWidget.cxx:19: In file included from src/emucore/OSystem.hxx:55: src/emucore/FSNode.hxx:513:31: warning: unsafe pointer arithmetic [-Wunsafe-buffer-usage] const char* cur = start + str.size() - 2; ~~~~~~^~~~~~~~~~~~ src/emucore/FSNode.hxx:512:19: warning: 'start' is an unsafe pointer used for buffer access [-Wunsafe-buffer-usage] const char* start = str.c_str(); ~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~ src/emucore/FSNode.hxx:513:25: note: used in pointer arithmetic here const char* cur = start + str.size() - 2; ^~~~~ src/emucore/FSNode.hxx:513:19: warning: 'cur' is an unsafe pointer used for buffer access [-Wunsafe-buffer-usage] const char* cur = start + str.size() - 2; ~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~ src/emucore/FSNode.hxx:518:14: note: used in pointer arithmetic here return cur + 1; ^~~ src/emucore/FSNode.hxx:516:11: note: used in pointer arithmetic here --cur; ^~~ 6 warnings generated. mkdir -p -p src/debugger/gui/.deps mkdir -p -p out/src/debugger/gui c++ -MMD -MF "src/debugger/gui/.deps/CartCTYWidget.d" -MQ "out/src/debugger/gui/CartCTYWidget.o" -MP -O2 -pipe -I/usr/X11R6/include -I/usr/local/include -x c++ -Wall -Wextra -Wno-unused-parameter -Wno-multichar -Wunused -Woverloaded-virtual -Wnon-virtual-dtor -std=c++17 -Weverything -Wno-c++98-compat-pedantic -Wno-unknown-warning-option -Wno-switch-enum -Wno-conversion -Wno-covered-switch-default -Wno-inconsistent-missing-destructor-override -Wno-float-equal -Wno-exit-time-destructors -Wno-global-constructors -Wno-weak-vtables -Wno-four-char-constants -Wno-padded -Wno-reserved-identifier -Wno-duplicate-enum -fomit-frame-pointer -DSDL_SUPPORT -D_GLIBCXX_USE_CXX11_ABI=1 -DUNIX -DBSPF_UNIX -DGUI_SUPPORT -DWINDOWED_SUPPORT -DSOUND_SUPPORT -DDEBUGGER_SUPPORT -DJOYSTICK_SUPPORT -DCHEATCODE_SUPPORT -DHTTP_LIB_SUPPORT -DPNG_SUPPORT -DZIP_SUPPORT -Isrc/emucore -Isrc/common -Isrc/common/tv_filters -Isrc/emucore/tia -Isrc/emucore/tia/frame-manager -Isrc/json -Isrc/common/repository/sqlite -I/usr/local/include -I/usr/local/include/SDL2 -I/usr/X11R6/include -D_REENTRANT -I/usr/X11R6/include -Isrc/unix -Isrc/gui -Isrc/debugger -Isrc/debugger/gui -Isrc/yacc -Isrc/cheat -Isrc/httplib -c src/debugger/gui/CartCTYWidget.cxx -o out/src/debugger/gui/CartCTYWidget.o In file included from src/debugger/gui/CartCTYWidget.cxx:18: In file included from src/emucore/OSystem.hxx:55: In file included from src/emucore/FSNode.hxx:23: src/common/bspf.hxx:245:37: warning: unsafe pointer arithmetic [-Wunsafe-buffer-usage] const auto pos = std::search(s1.cbegin()+startpos, s1.cend(), ~~~^~~~~~~~ src/common/bspf.hxx:249:56: warning: unsafe pointer arithmetic [-Wunsafe-buffer-usage] return pos == s1.cend() ? string::npos : pos - (s1.cbegin()+startpos); ~~~^~~~~~~~ In file included from src/debugger/gui/CartCTYWidget.cxx:18: In file included from src/emucore/OSystem.hxx:55: src/emucore/FSNode.hxx:513:31: warning: unsafe pointer arithmetic [-Wunsafe-buffer-usage] const char* cur = start + str.size() - 2; ~~~~~~^~~~~~~~~~~~ src/emucore/FSNode.hxx:512:19: warning: 'start' is an unsafe pointer used for buffer access [-Wunsafe-buffer-usage] const char* start = str.c_str(); ~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~ src/emucore/FSNode.hxx:513:25: note: used in pointer arithmetic here const char* cur = start + str.size() - 2; ^~~~~ src/emucore/FSNode.hxx:513:19: warning: 'cur' is an unsafe pointer used for buffer access [-Wunsafe-buffer-usage] const char* cur = start + str.size() - 2; ~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~ src/emucore/FSNode.hxx:518:14: note: used in pointer arithmetic here return cur + 1; ^~~ src/emucore/FSNode.hxx:516:11: note: used in pointer arithmetic here --cur; ^~~ In file included from src/debugger/gui/CartCTYWidget.cxx:19: In file included from src/debugger/Debugger.hxx:48: In file included from src/gui/DialogContainer.hxx:26: In file included from src/common/StellaKeys.hxx:22: In file included from src/common/SDL_lib.hxx:34: In file included from /usr/local/include/SDL2/SDL.h:32: In file included from /usr/local/include/SDL2/SDL_main.h:25: /usr/local/include/SDL2/SDL_stdinc.h:544:13: warning: '_p' is an unsafe pointer used for buffer access [-Wunsafe-buffer-usage] Uint32 *_p = SDL_static_cast(Uint32 *, dst); ~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /usr/local/include/SDL2/SDL_stdinc.h:553:26: note: used in pointer arithmetic here case 1: *_p++ = _val; ^~ /usr/local/include/SDL2/SDL_stdinc.h:551:26: note: used in pointer arithmetic here case 3: *_p++ = _val; SDL_FALLTHROUGH; ^~ /usr/local/include/SDL2/SDL_stdinc.h:552:26: note: used in pointer arithmetic here case 2: *_p++ = _val; SDL_FALLTHROUGH; ^~ /usr/local/include/SDL2/SDL_stdinc.h:550:26: note: used in pointer arithmetic here case 0: do { *_p++ = _val; SDL_FALLTHROUGH; ^~ 6 warnings generated. mkdir -p -p src/debugger/gui/.deps mkdir -p -p out/src/debugger/gui c++ -MMD -MF "src/debugger/gui/.deps/CartCVWidget.d" -MQ "out/src/debugger/gui/CartCVWidget.o" -MP -O2 -pipe -I/usr/X11R6/include -I/usr/local/include -x c++ -Wall -Wextra -Wno-unused-parameter -Wno-multichar -Wunused -Woverloaded-virtual -Wnon-virtual-dtor -std=c++17 -Weverything -Wno-c++98-compat-pedantic -Wno-unknown-warning-option -Wno-switch-enum -Wno-conversion -Wno-covered-switch-default -Wno-inconsistent-missing-destructor-override -Wno-float-equal -Wno-exit-time-destructors -Wno-global-constructors -Wno-weak-vtables -Wno-four-char-constants -Wno-padded -Wno-reserved-identifier -Wno-duplicate-enum -fomit-frame-pointer -DSDL_SUPPORT -D_GLIBCXX_USE_CXX11_ABI=1 -DUNIX -DBSPF_UNIX -DGUI_SUPPORT -DWINDOWED_SUPPORT -DSOUND_SUPPORT -DDEBUGGER_SUPPORT -DJOYSTICK_SUPPORT -DCHEATCODE_SUPPORT -DHTTP_LIB_SUPPORT -DPNG_SUPPORT -DZIP_SUPPORT -Isrc/emucore -Isrc/common -Isrc/common/tv_filters -Isrc/emucore/tia -Isrc/emucore/tia/frame-manager -Isrc/json -Isrc/common/repository/sqlite -I/usr/local/include -I/usr/local/include/SDL2 -I/usr/X11R6/include -D_REENTRANT -I/usr/X11R6/include -Isrc/unix -Isrc/gui -Isrc/debugger -Isrc/debugger/gui -Isrc/yacc -Isrc/cheat -Isrc/httplib -c src/debugger/gui/CartCVWidget.cxx -o out/src/debugger/gui/CartCVWidget.o In file included from src/debugger/gui/CartCVWidget.cxx:18: In file included from src/debugger/Debugger.hxx:46: In file included from src/common/Base.hxx:24: src/common/bspf.hxx:245:37: warning: unsafe pointer arithmetic [-Wunsafe-buffer-usage] const auto pos = std::search(s1.cbegin()+startpos, s1.cend(), ~~~^~~~~~~~ src/common/bspf.hxx:249:56: warning: unsafe pointer arithmetic [-Wunsafe-buffer-usage] return pos == s1.cend() ? string::npos : pos - (s1.cbegin()+startpos); ~~~^~~~~~~~ In file included from src/debugger/gui/CartCVWidget.cxx:18: In file included from src/debugger/Debugger.hxx:48: In file included from src/gui/DialogContainer.hxx:26: In file included from src/common/StellaKeys.hxx:22: In file included from src/common/SDL_lib.hxx:34: In file included from /usr/local/include/SDL2/SDL.h:32: In file included from /usr/local/include/SDL2/SDL_main.h:25: /usr/local/include/SDL2/SDL_stdinc.h:544:13: warning: '_p' is an unsafe pointer used for buffer access [-Wunsafe-buffer-usage] Uint32 *_p = SDL_static_cast(Uint32 *, dst); ~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /usr/local/include/SDL2/SDL_stdinc.h:551:26: note: used in pointer arithmetic here case 3: *_p++ = _val; SDL_FALLTHROUGH; ^~ /usr/local/include/SDL2/SDL_stdinc.h:552:26: note: used in pointer arithmetic here case 2: *_p++ = _val; SDL_FALLTHROUGH; ^~ /usr/local/include/SDL2/SDL_stdinc.h:550:26: note: used in pointer arithmetic here case 0: do { *_p++ = _val; SDL_FALLTHROUGH; ^~ /usr/local/include/SDL2/SDL_stdinc.h:553:26: note: used in pointer arithmetic here case 1: *_p++ = _val; ^~ 3 warnings generated. mkdir -p -p src/debugger/gui/.deps mkdir -p -p out/src/debugger/gui c++ -MMD -MF "src/debugger/gui/.deps/CartDFSCWidget.d" -MQ "out/src/debugger/gui/CartDFSCWidget.o" -MP -O2 -pipe -I/usr/X11R6/include -I/usr/local/include -x c++ -Wall -Wextra -Wno-unused-parameter -Wno-multichar -Wunused -Woverloaded-virtual -Wnon-virtual-dtor -std=c++17 -Weverything -Wno-c++98-compat-pedantic -Wno-unknown-warning-option -Wno-switch-enum -Wno-conversion -Wno-covered-switch-default -Wno-inconsistent-missing-destructor-override -Wno-float-equal -Wno-exit-time-destructors -Wno-global-constructors -Wno-weak-vtables -Wno-four-char-constants -Wno-padded -Wno-reserved-identifier -Wno-duplicate-enum -fomit-frame-pointer -DSDL_SUPPORT -D_GLIBCXX_USE_CXX11_ABI=1 -DUNIX -DBSPF_UNIX -DGUI_SUPPORT -DWINDOWED_SUPPORT -DSOUND_SUPPORT -DDEBUGGER_SUPPORT -DJOYSTICK_SUPPORT -DCHEATCODE_SUPPORT -DHTTP_LIB_SUPPORT -DPNG_SUPPORT -DZIP_SUPPORT -Isrc/emucore -Isrc/common -Isrc/common/tv_filters -Isrc/emucore/tia -Isrc/emucore/tia/frame-manager -Isrc/json -Isrc/common/repository/sqlite -I/usr/local/include -I/usr/local/include/SDL2 -I/usr/X11R6/include -D_REENTRANT -I/usr/X11R6/include -Isrc/unix -Isrc/gui -Isrc/debugger -Isrc/debugger/gui -Isrc/yacc -Isrc/cheat -Isrc/httplib -c src/debugger/gui/CartDFSCWidget.cxx -o out/src/debugger/gui/CartDFSCWidget.o In file included from src/debugger/gui/CartDFSCWidget.cxx:18: In file included from src/emucore/CartDFSC.hxx:23: src/common/bspf.hxx:245:37: warning: unsafe pointer arithmetic [-Wunsafe-buffer-usage] const auto pos = std::search(s1.cbegin()+startpos, s1.cend(), ~~~^~~~~~~~ src/common/bspf.hxx:249:56: warning: unsafe pointer arithmetic [-Wunsafe-buffer-usage] return pos == s1.cend() ? string::npos : pos - (s1.cbegin()+startpos); ~~~^~~~~~~~ In file included from src/debugger/gui/CartDFSCWidget.cxx:18: In file included from src/emucore/CartDFSC.hxx:24: In file included from src/emucore/CartDF.hxx:24: In file included from src/emucore/CartEnhanced.hxx:27: In file included from src/debugger/gui/CartEnhancedWidget.hxx:31: In file included from src/debugger/gui/CartDebugWidget.hxx:30: In file included from src/gui/Widget.hxx:33: In file included from src/common/StellaKeys.hxx:22: In file included from src/common/SDL_lib.hxx:34: In file included from /usr/local/include/SDL2/SDL.h:32: In file included from /usr/local/include/SDL2/SDL_main.h:25: /usr/local/include/SDL2/SDL_stdinc.h:544:13: warning: '_p' is an unsafe pointer used for buffer access [-Wunsafe-buffer-usage] Uint32 *_p = SDL_static_cast(Uint32 *, dst); ~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /usr/local/include/SDL2/SDL_stdinc.h:552:26: note: used in pointer arithmetic here case 2: *_p++ = _val; SDL_FALLTHROUGH; ^~ /usr/local/include/SDL2/SDL_stdinc.h:550:26: note: used in pointer arithmetic here case 0: do { *_p++ = _val; SDL_FALLTHROUGH; ^~ /usr/local/include/SDL2/SDL_stdinc.h:553:26: note: used in pointer arithmetic here case 1: *_p++ = _val; ^~ /usr/local/include/SDL2/SDL_stdinc.h:551:26: note: used in pointer arithmetic here case 3: *_p++ = _val; SDL_FALLTHROUGH; ^~ 3 warnings generated. mkdir -p -p src/debugger/gui/.deps mkdir -p -p out/src/debugger/gui c++ -MMD -MF "src/debugger/gui/.deps/CartDFWidget.d" -MQ "out/src/debugger/gui/CartDFWidget.o" -MP -O2 -pipe -I/usr/X11R6/include -I/usr/local/include -x c++ -Wall -Wextra -Wno-unused-parameter -Wno-multichar -Wunused -Woverloaded-virtual -Wnon-virtual-dtor -std=c++17 -Weverything -Wno-c++98-compat-pedantic -Wno-unknown-warning-option -Wno-switch-enum -Wno-conversion -Wno-covered-switch-default -Wno-inconsistent-missing-destructor-override -Wno-float-equal -Wno-exit-time-destructors -Wno-global-constructors -Wno-weak-vtables -Wno-four-char-constants -Wno-padded -Wno-reserved-identifier -Wno-duplicate-enum -fomit-frame-pointer -DSDL_SUPPORT -D_GLIBCXX_USE_CXX11_ABI=1 -DUNIX -DBSPF_UNIX -DGUI_SUPPORT -DWINDOWED_SUPPORT -DSOUND_SUPPORT -DDEBUGGER_SUPPORT -DJOYSTICK_SUPPORT -DCHEATCODE_SUPPORT -DHTTP_LIB_SUPPORT -DPNG_SUPPORT -DZIP_SUPPORT -Isrc/emucore -Isrc/common -Isrc/common/tv_filters -Isrc/emucore/tia -Isrc/emucore/tia/frame-manager -Isrc/json -Isrc/common/repository/sqlite -I/usr/local/include -I/usr/local/include/SDL2 -I/usr/X11R6/include -D_REENTRANT -I/usr/X11R6/include -Isrc/unix -Isrc/gui -Isrc/debugger -Isrc/debugger/gui -Isrc/yacc -Isrc/cheat -Isrc/httplib -c src/debugger/gui/CartDFWidget.cxx -o out/src/debugger/gui/CartDFWidget.o In file included from src/debugger/gui/CartDFWidget.cxx:18: In file included from src/emucore/CartDF.hxx:23: src/common/bspf.hxx:245:37: warning: unsafe pointer arithmetic [-Wunsafe-buffer-usage] const auto pos = std::search(s1.cbegin()+startpos, s1.cend(), ~~~^~~~~~~~ src/common/bspf.hxx:249:56: warning: unsafe pointer arithmetic [-Wunsafe-buffer-usage] return pos == s1.cend() ? string::npos : pos - (s1.cbegin()+startpos); ~~~^~~~~~~~ In file included from src/debugger/gui/CartDFWidget.cxx:18: In file included from src/emucore/CartDF.hxx:24: In file included from src/emucore/CartEnhanced.hxx:27: In file included from src/debugger/gui/CartEnhancedWidget.hxx:31: In file included from src/debugger/gui/CartDebugWidget.hxx:30: In file included from src/gui/Widget.hxx:33: In file included from src/common/StellaKeys.hxx:22: In file included from src/common/SDL_lib.hxx:34: In file included from /usr/local/include/SDL2/SDL.h:32: In file included from /usr/local/include/SDL2/SDL_main.h:25: /usr/local/include/SDL2/SDL_stdinc.h:544:13: warning: '_p' is an unsafe pointer used for buffer access [-Wunsafe-buffer-usage] Uint32 *_p = SDL_static_cast(Uint32 *, dst); ~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /usr/local/include/SDL2/SDL_stdinc.h:550:26: note: used in pointer arithmetic here case 0: do { *_p++ = _val; SDL_FALLTHROUGH; ^~ /usr/local/include/SDL2/SDL_stdinc.h:551:26: note: used in pointer arithmetic here case 3: *_p++ = _val; SDL_FALLTHROUGH; ^~ /usr/local/include/SDL2/SDL_stdinc.h:553:26: note: used in pointer arithmetic here case 1: *_p++ = _val; ^~ /usr/local/include/SDL2/SDL_stdinc.h:552:26: note: used in pointer arithmetic here case 2: *_p++ = _val; SDL_FALLTHROUGH; ^~ 3 warnings generated. mkdir -p -p src/debugger/gui/.deps mkdir -p -p out/src/debugger/gui c++ -MMD -MF "src/debugger/gui/.deps/CartDPCPlusWidget.d" -MQ "out/src/debugger/gui/CartDPCPlusWidget.o" -MP -O2 -pipe -I/usr/X11R6/include -I/usr/local/include -x c++ -Wall -Wextra -Wno-unused-parameter -Wno-multichar -Wunused -Woverloaded-virtual -Wnon-virtual-dtor -std=c++17 -Weverything -Wno-c++98-compat-pedantic -Wno-unknown-warning-option -Wno-switch-enum -Wno-conversion -Wno-covered-switch-default -Wno-inconsistent-missing-destructor-override -Wno-float-equal -Wno-exit-time-destructors -Wno-global-constructors -Wno-weak-vtables -Wno-four-char-constants -Wno-padded -Wno-reserved-identifier -Wno-duplicate-enum -fomit-frame-pointer -DSDL_SUPPORT -D_GLIBCXX_USE_CXX11_ABI=1 -DUNIX -DBSPF_UNIX -DGUI_SUPPORT -DWINDOWED_SUPPORT -DSOUND_SUPPORT -DDEBUGGER_SUPPORT -DJOYSTICK_SUPPORT -DCHEATCODE_SUPPORT -DHTTP_LIB_SUPPORT -DPNG_SUPPORT -DZIP_SUPPORT -Isrc/emucore -Isrc/common -Isrc/common/tv_filters -Isrc/emucore/tia -Isrc/emucore/tia/frame-manager -Isrc/json -Isrc/common/repository/sqlite -I/usr/local/include -I/usr/local/include/SDL2 -I/usr/X11R6/include -D_REENTRANT -I/usr/X11R6/include -Isrc/unix -Isrc/gui -Isrc/debugger -Isrc/debugger/gui -Isrc/yacc -Isrc/cheat -Isrc/httplib -c src/debugger/gui/CartDPCPlusWidget.cxx -o out/src/debugger/gui/CartDPCPlusWidget.o In file included from src/debugger/gui/CartDPCPlusWidget.cxx:18: In file included from src/emucore/CartDPCPlus.hxx:24: In file included from src/debugger/gui/CartDPCPlusWidget.hxx:27: In file included from src/debugger/gui/CartARMWidget.hxx:21: In file included from src/emucore/CartARM.hxx:21: In file included from src/emucore/Thumbulator.hxx:30: src/common/bspf.hxx:245:37: warning: unsafe pointer arithmetic [-Wunsafe-buffer-usage] const auto pos = std::search(s1.cbegin()+startpos, s1.cend(), ~~~^~~~~~~~ src/common/bspf.hxx:249:56: warning: unsafe pointer arithmetic [-Wunsafe-buffer-usage] return pos == s1.cend() ? string::npos : pos - (s1.cbegin()+startpos); ~~~^~~~~~~~ In file included from src/debugger/gui/CartDPCPlusWidget.cxx:18: In file included from src/emucore/CartDPCPlus.hxx:24: In file included from src/debugger/gui/CartDPCPlusWidget.hxx:27: In file included from src/debugger/gui/CartARMWidget.hxx:22: In file included from src/debugger/gui/CartDebugWidget.hxx:30: In file included from src/gui/Widget.hxx:33: In file included from src/common/StellaKeys.hxx:22: In file included from src/common/SDL_lib.hxx:34: In file included from /usr/local/include/SDL2/SDL.h:32: In file included from /usr/local/include/SDL2/SDL_main.h:25: /usr/local/include/SDL2/SDL_stdinc.h:544:13: warning: '_p' is an unsafe pointer used for buffer access [-Wunsafe-buffer-usage] Uint32 *_p = SDL_static_cast(Uint32 *, dst); ~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /usr/local/include/SDL2/SDL_stdinc.h:552:26: note: used in pointer arithmetic here case 2: *_p++ = _val; SDL_FALLTHROUGH; ^~ /usr/local/include/SDL2/SDL_stdinc.h:551:26: note: used in pointer arithmetic here case 3: *_p++ = _val; SDL_FALLTHROUGH; ^~ /usr/local/include/SDL2/SDL_stdinc.h:553:26: note: used in pointer arithmetic here case 1: *_p++ = _val; ^~ /usr/local/include/SDL2/SDL_stdinc.h:550:26: note: used in pointer arithmetic here case 0: do { *_p++ = _val; SDL_FALLTHROUGH; ^~ src/debugger/gui/CartDPCPlusWidget.cxx:220:38: warning: unsafe buffer access [-Wunsafe-buffer-usage] myOldState.internalram.push_back(myCart.myDisplayImage[i]); ^~~~~~~~~~~~~~~~~~~~~ src/debugger/gui/CartDPCPlusWidget.cxx:387:28: warning: unsafe buffer access [-Wunsafe-buffer-usage] myRamCurrent.push_back(myCart.myDisplayImage[start + i]); ^~~~~~~~~~~~~~~~~~~~~ src/debugger/gui/CartDPCPlusWidget.cxx:394:3: warning: unsafe buffer access [-Wunsafe-buffer-usage] myCart.myDisplayImage[addr] = value; ^~~~~~~~~~~~~~~~~~~~~ src/debugger/gui/CartDPCPlusWidget.cxx:400:10: warning: unsafe buffer access [-Wunsafe-buffer-usage] return myCart.myDisplayImage[addr]; ^~~~~~~~~~~~~~~~~~~~~ 7 warnings generated. mkdir -p -p src/debugger/gui/.deps mkdir -p -p out/src/debugger/gui c++ -MMD -MF "src/debugger/gui/.deps/CartDPCWidget.d" -MQ "out/src/debugger/gui/CartDPCWidget.o" -MP -O2 -pipe -I/usr/X11R6/include -I/usr/local/include -x c++ -Wall -Wextra -Wno-unused-parameter -Wno-multichar -Wunused -Woverloaded-virtual -Wnon-virtual-dtor -std=c++17 -Weverything -Wno-c++98-compat-pedantic -Wno-unknown-warning-option -Wno-switch-enum -Wno-conversion -Wno-covered-switch-default -Wno-inconsistent-missing-destructor-override -Wno-float-equal -Wno-exit-time-destructors -Wno-global-constructors -Wno-weak-vtables -Wno-four-char-constants -Wno-padded -Wno-reserved-identifier -Wno-duplicate-enum -fomit-frame-pointer -DSDL_SUPPORT -D_GLIBCXX_USE_CXX11_ABI=1 -DUNIX -DBSPF_UNIX -DGUI_SUPPORT -DWINDOWED_SUPPORT -DSOUND_SUPPORT -DDEBUGGER_SUPPORT -DJOYSTICK_SUPPORT -DCHEATCODE_SUPPORT -DHTTP_LIB_SUPPORT -DPNG_SUPPORT -DZIP_SUPPORT -Isrc/emucore -Isrc/common -Isrc/common/tv_filters -Isrc/emucore/tia -Isrc/emucore/tia/frame-manager -Isrc/json -Isrc/common/repository/sqlite -I/usr/local/include -I/usr/local/include/SDL2 -I/usr/X11R6/include -D_REENTRANT -I/usr/X11R6/include -Isrc/unix -Isrc/gui -Isrc/debugger -Isrc/debugger/gui -Isrc/yacc -Isrc/cheat -Isrc/httplib -c src/debugger/gui/CartDPCWidget.cxx -o out/src/debugger/gui/CartDPCWidget.o In file included from src/debugger/gui/CartDPCWidget.cxx:18: In file included from src/emucore/CartDPC.hxx:21: In file included from src/emucore/CartF8.hxx:21: In file included from src/emucore/CartEnhanced.hxx:23: src/common/bspf.hxx:245:37: warning: unsafe pointer arithmetic [-Wunsafe-buffer-usage] const auto pos = std::search(s1.cbegin()+startpos, s1.cend(), ~~~^~~~~~~~ src/common/bspf.hxx:249:56: warning: unsafe pointer arithmetic [-Wunsafe-buffer-usage] return pos == s1.cend() ? string::npos : pos - (s1.cbegin()+startpos); ~~~^~~~~~~~ In file included from src/debugger/gui/CartDPCWidget.cxx:18: In file included from src/emucore/CartDPC.hxx:21: In file included from src/emucore/CartF8.hxx:21: In file included from src/emucore/CartEnhanced.hxx:27: In file included from src/debugger/gui/CartEnhancedWidget.hxx:31: In file included from src/debugger/gui/CartDebugWidget.hxx:30: In file included from src/gui/Widget.hxx:33: In file included from src/common/StellaKeys.hxx:22: In file included from src/common/SDL_lib.hxx:34: In file included from /usr/local/include/SDL2/SDL.h:32: In file included from /usr/local/include/SDL2/SDL_main.h:25: /usr/local/include/SDL2/SDL_stdinc.h:544:13: warning: '_p' is an unsafe pointer used for buffer access [-Wunsafe-buffer-usage] Uint32 *_p = SDL_static_cast(Uint32 *, dst); ~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /usr/local/include/SDL2/SDL_stdinc.h:551:26: note: used in pointer arithmetic here case 3: *_p++ = _val; SDL_FALLTHROUGH; ^~ /usr/local/include/SDL2/SDL_stdinc.h:553:26: note: used in pointer arithmetic here case 1: *_p++ = _val; ^~ /usr/local/include/SDL2/SDL_stdinc.h:550:26: note: used in pointer arithmetic here case 0: do { *_p++ = _val; SDL_FALLTHROUGH; ^~ /usr/local/include/SDL2/SDL_stdinc.h:552:26: note: used in pointer arithmetic here case 2: *_p++ = _val; SDL_FALLTHROUGH; ^~ src/debugger/gui/CartDPCWidget.cxx:153:38: warning: unsafe buffer access [-Wunsafe-buffer-usage] myOldState.internalram.push_back(myCart.myDisplayImage[i]); ^~~~~~~~~~~~~~~~~~~~~ src/debugger/gui/CartDPCWidget.cxx:275:28: warning: unsafe buffer access [-Wunsafe-buffer-usage] myRamCurrent.push_back(myCart.myDisplayImage[start + i]); ^~~~~~~~~~~~~~~~~~~~~ src/debugger/gui/CartDPCWidget.cxx:282:3: warning: unsafe buffer access [-Wunsafe-buffer-usage] myCart.myDisplayImage[addr] = value; ^~~~~~~~~~~~~~~~~~~~~ src/debugger/gui/CartDPCWidget.cxx:288:10: warning: unsafe buffer access [-Wunsafe-buffer-usage] return myCart.myDisplayImage[addr]; ^~~~~~~~~~~~~~~~~~~~~ 7 warnings generated. mkdir -p -p src/debugger/gui/.deps mkdir -p -p out/src/debugger/gui c++ -MMD -MF "src/debugger/gui/.deps/CartE0Widget.d" -MQ "out/src/debugger/gui/CartE0Widget.o" -MP -O2 -pipe -I/usr/X11R6/include -I/usr/local/include -x c++ -Wall -Wextra -Wno-unused-parameter -Wno-multichar -Wunused -Woverloaded-virtual -Wnon-virtual-dtor -std=c++17 -Weverything -Wno-c++98-compat-pedantic -Wno-unknown-warning-option -Wno-switch-enum -Wno-conversion -Wno-covered-switch-default -Wno-inconsistent-missing-destructor-override -Wno-float-equal -Wno-exit-time-destructors -Wno-global-constructors -Wno-weak-vtables -Wno-four-char-constants -Wno-padded -Wno-reserved-identifier -Wno-duplicate-enum -fomit-frame-pointer -DSDL_SUPPORT -D_GLIBCXX_USE_CXX11_ABI=1 -DUNIX -DBSPF_UNIX -DGUI_SUPPORT -DWINDOWED_SUPPORT -DSOUND_SUPPORT -DDEBUGGER_SUPPORT -DJOYSTICK_SUPPORT -DCHEATCODE_SUPPORT -DHTTP_LIB_SUPPORT -DPNG_SUPPORT -DZIP_SUPPORT -Isrc/emucore -Isrc/common -Isrc/common/tv_filters -Isrc/emucore/tia -Isrc/emucore/tia/frame-manager -Isrc/json -Isrc/common/repository/sqlite -I/usr/local/include -I/usr/local/include/SDL2 -I/usr/X11R6/include -D_REENTRANT -I/usr/X11R6/include -Isrc/unix -Isrc/gui -Isrc/debugger -Isrc/debugger/gui -Isrc/yacc -Isrc/cheat -Isrc/httplib -c src/debugger/gui/CartE0Widget.cxx -o out/src/debugger/gui/CartE0Widget.o In file included from src/debugger/gui/CartE0Widget.cxx:18: In file included from src/emucore/CartE0.hxx:23: src/common/bspf.hxx:245:37: warning: unsafe pointer arithmetic [-Wunsafe-buffer-usage] const auto pos = std::search(s1.cbegin()+startpos, s1.cend(), ~~~^~~~~~~~ src/common/bspf.hxx:249:56: warning: unsafe pointer arithmetic [-Wunsafe-buffer-usage] return pos == s1.cend() ? string::npos : pos - (s1.cbegin()+startpos); ~~~^~~~~~~~ In file included from src/debugger/gui/CartE0Widget.cxx:18: In file included from src/emucore/CartE0.hxx:24: In file included from src/emucore/CartEnhanced.hxx:27: In file included from src/debugger/gui/CartEnhancedWidget.hxx:31: In file included from src/debugger/gui/CartDebugWidget.hxx:30: In file included from src/gui/Widget.hxx:33: In file included from src/common/StellaKeys.hxx:22: In file included from src/common/SDL_lib.hxx:34: In file included from /usr/local/include/SDL2/SDL.h:32: In file included from /usr/local/include/SDL2/SDL_main.h:25: /usr/local/include/SDL2/SDL_stdinc.h:544:13: warning: '_p' is an unsafe pointer used for buffer access [-Wunsafe-buffer-usage] Uint32 *_p = SDL_static_cast(Uint32 *, dst); ~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /usr/local/include/SDL2/SDL_stdinc.h:551:26: note: used in pointer arithmetic here case 3: *_p++ = _val; SDL_FALLTHROUGH; ^~ /usr/local/include/SDL2/SDL_stdinc.h:552:26: note: used in pointer arithmetic here case 2: *_p++ = _val; SDL_FALLTHROUGH; ^~ /usr/local/include/SDL2/SDL_stdinc.h:553:26: note: used in pointer arithmetic here case 1: *_p++ = _val; ^~ /usr/local/include/SDL2/SDL_stdinc.h:550:26: note: used in pointer arithmetic here case 0: do { *_p++ = _val; SDL_FALLTHROUGH; ^~ 3 warnings generated. mkdir -p -p src/debugger/gui/.deps mkdir -p -p out/src/debugger/gui c++ -MMD -MF "src/debugger/gui/.deps/CartEnhancedWidget.d" -MQ "out/src/debugger/gui/CartEnhancedWidget.o" -MP -O2 -pipe -I/usr/X11R6/include -I/usr/local/include -x c++ -Wall -Wextra -Wno-unused-parameter -Wno-multichar -Wunused -Woverloaded-virtual -Wnon-virtual-dtor -std=c++17 -Weverything -Wno-c++98-compat-pedantic -Wno-unknown-warning-option -Wno-switch-enum -Wno-conversion -Wno-covered-switch-default -Wno-inconsistent-missing-destructor-override -Wno-float-equal -Wno-exit-time-destructors -Wno-global-constructors -Wno-weak-vtables -Wno-four-char-constants -Wno-padded -Wno-reserved-identifier -Wno-duplicate-enum -fomit-frame-pointer -DSDL_SUPPORT -D_GLIBCXX_USE_CXX11_ABI=1 -DUNIX -DBSPF_UNIX -DGUI_SUPPORT -DWINDOWED_SUPPORT -DSOUND_SUPPORT -DDEBUGGER_SUPPORT -DJOYSTICK_SUPPORT -DCHEATCODE_SUPPORT -DHTTP_LIB_SUPPORT -DPNG_SUPPORT -DZIP_SUPPORT -Isrc/emucore -Isrc/common -Isrc/common/tv_filters -Isrc/emucore/tia -Isrc/emucore/tia/frame-manager -Isrc/json -Isrc/common/repository/sqlite -I/usr/local/include -I/usr/local/include/SDL2 -I/usr/X11R6/include -D_REENTRANT -I/usr/X11R6/include -Isrc/unix -Isrc/gui -Isrc/debugger -Isrc/debugger/gui -Isrc/yacc -Isrc/cheat -Isrc/httplib -c src/debugger/gui/CartEnhancedWidget.cxx -o out/src/debugger/gui/CartEnhancedWidget.o In file included from src/debugger/gui/CartEnhancedWidget.cxx:18: In file included from src/gui/EditTextWidget.hxx:21: In file included from src/common/Rect.hxx:26: src/common/bspf.hxx:245:37: warning: unsafe pointer arithmetic [-Wunsafe-buffer-usage] const auto pos = std::search(s1.cbegin()+startpos, s1.cend(), ~~~^~~~~~~~ src/common/bspf.hxx:249:56: warning: unsafe pointer arithmetic [-Wunsafe-buffer-usage] return pos == s1.cend() ? string::npos : pos - (s1.cbegin()+startpos); ~~~^~~~~~~~ In file included from src/debugger/gui/CartEnhancedWidget.cxx:18: In file included from src/gui/EditTextWidget.hxx:22: In file included from src/gui/EditableWidget.hxx:23: In file included from src/gui/Widget.hxx:33: In file included from src/common/StellaKeys.hxx:22: In file included from src/common/SDL_lib.hxx:34: In file included from /usr/local/include/SDL2/SDL.h:32: In file included from /usr/local/include/SDL2/SDL_main.h:25: /usr/local/include/SDL2/SDL_stdinc.h:544:13: warning: '_p' is an unsafe pointer used for buffer access [-Wunsafe-buffer-usage] Uint32 *_p = SDL_static_cast(Uint32 *, dst); ~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /usr/local/include/SDL2/SDL_stdinc.h:552:26: note: used in pointer arithmetic here case 2: *_p++ = _val; SDL_FALLTHROUGH; ^~ /usr/local/include/SDL2/SDL_stdinc.h:551:26: note: used in pointer arithmetic here case 3: *_p++ = _val; SDL_FALLTHROUGH; ^~ /usr/local/include/SDL2/SDL_stdinc.h:553:26: note: used in pointer arithmetic here case 1: *_p++ = _val; ^~ /usr/local/include/SDL2/SDL_stdinc.h:550:26: note: used in pointer arithmetic here case 0: do { *_p++ = _val; SDL_FALLTHROUGH; ^~ In file included from src/debugger/gui/CartEnhancedWidget.cxx:20: In file included from src/emucore/OSystem.hxx:55: src/emucore/FSNode.hxx:513:31: warning: unsafe pointer arithmetic [-Wunsafe-buffer-usage] const char* cur = start + str.size() - 2; ~~~~~~^~~~~~~~~~~~ src/emucore/FSNode.hxx:512:19: warning: 'start' is an unsafe pointer used for buffer access [-Wunsafe-buffer-usage] const char* start = str.c_str(); ~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~ src/emucore/FSNode.hxx:513:25: note: used in pointer arithmetic here const char* cur = start + str.size() - 2; ^~~~~ src/emucore/FSNode.hxx:513:19: warning: 'cur' is an unsafe pointer used for buffer access [-Wunsafe-buffer-usage] const char* cur = start + str.size() - 2; ~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~ src/emucore/FSNode.hxx:518:14: note: used in pointer arithmetic here return cur + 1; ^~~ src/emucore/FSNode.hxx:516:11: note: used in pointer arithmetic here --cur; ^~~ 6 warnings generated. mkdir -p -p src/debugger/gui/.deps mkdir -p -p out/src/debugger/gui c++ -MMD -MF "src/debugger/gui/.deps/CartE7Widget.d" -MQ "out/src/debugger/gui/CartE7Widget.o" -MP -O2 -pipe -I/usr/X11R6/include -I/usr/local/include -x c++ -Wall -Wextra -Wno-unused-parameter -Wno-multichar -Wunused -Woverloaded-virtual -Wnon-virtual-dtor -std=c++17 -Weverything -Wno-c++98-compat-pedantic -Wno-unknown-warning-option -Wno-switch-enum -Wno-conversion -Wno-covered-switch-default -Wno-inconsistent-missing-destructor-override -Wno-float-equal -Wno-exit-time-destructors -Wno-global-constructors -Wno-weak-vtables -Wno-four-char-constants -Wno-padded -Wno-reserved-identifier -Wno-duplicate-enum -fomit-frame-pointer -DSDL_SUPPORT -D_GLIBCXX_USE_CXX11_ABI=1 -DUNIX -DBSPF_UNIX -DGUI_SUPPORT -DWINDOWED_SUPPORT -DSOUND_SUPPORT -DDEBUGGER_SUPPORT -DJOYSTICK_SUPPORT -DCHEATCODE_SUPPORT -DHTTP_LIB_SUPPORT -DPNG_SUPPORT -DZIP_SUPPORT -Isrc/emucore -Isrc/common -Isrc/common/tv_filters -Isrc/emucore/tia -Isrc/emucore/tia/frame-manager -Isrc/json -Isrc/common/repository/sqlite -I/usr/local/include -I/usr/local/include/SDL2 -I/usr/X11R6/include -D_REENTRANT -I/usr/X11R6/include -Isrc/unix -Isrc/gui -Isrc/debugger -Isrc/debugger/gui -Isrc/yacc -Isrc/cheat -Isrc/httplib -c src/debugger/gui/CartE7Widget.cxx -o out/src/debugger/gui/CartE7Widget.o In file included from src/debugger/gui/CartE7Widget.cxx:18: In file included from src/emucore/CartE7.hxx:22: In file included from src/emucore/System.hxx:26: src/common/bspf.hxx:245:37: warning: unsafe pointer arithmetic [-Wunsafe-buffer-usage] const auto pos = std::search(s1.cbegin()+startpos, s1.cend(), ~~~^~~~~~~~ src/common/bspf.hxx:249:56: warning: unsafe pointer arithmetic [-Wunsafe-buffer-usage] return pos == s1.cend() ? string::npos : pos - (s1.cbegin()+startpos); ~~~^~~~~~~~ In file included from src/debugger/gui/CartE7Widget.cxx:18: In file included from src/emucore/CartE7.hxx:26: In file included from src/debugger/gui/CartE7Widget.hxx:24: In file included from src/debugger/gui/CartDebugWidget.hxx:30: In file included from src/gui/Widget.hxx:33: In file included from src/common/StellaKeys.hxx:22: In file included from src/common/SDL_lib.hxx:34: In file included from /usr/local/include/SDL2/SDL.h:32: In file included from /usr/local/include/SDL2/SDL_main.h:25: /usr/local/include/SDL2/SDL_stdinc.h:544:13: warning: '_p' is an unsafe pointer used for buffer access [-Wunsafe-buffer-usage] Uint32 *_p = SDL_static_cast(Uint32 *, dst); ~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /usr/local/include/SDL2/SDL_stdinc.h:553:26: note: used in pointer arithmetic here case 1: *_p++ = _val; ^~ /usr/local/include/SDL2/SDL_stdinc.h:551:26: note: used in pointer arithmetic here case 3: *_p++ = _val; SDL_FALLTHROUGH; ^~ /usr/local/include/SDL2/SDL_stdinc.h:550:26: note: used in pointer arithmetic here case 0: do { *_p++ = _val; SDL_FALLTHROUGH; ^~ /usr/local/include/SDL2/SDL_stdinc.h:552:26: note: used in pointer arithmetic here case 2: *_p++ = _val; SDL_FALLTHROUGH; ^~ 3 warnings generated. mkdir -p -p src/debugger/gui/.deps mkdir -p -p out/src/debugger/gui c++ -MMD -MF "src/debugger/gui/.deps/CartEFSCWidget.d" -MQ "out/src/debugger/gui/CartEFSCWidget.o" -MP -O2 -pipe -I/usr/X11R6/include -I/usr/local/include -x c++ -Wall -Wextra -Wno-unused-parameter -Wno-multichar -Wunused -Woverloaded-virtual -Wnon-virtual-dtor -std=c++17 -Weverything -Wno-c++98-compat-pedantic -Wno-unknown-warning-option -Wno-switch-enum -Wno-conversion -Wno-covered-switch-default -Wno-inconsistent-missing-destructor-override -Wno-float-equal -Wno-exit-time-destructors -Wno-global-constructors -Wno-weak-vtables -Wno-four-char-constants -Wno-padded -Wno-reserved-identifier -Wno-duplicate-enum -fomit-frame-pointer -DSDL_SUPPORT -D_GLIBCXX_USE_CXX11_ABI=1 -DUNIX -DBSPF_UNIX -DGUI_SUPPORT -DWINDOWED_SUPPORT -DSOUND_SUPPORT -DDEBUGGER_SUPPORT -DJOYSTICK_SUPPORT -DCHEATCODE_SUPPORT -DHTTP_LIB_SUPPORT -DPNG_SUPPORT -DZIP_SUPPORT -Isrc/emucore -Isrc/common -Isrc/common/tv_filters -Isrc/emucore/tia -Isrc/emucore/tia/frame-manager -Isrc/json -Isrc/common/repository/sqlite -I/usr/local/include -I/usr/local/include/SDL2 -I/usr/X11R6/include -D_REENTRANT -I/usr/X11R6/include -Isrc/unix -Isrc/gui -Isrc/debugger -Isrc/debugger/gui -Isrc/yacc -Isrc/cheat -Isrc/httplib -c src/debugger/gui/CartEFSCWidget.cxx -o out/src/debugger/gui/CartEFSCWidget.o In file included from src/debugger/gui/CartEFSCWidget.cxx:18: In file included from src/emucore/CartEFSC.hxx:23: src/common/bspf.hxx:245:37: warning: unsafe pointer arithmetic [-Wunsafe-buffer-usage] const auto pos = std::search(s1.cbegin()+startpos, s1.cend(), ~~~^~~~~~~~ src/common/bspf.hxx:249:56: warning: unsafe pointer arithmetic [-Wunsafe-buffer-usage] return pos == s1.cend() ? string::npos : pos - (s1.cbegin()+startpos); ~~~^~~~~~~~ In file included from src/debugger/gui/CartEFSCWidget.cxx:18: In file included from src/emucore/CartEFSC.hxx:24: In file included from src/emucore/CartEF.hxx:24: In file included from src/emucore/CartEnhanced.hxx:27: In file included from src/debugger/gui/CartEnhancedWidget.hxx:31: In file included from src/debugger/gui/CartDebugWidget.hxx:30: In file included from src/gui/Widget.hxx:33: In file included from src/common/StellaKeys.hxx:22: In file included from src/common/SDL_lib.hxx:34: In file included from /usr/local/include/SDL2/SDL.h:32: In file included from /usr/local/include/SDL2/SDL_main.h:25: /usr/local/include/SDL2/SDL_stdinc.h:544:13: warning: '_p' is an unsafe pointer used for buffer access [-Wunsafe-buffer-usage] Uint32 *_p = SDL_static_cast(Uint32 *, dst); ~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /usr/local/include/SDL2/SDL_stdinc.h:552:26: note: used in pointer arithmetic here case 2: *_p++ = _val; SDL_FALLTHROUGH; ^~ /usr/local/include/SDL2/SDL_stdinc.h:551:26: note: used in pointer arithmetic here case 3: *_p++ = _val; SDL_FALLTHROUGH; ^~ /usr/local/include/SDL2/SDL_stdinc.h:550:26: note: used in pointer arithmetic here case 0: do { *_p++ = _val; SDL_FALLTHROUGH; ^~ /usr/local/include/SDL2/SDL_stdinc.h:553:26: note: used in pointer arithmetic here case 1: *_p++ = _val; ^~ 3 warnings generated. mkdir -p -p src/debugger/gui/.deps mkdir -p -p out/src/debugger/gui c++ -MMD -MF "src/debugger/gui/.deps/CartEFWidget.d" -MQ "out/src/debugger/gui/CartEFWidget.o" -MP -O2 -pipe -I/usr/X11R6/include -I/usr/local/include -x c++ -Wall -Wextra -Wno-unused-parameter -Wno-multichar -Wunused -Woverloaded-virtual -Wnon-virtual-dtor -std=c++17 -Weverything -Wno-c++98-compat-pedantic -Wno-unknown-warning-option -Wno-switch-enum -Wno-conversion -Wno-covered-switch-default -Wno-inconsistent-missing-destructor-override -Wno-float-equal -Wno-exit-time-destructors -Wno-global-constructors -Wno-weak-vtables -Wno-four-char-constants -Wno-padded -Wno-reserved-identifier -Wno-duplicate-enum -fomit-frame-pointer -DSDL_SUPPORT -D_GLIBCXX_USE_CXX11_ABI=1 -DUNIX -DBSPF_UNIX -DGUI_SUPPORT -DWINDOWED_SUPPORT -DSOUND_SUPPORT -DDEBUGGER_SUPPORT -DJOYSTICK_SUPPORT -DCHEATCODE_SUPPORT -DHTTP_LIB_SUPPORT -DPNG_SUPPORT -DZIP_SUPPORT -Isrc/emucore -Isrc/common -Isrc/common/tv_filters -Isrc/emucore/tia -Isrc/emucore/tia/frame-manager -Isrc/json -Isrc/common/repository/sqlite -I/usr/local/include -I/usr/local/include/SDL2 -I/usr/X11R6/include -D_REENTRANT -I/usr/X11R6/include -Isrc/unix -Isrc/gui -Isrc/debugger -Isrc/debugger/gui -Isrc/yacc -Isrc/cheat -Isrc/httplib -c src/debugger/gui/CartEFWidget.cxx -o out/src/debugger/gui/CartEFWidget.o In file included from src/debugger/gui/CartEFWidget.cxx:18: In file included from src/emucore/CartEF.hxx:23: src/common/bspf.hxx:245:37: warning: unsafe pointer arithmetic [-Wunsafe-buffer-usage] const auto pos = std::search(s1.cbegin()+startpos, s1.cend(), ~~~^~~~~~~~ src/common/bspf.hxx:249:56: warning: unsafe pointer arithmetic [-Wunsafe-buffer-usage] return pos == s1.cend() ? string::npos : pos - (s1.cbegin()+startpos); ~~~^~~~~~~~ In file included from src/debugger/gui/CartEFWidget.cxx:18: In file included from src/emucore/CartEF.hxx:24: In file included from src/emucore/CartEnhanced.hxx:27: In file included from src/debugger/gui/CartEnhancedWidget.hxx:31: In file included from src/debugger/gui/CartDebugWidget.hxx:30: In file included from src/gui/Widget.hxx:33: In file included from src/common/StellaKeys.hxx:22: In file included from src/common/SDL_lib.hxx:34: In file included from /usr/local/include/SDL2/SDL.h:32: In file included from /usr/local/include/SDL2/SDL_main.h:25: /usr/local/include/SDL2/SDL_stdinc.h:544:13: warning: '_p' is an unsafe pointer used for buffer access [-Wunsafe-buffer-usage] Uint32 *_p = SDL_static_cast(Uint32 *, dst); ~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /usr/local/include/SDL2/SDL_stdinc.h:551:26: note: used in pointer arithmetic here case 3: *_p++ = _val; SDL_FALLTHROUGH; ^~ /usr/local/include/SDL2/SDL_stdinc.h:552:26: note: used in pointer arithmetic here case 2: *_p++ = _val; SDL_FALLTHROUGH; ^~ /usr/local/include/SDL2/SDL_stdinc.h:553:26: note: used in pointer arithmetic here case 1: *_p++ = _val; ^~ /usr/local/include/SDL2/SDL_stdinc.h:550:26: note: used in pointer arithmetic here case 0: do { *_p++ = _val; SDL_FALLTHROUGH; ^~ 3 warnings generated. mkdir -p -p src/debugger/gui/.deps mkdir -p -p out/src/debugger/gui c++ -MMD -MF "src/debugger/gui/.deps/CartF0Widget.d" -MQ "out/src/debugger/gui/CartF0Widget.o" -MP -O2 -pipe -I/usr/X11R6/include -I/usr/local/include -x c++ -Wall -Wextra -Wno-unused-parameter -Wno-multichar -Wunused -Woverloaded-virtual -Wnon-virtual-dtor -std=c++17 -Weverything -Wno-c++98-compat-pedantic -Wno-unknown-warning-option -Wno-switch-enum -Wno-conversion -Wno-covered-switch-default -Wno-inconsistent-missing-destructor-override -Wno-float-equal -Wno-exit-time-destructors -Wno-global-constructors -Wno-weak-vtables -Wno-four-char-constants -Wno-padded -Wno-reserved-identifier -Wno-duplicate-enum -fomit-frame-pointer -DSDL_SUPPORT -D_GLIBCXX_USE_CXX11_ABI=1 -DUNIX -DBSPF_UNIX -DGUI_SUPPORT -DWINDOWED_SUPPORT -DSOUND_SUPPORT -DDEBUGGER_SUPPORT -DJOYSTICK_SUPPORT -DCHEATCODE_SUPPORT -DHTTP_LIB_SUPPORT -DPNG_SUPPORT -DZIP_SUPPORT -Isrc/emucore -Isrc/common -Isrc/common/tv_filters -Isrc/emucore/tia -Isrc/emucore/tia/frame-manager -Isrc/json -Isrc/common/repository/sqlite -I/usr/local/include -I/usr/local/include/SDL2 -I/usr/X11R6/include -D_REENTRANT -I/usr/X11R6/include -Isrc/unix -Isrc/gui -Isrc/debugger -Isrc/debugger/gui -Isrc/yacc -Isrc/cheat -Isrc/httplib -c src/debugger/gui/CartF0Widget.cxx -o out/src/debugger/gui/CartF0Widget.o In file included from src/debugger/gui/CartF0Widget.cxx:18: In file included from src/emucore/CartF0.hxx:21: In file included from src/emucore/CartEnhanced.hxx:23: src/common/bspf.hxx:245:37: warning: unsafe pointer arithmetic [-Wunsafe-buffer-usage] const auto pos = std::search(s1.cbegin()+startpos, s1.cend(), ~~~^~~~~~~~ src/common/bspf.hxx:249:56: warning: unsafe pointer arithmetic [-Wunsafe-buffer-usage] return pos == s1.cend() ? string::npos : pos - (s1.cbegin()+startpos); ~~~^~~~~~~~ In file included from src/debugger/gui/CartF0Widget.cxx:18: In file included from src/emucore/CartF0.hxx:21: In file included from src/emucore/CartEnhanced.hxx:27: In file included from src/debugger/gui/CartEnhancedWidget.hxx:31: In file included from src/debugger/gui/CartDebugWidget.hxx:30: In file included from src/gui/Widget.hxx:33: In file included from src/common/StellaKeys.hxx:22: In file included from src/common/SDL_lib.hxx:34: In file included from /usr/local/include/SDL2/SDL.h:32: In file included from /usr/local/include/SDL2/SDL_main.h:25: /usr/local/include/SDL2/SDL_stdinc.h:544:13: warning: '_p' is an unsafe pointer used for buffer access [-Wunsafe-buffer-usage] Uint32 *_p = SDL_static_cast(Uint32 *, dst); ~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /usr/local/include/SDL2/SDL_stdinc.h:552:26: note: used in pointer arithmetic here case 2: *_p++ = _val; SDL_FALLTHROUGH; ^~ /usr/local/include/SDL2/SDL_stdinc.h:553:26: note: used in pointer arithmetic here case 1: *_p++ = _val; ^~ /usr/local/include/SDL2/SDL_stdinc.h:550:26: note: used in pointer arithmetic here case 0: do { *_p++ = _val; SDL_FALLTHROUGH; ^~ /usr/local/include/SDL2/SDL_stdinc.h:551:26: note: used in pointer arithmetic here case 3: *_p++ = _val; SDL_FALLTHROUGH; ^~ 3 warnings generated. mkdir -p -p src/debugger/gui/.deps mkdir -p -p out/src/debugger/gui c++ -MMD -MF "src/debugger/gui/.deps/CartF4SCWidget.d" -MQ "out/src/debugger/gui/CartF4SCWidget.o" -MP -O2 -pipe -I/usr/X11R6/include -I/usr/local/include -x c++ -Wall -Wextra -Wno-unused-parameter -Wno-multichar -Wunused -Woverloaded-virtual -Wnon-virtual-dtor -std=c++17 -Weverything -Wno-c++98-compat-pedantic -Wno-unknown-warning-option -Wno-switch-enum -Wno-conversion -Wno-covered-switch-default -Wno-inconsistent-missing-destructor-override -Wno-float-equal -Wno-exit-time-destructors -Wno-global-constructors -Wno-weak-vtables -Wno-four-char-constants -Wno-padded -Wno-reserved-identifier -Wno-duplicate-enum -fomit-frame-pointer -DSDL_SUPPORT -D_GLIBCXX_USE_CXX11_ABI=1 -DUNIX -DBSPF_UNIX -DGUI_SUPPORT -DWINDOWED_SUPPORT -DSOUND_SUPPORT -DDEBUGGER_SUPPORT -DJOYSTICK_SUPPORT -DCHEATCODE_SUPPORT -DHTTP_LIB_SUPPORT -DPNG_SUPPORT -DZIP_SUPPORT -Isrc/emucore -Isrc/common -Isrc/common/tv_filters -Isrc/emucore/tia -Isrc/emucore/tia/frame-manager -Isrc/json -Isrc/common/repository/sqlite -I/usr/local/include -I/usr/local/include/SDL2 -I/usr/X11R6/include -D_REENTRANT -I/usr/X11R6/include -Isrc/unix -Isrc/gui -Isrc/debugger -Isrc/debugger/gui -Isrc/yacc -Isrc/cheat -Isrc/httplib -c src/debugger/gui/CartF4SCWidget.cxx -o out/src/debugger/gui/CartF4SCWidget.o In file included from src/debugger/gui/CartF4SCWidget.cxx:18: In file included from src/emucore/CartF4SC.hxx:21: In file included from src/emucore/CartF4.hxx:21: In file included from src/emucore/CartEnhanced.hxx:23: src/common/bspf.hxx:245:37: warning: unsafe pointer arithmetic [-Wunsafe-buffer-usage] const auto pos = std::search(s1.cbegin()+startpos, s1.cend(), ~~~^~~~~~~~ src/common/bspf.hxx:249:56: warning: unsafe pointer arithmetic [-Wunsafe-buffer-usage] return pos == s1.cend() ? string::npos : pos - (s1.cbegin()+startpos); ~~~^~~~~~~~ In file included from src/debugger/gui/CartF4SCWidget.cxx:18: In file included from src/emucore/CartF4SC.hxx:21: In file included from src/emucore/CartF4.hxx:21: In file included from src/emucore/CartEnhanced.hxx:27: In file included from src/debugger/gui/CartEnhancedWidget.hxx:31: In file included from src/debugger/gui/CartDebugWidget.hxx:30: In file included from src/gui/Widget.hxx:33: In file included from src/common/StellaKeys.hxx:22: In file included from src/common/SDL_lib.hxx:34: In file included from /usr/local/include/SDL2/SDL.h:32: In file included from /usr/local/include/SDL2/SDL_main.h:25: /usr/local/include/SDL2/SDL_stdinc.h:544:13: warning: '_p' is an unsafe pointer used for buffer access [-Wunsafe-buffer-usage] Uint32 *_p = SDL_static_cast(Uint32 *, dst); ~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /usr/local/include/SDL2/SDL_stdinc.h:551:26: note: used in pointer arithmetic here case 3: *_p++ = _val; SDL_FALLTHROUGH; ^~ /usr/local/include/SDL2/SDL_stdinc.h:553:26: note: used in pointer arithmetic here case 1: *_p++ = _val; ^~ /usr/local/include/SDL2/SDL_stdinc.h:552:26: note: used in pointer arithmetic here case 2: *_p++ = _val; SDL_FALLTHROUGH; ^~ /usr/local/include/SDL2/SDL_stdinc.h:550:26: note: used in pointer arithmetic here case 0: do { *_p++ = _val; SDL_FALLTHROUGH; ^~ 3 warnings generated. mkdir -p -p src/debugger/gui/.deps mkdir -p -p out/src/debugger/gui c++ -MMD -MF "src/debugger/gui/.deps/CartF4Widget.d" -MQ "out/src/debugger/gui/CartF4Widget.o" -MP -O2 -pipe -I/usr/X11R6/include -I/usr/local/include -x c++ -Wall -Wextra -Wno-unused-parameter -Wno-multichar -Wunused -Woverloaded-virtual -Wnon-virtual-dtor -std=c++17 -Weverything -Wno-c++98-compat-pedantic -Wno-unknown-warning-option -Wno-switch-enum -Wno-conversion -Wno-covered-switch-default -Wno-inconsistent-missing-destructor-override -Wno-float-equal -Wno-exit-time-destructors -Wno-global-constructors -Wno-weak-vtables -Wno-four-char-constants -Wno-padded -Wno-reserved-identifier -Wno-duplicate-enum -fomit-frame-pointer -DSDL_SUPPORT -D_GLIBCXX_USE_CXX11_ABI=1 -DUNIX -DBSPF_UNIX -DGUI_SUPPORT -DWINDOWED_SUPPORT -DSOUND_SUPPORT -DDEBUGGER_SUPPORT -DJOYSTICK_SUPPORT -DCHEATCODE_SUPPORT -DHTTP_LIB_SUPPORT -DPNG_SUPPORT -DZIP_SUPPORT -Isrc/emucore -Isrc/common -Isrc/common/tv_filters -Isrc/emucore/tia -Isrc/emucore/tia/frame-manager -Isrc/json -Isrc/common/repository/sqlite -I/usr/local/include -I/usr/local/include/SDL2 -I/usr/X11R6/include -D_REENTRANT -I/usr/X11R6/include -Isrc/unix -Isrc/gui -Isrc/debugger -Isrc/debugger/gui -Isrc/yacc -Isrc/cheat -Isrc/httplib -c src/debugger/gui/CartF4Widget.cxx -o out/src/debugger/gui/CartF4Widget.o In file included from src/debugger/gui/CartF4Widget.cxx:18: In file included from src/emucore/CartF4.hxx:21: In file included from src/emucore/CartEnhanced.hxx:23: src/common/bspf.hxx:245:37: warning: unsafe pointer arithmetic [-Wunsafe-buffer-usage] const auto pos = std::search(s1.cbegin()+startpos, s1.cend(), ~~~^~~~~~~~ src/common/bspf.hxx:249:56: warning: unsafe pointer arithmetic [-Wunsafe-buffer-usage] return pos == s1.cend() ? string::npos : pos - (s1.cbegin()+startpos); ~~~^~~~~~~~ In file included from src/debugger/gui/CartF4Widget.cxx:18: In file included from src/emucore/CartF4.hxx:21: In file included from src/emucore/CartEnhanced.hxx:27: In file included from src/debugger/gui/CartEnhancedWidget.hxx:31: In file included from src/debugger/gui/CartDebugWidget.hxx:30: In file included from src/gui/Widget.hxx:33: In file included from src/common/StellaKeys.hxx:22: In file included from src/common/SDL_lib.hxx:34: In file included from /usr/local/include/SDL2/SDL.h:32: In file included from /usr/local/include/SDL2/SDL_main.h:25: /usr/local/include/SDL2/SDL_stdinc.h:544:13: warning: '_p' is an unsafe pointer used for buffer access [-Wunsafe-buffer-usage] Uint32 *_p = SDL_static_cast(Uint32 *, dst); ~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /usr/local/include/SDL2/SDL_stdinc.h:552:26: note: used in pointer arithmetic here case 2: *_p++ = _val; SDL_FALLTHROUGH; ^~ /usr/local/include/SDL2/SDL_stdinc.h:550:26: note: used in pointer arithmetic here case 0: do { *_p++ = _val; SDL_FALLTHROUGH; ^~ /usr/local/include/SDL2/SDL_stdinc.h:551:26: note: used in pointer arithmetic here case 3: *_p++ = _val; SDL_FALLTHROUGH; ^~ /usr/local/include/SDL2/SDL_stdinc.h:553:26: note: used in pointer arithmetic here case 1: *_p++ = _val; ^~ 3 warnings generated. mkdir -p -p src/debugger/gui/.deps mkdir -p -p out/src/debugger/gui c++ -MMD -MF "src/debugger/gui/.deps/CartF6SCWidget.d" -MQ "out/src/debugger/gui/CartF6SCWidget.o" -MP -O2 -pipe -I/usr/X11R6/include -I/usr/local/include -x c++ -Wall -Wextra -Wno-unused-parameter -Wno-multichar -Wunused -Woverloaded-virtual -Wnon-virtual-dtor -std=c++17 -Weverything -Wno-c++98-compat-pedantic -Wno-unknown-warning-option -Wno-switch-enum -Wno-conversion -Wno-covered-switch-default -Wno-inconsistent-missing-destructor-override -Wno-float-equal -Wno-exit-time-destructors -Wno-global-constructors -Wno-weak-vtables -Wno-four-char-constants -Wno-padded -Wno-reserved-identifier -Wno-duplicate-enum -fomit-frame-pointer -DSDL_SUPPORT -D_GLIBCXX_USE_CXX11_ABI=1 -DUNIX -DBSPF_UNIX -DGUI_SUPPORT -DWINDOWED_SUPPORT -DSOUND_SUPPORT -DDEBUGGER_SUPPORT -DJOYSTICK_SUPPORT -DCHEATCODE_SUPPORT -DHTTP_LIB_SUPPORT -DPNG_SUPPORT -DZIP_SUPPORT -Isrc/emucore -Isrc/common -Isrc/common/tv_filters -Isrc/emucore/tia -Isrc/emucore/tia/frame-manager -Isrc/json -Isrc/common/repository/sqlite -I/usr/local/include -I/usr/local/include/SDL2 -I/usr/X11R6/include -D_REENTRANT -I/usr/X11R6/include -Isrc/unix -Isrc/gui -Isrc/debugger -Isrc/debugger/gui -Isrc/yacc -Isrc/cheat -Isrc/httplib -c src/debugger/gui/CartF6SCWidget.cxx -o out/src/debugger/gui/CartF6SCWidget.o In file included from src/debugger/gui/CartF6SCWidget.cxx:18: In file included from src/emucore/CartF6SC.hxx:21: In file included from src/emucore/CartF6.hxx:21: In file included from src/emucore/CartEnhanced.hxx:23: src/common/bspf.hxx:245:37: warning: unsafe pointer arithmetic [-Wunsafe-buffer-usage] const auto pos = std::search(s1.cbegin()+startpos, s1.cend(), ~~~^~~~~~~~ src/common/bspf.hxx:249:56: warning: unsafe pointer arithmetic [-Wunsafe-buffer-usage] return pos == s1.cend() ? string::npos : pos - (s1.cbegin()+startpos); ~~~^~~~~~~~ In file included from src/debugger/gui/CartF6SCWidget.cxx:18: In file included from src/emucore/CartF6SC.hxx:21: In file included from src/emucore/CartF6.hxx:21: In file included from src/emucore/CartEnhanced.hxx:27: In file included from src/debugger/gui/CartEnhancedWidget.hxx:31: In file included from src/debugger/gui/CartDebugWidget.hxx:30: In file included from src/gui/Widget.hxx:33: In file included from src/common/StellaKeys.hxx:22: In file included from src/common/SDL_lib.hxx:34: In file included from /usr/local/include/SDL2/SDL.h:32: In file included from /usr/local/include/SDL2/SDL_main.h:25: /usr/local/include/SDL2/SDL_stdinc.h:544:13: warning: '_p' is an unsafe pointer used for buffer access [-Wunsafe-buffer-usage] Uint32 *_p = SDL_static_cast(Uint32 *, dst); ~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /usr/local/include/SDL2/SDL_stdinc.h:551:26: note: used in pointer arithmetic here case 3: *_p++ = _val; SDL_FALLTHROUGH; ^~ /usr/local/include/SDL2/SDL_stdinc.h:550:26: note: used in pointer arithmetic here case 0: do { *_p++ = _val; SDL_FALLTHROUGH; ^~ /usr/local/include/SDL2/SDL_stdinc.h:553:26: note: used in pointer arithmetic here case 1: *_p++ = _val; ^~ /usr/local/include/SDL2/SDL_stdinc.h:552:26: note: used in pointer arithmetic here case 2: *_p++ = _val; SDL_FALLTHROUGH; ^~ 3 warnings generated. mkdir -p -p src/debugger/gui/.deps mkdir -p -p out/src/debugger/gui c++ -MMD -MF "src/debugger/gui/.deps/CartF6Widget.d" -MQ "out/src/debugger/gui/CartF6Widget.o" -MP -O2 -pipe -I/usr/X11R6/include -I/usr/local/include -x c++ -Wall -Wextra -Wno-unused-parameter -Wno-multichar -Wunused -Woverloaded-virtual -Wnon-virtual-dtor -std=c++17 -Weverything -Wno-c++98-compat-pedantic -Wno-unknown-warning-option -Wno-switch-enum -Wno-conversion -Wno-covered-switch-default -Wno-inconsistent-missing-destructor-override -Wno-float-equal -Wno-exit-time-destructors -Wno-global-constructors -Wno-weak-vtables -Wno-four-char-constants -Wno-padded -Wno-reserved-identifier -Wno-duplicate-enum -fomit-frame-pointer -DSDL_SUPPORT -D_GLIBCXX_USE_CXX11_ABI=1 -DUNIX -DBSPF_UNIX -DGUI_SUPPORT -DWINDOWED_SUPPORT -DSOUND_SUPPORT -DDEBUGGER_SUPPORT -DJOYSTICK_SUPPORT -DCHEATCODE_SUPPORT -DHTTP_LIB_SUPPORT -DPNG_SUPPORT -DZIP_SUPPORT -Isrc/emucore -Isrc/common -Isrc/common/tv_filters -Isrc/emucore/tia -Isrc/emucore/tia/frame-manager -Isrc/json -Isrc/common/repository/sqlite -I/usr/local/include -I/usr/local/include/SDL2 -I/usr/X11R6/include -D_REENTRANT -I/usr/X11R6/include -Isrc/unix -Isrc/gui -Isrc/debugger -Isrc/debugger/gui -Isrc/yacc -Isrc/cheat -Isrc/httplib -c src/debugger/gui/CartF6Widget.cxx -o out/src/debugger/gui/CartF6Widget.o In file included from src/debugger/gui/CartF6Widget.cxx:18: In file included from src/emucore/CartF6.hxx:21: In file included from src/emucore/CartEnhanced.hxx:23: src/common/bspf.hxx:245:37: warning: unsafe pointer arithmetic [-Wunsafe-buffer-usage] const auto pos = std::search(s1.cbegin()+startpos, s1.cend(), ~~~^~~~~~~~ src/common/bspf.hxx:249:56: warning: unsafe pointer arithmetic [-Wunsafe-buffer-usage] return pos == s1.cend() ? string::npos : pos - (s1.cbegin()+startpos); ~~~^~~~~~~~ In file included from src/debugger/gui/CartF6Widget.cxx:18: In file included from src/emucore/CartF6.hxx:21: In file included from src/emucore/CartEnhanced.hxx:27: In file included from src/debugger/gui/CartEnhancedWidget.hxx:31: In file included from src/debugger/gui/CartDebugWidget.hxx:30: In file included from src/gui/Widget.hxx:33: In file included from src/common/StellaKeys.hxx:22: In file included from src/common/SDL_lib.hxx:34: In file included from /usr/local/include/SDL2/SDL.h:32: In file included from /usr/local/include/SDL2/SDL_main.h:25: /usr/local/include/SDL2/SDL_stdinc.h:544:13: warning: '_p' is an unsafe pointer used for buffer access [-Wunsafe-buffer-usage] Uint32 *_p = SDL_static_cast(Uint32 *, dst); ~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /usr/local/include/SDL2/SDL_stdinc.h:553:26: note: used in pointer arithmetic here case 1: *_p++ = _val; ^~ /usr/local/include/SDL2/SDL_stdinc.h:552:26: note: used in pointer arithmetic here case 2: *_p++ = _val; SDL_FALLTHROUGH; ^~ /usr/local/include/SDL2/SDL_stdinc.h:550:26: note: used in pointer arithmetic here case 0: do { *_p++ = _val; SDL_FALLTHROUGH; ^~ /usr/local/include/SDL2/SDL_stdinc.h:551:26: note: used in pointer arithmetic here case 3: *_p++ = _val; SDL_FALLTHROUGH; ^~ 3 warnings generated. mkdir -p -p src/debugger/gui/.deps mkdir -p -p out/src/debugger/gui c++ -MMD -MF "src/debugger/gui/.deps/CartF8SCWidget.d" -MQ "out/src/debugger/gui/CartF8SCWidget.o" -MP -O2 -pipe -I/usr/X11R6/include -I/usr/local/include -x c++ -Wall -Wextra -Wno-unused-parameter -Wno-multichar -Wunused -Woverloaded-virtual -Wnon-virtual-dtor -std=c++17 -Weverything -Wno-c++98-compat-pedantic -Wno-unknown-warning-option -Wno-switch-enum -Wno-conversion -Wno-covered-switch-default -Wno-inconsistent-missing-destructor-override -Wno-float-equal -Wno-exit-time-destructors -Wno-global-constructors -Wno-weak-vtables -Wno-four-char-constants -Wno-padded -Wno-reserved-identifier -Wno-duplicate-enum -fomit-frame-pointer -DSDL_SUPPORT -D_GLIBCXX_USE_CXX11_ABI=1 -DUNIX -DBSPF_UNIX -DGUI_SUPPORT -DWINDOWED_SUPPORT -DSOUND_SUPPORT -DDEBUGGER_SUPPORT -DJOYSTICK_SUPPORT -DCHEATCODE_SUPPORT -DHTTP_LIB_SUPPORT -DPNG_SUPPORT -DZIP_SUPPORT -Isrc/emucore -Isrc/common -Isrc/common/tv_filters -Isrc/emucore/tia -Isrc/emucore/tia/frame-manager -Isrc/json -Isrc/common/repository/sqlite -I/usr/local/include -I/usr/local/include/SDL2 -I/usr/X11R6/include -D_REENTRANT -I/usr/X11R6/include -Isrc/unix -Isrc/gui -Isrc/debugger -Isrc/debugger/gui -Isrc/yacc -Isrc/cheat -Isrc/httplib -c src/debugger/gui/CartF8SCWidget.cxx -o out/src/debugger/gui/CartF8SCWidget.o In file included from src/debugger/gui/CartF8SCWidget.cxx:18: In file included from src/emucore/CartF8SC.hxx:21: In file included from src/emucore/CartF8.hxx:21: In file included from src/emucore/CartEnhanced.hxx:23: src/common/bspf.hxx:245:37: warning: unsafe pointer arithmetic [-Wunsafe-buffer-usage] const auto pos = std::search(s1.cbegin()+startpos, s1.cend(), ~~~^~~~~~~~ src/common/bspf.hxx:249:56: warning: unsafe pointer arithmetic [-Wunsafe-buffer-usage] return pos == s1.cend() ? string::npos : pos - (s1.cbegin()+startpos); ~~~^~~~~~~~ In file included from src/debugger/gui/CartF8SCWidget.cxx:18: In file included from src/emucore/CartF8SC.hxx:21: In file included from src/emucore/CartF8.hxx:21: In file included from src/emucore/CartEnhanced.hxx:27: In file included from src/debugger/gui/CartEnhancedWidget.hxx:31: In file included from src/debugger/gui/CartDebugWidget.hxx:30: In file included from src/gui/Widget.hxx:33: In file included from src/common/StellaKeys.hxx:22: In file included from src/common/SDL_lib.hxx:34: In file included from /usr/local/include/SDL2/SDL.h:32: In file included from /usr/local/include/SDL2/SDL_main.h:25: /usr/local/include/SDL2/SDL_stdinc.h:544:13: warning: '_p' is an unsafe pointer used for buffer access [-Wunsafe-buffer-usage] Uint32 *_p = SDL_static_cast(Uint32 *, dst); ~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /usr/local/include/SDL2/SDL_stdinc.h:551:26: note: used in pointer arithmetic here case 3: *_p++ = _val; SDL_FALLTHROUGH; ^~ /usr/local/include/SDL2/SDL_stdinc.h:552:26: note: used in pointer arithmetic here case 2: *_p++ = _val; SDL_FALLTHROUGH; ^~ /usr/local/include/SDL2/SDL_stdinc.h:553:26: note: used in pointer arithmetic here case 1: *_p++ = _val; ^~ /usr/local/include/SDL2/SDL_stdinc.h:550:26: note: used in pointer arithmetic here case 0: do { *_p++ = _val; SDL_FALLTHROUGH; ^~ 3 warnings generated. mkdir -p -p src/debugger/gui/.deps mkdir -p -p out/src/debugger/gui c++ -MMD -MF "src/debugger/gui/.deps/CartF8Widget.d" -MQ "out/src/debugger/gui/CartF8Widget.o" -MP -O2 -pipe -I/usr/X11R6/include -I/usr/local/include -x c++ -Wall -Wextra -Wno-unused-parameter -Wno-multichar -Wunused -Woverloaded-virtual -Wnon-virtual-dtor -std=c++17 -Weverything -Wno-c++98-compat-pedantic -Wno-unknown-warning-option -Wno-switch-enum -Wno-conversion -Wno-covered-switch-default -Wno-inconsistent-missing-destructor-override -Wno-float-equal -Wno-exit-time-destructors -Wno-global-constructors -Wno-weak-vtables -Wno-four-char-constants -Wno-padded -Wno-reserved-identifier -Wno-duplicate-enum -fomit-frame-pointer -DSDL_SUPPORT -D_GLIBCXX_USE_CXX11_ABI=1 -DUNIX -DBSPF_UNIX -DGUI_SUPPORT -DWINDOWED_SUPPORT -DSOUND_SUPPORT -DDEBUGGER_SUPPORT -DJOYSTICK_SUPPORT -DCHEATCODE_SUPPORT -DHTTP_LIB_SUPPORT -DPNG_SUPPORT -DZIP_SUPPORT -Isrc/emucore -Isrc/common -Isrc/common/tv_filters -Isrc/emucore/tia -Isrc/emucore/tia/frame-manager -Isrc/json -Isrc/common/repository/sqlite -I/usr/local/include -I/usr/local/include/SDL2 -I/usr/X11R6/include -D_REENTRANT -I/usr/X11R6/include -Isrc/unix -Isrc/gui -Isrc/debugger -Isrc/debugger/gui -Isrc/yacc -Isrc/cheat -Isrc/httplib -c src/debugger/gui/CartF8Widget.cxx -o out/src/debugger/gui/CartF8Widget.o In file included from src/debugger/gui/CartF8Widget.cxx:18: In file included from src/emucore/CartF8.hxx:21: In file included from src/emucore/CartEnhanced.hxx:23: src/common/bspf.hxx:245:37: warning: unsafe pointer arithmetic [-Wunsafe-buffer-usage] const auto pos = std::search(s1.cbegin()+startpos, s1.cend(), ~~~^~~~~~~~ src/common/bspf.hxx:249:56: warning: unsafe pointer arithmetic [-Wunsafe-buffer-usage] return pos == s1.cend() ? string::npos : pos - (s1.cbegin()+startpos); ~~~^~~~~~~~ In file included from src/debugger/gui/CartF8Widget.cxx:18: In file included from src/emucore/CartF8.hxx:21: In file included from src/emucore/CartEnhanced.hxx:27: In file included from src/debugger/gui/CartEnhancedWidget.hxx:31: In file included from src/debugger/gui/CartDebugWidget.hxx:30: In file included from src/gui/Widget.hxx:33: In file included from src/common/StellaKeys.hxx:22: In file included from src/common/SDL_lib.hxx:34: In file included from /usr/local/include/SDL2/SDL.h:32: In file included from /usr/local/include/SDL2/SDL_main.h:25: /usr/local/include/SDL2/SDL_stdinc.h:544:13: warning: '_p' is an unsafe pointer used for buffer access [-Wunsafe-buffer-usage] Uint32 *_p = SDL_static_cast(Uint32 *, dst); ~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /usr/local/include/SDL2/SDL_stdinc.h:552:26: note: used in pointer arithmetic here case 2: *_p++ = _val; SDL_FALLTHROUGH; ^~ /usr/local/include/SDL2/SDL_stdinc.h:550:26: note: used in pointer arithmetic here case 0: do { *_p++ = _val; SDL_FALLTHROUGH; ^~ /usr/local/include/SDL2/SDL_stdinc.h:553:26: note: used in pointer arithmetic here case 1: *_p++ = _val; ^~ /usr/local/include/SDL2/SDL_stdinc.h:551:26: note: used in pointer arithmetic here case 3: *_p++ = _val; SDL_FALLTHROUGH; ^~ 3 warnings generated. mkdir -p -p src/debugger/gui/.deps mkdir -p -p out/src/debugger/gui c++ -MMD -MF "src/debugger/gui/.deps/CartFA2Widget.d" -MQ "out/src/debugger/gui/CartFA2Widget.o" -MP -O2 -pipe -I/usr/X11R6/include -I/usr/local/include -x c++ -Wall -Wextra -Wno-unused-parameter -Wno-multichar -Wunused -Woverloaded-virtual -Wnon-virtual-dtor -std=c++17 -Weverything -Wno-c++98-compat-pedantic -Wno-unknown-warning-option -Wno-switch-enum -Wno-conversion -Wno-covered-switch-default -Wno-inconsistent-missing-destructor-override -Wno-float-equal -Wno-exit-time-destructors -Wno-global-constructors -Wno-weak-vtables -Wno-four-char-constants -Wno-padded -Wno-reserved-identifier -Wno-duplicate-enum -fomit-frame-pointer -DSDL_SUPPORT -D_GLIBCXX_USE_CXX11_ABI=1 -DUNIX -DBSPF_UNIX -DGUI_SUPPORT -DWINDOWED_SUPPORT -DSOUND_SUPPORT -DDEBUGGER_SUPPORT -DJOYSTICK_SUPPORT -DCHEATCODE_SUPPORT -DHTTP_LIB_SUPPORT -DPNG_SUPPORT -DZIP_SUPPORT -Isrc/emucore -Isrc/common -Isrc/common/tv_filters -Isrc/emucore/tia -Isrc/emucore/tia/frame-manager -Isrc/json -Isrc/common/repository/sqlite -I/usr/local/include -I/usr/local/include/SDL2 -I/usr/X11R6/include -D_REENTRANT -I/usr/X11R6/include -Isrc/unix -Isrc/gui -Isrc/debugger -Isrc/debugger/gui -Isrc/yacc -Isrc/cheat -Isrc/httplib -c src/debugger/gui/CartFA2Widget.cxx -o out/src/debugger/gui/CartFA2Widget.o In file included from src/debugger/gui/CartFA2Widget.cxx:18: In file included from src/emucore/CartFA2.hxx:23: src/common/bspf.hxx:245:37: warning: unsafe pointer arithmetic [-Wunsafe-buffer-usage] const auto pos = std::search(s1.cbegin()+startpos, s1.cend(), ~~~^~~~~~~~ src/common/bspf.hxx:249:56: warning: unsafe pointer arithmetic [-Wunsafe-buffer-usage] return pos == s1.cend() ? string::npos : pos - (s1.cbegin()+startpos); ~~~^~~~~~~~ In file included from src/debugger/gui/CartFA2Widget.cxx:18: In file included from src/emucore/CartFA2.hxx:24: In file included from src/emucore/CartFA.hxx:24: In file included from src/emucore/CartEnhanced.hxx:27: In file included from src/debugger/gui/CartEnhancedWidget.hxx:31: In file included from src/debugger/gui/CartDebugWidget.hxx:30: In file included from src/gui/Widget.hxx:33: In file included from src/common/StellaKeys.hxx:22: In file included from src/common/SDL_lib.hxx:34: In file included from /usr/local/include/SDL2/SDL.h:32: In file included from /usr/local/include/SDL2/SDL_main.h:25: /usr/local/include/SDL2/SDL_stdinc.h:544:13: warning: '_p' is an unsafe pointer used for buffer access [-Wunsafe-buffer-usage] Uint32 *_p = SDL_static_cast(Uint32 *, dst); ~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /usr/local/include/SDL2/SDL_stdinc.h:550:26: note: used in pointer arithmetic here case 0: do { *_p++ = _val; SDL_FALLTHROUGH; ^~ /usr/local/include/SDL2/SDL_stdinc.h:551:26: note: used in pointer arithmetic here case 3: *_p++ = _val; SDL_FALLTHROUGH; ^~ /usr/local/include/SDL2/SDL_stdinc.h:553:26: note: used in pointer arithmetic here case 1: *_p++ = _val; ^~ /usr/local/include/SDL2/SDL_stdinc.h:552:26: note: used in pointer arithmetic here case 2: *_p++ = _val; SDL_FALLTHROUGH; ^~ 3 warnings generated. mkdir -p -p src/debugger/gui/.deps mkdir -p -p out/src/debugger/gui c++ -MMD -MF "src/debugger/gui/.deps/CartFAWidget.d" -MQ "out/src/debugger/gui/CartFAWidget.o" -MP -O2 -pipe -I/usr/X11R6/include -I/usr/local/include -x c++ -Wall -Wextra -Wno-unused-parameter -Wno-multichar -Wunused -Woverloaded-virtual -Wnon-virtual-dtor -std=c++17 -Weverything -Wno-c++98-compat-pedantic -Wno-unknown-warning-option -Wno-switch-enum -Wno-conversion -Wno-covered-switch-default -Wno-inconsistent-missing-destructor-override -Wno-float-equal -Wno-exit-time-destructors -Wno-global-constructors -Wno-weak-vtables -Wno-four-char-constants -Wno-padded -Wno-reserved-identifier -Wno-duplicate-enum -fomit-frame-pointer -DSDL_SUPPORT -D_GLIBCXX_USE_CXX11_ABI=1 -DUNIX -DBSPF_UNIX -DGUI_SUPPORT -DWINDOWED_SUPPORT -DSOUND_SUPPORT -DDEBUGGER_SUPPORT -DJOYSTICK_SUPPORT -DCHEATCODE_SUPPORT -DHTTP_LIB_SUPPORT -DPNG_SUPPORT -DZIP_SUPPORT -Isrc/emucore -Isrc/common -Isrc/common/tv_filters -Isrc/emucore/tia -Isrc/emucore/tia/frame-manager -Isrc/json -Isrc/common/repository/sqlite -I/usr/local/include -I/usr/local/include/SDL2 -I/usr/X11R6/include -D_REENTRANT -I/usr/X11R6/include -Isrc/unix -Isrc/gui -Isrc/debugger -Isrc/debugger/gui -Isrc/yacc -Isrc/cheat -Isrc/httplib -c src/debugger/gui/CartFAWidget.cxx -o out/src/debugger/gui/CartFAWidget.o In file included from src/debugger/gui/CartFAWidget.cxx:18: In file included from src/emucore/CartFA.hxx:23: src/common/bspf.hxx:245:37: warning: unsafe pointer arithmetic [-Wunsafe-buffer-usage] const auto pos = std::search(s1.cbegin()+startpos, s1.cend(), ~~~^~~~~~~~ src/common/bspf.hxx:249:56: warning: unsafe pointer arithmetic [-Wunsafe-buffer-usage] return pos == s1.cend() ? string::npos : pos - (s1.cbegin()+startpos); ~~~^~~~~~~~ In file included from src/debugger/gui/CartFAWidget.cxx:18: In file included from src/emucore/CartFA.hxx:24: In file included from src/emucore/CartEnhanced.hxx:27: In file included from src/debugger/gui/CartEnhancedWidget.hxx:31: In file included from src/debugger/gui/CartDebugWidget.hxx:30: In file included from src/gui/Widget.hxx:33: In file included from src/common/StellaKeys.hxx:22: In file included from src/common/SDL_lib.hxx:34: In file included from /usr/local/include/SDL2/SDL.h:32: In file included from /usr/local/include/SDL2/SDL_main.h:25: /usr/local/include/SDL2/SDL_stdinc.h:544:13: warning: '_p' is an unsafe pointer used for buffer access [-Wunsafe-buffer-usage] Uint32 *_p = SDL_static_cast(Uint32 *, dst); ~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /usr/local/include/SDL2/SDL_stdinc.h:550:26: note: used in pointer arithmetic here case 0: do { *_p++ = _val; SDL_FALLTHROUGH; ^~ /usr/local/include/SDL2/SDL_stdinc.h:553:26: note: used in pointer arithmetic here case 1: *_p++ = _val; ^~ /usr/local/include/SDL2/SDL_stdinc.h:551:26: note: used in pointer arithmetic here case 3: *_p++ = _val; SDL_FALLTHROUGH; ^~ /usr/local/include/SDL2/SDL_stdinc.h:552:26: note: used in pointer arithmetic here case 2: *_p++ = _val; SDL_FALLTHROUGH; ^~ 3 warnings generated. mkdir -p -p src/debugger/gui/.deps mkdir -p -p out/src/debugger/gui c++ -MMD -MF "src/debugger/gui/.deps/CartFCWidget.d" -MQ "out/src/debugger/gui/CartFCWidget.o" -MP -O2 -pipe -I/usr/X11R6/include -I/usr/local/include -x c++ -Wall -Wextra -Wno-unused-parameter -Wno-multichar -Wunused -Woverloaded-virtual -Wnon-virtual-dtor -std=c++17 -Weverything -Wno-c++98-compat-pedantic -Wno-unknown-warning-option -Wno-switch-enum -Wno-conversion -Wno-covered-switch-default -Wno-inconsistent-missing-destructor-override -Wno-float-equal -Wno-exit-time-destructors -Wno-global-constructors -Wno-weak-vtables -Wno-four-char-constants -Wno-padded -Wno-reserved-identifier -Wno-duplicate-enum -fomit-frame-pointer -DSDL_SUPPORT -D_GLIBCXX_USE_CXX11_ABI=1 -DUNIX -DBSPF_UNIX -DGUI_SUPPORT -DWINDOWED_SUPPORT -DSOUND_SUPPORT -DDEBUGGER_SUPPORT -DJOYSTICK_SUPPORT -DCHEATCODE_SUPPORT -DHTTP_LIB_SUPPORT -DPNG_SUPPORT -DZIP_SUPPORT -Isrc/emucore -Isrc/common -Isrc/common/tv_filters -Isrc/emucore/tia -Isrc/emucore/tia/frame-manager -Isrc/json -Isrc/common/repository/sqlite -I/usr/local/include -I/usr/local/include/SDL2 -I/usr/X11R6/include -D_REENTRANT -I/usr/X11R6/include -Isrc/unix -Isrc/gui -Isrc/debugger -Isrc/debugger/gui -Isrc/yacc -Isrc/cheat -Isrc/httplib -c src/debugger/gui/CartFCWidget.cxx -o out/src/debugger/gui/CartFCWidget.o In file included from src/debugger/gui/CartFCWidget.cxx:18: In file included from src/emucore/CartFC.hxx:23: src/common/bspf.hxx:245:37: warning: unsafe pointer arithmetic [-Wunsafe-buffer-usage] const auto pos = std::search(s1.cbegin()+startpos, s1.cend(), ~~~^~~~~~~~ src/common/bspf.hxx:249:56: warning: unsafe pointer arithmetic [-Wunsafe-buffer-usage] return pos == s1.cend() ? string::npos : pos - (s1.cbegin()+startpos); ~~~^~~~~~~~ In file included from src/debugger/gui/CartFCWidget.cxx:18: In file included from src/emucore/CartFC.hxx:24: In file included from src/emucore/CartEnhanced.hxx:27: In file included from src/debugger/gui/CartEnhancedWidget.hxx:31: In file included from src/debugger/gui/CartDebugWidget.hxx:30: In file included from src/gui/Widget.hxx:33: In file included from src/common/StellaKeys.hxx:22: In file included from src/common/SDL_lib.hxx:34: In file included from /usr/local/include/SDL2/SDL.h:32: In file included from /usr/local/include/SDL2/SDL_main.h:25: /usr/local/include/SDL2/SDL_stdinc.h:544:13: warning: '_p' is an unsafe pointer used for buffer access [-Wunsafe-buffer-usage] Uint32 *_p = SDL_static_cast(Uint32 *, dst); ~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /usr/local/include/SDL2/SDL_stdinc.h:550:26: note: used in pointer arithmetic here case 0: do { *_p++ = _val; SDL_FALLTHROUGH; ^~ /usr/local/include/SDL2/SDL_stdinc.h:552:26: note: used in pointer arithmetic here case 2: *_p++ = _val; SDL_FALLTHROUGH; ^~ /usr/local/include/SDL2/SDL_stdinc.h:551:26: note: used in pointer arithmetic here case 3: *_p++ = _val; SDL_FALLTHROUGH; ^~ /usr/local/include/SDL2/SDL_stdinc.h:553:26: note: used in pointer arithmetic here case 1: *_p++ = _val; ^~ 3 warnings generated. mkdir -p -p src/debugger/gui/.deps mkdir -p -p out/src/debugger/gui c++ -MMD -MF "src/debugger/gui/.deps/CartFEWidget.d" -MQ "out/src/debugger/gui/CartFEWidget.o" -MP -O2 -pipe -I/usr/X11R6/include -I/usr/local/include -x c++ -Wall -Wextra -Wno-unused-parameter -Wno-multichar -Wunused -Woverloaded-virtual -Wnon-virtual-dtor -std=c++17 -Weverything -Wno-c++98-compat-pedantic -Wno-unknown-warning-option -Wno-switch-enum -Wno-conversion -Wno-covered-switch-default -Wno-inconsistent-missing-destructor-override -Wno-float-equal -Wno-exit-time-destructors -Wno-global-constructors -Wno-weak-vtables -Wno-four-char-constants -Wno-padded -Wno-reserved-identifier -Wno-duplicate-enum -fomit-frame-pointer -DSDL_SUPPORT -D_GLIBCXX_USE_CXX11_ABI=1 -DUNIX -DBSPF_UNIX -DGUI_SUPPORT -DWINDOWED_SUPPORT -DSOUND_SUPPORT -DDEBUGGER_SUPPORT -DJOYSTICK_SUPPORT -DCHEATCODE_SUPPORT -DHTTP_LIB_SUPPORT -DPNG_SUPPORT -DZIP_SUPPORT -Isrc/emucore -Isrc/common -Isrc/common/tv_filters -Isrc/emucore/tia -Isrc/emucore/tia/frame-manager -Isrc/json -Isrc/common/repository/sqlite -I/usr/local/include -I/usr/local/include/SDL2 -I/usr/X11R6/include -D_REENTRANT -I/usr/X11R6/include -Isrc/unix -Isrc/gui -Isrc/debugger -Isrc/debugger/gui -Isrc/yacc -Isrc/cheat -Isrc/httplib -c src/debugger/gui/CartFEWidget.cxx -o out/src/debugger/gui/CartFEWidget.o In file included from src/debugger/gui/CartFEWidget.cxx:18: In file included from src/emucore/CartFE.hxx:23: src/common/bspf.hxx:245:37: warning: unsafe pointer arithmetic [-Wunsafe-buffer-usage] const auto pos = std::search(s1.cbegin()+startpos, s1.cend(), ~~~^~~~~~~~ src/common/bspf.hxx:249:56: warning: unsafe pointer arithmetic [-Wunsafe-buffer-usage] return pos == s1.cend() ? string::npos : pos - (s1.cbegin()+startpos); ~~~^~~~~~~~ In file included from src/debugger/gui/CartFEWidget.cxx:18: In file included from src/emucore/CartFE.hxx:24: In file included from src/emucore/CartEnhanced.hxx:27: In file included from src/debugger/gui/CartEnhancedWidget.hxx:31: In file included from src/debugger/gui/CartDebugWidget.hxx:30: In file included from src/gui/Widget.hxx:33: In file included from src/common/StellaKeys.hxx:22: In file included from src/common/SDL_lib.hxx:34: In file included from /usr/local/include/SDL2/SDL.h:32: In file included from /usr/local/include/SDL2/SDL_main.h:25: /usr/local/include/SDL2/SDL_stdinc.h:544:13: warning: '_p' is an unsafe pointer used for buffer access [-Wunsafe-buffer-usage] Uint32 *_p = SDL_static_cast(Uint32 *, dst); ~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /usr/local/include/SDL2/SDL_stdinc.h:550:26: note: used in pointer arithmetic here case 0: do { *_p++ = _val; SDL_FALLTHROUGH; ^~ /usr/local/include/SDL2/SDL_stdinc.h:552:26: note: used in pointer arithmetic here case 2: *_p++ = _val; SDL_FALLTHROUGH; ^~ /usr/local/include/SDL2/SDL_stdinc.h:551:26: note: used in pointer arithmetic here case 3: *_p++ = _val; SDL_FALLTHROUGH; ^~ /usr/local/include/SDL2/SDL_stdinc.h:553:26: note: used in pointer arithmetic here case 1: *_p++ = _val; ^~ 3 warnings generated. mkdir -p -p src/debugger/gui/.deps mkdir -p -p out/src/debugger/gui c++ -MMD -MF "src/debugger/gui/.deps/CartMDMWidget.d" -MQ "out/src/debugger/gui/CartMDMWidget.o" -MP -O2 -pipe -I/usr/X11R6/include -I/usr/local/include -x c++ -Wall -Wextra -Wno-unused-parameter -Wno-multichar -Wunused -Woverloaded-virtual -Wnon-virtual-dtor -std=c++17 -Weverything -Wno-c++98-compat-pedantic -Wno-unknown-warning-option -Wno-switch-enum -Wno-conversion -Wno-covered-switch-default -Wno-inconsistent-missing-destructor-override -Wno-float-equal -Wno-exit-time-destructors -Wno-global-constructors -Wno-weak-vtables -Wno-four-char-constants -Wno-padded -Wno-reserved-identifier -Wno-duplicate-enum -fomit-frame-pointer -DSDL_SUPPORT -D_GLIBCXX_USE_CXX11_ABI=1 -DUNIX -DBSPF_UNIX -DGUI_SUPPORT -DWINDOWED_SUPPORT -DSOUND_SUPPORT -DDEBUGGER_SUPPORT -DJOYSTICK_SUPPORT -DCHEATCODE_SUPPORT -DHTTP_LIB_SUPPORT -DPNG_SUPPORT -DZIP_SUPPORT -Isrc/emucore -Isrc/common -Isrc/common/tv_filters -Isrc/emucore/tia -Isrc/emucore/tia/frame-manager -Isrc/json -Isrc/common/repository/sqlite -I/usr/local/include -I/usr/local/include/SDL2 -I/usr/X11R6/include -D_REENTRANT -I/usr/X11R6/include -Isrc/unix -Isrc/gui -Isrc/debugger -Isrc/debugger/gui -Isrc/yacc -Isrc/cheat -Isrc/httplib -c src/debugger/gui/CartMDMWidget.cxx -o out/src/debugger/gui/CartMDMWidget.o In file included from src/debugger/gui/CartMDMWidget.cxx:18: In file included from src/emucore/CartMDM.hxx:21: src/common/bspf.hxx:245:37: warning: unsafe pointer arithmetic [-Wunsafe-buffer-usage] const auto pos = std::search(s1.cbegin()+startpos, s1.cend(), ~~~^~~~~~~~ src/common/bspf.hxx:249:56: warning: unsafe pointer arithmetic [-Wunsafe-buffer-usage] return pos == s1.cend() ? string::npos : pos - (s1.cbegin()+startpos); ~~~^~~~~~~~ In file included from src/debugger/gui/CartMDMWidget.cxx:18: In file included from src/emucore/CartMDM.hxx:22: In file included from src/emucore/CartEnhanced.hxx:27: In file included from src/debugger/gui/CartEnhancedWidget.hxx:31: In file included from src/debugger/gui/CartDebugWidget.hxx:30: In file included from src/gui/Widget.hxx:33: In file included from src/common/StellaKeys.hxx:22: In file included from src/common/SDL_lib.hxx:34: In file included from /usr/local/include/SDL2/SDL.h:32: In file included from /usr/local/include/SDL2/SDL_main.h:25: /usr/local/include/SDL2/SDL_stdinc.h:544:13: warning: '_p' is an unsafe pointer used for buffer access [-Wunsafe-buffer-usage] Uint32 *_p = SDL_static_cast(Uint32 *, dst); ~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /usr/local/include/SDL2/SDL_stdinc.h:551:26: note: used in pointer arithmetic here case 3: *_p++ = _val; SDL_FALLTHROUGH; ^~ /usr/local/include/SDL2/SDL_stdinc.h:552:26: note: used in pointer arithmetic here case 2: *_p++ = _val; SDL_FALLTHROUGH; ^~ /usr/local/include/SDL2/SDL_stdinc.h:553:26: note: used in pointer arithmetic here case 1: *_p++ = _val; ^~ /usr/local/include/SDL2/SDL_stdinc.h:550:26: note: used in pointer arithmetic here case 0: do { *_p++ = _val; SDL_FALLTHROUGH; ^~ 3 warnings generated. mkdir -p -p src/debugger/gui/.deps mkdir -p -p out/src/debugger/gui c++ -MMD -MF "src/debugger/gui/.deps/CartRamWidget.d" -MQ "out/src/debugger/gui/CartRamWidget.o" -MP -O2 -pipe -I/usr/X11R6/include -I/usr/local/include -x c++ -Wall -Wextra -Wno-unused-parameter -Wno-multichar -Wunused -Woverloaded-virtual -Wnon-virtual-dtor -std=c++17 -Weverything -Wno-c++98-compat-pedantic -Wno-unknown-warning-option -Wno-switch-enum -Wno-conversion -Wno-covered-switch-default -Wno-inconsistent-missing-destructor-override -Wno-float-equal -Wno-exit-time-destructors -Wno-global-constructors -Wno-weak-vtables -Wno-four-char-constants -Wno-padded -Wno-reserved-identifier -Wno-duplicate-enum -fomit-frame-pointer -DSDL_SUPPORT -D_GLIBCXX_USE_CXX11_ABI=1 -DUNIX -DBSPF_UNIX -DGUI_SUPPORT -DWINDOWED_SUPPORT -DSOUND_SUPPORT -DDEBUGGER_SUPPORT -DJOYSTICK_SUPPORT -DCHEATCODE_SUPPORT -DHTTP_LIB_SUPPORT -DPNG_SUPPORT -DZIP_SUPPORT -Isrc/emucore -Isrc/common -Isrc/common/tv_filters -Isrc/emucore/tia -Isrc/emucore/tia/frame-manager -Isrc/json -Isrc/common/repository/sqlite -I/usr/local/include -I/usr/local/include/SDL2 -I/usr/X11R6/include -D_REENTRANT -I/usr/X11R6/include -Isrc/unix -Isrc/gui -Isrc/debugger -Isrc/debugger/gui -Isrc/yacc -Isrc/cheat -Isrc/httplib -c src/debugger/gui/CartRamWidget.cxx -o out/src/debugger/gui/CartRamWidget.o In file included from src/debugger/gui/CartRamWidget.cxx:18: In file included from src/gui/EditTextWidget.hxx:21: In file included from src/common/Rect.hxx:26: src/common/bspf.hxx:245:37: warning: unsafe pointer arithmetic [-Wunsafe-buffer-usage] const auto pos = std::search(s1.cbegin()+startpos, s1.cend(), ~~~^~~~~~~~ src/common/bspf.hxx:249:56: warning: unsafe pointer arithmetic [-Wunsafe-buffer-usage] return pos == s1.cend() ? string::npos : pos - (s1.cbegin()+startpos); ~~~^~~~~~~~ In file included from src/debugger/gui/CartRamWidget.cxx:18: In file included from src/gui/EditTextWidget.hxx:22: In file included from src/gui/EditableWidget.hxx:23: In file included from src/gui/Widget.hxx:33: In file included from src/common/StellaKeys.hxx:22: In file included from src/common/SDL_lib.hxx:34: In file included from /usr/local/include/SDL2/SDL.h:32: In file included from /usr/local/include/SDL2/SDL_main.h:25: /usr/local/include/SDL2/SDL_stdinc.h:544:13: warning: '_p' is an unsafe pointer used for buffer access [-Wunsafe-buffer-usage] Uint32 *_p = SDL_static_cast(Uint32 *, dst); ~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /usr/local/include/SDL2/SDL_stdinc.h:553:26: note: used in pointer arithmetic here case 1: *_p++ = _val; ^~ /usr/local/include/SDL2/SDL_stdinc.h:551:26: note: used in pointer arithmetic here case 3: *_p++ = _val; SDL_FALLTHROUGH; ^~ /usr/local/include/SDL2/SDL_stdinc.h:550:26: note: used in pointer arithmetic here case 0: do { *_p++ = _val; SDL_FALLTHROUGH; ^~ /usr/local/include/SDL2/SDL_stdinc.h:552:26: note: used in pointer arithmetic here case 2: *_p++ = _val; SDL_FALLTHROUGH; ^~ In file included from src/debugger/gui/CartRamWidget.cxx:20: In file included from src/emucore/OSystem.hxx:55: src/emucore/FSNode.hxx:513:31: warning: unsafe pointer arithmetic [-Wunsafe-buffer-usage] const char* cur = start + str.size() - 2; ~~~~~~^~~~~~~~~~~~ src/emucore/FSNode.hxx:512:19: warning: 'start' is an unsafe pointer used for buffer access [-Wunsafe-buffer-usage] const char* start = str.c_str(); ~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~ src/emucore/FSNode.hxx:513:25: note: used in pointer arithmetic here const char* cur = start + str.size() - 2; ^~~~~ src/emucore/FSNode.hxx:513:19: warning: 'cur' is an unsafe pointer used for buffer access [-Wunsafe-buffer-usage] const char* cur = start + str.size() - 2; ~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~ src/emucore/FSNode.hxx:516:11: note: used in pointer arithmetic here --cur; ^~~ src/emucore/FSNode.hxx:518:14: note: used in pointer arithmetic here return cur + 1; ^~~ 6 warnings generated. mkdir -p -p src/debugger/gui/.deps mkdir -p -p out/src/debugger/gui c++ -MMD -MF "src/debugger/gui/.deps/CartSBWidget.d" -MQ "out/src/debugger/gui/CartSBWidget.o" -MP -O2 -pipe -I/usr/X11R6/include -I/usr/local/include -x c++ -Wall -Wextra -Wno-unused-parameter -Wno-multichar -Wunused -Woverloaded-virtual -Wnon-virtual-dtor -std=c++17 -Weverything -Wno-c++98-compat-pedantic -Wno-unknown-warning-option -Wno-switch-enum -Wno-conversion -Wno-covered-switch-default -Wno-inconsistent-missing-destructor-override -Wno-float-equal -Wno-exit-time-destructors -Wno-global-constructors -Wno-weak-vtables -Wno-four-char-constants -Wno-padded -Wno-reserved-identifier -Wno-duplicate-enum -fomit-frame-pointer -DSDL_SUPPORT -D_GLIBCXX_USE_CXX11_ABI=1 -DUNIX -DBSPF_UNIX -DGUI_SUPPORT -DWINDOWED_SUPPORT -DSOUND_SUPPORT -DDEBUGGER_SUPPORT -DJOYSTICK_SUPPORT -DCHEATCODE_SUPPORT -DHTTP_LIB_SUPPORT -DPNG_SUPPORT -DZIP_SUPPORT -Isrc/emucore -Isrc/common -Isrc/common/tv_filters -Isrc/emucore/tia -Isrc/emucore/tia/frame-manager -Isrc/json -Isrc/common/repository/sqlite -I/usr/local/include -I/usr/local/include/SDL2 -I/usr/X11R6/include -D_REENTRANT -I/usr/X11R6/include -Isrc/unix -Isrc/gui -Isrc/debugger -Isrc/debugger/gui -Isrc/yacc -Isrc/cheat -Isrc/httplib -c src/debugger/gui/CartSBWidget.cxx -o out/src/debugger/gui/CartSBWidget.o In file included from src/debugger/gui/CartSBWidget.cxx:18: In file included from src/emucore/CartSB.hxx:21: src/common/bspf.hxx:245:37: warning: unsafe pointer arithmetic [-Wunsafe-buffer-usage] const auto pos = std::search(s1.cbegin()+startpos, s1.cend(), ~~~^~~~~~~~ src/common/bspf.hxx:249:56: warning: unsafe pointer arithmetic [-Wunsafe-buffer-usage] return pos == s1.cend() ? string::npos : pos - (s1.cbegin()+startpos); ~~~^~~~~~~~ In file included from src/debugger/gui/CartSBWidget.cxx:18: In file included from src/emucore/CartSB.hxx:22: In file included from src/emucore/CartEnhanced.hxx:27: In file included from src/debugger/gui/CartEnhancedWidget.hxx:31: In file included from src/debugger/gui/CartDebugWidget.hxx:30: In file included from src/gui/Widget.hxx:33: In file included from src/common/StellaKeys.hxx:22: In file included from src/common/SDL_lib.hxx:34: In file included from /usr/local/include/SDL2/SDL.h:32: In file included from /usr/local/include/SDL2/SDL_main.h:25: /usr/local/include/SDL2/SDL_stdinc.h:544:13: warning: '_p' is an unsafe pointer used for buffer access [-Wunsafe-buffer-usage] Uint32 *_p = SDL_static_cast(Uint32 *, dst); ~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /usr/local/include/SDL2/SDL_stdinc.h:552:26: note: used in pointer arithmetic here case 2: *_p++ = _val; SDL_FALLTHROUGH; ^~ /usr/local/include/SDL2/SDL_stdinc.h:550:26: note: used in pointer arithmetic here case 0: do { *_p++ = _val; SDL_FALLTHROUGH; ^~ /usr/local/include/SDL2/SDL_stdinc.h:553:26: note: used in pointer arithmetic here case 1: *_p++ = _val; ^~ /usr/local/include/SDL2/SDL_stdinc.h:551:26: note: used in pointer arithmetic here case 3: *_p++ = _val; SDL_FALLTHROUGH; ^~ 3 warnings generated. mkdir -p -p src/debugger/gui/.deps mkdir -p -p out/src/debugger/gui c++ -MMD -MF "src/debugger/gui/.deps/CartTVBoyWidget.d" -MQ "out/src/debugger/gui/CartTVBoyWidget.o" -MP -O2 -pipe -I/usr/X11R6/include -I/usr/local/include -x c++ -Wall -Wextra -Wno-unused-parameter -Wno-multichar -Wunused -Woverloaded-virtual -Wnon-virtual-dtor -std=c++17 -Weverything -Wno-c++98-compat-pedantic -Wno-unknown-warning-option -Wno-switch-enum -Wno-conversion -Wno-covered-switch-default -Wno-inconsistent-missing-destructor-override -Wno-float-equal -Wno-exit-time-destructors -Wno-global-constructors -Wno-weak-vtables -Wno-four-char-constants -Wno-padded -Wno-reserved-identifier -Wno-duplicate-enum -fomit-frame-pointer -DSDL_SUPPORT -D_GLIBCXX_USE_CXX11_ABI=1 -DUNIX -DBSPF_UNIX -DGUI_SUPPORT -DWINDOWED_SUPPORT -DSOUND_SUPPORT -DDEBUGGER_SUPPORT -DJOYSTICK_SUPPORT -DCHEATCODE_SUPPORT -DHTTP_LIB_SUPPORT -DPNG_SUPPORT -DZIP_SUPPORT -Isrc/emucore -Isrc/common -Isrc/common/tv_filters -Isrc/emucore/tia -Isrc/emucore/tia/frame-manager -Isrc/json -Isrc/common/repository/sqlite -I/usr/local/include -I/usr/local/include/SDL2 -I/usr/X11R6/include -D_REENTRANT -I/usr/X11R6/include -Isrc/unix -Isrc/gui -Isrc/debugger -Isrc/debugger/gui -Isrc/yacc -Isrc/cheat -Isrc/httplib -c src/debugger/gui/CartTVBoyWidget.cxx -o out/src/debugger/gui/CartTVBoyWidget.o In file included from src/debugger/gui/CartTVBoyWidget.cxx:18: In file included from src/emucore/CartTVBoy.hxx:21: src/common/bspf.hxx:245:37: warning: unsafe pointer arithmetic [-Wunsafe-buffer-usage] const auto pos = std::search(s1.cbegin()+startpos, s1.cend(), ~~~^~~~~~~~ src/common/bspf.hxx:249:56: warning: unsafe pointer arithmetic [-Wunsafe-buffer-usage] return pos == s1.cend() ? string::npos : pos - (s1.cbegin()+startpos); ~~~^~~~~~~~ In file included from src/debugger/gui/CartTVBoyWidget.cxx:18: In file included from src/emucore/CartTVBoy.hxx:22: In file included from src/emucore/CartEnhanced.hxx:27: In file included from src/debugger/gui/CartEnhancedWidget.hxx:31: In file included from src/debugger/gui/CartDebugWidget.hxx:30: In file included from src/gui/Widget.hxx:33: In file included from src/common/StellaKeys.hxx:22: In file included from src/common/SDL_lib.hxx:34: In file included from /usr/local/include/SDL2/SDL.h:32: In file included from /usr/local/include/SDL2/SDL_main.h:25: /usr/local/include/SDL2/SDL_stdinc.h:544:13: warning: '_p' is an unsafe pointer used for buffer access [-Wunsafe-buffer-usage] Uint32 *_p = SDL_static_cast(Uint32 *, dst); ~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /usr/local/include/SDL2/SDL_stdinc.h:551:26: note: used in pointer arithmetic here case 3: *_p++ = _val; SDL_FALLTHROUGH; ^~ /usr/local/include/SDL2/SDL_stdinc.h:552:26: note: used in pointer arithmetic here case 2: *_p++ = _val; SDL_FALLTHROUGH; ^~ /usr/local/include/SDL2/SDL_stdinc.h:553:26: note: used in pointer arithmetic here case 1: *_p++ = _val; ^~ /usr/local/include/SDL2/SDL_stdinc.h:550:26: note: used in pointer arithmetic here case 0: do { *_p++ = _val; SDL_FALLTHROUGH; ^~ 3 warnings generated. mkdir -p -p src/debugger/gui/.deps mkdir -p -p out/src/debugger/gui c++ -MMD -MF "src/debugger/gui/.deps/CartUAWidget.d" -MQ "out/src/debugger/gui/CartUAWidget.o" -MP -O2 -pipe -I/usr/X11R6/include -I/usr/local/include -x c++ -Wall -Wextra -Wno-unused-parameter -Wno-multichar -Wunused -Woverloaded-virtual -Wnon-virtual-dtor -std=c++17 -Weverything -Wno-c++98-compat-pedantic -Wno-unknown-warning-option -Wno-switch-enum -Wno-conversion -Wno-covered-switch-default -Wno-inconsistent-missing-destructor-override -Wno-float-equal -Wno-exit-time-destructors -Wno-global-constructors -Wno-weak-vtables -Wno-four-char-constants -Wno-padded -Wno-reserved-identifier -Wno-duplicate-enum -fomit-frame-pointer -DSDL_SUPPORT -D_GLIBCXX_USE_CXX11_ABI=1 -DUNIX -DBSPF_UNIX -DGUI_SUPPORT -DWINDOWED_SUPPORT -DSOUND_SUPPORT -DDEBUGGER_SUPPORT -DJOYSTICK_SUPPORT -DCHEATCODE_SUPPORT -DHTTP_LIB_SUPPORT -DPNG_SUPPORT -DZIP_SUPPORT -Isrc/emucore -Isrc/common -Isrc/common/tv_filters -Isrc/emucore/tia -Isrc/emucore/tia/frame-manager -Isrc/json -Isrc/common/repository/sqlite -I/usr/local/include -I/usr/local/include/SDL2 -I/usr/X11R6/include -D_REENTRANT -I/usr/X11R6/include -Isrc/unix -Isrc/gui -Isrc/debugger -Isrc/debugger/gui -Isrc/yacc -Isrc/cheat -Isrc/httplib -c src/debugger/gui/CartUAWidget.cxx -o out/src/debugger/gui/CartUAWidget.o In file included from src/debugger/gui/CartUAWidget.cxx:18: In file included from src/emucore/CartUA.hxx:21: src/common/bspf.hxx:245:37: warning: unsafe pointer arithmetic [-Wunsafe-buffer-usage] const auto pos = std::search(s1.cbegin()+startpos, s1.cend(), ~~~^~~~~~~~ src/common/bspf.hxx:249:56: warning: unsafe pointer arithmetic [-Wunsafe-buffer-usage] return pos == s1.cend() ? string::npos : pos - (s1.cbegin()+startpos); ~~~^~~~~~~~ In file included from src/debugger/gui/CartUAWidget.cxx:18: In file included from src/emucore/CartUA.hxx:22: In file included from src/emucore/CartEnhanced.hxx:27: In file included from src/debugger/gui/CartEnhancedWidget.hxx:31: In file included from src/debugger/gui/CartDebugWidget.hxx:30: In file included from src/gui/Widget.hxx:33: In file included from src/common/StellaKeys.hxx:22: In file included from src/common/SDL_lib.hxx:34: In file included from /usr/local/include/SDL2/SDL.h:32: In file included from /usr/local/include/SDL2/SDL_main.h:25: /usr/local/include/SDL2/SDL_stdinc.h:544:13: warning: '_p' is an unsafe pointer used for buffer access [-Wunsafe-buffer-usage] Uint32 *_p = SDL_static_cast(Uint32 *, dst); ~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /usr/local/include/SDL2/SDL_stdinc.h:550:26: note: used in pointer arithmetic here case 0: do { *_p++ = _val; SDL_FALLTHROUGH; ^~ /usr/local/include/SDL2/SDL_stdinc.h:553:26: note: used in pointer arithmetic here case 1: *_p++ = _val; ^~ /usr/local/include/SDL2/SDL_stdinc.h:551:26: note: used in pointer arithmetic here case 3: *_p++ = _val; SDL_FALLTHROUGH; ^~ /usr/local/include/SDL2/SDL_stdinc.h:552:26: note: used in pointer arithmetic here case 2: *_p++ = _val; SDL_FALLTHROUGH; ^~ 3 warnings generated. mkdir -p -p src/debugger/gui/.deps mkdir -p -p out/src/debugger/gui c++ -MMD -MF "src/debugger/gui/.deps/CartWDWidget.d" -MQ "out/src/debugger/gui/CartWDWidget.o" -MP -O2 -pipe -I/usr/X11R6/include -I/usr/local/include -x c++ -Wall -Wextra -Wno-unused-parameter -Wno-multichar -Wunused -Woverloaded-virtual -Wnon-virtual-dtor -std=c++17 -Weverything -Wno-c++98-compat-pedantic -Wno-unknown-warning-option -Wno-switch-enum -Wno-conversion -Wno-covered-switch-default -Wno-inconsistent-missing-destructor-override -Wno-float-equal -Wno-exit-time-destructors -Wno-global-constructors -Wno-weak-vtables -Wno-four-char-constants -Wno-padded -Wno-reserved-identifier -Wno-duplicate-enum -fomit-frame-pointer -DSDL_SUPPORT -D_GLIBCXX_USE_CXX11_ABI=1 -DUNIX -DBSPF_UNIX -DGUI_SUPPORT -DWINDOWED_SUPPORT -DSOUND_SUPPORT -DDEBUGGER_SUPPORT -DJOYSTICK_SUPPORT -DCHEATCODE_SUPPORT -DHTTP_LIB_SUPPORT -DPNG_SUPPORT -DZIP_SUPPORT -Isrc/emucore -Isrc/common -Isrc/common/tv_filters -Isrc/emucore/tia -Isrc/emucore/tia/frame-manager -Isrc/json -Isrc/common/repository/sqlite -I/usr/local/include -I/usr/local/include/SDL2 -I/usr/X11R6/include -D_REENTRANT -I/usr/X11R6/include -Isrc/unix -Isrc/gui -Isrc/debugger -Isrc/debugger/gui -Isrc/yacc -Isrc/cheat -Isrc/httplib -c src/debugger/gui/CartWDWidget.cxx -o out/src/debugger/gui/CartWDWidget.o In file included from src/debugger/gui/CartWDWidget.cxx:18: In file included from src/emucore/CartWD.hxx:23: src/common/bspf.hxx:245:37: warning: unsafe pointer arithmetic [-Wunsafe-buffer-usage] const auto pos = std::search(s1.cbegin()+startpos, s1.cend(), ~~~^~~~~~~~ src/common/bspf.hxx:249:56: warning: unsafe pointer arithmetic [-Wunsafe-buffer-usage] return pos == s1.cend() ? string::npos : pos - (s1.cbegin()+startpos); ~~~^~~~~~~~ In file included from src/debugger/gui/CartWDWidget.cxx:18: In file included from src/emucore/CartWD.hxx:24: In file included from src/emucore/CartEnhanced.hxx:27: In file included from src/debugger/gui/CartEnhancedWidget.hxx:31: In file included from src/debugger/gui/CartDebugWidget.hxx:30: In file included from src/gui/Widget.hxx:33: In file included from src/common/StellaKeys.hxx:22: In file included from src/common/SDL_lib.hxx:34: In file included from /usr/local/include/SDL2/SDL.h:32: In file included from /usr/local/include/SDL2/SDL_main.h:25: /usr/local/include/SDL2/SDL_stdinc.h:544:13: warning: '_p' is an unsafe pointer used for buffer access [-Wunsafe-buffer-usage] Uint32 *_p = SDL_static_cast(Uint32 *, dst); ~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /usr/local/include/SDL2/SDL_stdinc.h:553:26: note: used in pointer arithmetic here case 1: *_p++ = _val; ^~ /usr/local/include/SDL2/SDL_stdinc.h:552:26: note: used in pointer arithmetic here case 2: *_p++ = _val; SDL_FALLTHROUGH; ^~ /usr/local/include/SDL2/SDL_stdinc.h:550:26: note: used in pointer arithmetic here case 0: do { *_p++ = _val; SDL_FALLTHROUGH; ^~ /usr/local/include/SDL2/SDL_stdinc.h:551:26: note: used in pointer arithmetic here case 3: *_p++ = _val; SDL_FALLTHROUGH; ^~ 3 warnings generated. mkdir -p -p src/debugger/gui/.deps mkdir -p -p out/src/debugger/gui c++ -MMD -MF "src/debugger/gui/.deps/CartX07Widget.d" -MQ "out/src/debugger/gui/CartX07Widget.o" -MP -O2 -pipe -I/usr/X11R6/include -I/usr/local/include -x c++ -Wall -Wextra -Wno-unused-parameter -Wno-multichar -Wunused -Woverloaded-virtual -Wnon-virtual-dtor -std=c++17 -Weverything -Wno-c++98-compat-pedantic -Wno-unknown-warning-option -Wno-switch-enum -Wno-conversion -Wno-covered-switch-default -Wno-inconsistent-missing-destructor-override -Wno-float-equal -Wno-exit-time-destructors -Wno-global-constructors -Wno-weak-vtables -Wno-four-char-constants -Wno-padded -Wno-reserved-identifier -Wno-duplicate-enum -fomit-frame-pointer -DSDL_SUPPORT -D_GLIBCXX_USE_CXX11_ABI=1 -DUNIX -DBSPF_UNIX -DGUI_SUPPORT -DWINDOWED_SUPPORT -DSOUND_SUPPORT -DDEBUGGER_SUPPORT -DJOYSTICK_SUPPORT -DCHEATCODE_SUPPORT -DHTTP_LIB_SUPPORT -DPNG_SUPPORT -DZIP_SUPPORT -Isrc/emucore -Isrc/common -Isrc/common/tv_filters -Isrc/emucore/tia -Isrc/emucore/tia/frame-manager -Isrc/json -Isrc/common/repository/sqlite -I/usr/local/include -I/usr/local/include/SDL2 -I/usr/X11R6/include -D_REENTRANT -I/usr/X11R6/include -Isrc/unix -Isrc/gui -Isrc/debugger -Isrc/debugger/gui -Isrc/yacc -Isrc/cheat -Isrc/httplib -c src/debugger/gui/CartX07Widget.cxx -o out/src/debugger/gui/CartX07Widget.o In file included from src/debugger/gui/CartX07Widget.cxx:18: In file included from src/emucore/CartX07.hxx:23: src/common/bspf.hxx:245:37: warning: unsafe pointer arithmetic [-Wunsafe-buffer-usage] const auto pos = std::search(s1.cbegin()+startpos, s1.cend(), ~~~^~~~~~~~ src/common/bspf.hxx:249:56: warning: unsafe pointer arithmetic [-Wunsafe-buffer-usage] return pos == s1.cend() ? string::npos : pos - (s1.cbegin()+startpos); ~~~^~~~~~~~ In file included from src/debugger/gui/CartX07Widget.cxx:18: In file included from src/emucore/CartX07.hxx:24: In file included from src/emucore/CartEnhanced.hxx:27: In file included from src/debugger/gui/CartEnhancedWidget.hxx:31: In file included from src/debugger/gui/CartDebugWidget.hxx:30: In file included from src/gui/Widget.hxx:33: In file included from src/common/StellaKeys.hxx:22: In file included from src/common/SDL_lib.hxx:34: In file included from /usr/local/include/SDL2/SDL.h:32: In file included from /usr/local/include/SDL2/SDL_main.h:25: /usr/local/include/SDL2/SDL_stdinc.h:544:13: warning: '_p' is an unsafe pointer used for buffer access [-Wunsafe-buffer-usage] Uint32 *_p = SDL_static_cast(Uint32 *, dst); ~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /usr/local/include/SDL2/SDL_stdinc.h:551:26: note: used in pointer arithmetic here case 3: *_p++ = _val; SDL_FALLTHROUGH; ^~ /usr/local/include/SDL2/SDL_stdinc.h:550:26: note: used in pointer arithmetic here case 0: do { *_p++ = _val; SDL_FALLTHROUGH; ^~ /usr/local/include/SDL2/SDL_stdinc.h:552:26: note: used in pointer arithmetic here case 2: *_p++ = _val; SDL_FALLTHROUGH; ^~ /usr/local/include/SDL2/SDL_stdinc.h:553:26: note: used in pointer arithmetic here case 1: *_p++ = _val; ^~ 3 warnings generated. mkdir -p -p src/debugger/gui/.deps mkdir -p -p out/src/debugger/gui c++ -MMD -MF "src/debugger/gui/.deps/CartDebugWidget.d" -MQ "out/src/debugger/gui/CartDebugWidget.o" -MP -O2 -pipe -I/usr/X11R6/include -I/usr/local/include -x c++ -Wall -Wextra -Wno-unused-parameter -Wno-multichar -Wunused -Woverloaded-virtual -Wnon-virtual-dtor -std=c++17 -Weverything -Wno-c++98-compat-pedantic -Wno-unknown-warning-option -Wno-switch-enum -Wno-conversion -Wno-covered-switch-default -Wno-inconsistent-missing-destructor-override -Wno-float-equal -Wno-exit-time-destructors -Wno-global-constructors -Wno-weak-vtables -Wno-four-char-constants -Wno-padded -Wno-reserved-identifier -Wno-duplicate-enum -fomit-frame-pointer -DSDL_SUPPORT -D_GLIBCXX_USE_CXX11_ABI=1 -DUNIX -DBSPF_UNIX -DGUI_SUPPORT -DWINDOWED_SUPPORT -DSOUND_SUPPORT -DDEBUGGER_SUPPORT -DJOYSTICK_SUPPORT -DCHEATCODE_SUPPORT -DHTTP_LIB_SUPPORT -DPNG_SUPPORT -DZIP_SUPPORT -Isrc/emucore -Isrc/common -Isrc/common/tv_filters -Isrc/emucore/tia -Isrc/emucore/tia/frame-manager -Isrc/json -Isrc/common/repository/sqlite -I/usr/local/include -I/usr/local/include/SDL2 -I/usr/X11R6/include -D_REENTRANT -I/usr/X11R6/include -Isrc/unix -Isrc/gui -Isrc/debugger -Isrc/debugger/gui -Isrc/yacc -Isrc/cheat -Isrc/httplib -c src/debugger/gui/CartDebugWidget.cxx -o out/src/debugger/gui/CartDebugWidget.o In file included from src/debugger/gui/CartDebugWidget.cxx:18: In file included from src/gui/Font.hxx:24: src/common/bspf.hxx:245:37: warning: unsafe pointer arithmetic [-Wunsafe-buffer-usage] const auto pos = std::search(s1.cbegin()+startpos, s1.cend(), ~~~^~~~~~~~ src/common/bspf.hxx:249:56: warning: unsafe pointer arithmetic [-Wunsafe-buffer-usage] return pos == s1.cend() ? string::npos : pos - (s1.cbegin()+startpos); ~~~^~~~~~~~ In file included from src/debugger/gui/CartDebugWidget.cxx:19: In file included from src/debugger/gui/RomWidget.hxx:27: In file included from src/gui/Widget.hxx:33: In file included from src/common/StellaKeys.hxx:22: In file included from src/common/SDL_lib.hxx:34: In file included from /usr/local/include/SDL2/SDL.h:32: In file included from /usr/local/include/SDL2/SDL_main.h:25: /usr/local/include/SDL2/SDL_stdinc.h:544:13: warning: '_p' is an unsafe pointer used for buffer access [-Wunsafe-buffer-usage] Uint32 *_p = SDL_static_cast(Uint32 *, dst); ~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /usr/local/include/SDL2/SDL_stdinc.h:552:26: note: used in pointer arithmetic here case 2: *_p++ = _val; SDL_FALLTHROUGH; ^~ /usr/local/include/SDL2/SDL_stdinc.h:550:26: note: used in pointer arithmetic here case 0: do { *_p++ = _val; SDL_FALLTHROUGH; ^~ /usr/local/include/SDL2/SDL_stdinc.h:551:26: note: used in pointer arithmetic here case 3: *_p++ = _val; SDL_FALLTHROUGH; ^~ /usr/local/include/SDL2/SDL_stdinc.h:553:26: note: used in pointer arithmetic here case 1: *_p++ = _val; ^~ 3 warnings generated. mkdir -p -p src/debugger/gui/.deps mkdir -p -p out/src/debugger/gui c++ -MMD -MF "src/debugger/gui/.deps/CpuWidget.d" -MQ "out/src/debugger/gui/CpuWidget.o" -MP -O2 -pipe -I/usr/X11R6/include -I/usr/local/include -x c++ -Wall -Wextra -Wno-unused-parameter -Wno-multichar -Wunused -Woverloaded-virtual -Wnon-virtual-dtor -std=c++17 -Weverything -Wno-c++98-compat-pedantic -Wno-unknown-warning-option -Wno-switch-enum -Wno-conversion -Wno-covered-switch-default -Wno-inconsistent-missing-destructor-override -Wno-float-equal -Wno-exit-time-destructors -Wno-global-constructors -Wno-weak-vtables -Wno-four-char-constants -Wno-padded -Wno-reserved-identifier -Wno-duplicate-enum -fomit-frame-pointer -DSDL_SUPPORT -D_GLIBCXX_USE_CXX11_ABI=1 -DUNIX -DBSPF_UNIX -DGUI_SUPPORT -DWINDOWED_SUPPORT -DSOUND_SUPPORT -DDEBUGGER_SUPPORT -DJOYSTICK_SUPPORT -DCHEATCODE_SUPPORT -DHTTP_LIB_SUPPORT -DPNG_SUPPORT -DZIP_SUPPORT -Isrc/emucore -Isrc/common -Isrc/common/tv_filters -Isrc/emucore/tia -Isrc/emucore/tia/frame-manager -Isrc/json -Isrc/common/repository/sqlite -I/usr/local/include -I/usr/local/include/SDL2 -I/usr/X11R6/include -D_REENTRANT -I/usr/X11R6/include -Isrc/unix -Isrc/gui -Isrc/debugger -Isrc/debugger/gui -Isrc/yacc -Isrc/cheat -Isrc/httplib -c src/debugger/gui/CpuWidget.cxx -o out/src/debugger/gui/CpuWidget.o In file included from src/debugger/gui/CpuWidget.cxx:20: In file included from src/emucore/OSystem.hxx:55: In file included from src/emucore/FSNode.hxx:23: src/common/bspf.hxx:245:37: warning: unsafe pointer arithmetic [-Wunsafe-buffer-usage] const auto pos = std::search(s1.cbegin()+startpos, s1.cend(), ~~~^~~~~~~~ src/common/bspf.hxx:249:56: warning: unsafe pointer arithmetic [-Wunsafe-buffer-usage] return pos == s1.cend() ? string::npos : pos - (s1.cbegin()+startpos); ~~~^~~~~~~~ In file included from src/debugger/gui/CpuWidget.cxx:20: In file included from src/emucore/OSystem.hxx:55: src/emucore/FSNode.hxx:513:31: warning: unsafe pointer arithmetic [-Wunsafe-buffer-usage] const char* cur = start + str.size() - 2; ~~~~~~^~~~~~~~~~~~ src/emucore/FSNode.hxx:512:19: warning: 'start' is an unsafe pointer used for buffer access [-Wunsafe-buffer-usage] const char* start = str.c_str(); ~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~ src/emucore/FSNode.hxx:513:25: note: used in pointer arithmetic here const char* cur = start + str.size() - 2; ^~~~~ src/emucore/FSNode.hxx:513:19: warning: 'cur' is an unsafe pointer used for buffer access [-Wunsafe-buffer-usage] const char* cur = start + str.size() - 2; ~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~ src/emucore/FSNode.hxx:518:14: note: used in pointer arithmetic here return cur + 1; ^~~ src/emucore/FSNode.hxx:516:11: note: used in pointer arithmetic here --cur; ^~~ In file included from src/debugger/gui/CpuWidget.cxx:22: In file included from src/debugger/Debugger.hxx:48: In file included from src/gui/DialogContainer.hxx:26: In file included from src/common/StellaKeys.hxx:22: In file included from src/common/SDL_lib.hxx:34: In file included from /usr/local/include/SDL2/SDL.h:32: In file included from /usr/local/include/SDL2/SDL_main.h:25: /usr/local/include/SDL2/SDL_stdinc.h:544:13: warning: '_p' is an unsafe pointer used for buffer access [-Wunsafe-buffer-usage] Uint32 *_p = SDL_static_cast(Uint32 *, dst); ~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /usr/local/include/SDL2/SDL_stdinc.h:552:26: note: used in pointer arithmetic here case 2: *_p++ = _val; SDL_FALLTHROUGH; ^~ /usr/local/include/SDL2/SDL_stdinc.h:551:26: note: used in pointer arithmetic here case 3: *_p++ = _val; SDL_FALLTHROUGH; ^~ /usr/local/include/SDL2/SDL_stdinc.h:550:26: note: used in pointer arithmetic here case 0: do { *_p++ = _val; SDL_FALLTHROUGH; ^~ /usr/local/include/SDL2/SDL_stdinc.h:553:26: note: used in pointer arithmetic here case 1: *_p++ = _val; ^~ 6 warnings generated. mkdir -p -p src/debugger/gui/.deps mkdir -p -p out/src/debugger/gui c++ -MMD -MF "src/debugger/gui/.deps/DataGridOpsWidget.d" -MQ "out/src/debugger/gui/DataGridOpsWidget.o" -MP -O2 -pipe -I/usr/X11R6/include -I/usr/local/include -x c++ -Wall -Wextra -Wno-unused-parameter -Wno-multichar -Wunused -Woverloaded-virtual -Wnon-virtual-dtor -std=c++17 -Weverything -Wno-c++98-compat-pedantic -Wno-unknown-warning-option -Wno-switch-enum -Wno-conversion -Wno-covered-switch-default -Wno-inconsistent-missing-destructor-override -Wno-float-equal -Wno-exit-time-destructors -Wno-global-constructors -Wno-weak-vtables -Wno-four-char-constants -Wno-padded -Wno-reserved-identifier -Wno-duplicate-enum -fomit-frame-pointer -DSDL_SUPPORT -D_GLIBCXX_USE_CXX11_ABI=1 -DUNIX -DBSPF_UNIX -DGUI_SUPPORT -DWINDOWED_SUPPORT -DSOUND_SUPPORT -DDEBUGGER_SUPPORT -DJOYSTICK_SUPPORT -DCHEATCODE_SUPPORT -DHTTP_LIB_SUPPORT -DPNG_SUPPORT -DZIP_SUPPORT -Isrc/emucore -Isrc/common -Isrc/common/tv_filters -Isrc/emucore/tia -Isrc/emucore/tia/frame-manager -Isrc/json -Isrc/common/repository/sqlite -I/usr/local/include -I/usr/local/include/SDL2 -I/usr/X11R6/include -D_REENTRANT -I/usr/X11R6/include -Isrc/unix -Isrc/gui -Isrc/debugger -Isrc/debugger/gui -Isrc/yacc -Isrc/cheat -Isrc/httplib -c src/debugger/gui/DataGridOpsWidget.cxx -o out/src/debugger/gui/DataGridOpsWidget.o In file included from src/debugger/gui/DataGridOpsWidget.cxx:18: In file included from src/gui/Font.hxx:24: src/common/bspf.hxx:245:37: warning: unsafe pointer arithmetic [-Wunsafe-buffer-usage] const auto pos = std::search(s1.cbegin()+startpos, s1.cend(), ~~~^~~~~~~~ src/common/bspf.hxx:249:56: warning: unsafe pointer arithmetic [-Wunsafe-buffer-usage] return pos == s1.cend() ? string::npos : pos - (s1.cbegin()+startpos); ~~~^~~~~~~~ In file included from src/debugger/gui/DataGridOpsWidget.cxx:19: In file included from src/debugger/gui/DataGridOpsWidget.hxx:21: In file included from src/gui/Widget.hxx:33: In file included from src/common/StellaKeys.hxx:22: In file included from src/common/SDL_lib.hxx:34: In file included from /usr/local/include/SDL2/SDL.h:32: In file included from /usr/local/include/SDL2/SDL_main.h:25: /usr/local/include/SDL2/SDL_stdinc.h:544:13: warning: '_p' is an unsafe pointer used for buffer access [-Wunsafe-buffer-usage] Uint32 *_p = SDL_static_cast(Uint32 *, dst); ~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /usr/local/include/SDL2/SDL_stdinc.h:553:26: note: used in pointer arithmetic here case 1: *_p++ = _val; ^~ /usr/local/include/SDL2/SDL_stdinc.h:550:26: note: used in pointer arithmetic here case 0: do { *_p++ = _val; SDL_FALLTHROUGH; ^~ /usr/local/include/SDL2/SDL_stdinc.h:552:26: note: used in pointer arithmetic here case 2: *_p++ = _val; SDL_FALLTHROUGH; ^~ /usr/local/include/SDL2/SDL_stdinc.h:551:26: note: used in pointer arithmetic here case 3: *_p++ = _val; SDL_FALLTHROUGH; ^~ 3 warnings generated. mkdir -p -p src/debugger/gui/.deps mkdir -p -p out/src/debugger/gui c++ -MMD -MF "src/debugger/gui/.deps/DataGridRamWidget.d" -MQ "out/src/debugger/gui/DataGridRamWidget.o" -MP -O2 -pipe -I/usr/X11R6/include -I/usr/local/include -x c++ -Wall -Wextra -Wno-unused-parameter -Wno-multichar -Wunused -Woverloaded-virtual -Wnon-virtual-dtor -std=c++17 -Weverything -Wno-c++98-compat-pedantic -Wno-unknown-warning-option -Wno-switch-enum -Wno-conversion -Wno-covered-switch-default -Wno-inconsistent-missing-destructor-override -Wno-float-equal -Wno-exit-time-destructors -Wno-global-constructors -Wno-weak-vtables -Wno-four-char-constants -Wno-padded -Wno-reserved-identifier -Wno-duplicate-enum -fomit-frame-pointer -DSDL_SUPPORT -D_GLIBCXX_USE_CXX11_ABI=1 -DUNIX -DBSPF_UNIX -DGUI_SUPPORT -DWINDOWED_SUPPORT -DSOUND_SUPPORT -DDEBUGGER_SUPPORT -DJOYSTICK_SUPPORT -DCHEATCODE_SUPPORT -DHTTP_LIB_SUPPORT -DPNG_SUPPORT -DZIP_SUPPORT -Isrc/emucore -Isrc/common -Isrc/common/tv_filters -Isrc/emucore/tia -Isrc/emucore/tia/frame-manager -Isrc/json -Isrc/common/repository/sqlite -I/usr/local/include -I/usr/local/include/SDL2 -I/usr/X11R6/include -D_REENTRANT -I/usr/X11R6/include -Isrc/unix -Isrc/gui -Isrc/debugger -Isrc/debugger/gui -Isrc/yacc -Isrc/cheat -Isrc/httplib -c src/debugger/gui/DataGridRamWidget.cxx -o out/src/debugger/gui/DataGridRamWidget.o In file included from src/debugger/gui/DataGridRamWidget.cxx:18: In file included from src/debugger/gui/RamWidget.hxx:30: In file included from src/gui/Widget.hxx:28: src/common/bspf.hxx:245:37: warning: unsafe pointer arithmetic [-Wunsafe-buffer-usage] const auto pos = std::search(s1.cbegin()+startpos, s1.cend(), ~~~^~~~~~~~ src/common/bspf.hxx:249:56: warning: unsafe pointer arithmetic [-Wunsafe-buffer-usage] return pos == s1.cend() ? string::npos : pos - (s1.cbegin()+startpos); ~~~^~~~~~~~ In file included from src/debugger/gui/DataGridRamWidget.cxx:18: In file included from src/debugger/gui/RamWidget.hxx:30: In file included from src/gui/Widget.hxx:33: In file included from src/common/StellaKeys.hxx:22: In file included from src/common/SDL_lib.hxx:34: In file included from /usr/local/include/SDL2/SDL.h:32: In file included from /usr/local/include/SDL2/SDL_main.h:25: /usr/local/include/SDL2/SDL_stdinc.h:544:13: warning: '_p' is an unsafe pointer used for buffer access [-Wunsafe-buffer-usage] Uint32 *_p = SDL_static_cast(Uint32 *, dst); ~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /usr/local/include/SDL2/SDL_stdinc.h:553:26: note: used in pointer arithmetic here case 1: *_p++ = _val; ^~ /usr/local/include/SDL2/SDL_stdinc.h:550:26: note: used in pointer arithmetic here case 0: do { *_p++ = _val; SDL_FALLTHROUGH; ^~ /usr/local/include/SDL2/SDL_stdinc.h:551:26: note: used in pointer arithmetic here case 3: *_p++ = _val; SDL_FALLTHROUGH; ^~ /usr/local/include/SDL2/SDL_stdinc.h:552:26: note: used in pointer arithmetic here case 2: *_p++ = _val; SDL_FALLTHROUGH; ^~ 3 warnings generated. mkdir -p -p src/debugger/gui/.deps mkdir -p -p out/src/debugger/gui c++ -MMD -MF "src/debugger/gui/.deps/DataGridWidget.d" -MQ "out/src/debugger/gui/DataGridWidget.o" -MP -O2 -pipe -I/usr/X11R6/include -I/usr/local/include -x c++ -Wall -Wextra -Wno-unused-parameter -Wno-multichar -Wunused -Woverloaded-virtual -Wnon-virtual-dtor -std=c++17 -Weverything -Wno-c++98-compat-pedantic -Wno-unknown-warning-option -Wno-switch-enum -Wno-conversion -Wno-covered-switch-default -Wno-inconsistent-missing-destructor-override -Wno-float-equal -Wno-exit-time-destructors -Wno-global-constructors -Wno-weak-vtables -Wno-four-char-constants -Wno-padded -Wno-reserved-identifier -Wno-duplicate-enum -fomit-frame-pointer -DSDL_SUPPORT -D_GLIBCXX_USE_CXX11_ABI=1 -DUNIX -DBSPF_UNIX -DGUI_SUPPORT -DWINDOWED_SUPPORT -DSOUND_SUPPORT -DDEBUGGER_SUPPORT -DJOYSTICK_SUPPORT -DCHEATCODE_SUPPORT -DHTTP_LIB_SUPPORT -DPNG_SUPPORT -DZIP_SUPPORT -Isrc/emucore -Isrc/common -Isrc/common/tv_filters -Isrc/emucore/tia -Isrc/emucore/tia/frame-manager -Isrc/json -Isrc/common/repository/sqlite -I/usr/local/include -I/usr/local/include/SDL2 -I/usr/X11R6/include -D_REENTRANT -I/usr/X11R6/include -Isrc/unix -Isrc/gui -Isrc/debugger -Isrc/debugger/gui -Isrc/yacc -Isrc/cheat -Isrc/httplib -c src/debugger/gui/DataGridWidget.cxx -o out/src/debugger/gui/DataGridWidget.o In file included from src/debugger/gui/DataGridWidget.cxx:18: In file included from src/gui/Widget.hxx:28: src/common/bspf.hxx:245:37: warning: unsafe pointer arithmetic [-Wunsafe-buffer-usage] const auto pos = std::search(s1.cbegin()+startpos, s1.cend(), ~~~^~~~~~~~ src/common/bspf.hxx:249:56: warning: unsafe pointer arithmetic [-Wunsafe-buffer-usage] return pos == s1.cend() ? string::npos : pos - (s1.cbegin()+startpos); ~~~^~~~~~~~ In file included from src/debugger/gui/DataGridWidget.cxx:18: In file included from src/gui/Widget.hxx:33: In file included from src/common/StellaKeys.hxx:22: In file included from src/common/SDL_lib.hxx:34: In file included from /usr/local/include/SDL2/SDL.h:32: In file included from /usr/local/include/SDL2/SDL_main.h:25: /usr/local/include/SDL2/SDL_stdinc.h:544:13: warning: '_p' is an unsafe pointer used for buffer access [-Wunsafe-buffer-usage] Uint32 *_p = SDL_static_cast(Uint32 *, dst); ~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /usr/local/include/SDL2/SDL_stdinc.h:550:26: note: used in pointer arithmetic here case 0: do { *_p++ = _val; SDL_FALLTHROUGH; ^~ /usr/local/include/SDL2/SDL_stdinc.h:551:26: note: used in pointer arithmetic here case 3: *_p++ = _val; SDL_FALLTHROUGH; ^~ /usr/local/include/SDL2/SDL_stdinc.h:552:26: note: used in pointer arithmetic here case 2: *_p++ = _val; SDL_FALLTHROUGH; ^~ /usr/local/include/SDL2/SDL_stdinc.h:553:26: note: used in pointer arithmetic here case 1: *_p++ = _val; ^~ In file included from src/debugger/gui/DataGridWidget.cxx:22: In file included from src/emucore/OSystem.hxx:55: src/emucore/FSNode.hxx:513:31: warning: unsafe pointer arithmetic [-Wunsafe-buffer-usage] const char* cur = start + str.size() - 2; ~~~~~~^~~~~~~~~~~~ src/emucore/FSNode.hxx:512:19: warning: 'start' is an unsafe pointer used for buffer access [-Wunsafe-buffer-usage] const char* start = str.c_str(); ~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~ src/emucore/FSNode.hxx:513:25: note: used in pointer arithmetic here const char* cur = start + str.size() - 2; ^~~~~ src/emucore/FSNode.hxx:513:19: warning: 'cur' is an unsafe pointer used for buffer access [-Wunsafe-buffer-usage] const char* cur = start + str.size() - 2; ~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~ src/emucore/FSNode.hxx:516:11: note: used in pointer arithmetic here --cur; ^~~ src/emucore/FSNode.hxx:518:14: note: used in pointer arithmetic here return cur + 1; ^~~ 6 warnings generated. mkdir -p -p src/debugger/gui/.deps mkdir -p -p out/src/debugger/gui c++ -MMD -MF "src/debugger/gui/.deps/DebuggerDialog.d" -MQ "out/src/debugger/gui/DebuggerDialog.o" -MP -O2 -pipe -I/usr/X11R6/include -I/usr/local/include -x c++ -Wall -Wextra -Wno-unused-parameter -Wno-multichar -Wunused -Woverloaded-virtual -Wnon-virtual-dtor -std=c++17 -Weverything -Wno-c++98-compat-pedantic -Wno-unknown-warning-option -Wno-switch-enum -Wno-conversion -Wno-covered-switch-default -Wno-inconsistent-missing-destructor-override -Wno-float-equal -Wno-exit-time-destructors -Wno-global-constructors -Wno-weak-vtables -Wno-four-char-constants -Wno-padded -Wno-reserved-identifier -Wno-duplicate-enum -fomit-frame-pointer -DSDL_SUPPORT -D_GLIBCXX_USE_CXX11_ABI=1 -DUNIX -DBSPF_UNIX -DGUI_SUPPORT -DWINDOWED_SUPPORT -DSOUND_SUPPORT -DDEBUGGER_SUPPORT -DJOYSTICK_SUPPORT -DCHEATCODE_SUPPORT -DHTTP_LIB_SUPPORT -DPNG_SUPPORT -DZIP_SUPPORT -Isrc/emucore -Isrc/common -Isrc/common/tv_filters -Isrc/emucore/tia -Isrc/emucore/tia/frame-manager -Isrc/json -Isrc/common/repository/sqlite -I/usr/local/include -I/usr/local/include/SDL2 -I/usr/X11R6/include -D_REENTRANT -I/usr/X11R6/include -Isrc/unix -Isrc/gui -Isrc/debugger -Isrc/debugger/gui -Isrc/yacc -Isrc/cheat -Isrc/httplib -c src/debugger/gui/DebuggerDialog.cxx -o out/src/debugger/gui/DebuggerDialog.o In file included from src/debugger/gui/DebuggerDialog.cxx:18: In file included from src/emucore/Cart.hxx:30: src/common/bspf.hxx:245:37: warning: unsafe pointer arithmetic [-Wunsafe-buffer-usage] const auto pos = std::search(s1.cbegin()+startpos, s1.cend(), ~~~^~~~~~~~ src/common/bspf.hxx:249:56: warning: unsafe pointer arithmetic [-Wunsafe-buffer-usage] return pos == s1.cend() ? string::npos : pos - (s1.cbegin()+startpos); ~~~^~~~~~~~ In file included from src/debugger/gui/DebuggerDialog.cxx:19: In file included from src/gui/Widget.hxx:33: In file included from src/common/StellaKeys.hxx:22: In file included from src/common/SDL_lib.hxx:34: In file included from /usr/local/include/SDL2/SDL.h:32: In file included from /usr/local/include/SDL2/SDL_main.h:25: /usr/local/include/SDL2/SDL_stdinc.h:544:13: warning: '_p' is an unsafe pointer used for buffer access [-Wunsafe-buffer-usage] Uint32 *_p = SDL_static_cast(Uint32 *, dst); ~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /usr/local/include/SDL2/SDL_stdinc.h:551:26: note: used in pointer arithmetic here case 3: *_p++ = _val; SDL_FALLTHROUGH; ^~ /usr/local/include/SDL2/SDL_stdinc.h:553:26: note: used in pointer arithmetic here case 1: *_p++ = _val; ^~ /usr/local/include/SDL2/SDL_stdinc.h:550:26: note: used in pointer arithmetic here case 0: do { *_p++ = _val; SDL_FALLTHROUGH; ^~ /usr/local/include/SDL2/SDL_stdinc.h:552:26: note: used in pointer arithmetic here case 2: *_p++ = _val; SDL_FALLTHROUGH; ^~ In file included from src/debugger/gui/DebuggerDialog.cxx:30: src/debugger/gui/PromptWidget.hxx:61:35: warning: unsafe buffer access [-Wunsafe-buffer-usage] int& buffer(int idx) { return _buffer[idx % kBufferSize]; } ^~~~~~~ In file included from src/debugger/gui/DebuggerDialog.cxx:49: In file included from src/gui/BrowserDialog.hxx:30: src/emucore/FSNode.hxx:513:31: warning: unsafe pointer arithmetic [-Wunsafe-buffer-usage] const char* cur = start + str.size() - 2; ~~~~~~^~~~~~~~~~~~ src/emucore/FSNode.hxx:512:19: warning: 'start' is an unsafe pointer used for buffer access [-Wunsafe-buffer-usage] const char* start = str.c_str(); ~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~ src/emucore/FSNode.hxx:513:25: note: used in pointer arithmetic here const char* cur = start + str.size() - 2; ^~~~~ src/emucore/FSNode.hxx:513:19: warning: 'cur' is an unsafe pointer used for buffer access [-Wunsafe-buffer-usage] const char* cur = start + str.size() - 2; ~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~ src/emucore/FSNode.hxx:516:11: note: used in pointer arithmetic here --cur; ^~~ src/emucore/FSNode.hxx:518:14: note: used in pointer arithmetic here return cur + 1; ^~~ 7 warnings generated. mkdir -p -p src/debugger/gui/.deps mkdir -p -p out/src/debugger/gui c++ -MMD -MF "src/debugger/gui/.deps/DelayQueueWidget.d" -MQ "out/src/debugger/gui/DelayQueueWidget.o" -MP -O2 -pipe -I/usr/X11R6/include -I/usr/local/include -x c++ -Wall -Wextra -Wno-unused-parameter -Wno-multichar -Wunused -Woverloaded-virtual -Wnon-virtual-dtor -std=c++17 -Weverything -Wno-c++98-compat-pedantic -Wno-unknown-warning-option -Wno-switch-enum -Wno-conversion -Wno-covered-switch-default -Wno-inconsistent-missing-destructor-override -Wno-float-equal -Wno-exit-time-destructors -Wno-global-constructors -Wno-weak-vtables -Wno-four-char-constants -Wno-padded -Wno-reserved-identifier -Wno-duplicate-enum -fomit-frame-pointer -DSDL_SUPPORT -D_GLIBCXX_USE_CXX11_ABI=1 -DUNIX -DBSPF_UNIX -DGUI_SUPPORT -DWINDOWED_SUPPORT -DSOUND_SUPPORT -DDEBUGGER_SUPPORT -DJOYSTICK_SUPPORT -DCHEATCODE_SUPPORT -DHTTP_LIB_SUPPORT -DPNG_SUPPORT -DZIP_SUPPORT -Isrc/emucore -Isrc/common -Isrc/common/tv_filters -Isrc/emucore/tia -Isrc/emucore/tia/frame-manager -Isrc/json -Isrc/common/repository/sqlite -I/usr/local/include -I/usr/local/include/SDL2 -I/usr/X11R6/include -D_REENTRANT -I/usr/X11R6/include -Isrc/unix -Isrc/gui -Isrc/debugger -Isrc/debugger/gui -Isrc/yacc -Isrc/cheat -Isrc/httplib -c src/debugger/gui/DelayQueueWidget.cxx -o out/src/debugger/gui/DelayQueueWidget.o In file included from src/debugger/gui/DelayQueueWidget.cxx:18: In file included from src/debugger/gui/DelayQueueWidget.hxx:21: In file included from src/gui/Widget.hxx:28: src/common/bspf.hxx:245:37: warning: unsafe pointer arithmetic [-Wunsafe-buffer-usage] const auto pos = std::search(s1.cbegin()+startpos, s1.cend(), ~~~^~~~~~~~ src/common/bspf.hxx:249:56: warning: unsafe pointer arithmetic [-Wunsafe-buffer-usage] return pos == s1.cend() ? string::npos : pos - (s1.cbegin()+startpos); ~~~^~~~~~~~ In file included from src/debugger/gui/DelayQueueWidget.cxx:18: In file included from src/debugger/gui/DelayQueueWidget.hxx:21: In file included from src/gui/Widget.hxx:33: In file included from src/common/StellaKeys.hxx:22: In file included from src/common/SDL_lib.hxx:34: In file included from /usr/local/include/SDL2/SDL.h:32: In file included from /usr/local/include/SDL2/SDL_main.h:25: /usr/local/include/SDL2/SDL_stdinc.h:544:13: warning: '_p' is an unsafe pointer used for buffer access [-Wunsafe-buffer-usage] Uint32 *_p = SDL_static_cast(Uint32 *, dst); ~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /usr/local/include/SDL2/SDL_stdinc.h:551:26: note: used in pointer arithmetic here case 3: *_p++ = _val; SDL_FALLTHROUGH; ^~ /usr/local/include/SDL2/SDL_stdinc.h:553:26: note: used in pointer arithmetic here case 1: *_p++ = _val; ^~ /usr/local/include/SDL2/SDL_stdinc.h:552:26: note: used in pointer arithmetic here case 2: *_p++ = _val; SDL_FALLTHROUGH; ^~ /usr/local/include/SDL2/SDL_stdinc.h:550:26: note: used in pointer arithmetic here case 0: do { *_p++ = _val; SDL_FALLTHROUGH; ^~ In file included from src/debugger/gui/DelayQueueWidget.cxx:20: In file included from src/emucore/OSystem.hxx:55: src/emucore/FSNode.hxx:513:31: warning: unsafe pointer arithmetic [-Wunsafe-buffer-usage] const char* cur = start + str.size() - 2; ~~~~~~^~~~~~~~~~~~ src/emucore/FSNode.hxx:512:19: warning: 'start' is an unsafe pointer used for buffer access [-Wunsafe-buffer-usage] const char* start = str.c_str(); ~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~ src/emucore/FSNode.hxx:513:25: note: used in pointer arithmetic here const char* cur = start + str.size() - 2; ^~~~~ src/emucore/FSNode.hxx:513:19: warning: 'cur' is an unsafe pointer used for buffer access [-Wunsafe-buffer-usage] const char* cur = start + str.size() - 2; ~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~ src/emucore/FSNode.hxx:516:11: note: used in pointer arithmetic here --cur; ^~~ src/emucore/FSNode.hxx:518:14: note: used in pointer arithmetic here return cur + 1; ^~~ In file included from src/debugger/gui/DelayQueueWidget.cxx:28: In file included from src/emucore/tia/TIA.hxx:37: src/emucore/tia/Missile.hxx:170:7: warning: unsafe buffer access [-Wunsafe-buffer-usage] if (myDecodes[myCounter] && !myResmp) { ^~~~~~~~~ src/emucore/tia/Missile.hxx:173:14: warning: unsafe buffer access [-Wunsafe-buffer-usage] myCopy = myDecodes[myCounter]; ^~~~~~~~~ In file included from src/debugger/gui/DelayQueueWidget.cxx:28: In file included from src/emucore/tia/TIA.hxx:38: src/emucore/tia/Player.hxx:186:7: warning: unsafe buffer access [-Wunsafe-buffer-usage] if (myDecodes[myCounter]) { ^~~~~~~~~ src/emucore/tia/Player.hxx:190:14: warning: unsafe buffer access [-Wunsafe-buffer-usage] myCopy = myDecodes[myCounter]; ^~~~~~~~~ 10 warnings generated. mkdir -p -p src/debugger/gui/.deps mkdir -p -p out/src/debugger/gui c++ -MMD -MF "src/debugger/gui/.deps/DrivingWidget.d" -MQ "out/src/debugger/gui/DrivingWidget.o" -MP -O2 -pipe -I/usr/X11R6/include -I/usr/local/include -x c++ -Wall -Wextra -Wno-unused-parameter -Wno-multichar -Wunused -Woverloaded-virtual -Wnon-virtual-dtor -std=c++17 -Weverything -Wno-c++98-compat-pedantic -Wno-unknown-warning-option -Wno-switch-enum -Wno-conversion -Wno-covered-switch-default -Wno-inconsistent-missing-destructor-override -Wno-float-equal -Wno-exit-time-destructors -Wno-global-constructors -Wno-weak-vtables -Wno-four-char-constants -Wno-padded -Wno-reserved-identifier -Wno-duplicate-enum -fomit-frame-pointer -DSDL_SUPPORT -D_GLIBCXX_USE_CXX11_ABI=1 -DUNIX -DBSPF_UNIX -DGUI_SUPPORT -DWINDOWED_SUPPORT -DSOUND_SUPPORT -DDEBUGGER_SUPPORT -DJOYSTICK_SUPPORT -DCHEATCODE_SUPPORT -DHTTP_LIB_SUPPORT -DPNG_SUPPORT -DZIP_SUPPORT -Isrc/emucore -Isrc/common -Isrc/common/tv_filters -Isrc/emucore/tia -Isrc/emucore/tia/frame-manager -Isrc/json -Isrc/common/repository/sqlite -I/usr/local/include -I/usr/local/include/SDL2 -I/usr/X11R6/include -D_REENTRANT -I/usr/X11R6/include -Isrc/unix -Isrc/gui -Isrc/debugger -Isrc/debugger/gui -Isrc/yacc -Isrc/cheat -Isrc/httplib -c src/debugger/gui/DrivingWidget.cxx -o out/src/debugger/gui/DrivingWidget.o In file included from src/debugger/gui/DrivingWidget.cxx:18: In file included from src/debugger/gui/DataGridWidget.hxx:25: In file included from src/gui/Widget.hxx:28: src/common/bspf.hxx:245:37: warning: unsafe pointer arithmetic [-Wunsafe-buffer-usage] const auto pos = std::search(s1.cbegin()+startpos, s1.cend(), ~~~^~~~~~~~ src/common/bspf.hxx:249:56: warning: unsafe pointer arithmetic [-Wunsafe-buffer-usage] return pos == s1.cend() ? string::npos : pos - (s1.cbegin()+startpos); ~~~^~~~~~~~ In file included from src/debugger/gui/DrivingWidget.cxx:18: In file included from src/debugger/gui/DataGridWidget.hxx:25: In file included from src/gui/Widget.hxx:33: In file included from src/common/StellaKeys.hxx:22: In file included from src/common/SDL_lib.hxx:34: In file included from /usr/local/include/SDL2/SDL.h:32: In file included from /usr/local/include/SDL2/SDL_main.h:25: /usr/local/include/SDL2/SDL_stdinc.h:544:13: warning: '_p' is an unsafe pointer used for buffer access [-Wunsafe-buffer-usage] Uint32 *_p = SDL_static_cast(Uint32 *, dst); ~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /usr/local/include/SDL2/SDL_stdinc.h:550:26: note: used in pointer arithmetic here case 0: do { *_p++ = _val; SDL_FALLTHROUGH; ^~ /usr/local/include/SDL2/SDL_stdinc.h:553:26: note: used in pointer arithmetic here case 1: *_p++ = _val; ^~ /usr/local/include/SDL2/SDL_stdinc.h:551:26: note: used in pointer arithmetic here case 3: *_p++ = _val; SDL_FALLTHROUGH; ^~ /usr/local/include/SDL2/SDL_stdinc.h:552:26: note: used in pointer arithmetic here case 2: *_p++ = _val; SDL_FALLTHROUGH; ^~ In file included from src/debugger/gui/DrivingWidget.cxx:19: In file included from src/debugger/gui/DrivingWidget.hxx:26: In file included from src/debugger/gui/ControllerWidget.hxx:26: In file included from src/emucore/OSystem.hxx:55: src/emucore/FSNode.hxx:513:31: warning: unsafe pointer arithmetic [-Wunsafe-buffer-usage] const char* cur = start + str.size() - 2; ~~~~~~^~~~~~~~~~~~ src/emucore/FSNode.hxx:512:19: warning: 'start' is an unsafe pointer used for buffer access [-Wunsafe-buffer-usage] const char* start = str.c_str(); ~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~ src/emucore/FSNode.hxx:513:25: note: used in pointer arithmetic here const char* cur = start + str.size() - 2; ^~~~~ src/emucore/FSNode.hxx:513:19: warning: 'cur' is an unsafe pointer used for buffer access [-Wunsafe-buffer-usage] const char* cur = start + str.size() - 2; ~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~ src/emucore/FSNode.hxx:518:14: note: used in pointer arithmetic here return cur + 1; ^~~ src/emucore/FSNode.hxx:516:11: note: used in pointer arithmetic here --cur; ^~~ 6 warnings generated. mkdir -p -p src/debugger/gui/.deps mkdir -p -p out/src/debugger/gui c++ -MMD -MF "src/debugger/gui/.deps/FlashWidget.d" -MQ "out/src/debugger/gui/FlashWidget.o" -MP -O2 -pipe -I/usr/X11R6/include -I/usr/local/include -x c++ -Wall -Wextra -Wno-unused-parameter -Wno-multichar -Wunused -Woverloaded-virtual -Wnon-virtual-dtor -std=c++17 -Weverything -Wno-c++98-compat-pedantic -Wno-unknown-warning-option -Wno-switch-enum -Wno-conversion -Wno-covered-switch-default -Wno-inconsistent-missing-destructor-override -Wno-float-equal -Wno-exit-time-destructors -Wno-global-constructors -Wno-weak-vtables -Wno-four-char-constants -Wno-padded -Wno-reserved-identifier -Wno-duplicate-enum -fomit-frame-pointer -DSDL_SUPPORT -D_GLIBCXX_USE_CXX11_ABI=1 -DUNIX -DBSPF_UNIX -DGUI_SUPPORT -DWINDOWED_SUPPORT -DSOUND_SUPPORT -DDEBUGGER_SUPPORT -DJOYSTICK_SUPPORT -DCHEATCODE_SUPPORT -DHTTP_LIB_SUPPORT -DPNG_SUPPORT -DZIP_SUPPORT -Isrc/emucore -Isrc/common -Isrc/common/tv_filters -Isrc/emucore/tia -Isrc/emucore/tia/frame-manager -Isrc/json -Isrc/common/repository/sqlite -I/usr/local/include -I/usr/local/include/SDL2 -I/usr/X11R6/include -D_REENTRANT -I/usr/X11R6/include -Isrc/unix -Isrc/gui -Isrc/debugger -Isrc/debugger/gui -Isrc/yacc -Isrc/cheat -Isrc/httplib -c src/debugger/gui/FlashWidget.cxx -o out/src/debugger/gui/FlashWidget.o In file included from src/debugger/gui/FlashWidget.cxx:18: In file included from src/common/Base.hxx:24: src/common/bspf.hxx:245:37: warning: unsafe pointer arithmetic [-Wunsafe-buffer-usage] const auto pos = std::search(s1.cbegin()+startpos, s1.cend(), ~~~^~~~~~~~ src/common/bspf.hxx:249:56: warning: unsafe pointer arithmetic [-Wunsafe-buffer-usage] return pos == s1.cend() ? string::npos : pos - (s1.cbegin()+startpos); ~~~^~~~~~~~ In file included from src/debugger/gui/FlashWidget.cxx:19: In file included from src/emucore/MT24LC256.hxx:24: src/emucore/FSNode.hxx:513:31: warning: unsafe pointer arithmetic [-Wunsafe-buffer-usage] const char* cur = start + str.size() - 2; ~~~~~~^~~~~~~~~~~~ src/emucore/FSNode.hxx:512:19: warning: 'start' is an unsafe pointer used for buffer access [-Wunsafe-buffer-usage] const char* start = str.c_str(); ~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~ src/emucore/FSNode.hxx:513:25: note: used in pointer arithmetic here const char* cur = start + str.size() - 2; ^~~~~ src/emucore/FSNode.hxx:513:19: warning: 'cur' is an unsafe pointer used for buffer access [-Wunsafe-buffer-usage] const char* cur = start + str.size() - 2; ~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~ src/emucore/FSNode.hxx:518:14: note: used in pointer arithmetic here return cur + 1; ^~~ src/emucore/FSNode.hxx:516:11: note: used in pointer arithmetic here --cur; ^~~ In file included from src/debugger/gui/FlashWidget.cxx:20: In file included from src/debugger/gui/FlashWidget.hxx:24: In file included from src/debugger/gui/ControllerWidget.hxx:25: In file included from src/gui/Widget.hxx:33: In file included from src/common/StellaKeys.hxx:22: In file included from src/common/SDL_lib.hxx:34: In file included from /usr/local/include/SDL2/SDL.h:32: In file included from /usr/local/include/SDL2/SDL_main.h:25: /usr/local/include/SDL2/SDL_stdinc.h:544:13: warning: '_p' is an unsafe pointer used for buffer access [-Wunsafe-buffer-usage] Uint32 *_p = SDL_static_cast(Uint32 *, dst); ~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /usr/local/include/SDL2/SDL_stdinc.h:553:26: note: used in pointer arithmetic here case 1: *_p++ = _val; ^~ /usr/local/include/SDL2/SDL_stdinc.h:550:26: note: used in pointer arithmetic here case 0: do { *_p++ = _val; SDL_FALLTHROUGH; ^~ /usr/local/include/SDL2/SDL_stdinc.h:551:26: note: used in pointer arithmetic here case 3: *_p++ = _val; SDL_FALLTHROUGH; ^~ /usr/local/include/SDL2/SDL_stdinc.h:552:26: note: used in pointer arithmetic here case 2: *_p++ = _val; SDL_FALLTHROUGH; ^~ 6 warnings generated. mkdir -p -p src/debugger/gui/.deps mkdir -p -p out/src/debugger/gui c++ -MMD -MF "src/debugger/gui/.deps/GenesisWidget.d" -MQ "out/src/debugger/gui/GenesisWidget.o" -MP -O2 -pipe -I/usr/X11R6/include -I/usr/local/include -x c++ -Wall -Wextra -Wno-unused-parameter -Wno-multichar -Wunused -Woverloaded-virtual -Wnon-virtual-dtor -std=c++17 -Weverything -Wno-c++98-compat-pedantic -Wno-unknown-warning-option -Wno-switch-enum -Wno-conversion -Wno-covered-switch-default -Wno-inconsistent-missing-destructor-override -Wno-float-equal -Wno-exit-time-destructors -Wno-global-constructors -Wno-weak-vtables -Wno-four-char-constants -Wno-padded -Wno-reserved-identifier -Wno-duplicate-enum -fomit-frame-pointer -DSDL_SUPPORT -D_GLIBCXX_USE_CXX11_ABI=1 -DUNIX -DBSPF_UNIX -DGUI_SUPPORT -DWINDOWED_SUPPORT -DSOUND_SUPPORT -DDEBUGGER_SUPPORT -DJOYSTICK_SUPPORT -DCHEATCODE_SUPPORT -DHTTP_LIB_SUPPORT -DPNG_SUPPORT -DZIP_SUPPORT -Isrc/emucore -Isrc/common -Isrc/common/tv_filters -Isrc/emucore/tia -Isrc/emucore/tia/frame-manager -Isrc/json -Isrc/common/repository/sqlite -I/usr/local/include -I/usr/local/include/SDL2 -I/usr/X11R6/include -D_REENTRANT -I/usr/X11R6/include -Isrc/unix -Isrc/gui -Isrc/debugger -Isrc/debugger/gui -Isrc/yacc -Isrc/cheat -Isrc/httplib -c src/debugger/gui/GenesisWidget.cxx -o out/src/debugger/gui/GenesisWidget.o In file included from src/debugger/gui/GenesisWidget.cxx:18: In file included from src/debugger/gui/GenesisWidget.hxx:21: In file included from src/emucore/Control.hxx:28: src/common/bspf.hxx:245:37: warning: unsafe pointer arithmetic [-Wunsafe-buffer-usage] const auto pos = std::search(s1.cbegin()+startpos, s1.cend(), ~~~^~~~~~~~ src/common/bspf.hxx:249:56: warning: unsafe pointer arithmetic [-Wunsafe-buffer-usage] return pos == s1.cend() ? string::npos : pos - (s1.cbegin()+startpos); ~~~^~~~~~~~ In file included from src/debugger/gui/GenesisWidget.cxx:18: In file included from src/debugger/gui/GenesisWidget.hxx:22: In file included from src/debugger/gui/ControllerWidget.hxx:25: In file included from src/gui/Widget.hxx:33: In file included from src/common/StellaKeys.hxx:22: In file included from src/common/SDL_lib.hxx:34: In file included from /usr/local/include/SDL2/SDL.h:32: In file included from /usr/local/include/SDL2/SDL_main.h:25: /usr/local/include/SDL2/SDL_stdinc.h:544:13: warning: '_p' is an unsafe pointer used for buffer access [-Wunsafe-buffer-usage] Uint32 *_p = SDL_static_cast(Uint32 *, dst); ~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /usr/local/include/SDL2/SDL_stdinc.h:550:26: note: used in pointer arithmetic here case 0: do { *_p++ = _val; SDL_FALLTHROUGH; ^~ /usr/local/include/SDL2/SDL_stdinc.h:552:26: note: used in pointer arithmetic here case 2: *_p++ = _val; SDL_FALLTHROUGH; ^~ /usr/local/include/SDL2/SDL_stdinc.h:551:26: note: used in pointer arithmetic here case 3: *_p++ = _val; SDL_FALLTHROUGH; ^~ /usr/local/include/SDL2/SDL_stdinc.h:553:26: note: used in pointer arithmetic here case 1: *_p++ = _val; ^~ In file included from src/debugger/gui/GenesisWidget.cxx:18: In file included from src/debugger/gui/GenesisWidget.hxx:22: In file included from src/debugger/gui/ControllerWidget.hxx:26: In file included from src/emucore/OSystem.hxx:55: src/emucore/FSNode.hxx:513:31: warning: unsafe pointer arithmetic [-Wunsafe-buffer-usage] const char* cur = start + str.size() - 2; ~~~~~~^~~~~~~~~~~~ src/emucore/FSNode.hxx:512:19: warning: 'start' is an unsafe pointer used for buffer access [-Wunsafe-buffer-usage] const char* start = str.c_str(); ~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~ src/emucore/FSNode.hxx:513:25: note: used in pointer arithmetic here const char* cur = start + str.size() - 2; ^~~~~ src/emucore/FSNode.hxx:513:19: warning: 'cur' is an unsafe pointer used for buffer access [-Wunsafe-buffer-usage] const char* cur = start + str.size() - 2; ~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~ src/emucore/FSNode.hxx:518:14: note: used in pointer arithmetic here return cur + 1; ^~~ src/emucore/FSNode.hxx:516:11: note: used in pointer arithmetic here --cur; ^~~ 6 warnings generated. mkdir -p -p src/debugger/gui/.deps mkdir -p -p out/src/debugger/gui c++ -MMD -MF "src/debugger/gui/.deps/JoystickWidget.d" -MQ "out/src/debugger/gui/JoystickWidget.o" -MP -O2 -pipe -I/usr/X11R6/include -I/usr/local/include -x c++ -Wall -Wextra -Wno-unused-parameter -Wno-multichar -Wunused -Woverloaded-virtual -Wnon-virtual-dtor -std=c++17 -Weverything -Wno-c++98-compat-pedantic -Wno-unknown-warning-option -Wno-switch-enum -Wno-conversion -Wno-covered-switch-default -Wno-inconsistent-missing-destructor-override -Wno-float-equal -Wno-exit-time-destructors -Wno-global-constructors -Wno-weak-vtables -Wno-four-char-constants -Wno-padded -Wno-reserved-identifier -Wno-duplicate-enum -fomit-frame-pointer -DSDL_SUPPORT -D_GLIBCXX_USE_CXX11_ABI=1 -DUNIX -DBSPF_UNIX -DGUI_SUPPORT -DWINDOWED_SUPPORT -DSOUND_SUPPORT -DDEBUGGER_SUPPORT -DJOYSTICK_SUPPORT -DCHEATCODE_SUPPORT -DHTTP_LIB_SUPPORT -DPNG_SUPPORT -DZIP_SUPPORT -Isrc/emucore -Isrc/common -Isrc/common/tv_filters -Isrc/emucore/tia -Isrc/emucore/tia/frame-manager -Isrc/json -Isrc/common/repository/sqlite -I/usr/local/include -I/usr/local/include/SDL2 -I/usr/X11R6/include -D_REENTRANT -I/usr/X11R6/include -Isrc/unix -Isrc/gui -Isrc/debugger -Isrc/debugger/gui -Isrc/yacc -Isrc/cheat -Isrc/httplib -c src/debugger/gui/JoystickWidget.cxx -o out/src/debugger/gui/JoystickWidget.o In file included from src/debugger/gui/JoystickWidget.cxx:18: In file included from src/debugger/gui/JoystickWidget.hxx:21: In file included from src/emucore/Control.hxx:28: src/common/bspf.hxx:245:37: warning: unsafe pointer arithmetic [-Wunsafe-buffer-usage] const auto pos = std::search(s1.cbegin()+startpos, s1.cend(), ~~~^~~~~~~~ src/common/bspf.hxx:249:56: warning: unsafe pointer arithmetic [-Wunsafe-buffer-usage] return pos == s1.cend() ? string::npos : pos - (s1.cbegin()+startpos); ~~~^~~~~~~~ In file included from src/debugger/gui/JoystickWidget.cxx:18: In file included from src/debugger/gui/JoystickWidget.hxx:22: In file included from src/debugger/gui/ControllerWidget.hxx:25: In file included from src/gui/Widget.hxx:33: In file included from src/common/StellaKeys.hxx:22: In file included from src/common/SDL_lib.hxx:34: In file included from /usr/local/include/SDL2/SDL.h:32: In file included from /usr/local/include/SDL2/SDL_main.h:25: /usr/local/include/SDL2/SDL_stdinc.h:544:13: warning: '_p' is an unsafe pointer used for buffer access [-Wunsafe-buffer-usage] Uint32 *_p = SDL_static_cast(Uint32 *, dst); ~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /usr/local/include/SDL2/SDL_stdinc.h:550:26: note: used in pointer arithmetic here case 0: do { *_p++ = _val; SDL_FALLTHROUGH; ^~ /usr/local/include/SDL2/SDL_stdinc.h:552:26: note: used in pointer arithmetic here case 2: *_p++ = _val; SDL_FALLTHROUGH; ^~ /usr/local/include/SDL2/SDL_stdinc.h:551:26: note: used in pointer arithmetic here case 3: *_p++ = _val; SDL_FALLTHROUGH; ^~ /usr/local/include/SDL2/SDL_stdinc.h:553:26: note: used in pointer arithmetic here case 1: *_p++ = _val; ^~ In file included from src/debugger/gui/JoystickWidget.cxx:18: In file included from src/debugger/gui/JoystickWidget.hxx:22: In file included from src/debugger/gui/ControllerWidget.hxx:26: In file included from src/emucore/OSystem.hxx:55: src/emucore/FSNode.hxx:513:31: warning: unsafe pointer arithmetic [-Wunsafe-buffer-usage] const char* cur = start + str.size() - 2; ~~~~~~^~~~~~~~~~~~ src/emucore/FSNode.hxx:512:19: warning: 'start' is an unsafe pointer used for buffer access [-Wunsafe-buffer-usage] const char* start = str.c_str(); ~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~ src/emucore/FSNode.hxx:513:25: note: used in pointer arithmetic here const char* cur = start + str.size() - 2; ^~~~~ src/emucore/FSNode.hxx:513:19: warning: 'cur' is an unsafe pointer used for buffer access [-Wunsafe-buffer-usage] const char* cur = start + str.size() - 2; ~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~ src/emucore/FSNode.hxx:516:11: note: used in pointer arithmetic here --cur; ^~~ src/emucore/FSNode.hxx:518:14: note: used in pointer arithmetic here return cur + 1; ^~~ 6 warnings generated. mkdir -p -p src/debugger/gui/.deps mkdir -p -p out/src/debugger/gui c++ -MMD -MF "src/debugger/gui/.deps/KeyboardWidget.d" -MQ "out/src/debugger/gui/KeyboardWidget.o" -MP -O2 -pipe -I/usr/X11R6/include -I/usr/local/include -x c++ -Wall -Wextra -Wno-unused-parameter -Wno-multichar -Wunused -Woverloaded-virtual -Wnon-virtual-dtor -std=c++17 -Weverything -Wno-c++98-compat-pedantic -Wno-unknown-warning-option -Wno-switch-enum -Wno-conversion -Wno-covered-switch-default -Wno-inconsistent-missing-destructor-override -Wno-float-equal -Wno-exit-time-destructors -Wno-global-constructors -Wno-weak-vtables -Wno-four-char-constants -Wno-padded -Wno-reserved-identifier -Wno-duplicate-enum -fomit-frame-pointer -DSDL_SUPPORT -D_GLIBCXX_USE_CXX11_ABI=1 -DUNIX -DBSPF_UNIX -DGUI_SUPPORT -DWINDOWED_SUPPORT -DSOUND_SUPPORT -DDEBUGGER_SUPPORT -DJOYSTICK_SUPPORT -DCHEATCODE_SUPPORT -DHTTP_LIB_SUPPORT -DPNG_SUPPORT -DZIP_SUPPORT -Isrc/emucore -Isrc/common -Isrc/common/tv_filters -Isrc/emucore/tia -Isrc/emucore/tia/frame-manager -Isrc/json -Isrc/common/repository/sqlite -I/usr/local/include -I/usr/local/include/SDL2 -I/usr/X11R6/include -D_REENTRANT -I/usr/X11R6/include -Isrc/unix -Isrc/gui -Isrc/debugger -Isrc/debugger/gui -Isrc/yacc -Isrc/cheat -Isrc/httplib -c src/debugger/gui/KeyboardWidget.cxx -o out/src/debugger/gui/KeyboardWidget.o In file included from src/debugger/gui/KeyboardWidget.cxx:18: In file included from src/emucore/EventHandler.hxx:35: In file included from src/emucore/Event.hxx:24: src/common/bspf.hxx:245:37: warning: unsafe pointer arithmetic [-Wunsafe-buffer-usage] const auto pos = std::search(s1.cbegin()+startpos, s1.cend(), ~~~^~~~~~~~ src/common/bspf.hxx:249:56: warning: unsafe pointer arithmetic [-Wunsafe-buffer-usage] return pos == s1.cend() ? string::npos : pos - (s1.cbegin()+startpos); ~~~^~~~~~~~ In file included from src/debugger/gui/KeyboardWidget.cxx:18: In file included from src/emucore/EventHandler.hxx:38: In file included from src/common/PKeyboardHandler.hxx:30: In file included from src/common/KeyMap.hxx:24: In file included from src/common/StellaKeys.hxx:22: In file included from src/common/SDL_lib.hxx:34: In file included from /usr/local/include/SDL2/SDL.h:32: In file included from /usr/local/include/SDL2/SDL_main.h:25: /usr/local/include/SDL2/SDL_stdinc.h:544:13: warning: '_p' is an unsafe pointer used for buffer access [-Wunsafe-buffer-usage] Uint32 *_p = SDL_static_cast(Uint32 *, dst); ~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /usr/local/include/SDL2/SDL_stdinc.h:553:26: note: used in pointer arithmetic here case 1: *_p++ = _val; ^~ /usr/local/include/SDL2/SDL_stdinc.h:551:26: note: used in pointer arithmetic here case 3: *_p++ = _val; SDL_FALLTHROUGH; ^~ /usr/local/include/SDL2/SDL_stdinc.h:550:26: note: used in pointer arithmetic here case 0: do { *_p++ = _val; SDL_FALLTHROUGH; ^~ /usr/local/include/SDL2/SDL_stdinc.h:552:26: note: used in pointer arithmetic here case 2: *_p++ = _val; SDL_FALLTHROUGH; ^~ In file included from src/debugger/gui/KeyboardWidget.cxx:19: In file included from src/debugger/gui/KeyboardWidget.hxx:22: In file included from src/debugger/gui/ControllerWidget.hxx:26: In file included from src/emucore/OSystem.hxx:55: src/emucore/FSNode.hxx:513:31: warning: unsafe pointer arithmetic [-Wunsafe-buffer-usage] const char* cur = start + str.size() - 2; ~~~~~~^~~~~~~~~~~~ src/emucore/FSNode.hxx:512:19: warning: 'start' is an unsafe pointer used for buffer access [-Wunsafe-buffer-usage] const char* start = str.c_str(); ~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~ src/emucore/FSNode.hxx:513:25: note: used in pointer arithmetic here const char* cur = start + str.size() - 2; ^~~~~ src/emucore/FSNode.hxx:513:19: warning: 'cur' is an unsafe pointer used for buffer access [-Wunsafe-buffer-usage] const char* cur = start + str.size() - 2; ~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~ src/emucore/FSNode.hxx:516:11: note: used in pointer arithmetic here --cur; ^~~ src/emucore/FSNode.hxx:518:14: note: used in pointer arithmetic here return cur + 1; ^~~ src/debugger/gui/KeyboardWidget.cxx:58:34: warning: unsafe buffer access [-Wunsafe-buffer-usage] myBox[i]->setState(event.get(myEvent[i])); ^~~~~~~ src/debugger/gui/KeyboardWidget.cxx:66:43: warning: unsafe buffer access [-Wunsafe-buffer-usage] instance().eventHandler().handleEvent(myEvent[id], myBox[id]->getState()); ^~~~~~~ 8 warnings generated. mkdir -p -p src/debugger/gui/.deps mkdir -p -p out/src/debugger/gui c++ -MMD -MF "src/debugger/gui/.deps/PaddleWidget.d" -MQ "out/src/debugger/gui/PaddleWidget.o" -MP -O2 -pipe -I/usr/X11R6/include -I/usr/local/include -x c++ -Wall -Wextra -Wno-unused-parameter -Wno-multichar -Wunused -Woverloaded-virtual -Wnon-virtual-dtor -std=c++17 -Weverything -Wno-c++98-compat-pedantic -Wno-unknown-warning-option -Wno-switch-enum -Wno-conversion -Wno-covered-switch-default -Wno-inconsistent-missing-destructor-override -Wno-float-equal -Wno-exit-time-destructors -Wno-global-constructors -Wno-weak-vtables -Wno-four-char-constants -Wno-padded -Wno-reserved-identifier -Wno-duplicate-enum -fomit-frame-pointer -DSDL_SUPPORT -D_GLIBCXX_USE_CXX11_ABI=1 -DUNIX -DBSPF_UNIX -DGUI_SUPPORT -DWINDOWED_SUPPORT -DSOUND_SUPPORT -DDEBUGGER_SUPPORT -DJOYSTICK_SUPPORT -DCHEATCODE_SUPPORT -DHTTP_LIB_SUPPORT -DPNG_SUPPORT -DZIP_SUPPORT -Isrc/emucore -Isrc/common -Isrc/common/tv_filters -Isrc/emucore/tia -Isrc/emucore/tia/frame-manager -Isrc/json -Isrc/common/repository/sqlite -I/usr/local/include -I/usr/local/include/SDL2 -I/usr/X11R6/include -D_REENTRANT -I/usr/X11R6/include -Isrc/unix -Isrc/gui -Isrc/debugger -Isrc/debugger/gui -Isrc/yacc -Isrc/cheat -Isrc/httplib -c src/debugger/gui/PaddleWidget.cxx -o out/src/debugger/gui/PaddleWidget.o In file included from src/debugger/gui/PaddleWidget.cxx:18: In file included from src/emucore/Paddles.hxx:21: src/common/bspf.hxx:245:37: warning: unsafe pointer arithmetic [-Wunsafe-buffer-usage] const auto pos = std::search(s1.cbegin()+startpos, s1.cend(), ~~~^~~~~~~~ src/common/bspf.hxx:249:56: warning: unsafe pointer arithmetic [-Wunsafe-buffer-usage] return pos == s1.cend() ? string::npos : pos - (s1.cbegin()+startpos); ~~~^~~~~~~~ In file included from src/debugger/gui/PaddleWidget.cxx:19: In file included from src/debugger/gui/PaddleWidget.hxx:23: In file included from src/debugger/gui/ControllerWidget.hxx:25: In file included from src/gui/Widget.hxx:33: In file included from src/common/StellaKeys.hxx:22: In file included from src/common/SDL_lib.hxx:34: In file included from /usr/local/include/SDL2/SDL.h:32: In file included from /usr/local/include/SDL2/SDL_main.h:25: /usr/local/include/SDL2/SDL_stdinc.h:544:13: warning: '_p' is an unsafe pointer used for buffer access [-Wunsafe-buffer-usage] Uint32 *_p = SDL_static_cast(Uint32 *, dst); ~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /usr/local/include/SDL2/SDL_stdinc.h:551:26: note: used in pointer arithmetic here case 3: *_p++ = _val; SDL_FALLTHROUGH; ^~ /usr/local/include/SDL2/SDL_stdinc.h:550:26: note: used in pointer arithmetic here case 0: do { *_p++ = _val; SDL_FALLTHROUGH; ^~ /usr/local/include/SDL2/SDL_stdinc.h:552:26: note: used in pointer arithmetic here case 2: *_p++ = _val; SDL_FALLTHROUGH; ^~ /usr/local/include/SDL2/SDL_stdinc.h:553:26: note: used in pointer arithmetic here case 1: *_p++ = _val; ^~ In file included from src/debugger/gui/PaddleWidget.cxx:19: In file included from src/debugger/gui/PaddleWidget.hxx:23: In file included from src/debugger/gui/ControllerWidget.hxx:26: In file included from src/emucore/OSystem.hxx:55: src/emucore/FSNode.hxx:513:31: warning: unsafe pointer arithmetic [-Wunsafe-buffer-usage] const char* cur = start + str.size() - 2; ~~~~~~^~~~~~~~~~~~ src/emucore/FSNode.hxx:512:19: warning: 'start' is an unsafe pointer used for buffer access [-Wunsafe-buffer-usage] const char* start = str.c_str(); ~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~ src/emucore/FSNode.hxx:513:25: note: used in pointer arithmetic here const char* cur = start + str.size() - 2; ^~~~~ src/emucore/FSNode.hxx:513:19: warning: 'cur' is an unsafe pointer used for buffer access [-Wunsafe-buffer-usage] const char* cur = start + str.size() - 2; ~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~ src/emucore/FSNode.hxx:518:14: note: used in pointer arithmetic here return cur + 1; ^~~ src/emucore/FSNode.hxx:516:11: note: used in pointer arithmetic here --cur; ^~~ 6 warnings generated. mkdir -p -p src/debugger/gui/.deps mkdir -p -p out/src/debugger/gui c++ -MMD -MF "src/debugger/gui/.deps/PointingDeviceWidget.d" -MQ "out/src/debugger/gui/PointingDeviceWidget.o" -MP -O2 -pipe -I/usr/X11R6/include -I/usr/local/include -x c++ -Wall -Wextra -Wno-unused-parameter -Wno-multichar -Wunused -Woverloaded-virtual -Wnon-virtual-dtor -std=c++17 -Weverything -Wno-c++98-compat-pedantic -Wno-unknown-warning-option -Wno-switch-enum -Wno-conversion -Wno-covered-switch-default -Wno-inconsistent-missing-destructor-override -Wno-float-equal -Wno-exit-time-destructors -Wno-global-constructors -Wno-weak-vtables -Wno-four-char-constants -Wno-padded -Wno-reserved-identifier -Wno-duplicate-enum -fomit-frame-pointer -DSDL_SUPPORT -D_GLIBCXX_USE_CXX11_ABI=1 -DUNIX -DBSPF_UNIX -DGUI_SUPPORT -DWINDOWED_SUPPORT -DSOUND_SUPPORT -DDEBUGGER_SUPPORT -DJOYSTICK_SUPPORT -DCHEATCODE_SUPPORT -DHTTP_LIB_SUPPORT -DPNG_SUPPORT -DZIP_SUPPORT -Isrc/emucore -Isrc/common -Isrc/common/tv_filters -Isrc/emucore/tia -Isrc/emucore/tia/frame-manager -Isrc/json -Isrc/common/repository/sqlite -I/usr/local/include -I/usr/local/include/SDL2 -I/usr/X11R6/include -D_REENTRANT -I/usr/X11R6/include -Isrc/unix -Isrc/gui -Isrc/debugger -Isrc/debugger/gui -Isrc/yacc -Isrc/cheat -Isrc/httplib -c src/debugger/gui/PointingDeviceWidget.cxx -o out/src/debugger/gui/PointingDeviceWidget.o In file included from src/debugger/gui/PointingDeviceWidget.cxx:18: In file included from src/emucore/PointingDevice.hxx:23: In file included from src/emucore/Control.hxx:28: src/common/bspf.hxx:245:37: warning: unsafe pointer arithmetic [-Wunsafe-buffer-usage] const auto pos = std::search(s1.cbegin()+startpos, s1.cend(), ~~~^~~~~~~~ src/common/bspf.hxx:249:56: warning: unsafe pointer arithmetic [-Wunsafe-buffer-usage] return pos == s1.cend() ? string::npos : pos - (s1.cbegin()+startpos); ~~~^~~~~~~~ In file included from src/debugger/gui/PointingDeviceWidget.cxx:19: In file included from src/debugger/gui/DataGridWidget.hxx:25: In file included from src/gui/Widget.hxx:33: In file included from src/common/StellaKeys.hxx:22: In file included from src/common/SDL_lib.hxx:34: In file included from /usr/local/include/SDL2/SDL.h:32: In file included from /usr/local/include/SDL2/SDL_main.h:25: /usr/local/include/SDL2/SDL_stdinc.h:544:13: warning: '_p' is an unsafe pointer used for buffer access [-Wunsafe-buffer-usage] Uint32 *_p = SDL_static_cast(Uint32 *, dst); ~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /usr/local/include/SDL2/SDL_stdinc.h:550:26: note: used in pointer arithmetic here case 0: do { *_p++ = _val; SDL_FALLTHROUGH; ^~ /usr/local/include/SDL2/SDL_stdinc.h:551:26: note: used in pointer arithmetic here case 3: *_p++ = _val; SDL_FALLTHROUGH; ^~ /usr/local/include/SDL2/SDL_stdinc.h:552:26: note: used in pointer arithmetic here case 2: *_p++ = _val; SDL_FALLTHROUGH; ^~ /usr/local/include/SDL2/SDL_stdinc.h:553:26: note: used in pointer arithmetic here case 1: *_p++ = _val; ^~ In file included from src/debugger/gui/PointingDeviceWidget.cxx:20: In file included from src/debugger/gui/PointingDeviceWidget.hxx:24: In file included from src/debugger/gui/ControllerWidget.hxx:26: In file included from src/emucore/OSystem.hxx:55: src/emucore/FSNode.hxx:513:31: warning: unsafe pointer arithmetic [-Wunsafe-buffer-usage] const char* cur = start + str.size() - 2; ~~~~~~^~~~~~~~~~~~ src/emucore/FSNode.hxx:512:19: warning: 'start' is an unsafe pointer used for buffer access [-Wunsafe-buffer-usage] const char* start = str.c_str(); ~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~ src/emucore/FSNode.hxx:513:25: note: used in pointer arithmetic here const char* cur = start + str.size() - 2; ^~~~~ src/emucore/FSNode.hxx:513:19: warning: 'cur' is an unsafe pointer used for buffer access [-Wunsafe-buffer-usage] const char* cur = start + str.size() - 2; ~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~ src/emucore/FSNode.hxx:516:11: note: used in pointer arithmetic here --cur; ^~~ src/emucore/FSNode.hxx:518:14: note: used in pointer arithmetic here return cur + 1; ^~~ 6 warnings generated. mkdir -p -p src/debugger/gui/.deps mkdir -p -p out/src/debugger/gui c++ -MMD -MF "src/debugger/gui/.deps/PromptWidget.d" -MQ "out/src/debugger/gui/PromptWidget.o" -MP -O2 -pipe -I/usr/X11R6/include -I/usr/local/include -x c++ -Wall -Wextra -Wno-unused-parameter -Wno-multichar -Wunused -Woverloaded-virtual -Wnon-virtual-dtor -std=c++17 -Weverything -Wno-c++98-compat-pedantic -Wno-unknown-warning-option -Wno-switch-enum -Wno-conversion -Wno-covered-switch-default -Wno-inconsistent-missing-destructor-override -Wno-float-equal -Wno-exit-time-destructors -Wno-global-constructors -Wno-weak-vtables -Wno-four-char-constants -Wno-padded -Wno-reserved-identifier -Wno-duplicate-enum -fomit-frame-pointer -DSDL_SUPPORT -D_GLIBCXX_USE_CXX11_ABI=1 -DUNIX -DBSPF_UNIX -DGUI_SUPPORT -DWINDOWED_SUPPORT -DSOUND_SUPPORT -DDEBUGGER_SUPPORT -DJOYSTICK_SUPPORT -DCHEATCODE_SUPPORT -DHTTP_LIB_SUPPORT -DPNG_SUPPORT -DZIP_SUPPORT -Isrc/emucore -Isrc/common -Isrc/common/tv_filters -Isrc/emucore/tia -Isrc/emucore/tia/frame-manager -Isrc/json -Isrc/common/repository/sqlite -I/usr/local/include -I/usr/local/include/SDL2 -I/usr/X11R6/include -D_REENTRANT -I/usr/X11R6/include -Isrc/unix -Isrc/gui -Isrc/debugger -Isrc/debugger/gui -Isrc/yacc -Isrc/cheat -Isrc/httplib -c src/debugger/gui/PromptWidget.cxx -o out/src/debugger/gui/PromptWidget.o In file included from src/debugger/gui/PromptWidget.cxx:18: In file included from src/gui/ScrollBarWidget.hxx:23: In file included from src/gui/Widget.hxx:28: src/common/bspf.hxx:245:37: warning: unsafe pointer arithmetic [-Wunsafe-buffer-usage] const auto pos = std::search(s1.cbegin()+startpos, s1.cend(), ~~~^~~~~~~~ src/common/bspf.hxx:249:56: warning: unsafe pointer arithmetic [-Wunsafe-buffer-usage] return pos == s1.cend() ? string::npos : pos - (s1.cbegin()+startpos); ~~~^~~~~~~~ In file included from src/debugger/gui/PromptWidget.cxx:18: In file included from src/gui/ScrollBarWidget.hxx:23: In file included from src/gui/Widget.hxx:33: In file included from src/common/StellaKeys.hxx:22: In file included from src/common/SDL_lib.hxx:34: In file included from /usr/local/include/SDL2/SDL.h:32: In file included from /usr/local/include/SDL2/SDL_main.h:25: /usr/local/include/SDL2/SDL_stdinc.h:544:13: warning: '_p' is an unsafe pointer used for buffer access [-Wunsafe-buffer-usage] Uint32 *_p = SDL_static_cast(Uint32 *, dst); ~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /usr/local/include/SDL2/SDL_stdinc.h:551:26: note: used in pointer arithmetic here case 3: *_p++ = _val; SDL_FALLTHROUGH; ^~ /usr/local/include/SDL2/SDL_stdinc.h:550:26: note: used in pointer arithmetic here case 0: do { *_p++ = _val; SDL_FALLTHROUGH; ^~ /usr/local/include/SDL2/SDL_stdinc.h:553:26: note: used in pointer arithmetic here case 1: *_p++ = _val; ^~ /usr/local/include/SDL2/SDL_stdinc.h:552:26: note: used in pointer arithmetic here case 2: *_p++ = _val; SDL_FALLTHROUGH; ^~ In file included from src/debugger/gui/PromptWidget.cxx:23: In file included from src/emucore/OSystem.hxx:55: src/emucore/FSNode.hxx:513:31: warning: unsafe pointer arithmetic [-Wunsafe-buffer-usage] const char* cur = start + str.size() - 2; ~~~~~~^~~~~~~~~~~~ src/emucore/FSNode.hxx:512:19: warning: 'start' is an unsafe pointer used for buffer access [-Wunsafe-buffer-usage] const char* start = str.c_str(); ~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~ src/emucore/FSNode.hxx:513:25: note: used in pointer arithmetic here const char* cur = start + str.size() - 2; ^~~~~ src/emucore/FSNode.hxx:513:19: warning: 'cur' is an unsafe pointer used for buffer access [-Wunsafe-buffer-usage] const char* cur = start + str.size() - 2; ~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~ src/emucore/FSNode.hxx:516:11: note: used in pointer arithmetic here --cur; ^~~ src/emucore/FSNode.hxx:518:14: note: used in pointer arithmetic here return cur + 1; ^~~ In file included from src/debugger/gui/PromptWidget.cxx:29: src/debugger/gui/PromptWidget.hxx:61:35: warning: unsafe buffer access [-Wunsafe-buffer-usage] int& buffer(int idx) { return _buffer[idx % kBufferSize]; } ^~~~~~~ src/debugger/gui/PromptWidget.cxx:730:7: warning: unsafe buffer access [-Wunsafe-buffer-usage] _inputStr[i] = buffer(_promptStartPos + i) & 0x7f; ^~~~~~~~~ src/debugger/gui/PromptWidget.cxx:732:39: warning: unsafe buffer access [-Wunsafe-buffer-usage] if(strchr("{*@<> =[]()+-/&|!^~%", _inputStr[i])) ^~~~~~~~~ src/debugger/gui/PromptWidget.cxx:735:19: warning: unsafe buffer access [-Wunsafe-buffer-usage] delimiter = _inputStr[i]; ^~~~~~~~~ src/debugger/gui/PromptWidget.cxx:739:5: warning: unsafe buffer access [-Wunsafe-buffer-usage] _inputStr[len] = '\0'; ^~~~~~~~~ src/debugger/gui/PromptWidget.cxx:754:65: warning: unsafe pointer arithmetic [-Wunsafe-buffer-usage] instance().debugger().parser().getCompletions(_inputStr + lastDelimPos + 1, list); ~~~~~~~~~~^~~~~~~~~~~~~~ src/debugger/gui/PromptWidget.cxx:754:55: warning: unsafe pointer arithmetic [-Wunsafe-buffer-usage] instance().debugger().parser().getCompletions(_inputStr + lastDelimPos + 1, list); ^~~~~~~~~ src/debugger/gui/PromptWidget.cxx:760:50: warning: unsafe pointer arithmetic [-Wunsafe-buffer-usage] dbg.cartDebug().getCompletions(_inputStr + lastDelimPos + 1, list); ~~~~~~~~~~^~~~~~~~~~~~~~ src/debugger/gui/PromptWidget.cxx:760:40: warning: unsafe pointer arithmetic [-Wunsafe-buffer-usage] dbg.cartDebug().getCompletions(_inputStr + lastDelimPos + 1, list); ^~~~~~~~~ src/debugger/gui/PromptWidget.cxx:761:38: warning: unsafe pointer arithmetic [-Wunsafe-buffer-usage] dbg.getCompletions(_inputStr + lastDelimPos + 1, list); ~~~~~~~~~~^~~~~~~~~~~~~~ src/debugger/gui/PromptWidget.cxx:761:28: warning: unsafe pointer arithmetic [-Wunsafe-buffer-usage] dbg.getCompletions(_inputStr + lastDelimPos + 1, list); ^~~~~~~~~ src/debugger/gui/PromptWidget.cxx:784:19: warning: unsafe buffer access [-Wunsafe-buffer-usage] putcharIntern(_inputStr[i]); ^~~~~~~~~ src/debugger/gui/PromptWidget.cxx:939:29: warning: unsafe buffer access [-Wunsafe-buffer-usage] while(static_cast(_buffer[end] & 0xff) <= ' ' && end >= start) ^~~~~~~ src/debugger/gui/PromptWidget.cxx:945:32: warning: unsafe buffer access [-Wunsafe-buffer-usage] out << static_cast(_buffer[j] & 0xff); ^~~~~~~ 20 warnings generated. mkdir -p -p src/debugger/gui/.deps mkdir -p -p out/src/debugger/gui c++ -MMD -MF "src/debugger/gui/.deps/QuadTariWidget.d" -MQ "out/src/debugger/gui/QuadTariWidget.o" -MP -O2 -pipe -I/usr/X11R6/include -I/usr/local/include -x c++ -Wall -Wextra -Wno-unused-parameter -Wno-multichar -Wunused -Woverloaded-virtual -Wnon-virtual-dtor -std=c++17 -Weverything -Wno-c++98-compat-pedantic -Wno-unknown-warning-option -Wno-switch-enum -Wno-conversion -Wno-covered-switch-default -Wno-inconsistent-missing-destructor-override -Wno-float-equal -Wno-exit-time-destructors -Wno-global-constructors -Wno-weak-vtables -Wno-four-char-constants -Wno-padded -Wno-reserved-identifier -Wno-duplicate-enum -fomit-frame-pointer -DSDL_SUPPORT -D_GLIBCXX_USE_CXX11_ABI=1 -DUNIX -DBSPF_UNIX -DGUI_SUPPORT -DWINDOWED_SUPPORT -DSOUND_SUPPORT -DDEBUGGER_SUPPORT -DJOYSTICK_SUPPORT -DCHEATCODE_SUPPORT -DHTTP_LIB_SUPPORT -DPNG_SUPPORT -DZIP_SUPPORT -Isrc/emucore -Isrc/common -Isrc/common/tv_filters -Isrc/emucore/tia -Isrc/emucore/tia/frame-manager -Isrc/json -Isrc/common/repository/sqlite -I/usr/local/include -I/usr/local/include/SDL2 -I/usr/X11R6/include -D_REENTRANT -I/usr/X11R6/include -Isrc/unix -Isrc/gui -Isrc/debugger -Isrc/debugger/gui -Isrc/yacc -Isrc/cheat -Isrc/httplib -c src/debugger/gui/QuadTariWidget.cxx -o out/src/debugger/gui/QuadTariWidget.o In file included from src/debugger/gui/QuadTariWidget.cxx:18: In file included from src/emucore/OSystem.hxx:55: In file included from src/emucore/FSNode.hxx:23: src/common/bspf.hxx:245:37: warning: unsafe pointer arithmetic [-Wunsafe-buffer-usage] const auto pos = std::search(s1.cbegin()+startpos, s1.cend(), ~~~^~~~~~~~ src/common/bspf.hxx:249:56: warning: unsafe pointer arithmetic [-Wunsafe-buffer-usage] return pos == s1.cend() ? string::npos : pos - (s1.cbegin()+startpos); ~~~^~~~~~~~ In file included from src/debugger/gui/QuadTariWidget.cxx:18: In file included from src/emucore/OSystem.hxx:55: src/emucore/FSNode.hxx:513:31: warning: unsafe pointer arithmetic [-Wunsafe-buffer-usage] const char* cur = start + str.size() - 2; ~~~~~~^~~~~~~~~~~~ src/emucore/FSNode.hxx:512:19: warning: 'start' is an unsafe pointer used for buffer access [-Wunsafe-buffer-usage] const char* start = str.c_str(); ~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~ src/emucore/FSNode.hxx:513:25: note: used in pointer arithmetic here const char* cur = start + str.size() - 2; ^~~~~ src/emucore/FSNode.hxx:513:19: warning: 'cur' is an unsafe pointer used for buffer access [-Wunsafe-buffer-usage] const char* cur = start + str.size() - 2; ~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~ src/emucore/FSNode.hxx:516:11: note: used in pointer arithmetic here --cur; ^~~ src/emucore/FSNode.hxx:518:14: note: used in pointer arithmetic here return cur + 1; ^~~ In file included from src/debugger/gui/QuadTariWidget.cxx:20: In file included from src/emucore/tia/TIA.hxx:37: src/emucore/tia/Missile.hxx:170:7: warning: unsafe buffer access [-Wunsafe-buffer-usage] if (myDecodes[myCounter] && !myResmp) { ^~~~~~~~~ src/emucore/tia/Missile.hxx:173:14: warning: unsafe buffer access [-Wunsafe-buffer-usage] myCopy = myDecodes[myCounter]; ^~~~~~~~~ In file included from src/debugger/gui/QuadTariWidget.cxx:20: In file included from src/emucore/tia/TIA.hxx:38: src/emucore/tia/Player.hxx:186:7: warning: unsafe buffer access [-Wunsafe-buffer-usage] if (myDecodes[myCounter]) { ^~~~~~~~~ src/emucore/tia/Player.hxx:190:14: warning: unsafe buffer access [-Wunsafe-buffer-usage] myCopy = myDecodes[myCounter]; ^~~~~~~~~ In file included from src/debugger/gui/QuadTariWidget.cxx:22: In file included from src/debugger/gui/AtariVoxWidget.hxx:23: In file included from src/debugger/gui/FlashWidget.hxx:24: In file included from src/debugger/gui/ControllerWidget.hxx:25: In file included from src/gui/Widget.hxx:33: In file included from src/common/StellaKeys.hxx:22: In file included from src/common/SDL_lib.hxx:34: In file included from /usr/local/include/SDL2/SDL.h:32: In file included from /usr/local/include/SDL2/SDL_main.h:25: /usr/local/include/SDL2/SDL_stdinc.h:544:13: warning: '_p' is an unsafe pointer used for buffer access [-Wunsafe-buffer-usage] Uint32 *_p = SDL_static_cast(Uint32 *, dst); ~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /usr/local/include/SDL2/SDL_stdinc.h:553:26: note: used in pointer arithmetic here case 1: *_p++ = _val; ^~ /usr/local/include/SDL2/SDL_stdinc.h:550:26: note: used in pointer arithmetic here case 0: do { *_p++ = _val; SDL_FALLTHROUGH; ^~ /usr/local/include/SDL2/SDL_stdinc.h:551:26: note: used in pointer arithmetic here case 3: *_p++ = _val; SDL_FALLTHROUGH; ^~ /usr/local/include/SDL2/SDL_stdinc.h:552:26: note: used in pointer arithmetic here case 2: *_p++ = _val; SDL_FALLTHROUGH; ^~ 10 warnings generated. mkdir -p -p src/debugger/gui/.deps mkdir -p -p out/src/debugger/gui c++ -MMD -MF "src/debugger/gui/.deps/RamWidget.d" -MQ "out/src/debugger/gui/RamWidget.o" -MP -O2 -pipe -I/usr/X11R6/include -I/usr/local/include -x c++ -Wall -Wextra -Wno-unused-parameter -Wno-multichar -Wunused -Woverloaded-virtual -Wnon-virtual-dtor -std=c++17 -Weverything -Wno-c++98-compat-pedantic -Wno-unknown-warning-option -Wno-switch-enum -Wno-conversion -Wno-covered-switch-default -Wno-inconsistent-missing-destructor-override -Wno-float-equal -Wno-exit-time-destructors -Wno-global-constructors -Wno-weak-vtables -Wno-four-char-constants -Wno-padded -Wno-reserved-identifier -Wno-duplicate-enum -fomit-frame-pointer -DSDL_SUPPORT -D_GLIBCXX_USE_CXX11_ABI=1 -DUNIX -DBSPF_UNIX -DGUI_SUPPORT -DWINDOWED_SUPPORT -DSOUND_SUPPORT -DDEBUGGER_SUPPORT -DJOYSTICK_SUPPORT -DCHEATCODE_SUPPORT -DHTTP_LIB_SUPPORT -DPNG_SUPPORT -DZIP_SUPPORT -Isrc/emucore -Isrc/common -Isrc/common/tv_filters -Isrc/emucore/tia -Isrc/emucore/tia/frame-manager -Isrc/json -Isrc/common/repository/sqlite -I/usr/local/include -I/usr/local/include/SDL2 -I/usr/X11R6/include -D_REENTRANT -I/usr/X11R6/include -Isrc/unix -Isrc/gui -Isrc/debugger -Isrc/debugger/gui -Isrc/yacc -Isrc/cheat -Isrc/httplib -c src/debugger/gui/RamWidget.cxx -o out/src/debugger/gui/RamWidget.o In file included from src/debugger/gui/RamWidget.cxx:18: In file included from src/debugger/gui/DataGridRamWidget.hxx:23: In file included from src/debugger/gui/DataGridWidget.hxx:25: In file included from src/gui/Widget.hxx:28: src/common/bspf.hxx:245:37: warning: unsafe pointer arithmetic [-Wunsafe-buffer-usage] const auto pos = std::search(s1.cbegin()+startpos, s1.cend(), ~~~^~~~~~~~ src/common/bspf.hxx:249:56: warning: unsafe pointer arithmetic [-Wunsafe-buffer-usage] return pos == s1.cend() ? string::npos : pos - (s1.cbegin()+startpos); ~~~^~~~~~~~ In file included from src/debugger/gui/RamWidget.cxx:18: In file included from src/debugger/gui/DataGridRamWidget.hxx:23: In file included from src/debugger/gui/DataGridWidget.hxx:25: In file included from src/gui/Widget.hxx:33: In file included from src/common/StellaKeys.hxx:22: In file included from src/common/SDL_lib.hxx:34: In file included from /usr/local/include/SDL2/SDL.h:32: In file included from /usr/local/include/SDL2/SDL_main.h:25: /usr/local/include/SDL2/SDL_stdinc.h:544:13: warning: '_p' is an unsafe pointer used for buffer access [-Wunsafe-buffer-usage] Uint32 *_p = SDL_static_cast(Uint32 *, dst); ~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /usr/local/include/SDL2/SDL_stdinc.h:552:26: note: used in pointer arithmetic here case 2: *_p++ = _val; SDL_FALLTHROUGH; ^~ /usr/local/include/SDL2/SDL_stdinc.h:551:26: note: used in pointer arithmetic here case 3: *_p++ = _val; SDL_FALLTHROUGH; ^~ /usr/local/include/SDL2/SDL_stdinc.h:553:26: note: used in pointer arithmetic here case 1: *_p++ = _val; ^~ /usr/local/include/SDL2/SDL_stdinc.h:550:26: note: used in pointer arithmetic here case 0: do { *_p++ = _val; SDL_FALLTHROUGH; ^~ In file included from src/debugger/gui/RamWidget.cxx:22: In file included from src/emucore/OSystem.hxx:55: src/emucore/FSNode.hxx:513:31: warning: unsafe pointer arithmetic [-Wunsafe-buffer-usage] const char* cur = start + str.size() - 2; ~~~~~~^~~~~~~~~~~~ src/emucore/FSNode.hxx:512:19: warning: 'start' is an unsafe pointer used for buffer access [-Wunsafe-buffer-usage] const char* start = str.c_str(); ~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~ src/emucore/FSNode.hxx:513:25: note: used in pointer arithmetic here const char* cur = start + str.size() - 2; ^~~~~ src/emucore/FSNode.hxx:513:19: warning: 'cur' is an unsafe pointer used for buffer access [-Wunsafe-buffer-usage] const char* cur = start + str.size() - 2; ~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~ src/emucore/FSNode.hxx:518:14: note: used in pointer arithmetic here return cur + 1; ^~~ src/emucore/FSNode.hxx:516:11: note: used in pointer arithmetic here --cur; ^~~ 6 warnings generated. mkdir -p -p src/debugger/gui/.deps mkdir -p -p out/src/debugger/gui c++ -MMD -MF "src/debugger/gui/.deps/RiotRamWidget.d" -MQ "out/src/debugger/gui/RiotRamWidget.o" -MP -O2 -pipe -I/usr/X11R6/include -I/usr/local/include -x c++ -Wall -Wextra -Wno-unused-parameter -Wno-multichar -Wunused -Woverloaded-virtual -Wnon-virtual-dtor -std=c++17 -Weverything -Wno-c++98-compat-pedantic -Wno-unknown-warning-option -Wno-switch-enum -Wno-conversion -Wno-covered-switch-default -Wno-inconsistent-missing-destructor-override -Wno-float-equal -Wno-exit-time-destructors -Wno-global-constructors -Wno-weak-vtables -Wno-four-char-constants -Wno-padded -Wno-reserved-identifier -Wno-duplicate-enum -fomit-frame-pointer -DSDL_SUPPORT -D_GLIBCXX_USE_CXX11_ABI=1 -DUNIX -DBSPF_UNIX -DGUI_SUPPORT -DWINDOWED_SUPPORT -DSOUND_SUPPORT -DDEBUGGER_SUPPORT -DJOYSTICK_SUPPORT -DCHEATCODE_SUPPORT -DHTTP_LIB_SUPPORT -DPNG_SUPPORT -DZIP_SUPPORT -Isrc/emucore -Isrc/common -Isrc/common/tv_filters -Isrc/emucore/tia -Isrc/emucore/tia/frame-manager -Isrc/json -Isrc/common/repository/sqlite -I/usr/local/include -I/usr/local/include/SDL2 -I/usr/X11R6/include -D_REENTRANT -I/usr/X11R6/include -Isrc/unix -Isrc/gui -Isrc/debugger -Isrc/debugger/gui -Isrc/yacc -Isrc/cheat -Isrc/httplib -c src/debugger/gui/RiotRamWidget.cxx -o out/src/debugger/gui/RiotRamWidget.o In file included from src/debugger/gui/RiotRamWidget.cxx:18: In file included from src/emucore/OSystem.hxx:55: In file included from src/emucore/FSNode.hxx:23: src/common/bspf.hxx:245:37: warning: unsafe pointer arithmetic [-Wunsafe-buffer-usage] const auto pos = std::search(s1.cbegin()+startpos, s1.cend(), ~~~^~~~~~~~ src/common/bspf.hxx:249:56: warning: unsafe pointer arithmetic [-Wunsafe-buffer-usage] return pos == s1.cend() ? string::npos : pos - (s1.cbegin()+startpos); ~~~^~~~~~~~ In file included from src/debugger/gui/RiotRamWidget.cxx:18: In file included from src/emucore/OSystem.hxx:55: src/emucore/FSNode.hxx:513:31: warning: unsafe pointer arithmetic [-Wunsafe-buffer-usage] const char* cur = start + str.size() - 2; ~~~~~~^~~~~~~~~~~~ src/emucore/FSNode.hxx:512:19: warning: 'start' is an unsafe pointer used for buffer access [-Wunsafe-buffer-usage] const char* start = str.c_str(); ~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~ src/emucore/FSNode.hxx:513:25: note: used in pointer arithmetic here const char* cur = start + str.size() - 2; ^~~~~ src/emucore/FSNode.hxx:513:19: warning: 'cur' is an unsafe pointer used for buffer access [-Wunsafe-buffer-usage] const char* cur = start + str.size() - 2; ~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~ src/emucore/FSNode.hxx:518:14: note: used in pointer arithmetic here return cur + 1; ^~~ src/emucore/FSNode.hxx:516:11: note: used in pointer arithmetic here --cur; ^~~ In file included from src/debugger/gui/RiotRamWidget.cxx:19: In file included from src/debugger/Debugger.hxx:48: In file included from src/gui/DialogContainer.hxx:26: In file included from src/common/StellaKeys.hxx:22: In file included from src/common/SDL_lib.hxx:34: In file included from /usr/local/include/SDL2/SDL.h:32: In file included from /usr/local/include/SDL2/SDL_main.h:25: /usr/local/include/SDL2/SDL_stdinc.h:544:13: warning: '_p' is an unsafe pointer used for buffer access [-Wunsafe-buffer-usage] Uint32 *_p = SDL_static_cast(Uint32 *, dst); ~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /usr/local/include/SDL2/SDL_stdinc.h:551:26: note: used in pointer arithmetic here case 3: *_p++ = _val; SDL_FALLTHROUGH; ^~ /usr/local/include/SDL2/SDL_stdinc.h:553:26: note: used in pointer arithmetic here case 1: *_p++ = _val; ^~ /usr/local/include/SDL2/SDL_stdinc.h:550:26: note: used in pointer arithmetic here case 0: do { *_p++ = _val; SDL_FALLTHROUGH; ^~ /usr/local/include/SDL2/SDL_stdinc.h:552:26: note: used in pointer arithmetic here case 2: *_p++ = _val; SDL_FALLTHROUGH; ^~ 6 warnings generated. mkdir -p -p src/debugger/gui/.deps mkdir -p -p out/src/debugger/gui c++ -MMD -MF "src/debugger/gui/.deps/RiotWidget.d" -MQ "out/src/debugger/gui/RiotWidget.o" -MP -O2 -pipe -I/usr/X11R6/include -I/usr/local/include -x c++ -Wall -Wextra -Wno-unused-parameter -Wno-multichar -Wunused -Woverloaded-virtual -Wnon-virtual-dtor -std=c++17 -Weverything -Wno-c++98-compat-pedantic -Wno-unknown-warning-option -Wno-switch-enum -Wno-conversion -Wno-covered-switch-default -Wno-inconsistent-missing-destructor-override -Wno-float-equal -Wno-exit-time-destructors -Wno-global-constructors -Wno-weak-vtables -Wno-four-char-constants -Wno-padded -Wno-reserved-identifier -Wno-duplicate-enum -fomit-frame-pointer -DSDL_SUPPORT -D_GLIBCXX_USE_CXX11_ABI=1 -DUNIX -DBSPF_UNIX -DGUI_SUPPORT -DWINDOWED_SUPPORT -DSOUND_SUPPORT -DDEBUGGER_SUPPORT -DJOYSTICK_SUPPORT -DCHEATCODE_SUPPORT -DHTTP_LIB_SUPPORT -DPNG_SUPPORT -DZIP_SUPPORT -Isrc/emucore -Isrc/common -Isrc/common/tv_filters -Isrc/emucore/tia -Isrc/emucore/tia/frame-manager -Isrc/json -Isrc/common/repository/sqlite -I/usr/local/include -I/usr/local/include/SDL2 -I/usr/X11R6/include -D_REENTRANT -I/usr/X11R6/include -Isrc/unix -Isrc/gui -Isrc/debugger -Isrc/debugger/gui -Isrc/yacc -Isrc/cheat -Isrc/httplib -c src/debugger/gui/RiotWidget.cxx -o out/src/debugger/gui/RiotWidget.o In file included from src/debugger/gui/RiotWidget.cxx:18: In file included from src/emucore/Settings.hxx:23: In file included from src/common/Variant.hxx:21: In file included from src/common/Rect.hxx:26: src/common/bspf.hxx:245:37: warning: unsafe pointer arithmetic [-Wunsafe-buffer-usage] const auto pos = std::search(s1.cbegin()+startpos, s1.cend(), ~~~^~~~~~~~ src/common/bspf.hxx:249:56: warning: unsafe pointer arithmetic [-Wunsafe-buffer-usage] return pos == s1.cend() ? string::npos : pos - (s1.cbegin()+startpos); ~~~^~~~~~~~ In file included from src/debugger/gui/RiotWidget.cxx:19: In file included from src/debugger/gui/DataGridWidget.hxx:25: In file included from src/gui/Widget.hxx:33: In file included from src/common/StellaKeys.hxx:22: In file included from src/common/SDL_lib.hxx:34: In file included from /usr/local/include/SDL2/SDL.h:32: In file included from /usr/local/include/SDL2/SDL_main.h:25: /usr/local/include/SDL2/SDL_stdinc.h:544:13: warning: '_p' is an unsafe pointer used for buffer access [-Wunsafe-buffer-usage] Uint32 *_p = SDL_static_cast(Uint32 *, dst); ~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /usr/local/include/SDL2/SDL_stdinc.h:551:26: note: used in pointer arithmetic here case 3: *_p++ = _val; SDL_FALLTHROUGH; ^~ /usr/local/include/SDL2/SDL_stdinc.h:552:26: note: used in pointer arithmetic here case 2: *_p++ = _val; SDL_FALLTHROUGH; ^~ /usr/local/include/SDL2/SDL_stdinc.h:553:26: note: used in pointer arithmetic here case 1: *_p++ = _val; ^~ /usr/local/include/SDL2/SDL_stdinc.h:550:26: note: used in pointer arithmetic here case 0: do { *_p++ = _val; SDL_FALLTHROUGH; ^~ In file included from src/debugger/gui/RiotWidget.cxx:23: In file included from src/emucore/OSystem.hxx:55: src/emucore/FSNode.hxx:513:31: warning: unsafe pointer arithmetic [-Wunsafe-buffer-usage] const char* cur = start + str.size() - 2; ~~~~~~^~~~~~~~~~~~ src/emucore/FSNode.hxx:512:19: warning: 'start' is an unsafe pointer used for buffer access [-Wunsafe-buffer-usage] const char* start = str.c_str(); ~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~ src/emucore/FSNode.hxx:513:25: note: used in pointer arithmetic here const char* cur = start + str.size() - 2; ^~~~~ src/emucore/FSNode.hxx:513:19: warning: 'cur' is an unsafe pointer used for buffer access [-Wunsafe-buffer-usage] const char* cur = start + str.size() - 2; ~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~ src/emucore/FSNode.hxx:516:11: note: used in pointer arithmetic here --cur; ^~~ src/emucore/FSNode.hxx:518:14: note: used in pointer arithmetic here return cur + 1; ^~~ 6 warnings generated. mkdir -p -p src/debugger/gui/.deps mkdir -p -p out/src/debugger/gui c++ -MMD -MF "src/debugger/gui/.deps/RomListSettings.d" -MQ "out/src/debugger/gui/RomListSettings.o" -MP -O2 -pipe -I/usr/X11R6/include -I/usr/local/include -x c++ -Wall -Wextra -Wno-unused-parameter -Wno-multichar -Wunused -Woverloaded-virtual -Wnon-virtual-dtor -std=c++17 -Weverything -Wno-c++98-compat-pedantic -Wno-unknown-warning-option -Wno-switch-enum -Wno-conversion -Wno-covered-switch-default -Wno-inconsistent-missing-destructor-override -Wno-float-equal -Wno-exit-time-destructors -Wno-global-constructors -Wno-weak-vtables -Wno-four-char-constants -Wno-padded -Wno-reserved-identifier -Wno-duplicate-enum -fomit-frame-pointer -DSDL_SUPPORT -D_GLIBCXX_USE_CXX11_ABI=1 -DUNIX -DBSPF_UNIX -DGUI_SUPPORT -DWINDOWED_SUPPORT -DSOUND_SUPPORT -DDEBUGGER_SUPPORT -DJOYSTICK_SUPPORT -DCHEATCODE_SUPPORT -DHTTP_LIB_SUPPORT -DPNG_SUPPORT -DZIP_SUPPORT -Isrc/emucore -Isrc/common -Isrc/common/tv_filters -Isrc/emucore/tia -Isrc/emucore/tia/frame-manager -Isrc/json -Isrc/common/repository/sqlite -I/usr/local/include -I/usr/local/include/SDL2 -I/usr/X11R6/include -D_REENTRANT -I/usr/X11R6/include -Isrc/unix -Isrc/gui -Isrc/debugger -Isrc/debugger/gui -Isrc/yacc -Isrc/cheat -Isrc/httplib -c src/debugger/gui/RomListSettings.cxx -o out/src/debugger/gui/RomListSettings.o In file included from src/debugger/gui/RomListSettings.cxx:18: In file included from src/emucore/OSystem.hxx:55: In file included from src/emucore/FSNode.hxx:23: src/common/bspf.hxx:245:37: warning: unsafe pointer arithmetic [-Wunsafe-buffer-usage] const auto pos = std::search(s1.cbegin()+startpos, s1.cend(), ~~~^~~~~~~~ src/common/bspf.hxx:249:56: warning: unsafe pointer arithmetic [-Wunsafe-buffer-usage] return pos == s1.cend() ? string::npos : pos - (s1.cbegin()+startpos); ~~~^~~~~~~~ In file included from src/debugger/gui/RomListSettings.cxx:18: In file included from src/emucore/OSystem.hxx:55: src/emucore/FSNode.hxx:513:31: warning: unsafe pointer arithmetic [-Wunsafe-buffer-usage] const char* cur = start + str.size() - 2; ~~~~~~^~~~~~~~~~~~ src/emucore/FSNode.hxx:512:19: warning: 'start' is an unsafe pointer used for buffer access [-Wunsafe-buffer-usage] const char* start = str.c_str(); ~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~ src/emucore/FSNode.hxx:513:25: note: used in pointer arithmetic here const char* cur = start + str.size() - 2; ^~~~~ src/emucore/FSNode.hxx:513:19: warning: 'cur' is an unsafe pointer used for buffer access [-Wunsafe-buffer-usage] const char* cur = start + str.size() - 2; ~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~ src/emucore/FSNode.hxx:516:11: note: used in pointer arithmetic here --cur; ^~~ src/emucore/FSNode.hxx:518:14: note: used in pointer arithmetic here return cur + 1; ^~~ In file included from src/debugger/gui/RomListSettings.cxx:23: In file included from src/gui/Dialog.hxx:31: In file included from src/gui/Widget.hxx:33: In file included from src/common/StellaKeys.hxx:22: In file included from src/common/SDL_lib.hxx:34: In file included from /usr/local/include/SDL2/SDL.h:32: In file included from /usr/local/include/SDL2/SDL_main.h:25: /usr/local/include/SDL2/SDL_stdinc.h:544:13: warning: '_p' is an unsafe pointer used for buffer access [-Wunsafe-buffer-usage] Uint32 *_p = SDL_static_cast(Uint32 *, dst); ~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /usr/local/include/SDL2/SDL_stdinc.h:552:26: note: used in pointer arithmetic here case 2: *_p++ = _val; SDL_FALLTHROUGH; ^~ /usr/local/include/SDL2/SDL_stdinc.h:551:26: note: used in pointer arithmetic here case 3: *_p++ = _val; SDL_FALLTHROUGH; ^~ /usr/local/include/SDL2/SDL_stdinc.h:550:26: note: used in pointer arithmetic here case 0: do { *_p++ = _val; SDL_FALLTHROUGH; ^~ /usr/local/include/SDL2/SDL_stdinc.h:553:26: note: used in pointer arithmetic here case 1: *_p++ = _val; ^~ 6 warnings generated. mkdir -p -p src/debugger/gui/.deps mkdir -p -p out/src/debugger/gui c++ -MMD -MF "src/debugger/gui/.deps/RomListWidget.d" -MQ "out/src/debugger/gui/RomListWidget.o" -MP -O2 -pipe -I/usr/X11R6/include -I/usr/local/include -x c++ -Wall -Wextra -Wno-unused-parameter -Wno-multichar -Wunused -Woverloaded-virtual -Wnon-virtual-dtor -std=c++17 -Weverything -Wno-c++98-compat-pedantic -Wno-unknown-warning-option -Wno-switch-enum -Wno-conversion -Wno-covered-switch-default -Wno-inconsistent-missing-destructor-override -Wno-float-equal -Wno-exit-time-destructors -Wno-global-constructors -Wno-weak-vtables -Wno-four-char-constants -Wno-padded -Wno-reserved-identifier -Wno-duplicate-enum -fomit-frame-pointer -DSDL_SUPPORT -D_GLIBCXX_USE_CXX11_ABI=1 -DUNIX -DBSPF_UNIX -DGUI_SUPPORT -DWINDOWED_SUPPORT -DSOUND_SUPPORT -DDEBUGGER_SUPPORT -DJOYSTICK_SUPPORT -DCHEATCODE_SUPPORT -DHTTP_LIB_SUPPORT -DPNG_SUPPORT -DZIP_SUPPORT -Isrc/emucore -Isrc/common -Isrc/common/tv_filters -Isrc/emucore/tia -Isrc/emucore/tia/frame-manager -Isrc/json -Isrc/common/repository/sqlite -I/usr/local/include -I/usr/local/include/SDL2 -I/usr/X11R6/include -D_REENTRANT -I/usr/X11R6/include -Isrc/unix -Isrc/gui -Isrc/debugger -Isrc/debugger/gui -Isrc/yacc -Isrc/cheat -Isrc/httplib -c src/debugger/gui/RomListWidget.cxx -o out/src/debugger/gui/RomListWidget.o In file included from src/debugger/gui/RomListWidget.cxx:18: src/common/bspf.hxx:245:37: warning: unsafe pointer arithmetic [-Wunsafe-buffer-usage] const auto pos = std::search(s1.cbegin()+startpos, s1.cend(), ~~~^~~~~~~~ src/common/bspf.hxx:249:56: warning: unsafe pointer arithmetic [-Wunsafe-buffer-usage] return pos == s1.cend() ? string::npos : pos - (s1.cbegin()+startpos); ~~~^~~~~~~~ In file included from src/debugger/gui/RomListWidget.cxx:19: In file included from src/emucore/OSystem.hxx:55: src/emucore/FSNode.hxx:513:31: warning: unsafe pointer arithmetic [-Wunsafe-buffer-usage] const char* cur = start + str.size() - 2; ~~~~~~^~~~~~~~~~~~ src/emucore/FSNode.hxx:512:19: warning: 'start' is an unsafe pointer used for buffer access [-Wunsafe-buffer-usage] const char* start = str.c_str(); ~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~ src/emucore/FSNode.hxx:513:25: note: used in pointer arithmetic here const char* cur = start + str.size() - 2; ^~~~~ src/emucore/FSNode.hxx:513:19: warning: 'cur' is an unsafe pointer used for buffer access [-Wunsafe-buffer-usage] const char* cur = start + str.size() - 2; ~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~ src/emucore/FSNode.hxx:516:11: note: used in pointer arithmetic here --cur; ^~~ src/emucore/FSNode.hxx:518:14: note: used in pointer arithmetic here return cur + 1; ^~~ In file included from src/debugger/gui/RomListWidget.cxx:20: In file included from src/debugger/Debugger.hxx:48: In file included from src/gui/DialogContainer.hxx:26: In file included from src/common/StellaKeys.hxx:22: In file included from src/common/SDL_lib.hxx:34: In file included from /usr/local/include/SDL2/SDL.h:32: In file included from /usr/local/include/SDL2/SDL_main.h:25: /usr/local/include/SDL2/SDL_stdinc.h:544:13: warning: '_p' is an unsafe pointer used for buffer access [-Wunsafe-buffer-usage] Uint32 *_p = SDL_static_cast(Uint32 *, dst); ~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /usr/local/include/SDL2/SDL_stdinc.h:553:26: note: used in pointer arithmetic here case 1: *_p++ = _val; ^~ /usr/local/include/SDL2/SDL_stdinc.h:551:26: note: used in pointer arithmetic here case 3: *_p++ = _val; SDL_FALLTHROUGH; ^~ /usr/local/include/SDL2/SDL_stdinc.h:550:26: note: used in pointer arithmetic here case 0: do { *_p++ = _val; SDL_FALLTHROUGH; ^~ /usr/local/include/SDL2/SDL_stdinc.h:552:26: note: used in pointer arithmetic here case 2: *_p++ = _val; SDL_FALLTHROUGH; ^~ 6 warnings generated. mkdir -p -p src/debugger/gui/.deps mkdir -p -p out/src/debugger/gui c++ -MMD -MF "src/debugger/gui/.deps/RomWidget.d" -MQ "out/src/debugger/gui/RomWidget.o" -MP -O2 -pipe -I/usr/X11R6/include -I/usr/local/include -x c++ -Wall -Wextra -Wno-unused-parameter -Wno-multichar -Wunused -Woverloaded-virtual -Wnon-virtual-dtor -std=c++17 -Weverything -Wno-c++98-compat-pedantic -Wno-unknown-warning-option -Wno-switch-enum -Wno-conversion -Wno-covered-switch-default -Wno-inconsistent-missing-destructor-override -Wno-float-equal -Wno-exit-time-destructors -Wno-global-constructors -Wno-weak-vtables -Wno-four-char-constants -Wno-padded -Wno-reserved-identifier -Wno-duplicate-enum -fomit-frame-pointer -DSDL_SUPPORT -D_GLIBCXX_USE_CXX11_ABI=1 -DUNIX -DBSPF_UNIX -DGUI_SUPPORT -DWINDOWED_SUPPORT -DSOUND_SUPPORT -DDEBUGGER_SUPPORT -DJOYSTICK_SUPPORT -DCHEATCODE_SUPPORT -DHTTP_LIB_SUPPORT -DPNG_SUPPORT -DZIP_SUPPORT -Isrc/emucore -Isrc/common -Isrc/common/tv_filters -Isrc/emucore/tia -Isrc/emucore/tia/frame-manager -Isrc/json -Isrc/common/repository/sqlite -I/usr/local/include -I/usr/local/include/SDL2 -I/usr/X11R6/include -D_REENTRANT -I/usr/X11R6/include -Isrc/unix -Isrc/gui -Isrc/debugger -Isrc/debugger/gui -Isrc/yacc -Isrc/cheat -Isrc/httplib -c src/debugger/gui/RomWidget.cxx -o out/src/debugger/gui/RomWidget.o In file included from src/debugger/gui/RomWidget.cxx:18: In file included from src/emucore/OSystem.hxx:55: In file included from src/emucore/FSNode.hxx:23: src/common/bspf.hxx:245:37: warning: unsafe pointer arithmetic [-Wunsafe-buffer-usage] const auto pos = std::search(s1.cbegin()+startpos, s1.cend(), ~~~^~~~~~~~ src/common/bspf.hxx:249:56: warning: unsafe pointer arithmetic [-Wunsafe-buffer-usage] return pos == s1.cend() ? string::npos : pos - (s1.cbegin()+startpos); ~~~^~~~~~~~ In file included from src/debugger/gui/RomWidget.cxx:18: In file included from src/emucore/OSystem.hxx:55: src/emucore/FSNode.hxx:513:31: warning: unsafe pointer arithmetic [-Wunsafe-buffer-usage] const char* cur = start + str.size() - 2; ~~~~~~^~~~~~~~~~~~ src/emucore/FSNode.hxx:512:19: warning: 'start' is an unsafe pointer used for buffer access [-Wunsafe-buffer-usage] const char* start = str.c_str(); ~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~ src/emucore/FSNode.hxx:513:25: note: used in pointer arithmetic here const char* cur = start + str.size() - 2; ^~~~~ src/emucore/FSNode.hxx:513:19: warning: 'cur' is an unsafe pointer used for buffer access [-Wunsafe-buffer-usage] const char* cur = start + str.size() - 2; ~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~ src/emucore/FSNode.hxx:518:14: note: used in pointer arithmetic here return cur + 1; ^~~ src/emucore/FSNode.hxx:516:11: note: used in pointer arithmetic here --cur; ^~~ In file included from src/debugger/gui/RomWidget.cxx:20: In file included from src/debugger/Debugger.hxx:48: In file included from src/gui/DialogContainer.hxx:26: In file included from src/common/StellaKeys.hxx:22: In file included from src/common/SDL_lib.hxx:34: In file included from /usr/local/include/SDL2/SDL.h:32: In file included from /usr/local/include/SDL2/SDL_main.h:25: /usr/local/include/SDL2/SDL_stdinc.h:544:13: warning: '_p' is an unsafe pointer used for buffer access [-Wunsafe-buffer-usage] Uint32 *_p = SDL_static_cast(Uint32 *, dst); ~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /usr/local/include/SDL2/SDL_stdinc.h:550:26: note: used in pointer arithmetic here case 0: do { *_p++ = _val; SDL_FALLTHROUGH; ^~ /usr/local/include/SDL2/SDL_stdinc.h:553:26: note: used in pointer arithmetic here case 1: *_p++ = _val; ^~ /usr/local/include/SDL2/SDL_stdinc.h:551:26: note: used in pointer arithmetic here case 3: *_p++ = _val; SDL_FALLTHROUGH; ^~ /usr/local/include/SDL2/SDL_stdinc.h:552:26: note: used in pointer arithmetic here case 2: *_p++ = _val; SDL_FALLTHROUGH; ^~ 6 warnings generated. mkdir -p -p src/debugger/gui/.deps mkdir -p -p out/src/debugger/gui c++ -MMD -MF "src/debugger/gui/.deps/SaveKeyWidget.d" -MQ "out/src/debugger/gui/SaveKeyWidget.o" -MP -O2 -pipe -I/usr/X11R6/include -I/usr/local/include -x c++ -Wall -Wextra -Wno-unused-parameter -Wno-multichar -Wunused -Woverloaded-virtual -Wnon-virtual-dtor -std=c++17 -Weverything -Wno-c++98-compat-pedantic -Wno-unknown-warning-option -Wno-switch-enum -Wno-conversion -Wno-covered-switch-default -Wno-inconsistent-missing-destructor-override -Wno-float-equal -Wno-exit-time-destructors -Wno-global-constructors -Wno-weak-vtables -Wno-four-char-constants -Wno-padded -Wno-reserved-identifier -Wno-duplicate-enum -fomit-frame-pointer -DSDL_SUPPORT -D_GLIBCXX_USE_CXX11_ABI=1 -DUNIX -DBSPF_UNIX -DGUI_SUPPORT -DWINDOWED_SUPPORT -DSOUND_SUPPORT -DDEBUGGER_SUPPORT -DJOYSTICK_SUPPORT -DCHEATCODE_SUPPORT -DHTTP_LIB_SUPPORT -DPNG_SUPPORT -DZIP_SUPPORT -Isrc/emucore -Isrc/common -Isrc/common/tv_filters -Isrc/emucore/tia -Isrc/emucore/tia/frame-manager -Isrc/json -Isrc/common/repository/sqlite -I/usr/local/include -I/usr/local/include/SDL2 -I/usr/X11R6/include -D_REENTRANT -I/usr/X11R6/include -Isrc/unix -Isrc/gui -Isrc/debugger -Isrc/debugger/gui -Isrc/yacc -Isrc/cheat -Isrc/httplib -c src/debugger/gui/SaveKeyWidget.cxx -o out/src/debugger/gui/SaveKeyWidget.o In file included from src/debugger/gui/SaveKeyWidget.cxx:18: In file included from src/emucore/SaveKey.hxx:25: In file included from src/emucore/Control.hxx:28: src/common/bspf.hxx:245:37: warning: unsafe pointer arithmetic [-Wunsafe-buffer-usage] const auto pos = std::search(s1.cbegin()+startpos, s1.cend(), ~~~^~~~~~~~ src/common/bspf.hxx:249:56: warning: unsafe pointer arithmetic [-Wunsafe-buffer-usage] return pos == s1.cend() ? string::npos : pos - (s1.cbegin()+startpos); ~~~^~~~~~~~ In file included from src/debugger/gui/SaveKeyWidget.cxx:19: In file included from src/debugger/gui/SaveKeyWidget.hxx:23: In file included from src/debugger/gui/FlashWidget.hxx:24: In file included from src/debugger/gui/ControllerWidget.hxx:25: In file included from src/gui/Widget.hxx:33: In file included from src/common/StellaKeys.hxx:22: In file included from src/common/SDL_lib.hxx:34: In file included from /usr/local/include/SDL2/SDL.h:32: In file included from /usr/local/include/SDL2/SDL_main.h:25: /usr/local/include/SDL2/SDL_stdinc.h:544:13: warning: '_p' is an unsafe pointer used for buffer access [-Wunsafe-buffer-usage] Uint32 *_p = SDL_static_cast(Uint32 *, dst); ~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /usr/local/include/SDL2/SDL_stdinc.h:553:26: note: used in pointer arithmetic here case 1: *_p++ = _val; ^~ /usr/local/include/SDL2/SDL_stdinc.h:550:26: note: used in pointer arithmetic here case 0: do { *_p++ = _val; SDL_FALLTHROUGH; ^~ /usr/local/include/SDL2/SDL_stdinc.h:552:26: note: used in pointer arithmetic here case 2: *_p++ = _val; SDL_FALLTHROUGH; ^~ /usr/local/include/SDL2/SDL_stdinc.h:551:26: note: used in pointer arithmetic here case 3: *_p++ = _val; SDL_FALLTHROUGH; ^~ In file included from src/debugger/gui/SaveKeyWidget.cxx:19: In file included from src/debugger/gui/SaveKeyWidget.hxx:23: In file included from src/debugger/gui/FlashWidget.hxx:24: In file included from src/debugger/gui/ControllerWidget.hxx:26: In file included from src/emucore/OSystem.hxx:55: src/emucore/FSNode.hxx:513:31: warning: unsafe pointer arithmetic [-Wunsafe-buffer-usage] const char* cur = start + str.size() - 2; ~~~~~~^~~~~~~~~~~~ src/emucore/FSNode.hxx:512:19: warning: 'start' is an unsafe pointer used for buffer access [-Wunsafe-buffer-usage] const char* start = str.c_str(); ~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~ src/emucore/FSNode.hxx:513:25: note: used in pointer arithmetic here const char* cur = start + str.size() - 2; ^~~~~ src/emucore/FSNode.hxx:513:19: warning: 'cur' is an unsafe pointer used for buffer access [-Wunsafe-buffer-usage] const char* cur = start + str.size() - 2; ~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~ src/emucore/FSNode.hxx:516:11: note: used in pointer arithmetic here --cur; ^~~ src/emucore/FSNode.hxx:518:14: note: used in pointer arithmetic here return cur + 1; ^~~ 6 warnings generated. mkdir -p -p src/debugger/gui/.deps mkdir -p -p out/src/debugger/gui c++ -MMD -MF "src/debugger/gui/.deps/TiaInfoWidget.d" -MQ "out/src/debugger/gui/TiaInfoWidget.o" -MP -O2 -pipe -I/usr/X11R6/include -I/usr/local/include -x c++ -Wall -Wextra -Wno-unused-parameter -Wno-multichar -Wunused -Woverloaded-virtual -Wnon-virtual-dtor -std=c++17 -Weverything -Wno-c++98-compat-pedantic -Wno-unknown-warning-option -Wno-switch-enum -Wno-conversion -Wno-covered-switch-default -Wno-inconsistent-missing-destructor-override -Wno-float-equal -Wno-exit-time-destructors -Wno-global-constructors -Wno-weak-vtables -Wno-four-char-constants -Wno-padded -Wno-reserved-identifier -Wno-duplicate-enum -fomit-frame-pointer -DSDL_SUPPORT -D_GLIBCXX_USE_CXX11_ABI=1 -DUNIX -DBSPF_UNIX -DGUI_SUPPORT -DWINDOWED_SUPPORT -DSOUND_SUPPORT -DDEBUGGER_SUPPORT -DJOYSTICK_SUPPORT -DCHEATCODE_SUPPORT -DHTTP_LIB_SUPPORT -DPNG_SUPPORT -DZIP_SUPPORT -Isrc/emucore -Isrc/common -Isrc/common/tv_filters -Isrc/emucore/tia -Isrc/emucore/tia/frame-manager -Isrc/json -Isrc/common/repository/sqlite -I/usr/local/include -I/usr/local/include/SDL2 -I/usr/X11R6/include -D_REENTRANT -I/usr/X11R6/include -Isrc/unix -Isrc/gui -Isrc/debugger -Isrc/debugger/gui -Isrc/yacc -Isrc/cheat -Isrc/httplib -c src/debugger/gui/TiaInfoWidget.cxx -o out/src/debugger/gui/TiaInfoWidget.o In file included from src/debugger/gui/TiaInfoWidget.cxx:18: In file included from src/common/Base.hxx:24: src/common/bspf.hxx:245:37: warning: unsafe pointer arithmetic [-Wunsafe-buffer-usage] const auto pos = std::search(s1.cbegin()+startpos, s1.cend(), ~~~^~~~~~~~ src/common/bspf.hxx:249:56: warning: unsafe pointer arithmetic [-Wunsafe-buffer-usage] return pos == s1.cend() ? string::npos : pos - (s1.cbegin()+startpos); ~~~^~~~~~~~ In file included from src/debugger/gui/TiaInfoWidget.cxx:20: In file included from src/emucore/OSystem.hxx:55: src/emucore/FSNode.hxx:513:31: warning: unsafe pointer arithmetic [-Wunsafe-buffer-usage] const char* cur = start + str.size() - 2; ~~~~~~^~~~~~~~~~~~ src/emucore/FSNode.hxx:512:19: warning: 'start' is an unsafe pointer used for buffer access [-Wunsafe-buffer-usage] const char* start = str.c_str(); ~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~ src/emucore/FSNode.hxx:513:25: note: used in pointer arithmetic here const char* cur = start + str.size() - 2; ^~~~~ src/emucore/FSNode.hxx:513:19: warning: 'cur' is an unsafe pointer used for buffer access [-Wunsafe-buffer-usage] const char* cur = start + str.size() - 2; ~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~ src/emucore/FSNode.hxx:518:14: note: used in pointer arithmetic here return cur + 1; ^~~ src/emucore/FSNode.hxx:516:11: note: used in pointer arithmetic here --cur; ^~~ In file included from src/debugger/gui/TiaInfoWidget.cxx:21: In file included from src/debugger/Debugger.hxx:48: In file included from src/gui/DialogContainer.hxx:26: In file included from src/common/StellaKeys.hxx:22: In file included from src/common/SDL_lib.hxx:34: In file included from /usr/local/include/SDL2/SDL.h:32: In file included from /usr/local/include/SDL2/SDL_main.h:25: /usr/local/include/SDL2/SDL_stdinc.h:544:13: warning: '_p' is an unsafe pointer used for buffer access [-Wunsafe-buffer-usage] Uint32 *_p = SDL_static_cast(Uint32 *, dst); ~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /usr/local/include/SDL2/SDL_stdinc.h:551:26: note: used in pointer arithmetic here case 3: *_p++ = _val; SDL_FALLTHROUGH; ^~ /usr/local/include/SDL2/SDL_stdinc.h:552:26: note: used in pointer arithmetic here case 2: *_p++ = _val; SDL_FALLTHROUGH; ^~ /usr/local/include/SDL2/SDL_stdinc.h:553:26: note: used in pointer arithmetic here case 1: *_p++ = _val; ^~ /usr/local/include/SDL2/SDL_stdinc.h:550:26: note: used in pointer arithmetic here case 0: do { *_p++ = _val; SDL_FALLTHROUGH; ^~ In file included from src/debugger/gui/TiaInfoWidget.cxx:24: In file included from src/emucore/tia/TIA.hxx:37: src/emucore/tia/Missile.hxx:170:7: warning: unsafe buffer access [-Wunsafe-buffer-usage] if (myDecodes[myCounter] && !myResmp) { ^~~~~~~~~ src/emucore/tia/Missile.hxx:173:14: warning: unsafe buffer access [-Wunsafe-buffer-usage] myCopy = myDecodes[myCounter]; ^~~~~~~~~ In file included from src/debugger/gui/TiaInfoWidget.cxx:24: In file included from src/emucore/tia/TIA.hxx:38: src/emucore/tia/Player.hxx:186:7: warning: unsafe buffer access [-Wunsafe-buffer-usage] if (myDecodes[myCounter]) { ^~~~~~~~~ src/emucore/tia/Player.hxx:190:14: warning: unsafe buffer access [-Wunsafe-buffer-usage] myCopy = myDecodes[myCounter]; ^~~~~~~~~ 10 warnings generated. mkdir -p -p src/debugger/gui/.deps mkdir -p -p out/src/debugger/gui c++ -MMD -MF "src/debugger/gui/.deps/TiaOutputWidget.d" -MQ "out/src/debugger/gui/TiaOutputWidget.o" -MP -O2 -pipe -I/usr/X11R6/include -I/usr/local/include -x c++ -Wall -Wextra -Wno-unused-parameter -Wno-multichar -Wunused -Woverloaded-virtual -Wnon-virtual-dtor -std=c++17 -Weverything -Wno-c++98-compat-pedantic -Wno-unknown-warning-option -Wno-switch-enum -Wno-conversion -Wno-covered-switch-default -Wno-inconsistent-missing-destructor-override -Wno-float-equal -Wno-exit-time-destructors -Wno-global-constructors -Wno-weak-vtables -Wno-four-char-constants -Wno-padded -Wno-reserved-identifier -Wno-duplicate-enum -fomit-frame-pointer -DSDL_SUPPORT -D_GLIBCXX_USE_CXX11_ABI=1 -DUNIX -DBSPF_UNIX -DGUI_SUPPORT -DWINDOWED_SUPPORT -DSOUND_SUPPORT -DDEBUGGER_SUPPORT -DJOYSTICK_SUPPORT -DCHEATCODE_SUPPORT -DHTTP_LIB_SUPPORT -DPNG_SUPPORT -DZIP_SUPPORT -Isrc/emucore -Isrc/common -Isrc/common/tv_filters -Isrc/emucore/tia -Isrc/emucore/tia/frame-manager -Isrc/json -Isrc/common/repository/sqlite -I/usr/local/include -I/usr/local/include/SDL2 -I/usr/X11R6/include -D_REENTRANT -I/usr/X11R6/include -Isrc/unix -Isrc/gui -Isrc/debugger -Isrc/debugger/gui -Isrc/yacc -Isrc/cheat -Isrc/httplib -c src/debugger/gui/TiaOutputWidget.cxx -o out/src/debugger/gui/TiaOutputWidget.o In file included from src/debugger/gui/TiaOutputWidget.cxx:20: In file included from src/emucore/OSystem.hxx:55: In file included from src/emucore/FSNode.hxx:23: src/common/bspf.hxx:245:37: warning: unsafe pointer arithmetic [-Wunsafe-buffer-usage] const auto pos = std::search(s1.cbegin()+startpos, s1.cend(), ~~~^~~~~~~~ src/common/bspf.hxx:249:56: warning: unsafe pointer arithmetic [-Wunsafe-buffer-usage] return pos == s1.cend() ? string::npos : pos - (s1.cbegin()+startpos); ~~~^~~~~~~~ In file included from src/debugger/gui/TiaOutputWidget.cxx:20: In file included from src/emucore/OSystem.hxx:55: src/emucore/FSNode.hxx:513:31: warning: unsafe pointer arithmetic [-Wunsafe-buffer-usage] const char* cur = start + str.size() - 2; ~~~~~~^~~~~~~~~~~~ src/emucore/FSNode.hxx:512:19: warning: 'start' is an unsafe pointer used for buffer access [-Wunsafe-buffer-usage] const char* start = str.c_str(); ~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~ src/emucore/FSNode.hxx:513:25: note: used in pointer arithmetic here const char* cur = start + str.size() - 2; ^~~~~ src/emucore/FSNode.hxx:513:19: warning: 'cur' is an unsafe pointer used for buffer access [-Wunsafe-buffer-usage] const char* cur = start + str.size() - 2; ~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~ src/emucore/FSNode.hxx:516:11: note: used in pointer arithmetic here --cur; ^~~ src/emucore/FSNode.hxx:518:14: note: used in pointer arithmetic here return cur + 1; ^~~ In file included from src/debugger/gui/TiaOutputWidget.cxx:23: In file included from src/gui/Widget.hxx:33: In file included from src/common/StellaKeys.hxx:22: In file included from src/common/SDL_lib.hxx:34: In file included from /usr/local/include/SDL2/SDL.h:32: In file included from /usr/local/include/SDL2/SDL_main.h:25: /usr/local/include/SDL2/SDL_stdinc.h:544:13: warning: '_p' is an unsafe pointer used for buffer access [-Wunsafe-buffer-usage] Uint32 *_p = SDL_static_cast(Uint32 *, dst); ~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /usr/local/include/SDL2/SDL_stdinc.h:550:26: note: used in pointer arithmetic here case 0: do { *_p++ = _val; SDL_FALLTHROUGH; ^~ /usr/local/include/SDL2/SDL_stdinc.h:552:26: note: used in pointer arithmetic here case 2: *_p++ = _val; SDL_FALLTHROUGH; ^~ /usr/local/include/SDL2/SDL_stdinc.h:553:26: note: used in pointer arithmetic here case 1: *_p++ = _val; ^~ /usr/local/include/SDL2/SDL_stdinc.h:551:26: note: used in pointer arithmetic here case 3: *_p++ = _val; SDL_FALLTHROUGH; ^~ In file included from src/debugger/gui/TiaOutputWidget.cxx:32: In file included from src/emucore/TIASurface.hxx:31: In file included from src/common/tv_filters/NTSCFilter.hxx:25: src/common/tv_filters/AtariNTSC.hxx:238:22: warning: 'to_rgb' is an unsafe pointer used for buffer access [-Wunsafe-buffer-usage] const float* to_rgb, int& ir, int& ig, int& ib) { ~~~~~~~~~~~~~^~~~~~ src/common/tv_filters/AtariNTSC.hxx:241:49: note: used in buffer access here ib = static_cast(y + to_rgb[4] * i + to_rgb[5] * q); ^~~~~~ src/common/tv_filters/AtariNTSC.hxx:241:33: note: used in buffer access here ib = static_cast(y + to_rgb[4] * i + to_rgb[5] * q); ^~~~~~ src/common/tv_filters/AtariNTSC.hxx:240:49: note: used in buffer access here ig = static_cast(y + to_rgb[2] * i + to_rgb[3] * q); ^~~~~~ src/common/tv_filters/AtariNTSC.hxx:240:33: note: used in buffer access here ig = static_cast(y + to_rgb[2] * i + to_rgb[3] * q); ^~~~~~ src/common/tv_filters/AtariNTSC.hxx:239:49: note: used in buffer access here ir = static_cast(y + to_rgb[0] * i + to_rgb[1] * q); ^~~~~~ In file included from src/debugger/gui/TiaOutputWidget.cxx:33: In file included from src/emucore/tia/TIA.hxx:37: src/emucore/tia/Missile.hxx:170:7: warning: unsafe buffer access [-Wunsafe-buffer-usage] if (myDecodes[myCounter] && !myResmp) { ^~~~~~~~~ src/emucore/tia/Missile.hxx:173:14: warning: unsafe buffer access [-Wunsafe-buffer-usage] myCopy = myDecodes[myCounter]; ^~~~~~~~~ In file included from src/debugger/gui/TiaOutputWidget.cxx:33: In file included from src/emucore/tia/TIA.hxx:38: src/emucore/tia/Player.hxx:186:7: warning: unsafe buffer access [-Wunsafe-buffer-usage] if (myDecodes[myCounter]) { ^~~~~~~~~ src/emucore/tia/Player.hxx:190:14: warning: unsafe buffer access [-Wunsafe-buffer-usage] myCopy = myDecodes[myCounter]; ^~~~~~~~~ src/debugger/gui/TiaOutputWidget.cxx:193:16: warning: 'tiaOutputBuffer' is an unsafe pointer used for buffer access [-Wunsafe-buffer-usage] const uInt8* tiaOutputBuffer = instance().console().tia().outputBuffer(); ~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ src/debugger/gui/TiaOutputWidget.cxx:199:43: note: used in buffer access here << "\nC: $" << Common::Base::toString(tiaOutputBuffer[i], Common::Base::Fmt::_16); ^~~~~~~~~~~~~~~ src/debugger/gui/TiaOutputWidget.cxx:232:16: warning: 'tiaOutputBuffer' is an unsafe pointer used for buffer access [-Wunsafe-buffer-usage] const uInt8* tiaOutputBuffer = instance().console().tia().outputBuffer(); ~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ src/debugger/gui/TiaOutputWidget.cxx:241:49: note: used in buffer access here uInt32 pixel = tiaSurface.mapIndexedPixel(tiaOutputBuffer[i], shift); ^~~~~~~~~~~~~~~ src/debugger/gui/TiaOutputWidget.cxx:237:13: warning: 'line_ptr' is an unsafe pointer used for buffer access [-Wunsafe-buffer-usage] uInt32* line_ptr = myLineBuffer.data(); ~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ src/debugger/gui/TiaOutputWidget.cxx:242:8: note: used in pointer arithmetic here *line_ptr++ = pixel; ^~~~~~~~ src/debugger/gui/TiaOutputWidget.cxx:243:8: note: used in pointer arithmetic here *line_ptr++ = pixel; ^~~~~~~~ 14 warnings generated. mkdir -p -p src/debugger/gui/.deps mkdir -p -p out/src/debugger/gui c++ -MMD -MF "src/debugger/gui/.deps/TiaWidget.d" -MQ "out/src/debugger/gui/TiaWidget.o" -MP -O2 -pipe -I/usr/X11R6/include -I/usr/local/include -x c++ -Wall -Wextra -Wno-unused-parameter -Wno-multichar -Wunused -Woverloaded-virtual -Wnon-virtual-dtor -std=c++17 -Weverything -Wno-c++98-compat-pedantic -Wno-unknown-warning-option -Wno-switch-enum -Wno-conversion -Wno-covered-switch-default -Wno-inconsistent-missing-destructor-override -Wno-float-equal -Wno-exit-time-destructors -Wno-global-constructors -Wno-weak-vtables -Wno-four-char-constants -Wno-padded -Wno-reserved-identifier -Wno-duplicate-enum -fomit-frame-pointer -DSDL_SUPPORT -D_GLIBCXX_USE_CXX11_ABI=1 -DUNIX -DBSPF_UNIX -DGUI_SUPPORT -DWINDOWED_SUPPORT -DSOUND_SUPPORT -DDEBUGGER_SUPPORT -DJOYSTICK_SUPPORT -DCHEATCODE_SUPPORT -DHTTP_LIB_SUPPORT -DPNG_SUPPORT -DZIP_SUPPORT -Isrc/emucore -Isrc/common -Isrc/common/tv_filters -Isrc/emucore/tia -Isrc/emucore/tia/frame-manager -Isrc/json -Isrc/common/repository/sqlite -I/usr/local/include -I/usr/local/include/SDL2 -I/usr/X11R6/include -D_REENTRANT -I/usr/X11R6/include -Isrc/unix -Isrc/gui -Isrc/debugger -Isrc/debugger/gui -Isrc/yacc -Isrc/cheat -Isrc/httplib -c src/debugger/gui/TiaWidget.cxx -o out/src/debugger/gui/TiaWidget.o In file included from src/debugger/gui/TiaWidget.cxx:18: In file included from src/gui/ColorWidget.hxx:24: In file included from src/gui/Widget.hxx:28: src/common/bspf.hxx:245:37: warning: unsafe pointer arithmetic [-Wunsafe-buffer-usage] const auto pos = std::search(s1.cbegin()+startpos, s1.cend(), ~~~^~~~~~~~ src/common/bspf.hxx:249:56: warning: unsafe pointer arithmetic [-Wunsafe-buffer-usage] return pos == s1.cend() ? string::npos : pos - (s1.cbegin()+startpos); ~~~^~~~~~~~ In file included from src/debugger/gui/TiaWidget.cxx:18: In file included from src/gui/ColorWidget.hxx:24: In file included from src/gui/Widget.hxx:33: In file included from src/common/StellaKeys.hxx:22: In file included from src/common/SDL_lib.hxx:34: In file included from /usr/local/include/SDL2/SDL.h:32: In file included from /usr/local/include/SDL2/SDL_main.h:25: /usr/local/include/SDL2/SDL_stdinc.h:544:13: warning: '_p' is an unsafe pointer used for buffer access [-Wunsafe-buffer-usage] Uint32 *_p = SDL_static_cast(Uint32 *, dst); ~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /usr/local/include/SDL2/SDL_stdinc.h:553:26: note: used in pointer arithmetic here case 1: *_p++ = _val; ^~ /usr/local/include/SDL2/SDL_stdinc.h:550:26: note: used in pointer arithmetic here case 0: do { *_p++ = _val; SDL_FALLTHROUGH; ^~ /usr/local/include/SDL2/SDL_stdinc.h:552:26: note: used in pointer arithmetic here case 2: *_p++ = _val; SDL_FALLTHROUGH; ^~ /usr/local/include/SDL2/SDL_stdinc.h:551:26: note: used in pointer arithmetic here case 3: *_p++ = _val; SDL_FALLTHROUGH; ^~ In file included from src/debugger/gui/TiaWidget.cxx:24: In file included from src/emucore/OSystem.hxx:55: src/emucore/FSNode.hxx:513:31: warning: unsafe pointer arithmetic [-Wunsafe-buffer-usage] const char* cur = start + str.size() - 2; ~~~~~~^~~~~~~~~~~~ src/emucore/FSNode.hxx:512:19: warning: 'start' is an unsafe pointer used for buffer access [-Wunsafe-buffer-usage] const char* start = str.c_str(); ~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~ src/emucore/FSNode.hxx:513:25: note: used in pointer arithmetic here const char* cur = start + str.size() - 2; ^~~~~ src/emucore/FSNode.hxx:513:19: warning: 'cur' is an unsafe pointer used for buffer access [-Wunsafe-buffer-usage] const char* cur = start + str.size() - 2; ~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~ src/emucore/FSNode.hxx:516:11: note: used in pointer arithmetic here --cur; ^~~ src/emucore/FSNode.hxx:518:14: note: used in pointer arithmetic here return cur + 1; ^~~ In file included from src/debugger/gui/TiaWidget.cxx:27: In file included from src/emucore/tia/TIA.hxx:37: src/emucore/tia/Missile.hxx:170:7: warning: unsafe buffer access [-Wunsafe-buffer-usage] if (myDecodes[myCounter] && !myResmp) { ^~~~~~~~~ src/emucore/tia/Missile.hxx:173:14: warning: unsafe buffer access [-Wunsafe-buffer-usage] myCopy = myDecodes[myCounter]; ^~~~~~~~~ In file included from src/debugger/gui/TiaWidget.cxx:27: In file included from src/emucore/tia/TIA.hxx:38: src/emucore/tia/Player.hxx:186:7: warning: unsafe buffer access [-Wunsafe-buffer-usage] if (myDecodes[myCounter]) { ^~~~~~~~~ src/emucore/tia/Player.hxx:190:14: warning: unsafe buffer access [-Wunsafe-buffer-usage] myCopy = myDecodes[myCounter]; ^~~~~~~~~ 10 warnings generated. mkdir -p -p src/debugger/gui/.deps mkdir -p -p out/src/debugger/gui c++ -MMD -MF "src/debugger/gui/.deps/TiaZoomWidget.d" -MQ "out/src/debugger/gui/TiaZoomWidget.o" -MP -O2 -pipe -I/usr/X11R6/include -I/usr/local/include -x c++ -Wall -Wextra -Wno-unused-parameter -Wno-multichar -Wunused -Woverloaded-virtual -Wnon-virtual-dtor -std=c++17 -Weverything -Wno-c++98-compat-pedantic -Wno-unknown-warning-option -Wno-switch-enum -Wno-conversion -Wno-covered-switch-default -Wno-inconsistent-missing-destructor-override -Wno-float-equal -Wno-exit-time-destructors -Wno-global-constructors -Wno-weak-vtables -Wno-four-char-constants -Wno-padded -Wno-reserved-identifier -Wno-duplicate-enum -fomit-frame-pointer -DSDL_SUPPORT -D_GLIBCXX_USE_CXX11_ABI=1 -DUNIX -DBSPF_UNIX -DGUI_SUPPORT -DWINDOWED_SUPPORT -DSOUND_SUPPORT -DDEBUGGER_SUPPORT -DJOYSTICK_SUPPORT -DCHEATCODE_SUPPORT -DHTTP_LIB_SUPPORT -DPNG_SUPPORT -DZIP_SUPPORT -Isrc/emucore -Isrc/common -Isrc/common/tv_filters -Isrc/emucore/tia -Isrc/emucore/tia/frame-manager -Isrc/json -Isrc/common/repository/sqlite -I/usr/local/include -I/usr/local/include/SDL2 -I/usr/X11R6/include -D_REENTRANT -I/usr/X11R6/include -Isrc/unix -Isrc/gui -Isrc/debugger -Isrc/debugger/gui -Isrc/yacc -Isrc/cheat -Isrc/httplib -c src/debugger/gui/TiaZoomWidget.cxx -o out/src/debugger/gui/TiaZoomWidget.o In file included from src/debugger/gui/TiaZoomWidget.cxx:20: In file included from src/emucore/OSystem.hxx:55: In file included from src/emucore/FSNode.hxx:23: src/common/bspf.hxx:245:37: warning: unsafe pointer arithmetic [-Wunsafe-buffer-usage] const auto pos = std::search(s1.cbegin()+startpos, s1.cend(), ~~~^~~~~~~~ src/common/bspf.hxx:249:56: warning: unsafe pointer arithmetic [-Wunsafe-buffer-usage] return pos == s1.cend() ? string::npos : pos - (s1.cbegin()+startpos); ~~~^~~~~~~~ In file included from src/debugger/gui/TiaZoomWidget.cxx:20: In file included from src/emucore/OSystem.hxx:55: src/emucore/FSNode.hxx:513:31: warning: unsafe pointer arithmetic [-Wunsafe-buffer-usage] const char* cur = start + str.size() - 2; ~~~~~~^~~~~~~~~~~~ src/emucore/FSNode.hxx:512:19: warning: 'start' is an unsafe pointer used for buffer access [-Wunsafe-buffer-usage] const char* start = str.c_str(); ~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~ src/emucore/FSNode.hxx:513:25: note: used in pointer arithmetic here const char* cur = start + str.size() - 2; ^~~~~ src/emucore/FSNode.hxx:513:19: warning: 'cur' is an unsafe pointer used for buffer access [-Wunsafe-buffer-usage] const char* cur = start + str.size() - 2; ~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~ src/emucore/FSNode.hxx:516:11: note: used in pointer arithmetic here --cur; ^~~ src/emucore/FSNode.hxx:518:14: note: used in pointer arithmetic here return cur + 1; ^~~ In file included from src/debugger/gui/TiaZoomWidget.cxx:22: In file included from src/debugger/Debugger.hxx:48: In file included from src/gui/DialogContainer.hxx:26: In file included from src/common/StellaKeys.hxx:22: In file included from src/common/SDL_lib.hxx:34: In file included from /usr/local/include/SDL2/SDL.h:32: In file included from /usr/local/include/SDL2/SDL_main.h:25: /usr/local/include/SDL2/SDL_stdinc.h:544:13: warning: '_p' is an unsafe pointer used for buffer access [-Wunsafe-buffer-usage] Uint32 *_p = SDL_static_cast(Uint32 *, dst); ~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /usr/local/include/SDL2/SDL_stdinc.h:550:26: note: used in pointer arithmetic here case 0: do { *_p++ = _val; SDL_FALLTHROUGH; ^~ /usr/local/include/SDL2/SDL_stdinc.h:551:26: note: used in pointer arithmetic here case 3: *_p++ = _val; SDL_FALLTHROUGH; ^~ /usr/local/include/SDL2/SDL_stdinc.h:552:26: note: used in pointer arithmetic here case 2: *_p++ = _val; SDL_FALLTHROUGH; ^~ /usr/local/include/SDL2/SDL_stdinc.h:553:26: note: used in pointer arithmetic here case 1: *_p++ = _val; ^~ In file included from src/debugger/gui/TiaZoomWidget.cxx:24: In file included from src/emucore/tia/TIA.hxx:37: src/emucore/tia/Missile.hxx:170:7: warning: unsafe buffer access [-Wunsafe-buffer-usage] if (myDecodes[myCounter] && !myResmp) { ^~~~~~~~~ src/emucore/tia/Missile.hxx:173:14: warning: unsafe buffer access [-Wunsafe-buffer-usage] myCopy = myDecodes[myCounter]; ^~~~~~~~~ In file included from src/debugger/gui/TiaZoomWidget.cxx:24: In file included from src/emucore/tia/TIA.hxx:38: src/emucore/tia/Player.hxx:186:7: warning: unsafe buffer access [-Wunsafe-buffer-usage] if (myDecodes[myCounter]) { ^~~~~~~~~ src/emucore/tia/Player.hxx:190:14: warning: unsafe buffer access [-Wunsafe-buffer-usage] myCopy = myDecodes[myCounter]; ^~~~~~~~~ src/debugger/gui/TiaZoomWidget.cxx:308:16: warning: 'tiaOutputBuffer' is an unsafe pointer used for buffer access [-Wunsafe-buffer-usage] const uInt8* tiaOutputBuffer = instance().console().tia().outputBuffer(); ~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ src/debugger/gui/TiaZoomWidget.cxx:314:43: note: used in buffer access here << "\nC: $" << Common::Base::toString(tiaOutputBuffer[i], Common::Base::Fmt::_16); ^~~~~~~~~~~~~~~ src/debugger/gui/TiaZoomWidget.cxx:338:16: warning: 'currentFrame' is an unsafe pointer used for buffer access [-Wunsafe-buffer-usage] const uInt8* currentFrame = instance().console().tia().outputBuffer(); ~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ src/debugger/gui/TiaZoomWidget.cxx:354:50: note: used in buffer access here const ColorId color = static_cast(currentFrame[idx] | (idx > scanoffset ? 1 : 0)); ^~~~~~~~~~~~ 12 warnings generated. mkdir -p -p src/debugger/gui/.deps mkdir -p -p out/src/debugger/gui c++ -MMD -MF "src/debugger/gui/.deps/ToggleBitWidget.d" -MQ "out/src/debugger/gui/ToggleBitWidget.o" -MP -O2 -pipe -I/usr/X11R6/include -I/usr/local/include -x c++ -Wall -Wextra -Wno-unused-parameter -Wno-multichar -Wunused -Woverloaded-virtual -Wnon-virtual-dtor -std=c++17 -Weverything -Wno-c++98-compat-pedantic -Wno-unknown-warning-option -Wno-switch-enum -Wno-conversion -Wno-covered-switch-default -Wno-inconsistent-missing-destructor-override -Wno-float-equal -Wno-exit-time-destructors -Wno-global-constructors -Wno-weak-vtables -Wno-four-char-constants -Wno-padded -Wno-reserved-identifier -Wno-duplicate-enum -fomit-frame-pointer -DSDL_SUPPORT -D_GLIBCXX_USE_CXX11_ABI=1 -DUNIX -DBSPF_UNIX -DGUI_SUPPORT -DWINDOWED_SUPPORT -DSOUND_SUPPORT -DDEBUGGER_SUPPORT -DJOYSTICK_SUPPORT -DCHEATCODE_SUPPORT -DHTTP_LIB_SUPPORT -DPNG_SUPPORT -DZIP_SUPPORT -Isrc/emucore -Isrc/common -Isrc/common/tv_filters -Isrc/emucore/tia -Isrc/emucore/tia/frame-manager -Isrc/json -Isrc/common/repository/sqlite -I/usr/local/include -I/usr/local/include/SDL2 -I/usr/X11R6/include -D_REENTRANT -I/usr/X11R6/include -Isrc/unix -Isrc/gui -Isrc/debugger -Isrc/debugger/gui -Isrc/yacc -Isrc/cheat -Isrc/httplib -c src/debugger/gui/ToggleBitWidget.cxx -o out/src/debugger/gui/ToggleBitWidget.o In file included from src/debugger/gui/ToggleBitWidget.cxx:18: In file included from src/emucore/OSystem.hxx:55: In file included from src/emucore/FSNode.hxx:23: src/common/bspf.hxx:245:37: warning: unsafe pointer arithmetic [-Wunsafe-buffer-usage] const auto pos = std::search(s1.cbegin()+startpos, s1.cend(), ~~~^~~~~~~~ src/common/bspf.hxx:249:56: warning: unsafe pointer arithmetic [-Wunsafe-buffer-usage] return pos == s1.cend() ? string::npos : pos - (s1.cbegin()+startpos); ~~~^~~~~~~~ In file included from src/debugger/gui/ToggleBitWidget.cxx:18: In file included from src/emucore/OSystem.hxx:55: src/emucore/FSNode.hxx:513:31: warning: unsafe pointer arithmetic [-Wunsafe-buffer-usage] const char* cur = start + str.size() - 2; ~~~~~~^~~~~~~~~~~~ src/emucore/FSNode.hxx:512:19: warning: 'start' is an unsafe pointer used for buffer access [-Wunsafe-buffer-usage] const char* start = str.c_str(); ~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~ src/emucore/FSNode.hxx:513:25: note: used in pointer arithmetic here const char* cur = start + str.size() - 2; ^~~~~ src/emucore/FSNode.hxx:513:19: warning: 'cur' is an unsafe pointer used for buffer access [-Wunsafe-buffer-usage] const char* cur = start + str.size() - 2; ~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~ src/emucore/FSNode.hxx:518:14: note: used in pointer arithmetic here return cur + 1; ^~~ src/emucore/FSNode.hxx:516:11: note: used in pointer arithmetic here --cur; ^~~ In file included from src/debugger/gui/ToggleBitWidget.cxx:19: In file included from src/gui/Widget.hxx:33: In file included from src/common/StellaKeys.hxx:22: In file included from src/common/SDL_lib.hxx:34: In file included from /usr/local/include/SDL2/SDL.h:32: In file included from /usr/local/include/SDL2/SDL_main.h:25: /usr/local/include/SDL2/SDL_stdinc.h:544:13: warning: '_p' is an unsafe pointer used for buffer access [-Wunsafe-buffer-usage] Uint32 *_p = SDL_static_cast(Uint32 *, dst); ~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /usr/local/include/SDL2/SDL_stdinc.h:551:26: note: used in pointer arithmetic here case 3: *_p++ = _val; SDL_FALLTHROUGH; ^~ /usr/local/include/SDL2/SDL_stdinc.h:552:26: note: used in pointer arithmetic here case 2: *_p++ = _val; SDL_FALLTHROUGH; ^~ /usr/local/include/SDL2/SDL_stdinc.h:553:26: note: used in pointer arithmetic here case 1: *_p++ = _val; ^~ /usr/local/include/SDL2/SDL_stdinc.h:550:26: note: used in pointer arithmetic here case 0: do { *_p++ = _val; SDL_FALLTHROUGH; ^~ 6 warnings generated. mkdir -p -p src/debugger/gui/.deps mkdir -p -p out/src/debugger/gui c++ -MMD -MF "src/debugger/gui/.deps/TogglePixelWidget.d" -MQ "out/src/debugger/gui/TogglePixelWidget.o" -MP -O2 -pipe -I/usr/X11R6/include -I/usr/local/include -x c++ -Wall -Wextra -Wno-unused-parameter -Wno-multichar -Wunused -Woverloaded-virtual -Wnon-virtual-dtor -std=c++17 -Weverything -Wno-c++98-compat-pedantic -Wno-unknown-warning-option -Wno-switch-enum -Wno-conversion -Wno-covered-switch-default -Wno-inconsistent-missing-destructor-override -Wno-float-equal -Wno-exit-time-destructors -Wno-global-constructors -Wno-weak-vtables -Wno-four-char-constants -Wno-padded -Wno-reserved-identifier -Wno-duplicate-enum -fomit-frame-pointer -DSDL_SUPPORT -D_GLIBCXX_USE_CXX11_ABI=1 -DUNIX -DBSPF_UNIX -DGUI_SUPPORT -DWINDOWED_SUPPORT -DSOUND_SUPPORT -DDEBUGGER_SUPPORT -DJOYSTICK_SUPPORT -DCHEATCODE_SUPPORT -DHTTP_LIB_SUPPORT -DPNG_SUPPORT -DZIP_SUPPORT -Isrc/emucore -Isrc/common -Isrc/common/tv_filters -Isrc/emucore/tia -Isrc/emucore/tia/frame-manager -Isrc/json -Isrc/common/repository/sqlite -I/usr/local/include -I/usr/local/include/SDL2 -I/usr/X11R6/include -D_REENTRANT -I/usr/X11R6/include -Isrc/unix -Isrc/gui -Isrc/debugger -Isrc/debugger/gui -Isrc/yacc -Isrc/cheat -Isrc/httplib -c src/debugger/gui/TogglePixelWidget.cxx -o out/src/debugger/gui/TogglePixelWidget.o In file included from src/debugger/gui/TogglePixelWidget.cxx:18: In file included from src/emucore/OSystem.hxx:55: In file included from src/emucore/FSNode.hxx:23: src/common/bspf.hxx:245:37: warning: unsafe pointer arithmetic [-Wunsafe-buffer-usage] const auto pos = std::search(s1.cbegin()+startpos, s1.cend(), ~~~^~~~~~~~ src/common/bspf.hxx:249:56: warning: unsafe pointer arithmetic [-Wunsafe-buffer-usage] return pos == s1.cend() ? string::npos : pos - (s1.cbegin()+startpos); ~~~^~~~~~~~ In file included from src/debugger/gui/TogglePixelWidget.cxx:18: In file included from src/emucore/OSystem.hxx:55: src/emucore/FSNode.hxx:513:31: warning: unsafe pointer arithmetic [-Wunsafe-buffer-usage] const char* cur = start + str.size() - 2; ~~~~~~^~~~~~~~~~~~ src/emucore/FSNode.hxx:512:19: warning: 'start' is an unsafe pointer used for buffer access [-Wunsafe-buffer-usage] const char* start = str.c_str(); ~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~ src/emucore/FSNode.hxx:513:25: note: used in pointer arithmetic here const char* cur = start + str.size() - 2; ^~~~~ src/emucore/FSNode.hxx:513:19: warning: 'cur' is an unsafe pointer used for buffer access [-Wunsafe-buffer-usage] const char* cur = start + str.size() - 2; ~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~ src/emucore/FSNode.hxx:516:11: note: used in pointer arithmetic here --cur; ^~~ src/emucore/FSNode.hxx:518:14: note: used in pointer arithmetic here return cur + 1; ^~~ In file included from src/debugger/gui/TogglePixelWidget.cxx:19: In file included from src/gui/Widget.hxx:33: In file included from src/common/StellaKeys.hxx:22: In file included from src/common/SDL_lib.hxx:34: In file included from /usr/local/include/SDL2/SDL.h:32: In file included from /usr/local/include/SDL2/SDL_main.h:25: /usr/local/include/SDL2/SDL_stdinc.h:544:13: warning: '_p' is an unsafe pointer used for buffer access [-Wunsafe-buffer-usage] Uint32 *_p = SDL_static_cast(Uint32 *, dst); ~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /usr/local/include/SDL2/SDL_stdinc.h:552:26: note: used in pointer arithmetic here case 2: *_p++ = _val; SDL_FALLTHROUGH; ^~ /usr/local/include/SDL2/SDL_stdinc.h:551:26: note: used in pointer arithmetic here case 3: *_p++ = _val; SDL_FALLTHROUGH; ^~ /usr/local/include/SDL2/SDL_stdinc.h:553:26: note: used in pointer arithmetic here case 1: *_p++ = _val; ^~ /usr/local/include/SDL2/SDL_stdinc.h:550:26: note: used in pointer arithmetic here case 0: do { *_p++ = _val; SDL_FALLTHROUGH; ^~ 6 warnings generated. mkdir -p -p src/debugger/gui/.deps mkdir -p -p out/src/debugger/gui c++ -MMD -MF "src/debugger/gui/.deps/ToggleWidget.d" -MQ "out/src/debugger/gui/ToggleWidget.o" -MP -O2 -pipe -I/usr/X11R6/include -I/usr/local/include -x c++ -Wall -Wextra -Wno-unused-parameter -Wno-multichar -Wunused -Woverloaded-virtual -Wnon-virtual-dtor -std=c++17 -Weverything -Wno-c++98-compat-pedantic -Wno-unknown-warning-option -Wno-switch-enum -Wno-conversion -Wno-covered-switch-default -Wno-inconsistent-missing-destructor-override -Wno-float-equal -Wno-exit-time-destructors -Wno-global-constructors -Wno-weak-vtables -Wno-four-char-constants -Wno-padded -Wno-reserved-identifier -Wno-duplicate-enum -fomit-frame-pointer -DSDL_SUPPORT -D_GLIBCXX_USE_CXX11_ABI=1 -DUNIX -DBSPF_UNIX -DGUI_SUPPORT -DWINDOWED_SUPPORT -DSOUND_SUPPORT -DDEBUGGER_SUPPORT -DJOYSTICK_SUPPORT -DCHEATCODE_SUPPORT -DHTTP_LIB_SUPPORT -DPNG_SUPPORT -DZIP_SUPPORT -Isrc/emucore -Isrc/common -Isrc/common/tv_filters -Isrc/emucore/tia -Isrc/emucore/tia/frame-manager -Isrc/json -Isrc/common/repository/sqlite -I/usr/local/include -I/usr/local/include/SDL2 -I/usr/X11R6/include -D_REENTRANT -I/usr/X11R6/include -Isrc/unix -Isrc/gui -Isrc/debugger -Isrc/debugger/gui -Isrc/yacc -Isrc/cheat -Isrc/httplib -c src/debugger/gui/ToggleWidget.cxx -o out/src/debugger/gui/ToggleWidget.o In file included from src/debugger/gui/ToggleWidget.cxx:18: In file included from src/emucore/OSystem.hxx:55: In file included from src/emucore/FSNode.hxx:23: src/common/bspf.hxx:245:37: warning: unsafe pointer arithmetic [-Wunsafe-buffer-usage] const auto pos = std::search(s1.cbegin()+startpos, s1.cend(), ~~~^~~~~~~~ src/common/bspf.hxx:249:56: warning: unsafe pointer arithmetic [-Wunsafe-buffer-usage] return pos == s1.cend() ? string::npos : pos - (s1.cbegin()+startpos); ~~~^~~~~~~~ In file included from src/debugger/gui/ToggleWidget.cxx:18: In file included from src/emucore/OSystem.hxx:55: src/emucore/FSNode.hxx:513:31: warning: unsafe pointer arithmetic [-Wunsafe-buffer-usage] const char* cur = start + str.size() - 2; ~~~~~~^~~~~~~~~~~~ src/emucore/FSNode.hxx:512:19: warning: 'start' is an unsafe pointer used for buffer access [-Wunsafe-buffer-usage] const char* start = str.c_str(); ~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~ src/emucore/FSNode.hxx:513:25: note: used in pointer arithmetic here const char* cur = start + str.size() - 2; ^~~~~ src/emucore/FSNode.hxx:513:19: warning: 'cur' is an unsafe pointer used for buffer access [-Wunsafe-buffer-usage] const char* cur = start + str.size() - 2; ~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~ src/emucore/FSNode.hxx:518:14: note: used in pointer arithmetic here return cur + 1; ^~~ src/emucore/FSNode.hxx:516:11: note: used in pointer arithmetic here --cur; ^~~ In file included from src/debugger/gui/ToggleWidget.cxx:20: In file included from src/common/StellaKeys.hxx:22: In file included from src/common/SDL_lib.hxx:34: In file included from /usr/local/include/SDL2/SDL.h:32: In file included from /usr/local/include/SDL2/SDL_main.h:25: /usr/local/include/SDL2/SDL_stdinc.h:544:13: warning: '_p' is an unsafe pointer used for buffer access [-Wunsafe-buffer-usage] Uint32 *_p = SDL_static_cast(Uint32 *, dst); ~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /usr/local/include/SDL2/SDL_stdinc.h:553:26: note: used in pointer arithmetic here case 1: *_p++ = _val; ^~ /usr/local/include/SDL2/SDL_stdinc.h:550:26: note: used in pointer arithmetic here case 0: do { *_p++ = _val; SDL_FALLTHROUGH; ^~ /usr/local/include/SDL2/SDL_stdinc.h:551:26: note: used in pointer arithmetic here case 3: *_p++ = _val; SDL_FALLTHROUGH; ^~ /usr/local/include/SDL2/SDL_stdinc.h:552:26: note: used in pointer arithmetic here case 2: *_p++ = _val; SDL_FALLTHROUGH; ^~ 6 warnings generated. mkdir -p -p src/debugger/gui/.deps mkdir -p -p out/src/debugger/gui c++ -MMD -MF "src/debugger/gui/.deps/TrakBallWidget.d" -MQ "out/src/debugger/gui/TrakBallWidget.o" -MP -O2 -pipe -I/usr/X11R6/include -I/usr/local/include -x c++ -Wall -Wextra -Wno-unused-parameter -Wno-multichar -Wunused -Woverloaded-virtual -Wnon-virtual-dtor -std=c++17 -Weverything -Wno-c++98-compat-pedantic -Wno-unknown-warning-option -Wno-switch-enum -Wno-conversion -Wno-covered-switch-default -Wno-inconsistent-missing-destructor-override -Wno-float-equal -Wno-exit-time-destructors -Wno-global-constructors -Wno-weak-vtables -Wno-four-char-constants -Wno-padded -Wno-reserved-identifier -Wno-duplicate-enum -fomit-frame-pointer -DSDL_SUPPORT -D_GLIBCXX_USE_CXX11_ABI=1 -DUNIX -DBSPF_UNIX -DGUI_SUPPORT -DWINDOWED_SUPPORT -DSOUND_SUPPORT -DDEBUGGER_SUPPORT -DJOYSTICK_SUPPORT -DCHEATCODE_SUPPORT -DHTTP_LIB_SUPPORT -DPNG_SUPPORT -DZIP_SUPPORT -Isrc/emucore -Isrc/common -Isrc/common/tv_filters -Isrc/emucore/tia -Isrc/emucore/tia/frame-manager -Isrc/json -Isrc/common/repository/sqlite -I/usr/local/include -I/usr/local/include/SDL2 -I/usr/X11R6/include -D_REENTRANT -I/usr/X11R6/include -Isrc/unix -Isrc/gui -Isrc/debugger -Isrc/debugger/gui -Isrc/yacc -Isrc/cheat -Isrc/httplib -c src/debugger/gui/TrakBallWidget.cxx -o out/src/debugger/gui/TrakBallWidget.o In file included from src/debugger/gui/TrakBallWidget.cxx:18: In file included from src/debugger/gui/TrakBallWidget.hxx:23: In file included from src/debugger/gui/PointingDeviceWidget.hxx:24: In file included from src/debugger/gui/ControllerWidget.hxx:24: In file included from src/gui/Font.hxx:24: src/common/bspf.hxx:245:37: warning: unsafe pointer arithmetic [-Wunsafe-buffer-usage] const auto pos = std::search(s1.cbegin()+startpos, s1.cend(), ~~~^~~~~~~~ src/common/bspf.hxx:249:56: warning: unsafe pointer arithmetic [-Wunsafe-buffer-usage] return pos == s1.cend() ? string::npos : pos - (s1.cbegin()+startpos); ~~~^~~~~~~~ In file included from src/debugger/gui/TrakBallWidget.cxx:18: In file included from src/debugger/gui/TrakBallWidget.hxx:23: In file included from src/debugger/gui/PointingDeviceWidget.hxx:24: In file included from src/debugger/gui/ControllerWidget.hxx:25: In file included from src/gui/Widget.hxx:33: In file included from src/common/StellaKeys.hxx:22: In file included from src/common/SDL_lib.hxx:34: In file included from /usr/local/include/SDL2/SDL.h:32: In file included from /usr/local/include/SDL2/SDL_main.h:25: /usr/local/include/SDL2/SDL_stdinc.h:544:13: warning: '_p' is an unsafe pointer used for buffer access [-Wunsafe-buffer-usage] Uint32 *_p = SDL_static_cast(Uint32 *, dst); ~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /usr/local/include/SDL2/SDL_stdinc.h:552:26: note: used in pointer arithmetic here case 2: *_p++ = _val; SDL_FALLTHROUGH; ^~ /usr/local/include/SDL2/SDL_stdinc.h:553:26: note: used in pointer arithmetic here case 1: *_p++ = _val; ^~ /usr/local/include/SDL2/SDL_stdinc.h:550:26: note: used in pointer arithmetic here case 0: do { *_p++ = _val; SDL_FALLTHROUGH; ^~ /usr/local/include/SDL2/SDL_stdinc.h:551:26: note: used in pointer arithmetic here case 3: *_p++ = _val; SDL_FALLTHROUGH; ^~ In file included from src/debugger/gui/TrakBallWidget.cxx:18: In file included from src/debugger/gui/TrakBallWidget.hxx:23: In file included from src/debugger/gui/PointingDeviceWidget.hxx:24: In file included from src/debugger/gui/ControllerWidget.hxx:26: In file included from src/emucore/OSystem.hxx:55: src/emucore/FSNode.hxx:513:31: warning: unsafe pointer arithmetic [-Wunsafe-buffer-usage] const char* cur = start + str.size() - 2; ~~~~~~^~~~~~~~~~~~ src/emucore/FSNode.hxx:512:19: warning: 'start' is an unsafe pointer used for buffer access [-Wunsafe-buffer-usage] const char* start = str.c_str(); ~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~ src/emucore/FSNode.hxx:513:25: note: used in pointer arithmetic here const char* cur = start + str.size() - 2; ^~~~~ src/emucore/FSNode.hxx:513:19: warning: 'cur' is an unsafe pointer used for buffer access [-Wunsafe-buffer-usage] const char* cur = start + str.size() - 2; ~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~ src/emucore/FSNode.hxx:518:14: note: used in pointer arithmetic here return cur + 1; ^~~ src/emucore/FSNode.hxx:516:11: note: used in pointer arithmetic here --cur; ^~~ 6 warnings generated. mkdir -p -p src/yacc/.deps mkdir -p -p out/src/yacc c++ -MMD -MF "src/yacc/.deps/YaccParser.d" -MQ "out/src/yacc/YaccParser.o" -MP -O2 -pipe -I/usr/X11R6/include -I/usr/local/include -x c++ -Wall -Wextra -Wno-unused-parameter -Wno-multichar -Wunused -Woverloaded-virtual -Wnon-virtual-dtor -std=c++17 -Weverything -Wno-c++98-compat-pedantic -Wno-unknown-warning-option -Wno-switch-enum -Wno-conversion -Wno-covered-switch-default -Wno-inconsistent-missing-destructor-override -Wno-float-equal -Wno-exit-time-destructors -Wno-global-constructors -Wno-weak-vtables -Wno-four-char-constants -Wno-padded -Wno-reserved-identifier -Wno-duplicate-enum -fomit-frame-pointer -DSDL_SUPPORT -D_GLIBCXX_USE_CXX11_ABI=1 -DUNIX -DBSPF_UNIX -DGUI_SUPPORT -DWINDOWED_SUPPORT -DSOUND_SUPPORT -DDEBUGGER_SUPPORT -DJOYSTICK_SUPPORT -DCHEATCODE_SUPPORT -DHTTP_LIB_SUPPORT -DPNG_SUPPORT -DZIP_SUPPORT -Isrc/emucore -Isrc/common -Isrc/common/tv_filters -Isrc/emucore/tia -Isrc/emucore/tia/frame-manager -Isrc/json -Isrc/common/repository/sqlite -I/usr/local/include -I/usr/local/include/SDL2 -I/usr/X11R6/include -D_REENTRANT -I/usr/X11R6/include -Isrc/unix -Isrc/gui -Isrc/debugger -Isrc/debugger/gui -Isrc/yacc -Isrc/cheat -Isrc/httplib -c src/yacc/YaccParser.cxx -o out/src/yacc/YaccParser.o In file included from src/yacc/YaccParser.cxx:18: In file included from src/common/Base.hxx:24: src/common/bspf.hxx:245:37: warning: unsafe pointer arithmetic [-Wunsafe-buffer-usage] const auto pos = std::search(s1.cbegin()+startpos, s1.cend(), ~~~^~~~~~~~ src/common/bspf.hxx:249:56: warning: unsafe pointer arithmetic [-Wunsafe-buffer-usage] return pos == s1.cend() ? string::npos : pos - (s1.cbegin()+startpos); ~~~^~~~~~~~ In file included from src/yacc/YaccParser.cxx:19: In file included from src/debugger/DebuggerExpressions.hxx:28: In file included from src/debugger/Debugger.hxx:48: In file included from src/gui/DialogContainer.hxx:26: In file included from src/common/StellaKeys.hxx:22: In file included from src/common/SDL_lib.hxx:34: In file included from /usr/local/include/SDL2/SDL.h:32: In file included from /usr/local/include/SDL2/SDL_main.h:25: /usr/local/include/SDL2/SDL_stdinc.h:544:13: warning: '_p' is an unsafe pointer used for buffer access [-Wunsafe-buffer-usage] Uint32 *_p = SDL_static_cast(Uint32 *, dst); ~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /usr/local/include/SDL2/SDL_stdinc.h:552:26: note: used in pointer arithmetic here case 2: *_p++ = _val; SDL_FALLTHROUGH; ^~ /usr/local/include/SDL2/SDL_stdinc.h:553:26: note: used in pointer arithmetic here case 1: *_p++ = _val; ^~ /usr/local/include/SDL2/SDL_stdinc.h:551:26: note: used in pointer arithmetic here case 3: *_p++ = _val; SDL_FALLTHROUGH; ^~ /usr/local/include/SDL2/SDL_stdinc.h:550:26: note: used in pointer arithmetic here case 0: do { *_p++ = _val; SDL_FALLTHROUGH; ^~ In file included from src/yacc/YaccParser.cxx:38: y.tab.c:941:23: warning: 'yystr' is an unsafe pointer used for buffer access [-Wunsafe-buffer-usage] yystrlen (const char *yystr) ~~~~~~~~~~~~^~~~~ y.tab.c:944:19: note: used in buffer access here for (yylen = 0; yystr[yylen]; yylen++) ^~~~~ y.tab.c:960:9: warning: 'yyd' is an unsafe pointer used for buffer access [-Wunsafe-buffer-usage] char *yyd = yydest; ~~~~~~^~~~~~~~~~~~ y.tab.c:963:12: note: used in pointer arithmetic here while ((*yyd++ = *yys++) != '\0') ^~~ y.tab.c:966:10: note: used in pointer arithmetic here return yyd - 1; ^~~ y.tab.c:961:15: warning: 'yys' is an unsafe pointer used for buffer access [-Wunsafe-buffer-usage] const char *yys = yysrc; ~~~~~~~~~~~~^~~~~~~~~~~ y.tab.c:963:21: note: used in pointer arithmetic here while ((*yyd++ = *yys++) != '\0') ^~~ y.tab.c:980:18: warning: 'yyres' is an unsafe pointer used for buffer access [-Wunsafe-buffer-usage] yytnamerr (char *yyres, const char *yystr) ~~~~~~^~~~~ y.tab.c:1009:15: note: used in buffer access here yyres[yyn] = '\0'; ^~~~~ y.tab.c:1003:15: note: used in buffer access here yyres[yyn] = *yyp; ^~~~~ y.tab.c:985:19: warning: 'yyp' is an unsafe pointer used for buffer access [-Wunsafe-buffer-usage] char const *yyp = yystr; ~~~~~~~~~~~~^~~~~~~~~~~ y.tab.c:995:20: note: used in pointer arithmetic here if (*++yyp != '\\') ^~~ y.tab.c:988:20: note: used in pointer arithmetic here switch (*++yyp) ^~~ y.tab.c:588:26: warning: 'yytname' is an unsafe buffer that does not perform bounds checks [-Wunsafe-buffer-usage] static const char *const yytname[] = ~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~ y.tab.c:1073:26: note: used in buffer access here yyarg[yycount++] = yytname[yytoken]; ^~~~~~~ y.tab.c:1095:36: note: used in buffer access here yyarg[yycount++] = yytname[yyx]; ^~~~~~~ y.tab.c:1071:52: note: used in buffer access here YYPTRDIFF_T yysize0 = yytnamerr (YY_NULLPTR, yytname[yytoken]); ^~~~~~~ y.tab.c:1098:55: note: used in buffer access here = yysize + yytnamerr (YY_NULLPTR, yytname[yyx]); ^~~~~~~ y.tab.c:623:27: warning: 'yypact' is an unsafe buffer that does not perform bounds checks [-Wunsafe-buffer-usage] static const yytype_int16 yypact[] = ~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~ y.tab.c:1070:17: note: used in buffer access here int yyn = yypact[+*yyssp]; ^~~~~~ y.tab.c:663:26: warning: 'yytable' is an unsafe buffer that does not perform bounds checks [-Wunsafe-buffer-usage] static const yytype_int8 yytable[] = ~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~ y.tab.c:1087:45: note: used in buffer access here && !yytable_value_is_error (yytable[yyx + yyn])) ^~~~~~~ y.tab.c:619:5: note: expanded from macro 'yytable_value_is_error' ((Yyn) == YYTABLE_NINF) ^~~ y.tab.c:690:26: warning: 'yycheck' is an unsafe buffer that does not perform bounds checks [-Wunsafe-buffer-usage] static const yytype_int8 yycheck[] = ~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~ y.tab.c:1086:17: note: used in buffer access here if (yycheck[yyx + yyn] == yyx && yyx != YYTERROR ^~~~~~~ y.tab.c:1036:15: warning: 'yyformat' is an unsafe pointer used for buffer access [-Wunsafe-buffer-usage] const char *yyformat = YY_NULLPTR; ~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~ y.tab.c:1153:11: note: used in pointer arithmetic here yyformat += 2; ^~~~~~~~ y.tab.c:1158:13: note: used in pointer arithmetic here ++yyformat; ^~~~~~~~ y.tab.c:1150:26: note: used in buffer access here if (*yyp == '%' && yyformat[1] == 's' && yyi < yycount) ^~~~~~~~ y.tab.c:1039:15: warning: 'yyarg' is an unsafe buffer that does not perform bounds checks [-Wunsafe-buffer-usage] char const *yyarg[YYERROR_VERBOSE_ARGS_MAXIMUM]; ~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ y.tab.c:1152:34: note: used in buffer access here yyp += yytnamerr (yyp, yyarg[yyi++]); ^~~~~ y.tab.c:1073:7: note: used in buffer access here yyarg[yycount++] = yytname[yytoken]; ^~~~~ y.tab.c:1095:17: note: used in buffer access here yyarg[yycount++] = yytname[yyx]; ^~~~~ y.tab.c:1147:11: warning: 'yyp' is an unsafe pointer used for buffer access [-Wunsafe-buffer-usage] char *yyp = *yymsg; ~~~~~~^~~~~~~~~~~~ y.tab.c:1152:11: note: used in pointer arithmetic here yyp += yytnamerr (yyp, yyarg[yyi++]); ^~~ y.tab.c:1157:13: note: used in pointer arithmetic here ++yyp; ^~~ y.tab.c:1277:12: warning: unsafe pointer arithmetic [-Wunsafe-buffer-usage] if (yyss + yystacksize - 1 <= yyssp) ~~~~~^~~~~~~~~~~~~ y.tab.c:1327:20: warning: unsafe pointer arithmetic [-Wunsafe-buffer-usage] yyssp = yyss + yysize - 1; ~~~~~^~~~~~~~ y.tab.c:1328:20: warning: unsafe pointer arithmetic [-Wunsafe-buffer-usage] yyvsp = yyvs + yysize - 1; ~~~~~^~~~~~~~ y.tab.c:1335:16: warning: unsafe pointer arithmetic [-Wunsafe-buffer-usage] if (yyss + yystacksize - 1 <= yyssp) ~~~~~^~~~~~~~~~~~~ y.tab.c:542:26: warning: 'yytranslate' is an unsafe buffer that does not perform bounds checks [-Wunsafe-buffer-usage] static const yytype_int8 yytranslate[] = ~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~ y.tab.c:1374:17: note: used in buffer access here yytoken = YYTRANSLATE (yychar); ^~~~~~~~~~~~~~~~~~~~ y.tab.c:538:39: note: expanded from macro 'YYTRANSLATE' (0 <= (YYX) && (YYX) <= YYMAXUTOK ? yytranslate[YYX] : YYUNDEFTOK) ^~~~~~~~~~~ y.tab.c:1700:43: note: used in buffer access here yytoken = yychar == YYEMPTY ? YYEMPTY : YYTRANSLATE (yychar); ^~~~~~~~~~~~~~~~~~~~ y.tab.c:538:39: note: expanded from macro 'YYTRANSLATE' (0 <= (YYX) && (YYX) <= YYMAXUTOK ? yytranslate[YYX] : YYUNDEFTOK) ^~~~~~~~~~~ y.tab.c:1865:17: note: used in buffer access here yytoken = YYTRANSLATE (yychar); ^~~~~~~~~~~~~~~~~~~~ y.tab.c:538:39: note: expanded from macro 'YYTRANSLATE' (0 <= (YYX) && (YYX) <= YYMAXUTOK ? yytranslate[YYX] : YYUNDEFTOK) ^~~~~~~~~~~ y.tab.c:623:27: warning: 'yypact' is an unsafe buffer that does not perform bounds checks [-Wunsafe-buffer-usage] static const yytype_int16 yypact[] = ~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~ y.tab.c:1354:9: note: used in buffer access here yyn = yypact[yystate]; ^~~~~~ y.tab.c:1794:13: note: used in buffer access here yyn = yypact[yystate]; ^~~~~~ y.tab.c:637:26: warning: 'yydefact' is an unsafe buffer that does not perform bounds checks [-Wunsafe-buffer-usage] static const yytype_int8 yydefact[] = ~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~ y.tab.c:1413:9: note: used in buffer access here yyn = yydefact[yystate]; ^~~~~~~~ y.tab.c:649:26: warning: 'yypgoto' is an unsafe buffer that does not perform bounds checks [-Wunsafe-buffer-usage] static const yytype_int8 yypgoto[] = ~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~ y.tab.c:1685:21: note: used in buffer access here const int yyi = yypgoto[yylhs] + *yyssp; ^~~~~~~ y.tab.c:655:26: warning: 'yydefgoto' is an unsafe buffer that does not perform bounds checks [-Wunsafe-buffer-usage] static const yytype_int8 yydefgoto[] = ~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~ y.tab.c:1688:18: note: used in buffer access here : yydefgoto[yylhs]); ^~~~~~~~~ y.tab.c:663:26: warning: 'yytable' is an unsafe buffer that does not perform bounds checks [-Wunsafe-buffer-usage] static const yytype_int8 yytable[] = ~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~ y.tab.c:1800:21: note: used in buffer access here yyn = yytable[yyn]; ^~~~~~~ y.tab.c:1383:9: note: used in buffer access here yyn = yytable[yyn]; ^~~~~~~ y.tab.c:1687:18: note: used in buffer access here ? yytable[yyi] ^~~~~~~ y.tab.c:690:26: warning: 'yycheck' is an unsafe buffer that does not perform bounds checks [-Wunsafe-buffer-usage] static const yytype_int8 yycheck[] = ~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~ y.tab.c:1381:34: note: used in buffer access here if (yyn < 0 || YYLAST < yyn || yycheck[yyn] != yytoken) ^~~~~~~ y.tab.c:1686:45: note: used in buffer access here yystate = (0 <= yyi && yyi <= YYLAST && yycheck[yyi] == *yyssp ^~~~~~~ y.tab.c:1798:44: note: used in buffer access here if (0 <= yyn && yyn <= YYLAST && yycheck[yyn] == YYTERROR) ^~~~~~~ y.tab.c:719:26: warning: 'yystos' is an unsafe buffer that does not perform bounds checks [-Wunsafe-buffer-usage] static const yytype_int8 yystos[] = ~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~ y.tab.c:1812:19: note: used in buffer access here yystos[yystate], yyvsp); ^~~~~~ y.tab.c:1876:19: note: used in buffer access here yystos[+*yyssp], yyvsp); ^~~~~~ y.tab.c:731:26: warning: 'yyr1' is an unsafe buffer that does not perform bounds checks [-Wunsafe-buffer-usage] static const yytype_int8 yyr1[] = ~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~ y.tab.c:1684:23: note: used in buffer access here const int yylhs = yyr1[yyn] - YYNTOKENS; ^~~~ y.tab.c:740:26: warning: 'yyr2' is an unsafe buffer that does not perform bounds checks [-Wunsafe-buffer-usage] static const yytype_int8 yyr2[] = ~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~ y.tab.c:1424:11: note: used in buffer access here yylen = yyr2[yyn]; ^~~~ y.tab.c:1214:17: warning: 'yyss' is an unsafe pointer used for buffer access [-Wunsafe-buffer-usage] yy_state_t *yyss; ~~~~~~~~~~~~^~~~ y.tab.c:1277:7: note: used in pointer arithmetic here if (yyss + yystacksize - 1 <= yyssp) ^~~~ y.tab.c:1327:15: note: used in pointer arithmetic here yyssp = yyss + yysize - 1; ^~~~ y.tab.c:1335:11: note: used in pointer arithmetic here if (yyss + yystacksize - 1 <= yyssp) ^~~~ y.tab.c:1215:17: warning: 'yyssp' is an unsafe pointer used for buffer access [-Wunsafe-buffer-usage] yy_state_t *yyssp; ~~~~~~~~~~~~^~~~~ y.tab.c:1264:3: note: used in pointer arithmetic here yyssp++; ^~~~~ y.tab.c:1779:3: note: used in pointer arithmetic here YYPOPSTACK (yylen); ^~~~~~~~~~~~~~~~~~ y.tab.c:1239:40: note: expanded from macro 'YYPOPSTACK' #define YYPOPSTACK(N) (yyvsp -= (N), yyssp -= (N)) ^~~~~ y.tab.c:1674:3: note: used in pointer arithmetic here YYPOPSTACK (yylen); ^~~~~~~~~~~~~~~~~~ y.tab.c:1239:40: note: expanded from macro 'YYPOPSTACK' #define YYPOPSTACK(N) (yyvsp -= (N), yyssp -= (N)) ^~~~~ y.tab.c:1871:3: note: used in pointer arithmetic here YYPOPSTACK (yylen); ^~~~~~~~~~~~~~~~~~ y.tab.c:1239:40: note: expanded from macro 'YYPOPSTACK' #define YYPOPSTACK(N) (yyvsp -= (N), yyssp -= (N)) ^~~~~ y.tab.c:1813:7: note: used in pointer arithmetic here YYPOPSTACK (1); ^~~~~~~~~~~~~~ y.tab.c:1239:40: note: expanded from macro 'YYPOPSTACK' #define YYPOPSTACK(N) (yyvsp -= (N), yyssp -= (N)) ^~~~~ y.tab.c:1877:7: note: used in pointer arithmetic here YYPOPSTACK (1); ^~~~~~~~~~~~~~ y.tab.c:1239:40: note: expanded from macro 'YYPOPSTACK' #define YYPOPSTACK(N) (yyvsp -= (N), yyssp -= (N)) ^~~~~ y.tab.c:1219:14: warning: 'yyvs' is an unsafe pointer used for buffer access [-Wunsafe-buffer-usage] YYSTYPE *yyvs; ~~~~~~~~~^~~~ y.tab.c:1328:15: note: used in pointer arithmetic here yyvsp = yyvs + yysize - 1; ^~~~ y.tab.c:1220:14: warning: 'yyvsp' is an unsafe pointer used for buffer access [-Wunsafe-buffer-usage] YYSTYPE *yyvsp; ~~~~~~~~~^~~~~ y.tab.c:1434:11: note: used in buffer access here yyval = yyvsp[1-yylen]; ^~~~~ stella.y:87:121: note: used in buffer access here { if(DEBUG_EXP) fprintf(stderr, " ||"); (yyval.exp) = new LogOrExpression((yyvsp[-2].exp), (yyvsp[0].exp)); lastExp = (yyval.exp); } ^~~~~ stella.y:80:119: note: used in buffer access here { if(DEBUG_EXP) fprintf(stderr, " >"); (yyval.exp) = new GreaterExpression((yyvsp[-2].exp), (yyvsp[0].exp)); lastExp = (yyval.exp); } ^~~~~ stella.y:88:123: note: used in buffer access here { if(DEBUG_EXP) fprintf(stderr, " &&"); (yyval.exp) = new LogAndExpression((yyvsp[-2].exp), (yyvsp[0].exp)); lastExp = (yyval.exp); } ^~~~~ stella.y:86:122: note: used in buffer access here { if(DEBUG_EXP) fprintf(stderr, " <<"); (yyval.exp) = new ShiftLeftExpression((yyvsp[-2].exp), (yyvsp[0].exp)); lastExp = (yyval.exp); } ^~~~~ stella.y:97:149: note: used in buffer access here { if(DEBUG_EXP) fprintf(stderr, " []"); (yyval.exp) = new ByteDerefOffsetExpression((yyvsp[-3].exp), (yyvsp[-1].exp)); lastExp = (yyval.exp); } ^~~~~ stella.y:71:116: note: used in buffer access here { if(DEBUG_EXP) fprintf(stderr, " +"); (yyval.exp) = new PlusExpression((yyvsp[-2].exp), (yyvsp[0].exp)); lastExp = (yyval.exp); } ^~~~~ stella.y:81:126: note: used in buffer access here { if(DEBUG_EXP) fprintf(stderr, " >="); (yyval.exp) = new GreaterEqualsExpression((yyvsp[-2].exp), (yyvsp[0].exp)); lastExp = (yyval.exp); } ^~~~~ stella.y:85:123: note: used in buffer access here { if(DEBUG_EXP) fprintf(stderr, " >>"); (yyval.exp) = new ShiftRightExpression((yyvsp[-2].exp), (yyvsp[0].exp)); lastExp = (yyval.exp); } ^~~~~ stella.y:78:118: note: used in buffer access here { if(DEBUG_EXP) fprintf(stderr, " ^"); (yyval.exp) = new BinXorExpression((yyvsp[-2].exp), (yyvsp[0].exp)); lastExp = (yyval.exp); } ^~~~~ stella.y:97:132: note: used in buffer access here { if(DEBUG_EXP) fprintf(stderr, " []"); (yyval.exp) = new ByteDerefOffsetExpression((yyvsp[-3].exp), (yyvsp[-1].exp)); lastExp = (yyval.exp); } ^~~~~ y.tab.c:1813:7: note: used in pointer arithmetic here YYPOPSTACK (1); ^~~~~~~~~~~~~~ y.tab.c:1239:26: note: expanded from macro 'YYPOPSTACK' #define YYPOPSTACK(N) (yyvsp -= (N), yyssp -= (N)) ^~~~~ y.tab.c:1678:6: note: used in pointer arithmetic here *++yyvsp = yyval; ^~~~~ stella.y:83:122: note: used in buffer access here { if(DEBUG_EXP) fprintf(stderr, " !="); (yyval.exp) = new NotEqualsExpression((yyvsp[-2].exp), (yyvsp[0].exp)); lastExp = (yyval.exp); } ^~~~~ stella.y:79:116: note: used in buffer access here { if(DEBUG_EXP) fprintf(stderr, " <"); (yyval.exp) = new LessExpression((yyvsp[-2].exp), (yyvsp[0].exp)); lastExp = (yyval.exp); } ^~~~~ stella.y:96:96: note: used in buffer access here { if(DEBUG_EXP) fprintf(stderr, " ()"); (yyval.exp) = (yyvsp[-1].exp); lastExp = (yyval.exp); } ^~~~~ y.tab.c:1779:3: note: used in pointer arithmetic here YYPOPSTACK (yylen); ^~~~~~~~~~~~~~~~~~ y.tab.c:1239:26: note: expanded from macro 'YYPOPSTACK' #define YYPOPSTACK(N) (yyvsp -= (N), yyssp -= (N)) ^~~~~ stella.y:84:119: note: used in buffer access here { if(DEBUG_EXP) fprintf(stderr, " =="); (yyval.exp) = new EqualsExpression((yyvsp[-2].exp), (yyvsp[0].exp)); lastExp = (yyval.exp); } ^~~~~ stella.y:73:116: note: used in buffer access here { if(DEBUG_EXP) fprintf(stderr, " *"); (yyval.exp) = new MultExpression((yyvsp[-2].exp), (yyvsp[0].exp)); lastExp = (yyval.exp); } ^~~~~ y.tab.c:1819:6: note: used in pointer arithmetic here *++yyvsp = yylval; ^~~~~ y.tab.c:1401:6: note: used in pointer arithmetic here *++yyvsp = yylval; ^~~~~ y.tab.c:1674:3: note: used in pointer arithmetic here YYPOPSTACK (yylen); ^~~~~~~~~~~~~~~~~~ y.tab.c:1239:26: note: expanded from macro 'YYPOPSTACK' #define YYPOPSTACK(N) (yyvsp -= (N), yyssp -= (N)) ^~~~~ stella.y:74:115: note: used in buffer access here { if(DEBUG_EXP) fprintf(stderr, " /"); (yyval.exp) = new DivExpression((yyvsp[-2].exp), (yyvsp[0].exp)); lastExp = (yyval.exp); } ^~~~~ y.tab.c:1871:3: note: used in pointer arithmetic here YYPOPSTACK (yylen); ^~~~~~~~~~~~~~~~~~ y.tab.c:1239:26: note: expanded from macro 'YYPOPSTACK' #define YYPOPSTACK(N) (yyvsp -= (N), yyssp -= (N)) ^~~~~ stella.y:77:117: note: used in buffer access here { if(DEBUG_EXP) fprintf(stderr, " |"); (yyval.exp) = new BinOrExpression((yyvsp[-2].exp), (yyvsp[0].exp)); lastExp = (yyval.exp); } ^~~~~ stella.y:72:117: note: used in buffer access here { if(DEBUG_EXP) fprintf(stderr, " -"); (yyval.exp) = new MinusExpression((yyvsp[-2].exp), (yyvsp[0].exp)); lastExp = (yyval.exp); } ^~~~~ stella.y:82:123: note: used in buffer access here { if(DEBUG_EXP) fprintf(stderr, " <="); (yyval.exp) = new LessEqualsExpression((yyvsp[-2].exp), (yyvsp[0].exp)); lastExp = (yyval.exp); } ^~~~~ stella.y:75:116: note: used in buffer access here { if(DEBUG_EXP) fprintf(stderr, " %%"); (yyval.exp) = new ModExpression((yyvsp[-2].exp), (yyvsp[0].exp)); lastExp = (yyval.exp); } ^~~~~ stella.y:76:118: note: used in buffer access here { if(DEBUG_EXP) fprintf(stderr, " &"); (yyval.exp) = new BinAndExpression((yyvsp[-2].exp), (yyvsp[0].exp)); lastExp = (yyval.exp); } ^~~~~ y.tab.c:1877:7: note: used in pointer arithmetic here YYPOPSTACK (1); ^~~~~~~~~~~~~~ y.tab.c:1239:26: note: expanded from macro 'YYPOPSTACK' #define YYPOPSTACK(N) (yyvsp -= (N), yyssp -= (N)) ^~~~~ y.tab.c:1314:24: warning: 'yyptr' is an unsafe pointer used for buffer access [-Wunsafe-buffer-usage] union yyalloc *yyptr = ~~~~~~~~~~~~~~~^~~~~~~ y.tab.c:1319:9: note: used in pointer arithmetic here YYSTACK_RELOCATE (yyss_alloc, yyss); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ y.tab.c:491:9: note: expanded from macro 'YYSTACK_RELOCATE' yyptr += yynewbytes / YYSIZEOF (*yyptr); \ ^~~~~ y.tab.c:1320:9: note: used in pointer arithmetic here YYSTACK_RELOCATE (yyvs_alloc, yyvs); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ y.tab.c:491:9: note: expanded from macro 'YYSTACK_RELOCATE' yyptr += yynewbytes / YYSIZEOF (*yyptr); \ ^~~~~ src/yacc/YaccParser.cxx:113:24: warning: 'ch' is an unsafe pointer used for buffer access [-Wunsafe-buffer-usage] int const_to_int(char* ch) ~~~~~~^~ src/yacc/YaccParser.cxx:121:7: note: used in pointer arithmetic here ch++; ^~ src/yacc/YaccParser.cxx:131:7: note: used in pointer arithmetic here ch++; ^~ src/yacc/YaccParser.cxx:146:9: note: used in pointer arithmetic here ch++; ^~ src/yacc/YaccParser.cxx:156:9: note: used in pointer arithmetic here ch++; ^~ src/yacc/YaccParser.cxx:168:9: note: used in pointer arithmetic here ch++; ^~ src/yacc/YaccParser.cxx:126:7: note: used in pointer arithmetic here ch++; ^~ src/yacc/YaccParser.cxx:52:28: warning: 'c' is an unsafe pointer used for buffer access [-Wunsafe-buffer-usage] static const char *input, *c; ~~~~~~~~~~~~~~~~~~~~~~~~~~~^ src/yacc/YaccParser.cxx:395:25: note: used in pointer arithmetic here yylval.val = *c++; ^ src/yacc/YaccParser.cxx:352:14: note: used in pointer arithmetic here o = *c++; ^ src/yacc/YaccParser.cxx:380:13: note: used in pointer arithmetic here c--; ^ src/yacc/YaccParser.cxx:310:24: note: used in pointer arithmetic here *bufp++ = *c++; ^ src/yacc/YaccParser.cxx:308:22: note: used in pointer arithmetic here *bufp++ = *c++; // might be a base prefix ^ src/yacc/YaccParser.cxx:289:11: note: used in pointer arithmetic here c++; ^ src/yacc/YaccParser.cxx:362:16: note: used in pointer arithmetic here p = *c++; ^ src/yacc/YaccParser.cxx:307:17: warning: 'bufp' is an unsafe pointer used for buffer access [-Wunsafe-buffer-usage] char *bufp = idbuf; ~~~~~~^~~~~~~~~~~~ src/yacc/YaccParser.cxx:310:14: note: used in pointer arithmetic here *bufp++ = *c++; ^~~~ src/yacc/YaccParser.cxx:308:12: note: used in pointer arithmetic here *bufp++ = *c++; // might be a base prefix ^~~~ 37 warnings generated. mkdir -p -p src/cheat/.deps mkdir -p -p out/src/cheat c++ -MMD -MF "src/cheat/.deps/CheatCodeDialog.d" -MQ "out/src/cheat/CheatCodeDialog.o" -MP -O2 -pipe -I/usr/X11R6/include -I/usr/local/include -x c++ -Wall -Wextra -Wno-unused-parameter -Wno-multichar -Wunused -Woverloaded-virtual -Wnon-virtual-dtor -std=c++17 -Weverything -Wno-c++98-compat-pedantic -Wno-unknown-warning-option -Wno-switch-enum -Wno-conversion -Wno-covered-switch-default -Wno-inconsistent-missing-destructor-override -Wno-float-equal -Wno-exit-time-destructors -Wno-global-constructors -Wno-weak-vtables -Wno-four-char-constants -Wno-padded -Wno-reserved-identifier -Wno-duplicate-enum -fomit-frame-pointer -DSDL_SUPPORT -D_GLIBCXX_USE_CXX11_ABI=1 -DUNIX -DBSPF_UNIX -DGUI_SUPPORT -DWINDOWED_SUPPORT -DSOUND_SUPPORT -DDEBUGGER_SUPPORT -DJOYSTICK_SUPPORT -DCHEATCODE_SUPPORT -DHTTP_LIB_SUPPORT -DPNG_SUPPORT -DZIP_SUPPORT -Isrc/emucore -Isrc/common -Isrc/common/tv_filters -Isrc/emucore/tia -Isrc/emucore/tia/frame-manager -Isrc/json -Isrc/common/repository/sqlite -I/usr/local/include -I/usr/local/include/SDL2 -I/usr/X11R6/include -D_REENTRANT -I/usr/X11R6/include -Isrc/unix -Isrc/gui -Isrc/debugger -Isrc/debugger/gui -Isrc/yacc -Isrc/cheat -Isrc/httplib -c src/cheat/CheatCodeDialog.cxx -o out/src/cheat/CheatCodeDialog.o In file included from src/cheat/CheatCodeDialog.cxx:18: src/common/bspf.hxx:245:37: warning: unsafe pointer arithmetic [-Wunsafe-buffer-usage] const auto pos = std::search(s1.cbegin()+startpos, s1.cend(), ~~~^~~~~~~~ src/common/bspf.hxx:249:56: warning: unsafe pointer arithmetic [-Wunsafe-buffer-usage] return pos == s1.cend() ? string::npos : pos - (s1.cbegin()+startpos); ~~~^~~~~~~~ In file included from src/cheat/CheatCodeDialog.cxx:22: In file included from src/gui/CheckListWidget.hxx:23: In file included from src/gui/ListWidget.hxx:26: In file included from src/gui/EditableWidget.hxx:23: In file included from src/gui/Widget.hxx:33: In file included from src/common/StellaKeys.hxx:22: In file included from src/common/SDL_lib.hxx:34: In file included from /usr/local/include/SDL2/SDL.h:32: In file included from /usr/local/include/SDL2/SDL_main.h:25: /usr/local/include/SDL2/SDL_stdinc.h:544:13: warning: '_p' is an unsafe pointer used for buffer access [-Wunsafe-buffer-usage] Uint32 *_p = SDL_static_cast(Uint32 *, dst); ~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /usr/local/include/SDL2/SDL_stdinc.h:552:26: note: used in pointer arithmetic here case 2: *_p++ = _val; SDL_FALLTHROUGH; ^~ /usr/local/include/SDL2/SDL_stdinc.h:553:26: note: used in pointer arithmetic here case 1: *_p++ = _val; ^~ /usr/local/include/SDL2/SDL_stdinc.h:551:26: note: used in pointer arithmetic here case 3: *_p++ = _val; SDL_FALLTHROUGH; ^~ /usr/local/include/SDL2/SDL_stdinc.h:550:26: note: used in pointer arithmetic here case 0: do { *_p++ = _val; SDL_FALLTHROUGH; ^~ In file included from src/cheat/CheatCodeDialog.cxx:27: In file included from src/emucore/OSystem.hxx:55: src/emucore/FSNode.hxx:513:31: warning: unsafe pointer arithmetic [-Wunsafe-buffer-usage] const char* cur = start + str.size() - 2; ~~~~~~^~~~~~~~~~~~ src/emucore/FSNode.hxx:512:19: warning: 'start' is an unsafe pointer used for buffer access [-Wunsafe-buffer-usage] const char* start = str.c_str(); ~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~ src/emucore/FSNode.hxx:513:25: note: used in pointer arithmetic here const char* cur = start + str.size() - 2; ^~~~~ src/emucore/FSNode.hxx:513:19: warning: 'cur' is an unsafe pointer used for buffer access [-Wunsafe-buffer-usage] const char* cur = start + str.size() - 2; ~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~ src/emucore/FSNode.hxx:516:11: note: used in pointer arithmetic here --cur; ^~~ src/emucore/FSNode.hxx:518:14: note: used in pointer arithmetic here return cur + 1; ^~~ 6 warnings generated. mkdir -p -p src/cheat/.deps mkdir -p -p out/src/cheat c++ -MMD -MF "src/cheat/.deps/CheatManager.d" -MQ "out/src/cheat/CheatManager.o" -MP -O2 -pipe -I/usr/X11R6/include -I/usr/local/include -x c++ -Wall -Wextra -Wno-unused-parameter -Wno-multichar -Wunused -Woverloaded-virtual -Wnon-virtual-dtor -std=c++17 -Weverything -Wno-c++98-compat-pedantic -Wno-unknown-warning-option -Wno-switch-enum -Wno-conversion -Wno-covered-switch-default -Wno-inconsistent-missing-destructor-override -Wno-float-equal -Wno-exit-time-destructors -Wno-global-constructors -Wno-weak-vtables -Wno-four-char-constants -Wno-padded -Wno-reserved-identifier -Wno-duplicate-enum -fomit-frame-pointer -DSDL_SUPPORT -D_GLIBCXX_USE_CXX11_ABI=1 -DUNIX -DBSPF_UNIX -DGUI_SUPPORT -DWINDOWED_SUPPORT -DSOUND_SUPPORT -DDEBUGGER_SUPPORT -DJOYSTICK_SUPPORT -DCHEATCODE_SUPPORT -DHTTP_LIB_SUPPORT -DPNG_SUPPORT -DZIP_SUPPORT -Isrc/emucore -Isrc/common -Isrc/common/tv_filters -Isrc/emucore/tia -Isrc/emucore/tia/frame-manager -Isrc/json -Isrc/common/repository/sqlite -I/usr/local/include -I/usr/local/include/SDL2 -I/usr/X11R6/include -D_REENTRANT -I/usr/X11R6/include -Isrc/unix -Isrc/gui -Isrc/debugger -Isrc/debugger/gui -Isrc/yacc -Isrc/cheat -Isrc/httplib -c src/cheat/CheatManager.cxx -o out/src/cheat/CheatManager.o In file included from src/cheat/CheatManager.cxx:18: In file included from src/emucore/OSystem.hxx:55: In file included from src/emucore/FSNode.hxx:23: src/common/bspf.hxx:245:37: warning: unsafe pointer arithmetic [-Wunsafe-buffer-usage] const auto pos = std::search(s1.cbegin()+startpos, s1.cend(), ~~~^~~~~~~~ src/common/bspf.hxx:249:56: warning: unsafe pointer arithmetic [-Wunsafe-buffer-usage] return pos == s1.cend() ? string::npos : pos - (s1.cbegin()+startpos); ~~~^~~~~~~~ In file included from src/cheat/CheatManager.cxx:18: In file included from src/emucore/OSystem.hxx:55: src/emucore/FSNode.hxx:513:31: warning: unsafe pointer arithmetic [-Wunsafe-buffer-usage] const char* cur = start + str.size() - 2; ~~~~~~^~~~~~~~~~~~ src/emucore/FSNode.hxx:512:19: warning: 'start' is an unsafe pointer used for buffer access [-Wunsafe-buffer-usage] const char* start = str.c_str(); ~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~ src/emucore/FSNode.hxx:513:25: note: used in pointer arithmetic here const char* cur = start + str.size() - 2; ^~~~~ src/emucore/FSNode.hxx:513:19: warning: 'cur' is an unsafe pointer used for buffer access [-Wunsafe-buffer-usage] const char* cur = start + str.size() - 2; ~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~ src/emucore/FSNode.hxx:518:14: note: used in pointer arithmetic here return cur + 1; ^~~ src/emucore/FSNode.hxx:516:11: note: used in pointer arithmetic here --cur; ^~~ 5 warnings generated. mkdir -p -p src/cheat/.deps mkdir -p -p out/src/cheat c++ -MMD -MF "src/cheat/.deps/CheetahCheat.d" -MQ "out/src/cheat/CheetahCheat.o" -MP -O2 -pipe -I/usr/X11R6/include -I/usr/local/include -x c++ -Wall -Wextra -Wno-unused-parameter -Wno-multichar -Wunused -Woverloaded-virtual -Wnon-virtual-dtor -std=c++17 -Weverything -Wno-c++98-compat-pedantic -Wno-unknown-warning-option -Wno-switch-enum -Wno-conversion -Wno-covered-switch-default -Wno-inconsistent-missing-destructor-override -Wno-float-equal -Wno-exit-time-destructors -Wno-global-constructors -Wno-weak-vtables -Wno-four-char-constants -Wno-padded -Wno-reserved-identifier -Wno-duplicate-enum -fomit-frame-pointer -DSDL_SUPPORT -D_GLIBCXX_USE_CXX11_ABI=1 -DUNIX -DBSPF_UNIX -DGUI_SUPPORT -DWINDOWED_SUPPORT -DSOUND_SUPPORT -DDEBUGGER_SUPPORT -DJOYSTICK_SUPPORT -DCHEATCODE_SUPPORT -DHTTP_LIB_SUPPORT -DPNG_SUPPORT -DZIP_SUPPORT -Isrc/emucore -Isrc/common -Isrc/common/tv_filters -Isrc/emucore/tia -Isrc/emucore/tia/frame-manager -Isrc/json -Isrc/common/repository/sqlite -I/usr/local/include -I/usr/local/include/SDL2 -I/usr/X11R6/include -D_REENTRANT -I/usr/X11R6/include -Isrc/unix -Isrc/gui -Isrc/debugger -Isrc/debugger/gui -Isrc/yacc -Isrc/cheat -Isrc/httplib -c src/cheat/CheetahCheat.cxx -o out/src/cheat/CheetahCheat.o In file included from src/cheat/CheetahCheat.cxx:18: In file included from src/emucore/Console.hxx:34: src/common/bspf.hxx:245:37: warning: unsafe pointer arithmetic [-Wunsafe-buffer-usage] const auto pos = std::search(s1.cbegin()+startpos, s1.cend(), ~~~^~~~~~~~ src/common/bspf.hxx:249:56: warning: unsafe pointer arithmetic [-Wunsafe-buffer-usage] return pos == s1.cend() ? string::npos : pos - (s1.cbegin()+startpos); ~~~^~~~~~~~ In file included from src/cheat/CheetahCheat.cxx:20: In file included from src/emucore/OSystem.hxx:55: src/emucore/FSNode.hxx:513:31: warning: unsafe pointer arithmetic [-Wunsafe-buffer-usage] const char* cur = start + str.size() - 2; ~~~~~~^~~~~~~~~~~~ src/emucore/FSNode.hxx:512:19: warning: 'start' is an unsafe pointer used for buffer access [-Wunsafe-buffer-usage] const char* start = str.c_str(); ~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~ src/emucore/FSNode.hxx:513:25: note: used in pointer arithmetic here const char* cur = start + str.size() - 2; ^~~~~ src/emucore/FSNode.hxx:513:19: warning: 'cur' is an unsafe pointer used for buffer access [-Wunsafe-buffer-usage] const char* cur = start + str.size() - 2; ~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~ src/emucore/FSNode.hxx:518:14: note: used in pointer arithmetic here return cur + 1; ^~~ src/emucore/FSNode.hxx:516:11: note: used in pointer arithmetic here --cur; ^~~ 5 warnings generated. mkdir -p -p src/cheat/.deps mkdir -p -p out/src/cheat c++ -MMD -MF "src/cheat/.deps/BankRomCheat.d" -MQ "out/src/cheat/BankRomCheat.o" -MP -O2 -pipe -I/usr/X11R6/include -I/usr/local/include -x c++ -Wall -Wextra -Wno-unused-parameter -Wno-multichar -Wunused -Woverloaded-virtual -Wnon-virtual-dtor -std=c++17 -Weverything -Wno-c++98-compat-pedantic -Wno-unknown-warning-option -Wno-switch-enum -Wno-conversion -Wno-covered-switch-default -Wno-inconsistent-missing-destructor-override -Wno-float-equal -Wno-exit-time-destructors -Wno-global-constructors -Wno-weak-vtables -Wno-four-char-constants -Wno-padded -Wno-reserved-identifier -Wno-duplicate-enum -fomit-frame-pointer -DSDL_SUPPORT -D_GLIBCXX_USE_CXX11_ABI=1 -DUNIX -DBSPF_UNIX -DGUI_SUPPORT -DWINDOWED_SUPPORT -DSOUND_SUPPORT -DDEBUGGER_SUPPORT -DJOYSTICK_SUPPORT -DCHEATCODE_SUPPORT -DHTTP_LIB_SUPPORT -DPNG_SUPPORT -DZIP_SUPPORT -Isrc/emucore -Isrc/common -Isrc/common/tv_filters -Isrc/emucore/tia -Isrc/emucore/tia/frame-manager -Isrc/json -Isrc/common/repository/sqlite -I/usr/local/include -I/usr/local/include/SDL2 -I/usr/X11R6/include -D_REENTRANT -I/usr/X11R6/include -Isrc/unix -Isrc/gui -Isrc/debugger -Isrc/debugger/gui -Isrc/yacc -Isrc/cheat -Isrc/httplib -c src/cheat/BankRomCheat.cxx -o out/src/cheat/BankRomCheat.o In file included from src/cheat/BankRomCheat.cxx:18: In file included from src/emucore/Console.hxx:34: src/common/bspf.hxx:245:37: warning: unsafe pointer arithmetic [-Wunsafe-buffer-usage] const auto pos = std::search(s1.cbegin()+startpos, s1.cend(), ~~~^~~~~~~~ src/common/bspf.hxx:249:56: warning: unsafe pointer arithmetic [-Wunsafe-buffer-usage] return pos == s1.cend() ? string::npos : pos - (s1.cbegin()+startpos); ~~~^~~~~~~~ In file included from src/cheat/BankRomCheat.cxx:20: In file included from src/emucore/OSystem.hxx:55: src/emucore/FSNode.hxx:513:31: warning: unsafe pointer arithmetic [-Wunsafe-buffer-usage] const char* cur = start + str.size() - 2; ~~~~~~^~~~~~~~~~~~ src/emucore/FSNode.hxx:512:19: warning: 'start' is an unsafe pointer used for buffer access [-Wunsafe-buffer-usage] const char* start = str.c_str(); ~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~ src/emucore/FSNode.hxx:513:25: note: used in pointer arithmetic here const char* cur = start + str.size() - 2; ^~~~~ src/emucore/FSNode.hxx:513:19: warning: 'cur' is an unsafe pointer used for buffer access [-Wunsafe-buffer-usage] const char* cur = start + str.size() - 2; ~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~ src/emucore/FSNode.hxx:518:14: note: used in pointer arithmetic here return cur + 1; ^~~ src/emucore/FSNode.hxx:516:11: note: used in pointer arithmetic here --cur; ^~~ 5 warnings generated. mkdir -p -p src/cheat/.deps mkdir -p -p out/src/cheat c++ -MMD -MF "src/cheat/.deps/RamCheat.d" -MQ "out/src/cheat/RamCheat.o" -MP -O2 -pipe -I/usr/X11R6/include -I/usr/local/include -x c++ -Wall -Wextra -Wno-unused-parameter -Wno-multichar -Wunused -Woverloaded-virtual -Wnon-virtual-dtor -std=c++17 -Weverything -Wno-c++98-compat-pedantic -Wno-unknown-warning-option -Wno-switch-enum -Wno-conversion -Wno-covered-switch-default -Wno-inconsistent-missing-destructor-override -Wno-float-equal -Wno-exit-time-destructors -Wno-global-constructors -Wno-weak-vtables -Wno-four-char-constants -Wno-padded -Wno-reserved-identifier -Wno-duplicate-enum -fomit-frame-pointer -DSDL_SUPPORT -D_GLIBCXX_USE_CXX11_ABI=1 -DUNIX -DBSPF_UNIX -DGUI_SUPPORT -DWINDOWED_SUPPORT -DSOUND_SUPPORT -DDEBUGGER_SUPPORT -DJOYSTICK_SUPPORT -DCHEATCODE_SUPPORT -DHTTP_LIB_SUPPORT -DPNG_SUPPORT -DZIP_SUPPORT -Isrc/emucore -Isrc/common -Isrc/common/tv_filters -Isrc/emucore/tia -Isrc/emucore/tia/frame-manager -Isrc/json -Isrc/common/repository/sqlite -I/usr/local/include -I/usr/local/include/SDL2 -I/usr/X11R6/include -D_REENTRANT -I/usr/X11R6/include -Isrc/unix -Isrc/gui -Isrc/debugger -Isrc/debugger/gui -Isrc/yacc -Isrc/cheat -Isrc/httplib -c src/cheat/RamCheat.cxx -o out/src/cheat/RamCheat.o In file included from src/cheat/RamCheat.cxx:18: In file included from src/emucore/Console.hxx:34: src/common/bspf.hxx:245:37: warning: unsafe pointer arithmetic [-Wunsafe-buffer-usage] const auto pos = std::search(s1.cbegin()+startpos, s1.cend(), ~~~^~~~~~~~ src/common/bspf.hxx:249:56: warning: unsafe pointer arithmetic [-Wunsafe-buffer-usage] return pos == s1.cend() ? string::npos : pos - (s1.cbegin()+startpos); ~~~^~~~~~~~ In file included from src/cheat/RamCheat.cxx:20: In file included from src/emucore/OSystem.hxx:55: src/emucore/FSNode.hxx:513:31: warning: unsafe pointer arithmetic [-Wunsafe-buffer-usage] const char* cur = start + str.size() - 2; ~~~~~~^~~~~~~~~~~~ src/emucore/FSNode.hxx:512:19: warning: 'start' is an unsafe pointer used for buffer access [-Wunsafe-buffer-usage] const char* start = str.c_str(); ~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~ src/emucore/FSNode.hxx:513:25: note: used in pointer arithmetic here const char* cur = start + str.size() - 2; ^~~~~ src/emucore/FSNode.hxx:513:19: warning: 'cur' is an unsafe pointer used for buffer access [-Wunsafe-buffer-usage] const char* cur = start + str.size() - 2; ~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~ src/emucore/FSNode.hxx:518:14: note: used in pointer arithmetic here return cur + 1; ^~~ src/emucore/FSNode.hxx:516:11: note: used in pointer arithmetic here --cur; ^~~ 5 warnings generated. mkdir -p -p src/common/.deps mkdir -p -p out/src/common c++ -MMD -MF "src/common/.deps/AudioQueue.d" -MQ "out/src/common/AudioQueue.o" -MP -O2 -pipe -I/usr/X11R6/include -I/usr/local/include -x c++ -Wall -Wextra -Wno-unused-parameter -Wno-multichar -Wunused -Woverloaded-virtual -Wnon-virtual-dtor -std=c++17 -Weverything -Wno-c++98-compat-pedantic -Wno-unknown-warning-option -Wno-switch-enum -Wno-conversion -Wno-covered-switch-default -Wno-inconsistent-missing-destructor-override -Wno-float-equal -Wno-exit-time-destructors -Wno-global-constructors -Wno-weak-vtables -Wno-four-char-constants -Wno-padded -Wno-reserved-identifier -Wno-duplicate-enum -fomit-frame-pointer -DSDL_SUPPORT -D_GLIBCXX_USE_CXX11_ABI=1 -DUNIX -DBSPF_UNIX -DGUI_SUPPORT -DWINDOWED_SUPPORT -DSOUND_SUPPORT -DDEBUGGER_SUPPORT -DJOYSTICK_SUPPORT -DCHEATCODE_SUPPORT -DHTTP_LIB_SUPPORT -DPNG_SUPPORT -DZIP_SUPPORT -Isrc/emucore -Isrc/common -Isrc/common/tv_filters -Isrc/emucore/tia -Isrc/emucore/tia/frame-manager -Isrc/json -Isrc/common/repository/sqlite -I/usr/local/include -I/usr/local/include/SDL2 -I/usr/X11R6/include -D_REENTRANT -I/usr/X11R6/include -Isrc/unix -Isrc/gui -Isrc/debugger -Isrc/debugger/gui -Isrc/yacc -Isrc/cheat -Isrc/httplib -c src/common/AudioQueue.cxx -o out/src/common/AudioQueue.o In file included from src/common/AudioQueue.cxx:18: In file included from src/common/AudioQueue.hxx:23: src/common/bspf.hxx:245:37: warning: unsafe pointer arithmetic [-Wunsafe-buffer-usage] const auto pos = std::search(s1.cbegin()+startpos, s1.cend(), ~~~^~~~~~~~ src/common/bspf.hxx:249:56: warning: unsafe pointer arithmetic [-Wunsafe-buffer-usage] return pos == s1.cend() ? string::npos : pos - (s1.cbegin()+startpos); ~~~^~~~~~~~ src/common/AudioQueue.cxx:35:63: warning: unsafe pointer arithmetic [-Wunsafe-buffer-usage] myFragmentQueue[i] = myAllFragments[i] = myFragmentBuffer.get() + i * sampleSize * myFragmentSize; ~~~~~~~~~~~~~~~~~^~~~~ src/common/AudioQueue.cxx:38:22: warning: unsafe pointer arithmetic [-Wunsafe-buffer-usage] myFragmentBuffer.get() + capacity * sampleSize * myFragmentSize; ~~~~~~~~~~~~~~~~~^~~~~ src/common/AudioQueue.cxx:41:22: warning: unsafe pointer arithmetic [-Wunsafe-buffer-usage] myFragmentBuffer.get() + (capacity + 1) * sampleSize * myFragmentSize; ~~~~~~~~~~~~~~~~~^~~~~ 5 warnings generated. mkdir -p -p src/common/.deps mkdir -p -p out/src/common c++ -MMD -MF "src/common/.deps/AudioSettings.d" -MQ "out/src/common/AudioSettings.o" -MP -O2 -pipe -I/usr/X11R6/include -I/usr/local/include -x c++ -Wall -Wextra -Wno-unused-parameter -Wno-multichar -Wunused -Woverloaded-virtual -Wnon-virtual-dtor -std=c++17 -Weverything -Wno-c++98-compat-pedantic -Wno-unknown-warning-option -Wno-switch-enum -Wno-conversion -Wno-covered-switch-default -Wno-inconsistent-missing-destructor-override -Wno-float-equal -Wno-exit-time-destructors -Wno-global-constructors -Wno-weak-vtables -Wno-four-char-constants -Wno-padded -Wno-reserved-identifier -Wno-duplicate-enum -fomit-frame-pointer -DSDL_SUPPORT -D_GLIBCXX_USE_CXX11_ABI=1 -DUNIX -DBSPF_UNIX -DGUI_SUPPORT -DWINDOWED_SUPPORT -DSOUND_SUPPORT -DDEBUGGER_SUPPORT -DJOYSTICK_SUPPORT -DCHEATCODE_SUPPORT -DHTTP_LIB_SUPPORT -DPNG_SUPPORT -DZIP_SUPPORT -Isrc/emucore -Isrc/common -Isrc/common/tv_filters -Isrc/emucore/tia -Isrc/emucore/tia/frame-manager -Isrc/json -Isrc/common/repository/sqlite -I/usr/local/include -I/usr/local/include/SDL2 -I/usr/X11R6/include -D_REENTRANT -I/usr/X11R6/include -Isrc/unix -Isrc/gui -Isrc/debugger -Isrc/debugger/gui -Isrc/yacc -Isrc/cheat -Isrc/httplib -c src/common/AudioSettings.cxx -o out/src/common/AudioSettings.o In file included from src/common/AudioSettings.cxx:18: In file included from src/common/AudioSettings.hxx:21: src/common/bspf.hxx:245:37: warning: unsafe pointer arithmetic [-Wunsafe-buffer-usage] const auto pos = std::search(s1.cbegin()+startpos, s1.cend(), ~~~^~~~~~~~ src/common/bspf.hxx:249:56: warning: unsafe pointer arithmetic [-Wunsafe-buffer-usage] return pos == s1.cend() ? string::npos : pos - (s1.cbegin()+startpos); ~~~^~~~~~~~ 2 warnings generated. mkdir -p -p src/common/.deps mkdir -p -p out/src/common c++ -MMD -MF "src/common/.deps/Base.d" -MQ "out/src/common/Base.o" -MP -O2 -pipe -I/usr/X11R6/include -I/usr/local/include -x c++ -Wall -Wextra -Wno-unused-parameter -Wno-multichar -Wunused -Woverloaded-virtual -Wnon-virtual-dtor -std=c++17 -Weverything -Wno-c++98-compat-pedantic -Wno-unknown-warning-option -Wno-switch-enum -Wno-conversion -Wno-covered-switch-default -Wno-inconsistent-missing-destructor-override -Wno-float-equal -Wno-exit-time-destructors -Wno-global-constructors -Wno-weak-vtables -Wno-four-char-constants -Wno-padded -Wno-reserved-identifier -Wno-duplicate-enum -fomit-frame-pointer -DSDL_SUPPORT -D_GLIBCXX_USE_CXX11_ABI=1 -DUNIX -DBSPF_UNIX -DGUI_SUPPORT -DWINDOWED_SUPPORT -DSOUND_SUPPORT -DDEBUGGER_SUPPORT -DJOYSTICK_SUPPORT -DCHEATCODE_SUPPORT -DHTTP_LIB_SUPPORT -DPNG_SUPPORT -DZIP_SUPPORT -Isrc/emucore -Isrc/common -Isrc/common/tv_filters -Isrc/emucore/tia -Isrc/emucore/tia/frame-manager -Isrc/json -Isrc/common/repository/sqlite -I/usr/local/include -I/usr/local/include/SDL2 -I/usr/X11R6/include -D_REENTRANT -I/usr/X11R6/include -Isrc/unix -Isrc/gui -Isrc/debugger -Isrc/debugger/gui -Isrc/yacc -Isrc/cheat -Isrc/httplib -c src/common/Base.cxx -o out/src/common/Base.o In file included from src/common/Base.cxx:18: In file included from src/common/Base.hxx:24: src/common/bspf.hxx:245:37: warning: unsafe pointer arithmetic [-Wunsafe-buffer-usage] const auto pos = std::search(s1.cbegin()+startpos, s1.cend(), ~~~^~~~~~~~ src/common/bspf.hxx:249:56: warning: unsafe pointer arithmetic [-Wunsafe-buffer-usage] return pos == s1.cend() ? string::npos : pos - (s1.cbegin()+startpos); ~~~^~~~~~~~ src/common/Base.cxx:25:15: warning: 'vToS_buf' is an unsafe buffer that does not perform bounds checks [-Wunsafe-buffer-usage] static char vToS_buf[32]; // NOLINT : One place where C-style is acceptable ~~~~~~~~~~~~^~~~~~~~~~~~ src/common/Base.cxx:41:25: note: used in buffer access here if(value & bit) vToS_buf[places] = '1'; ^~~~~~~~ src/common/Base.cxx:42:25: note: used in buffer access here else vToS_buf[places] = '0'; ^~~~~~~~ src/common/Base.cxx:38:7: note: used in buffer access here vToS_buf[places] = '\0'; ^~~~~~~~ 3 warnings generated. mkdir -p -p src/common/.deps mkdir -p -p out/src/common c++ -MMD -MF "src/common/.deps/DevSettingsHandler.d" -MQ "out/src/common/DevSettingsHandler.o" -MP -O2 -pipe -I/usr/X11R6/include -I/usr/local/include -x c++ -Wall -Wextra -Wno-unused-parameter -Wno-multichar -Wunused -Woverloaded-virtual -Wnon-virtual-dtor -std=c++17 -Weverything -Wno-c++98-compat-pedantic -Wno-unknown-warning-option -Wno-switch-enum -Wno-conversion -Wno-covered-switch-default -Wno-inconsistent-missing-destructor-override -Wno-float-equal -Wno-exit-time-destructors -Wno-global-constructors -Wno-weak-vtables -Wno-four-char-constants -Wno-padded -Wno-reserved-identifier -Wno-duplicate-enum -fomit-frame-pointer -DSDL_SUPPORT -D_GLIBCXX_USE_CXX11_ABI=1 -DUNIX -DBSPF_UNIX -DGUI_SUPPORT -DWINDOWED_SUPPORT -DSOUND_SUPPORT -DDEBUGGER_SUPPORT -DJOYSTICK_SUPPORT -DCHEATCODE_SUPPORT -DHTTP_LIB_SUPPORT -DPNG_SUPPORT -DZIP_SUPPORT -Isrc/emucore -Isrc/common -Isrc/common/tv_filters -Isrc/emucore/tia -Isrc/emucore/tia/frame-manager -Isrc/json -Isrc/common/repository/sqlite -I/usr/local/include -I/usr/local/include/SDL2 -I/usr/X11R6/include -D_REENTRANT -I/usr/X11R6/include -Isrc/unix -Isrc/gui -Isrc/debugger -Isrc/debugger/gui -Isrc/yacc -Isrc/cheat -Isrc/httplib -c src/common/DevSettingsHandler.cxx -o out/src/common/DevSettingsHandler.o In file included from src/common/DevSettingsHandler.cxx:18: In file included from src/emucore/Console.hxx:34: src/common/bspf.hxx:245:37: warning: unsafe pointer arithmetic [-Wunsafe-buffer-usage] const auto pos = std::search(s1.cbegin()+startpos, s1.cend(), ~~~^~~~~~~~ src/common/bspf.hxx:249:56: warning: unsafe pointer arithmetic [-Wunsafe-buffer-usage] return pos == s1.cend() ? string::npos : pos - (s1.cbegin()+startpos); ~~~^~~~~~~~ In file included from src/common/DevSettingsHandler.cxx:19: In file included from src/emucore/EventHandler.hxx:38: In file included from src/common/PKeyboardHandler.hxx:30: In file included from src/common/KeyMap.hxx:24: In file included from src/common/StellaKeys.hxx:22: In file included from src/common/SDL_lib.hxx:34: In file included from /usr/local/include/SDL2/SDL.h:32: In file included from /usr/local/include/SDL2/SDL_main.h:25: /usr/local/include/SDL2/SDL_stdinc.h:544:13: warning: '_p' is an unsafe pointer used for buffer access [-Wunsafe-buffer-usage] Uint32 *_p = SDL_static_cast(Uint32 *, dst); ~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /usr/local/include/SDL2/SDL_stdinc.h:551:26: note: used in pointer arithmetic here case 3: *_p++ = _val; SDL_FALLTHROUGH; ^~ /usr/local/include/SDL2/SDL_stdinc.h:553:26: note: used in pointer arithmetic here case 1: *_p++ = _val; ^~ /usr/local/include/SDL2/SDL_stdinc.h:552:26: note: used in pointer arithmetic here case 2: *_p++ = _val; SDL_FALLTHROUGH; ^~ /usr/local/include/SDL2/SDL_stdinc.h:550:26: note: used in pointer arithmetic here case 0: do { *_p++ = _val; SDL_FALLTHROUGH; ^~ In file included from src/common/DevSettingsHandler.cxx:21: In file included from src/emucore/OSystem.hxx:55: src/emucore/FSNode.hxx:513:31: warning: unsafe pointer arithmetic [-Wunsafe-buffer-usage] const char* cur = start + str.size() - 2; ~~~~~~^~~~~~~~~~~~ src/emucore/FSNode.hxx:512:19: warning: 'start' is an unsafe pointer used for buffer access [-Wunsafe-buffer-usage] const char* start = str.c_str(); ~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~ src/emucore/FSNode.hxx:513:25: note: used in pointer arithmetic here const char* cur = start + str.size() - 2; ^~~~~ src/emucore/FSNode.hxx:513:19: warning: 'cur' is an unsafe pointer used for buffer access [-Wunsafe-buffer-usage] const char* cur = start + str.size() - 2; ~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~ src/emucore/FSNode.hxx:516:11: note: used in pointer arithmetic here --cur; ^~~ src/emucore/FSNode.hxx:518:14: note: used in pointer arithmetic here return cur + 1; ^~~ In file included from src/common/DevSettingsHandler.cxx:25: In file included from src/emucore/tia/TIA.hxx:37: src/emucore/tia/Missile.hxx:170:7: warning: unsafe buffer access [-Wunsafe-buffer-usage] if (myDecodes[myCounter] && !myResmp) { ^~~~~~~~~ src/emucore/tia/Missile.hxx:173:14: warning: unsafe buffer access [-Wunsafe-buffer-usage] myCopy = myDecodes[myCounter]; ^~~~~~~~~ In file included from src/common/DevSettingsHandler.cxx:25: In file included from src/emucore/tia/TIA.hxx:38: src/emucore/tia/Player.hxx:186:7: warning: unsafe buffer access [-Wunsafe-buffer-usage] if (myDecodes[myCounter]) { ^~~~~~~~~ src/emucore/tia/Player.hxx:190:14: warning: unsafe buffer access [-Wunsafe-buffer-usage] myCopy = myDecodes[myCounter]; ^~~~~~~~~ 10 warnings generated. mkdir -p -p src/common/.deps mkdir -p -p out/src/common c++ -MMD -MF "src/common/.deps/EventHandlerSDL2.d" -MQ "out/src/common/EventHandlerSDL2.o" -MP -O2 -pipe -I/usr/X11R6/include -I/usr/local/include -x c++ -Wall -Wextra -Wno-unused-parameter -Wno-multichar -Wunused -Woverloaded-virtual -Wnon-virtual-dtor -std=c++17 -Weverything -Wno-c++98-compat-pedantic -Wno-unknown-warning-option -Wno-switch-enum -Wno-conversion -Wno-covered-switch-default -Wno-inconsistent-missing-destructor-override -Wno-float-equal -Wno-exit-time-destructors -Wno-global-constructors -Wno-weak-vtables -Wno-four-char-constants -Wno-padded -Wno-reserved-identifier -Wno-duplicate-enum -fomit-frame-pointer -DSDL_SUPPORT -D_GLIBCXX_USE_CXX11_ABI=1 -DUNIX -DBSPF_UNIX -DGUI_SUPPORT -DWINDOWED_SUPPORT -DSOUND_SUPPORT -DDEBUGGER_SUPPORT -DJOYSTICK_SUPPORT -DCHEATCODE_SUPPORT -DHTTP_LIB_SUPPORT -DPNG_SUPPORT -DZIP_SUPPORT -Isrc/emucore -Isrc/common -Isrc/common/tv_filters -Isrc/emucore/tia -Isrc/emucore/tia/frame-manager -Isrc/json -Isrc/common/repository/sqlite -I/usr/local/include -I/usr/local/include/SDL2 -I/usr/X11R6/include -D_REENTRANT -I/usr/X11R6/include -Isrc/unix -Isrc/gui -Isrc/debugger -Isrc/debugger/gui -Isrc/yacc -Isrc/cheat -Isrc/httplib -c src/common/EventHandlerSDL2.cxx -o out/src/common/EventHandlerSDL2.o In file included from src/common/EventHandlerSDL2.cxx:18: In file included from src/common/Logger.hxx:24: src/common/bspf.hxx:245:37: warning: unsafe pointer arithmetic [-Wunsafe-buffer-usage] const auto pos = std::search(s1.cbegin()+startpos, s1.cend(), ~~~^~~~~~~~ src/common/bspf.hxx:249:56: warning: unsafe pointer arithmetic [-Wunsafe-buffer-usage] return pos == s1.cend() ? string::npos : pos - (s1.cbegin()+startpos); ~~~^~~~~~~~ In file included from src/common/EventHandlerSDL2.cxx:19: In file included from src/emucore/OSystem.hxx:55: src/emucore/FSNode.hxx:513:31: warning: unsafe pointer arithmetic [-Wunsafe-buffer-usage] const char* cur = start + str.size() - 2; ~~~~~~^~~~~~~~~~~~ src/emucore/FSNode.hxx:512:19: warning: 'start' is an unsafe pointer used for buffer access [-Wunsafe-buffer-usage] const char* start = str.c_str(); ~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~ src/emucore/FSNode.hxx:513:25: note: used in pointer arithmetic here const char* cur = start + str.size() - 2; ^~~~~ src/emucore/FSNode.hxx:513:19: warning: 'cur' is an unsafe pointer used for buffer access [-Wunsafe-buffer-usage] const char* cur = start + str.size() - 2; ~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~ src/emucore/FSNode.hxx:518:14: note: used in pointer arithmetic here return cur + 1; ^~~ src/emucore/FSNode.hxx:516:11: note: used in pointer arithmetic here --cur; ^~~ In file included from src/common/EventHandlerSDL2.cxx:20: In file included from src/common/EventHandlerSDL2.hxx:21: In file included from src/common/SDL_lib.hxx:34: In file included from /usr/local/include/SDL2/SDL.h:32: In file included from /usr/local/include/SDL2/SDL_main.h:25: /usr/local/include/SDL2/SDL_stdinc.h:544:13: warning: '_p' is an unsafe pointer used for buffer access [-Wunsafe-buffer-usage] Uint32 *_p = SDL_static_cast(Uint32 *, dst); ~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /usr/local/include/SDL2/SDL_stdinc.h:550:26: note: used in pointer arithmetic here case 0: do { *_p++ = _val; SDL_FALLTHROUGH; ^~ /usr/local/include/SDL2/SDL_stdinc.h:551:26: note: used in pointer arithmetic here case 3: *_p++ = _val; SDL_FALLTHROUGH; ^~ /usr/local/include/SDL2/SDL_stdinc.h:553:26: note: used in pointer arithmetic here case 1: *_p++ = _val; ^~ /usr/local/include/SDL2/SDL_stdinc.h:552:26: note: used in pointer arithmetic here case 2: *_p++ = _val; SDL_FALLTHROUGH; ^~ 6 warnings generated. mkdir -p -p src/common/.deps mkdir -p -p out/src/common c++ -MMD -MF "src/common/.deps/FBBackendSDL2.d" -MQ "out/src/common/FBBackendSDL2.o" -MP -O2 -pipe -I/usr/X11R6/include -I/usr/local/include -x c++ -Wall -Wextra -Wno-unused-parameter -Wno-multichar -Wunused -Woverloaded-virtual -Wnon-virtual-dtor -std=c++17 -Weverything -Wno-c++98-compat-pedantic -Wno-unknown-warning-option -Wno-switch-enum -Wno-conversion -Wno-covered-switch-default -Wno-inconsistent-missing-destructor-override -Wno-float-equal -Wno-exit-time-destructors -Wno-global-constructors -Wno-weak-vtables -Wno-four-char-constants -Wno-padded -Wno-reserved-identifier -Wno-duplicate-enum -fomit-frame-pointer -DSDL_SUPPORT -D_GLIBCXX_USE_CXX11_ABI=1 -DUNIX -DBSPF_UNIX -DGUI_SUPPORT -DWINDOWED_SUPPORT -DSOUND_SUPPORT -DDEBUGGER_SUPPORT -DJOYSTICK_SUPPORT -DCHEATCODE_SUPPORT -DHTTP_LIB_SUPPORT -DPNG_SUPPORT -DZIP_SUPPORT -Isrc/emucore -Isrc/common -Isrc/common/tv_filters -Isrc/emucore/tia -Isrc/emucore/tia/frame-manager -Isrc/json -Isrc/common/repository/sqlite -I/usr/local/include -I/usr/local/include/SDL2 -I/usr/X11R6/include -D_REENTRANT -I/usr/X11R6/include -Isrc/unix -Isrc/gui -Isrc/debugger -Isrc/debugger/gui -Isrc/yacc -Isrc/cheat -Isrc/httplib -c src/common/FBBackendSDL2.cxx -o out/src/common/FBBackendSDL2.o In file included from src/common/FBBackendSDL2.cxx:20: In file included from src/common/SDL_lib.hxx:21: src/common/bspf.hxx:245:37: warning: unsafe pointer arithmetic [-Wunsafe-buffer-usage] const auto pos = std::search(s1.cbegin()+startpos, s1.cend(), ~~~^~~~~~~~ src/common/bspf.hxx:249:56: warning: unsafe pointer arithmetic [-Wunsafe-buffer-usage] return pos == s1.cend() ? string::npos : pos - (s1.cbegin()+startpos); ~~~^~~~~~~~ In file included from src/common/FBBackendSDL2.cxx:20: In file included from src/common/SDL_lib.hxx:34: In file included from /usr/local/include/SDL2/SDL.h:32: In file included from /usr/local/include/SDL2/SDL_main.h:25: /usr/local/include/SDL2/SDL_stdinc.h:544:13: warning: '_p' is an unsafe pointer used for buffer access [-Wunsafe-buffer-usage] Uint32 *_p = SDL_static_cast(Uint32 *, dst); ~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /usr/local/include/SDL2/SDL_stdinc.h:552:26: note: used in pointer arithmetic here case 2: *_p++ = _val; SDL_FALLTHROUGH; ^~ /usr/local/include/SDL2/SDL_stdinc.h:550:26: note: used in pointer arithmetic here case 0: do { *_p++ = _val; SDL_FALLTHROUGH; ^~ /usr/local/include/SDL2/SDL_stdinc.h:551:26: note: used in pointer arithmetic here case 3: *_p++ = _val; SDL_FALLTHROUGH; ^~ /usr/local/include/SDL2/SDL_stdinc.h:553:26: note: used in pointer arithmetic here case 1: *_p++ = _val; ^~ In file included from src/common/FBBackendSDL2.cxx:25: In file included from src/emucore/OSystem.hxx:55: src/emucore/FSNode.hxx:513:31: warning: unsafe pointer arithmetic [-Wunsafe-buffer-usage] const char* cur = start + str.size() - 2; ~~~~~~^~~~~~~~~~~~ src/emucore/FSNode.hxx:512:19: warning: 'start' is an unsafe pointer used for buffer access [-Wunsafe-buffer-usage] const char* start = str.c_str(); ~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~ src/emucore/FSNode.hxx:513:25: note: used in pointer arithmetic here const char* cur = start + str.size() - 2; ^~~~~ src/emucore/FSNode.hxx:513:19: warning: 'cur' is an unsafe pointer used for buffer access [-Wunsafe-buffer-usage] const char* cur = start + str.size() - 2; ~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~ src/emucore/FSNode.hxx:518:14: note: used in pointer arithmetic here return cur + 1; ^~~ src/emucore/FSNode.hxx:516:11: note: used in pointer arithmetic here --cur; ^~~ 6 warnings generated. mkdir -p -p src/common/.deps mkdir -p -p out/src/common c++ -MMD -MF "src/common/.deps/FBSurfaceSDL2.d" -MQ "out/src/common/FBSurfaceSDL2.o" -MP -O2 -pipe -I/usr/X11R6/include -I/usr/local/include -x c++ -Wall -Wextra -Wno-unused-parameter -Wno-multichar -Wunused -Woverloaded-virtual -Wnon-virtual-dtor -std=c++17 -Weverything -Wno-c++98-compat-pedantic -Wno-unknown-warning-option -Wno-switch-enum -Wno-conversion -Wno-covered-switch-default -Wno-inconsistent-missing-destructor-override -Wno-float-equal -Wno-exit-time-destructors -Wno-global-constructors -Wno-weak-vtables -Wno-four-char-constants -Wno-padded -Wno-reserved-identifier -Wno-duplicate-enum -fomit-frame-pointer -DSDL_SUPPORT -D_GLIBCXX_USE_CXX11_ABI=1 -DUNIX -DBSPF_UNIX -DGUI_SUPPORT -DWINDOWED_SUPPORT -DSOUND_SUPPORT -DDEBUGGER_SUPPORT -DJOYSTICK_SUPPORT -DCHEATCODE_SUPPORT -DHTTP_LIB_SUPPORT -DPNG_SUPPORT -DZIP_SUPPORT -Isrc/emucore -Isrc/common -Isrc/common/tv_filters -Isrc/emucore/tia -Isrc/emucore/tia/frame-manager -Isrc/json -Isrc/common/repository/sqlite -I/usr/local/include -I/usr/local/include/SDL2 -I/usr/X11R6/include -D_REENTRANT -I/usr/X11R6/include -Isrc/unix -Isrc/gui -Isrc/debugger -Isrc/debugger/gui -Isrc/yacc -Isrc/cheat -Isrc/httplib -c src/common/FBSurfaceSDL2.cxx -o out/src/common/FBSurfaceSDL2.o In file included from src/common/FBSurfaceSDL2.cxx:18: In file included from src/common/FBSurfaceSDL2.hxx:21: src/common/bspf.hxx:245:37: warning: unsafe pointer arithmetic [-Wunsafe-buffer-usage] const auto pos = std::search(s1.cbegin()+startpos, s1.cend(), ~~~^~~~~~~~ src/common/bspf.hxx:249:56: warning: unsafe pointer arithmetic [-Wunsafe-buffer-usage] return pos == s1.cend() ? string::npos : pos - (s1.cbegin()+startpos); ~~~^~~~~~~~ In file included from src/common/FBSurfaceSDL2.cxx:18: In file included from src/common/FBSurfaceSDL2.hxx:23: In file included from src/common/FBBackendSDL2.hxx:21: In file included from src/common/SDL_lib.hxx:34: In file included from /usr/local/include/SDL2/SDL.h:32: In file included from /usr/local/include/SDL2/SDL_main.h:25: /usr/local/include/SDL2/SDL_stdinc.h:544:13: warning: '_p' is an unsafe pointer used for buffer access [-Wunsafe-buffer-usage] Uint32 *_p = SDL_static_cast(Uint32 *, dst); ~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /usr/local/include/SDL2/SDL_stdinc.h:552:26: note: used in pointer arithmetic here case 2: *_p++ = _val; SDL_FALLTHROUGH; ^~ /usr/local/include/SDL2/SDL_stdinc.h:553:26: note: used in pointer arithmetic here case 1: *_p++ = _val; ^~ /usr/local/include/SDL2/SDL_stdinc.h:551:26: note: used in pointer arithmetic here case 3: *_p++ = _val; SDL_FALLTHROUGH; ^~ /usr/local/include/SDL2/SDL_stdinc.h:550:26: note: used in pointer arithmetic here case 0: do { *_p++ = _val; SDL_FALLTHROUGH; ^~ 3 warnings generated. mkdir -p -p src/common/.deps mkdir -p -p out/src/common c++ -MMD -MF "src/common/.deps/FpsMeter.d" -MQ "out/src/common/FpsMeter.o" -MP -O2 -pipe -I/usr/X11R6/include -I/usr/local/include -x c++ -Wall -Wextra -Wno-unused-parameter -Wno-multichar -Wunused -Woverloaded-virtual -Wnon-virtual-dtor -std=c++17 -Weverything -Wno-c++98-compat-pedantic -Wno-unknown-warning-option -Wno-switch-enum -Wno-conversion -Wno-covered-switch-default -Wno-inconsistent-missing-destructor-override -Wno-float-equal -Wno-exit-time-destructors -Wno-global-constructors -Wno-weak-vtables -Wno-four-char-constants -Wno-padded -Wno-reserved-identifier -Wno-duplicate-enum -fomit-frame-pointer -DSDL_SUPPORT -D_GLIBCXX_USE_CXX11_ABI=1 -DUNIX -DBSPF_UNIX -DGUI_SUPPORT -DWINDOWED_SUPPORT -DSOUND_SUPPORT -DDEBUGGER_SUPPORT -DJOYSTICK_SUPPORT -DCHEATCODE_SUPPORT -DHTTP_LIB_SUPPORT -DPNG_SUPPORT -DZIP_SUPPORT -Isrc/emucore -Isrc/common -Isrc/common/tv_filters -Isrc/emucore/tia -Isrc/emucore/tia/frame-manager -Isrc/json -Isrc/common/repository/sqlite -I/usr/local/include -I/usr/local/include/SDL2 -I/usr/X11R6/include -D_REENTRANT -I/usr/X11R6/include -Isrc/unix -Isrc/gui -Isrc/debugger -Isrc/debugger/gui -Isrc/yacc -Isrc/cheat -Isrc/httplib -c src/common/FpsMeter.cxx -o out/src/common/FpsMeter.o In file included from src/common/FpsMeter.cxx:18: In file included from src/common/FpsMeter.hxx:23: src/common/bspf.hxx:245:37: warning: unsafe pointer arithmetic [-Wunsafe-buffer-usage] const auto pos = std::search(s1.cbegin()+startpos, s1.cend(), ~~~^~~~~~~~ src/common/bspf.hxx:249:56: warning: unsafe pointer arithmetic [-Wunsafe-buffer-usage] return pos == s1.cend() ? string::npos : pos - (s1.cbegin()+startpos); ~~~^~~~~~~~ 2 warnings generated. mkdir -p -p src/common/.deps mkdir -p -p out/src/common c++ -MMD -MF "src/common/.deps/FSNodeZIP.d" -MQ "out/src/common/FSNodeZIP.o" -MP -O2 -pipe -I/usr/X11R6/include -I/usr/local/include -x c++ -Wall -Wextra -Wno-unused-parameter -Wno-multichar -Wunused -Woverloaded-virtual -Wnon-virtual-dtor -std=c++17 -Weverything -Wno-c++98-compat-pedantic -Wno-unknown-warning-option -Wno-switch-enum -Wno-conversion -Wno-covered-switch-default -Wno-inconsistent-missing-destructor-override -Wno-float-equal -Wno-exit-time-destructors -Wno-global-constructors -Wno-weak-vtables -Wno-four-char-constants -Wno-padded -Wno-reserved-identifier -Wno-duplicate-enum -fomit-frame-pointer -DSDL_SUPPORT -D_GLIBCXX_USE_CXX11_ABI=1 -DUNIX -DBSPF_UNIX -DGUI_SUPPORT -DWINDOWED_SUPPORT -DSOUND_SUPPORT -DDEBUGGER_SUPPORT -DJOYSTICK_SUPPORT -DCHEATCODE_SUPPORT -DHTTP_LIB_SUPPORT -DPNG_SUPPORT -DZIP_SUPPORT -Isrc/emucore -Isrc/common -Isrc/common/tv_filters -Isrc/emucore/tia -Isrc/emucore/tia/frame-manager -Isrc/json -Isrc/common/repository/sqlite -I/usr/local/include -I/usr/local/include/SDL2 -I/usr/X11R6/include -D_REENTRANT -I/usr/X11R6/include -Isrc/unix -Isrc/gui -Isrc/debugger -Isrc/debugger/gui -Isrc/yacc -Isrc/cheat -Isrc/httplib -c src/common/FSNodeZIP.cxx -o out/src/common/FSNodeZIP.o In file included from src/common/FSNodeZIP.cxx:22: src/common/bspf.hxx:245:37: warning: unsafe pointer arithmetic [-Wunsafe-buffer-usage] const auto pos = std::search(s1.cbegin()+startpos, s1.cend(), ~~~^~~~~~~~ src/common/bspf.hxx:249:56: warning: unsafe pointer arithmetic [-Wunsafe-buffer-usage] return pos == s1.cend() ? string::npos : pos - (s1.cbegin()+startpos); ~~~^~~~~~~~ In file included from src/common/FSNodeZIP.cxx:23: In file included from src/emucore/Bankswitch.hxx:23: src/emucore/FSNode.hxx:513:31: warning: unsafe pointer arithmetic [-Wunsafe-buffer-usage] const char* cur = start + str.size() - 2; ~~~~~~^~~~~~~~~~~~ src/emucore/FSNode.hxx:512:19: warning: 'start' is an unsafe pointer used for buffer access [-Wunsafe-buffer-usage] const char* start = str.c_str(); ~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~ src/emucore/FSNode.hxx:513:25: note: used in pointer arithmetic here const char* cur = start + str.size() - 2; ^~~~~ src/emucore/FSNode.hxx:513:19: warning: 'cur' is an unsafe pointer used for buffer access [-Wunsafe-buffer-usage] const char* cur = start + str.size() - 2; ~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~ src/emucore/FSNode.hxx:518:14: note: used in pointer arithmetic here return cur + 1; ^~~ src/emucore/FSNode.hxx:516:11: note: used in pointer arithmetic here --cur; ^~~ In file included from src/common/FSNodeZIP.cxx:25: In file included from src/common/FSNodeFactory.hxx:24: In file included from src/common/FSNodeZIP.hxx:23: src/common/ZipHandler.hxx:158:18: warning: unsafe buffer access [-Wunsafe-buffer-usage] return myBuf[offs]; ^~~~~ src/common/ZipHandler.hxx:162:39: warning: unsafe buffer access [-Wunsafe-buffer-usage] return (static_cast(myBuf[offs + 1]) << 8) | ^~~~~ src/common/ZipHandler.hxx:163:39: warning: unsafe buffer access [-Wunsafe-buffer-usage] (static_cast(myBuf[offs + 0]) << 0); ^~~~~ src/common/ZipHandler.hxx:167:39: warning: unsafe buffer access [-Wunsafe-buffer-usage] return (static_cast(myBuf[offs + 3]) << 24) | ^~~~~ src/common/ZipHandler.hxx:168:39: warning: unsafe buffer access [-Wunsafe-buffer-usage] (static_cast(myBuf[offs + 2]) << 16) | ^~~~~ src/common/ZipHandler.hxx:169:39: warning: unsafe buffer access [-Wunsafe-buffer-usage] (static_cast(myBuf[offs + 1]) << 8) | ^~~~~ src/common/ZipHandler.hxx:170:39: warning: unsafe buffer access [-Wunsafe-buffer-usage] (static_cast(myBuf[offs + 0]) << 0); ^~~~~ src/common/ZipHandler.hxx:174:39: warning: unsafe buffer access [-Wunsafe-buffer-usage] return (static_cast(myBuf[offs + 7]) << 56) | ^~~~~ src/common/ZipHandler.hxx:175:39: warning: unsafe buffer access [-Wunsafe-buffer-usage] (static_cast(myBuf[offs + 6]) << 48) | ^~~~~ src/common/ZipHandler.hxx:176:39: warning: unsafe buffer access [-Wunsafe-buffer-usage] (static_cast(myBuf[offs + 5]) << 40) | ^~~~~ src/common/ZipHandler.hxx:177:39: warning: unsafe buffer access [-Wunsafe-buffer-usage] (static_cast(myBuf[offs + 4]) << 32) | ^~~~~ src/common/ZipHandler.hxx:178:39: warning: unsafe buffer access [-Wunsafe-buffer-usage] (static_cast(myBuf[offs + 3]) << 24) | ^~~~~ src/common/ZipHandler.hxx:179:39: warning: unsafe buffer access [-Wunsafe-buffer-usage] (static_cast(myBuf[offs + 2]) << 16) | ^~~~~ src/common/ZipHandler.hxx:180:39: warning: unsafe buffer access [-Wunsafe-buffer-usage] (static_cast(myBuf[offs + 1]) << 8) | ^~~~~ src/common/ZipHandler.hxx:181:39: warning: unsafe buffer access [-Wunsafe-buffer-usage] (static_cast(myBuf[offs + 0]) << 0); ^~~~~ src/common/ZipHandler.hxx:185:56: warning: unsafe pointer arithmetic [-Wunsafe-buffer-usage] return string(reinterpret_cast(myBuf + offs), len); ^~~~~ 21 warnings generated. mkdir -p -p src/common/.deps mkdir -p -p out/src/common c++ -MMD -MF "src/common/.deps/HighScoresManager.d" -MQ "out/src/common/HighScoresManager.o" -MP -O2 -pipe -I/usr/X11R6/include -I/usr/local/include -x c++ -Wall -Wextra -Wno-unused-parameter -Wno-multichar -Wunused -Woverloaded-virtual -Wnon-virtual-dtor -std=c++17 -Weverything -Wno-c++98-compat-pedantic -Wno-unknown-warning-option -Wno-switch-enum -Wno-conversion -Wno-covered-switch-default -Wno-inconsistent-missing-destructor-override -Wno-float-equal -Wno-exit-time-destructors -Wno-global-constructors -Wno-weak-vtables -Wno-four-char-constants -Wno-padded -Wno-reserved-identifier -Wno-duplicate-enum -fomit-frame-pointer -DSDL_SUPPORT -D_GLIBCXX_USE_CXX11_ABI=1 -DUNIX -DBSPF_UNIX -DGUI_SUPPORT -DWINDOWED_SUPPORT -DSOUND_SUPPORT -DDEBUGGER_SUPPORT -DJOYSTICK_SUPPORT -DCHEATCODE_SUPPORT -DHTTP_LIB_SUPPORT -DPNG_SUPPORT -DZIP_SUPPORT -Isrc/emucore -Isrc/common -Isrc/common/tv_filters -Isrc/emucore/tia -Isrc/emucore/tia/frame-manager -Isrc/json -Isrc/common/repository/sqlite -I/usr/local/include -I/usr/local/include/SDL2 -I/usr/X11R6/include -D_REENTRANT -I/usr/X11R6/include -Isrc/unix -Isrc/gui -Isrc/debugger -Isrc/debugger/gui -Isrc/yacc -Isrc/cheat -Isrc/httplib -c src/common/HighScoresManager.cxx -o out/src/common/HighScoresManager.o In file included from src/common/HighScoresManager.cxx:45: In file included from src/emucore/OSystem.hxx:55: In file included from src/emucore/FSNode.hxx:23: src/common/bspf.hxx:245:37: warning: unsafe pointer arithmetic [-Wunsafe-buffer-usage] const auto pos = std::search(s1.cbegin()+startpos, s1.cend(), ~~~^~~~~~~~ src/common/bspf.hxx:249:56: warning: unsafe pointer arithmetic [-Wunsafe-buffer-usage] return pos == s1.cend() ? string::npos : pos - (s1.cbegin()+startpos); ~~~^~~~~~~~ In file included from src/common/HighScoresManager.cxx:45: In file included from src/emucore/OSystem.hxx:55: src/emucore/FSNode.hxx:513:31: warning: unsafe pointer arithmetic [-Wunsafe-buffer-usage] const char* cur = start + str.size() - 2; ~~~~~~^~~~~~~~~~~~ src/emucore/FSNode.hxx:512:19: warning: 'start' is an unsafe pointer used for buffer access [-Wunsafe-buffer-usage] const char* start = str.c_str(); ~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~ src/emucore/FSNode.hxx:513:25: note: used in pointer arithmetic here const char* cur = start + str.size() - 2; ^~~~~ src/emucore/FSNode.hxx:513:19: warning: 'cur' is an unsafe pointer used for buffer access [-Wunsafe-buffer-usage] const char* cur = start + str.size() - 2; ~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~ src/emucore/FSNode.hxx:518:14: note: used in pointer arithmetic here return cur + 1; ^~~ src/emucore/FSNode.hxx:516:11: note: used in pointer arithmetic here --cur; ^~~ In file included from src/common/HighScoresManager.cxx:50: In file included from src/gui/Launcher.hxx:27: In file included from src/gui/DialogContainer.hxx:26: In file included from src/common/StellaKeys.hxx:22: In file included from src/common/SDL_lib.hxx:34: In file included from /usr/local/include/SDL2/SDL.h:32: In file included from /usr/local/include/SDL2/SDL_main.h:25: /usr/local/include/SDL2/SDL_stdinc.h:544:13: warning: '_p' is an unsafe pointer used for buffer access [-Wunsafe-buffer-usage] Uint32 *_p = SDL_static_cast(Uint32 *, dst); ~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /usr/local/include/SDL2/SDL_stdinc.h:553:26: note: used in pointer arithmetic here case 1: *_p++ = _val; ^~ /usr/local/include/SDL2/SDL_stdinc.h:552:26: note: used in pointer arithmetic here case 2: *_p++ = _val; SDL_FALLTHROUGH; ^~ /usr/local/include/SDL2/SDL_stdinc.h:550:26: note: used in pointer arithmetic here case 0: do { *_p++ = _val; SDL_FALLTHROUGH; ^~ /usr/local/include/SDL2/SDL_stdinc.h:551:26: note: used in pointer arithmetic here case 3: *_p++ = _val; SDL_FALLTHROUGH; ^~ src/common/HighScoresManager.cxx:573:38: warning: unsafe buffer access [-Wunsafe-buffer-usage] for(uInt32 r = 0; r < NUM_RANKS && data.scores[r].score; ++r) ^~~~~~~~~~~ src/common/HighScoresManager.cxx:575:12: warning: unsafe buffer access [-Wunsafe-buffer-usage] buf << data.scores[r].score ^~~~~~~~~~~ src/common/HighScoresManager.cxx:576:10: warning: unsafe buffer access [-Wunsafe-buffer-usage] << data.scores[r].special ^~~~~~~~~~~ src/common/HighScoresManager.cxx:577:10: warning: unsafe buffer access [-Wunsafe-buffer-usage] << data.scores[r].name ^~~~~~~~~~~ src/common/HighScoresManager.cxx:578:10: warning: unsafe buffer access [-Wunsafe-buffer-usage] << data.scores[r].date; ^~~~~~~~~~~ src/common/HighScoresManager.cxx:599:40: warning: unsafe buffer access [-Wunsafe-buffer-usage] for(uInt32 r = 0; r < NUM_RANKS && data.scores[r].score; ++r) ^~~~~~~~~~~ src/common/HighScoresManager.cxx:603:23: warning: unsafe buffer access [-Wunsafe-buffer-usage] jScore[SCORE] = data.scores[r].score; ^~~~~~~~~~~ src/common/HighScoresManager.cxx:604:25: warning: unsafe buffer access [-Wunsafe-buffer-usage] jScore[SPECIAL] = data.scores[r].special; ^~~~~~~~~~~ src/common/HighScoresManager.cxx:605:22: warning: unsafe buffer access [-Wunsafe-buffer-usage] jScore[NAME] = data.scores[r].name; ^~~~~~~~~~~ src/common/HighScoresManager.cxx:606:22: warning: unsafe buffer access [-Wunsafe-buffer-usage] jScore[DATE] = data.scores[r].date; ^~~~~~~~~~~ src/common/HighScoresManager.cxx:686:9: warning: unsafe buffer access [-Wunsafe-buffer-usage] data.scores[r].score = jScore.at(SCORE).get(); ^~~~~~~~~~~ src/common/HighScoresManager.cxx:688:9: warning: unsafe buffer access [-Wunsafe-buffer-usage] data.scores[r].special = jScore.at(SPECIAL).get(); ^~~~~~~~~~~ src/common/HighScoresManager.cxx:690:9: warning: unsafe buffer access [-Wunsafe-buffer-usage] data.scores[r].name = jScore.at(NAME).get(); ^~~~~~~~~~~ src/common/HighScoresManager.cxx:692:9: warning: unsafe buffer access [-Wunsafe-buffer-usage] data.scores[r].date = jScore.at(DATE).get(); ^~~~~~~~~~~ src/common/HighScoresManager.cxx:706:5: warning: unsafe buffer access [-Wunsafe-buffer-usage] data.scores[r].score = 0; ^~~~~~~~~~~ src/common/HighScoresManager.cxx:707:5: warning: unsafe buffer access [-Wunsafe-buffer-usage] data.scores[r].special = 0; ^~~~~~~~~~~ src/common/HighScoresManager.cxx:708:5: warning: unsafe buffer access [-Wunsafe-buffer-usage] data.scores[r].name = ""; ^~~~~~~~~~~ src/common/HighScoresManager.cxx:709:5: warning: unsafe buffer access [-Wunsafe-buffer-usage] data.scores[r].date = ""; ^~~~~~~~~~~ 24 warnings generated. mkdir -p -p src/common/.deps mkdir -p -p out/src/common c++ -MMD -MF "src/common/.deps/JoyMap.d" -MQ "out/src/common/JoyMap.o" -MP -O2 -pipe -I/usr/X11R6/include -I/usr/local/include -x c++ -Wall -Wextra -Wno-unused-parameter -Wno-multichar -Wunused -Woverloaded-virtual -Wnon-virtual-dtor -std=c++17 -Weverything -Wno-c++98-compat-pedantic -Wno-unknown-warning-option -Wno-switch-enum -Wno-conversion -Wno-covered-switch-default -Wno-inconsistent-missing-destructor-override -Wno-float-equal -Wno-exit-time-destructors -Wno-global-constructors -Wno-weak-vtables -Wno-four-char-constants -Wno-padded -Wno-reserved-identifier -Wno-duplicate-enum -fomit-frame-pointer -DSDL_SUPPORT -D_GLIBCXX_USE_CXX11_ABI=1 -DUNIX -DBSPF_UNIX -DGUI_SUPPORT -DWINDOWED_SUPPORT -DSOUND_SUPPORT -DDEBUGGER_SUPPORT -DJOYSTICK_SUPPORT -DCHEATCODE_SUPPORT -DHTTP_LIB_SUPPORT -DPNG_SUPPORT -DZIP_SUPPORT -Isrc/emucore -Isrc/common -Isrc/common/tv_filters -Isrc/emucore/tia -Isrc/emucore/tia/frame-manager -Isrc/json -Isrc/common/repository/sqlite -I/usr/local/include -I/usr/local/include/SDL2 -I/usr/X11R6/include -D_REENTRANT -I/usr/X11R6/include -Isrc/unix -Isrc/gui -Isrc/debugger -Isrc/debugger/gui -Isrc/yacc -Isrc/cheat -Isrc/httplib -c src/common/JoyMap.cxx -o out/src/common/JoyMap.o In file included from src/common/JoyMap.cxx:18: In file included from src/common/JoyMap.hxx:23: In file included from src/emucore/Event.hxx:24: src/common/bspf.hxx:245:37: warning: unsafe pointer arithmetic [-Wunsafe-buffer-usage] const auto pos = std::search(s1.cbegin()+startpos, s1.cend(), ~~~^~~~~~~~ src/common/bspf.hxx:249:56: warning: unsafe pointer arithmetic [-Wunsafe-buffer-usage] return pos == s1.cend() ? string::npos : pos - (s1.cbegin()+startpos); ~~~^~~~~~~~ In file included from src/common/JoyMap.cxx:19: In file included from src/common/jsonDefinitions.hxx:24: In file included from src/common/StellaKeys.hxx:22: In file included from src/common/SDL_lib.hxx:34: In file included from /usr/local/include/SDL2/SDL.h:32: In file included from /usr/local/include/SDL2/SDL_main.h:25: /usr/local/include/SDL2/SDL_stdinc.h:544:13: warning: '_p' is an unsafe pointer used for buffer access [-Wunsafe-buffer-usage] Uint32 *_p = SDL_static_cast(Uint32 *, dst); ~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /usr/local/include/SDL2/SDL_stdinc.h:552:26: note: used in pointer arithmetic here case 2: *_p++ = _val; SDL_FALLTHROUGH; ^~ /usr/local/include/SDL2/SDL_stdinc.h:551:26: note: used in pointer arithmetic here case 3: *_p++ = _val; SDL_FALLTHROUGH; ^~ /usr/local/include/SDL2/SDL_stdinc.h:553:26: note: used in pointer arithmetic here case 1: *_p++ = _val; ^~ /usr/local/include/SDL2/SDL_stdinc.h:550:26: note: used in pointer arithmetic here case 0: do { *_p++ = _val; SDL_FALLTHROUGH; ^~ 3 warnings generated. mkdir -p -p src/common/.deps mkdir -p -p out/src/common c++ -MMD -MF "src/common/.deps/KeyMap.d" -MQ "out/src/common/KeyMap.o" -MP -O2 -pipe -I/usr/X11R6/include -I/usr/local/include -x c++ -Wall -Wextra -Wno-unused-parameter -Wno-multichar -Wunused -Woverloaded-virtual -Wnon-virtual-dtor -std=c++17 -Weverything -Wno-c++98-compat-pedantic -Wno-unknown-warning-option -Wno-switch-enum -Wno-conversion -Wno-covered-switch-default -Wno-inconsistent-missing-destructor-override -Wno-float-equal -Wno-exit-time-destructors -Wno-global-constructors -Wno-weak-vtables -Wno-four-char-constants -Wno-padded -Wno-reserved-identifier -Wno-duplicate-enum -fomit-frame-pointer -DSDL_SUPPORT -D_GLIBCXX_USE_CXX11_ABI=1 -DUNIX -DBSPF_UNIX -DGUI_SUPPORT -DWINDOWED_SUPPORT -DSOUND_SUPPORT -DDEBUGGER_SUPPORT -DJOYSTICK_SUPPORT -DCHEATCODE_SUPPORT -DHTTP_LIB_SUPPORT -DPNG_SUPPORT -DZIP_SUPPORT -Isrc/emucore -Isrc/common -Isrc/common/tv_filters -Isrc/emucore/tia -Isrc/emucore/tia/frame-manager -Isrc/json -Isrc/common/repository/sqlite -I/usr/local/include -I/usr/local/include/SDL2 -I/usr/X11R6/include -D_REENTRANT -I/usr/X11R6/include -Isrc/unix -Isrc/gui -Isrc/debugger -Isrc/debugger/gui -Isrc/yacc -Isrc/cheat -Isrc/httplib -c src/common/KeyMap.cxx -o out/src/common/KeyMap.o In file included from src/common/KeyMap.cxx:18: In file included from src/common/KeyMap.hxx:22: In file included from src/emucore/Event.hxx:24: src/common/bspf.hxx:245:37: warning: unsafe pointer arithmetic [-Wunsafe-buffer-usage] const auto pos = std::search(s1.cbegin()+startpos, s1.cend(), ~~~^~~~~~~~ src/common/bspf.hxx:249:56: warning: unsafe pointer arithmetic [-Wunsafe-buffer-usage] return pos == s1.cend() ? string::npos : pos - (s1.cbegin()+startpos); ~~~^~~~~~~~ In file included from src/common/KeyMap.cxx:18: In file included from src/common/KeyMap.hxx:24: In file included from src/common/StellaKeys.hxx:22: In file included from src/common/SDL_lib.hxx:34: In file included from /usr/local/include/SDL2/SDL.h:32: In file included from /usr/local/include/SDL2/SDL_main.h:25: /usr/local/include/SDL2/SDL_stdinc.h:544:13: warning: '_p' is an unsafe pointer used for buffer access [-Wunsafe-buffer-usage] Uint32 *_p = SDL_static_cast(Uint32 *, dst); ~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /usr/local/include/SDL2/SDL_stdinc.h:553:26: note: used in pointer arithmetic here case 1: *_p++ = _val; ^~ /usr/local/include/SDL2/SDL_stdinc.h:552:26: note: used in pointer arithmetic here case 2: *_p++ = _val; SDL_FALLTHROUGH; ^~ /usr/local/include/SDL2/SDL_stdinc.h:551:26: note: used in pointer arithmetic here case 3: *_p++ = _val; SDL_FALLTHROUGH; ^~ /usr/local/include/SDL2/SDL_stdinc.h:550:26: note: used in pointer arithmetic here case 0: do { *_p++ = _val; SDL_FALLTHROUGH; ^~ 3 warnings generated. mkdir -p -p src/common/.deps mkdir -p -p out/src/common c++ -MMD -MF "src/common/.deps/Logger.d" -MQ "out/src/common/Logger.o" -MP -O2 -pipe -I/usr/X11R6/include -I/usr/local/include -x c++ -Wall -Wextra -Wno-unused-parameter -Wno-multichar -Wunused -Woverloaded-virtual -Wnon-virtual-dtor -std=c++17 -Weverything -Wno-c++98-compat-pedantic -Wno-unknown-warning-option -Wno-switch-enum -Wno-conversion -Wno-covered-switch-default -Wno-inconsistent-missing-destructor-override -Wno-float-equal -Wno-exit-time-destructors -Wno-global-constructors -Wno-weak-vtables -Wno-four-char-constants -Wno-padded -Wno-reserved-identifier -Wno-duplicate-enum -fomit-frame-pointer -DSDL_SUPPORT -D_GLIBCXX_USE_CXX11_ABI=1 -DUNIX -DBSPF_UNIX -DGUI_SUPPORT -DWINDOWED_SUPPORT -DSOUND_SUPPORT -DDEBUGGER_SUPPORT -DJOYSTICK_SUPPORT -DCHEATCODE_SUPPORT -DHTTP_LIB_SUPPORT -DPNG_SUPPORT -DZIP_SUPPORT -Isrc/emucore -Isrc/common -Isrc/common/tv_filters -Isrc/emucore/tia -Isrc/emucore/tia/frame-manager -Isrc/json -Isrc/common/repository/sqlite -I/usr/local/include -I/usr/local/include/SDL2 -I/usr/X11R6/include -D_REENTRANT -I/usr/X11R6/include -Isrc/unix -Isrc/gui -Isrc/debugger -Isrc/debugger/gui -Isrc/yacc -Isrc/cheat -Isrc/httplib -c src/common/Logger.cxx -o out/src/common/Logger.o In file included from src/common/Logger.cxx:18: In file included from src/common/Logger.hxx:24: src/common/bspf.hxx:245:37: warning: unsafe pointer arithmetic [-Wunsafe-buffer-usage] const auto pos = std::search(s1.cbegin()+startpos, s1.cend(), ~~~^~~~~~~~ src/common/bspf.hxx:249:56: warning: unsafe pointer arithmetic [-Wunsafe-buffer-usage] return pos == s1.cend() ? string::npos : pos - (s1.cbegin()+startpos); ~~~^~~~~~~~ 2 warnings generated. mkdir -p -p src/common/.deps mkdir -p -p out/src/common c++ -MMD -MF "src/common/.deps/main.d" -MQ "out/src/common/main.o" -MP -O2 -pipe -I/usr/X11R6/include -I/usr/local/include -x c++ -Wall -Wextra -Wno-unused-parameter -Wno-multichar -Wunused -Woverloaded-virtual -Wnon-virtual-dtor -std=c++17 -Weverything -Wno-c++98-compat-pedantic -Wno-unknown-warning-option -Wno-switch-enum -Wno-conversion -Wno-covered-switch-default -Wno-inconsistent-missing-destructor-override -Wno-float-equal -Wno-exit-time-destructors -Wno-global-constructors -Wno-weak-vtables -Wno-four-char-constants -Wno-padded -Wno-reserved-identifier -Wno-duplicate-enum -fomit-frame-pointer -DSDL_SUPPORT -D_GLIBCXX_USE_CXX11_ABI=1 -DUNIX -DBSPF_UNIX -DGUI_SUPPORT -DWINDOWED_SUPPORT -DSOUND_SUPPORT -DDEBUGGER_SUPPORT -DJOYSTICK_SUPPORT -DCHEATCODE_SUPPORT -DHTTP_LIB_SUPPORT -DPNG_SUPPORT -DZIP_SUPPORT -Isrc/emucore -Isrc/common -Isrc/common/tv_filters -Isrc/emucore/tia -Isrc/emucore/tia/frame-manager -Isrc/json -Isrc/common/repository/sqlite -I/usr/local/include -I/usr/local/include/SDL2 -I/usr/X11R6/include -D_REENTRANT -I/usr/X11R6/include -Isrc/unix -Isrc/gui -Isrc/debugger -Isrc/debugger/gui -Isrc/yacc -Isrc/cheat -Isrc/httplib -c src/common/main.cxx -o out/src/common/main.o In file included from src/common/main.cxx:20: src/common/bspf.hxx:245:37: warning: unsafe pointer arithmetic [-Wunsafe-buffer-usage] const auto pos = std::search(s1.cbegin()+startpos, s1.cend(), ~~~^~~~~~~~ src/common/bspf.hxx:249:56: warning: unsafe pointer arithmetic [-Wunsafe-buffer-usage] return pos == s1.cend() ? string::npos : pos - (s1.cbegin()+startpos); ~~~^~~~~~~~ In file included from src/common/main.cxx:22: In file included from src/common/MediaFactory.hxx:23: In file included from src/common/SDL_lib.hxx:34: In file included from /usr/local/include/SDL2/SDL.h:32: In file included from /usr/local/include/SDL2/SDL_main.h:25: /usr/local/include/SDL2/SDL_stdinc.h:544:13: warning: '_p' is an unsafe pointer used for buffer access [-Wunsafe-buffer-usage] Uint32 *_p = SDL_static_cast(Uint32 *, dst); ~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /usr/local/include/SDL2/SDL_stdinc.h:553:26: note: used in pointer arithmetic here case 1: *_p++ = _val; ^~ /usr/local/include/SDL2/SDL_stdinc.h:552:26: note: used in pointer arithmetic here case 2: *_p++ = _val; SDL_FALLTHROUGH; ^~ /usr/local/include/SDL2/SDL_stdinc.h:550:26: note: used in pointer arithmetic here case 0: do { *_p++ = _val; SDL_FALLTHROUGH; ^~ /usr/local/include/SDL2/SDL_stdinc.h:551:26: note: used in pointer arithmetic here case 3: *_p++ = _val; SDL_FALLTHROUGH; ^~ In file included from src/common/main.cxx:22: In file included from src/common/MediaFactory.hxx:26: In file included from src/emucore/OSystem.hxx:55: src/emucore/FSNode.hxx:513:31: warning: unsafe pointer arithmetic [-Wunsafe-buffer-usage] const char* cur = start + str.size() - 2; ~~~~~~^~~~~~~~~~~~ src/emucore/FSNode.hxx:512:19: warning: 'start' is an unsafe pointer used for buffer access [-Wunsafe-buffer-usage] const char* start = str.c_str(); ~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~ src/emucore/FSNode.hxx:513:25: note: used in pointer arithmetic here const char* cur = start + str.size() - 2; ^~~~~ src/emucore/FSNode.hxx:513:19: warning: 'cur' is an unsafe pointer used for buffer access [-Wunsafe-buffer-usage] const char* cur = start + str.size() - 2; ~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~ src/emucore/FSNode.hxx:518:14: note: used in pointer arithmetic here return cur + 1; ^~~ src/emucore/FSNode.hxx:516:11: note: used in pointer arithmetic here --cur; ^~~ In file included from src/common/main.cxx:34: In file included from src/emucore/TIASurface.hxx:31: In file included from src/common/tv_filters/NTSCFilter.hxx:25: src/common/tv_filters/AtariNTSC.hxx:238:22: warning: 'to_rgb' is an unsafe pointer used for buffer access [-Wunsafe-buffer-usage] const float* to_rgb, int& ir, int& ig, int& ib) { ~~~~~~~~~~~~~^~~~~~ src/common/tv_filters/AtariNTSC.hxx:240:49: note: used in buffer access here ig = static_cast(y + to_rgb[2] * i + to_rgb[3] * q); ^~~~~~ src/common/tv_filters/AtariNTSC.hxx:240:33: note: used in buffer access here ig = static_cast(y + to_rgb[2] * i + to_rgb[3] * q); ^~~~~~ src/common/tv_filters/AtariNTSC.hxx:239:49: note: used in buffer access here ir = static_cast(y + to_rgb[0] * i + to_rgb[1] * q); ^~~~~~ src/common/tv_filters/AtariNTSC.hxx:241:33: note: used in buffer access here ib = static_cast(y + to_rgb[4] * i + to_rgb[5] * q); ^~~~~~ src/common/tv_filters/AtariNTSC.hxx:241:49: note: used in buffer access here ib = static_cast(y + to_rgb[4] * i + to_rgb[5] * q); ^~~~~~ src/common/main.cxx:78:37: warning: 'av' is an unsafe pointer used for buffer access [-Wunsafe-buffer-usage] void parseCommandLine(int ac, char* av[], ~~~~~~^~~~ src/common/main.cxx:116:26: note: used in buffer access here localOpts[key] = av[i]; ^~ src/common/main.cxx:85:18: note: used in buffer access here string key = av[i]; ^~ src/common/main.cxx:118:27: note: used in buffer access here globalOpts[key] = av[i]; ^~ src/common/main.cxx:150:35: warning: 'av' is an unsafe pointer used for buffer access [-Wunsafe-buffer-usage] bool isProfilingRun(int ac, char* av[]) { ~~~~~~^~~~ src/common/main.cxx:153:17: note: used in buffer access here return string(av[1]) == "-profile"; ^~ 9 warnings generated. mkdir -p -p src/common/.deps mkdir -p -p out/src/common c++ -MMD -MF "src/common/.deps/MouseControl.d" -MQ "out/src/common/MouseControl.o" -MP -O2 -pipe -I/usr/X11R6/include -I/usr/local/include -x c++ -Wall -Wextra -Wno-unused-parameter -Wno-multichar -Wunused -Woverloaded-virtual -Wnon-virtual-dtor -std=c++17 -Weverything -Wno-c++98-compat-pedantic -Wno-unknown-warning-option -Wno-switch-enum -Wno-conversion -Wno-covered-switch-default -Wno-inconsistent-missing-destructor-override -Wno-float-equal -Wno-exit-time-destructors -Wno-global-constructors -Wno-weak-vtables -Wno-four-char-constants -Wno-padded -Wno-reserved-identifier -Wno-duplicate-enum -fomit-frame-pointer -DSDL_SUPPORT -D_GLIBCXX_USE_CXX11_ABI=1 -DUNIX -DBSPF_UNIX -DGUI_SUPPORT -DWINDOWED_SUPPORT -DSOUND_SUPPORT -DDEBUGGER_SUPPORT -DJOYSTICK_SUPPORT -DCHEATCODE_SUPPORT -DHTTP_LIB_SUPPORT -DPNG_SUPPORT -DZIP_SUPPORT -Isrc/emucore -Isrc/common -Isrc/common/tv_filters -Isrc/emucore/tia -Isrc/emucore/tia/frame-manager -Isrc/json -Isrc/common/repository/sqlite -I/usr/local/include -I/usr/local/include/SDL2 -I/usr/X11R6/include -D_REENTRANT -I/usr/X11R6/include -Isrc/unix -Isrc/gui -Isrc/debugger -Isrc/debugger/gui -Isrc/yacc -Isrc/cheat -Isrc/httplib -c src/common/MouseControl.cxx -o out/src/common/MouseControl.o In file included from src/common/MouseControl.cxx:18: In file included from src/emucore/Console.hxx:34: src/common/bspf.hxx:245:37: warning: unsafe pointer arithmetic [-Wunsafe-buffer-usage] const auto pos = std::search(s1.cbegin()+startpos, s1.cend(), ~~~^~~~~~~~ src/common/bspf.hxx:249:56: warning: unsafe pointer arithmetic [-Wunsafe-buffer-usage] return pos == s1.cend() ? string::npos : pos - (s1.cbegin()+startpos); ~~~^~~~~~~~ 2 warnings generated. mkdir -p -p src/common/.deps mkdir -p -p out/src/common c++ -MMD -MF "src/common/.deps/PaletteHandler.d" -MQ "out/src/common/PaletteHandler.o" -MP -O2 -pipe -I/usr/X11R6/include -I/usr/local/include -x c++ -Wall -Wextra -Wno-unused-parameter -Wno-multichar -Wunused -Woverloaded-virtual -Wnon-virtual-dtor -std=c++17 -Weverything -Wno-c++98-compat-pedantic -Wno-unknown-warning-option -Wno-switch-enum -Wno-conversion -Wno-covered-switch-default -Wno-inconsistent-missing-destructor-override -Wno-float-equal -Wno-exit-time-destructors -Wno-global-constructors -Wno-weak-vtables -Wno-four-char-constants -Wno-padded -Wno-reserved-identifier -Wno-duplicate-enum -fomit-frame-pointer -DSDL_SUPPORT -D_GLIBCXX_USE_CXX11_ABI=1 -DUNIX -DBSPF_UNIX -DGUI_SUPPORT -DWINDOWED_SUPPORT -DSOUND_SUPPORT -DDEBUGGER_SUPPORT -DJOYSTICK_SUPPORT -DCHEATCODE_SUPPORT -DHTTP_LIB_SUPPORT -DPNG_SUPPORT -DZIP_SUPPORT -Isrc/emucore -Isrc/common -Isrc/common/tv_filters -Isrc/emucore/tia -Isrc/emucore/tia/frame-manager -Isrc/json -Isrc/common/repository/sqlite -I/usr/local/include -I/usr/local/include/SDL2 -I/usr/X11R6/include -D_REENTRANT -I/usr/X11R6/include -Isrc/unix -Isrc/gui -Isrc/debugger -Isrc/debugger/gui -Isrc/yacc -Isrc/cheat -Isrc/httplib -c src/common/PaletteHandler.cxx -o out/src/common/PaletteHandler.o In file included from src/common/PaletteHandler.cxx:20: In file included from src/emucore/Console.hxx:34: src/common/bspf.hxx:245:37: warning: unsafe pointer arithmetic [-Wunsafe-buffer-usage] const auto pos = std::search(s1.cbegin()+startpos, s1.cend(), ~~~^~~~~~~~ src/common/bspf.hxx:249:56: warning: unsafe pointer arithmetic [-Wunsafe-buffer-usage] return pos == s1.cend() ? string::npos : pos - (s1.cbegin()+startpos); ~~~^~~~~~~~ In file included from src/common/PaletteHandler.cxx:23: In file included from src/common/PaletteHandler.hxx:22: In file included from src/emucore/OSystem.hxx:55: src/emucore/FSNode.hxx:513:31: warning: unsafe pointer arithmetic [-Wunsafe-buffer-usage] const char* cur = start + str.size() - 2; ~~~~~~^~~~~~~~~~~~ src/emucore/FSNode.hxx:512:19: warning: 'start' is an unsafe pointer used for buffer access [-Wunsafe-buffer-usage] const char* start = str.c_str(); ~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~ src/emucore/FSNode.hxx:513:25: note: used in pointer arithmetic here const char* cur = start + str.size() - 2; ^~~~~ src/emucore/FSNode.hxx:513:19: warning: 'cur' is an unsafe pointer used for buffer access [-Wunsafe-buffer-usage] const char* cur = start + str.size() - 2; ~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~ src/emucore/FSNode.hxx:516:11: note: used in pointer arithmetic here --cur; ^~~ src/emucore/FSNode.hxx:518:14: note: used in pointer arithmetic here return cur + 1; ^~~ src/common/PaletteHandler.cxx:49:16: warning: 'SETTING_NAMES' is an unsafe buffer that does not perform bounds checks [-Wunsafe-buffer-usage] const string SETTING_NAMES[int(PaletteType::NumTypes)] = { ~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ src/common/PaletteHandler.cxx:53:10: note: used in buffer access here return SETTING_NAMES[type]; ^~~~~~~~~~~~~ src/common/PaletteHandler.cxx:59:16: warning: 'MESSAGES' is an unsafe buffer that does not perform bounds checks [-Wunsafe-buffer-usage] const string MESSAGES[PaletteType::NumTypes] = { ~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ src/common/PaletteHandler.cxx:70:26: note: used in buffer access here const string message = MESSAGES[type] + " palette"; ^~~~~~~~ src/common/PaletteHandler.cxx:410:10: warning: 'pixbuf' is an unsafe pointer used for buffer access [-Wunsafe-buffer-usage] uInt8* pixbuf = in.get(); ~~~~~~~^~~~~~~~~~~~~~~~~ src/common/PaletteHandler.cxx:427:30: note: used in pointer arithmetic here for(int i = 0; i < 8; i++, pixbuf += 3) // SECAM palette ^~~~~~ src/common/PaletteHandler.cxx:431:44: note: used in buffer access here static_cast(pixbuf[2]); ^~~~~~ src/common/PaletteHandler.cxx:430:44: note: used in buffer access here (static_cast(pixbuf[1]) << 8) + ^~~~~~ src/common/PaletteHandler.cxx:411:32: note: used in pointer arithmetic here for(int i = 0; i < 128; i++, pixbuf += 3) // NTSC palette ^~~~~~ src/common/PaletteHandler.cxx:418:32: note: used in pointer arithmetic here for(int i = 0; i < 128; i++, pixbuf += 3) // PAL palette ^~~~~~ src/common/PaletteHandler.cxx:414:44: note: used in buffer access here (static_cast(pixbuf[1]) << 8) + ^~~~~~ src/common/PaletteHandler.cxx:415:44: note: used in buffer access here static_cast(pixbuf[2]); ^~~~~~ src/common/PaletteHandler.cxx:422:44: note: used in buffer access here static_cast(pixbuf[2]); ^~~~~~ src/common/PaletteHandler.cxx:421:44: note: used in buffer access here (static_cast(pixbuf[1]) << 8) + ^~~~~~ src/common/PaletteHandler.cxx:435:11: warning: 'ptr' is an unsafe pointer used for buffer access [-Wunsafe-buffer-usage] uInt32* ptr = ourUserSECAMPalette.data(); ~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ src/common/PaletteHandler.cxx:440:8: note: used in pointer arithmetic here *ptr++ = *s++; ^~~ src/common/PaletteHandler.cxx:438:19: warning: 's' is an unsafe pointer used for buffer access [-Wunsafe-buffer-usage] const uInt32* s = secam.data(); ~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~ src/common/PaletteHandler.cxx:440:17: note: used in pointer arithmetic here *ptr++ = *s++; ^ src/common/PaletteHandler.cxx:455:14: warning: 'IQ' is an unsafe buffer that does not perform bounds checks [-Wunsafe-buffer-usage] vector2d IQ[NUM_CHROMA]; ~~~~~~~~~^~~~~~~~~~~~~~ src/common/PaletteHandler.cxx:476:34: note: used in buffer access here float R = Y + dotProduct(IQ[chroma], IQR); ^~ src/common/PaletteHandler.cxx:477:34: note: used in buffer access here float G = Y + dotProduct(IQ[chroma], IQG); ^~ src/common/PaletteHandler.cxx:463:7: note: used in buffer access here IQ[chroma] = vector2d(SATURATION * sinf(offset + shift * (chroma - 1)), ^~ src/common/PaletteHandler.cxx:478:34: note: used in buffer access here float B = Y + dotProduct(IQ[chroma], IQB); ^~ src/common/PaletteHandler.cxx:502:14: warning: 'UV' is an unsafe buffer that does not perform bounds checks [-Wunsafe-buffer-usage] vector2d UV[NUM_CHROMA]; ~~~~~~~~~^~~~~~~~~~~~~~ src/common/PaletteHandler.cxx:509:7: note: used in buffer access here UV[idx].x = SATURATION * sinf(offset - fixedShift * chroma); ^~ src/common/PaletteHandler.cxx:531:34: note: used in buffer access here float G = Y + dotProduct(UV[chroma], UVG); ^~ src/common/PaletteHandler.cxx:532:34: note: used in buffer access here float B = Y + dotProduct(UV[chroma], UVB); ^~ src/common/PaletteHandler.cxx:530:34: note: used in buffer access here float R = Y + dotProduct(UV[chroma], UVR); ^~ src/common/PaletteHandler.cxx:511:9: note: used in buffer access here UV[idx].y = SATURATION * sinf(offset - shift * (chroma - 3.5F) / 2.F); ^~ src/common/PaletteHandler.cxx:513:9: note: used in buffer access here UV[idx].y = SATURATION * -sinf(offset - shift * chroma / 2.F); ^~ mkdir -p -p src/common/.deps 12 warnings generated. mkdir -p -p out/src/common c++ -MMD -MF "src/common/.deps/PhosphorHandler.d" -MQ "out/src/common/PhosphorHandler.o" -MP -O2 -pipe -I/usr/X11R6/include -I/usr/local/include -x c++ -Wall -Wextra -Wno-unused-parameter -Wno-multichar -Wunused -Woverloaded-virtual -Wnon-virtual-dtor -std=c++17 -Weverything -Wno-c++98-compat-pedantic -Wno-unknown-warning-option -Wno-switch-enum -Wno-conversion -Wno-covered-switch-default -Wno-inconsistent-missing-destructor-override -Wno-float-equal -Wno-exit-time-destructors -Wno-global-constructors -Wno-weak-vtables -Wno-four-char-constants -Wno-padded -Wno-reserved-identifier -Wno-duplicate-enum -fomit-frame-pointer -DSDL_SUPPORT -D_GLIBCXX_USE_CXX11_ABI=1 -DUNIX -DBSPF_UNIX -DGUI_SUPPORT -DWINDOWED_SUPPORT -DSOUND_SUPPORT -DDEBUGGER_SUPPORT -DJOYSTICK_SUPPORT -DCHEATCODE_SUPPORT -DHTTP_LIB_SUPPORT -DPNG_SUPPORT -DZIP_SUPPORT -Isrc/emucore -Isrc/common -Isrc/common/tv_filters -Isrc/emucore/tia -Isrc/emucore/tia/frame-manager -Isrc/json -Isrc/common/repository/sqlite -I/usr/local/include -I/usr/local/include/SDL2 -I/usr/X11R6/include -D_REENTRANT -I/usr/X11R6/include -Isrc/unix -Isrc/gui -Isrc/debugger -Isrc/debugger/gui -Isrc/yacc -Isrc/cheat -Isrc/httplib -c src/common/PhosphorHandler.cxx -o out/src/common/PhosphorHandler.o In file included from src/common/PhosphorHandler.cxx:18: In file included from src/common/PhosphorHandler.hxx:21: In file included from src/emucore/FrameBufferConstants.hxx:21: In file included from src/emucore/tia/TIAConstants.hxx:21: src/common/bspf.hxx:245:37: warning: unsafe pointer arithmetic [-Wunsafe-buffer-usage] const auto pos = std::search(s1.cbegin()+startpos, s1.cend(), ~~~^~~~~~~~ src/common/bspf.hxx:249:56: warning: unsafe pointer arithmetic [-Wunsafe-buffer-usage] return pos == s1.cend() ? string::npos : pos - (s1.cbegin()+startpos); ~~~^~~~~~~~ 2 warnings generated. mkdir -p -p src/common/.deps mkdir -p -p out/src/common c++ -MMD -MF "src/common/.deps/PhysicalJoystick.d" -MQ "out/src/common/PhysicalJoystick.o" -MP -O2 -pipe -I/usr/X11R6/include -I/usr/local/include -x c++ -Wall -Wextra -Wno-unused-parameter -Wno-multichar -Wunused -Woverloaded-virtual -Wnon-virtual-dtor -std=c++17 -Weverything -Wno-c++98-compat-pedantic -Wno-unknown-warning-option -Wno-switch-enum -Wno-conversion -Wno-covered-switch-default -Wno-inconsistent-missing-destructor-override -Wno-float-equal -Wno-exit-time-destructors -Wno-global-constructors -Wno-weak-vtables -Wno-four-char-constants -Wno-padded -Wno-reserved-identifier -Wno-duplicate-enum -fomit-frame-pointer -DSDL_SUPPORT -D_GLIBCXX_USE_CXX11_ABI=1 -DUNIX -DBSPF_UNIX -DGUI_SUPPORT -DWINDOWED_SUPPORT -DSOUND_SUPPORT -DDEBUGGER_SUPPORT -DJOYSTICK_SUPPORT -DCHEATCODE_SUPPORT -DHTTP_LIB_SUPPORT -DPNG_SUPPORT -DZIP_SUPPORT -Isrc/emucore -Isrc/common -Isrc/common/tv_filters -Isrc/emucore/tia -Isrc/emucore/tia/frame-manager -Isrc/json -Isrc/common/repository/sqlite -I/usr/local/include -I/usr/local/include/SDL2 -I/usr/X11R6/include -D_REENTRANT -I/usr/X11R6/include -Isrc/unix -Isrc/gui -Isrc/debugger -Isrc/debugger/gui -Isrc/yacc -Isrc/cheat -Isrc/httplib -c src/common/PhysicalJoystick.cxx -o out/src/common/PhysicalJoystick.o In file included from src/common/PhysicalJoystick.cxx:20: In file included from src/emucore/OSystem.hxx:55: In file included from src/emucore/FSNode.hxx:23: src/common/bspf.hxx:245:37: warning: unsafe pointer arithmetic [-Wunsafe-buffer-usage] const auto pos = std::search(s1.cbegin()+startpos, s1.cend(), ~~~^~~~~~~~ src/common/bspf.hxx:249:56: warning: unsafe pointer arithmetic [-Wunsafe-buffer-usage] return pos == s1.cend() ? string::npos : pos - (s1.cbegin()+startpos); ~~~^~~~~~~~ In file included from src/common/PhysicalJoystick.cxx:20: In file included from src/emucore/OSystem.hxx:55: src/emucore/FSNode.hxx:513:31: warning: unsafe pointer arithmetic [-Wunsafe-buffer-usage] const char* cur = start + str.size() - 2; ~~~~~~^~~~~~~~~~~~ src/emucore/FSNode.hxx:512:19: warning: 'start' is an unsafe pointer used for buffer access [-Wunsafe-buffer-usage] const char* start = str.c_str(); ~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~ src/emucore/FSNode.hxx:513:25: note: used in pointer arithmetic here const char* cur = start + str.size() - 2; ^~~~~ src/emucore/FSNode.hxx:513:19: warning: 'cur' is an unsafe pointer used for buffer access [-Wunsafe-buffer-usage] const char* cur = start + str.size() - 2; ~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~ src/emucore/FSNode.hxx:518:14: note: used in pointer arithmetic here return cur + 1; ^~~ src/emucore/FSNode.hxx:516:11: note: used in pointer arithmetic here --cur; ^~~ In file included from src/common/PhysicalJoystick.cxx:25: In file included from src/common/jsonDefinitions.hxx:24: In file included from src/common/StellaKeys.hxx:22: In file included from src/common/SDL_lib.hxx:34: In file included from /usr/local/include/SDL2/SDL.h:32: In file included from /usr/local/include/SDL2/SDL_main.h:25: /usr/local/include/SDL2/SDL_stdinc.h:544:13: warning: '_p' is an unsafe pointer used for buffer access [-Wunsafe-buffer-usage] Uint32 *_p = SDL_static_cast(Uint32 *, dst); ~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /usr/local/include/SDL2/SDL_stdinc.h:550:26: note: used in pointer arithmetic here case 0: do { *_p++ = _val; SDL_FALLTHROUGH; ^~ /usr/local/include/SDL2/SDL_stdinc.h:553:26: note: used in pointer arithmetic here case 1: *_p++ = _val; ^~ /usr/local/include/SDL2/SDL_stdinc.h:551:26: note: used in pointer arithmetic here case 3: *_p++ = _val; SDL_FALLTHROUGH; ^~ /usr/local/include/SDL2/SDL_stdinc.h:552:26: note: used in pointer arithmetic here case 2: *_p++ = _val; SDL_FALLTHROUGH; ^~ 6 warnings generated. mkdir -p -p src/common/.deps mkdir -p -p out/src/common c++ -MMD -MF "src/common/.deps/PJoystickHandler.d" -MQ "out/src/common/PJoystickHandler.o" -MP -O2 -pipe -I/usr/X11R6/include -I/usr/local/include -x c++ -Wall -Wextra -Wno-unused-parameter -Wno-multichar -Wunused -Woverloaded-virtual -Wnon-virtual-dtor -std=c++17 -Weverything -Wno-c++98-compat-pedantic -Wno-unknown-warning-option -Wno-switch-enum -Wno-conversion -Wno-covered-switch-default -Wno-inconsistent-missing-destructor-override -Wno-float-equal -Wno-exit-time-destructors -Wno-global-constructors -Wno-weak-vtables -Wno-four-char-constants -Wno-padded -Wno-reserved-identifier -Wno-duplicate-enum -fomit-frame-pointer -DSDL_SUPPORT -D_GLIBCXX_USE_CXX11_ABI=1 -DUNIX -DBSPF_UNIX -DGUI_SUPPORT -DWINDOWED_SUPPORT -DSOUND_SUPPORT -DDEBUGGER_SUPPORT -DJOYSTICK_SUPPORT -DCHEATCODE_SUPPORT -DHTTP_LIB_SUPPORT -DPNG_SUPPORT -DZIP_SUPPORT -Isrc/emucore -Isrc/common -Isrc/common/tv_filters -Isrc/emucore/tia -Isrc/emucore/tia/frame-manager -Isrc/json -Isrc/common/repository/sqlite -I/usr/local/include -I/usr/local/include/SDL2 -I/usr/X11R6/include -D_REENTRANT -I/usr/X11R6/include -Isrc/unix -Isrc/gui -Isrc/debugger -Isrc/debugger/gui -Isrc/yacc -Isrc/cheat -Isrc/httplib -c src/common/PJoystickHandler.cxx -o out/src/common/PJoystickHandler.o In file included from src/common/PJoystickHandler.cxx:18: In file included from src/common/Logger.hxx:24: src/common/bspf.hxx:245:37: warning: unsafe pointer arithmetic [-Wunsafe-buffer-usage] const auto pos = std::search(s1.cbegin()+startpos, s1.cend(), ~~~^~~~~~~~ src/common/bspf.hxx:249:56: warning: unsafe pointer arithmetic [-Wunsafe-buffer-usage] return pos == s1.cend() ? string::npos : pos - (s1.cbegin()+startpos); ~~~^~~~~~~~ In file included from src/common/PJoystickHandler.cxx:19: In file included from src/emucore/OSystem.hxx:55: src/emucore/FSNode.hxx:513:31: warning: unsafe pointer arithmetic [-Wunsafe-buffer-usage] const char* cur = start + str.size() - 2; ~~~~~~^~~~~~~~~~~~ src/emucore/FSNode.hxx:512:19: warning: 'start' is an unsafe pointer used for buffer access [-Wunsafe-buffer-usage] const char* start = str.c_str(); ~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~ src/emucore/FSNode.hxx:513:25: note: used in pointer arithmetic here const char* cur = start + str.size() - 2; ^~~~~ src/emucore/FSNode.hxx:513:19: warning: 'cur' is an unsafe pointer used for buffer access [-Wunsafe-buffer-usage] const char* cur = start + str.size() - 2; ~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~ src/emucore/FSNode.hxx:518:14: note: used in pointer arithmetic here return cur + 1; ^~~ src/emucore/FSNode.hxx:516:11: note: used in pointer arithmetic here --cur; ^~~ In file included from src/common/PJoystickHandler.cxx:27: In file included from src/emucore/EventHandler.hxx:38: In file included from src/common/PKeyboardHandler.hxx:30: In file included from src/common/KeyMap.hxx:24: In file included from src/common/StellaKeys.hxx:22: In file included from src/common/SDL_lib.hxx:34: In file included from /usr/local/include/SDL2/SDL.h:32: In file included from /usr/local/include/SDL2/SDL_main.h:25: /usr/local/include/SDL2/SDL_stdinc.h:544:13: warning: '_p' is an unsafe pointer used for buffer access [-Wunsafe-buffer-usage] Uint32 *_p = SDL_static_cast(Uint32 *, dst); ~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /usr/local/include/SDL2/SDL_stdinc.h:550:26: note: used in pointer arithmetic here case 0: do { *_p++ = _val; SDL_FALLTHROUGH; ^~ /usr/local/include/SDL2/SDL_stdinc.h:552:26: note: used in pointer arithmetic here case 2: *_p++ = _val; SDL_FALLTHROUGH; ^~ /usr/local/include/SDL2/SDL_stdinc.h:553:26: note: used in pointer arithmetic here case 1: *_p++ = _val; ^~ /usr/local/include/SDL2/SDL_stdinc.h:551:26: note: used in pointer arithmetic here case 3: *_p++ = _val; SDL_FALLTHROUGH; ^~ src/common/PJoystickHandler.cxx:155:19: warning: unsafe buffer access [-Wunsafe-buffer-usage] myEvent.set(SA_Axis[port][axis], 0); ^~~~~~~~~~~~~ In file included from src/common/PJoystickHandler.cxx:27: In file included from src/emucore/EventHandler.hxx:39: src/common/PJoystickHandler.hxx:219:30: warning: 'SA_Axis' is an unsafe buffer that does not perform bounds checks [-Wunsafe-buffer-usage] static const Event::Type SA_Axis[NUM_PORTS][NUM_SA_AXIS]; ~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ src/common/PJoystickHandler.cxx:155:19: note: used in buffer access here myEvent.set(SA_Axis[port][axis], 0); ^~~~~~~ src/common/PJoystickHandler.cxx:244:7: warning: 'saOrder' is an unsafe buffer that does not perform bounds checks [-Wunsafe-buffer-usage] int saOrder[] = { 1, 2 }; ~~~~^~~~~~~~~~~~~~~~~~~~ src/common/PJoystickHandler.cxx:280:15: note: used in buffer access here else if(saOrder[saCount] == 2) ^~~~~~~ src/common/PJoystickHandler.cxx:286:10: note: used in buffer access here if(saOrder[saCount] == 1) ^~~~~~~ src/common/PJoystickHandler.cxx:278:10: note: used in buffer access here if(saOrder[saCount] == 1) ^~~~~~~ src/common/PJoystickHandler.cxx:270:10: note: used in buffer access here if(saOrder[saCount] == 1) ^~~~~~~ src/common/PJoystickHandler.cxx:272:15: note: used in buffer access here else if(saOrder[saCount] == 2) ^~~~~~~ src/common/PJoystickHandler.cxx:248:21: note: used in buffer access here saOrder[0] = 2; saOrder[1] = 1; ^~~~~~~ src/common/PJoystickHandler.cxx:288:15: note: used in buffer access here else if(saOrder[saCount] == 2) ^~~~~~~ src/common/PJoystickHandler.cxx:847:25: warning: unsafe buffer access [-Wunsafe-buffer-usage] myEvent.set(SA_Axis[0][axis], value); ^~~~~~~~~~ src/common/PJoystickHandler.cxx:859:25: warning: unsafe buffer access [-Wunsafe-buffer-usage] myEvent.set(SA_Axis[1][axis], value); ^~~~~~~~~~ In file included from src/common/PJoystickHandler.cxx:27: In file included from src/emucore/EventHandler.hxx:39: src/common/PJoystickHandler.hxx:219:30: warning: 'SA_Axis' is an unsafe buffer that does not perform bounds checks [-Wunsafe-buffer-usage] static const Event::Type SA_Axis[NUM_PORTS][NUM_SA_AXIS]; ~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ src/common/PJoystickHandler.cxx:859:25: note: used in buffer access here myEvent.set(SA_Axis[1][axis], value); ^~~~~~~ 12 warnings generated. mkdir -p -p src/common/.deps mkdir -p -p out/src/common c++ -MMD -MF "src/common/.deps/PKeyboardHandler.d" -MQ "out/src/common/PKeyboardHandler.o" -MP -O2 -pipe -I/usr/X11R6/include -I/usr/local/include -x c++ -Wall -Wextra -Wno-unused-parameter -Wno-multichar -Wunused -Woverloaded-virtual -Wnon-virtual-dtor -std=c++17 -Weverything -Wno-c++98-compat-pedantic -Wno-unknown-warning-option -Wno-switch-enum -Wno-conversion -Wno-covered-switch-default -Wno-inconsistent-missing-destructor-override -Wno-float-equal -Wno-exit-time-destructors -Wno-global-constructors -Wno-weak-vtables -Wno-four-char-constants -Wno-padded -Wno-reserved-identifier -Wno-duplicate-enum -fomit-frame-pointer -DSDL_SUPPORT -D_GLIBCXX_USE_CXX11_ABI=1 -DUNIX -DBSPF_UNIX -DGUI_SUPPORT -DWINDOWED_SUPPORT -DSOUND_SUPPORT -DDEBUGGER_SUPPORT -DJOYSTICK_SUPPORT -DCHEATCODE_SUPPORT -DHTTP_LIB_SUPPORT -DPNG_SUPPORT -DZIP_SUPPORT -Isrc/emucore -Isrc/common -Isrc/common/tv_filters -Isrc/emucore/tia -Isrc/emucore/tia/frame-manager -Isrc/json -Isrc/common/repository/sqlite -I/usr/local/include -I/usr/local/include/SDL2 -I/usr/X11R6/include -D_REENTRANT -I/usr/X11R6/include -Isrc/unix -Isrc/gui -Isrc/debugger -Isrc/debugger/gui -Isrc/yacc -Isrc/cheat -Isrc/httplib -c src/common/PKeyboardHandler.cxx -o out/src/common/PKeyboardHandler.o In file included from src/common/PKeyboardHandler.cxx:18: In file included from src/emucore/OSystem.hxx:55: In file included from src/emucore/FSNode.hxx:23: src/common/bspf.hxx:245:37: warning: unsafe pointer arithmetic [-Wunsafe-buffer-usage] const auto pos = std::search(s1.cbegin()+startpos, s1.cend(), ~~~^~~~~~~~ src/common/bspf.hxx:249:56: warning: unsafe pointer arithmetic [-Wunsafe-buffer-usage] return pos == s1.cend() ? string::npos : pos - (s1.cbegin()+startpos); ~~~^~~~~~~~ In file included from src/common/PKeyboardHandler.cxx:18: In file included from src/emucore/OSystem.hxx:55: src/emucore/FSNode.hxx:513:31: warning: unsafe pointer arithmetic [-Wunsafe-buffer-usage] const char* cur = start + str.size() - 2; ~~~~~~^~~~~~~~~~~~ src/emucore/FSNode.hxx:512:19: warning: 'start' is an unsafe pointer used for buffer access [-Wunsafe-buffer-usage] const char* start = str.c_str(); ~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~ src/emucore/FSNode.hxx:513:25: note: used in pointer arithmetic here const char* cur = start + str.size() - 2; ^~~~~ src/emucore/FSNode.hxx:513:19: warning: 'cur' is an unsafe pointer used for buffer access [-Wunsafe-buffer-usage] const char* cur = start + str.size() - 2; ~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~ src/emucore/FSNode.hxx:516:11: note: used in pointer arithmetic here --cur; ^~~ src/emucore/FSNode.hxx:518:14: note: used in pointer arithmetic here return cur + 1; ^~~ In file included from src/common/PKeyboardHandler.cxx:21: In file included from src/emucore/EventHandler.hxx:38: In file included from src/common/PKeyboardHandler.hxx:30: In file included from src/common/KeyMap.hxx:24: In file included from src/common/StellaKeys.hxx:22: In file included from src/common/SDL_lib.hxx:34: In file included from /usr/local/include/SDL2/SDL.h:32: In file included from /usr/local/include/SDL2/SDL_main.h:25: /usr/local/include/SDL2/SDL_stdinc.h:544:13: warning: '_p' is an unsafe pointer used for buffer access [-Wunsafe-buffer-usage] Uint32 *_p = SDL_static_cast(Uint32 *, dst); ~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /usr/local/include/SDL2/SDL_stdinc.h:553:26: note: used in pointer arithmetic here case 1: *_p++ = _val; ^~ /usr/local/include/SDL2/SDL_stdinc.h:551:26: note: used in pointer arithmetic here case 3: *_p++ = _val; SDL_FALLTHROUGH; ^~ /usr/local/include/SDL2/SDL_stdinc.h:552:26: note: used in pointer arithmetic here case 2: *_p++ = _val; SDL_FALLTHROUGH; ^~ /usr/local/include/SDL2/SDL_stdinc.h:550:26: note: used in pointer arithmetic here case 0: do { *_p++ = _val; SDL_FALLTHROUGH; ^~ 6 warnings generated. mkdir -p -p src/common/.deps mkdir -p -p out/src/common c++ -MMD -MF "src/common/.deps/PNGLibrary.d" -MQ "out/src/common/PNGLibrary.o" -MP -O2 -pipe -I/usr/X11R6/include -I/usr/local/include -x c++ -Wall -Wextra -Wno-unused-parameter -Wno-multichar -Wunused -Woverloaded-virtual -Wnon-virtual-dtor -std=c++17 -Weverything -Wno-c++98-compat-pedantic -Wno-unknown-warning-option -Wno-switch-enum -Wno-conversion -Wno-covered-switch-default -Wno-inconsistent-missing-destructor-override -Wno-float-equal -Wno-exit-time-destructors -Wno-global-constructors -Wno-weak-vtables -Wno-four-char-constants -Wno-padded -Wno-reserved-identifier -Wno-duplicate-enum -fomit-frame-pointer -DSDL_SUPPORT -D_GLIBCXX_USE_CXX11_ABI=1 -DUNIX -DBSPF_UNIX -DGUI_SUPPORT -DWINDOWED_SUPPORT -DSOUND_SUPPORT -DDEBUGGER_SUPPORT -DJOYSTICK_SUPPORT -DCHEATCODE_SUPPORT -DHTTP_LIB_SUPPORT -DPNG_SUPPORT -DZIP_SUPPORT -Isrc/emucore -Isrc/common -Isrc/common/tv_filters -Isrc/emucore/tia -Isrc/emucore/tia/frame-manager -Isrc/json -Isrc/common/repository/sqlite -I/usr/local/include -I/usr/local/include/SDL2 -I/usr/X11R6/include -D_REENTRANT -I/usr/X11R6/include -Isrc/unix -Isrc/gui -Isrc/debugger -Isrc/debugger/gui -Isrc/yacc -Isrc/cheat -Isrc/httplib -c src/common/PNGLibrary.cxx -o out/src/common/PNGLibrary.o In file included from src/common/PNGLibrary.cxx:22: src/common/bspf.hxx:245:37: warning: unsafe pointer arithmetic [-Wunsafe-buffer-usage] const auto pos = std::search(s1.cbegin()+startpos, s1.cend(), ~~~^~~~~~~~ src/common/bspf.hxx:249:56: warning: unsafe pointer arithmetic [-Wunsafe-buffer-usage] return pos == s1.cend() ? string::npos : pos - (s1.cbegin()+startpos); ~~~^~~~~~~~ In file included from src/common/PNGLibrary.cxx:23: In file included from src/emucore/OSystem.hxx:55: src/emucore/FSNode.hxx:513:31: warning: unsafe pointer arithmetic [-Wunsafe-buffer-usage] const char* cur = start + str.size() - 2; ~~~~~~^~~~~~~~~~~~ src/emucore/FSNode.hxx:512:19: warning: 'start' is an unsafe pointer used for buffer access [-Wunsafe-buffer-usage] const char* start = str.c_str(); ~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~ src/emucore/FSNode.hxx:513:25: note: used in pointer arithmetic here const char* cur = start + str.size() - 2; ^~~~~ src/emucore/FSNode.hxx:513:19: warning: 'cur' is an unsafe pointer used for buffer access [-Wunsafe-buffer-usage] const char* cur = start + str.size() - 2; ~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~ src/emucore/FSNode.hxx:518:14: note: used in pointer arithmetic here return cur + 1; ^~~ src/emucore/FSNode.hxx:516:11: note: used in pointer arithmetic here --cur; ^~~ In file included from src/common/PNGLibrary.cxx:29: In file included from src/emucore/TIASurface.hxx:31: In file included from src/common/tv_filters/NTSCFilter.hxx:25: src/common/tv_filters/AtariNTSC.hxx:238:22: warning: 'to_rgb' is an unsafe pointer used for buffer access [-Wunsafe-buffer-usage] const float* to_rgb, int& ir, int& ig, int& ib) { ~~~~~~~~~~~~~^~~~~~ src/common/tv_filters/AtariNTSC.hxx:240:49: note: used in buffer access here ig = static_cast(y + to_rgb[2] * i + to_rgb[3] * q); ^~~~~~ src/common/tv_filters/AtariNTSC.hxx:240:33: note: used in buffer access here ig = static_cast(y + to_rgb[2] * i + to_rgb[3] * q); ^~~~~~ src/common/tv_filters/AtariNTSC.hxx:241:49: note: used in buffer access here ib = static_cast(y + to_rgb[4] * i + to_rgb[5] * q); ^~~~~~ src/common/tv_filters/AtariNTSC.hxx:241:33: note: used in buffer access here ib = static_cast(y + to_rgb[4] * i + to_rgb[5] * q); ^~~~~~ src/common/tv_filters/AtariNTSC.hxx:239:49: note: used in buffer access here ir = static_cast(y + to_rgb[0] * i + to_rgb[1] * q); ^~~~~~ src/common/PNGLibrary.cxx:109:51: warning: unsafe pointer arithmetic [-Wunsafe-buffer-usage] ReadInfo.row_pointers[irow] = ReadInfo.buffer.data() + offset; ~~~~~~~~~~~~~~~~^~~~~~ src/common/PNGLibrary.cxx:149:22: warning: unsafe pointer arithmetic [-Wunsafe-buffer-usage] rows[k] = buffer.data() + k*width*4; ~~~~~~~^~~~~~ src/common/PNGLibrary.cxx:178:22: warning: unsafe pointer arithmetic [-Wunsafe-buffer-usage] rows[k] = buffer.data() + k*width*4; ~~~~~~~^~~~~~ src/common/PNGLibrary.cxx:417:11: warning: 's_buf' is an unsafe pointer used for buffer access [-Wunsafe-buffer-usage] uInt32 *s_buf, s_pitch; ~~~~~~~~^~~~~ src/common/PNGLibrary.cxx:423:61: note: used in pointer arithmetic here for(uInt32 irow = 0; irow < ih; ++irow, i_buf += i_pitch, s_buf += s_pitch) ^~~~~ src/common/PNGLibrary.cxx:419:16: warning: 'i_buf' is an unsafe pointer used for buffer access [-Wunsafe-buffer-usage] const uInt8* i_buf = ReadInfo.buffer.data(); ~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ src/common/PNGLibrary.cxx:423:43: note: used in pointer arithmetic here for(uInt32 irow = 0; irow < ih; ++irow, i_buf += i_pitch, s_buf += s_pitch) ^~~~~ src/common/PNGLibrary.cxx:425:18: warning: 'i_ptr' is an unsafe pointer used for buffer access [-Wunsafe-buffer-usage] const uInt8* i_ptr = i_buf; ~~~~~~~~~~~~~^~~~~~~~~~~~~ src/common/PNGLibrary.cxx:427:57: note: used in pointer arithmetic here for(uInt32 icol = 0; icol < ReadInfo.width; ++icol, i_ptr += 3) ^~~~~ src/common/PNGLibrary.cxx:428:38: note: used in pointer arithmetic here *s_ptr++ = fb.mapRGB(*i_ptr, *(i_ptr+1), *(i_ptr+2)); ^~~~~ src/common/PNGLibrary.cxx:428:50: note: used in pointer arithmetic here *s_ptr++ = fb.mapRGB(*i_ptr, *(i_ptr+1), *(i_ptr+2)); ^~~~~ src/common/PNGLibrary.cxx:426:13: warning: 's_ptr' is an unsafe pointer used for buffer access [-Wunsafe-buffer-usage] uInt32* s_ptr = s_buf; ~~~~~~~~^~~~~~~~~~~~~ src/common/PNGLibrary.cxx:428:8: note: used in pointer arithmetic here *s_ptr++ = fb.mapRGB(*i_ptr, *(i_ptr+1), *(i_ptr+2)); ^~~~~ 13 warnings generated. mkdir -p -p src/common/.deps mkdir -p -p out/src/common c++ -MMD -MF "src/common/.deps/RewindManager.d" -MQ "out/src/common/RewindManager.o" -MP -O2 -pipe -I/usr/X11R6/include -I/usr/local/include -x c++ -Wall -Wextra -Wno-unused-parameter -Wno-multichar -Wunused -Woverloaded-virtual -Wnon-virtual-dtor -std=c++17 -Weverything -Wno-c++98-compat-pedantic -Wno-unknown-warning-option -Wno-switch-enum -Wno-conversion -Wno-covered-switch-default -Wno-inconsistent-missing-destructor-override -Wno-float-equal -Wno-exit-time-destructors -Wno-global-constructors -Wno-weak-vtables -Wno-four-char-constants -Wno-padded -Wno-reserved-identifier -Wno-duplicate-enum -fomit-frame-pointer -DSDL_SUPPORT -D_GLIBCXX_USE_CXX11_ABI=1 -DUNIX -DBSPF_UNIX -DGUI_SUPPORT -DWINDOWED_SUPPORT -DSOUND_SUPPORT -DDEBUGGER_SUPPORT -DJOYSTICK_SUPPORT -DCHEATCODE_SUPPORT -DHTTP_LIB_SUPPORT -DPNG_SUPPORT -DZIP_SUPPORT -Isrc/emucore -Isrc/common -Isrc/common/tv_filters -Isrc/emucore/tia -Isrc/emucore/tia/frame-manager -Isrc/json -Isrc/common/repository/sqlite -I/usr/local/include -I/usr/local/include/SDL2 -I/usr/X11R6/include -D_REENTRANT -I/usr/X11R6/include -Isrc/unix -Isrc/gui -Isrc/debugger -Isrc/debugger/gui -Isrc/yacc -Isrc/cheat -Isrc/httplib -c src/common/RewindManager.cxx -o out/src/common/RewindManager.o In file included from src/common/RewindManager.cxx:20: In file included from src/emucore/OSystem.hxx:55: In file included from src/emucore/FSNode.hxx:23: src/common/bspf.hxx:245:37: warning: unsafe pointer arithmetic [-Wunsafe-buffer-usage] const auto pos = std::search(s1.cbegin()+startpos, s1.cend(), ~~~^~~~~~~~ src/common/bspf.hxx:249:56: warning: unsafe pointer arithmetic [-Wunsafe-buffer-usage] return pos == s1.cend() ? string::npos : pos - (s1.cbegin()+startpos); ~~~^~~~~~~~ In file included from src/common/RewindManager.cxx:20: In file included from src/emucore/OSystem.hxx:55: src/emucore/FSNode.hxx:513:31: warning: unsafe pointer arithmetic [-Wunsafe-buffer-usage] const char* cur = start + str.size() - 2; ~~~~~~^~~~~~~~~~~~ src/emucore/FSNode.hxx:512:19: warning: 'start' is an unsafe pointer used for buffer access [-Wunsafe-buffer-usage] const char* start = str.c_str(); ~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~ src/emucore/FSNode.hxx:513:25: note: used in pointer arithmetic here const char* cur = start + str.size() - 2; ^~~~~ src/emucore/FSNode.hxx:513:19: warning: 'cur' is an unsafe pointer used for buffer access [-Wunsafe-buffer-usage] const char* cur = start + str.size() - 2; ~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~ src/emucore/FSNode.hxx:516:11: note: used in pointer arithmetic here --cur; ^~~ src/emucore/FSNode.hxx:518:14: note: used in pointer arithmetic here return cur + 1; ^~~ In file included from src/common/RewindManager.cxx:24: In file included from src/emucore/tia/TIA.hxx:37: src/emucore/tia/Missile.hxx:170:7: warning: unsafe buffer access [-Wunsafe-buffer-usage] if (myDecodes[myCounter] && !myResmp) { ^~~~~~~~~ src/emucore/tia/Missile.hxx:173:14: warning: unsafe buffer access [-Wunsafe-buffer-usage] myCopy = myDecodes[myCounter]; ^~~~~~~~~ In file included from src/common/RewindManager.cxx:24: In file included from src/emucore/tia/TIA.hxx:38: src/emucore/tia/Player.hxx:186:7: warning: unsafe buffer access [-Wunsafe-buffer-usage] if (myDecodes[myCounter]) { ^~~~~~~~~ src/emucore/tia/Player.hxx:190:14: warning: unsafe buffer access [-Wunsafe-buffer-usage] myCopy = myDecodes[myCounter]; ^~~~~~~~~ In file included from src/common/RewindManager.cxx:25: In file included from src/emucore/EventHandler.hxx:38: In file included from src/common/PKeyboardHandler.hxx:30: In file included from src/common/KeyMap.hxx:24: In file included from src/common/StellaKeys.hxx:22: In file included from src/common/SDL_lib.hxx:34: In file included from /usr/local/include/SDL2/SDL.h:32: In file included from /usr/local/include/SDL2/SDL_main.h:25: /usr/local/include/SDL2/SDL_stdinc.h:544:13: warning: '_p' is an unsafe pointer used for buffer access [-Wunsafe-buffer-usage] Uint32 *_p = SDL_static_cast(Uint32 *, dst); ~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /usr/local/include/SDL2/SDL_stdinc.h:553:26: note: used in pointer arithmetic here case 1: *_p++ = _val; ^~ /usr/local/include/SDL2/SDL_stdinc.h:551:26: note: used in pointer arithmetic here case 3: *_p++ = _val; SDL_FALLTHROUGH; ^~ /usr/local/include/SDL2/SDL_stdinc.h:550:26: note: used in pointer arithmetic here case 0: do { *_p++ = _val; SDL_FALLTHROUGH; ^~ /usr/local/include/SDL2/SDL_stdinc.h:552:26: note: used in pointer arithmetic here case 2: *_p++ = _val; SDL_FALLTHROUGH; ^~ 10 warnings generated. mkdir -p -p src/common/.deps mkdir -p -p out/src/common c++ -MMD -MF "src/common/.deps/SoundSDL2.d" -MQ "out/src/common/SoundSDL2.o" -MP -O2 -pipe -I/usr/X11R6/include -I/usr/local/include -x c++ -Wall -Wextra -Wno-unused-parameter -Wno-multichar -Wunused -Woverloaded-virtual -Wnon-virtual-dtor -std=c++17 -Weverything -Wno-c++98-compat-pedantic -Wno-unknown-warning-option -Wno-switch-enum -Wno-conversion -Wno-covered-switch-default -Wno-inconsistent-missing-destructor-override -Wno-float-equal -Wno-exit-time-destructors -Wno-global-constructors -Wno-weak-vtables -Wno-four-char-constants -Wno-padded -Wno-reserved-identifier -Wno-duplicate-enum -fomit-frame-pointer -DSDL_SUPPORT -D_GLIBCXX_USE_CXX11_ABI=1 -DUNIX -DBSPF_UNIX -DGUI_SUPPORT -DWINDOWED_SUPPORT -DSOUND_SUPPORT -DDEBUGGER_SUPPORT -DJOYSTICK_SUPPORT -DCHEATCODE_SUPPORT -DHTTP_LIB_SUPPORT -DPNG_SUPPORT -DZIP_SUPPORT -Isrc/emucore -Isrc/common -Isrc/common/tv_filters -Isrc/emucore/tia -Isrc/emucore/tia/frame-manager -Isrc/json -Isrc/common/repository/sqlite -I/usr/local/include -I/usr/local/include/SDL2 -I/usr/X11R6/include -D_REENTRANT -I/usr/X11R6/include -Isrc/unix -Isrc/gui -Isrc/debugger -Isrc/debugger/gui -Isrc/yacc -Isrc/cheat -Isrc/httplib -c src/common/SoundSDL2.cxx -o out/src/common/SoundSDL2.o In file included from src/common/SoundSDL2.cxx:24: In file included from src/common/SDL_lib.hxx:21: src/common/bspf.hxx:245:37: warning: unsafe pointer arithmetic [-Wunsafe-buffer-usage] const auto pos = std::search(s1.cbegin()+startpos, s1.cend(), ~~~^~~~~~~~ src/common/bspf.hxx:249:56: warning: unsafe pointer arithmetic [-Wunsafe-buffer-usage] return pos == s1.cend() ? string::npos : pos - (s1.cbegin()+startpos); ~~~^~~~~~~~ In file included from src/common/SoundSDL2.cxx:24: In file included from src/common/SDL_lib.hxx:34: In file included from /usr/local/include/SDL2/SDL.h:32: In file included from /usr/local/include/SDL2/SDL_main.h:25: /usr/local/include/SDL2/SDL_stdinc.h:544:13: warning: '_p' is an unsafe pointer used for buffer access [-Wunsafe-buffer-usage] Uint32 *_p = SDL_static_cast(Uint32 *, dst); ~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /usr/local/include/SDL2/SDL_stdinc.h:552:26: note: used in pointer arithmetic here case 2: *_p++ = _val; SDL_FALLTHROUGH; ^~ /usr/local/include/SDL2/SDL_stdinc.h:553:26: note: used in pointer arithmetic here case 1: *_p++ = _val; ^~ /usr/local/include/SDL2/SDL_stdinc.h:550:26: note: used in pointer arithmetic here case 0: do { *_p++ = _val; SDL_FALLTHROUGH; ^~ /usr/local/include/SDL2/SDL_stdinc.h:551:26: note: used in pointer arithmetic here case 3: *_p++ = _val; SDL_FALLTHROUGH; ^~ In file included from src/common/SoundSDL2.cxx:29: In file included from src/emucore/OSystem.hxx:55: src/emucore/FSNode.hxx:513:31: warning: unsafe pointer arithmetic [-Wunsafe-buffer-usage] const char* cur = start + str.size() - 2; ~~~~~~^~~~~~~~~~~~ src/emucore/FSNode.hxx:512:19: warning: 'start' is an unsafe pointer used for buffer access [-Wunsafe-buffer-usage] const char* start = str.c_str(); ~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~ src/emucore/FSNode.hxx:513:25: note: used in pointer arithmetic here const char* cur = start + str.size() - 2; ^~~~~ src/emucore/FSNode.hxx:513:19: warning: 'cur' is an unsafe pointer used for buffer access [-Wunsafe-buffer-usage] const char* cur = start + str.size() - 2; ~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~ src/emucore/FSNode.hxx:516:11: note: used in pointer arithmetic here --cur; ^~~ src/emucore/FSNode.hxx:518:14: note: used in pointer arithmetic here return cur + 1; ^~~ src/common/SoundSDL2.cxx:338:40: warning: 'stream' is an unsafe pointer used for buffer access [-Wunsafe-buffer-usage] void SoundSDL2::processFragment(float* stream, uInt32 length) ~~~~~~~^~~~~~ src/common/SoundSDL2.cxx:343:5: note: used in buffer access here stream[i] *= myVolumeFactor; ^~~~~~ 7 warnings generated. mkdir -p -p src/common/.deps mkdir -p -p out/src/common c++ -MMD -MF "src/common/.deps/StaggeredLogger.d" -MQ "out/src/common/StaggeredLogger.o" -MP -O2 -pipe -I/usr/X11R6/include -I/usr/local/include -x c++ -Wall -Wextra -Wno-unused-parameter -Wno-multichar -Wunused -Woverloaded-virtual -Wnon-virtual-dtor -std=c++17 -Weverything -Wno-c++98-compat-pedantic -Wno-unknown-warning-option -Wno-switch-enum -Wno-conversion -Wno-covered-switch-default -Wno-inconsistent-missing-destructor-override -Wno-float-equal -Wno-exit-time-destructors -Wno-global-constructors -Wno-weak-vtables -Wno-four-char-constants -Wno-padded -Wno-reserved-identifier -Wno-duplicate-enum -fomit-frame-pointer -DSDL_SUPPORT -D_GLIBCXX_USE_CXX11_ABI=1 -DUNIX -DBSPF_UNIX -DGUI_SUPPORT -DWINDOWED_SUPPORT -DSOUND_SUPPORT -DDEBUGGER_SUPPORT -DJOYSTICK_SUPPORT -DCHEATCODE_SUPPORT -DHTTP_LIB_SUPPORT -DPNG_SUPPORT -DZIP_SUPPORT -Isrc/emucore -Isrc/common -Isrc/common/tv_filters -Isrc/emucore/tia -Isrc/emucore/tia/frame-manager -Isrc/json -Isrc/common/repository/sqlite -I/usr/local/include -I/usr/local/include/SDL2 -I/usr/X11R6/include -D_REENTRANT -I/usr/X11R6/include -Isrc/unix -Isrc/gui -Isrc/debugger -Isrc/debugger/gui -Isrc/yacc -Isrc/cheat -Isrc/httplib -c src/common/StaggeredLogger.cxx -o out/src/common/StaggeredLogger.o In file included from src/common/StaggeredLogger.cxx:18: In file included from src/common/StaggeredLogger.hxx:26: src/common/bspf.hxx:245:37: warning: unsafe pointer arithmetic [-Wunsafe-buffer-usage] const auto pos = std::search(s1.cbegin()+startpos, s1.cend(), ~~~^~~~~~~~ src/common/bspf.hxx:249:56: warning: unsafe pointer arithmetic [-Wunsafe-buffer-usage] return pos == s1.cend() ? string::npos : pos - (s1.cbegin()+startpos); ~~~^~~~~~~~ 2 warnings generated. mkdir -p -p src/common/.deps mkdir -p -p out/src/common c++ -MMD -MF "src/common/.deps/StateManager.d" -MQ "out/src/common/StateManager.o" -MP -O2 -pipe -I/usr/X11R6/include -I/usr/local/include -x c++ -Wall -Wextra -Wno-unused-parameter -Wno-multichar -Wunused -Woverloaded-virtual -Wnon-virtual-dtor -std=c++17 -Weverything -Wno-c++98-compat-pedantic -Wno-unknown-warning-option -Wno-switch-enum -Wno-conversion -Wno-covered-switch-default -Wno-inconsistent-missing-destructor-override -Wno-float-equal -Wno-exit-time-destructors -Wno-global-constructors -Wno-weak-vtables -Wno-four-char-constants -Wno-padded -Wno-reserved-identifier -Wno-duplicate-enum -fomit-frame-pointer -DSDL_SUPPORT -D_GLIBCXX_USE_CXX11_ABI=1 -DUNIX -DBSPF_UNIX -DGUI_SUPPORT -DWINDOWED_SUPPORT -DSOUND_SUPPORT -DDEBUGGER_SUPPORT -DJOYSTICK_SUPPORT -DCHEATCODE_SUPPORT -DHTTP_LIB_SUPPORT -DPNG_SUPPORT -DZIP_SUPPORT -Isrc/emucore -Isrc/common -Isrc/common/tv_filters -Isrc/emucore/tia -Isrc/emucore/tia/frame-manager -Isrc/json -Isrc/common/repository/sqlite -I/usr/local/include -I/usr/local/include/SDL2 -I/usr/X11R6/include -D_REENTRANT -I/usr/X11R6/include -Isrc/unix -Isrc/gui -Isrc/debugger -Isrc/debugger/gui -Isrc/yacc -Isrc/cheat -Isrc/httplib -c src/common/StateManager.cxx -o out/src/common/StateManager.o In file included from src/common/StateManager.cxx:18: In file included from src/emucore/OSystem.hxx:55: In file included from src/emucore/FSNode.hxx:23: src/common/bspf.hxx:245:37: warning: unsafe pointer arithmetic [-Wunsafe-buffer-usage] const auto pos = std::search(s1.cbegin()+startpos, s1.cend(), ~~~^~~~~~~~ src/common/bspf.hxx:249:56: warning: unsafe pointer arithmetic [-Wunsafe-buffer-usage] return pos == s1.cend() ? string::npos : pos - (s1.cbegin()+startpos); ~~~^~~~~~~~ In file included from src/common/StateManager.cxx:18: In file included from src/emucore/OSystem.hxx:55: src/emucore/FSNode.hxx:513:31: warning: unsafe pointer arithmetic [-Wunsafe-buffer-usage] const char* cur = start + str.size() - 2; ~~~~~~^~~~~~~~~~~~ src/emucore/FSNode.hxx:512:19: warning: 'start' is an unsafe pointer used for buffer access [-Wunsafe-buffer-usage] const char* start = str.c_str(); ~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~ src/emucore/FSNode.hxx:513:25: note: used in pointer arithmetic here const char* cur = start + str.size() - 2; ^~~~~ src/emucore/FSNode.hxx:513:19: warning: 'cur' is an unsafe pointer used for buffer access [-Wunsafe-buffer-usage] const char* cur = start + str.size() - 2; ~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~ src/emucore/FSNode.hxx:518:14: note: used in pointer arithmetic here return cur + 1; ^~~ src/emucore/FSNode.hxx:516:11: note: used in pointer arithmetic here --cur; ^~~ 5 warnings generated. mkdir -p -p src/common/.deps mkdir -p -p out/src/common c++ -MMD -MF "src/common/.deps/ThreadDebugging.d" -MQ "out/src/common/ThreadDebugging.o" -MP -O2 -pipe -I/usr/X11R6/include -I/usr/local/include -x c++ -Wall -Wextra -Wno-unused-parameter -Wno-multichar -Wunused -Woverloaded-virtual -Wnon-virtual-dtor -std=c++17 -Weverything -Wno-c++98-compat-pedantic -Wno-unknown-warning-option -Wno-switch-enum -Wno-conversion -Wno-covered-switch-default -Wno-inconsistent-missing-destructor-override -Wno-float-equal -Wno-exit-time-destructors -Wno-global-constructors -Wno-weak-vtables -Wno-four-char-constants -Wno-padded -Wno-reserved-identifier -Wno-duplicate-enum -fomit-frame-pointer -DSDL_SUPPORT -D_GLIBCXX_USE_CXX11_ABI=1 -DUNIX -DBSPF_UNIX -DGUI_SUPPORT -DWINDOWED_SUPPORT -DSOUND_SUPPORT -DDEBUGGER_SUPPORT -DJOYSTICK_SUPPORT -DCHEATCODE_SUPPORT -DHTTP_LIB_SUPPORT -DPNG_SUPPORT -DZIP_SUPPORT -Isrc/emucore -Isrc/common -Isrc/common/tv_filters -Isrc/emucore/tia -Isrc/emucore/tia/frame-manager -Isrc/json -Isrc/common/repository/sqlite -I/usr/local/include -I/usr/local/include/SDL2 -I/usr/X11R6/include -D_REENTRANT -I/usr/X11R6/include -Isrc/unix -Isrc/gui -Isrc/debugger -Isrc/debugger/gui -Isrc/yacc -Isrc/cheat -Isrc/httplib -c src/common/ThreadDebugging.cxx -o out/src/common/ThreadDebugging.o In file included from src/common/ThreadDebugging.cxx:18: In file included from src/common/ThreadDebugging.hxx:23: src/common/bspf.hxx:245:37: warning: unsafe pointer arithmetic [-Wunsafe-buffer-usage] const auto pos = std::search(s1.cbegin()+startpos, s1.cend(), ~~~^~~~~~~~ src/common/bspf.hxx:249:56: warning: unsafe pointer arithmetic [-Wunsafe-buffer-usage] return pos == s1.cend() ? string::npos : pos - (s1.cbegin()+startpos); ~~~^~~~~~~~ 2 warnings generated. mkdir -p -p src/common/.deps mkdir -p -p out/src/common c++ -MMD -MF "src/common/.deps/TimerManager.d" -MQ "out/src/common/TimerManager.o" -MP -O2 -pipe -I/usr/X11R6/include -I/usr/local/include -x c++ -Wall -Wextra -Wno-unused-parameter -Wno-multichar -Wunused -Woverloaded-virtual -Wnon-virtual-dtor -std=c++17 -Weverything -Wno-c++98-compat-pedantic -Wno-unknown-warning-option -Wno-switch-enum -Wno-conversion -Wno-covered-switch-default -Wno-inconsistent-missing-destructor-override -Wno-float-equal -Wno-exit-time-destructors -Wno-global-constructors -Wno-weak-vtables -Wno-four-char-constants -Wno-padded -Wno-reserved-identifier -Wno-duplicate-enum -fomit-frame-pointer -DSDL_SUPPORT -D_GLIBCXX_USE_CXX11_ABI=1 -DUNIX -DBSPF_UNIX -DGUI_SUPPORT -DWINDOWED_SUPPORT -DSOUND_SUPPORT -DDEBUGGER_SUPPORT -DJOYSTICK_SUPPORT -DCHEATCODE_SUPPORT -DHTTP_LIB_SUPPORT -DPNG_SUPPORT -DZIP_SUPPORT -Isrc/emucore -Isrc/common -Isrc/common/tv_filters -Isrc/emucore/tia -Isrc/emucore/tia/frame-manager -Isrc/json -Isrc/common/repository/sqlite -I/usr/local/include -I/usr/local/include/SDL2 -I/usr/X11R6/include -D_REENTRANT -I/usr/X11R6/include -Isrc/unix -Isrc/gui -Isrc/debugger -Isrc/debugger/gui -Isrc/yacc -Isrc/cheat -Isrc/httplib -c src/common/TimerManager.cxx -o out/src/common/TimerManager.o In file included from src/common/TimerManager.cxx:19: In file included from src/common/TimerManager.hxx:31: src/common/bspf.hxx:245:37: warning: unsafe pointer arithmetic [-Wunsafe-buffer-usage] const auto pos = std::search(s1.cbegin()+startpos, s1.cend(), ~~~^~~~~~~~ src/common/bspf.hxx:249:56: warning: unsafe pointer arithmetic [-Wunsafe-buffer-usage] return pos == s1.cend() ? string::npos : pos - (s1.cbegin()+startpos); ~~~^~~~~~~~ 2 warnings generated. mkdir -p -p src/common/.deps mkdir -p -p out/src/common c++ -MMD -MF "src/common/.deps/VideoModeHandler.d" -MQ "out/src/common/VideoModeHandler.o" -MP -O2 -pipe -I/usr/X11R6/include -I/usr/local/include -x c++ -Wall -Wextra -Wno-unused-parameter -Wno-multichar -Wunused -Woverloaded-virtual -Wnon-virtual-dtor -std=c++17 -Weverything -Wno-c++98-compat-pedantic -Wno-unknown-warning-option -Wno-switch-enum -Wno-conversion -Wno-covered-switch-default -Wno-inconsistent-missing-destructor-override -Wno-float-equal -Wno-exit-time-destructors -Wno-global-constructors -Wno-weak-vtables -Wno-four-char-constants -Wno-padded -Wno-reserved-identifier -Wno-duplicate-enum -fomit-frame-pointer -DSDL_SUPPORT -D_GLIBCXX_USE_CXX11_ABI=1 -DUNIX -DBSPF_UNIX -DGUI_SUPPORT -DWINDOWED_SUPPORT -DSOUND_SUPPORT -DDEBUGGER_SUPPORT -DJOYSTICK_SUPPORT -DCHEATCODE_SUPPORT -DHTTP_LIB_SUPPORT -DPNG_SUPPORT -DZIP_SUPPORT -Isrc/emucore -Isrc/common -Isrc/common/tv_filters -Isrc/emucore/tia -Isrc/emucore/tia/frame-manager -Isrc/json -Isrc/common/repository/sqlite -I/usr/local/include -I/usr/local/include/SDL2 -I/usr/X11R6/include -D_REENTRANT -I/usr/X11R6/include -Isrc/unix -Isrc/gui -Isrc/debugger -Isrc/debugger/gui -Isrc/yacc -Isrc/cheat -Isrc/httplib -c src/common/VideoModeHandler.cxx -o out/src/common/VideoModeHandler.o In file included from src/common/VideoModeHandler.cxx:18: In file included from src/emucore/Settings.hxx:23: In file included from src/common/Variant.hxx:21: In file included from src/common/Rect.hxx:26: src/common/bspf.hxx:245:37: warning: unsafe pointer arithmetic [-Wunsafe-buffer-usage] const auto pos = std::search(s1.cbegin()+startpos, s1.cend(), ~~~^~~~~~~~ src/common/bspf.hxx:249:56: warning: unsafe pointer arithmetic [-Wunsafe-buffer-usage] return pos == s1.cend() ? string::npos : pos - (s1.cbegin()+startpos); ~~~^~~~~~~~ 2 warnings generated. mkdir -p -p src/common/.deps mkdir -p -p out/src/common c++ -MMD -MF "src/common/.deps/ZipHandler.d" -MQ "out/src/common/ZipHandler.o" -MP -O2 -pipe -I/usr/X11R6/include -I/usr/local/include -x c++ -Wall -Wextra -Wno-unused-parameter -Wno-multichar -Wunused -Woverloaded-virtual -Wnon-virtual-dtor -std=c++17 -Weverything -Wno-c++98-compat-pedantic -Wno-unknown-warning-option -Wno-switch-enum -Wno-conversion -Wno-covered-switch-default -Wno-inconsistent-missing-destructor-override -Wno-float-equal -Wno-exit-time-destructors -Wno-global-constructors -Wno-weak-vtables -Wno-four-char-constants -Wno-padded -Wno-reserved-identifier -Wno-duplicate-enum -fomit-frame-pointer -DSDL_SUPPORT -D_GLIBCXX_USE_CXX11_ABI=1 -DUNIX -DBSPF_UNIX -DGUI_SUPPORT -DWINDOWED_SUPPORT -DSOUND_SUPPORT -DDEBUGGER_SUPPORT -DJOYSTICK_SUPPORT -DCHEATCODE_SUPPORT -DHTTP_LIB_SUPPORT -DPNG_SUPPORT -DZIP_SUPPORT -Isrc/emucore -Isrc/common -Isrc/common/tv_filters -Isrc/emucore/tia -Isrc/emucore/tia/frame-manager -Isrc/json -Isrc/common/repository/sqlite -I/usr/local/include -I/usr/local/include/SDL2 -I/usr/X11R6/include -D_REENTRANT -I/usr/X11R6/include -Isrc/unix -Isrc/gui -Isrc/debugger -Isrc/debugger/gui -Isrc/yacc -Isrc/cheat -Isrc/httplib -c src/common/ZipHandler.cxx -o out/src/common/ZipHandler.o In file included from src/common/ZipHandler.cxx:22: In file included from src/emucore/Bankswitch.hxx:23: In file included from src/emucore/FSNode.hxx:23: src/common/bspf.hxx:245:37: warning: unsafe pointer arithmetic [-Wunsafe-buffer-usage] const auto pos = std::search(s1.cbegin()+startpos, s1.cend(), ~~~^~~~~~~~ src/common/bspf.hxx:249:56: warning: unsafe pointer arithmetic [-Wunsafe-buffer-usage] return pos == s1.cend() ? string::npos : pos - (s1.cbegin()+startpos); ~~~^~~~~~~~ In file included from src/common/ZipHandler.cxx:22: In file included from src/emucore/Bankswitch.hxx:23: src/emucore/FSNode.hxx:513:31: warning: unsafe pointer arithmetic [-Wunsafe-buffer-usage] const char* cur = start + str.size() - 2; ~~~~~~^~~~~~~~~~~~ src/emucore/FSNode.hxx:512:19: warning: 'start' is an unsafe pointer used for buffer access [-Wunsafe-buffer-usage] const char* start = str.c_str(); ~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~ src/emucore/FSNode.hxx:513:25: note: used in pointer arithmetic here const char* cur = start + str.size() - 2; ^~~~~ src/emucore/FSNode.hxx:513:19: warning: 'cur' is an unsafe pointer used for buffer access [-Wunsafe-buffer-usage] const char* cur = start + str.size() - 2; ~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~ src/emucore/FSNode.hxx:516:11: note: used in pointer arithmetic here --cur; ^~~ src/emucore/FSNode.hxx:518:14: note: used in pointer arithmetic here return cur + 1; ^~~ In file included from src/common/ZipHandler.cxx:23: src/common/ZipHandler.hxx:158:18: warning: unsafe buffer access [-Wunsafe-buffer-usage] return myBuf[offs]; ^~~~~ src/common/ZipHandler.hxx:162:39: warning: unsafe buffer access [-Wunsafe-buffer-usage] return (static_cast(myBuf[offs + 1]) << 8) | ^~~~~ src/common/ZipHandler.hxx:163:39: warning: unsafe buffer access [-Wunsafe-buffer-usage] (static_cast(myBuf[offs + 0]) << 0); ^~~~~ src/common/ZipHandler.hxx:167:39: warning: unsafe buffer access [-Wunsafe-buffer-usage] return (static_cast(myBuf[offs + 3]) << 24) | ^~~~~ src/common/ZipHandler.hxx:168:39: warning: unsafe buffer access [-Wunsafe-buffer-usage] (static_cast(myBuf[offs + 2]) << 16) | ^~~~~ src/common/ZipHandler.hxx:169:39: warning: unsafe buffer access [-Wunsafe-buffer-usage] (static_cast(myBuf[offs + 1]) << 8) | ^~~~~ src/common/ZipHandler.hxx:170:39: warning: unsafe buffer access [-Wunsafe-buffer-usage] (static_cast(myBuf[offs + 0]) << 0); ^~~~~ src/common/ZipHandler.hxx:174:39: warning: unsafe buffer access [-Wunsafe-buffer-usage] return (static_cast(myBuf[offs + 7]) << 56) | ^~~~~ src/common/ZipHandler.hxx:175:39: warning: unsafe buffer access [-Wunsafe-buffer-usage] (static_cast(myBuf[offs + 6]) << 48) | ^~~~~ src/common/ZipHandler.hxx:176:39: warning: unsafe buffer access [-Wunsafe-buffer-usage] (static_cast(myBuf[offs + 5]) << 40) | ^~~~~ src/common/ZipHandler.hxx:177:39: warning: unsafe buffer access [-Wunsafe-buffer-usage] (static_cast(myBuf[offs + 4]) << 32) | ^~~~~ src/common/ZipHandler.hxx:178:39: warning: unsafe buffer access [-Wunsafe-buffer-usage] (static_cast(myBuf[offs + 3]) << 24) | ^~~~~ src/common/ZipHandler.hxx:179:39: warning: unsafe buffer access [-Wunsafe-buffer-usage] (static_cast(myBuf[offs + 2]) << 16) | ^~~~~ src/common/ZipHandler.hxx:180:39: warning: unsafe buffer access [-Wunsafe-buffer-usage] (static_cast(myBuf[offs + 1]) << 8) | ^~~~~ src/common/ZipHandler.hxx:181:39: warning: unsafe buffer access [-Wunsafe-buffer-usage] (static_cast(myBuf[offs + 0]) << 0); ^~~~~ src/common/ZipHandler.hxx:185:56: warning: unsafe pointer arithmetic [-Wunsafe-buffer-usage] return string(reinterpret_cast(myBuf + offs), len); ^~~~~ src/common/ZipHandler.cxx:213:38: warning: unsafe pointer arithmetic [-Wunsafe-buffer-usage] std::fill(myBuffer.get(), myBuffer.get() + DECOMPRESS_BUFSIZE, 0); ~~~~~~~~~^~~~~ src/common/ZipHandler.cxx:301:37: warning: unsafe pointer arithmetic [-Wunsafe-buffer-usage] const EcdReader reader(buffer.get() + offset); ~~~~~~~^~~~~ src/common/ZipHandler.cxx:310:37: warning: unsafe pointer arithmetic [-Wunsafe-buffer-usage] EcdReader const reader(buffer.get() + offset); ~~~~~~~^~~~~ src/common/ZipHandler.cxx:352:43: warning: unsafe pointer arithmetic [-Wunsafe-buffer-usage] CentralDirEntryReader const reader(myCd.get() + myCdPos); ~~~~~^~~~~ 25 warnings generated. mkdir -p -p src/common/sdl_blitter/.deps mkdir -p -p out/src/common/sdl_blitter c++ -MMD -MF "src/common/sdl_blitter/.deps/BilinearBlitter.d" -MQ "out/src/common/sdl_blitter/BilinearBlitter.o" -MP -O2 -pipe -I/usr/X11R6/include -I/usr/local/include -x c++ -Wall -Wextra -Wno-unused-parameter -Wno-multichar -Wunused -Woverloaded-virtual -Wnon-virtual-dtor -std=c++17 -Weverything -Wno-c++98-compat-pedantic -Wno-unknown-warning-option -Wno-switch-enum -Wno-conversion -Wno-covered-switch-default -Wno-inconsistent-missing-destructor-override -Wno-float-equal -Wno-exit-time-destructors -Wno-global-constructors -Wno-weak-vtables -Wno-four-char-constants -Wno-padded -Wno-reserved-identifier -Wno-duplicate-enum -fomit-frame-pointer -DSDL_SUPPORT -D_GLIBCXX_USE_CXX11_ABI=1 -DUNIX -DBSPF_UNIX -DGUI_SUPPORT -DWINDOWED_SUPPORT -DSOUND_SUPPORT -DDEBUGGER_SUPPORT -DJOYSTICK_SUPPORT -DCHEATCODE_SUPPORT -DHTTP_LIB_SUPPORT -DPNG_SUPPORT -DZIP_SUPPORT -Isrc/emucore -Isrc/common -Isrc/common/tv_filters -Isrc/emucore/tia -Isrc/emucore/tia/frame-manager -Isrc/json -Isrc/common/repository/sqlite -I/usr/local/include -I/usr/local/include/SDL2 -I/usr/X11R6/include -D_REENTRANT -I/usr/X11R6/include -Isrc/unix -Isrc/gui -Isrc/debugger -Isrc/debugger/gui -Isrc/yacc -Isrc/cheat -Isrc/httplib -c src/common/sdl_blitter/BilinearBlitter.cxx -o out/src/common/sdl_blitter/BilinearBlitter.o In file included from src/common/sdl_blitter/BilinearBlitter.cxx:18: In file included from src/common/FBBackendSDL2.hxx:21: In file included from src/common/SDL_lib.hxx:21: src/common/bspf.hxx:245:37: warning: unsafe pointer arithmetic [-Wunsafe-buffer-usage] const auto pos = std::search(s1.cbegin()+startpos, s1.cend(), ~~~^~~~~~~~ src/common/bspf.hxx:249:56: warning: unsafe pointer arithmetic [-Wunsafe-buffer-usage] return pos == s1.cend() ? string::npos : pos - (s1.cbegin()+startpos); ~~~^~~~~~~~ In file included from src/common/sdl_blitter/BilinearBlitter.cxx:18: In file included from src/common/FBBackendSDL2.hxx:21: In file included from src/common/SDL_lib.hxx:34: In file included from /usr/local/include/SDL2/SDL.h:32: In file included from /usr/local/include/SDL2/SDL_main.h:25: /usr/local/include/SDL2/SDL_stdinc.h:544:13: warning: '_p' is an unsafe pointer used for buffer access [-Wunsafe-buffer-usage] Uint32 *_p = SDL_static_cast(Uint32 *, dst); ~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /usr/local/include/SDL2/SDL_stdinc.h:550:26: note: used in pointer arithmetic here case 0: do { *_p++ = _val; SDL_FALLTHROUGH; ^~ /usr/local/include/SDL2/SDL_stdinc.h:552:26: note: used in pointer arithmetic here case 2: *_p++ = _val; SDL_FALLTHROUGH; ^~ /usr/local/include/SDL2/SDL_stdinc.h:553:26: note: used in pointer arithmetic here case 1: *_p++ = _val; ^~ /usr/local/include/SDL2/SDL_stdinc.h:551:26: note: used in pointer arithmetic here case 3: *_p++ = _val; SDL_FALLTHROUGH; ^~ 3 warnings generated. mkdir -p -p src/common/sdl_blitter/.deps mkdir -p -p out/src/common/sdl_blitter c++ -MMD -MF "src/common/sdl_blitter/.deps/QisBlitter.d" -MQ "out/src/common/sdl_blitter/QisBlitter.o" -MP -O2 -pipe -I/usr/X11R6/include -I/usr/local/include -x c++ -Wall -Wextra -Wno-unused-parameter -Wno-multichar -Wunused -Woverloaded-virtual -Wnon-virtual-dtor -std=c++17 -Weverything -Wno-c++98-compat-pedantic -Wno-unknown-warning-option -Wno-switch-enum -Wno-conversion -Wno-covered-switch-default -Wno-inconsistent-missing-destructor-override -Wno-float-equal -Wno-exit-time-destructors -Wno-global-constructors -Wno-weak-vtables -Wno-four-char-constants -Wno-padded -Wno-reserved-identifier -Wno-duplicate-enum -fomit-frame-pointer -DSDL_SUPPORT -D_GLIBCXX_USE_CXX11_ABI=1 -DUNIX -DBSPF_UNIX -DGUI_SUPPORT -DWINDOWED_SUPPORT -DSOUND_SUPPORT -DDEBUGGER_SUPPORT -DJOYSTICK_SUPPORT -DCHEATCODE_SUPPORT -DHTTP_LIB_SUPPORT -DPNG_SUPPORT -DZIP_SUPPORT -Isrc/emucore -Isrc/common -Isrc/common/tv_filters -Isrc/emucore/tia -Isrc/emucore/tia/frame-manager -Isrc/json -Isrc/common/repository/sqlite -I/usr/local/include -I/usr/local/include/SDL2 -I/usr/X11R6/include -D_REENTRANT -I/usr/X11R6/include -Isrc/unix -Isrc/gui -Isrc/debugger -Isrc/debugger/gui -Isrc/yacc -Isrc/cheat -Isrc/httplib -c src/common/sdl_blitter/QisBlitter.cxx -o out/src/common/sdl_blitter/QisBlitter.o In file included from src/common/sdl_blitter/QisBlitter.cxx:18: In file included from src/common/FBBackendSDL2.hxx:21: In file included from src/common/SDL_lib.hxx:21: src/common/bspf.hxx:245:37: warning: unsafe pointer arithmetic [-Wunsafe-buffer-usage] const auto pos = std::search(s1.cbegin()+startpos, s1.cend(), ~~~^~~~~~~~ src/common/bspf.hxx:249:56: warning: unsafe pointer arithmetic [-Wunsafe-buffer-usage] return pos == s1.cend() ? string::npos : pos - (s1.cbegin()+startpos); ~~~^~~~~~~~ In file included from src/common/sdl_blitter/QisBlitter.cxx:18: In file included from src/common/FBBackendSDL2.hxx:21: In file included from src/common/SDL_lib.hxx:34: In file included from /usr/local/include/SDL2/SDL.h:32: In file included from /usr/local/include/SDL2/SDL_main.h:25: /usr/local/include/SDL2/SDL_stdinc.h:544:13: warning: '_p' is an unsafe pointer used for buffer access [-Wunsafe-buffer-usage] Uint32 *_p = SDL_static_cast(Uint32 *, dst); ~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /usr/local/include/SDL2/SDL_stdinc.h:552:26: note: used in pointer arithmetic here case 2: *_p++ = _val; SDL_FALLTHROUGH; ^~ /usr/local/include/SDL2/SDL_stdinc.h:553:26: note: used in pointer arithmetic here case 1: *_p++ = _val; ^~ /usr/local/include/SDL2/SDL_stdinc.h:550:26: note: used in pointer arithmetic here case 0: do { *_p++ = _val; SDL_FALLTHROUGH; ^~ /usr/local/include/SDL2/SDL_stdinc.h:551:26: note: used in pointer arithmetic here case 3: *_p++ = _val; SDL_FALLTHROUGH; ^~ 3 warnings generated. mkdir -p -p src/common/sdl_blitter/.deps mkdir -p -p out/src/common/sdl_blitter c++ -MMD -MF "src/common/sdl_blitter/.deps/BlitterFactory.d" -MQ "out/src/common/sdl_blitter/BlitterFactory.o" -MP -O2 -pipe -I/usr/X11R6/include -I/usr/local/include -x c++ -Wall -Wextra -Wno-unused-parameter -Wno-multichar -Wunused -Woverloaded-virtual -Wnon-virtual-dtor -std=c++17 -Weverything -Wno-c++98-compat-pedantic -Wno-unknown-warning-option -Wno-switch-enum -Wno-conversion -Wno-covered-switch-default -Wno-inconsistent-missing-destructor-override -Wno-float-equal -Wno-exit-time-destructors -Wno-global-constructors -Wno-weak-vtables -Wno-four-char-constants -Wno-padded -Wno-reserved-identifier -Wno-duplicate-enum -fomit-frame-pointer -DSDL_SUPPORT -D_GLIBCXX_USE_CXX11_ABI=1 -DUNIX -DBSPF_UNIX -DGUI_SUPPORT -DWINDOWED_SUPPORT -DSOUND_SUPPORT -DDEBUGGER_SUPPORT -DJOYSTICK_SUPPORT -DCHEATCODE_SUPPORT -DHTTP_LIB_SUPPORT -DPNG_SUPPORT -DZIP_SUPPORT -Isrc/emucore -Isrc/common -Isrc/common/tv_filters -Isrc/emucore/tia -Isrc/emucore/tia/frame-manager -Isrc/json -Isrc/common/repository/sqlite -I/usr/local/include -I/usr/local/include/SDL2 -I/usr/X11R6/include -D_REENTRANT -I/usr/X11R6/include -Isrc/unix -Isrc/gui -Isrc/debugger -Isrc/debugger/gui -Isrc/yacc -Isrc/cheat -Isrc/httplib -c src/common/sdl_blitter/BlitterFactory.cxx -o out/src/common/sdl_blitter/BlitterFactory.o In file included from src/common/sdl_blitter/BlitterFactory.cxx:18: In file included from src/common/sdl_blitter/BlitterFactory.hxx:23: In file included from src/common/sdl_blitter/Blitter.hxx:21: src/common/bspf.hxx:245:37: warning: unsafe pointer arithmetic [-Wunsafe-buffer-usage] const auto pos = std::search(s1.cbegin()+startpos, s1.cend(), ~~~^~~~~~~~ src/common/bspf.hxx:249:56: warning: unsafe pointer arithmetic [-Wunsafe-buffer-usage] return pos == s1.cend() ? string::npos : pos - (s1.cbegin()+startpos); ~~~^~~~~~~~ In file included from src/common/sdl_blitter/BlitterFactory.cxx:18: In file included from src/common/sdl_blitter/BlitterFactory.hxx:23: In file included from src/common/sdl_blitter/Blitter.hxx:22: In file included from src/common/SDL_lib.hxx:34: In file included from /usr/local/include/SDL2/SDL.h:32: In file included from /usr/local/include/SDL2/SDL_main.h:25: /usr/local/include/SDL2/SDL_stdinc.h:544:13: warning: '_p' is an unsafe pointer used for buffer access [-Wunsafe-buffer-usage] Uint32 *_p = SDL_static_cast(Uint32 *, dst); ~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /usr/local/include/SDL2/SDL_stdinc.h:550:26: note: used in pointer arithmetic here case 0: do { *_p++ = _val; SDL_FALLTHROUGH; ^~ /usr/local/include/SDL2/SDL_stdinc.h:553:26: note: used in pointer arithmetic here case 1: *_p++ = _val; ^~ /usr/local/include/SDL2/SDL_stdinc.h:552:26: note: used in pointer arithmetic here case 2: *_p++ = _val; SDL_FALLTHROUGH; ^~ /usr/local/include/SDL2/SDL_stdinc.h:551:26: note: used in pointer arithmetic here case 3: *_p++ = _val; SDL_FALLTHROUGH; ^~ 3 warnings generated. mkdir -p -p src/common/repository/.deps mkdir -p -p out/src/common/repository c++ -MMD -MF "src/common/repository/.deps/KeyValueRepositoryPropertyFile.d" -MQ "out/src/common/repository/KeyValueRepositoryPropertyFile.o" -MP -O2 -pipe -I/usr/X11R6/include -I/usr/local/include -x c++ -Wall -Wextra -Wno-unused-parameter -Wno-multichar -Wunused -Woverloaded-virtual -Wnon-virtual-dtor -std=c++17 -Weverything -Wno-c++98-compat-pedantic -Wno-unknown-warning-option -Wno-switch-enum -Wno-conversion -Wno-covered-switch-default -Wno-inconsistent-missing-destructor-override -Wno-float-equal -Wno-exit-time-destructors -Wno-global-constructors -Wno-weak-vtables -Wno-four-char-constants -Wno-padded -Wno-reserved-identifier -Wno-duplicate-enum -fomit-frame-pointer -DSDL_SUPPORT -D_GLIBCXX_USE_CXX11_ABI=1 -DUNIX -DBSPF_UNIX -DGUI_SUPPORT -DWINDOWED_SUPPORT -DSOUND_SUPPORT -DDEBUGGER_SUPPORT -DJOYSTICK_SUPPORT -DCHEATCODE_SUPPORT -DHTTP_LIB_SUPPORT -DPNG_SUPPORT -DZIP_SUPPORT -Isrc/emucore -Isrc/common -Isrc/common/tv_filters -Isrc/emucore/tia -Isrc/emucore/tia/frame-manager -Isrc/json -Isrc/common/repository/sqlite -I/usr/local/include -I/usr/local/include/SDL2 -I/usr/X11R6/include -D_REENTRANT -I/usr/X11R6/include -Isrc/unix -Isrc/gui -Isrc/debugger -Isrc/debugger/gui -Isrc/yacc -Isrc/cheat -Isrc/httplib -c src/common/repository/KeyValueRepositoryPropertyFile.cxx -o out/src/common/repository/KeyValueRepositoryPropertyFile.o In file included from src/common/repository/KeyValueRepositoryPropertyFile.cxx:18: In file included from src/common/repository/KeyValueRepositoryPropertyFile.hxx:24: In file included from src/common/repository/KeyValueRepositoryFile.hxx:23: In file included from src/common/repository/KeyValueRepository.hxx:23: In file included from src/common/Variant.hxx:21: In file included from src/common/Rect.hxx:26: src/common/bspf.hxx:245:37: warning: unsafe pointer arithmetic [-Wunsafe-buffer-usage] const auto pos = std::search(s1.cbegin()+startpos, s1.cend(), ~~~^~~~~~~~ src/common/bspf.hxx:249:56: warning: unsafe pointer arithmetic [-Wunsafe-buffer-usage] return pos == s1.cend() ? string::npos : pos - (s1.cbegin()+startpos); ~~~^~~~~~~~ In file included from src/common/repository/KeyValueRepositoryPropertyFile.cxx:18: In file included from src/common/repository/KeyValueRepositoryPropertyFile.hxx:24: In file included from src/common/repository/KeyValueRepositoryFile.hxx:25: src/emucore/FSNode.hxx:513:31: warning: unsafe pointer arithmetic [-Wunsafe-buffer-usage] const char* cur = start + str.size() - 2; ~~~~~~^~~~~~~~~~~~ src/emucore/FSNode.hxx:512:19: warning: 'start' is an unsafe pointer used for buffer access [-Wunsafe-buffer-usage] const char* start = str.c_str(); ~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~ src/emucore/FSNode.hxx:513:25: note: used in pointer arithmetic here const char* cur = start + str.size() - 2; ^~~~~ src/emucore/FSNode.hxx:513:19: warning: 'cur' is an unsafe pointer used for buffer access [-Wunsafe-buffer-usage] const char* cur = start + str.size() - 2; ~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~ src/emucore/FSNode.hxx:516:11: note: used in pointer arithmetic here --cur; ^~~ src/emucore/FSNode.hxx:518:14: note: used in pointer arithmetic here return cur + 1; ^~~ 5 warnings generated. mkdir -p -p src/common/repository/.deps mkdir -p -p out/src/common/repository c++ -MMD -MF "src/common/repository/.deps/KeyValueRepositoryJsonFile.d" -MQ "out/src/common/repository/KeyValueRepositoryJsonFile.o" -MP -O2 -pipe -I/usr/X11R6/include -I/usr/local/include -x c++ -Wall -Wextra -Wno-unused-parameter -Wno-multichar -Wunused -Woverloaded-virtual -Wnon-virtual-dtor -std=c++17 -Weverything -Wno-c++98-compat-pedantic -Wno-unknown-warning-option -Wno-switch-enum -Wno-conversion -Wno-covered-switch-default -Wno-inconsistent-missing-destructor-override -Wno-float-equal -Wno-exit-time-destructors -Wno-global-constructors -Wno-weak-vtables -Wno-four-char-constants -Wno-padded -Wno-reserved-identifier -Wno-duplicate-enum -fomit-frame-pointer -DSDL_SUPPORT -D_GLIBCXX_USE_CXX11_ABI=1 -DUNIX -DBSPF_UNIX -DGUI_SUPPORT -DWINDOWED_SUPPORT -DSOUND_SUPPORT -DDEBUGGER_SUPPORT -DJOYSTICK_SUPPORT -DCHEATCODE_SUPPORT -DHTTP_LIB_SUPPORT -DPNG_SUPPORT -DZIP_SUPPORT -Isrc/emucore -Isrc/common -Isrc/common/tv_filters -Isrc/emucore/tia -Isrc/emucore/tia/frame-manager -Isrc/json -Isrc/common/repository/sqlite -I/usr/local/include -I/usr/local/include/SDL2 -I/usr/X11R6/include -D_REENTRANT -I/usr/X11R6/include -Isrc/unix -Isrc/gui -Isrc/debugger -Isrc/debugger/gui -Isrc/yacc -Isrc/cheat -Isrc/httplib -c src/common/repository/KeyValueRepositoryJsonFile.cxx -o out/src/common/repository/KeyValueRepositoryJsonFile.o In file included from src/common/repository/KeyValueRepositoryJsonFile.cxx:18: In file included from src/common/repository/KeyValueRepositoryJsonFile.hxx:24: In file included from src/common/repository/KeyValueRepositoryFile.hxx:23: In file included from src/common/repository/KeyValueRepository.hxx:23: In file included from src/common/Variant.hxx:21: In file included from src/common/Rect.hxx:26: src/common/bspf.hxx:245:37: warning: unsafe pointer arithmetic [-Wunsafe-buffer-usage] const auto pos = std::search(s1.cbegin()+startpos, s1.cend(), ~~~^~~~~~~~ src/common/bspf.hxx:249:56: warning: unsafe pointer arithmetic [-Wunsafe-buffer-usage] return pos == s1.cend() ? string::npos : pos - (s1.cbegin()+startpos); ~~~^~~~~~~~ In file included from src/common/repository/KeyValueRepositoryJsonFile.cxx:18: In file included from src/common/repository/KeyValueRepositoryJsonFile.hxx:24: In file included from src/common/repository/KeyValueRepositoryFile.hxx:25: src/emucore/FSNode.hxx:513:31: warning: unsafe pointer arithmetic [-Wunsafe-buffer-usage] const char* cur = start + str.size() - 2; ~~~~~~^~~~~~~~~~~~ src/emucore/FSNode.hxx:512:19: warning: 'start' is an unsafe pointer used for buffer access [-Wunsafe-buffer-usage] const char* start = str.c_str(); ~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~ src/emucore/FSNode.hxx:513:25: note: used in pointer arithmetic here const char* cur = start + str.size() - 2; ^~~~~ src/emucore/FSNode.hxx:513:19: warning: 'cur' is an unsafe pointer used for buffer access [-Wunsafe-buffer-usage] const char* cur = start + str.size() - 2; ~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~ src/emucore/FSNode.hxx:516:11: note: used in pointer arithmetic here --cur; ^~~ src/emucore/FSNode.hxx:518:14: note: used in pointer arithmetic here return cur + 1; ^~~ 5 warnings generated. mkdir -p -p src/common/repository/.deps mkdir -p -p out/src/common/repository c++ -MMD -MF "src/common/repository/.deps/KeyValueRepositoryConfigfile.d" -MQ "out/src/common/repository/KeyValueRepositoryConfigfile.o" -MP -O2 -pipe -I/usr/X11R6/include -I/usr/local/include -x c++ -Wall -Wextra -Wno-unused-parameter -Wno-multichar -Wunused -Woverloaded-virtual -Wnon-virtual-dtor -std=c++17 -Weverything -Wno-c++98-compat-pedantic -Wno-unknown-warning-option -Wno-switch-enum -Wno-conversion -Wno-covered-switch-default -Wno-inconsistent-missing-destructor-override -Wno-float-equal -Wno-exit-time-destructors -Wno-global-constructors -Wno-weak-vtables -Wno-four-char-constants -Wno-padded -Wno-reserved-identifier -Wno-duplicate-enum -fomit-frame-pointer -DSDL_SUPPORT -D_GLIBCXX_USE_CXX11_ABI=1 -DUNIX -DBSPF_UNIX -DGUI_SUPPORT -DWINDOWED_SUPPORT -DSOUND_SUPPORT -DDEBUGGER_SUPPORT -DJOYSTICK_SUPPORT -DCHEATCODE_SUPPORT -DHTTP_LIB_SUPPORT -DPNG_SUPPORT -DZIP_SUPPORT -Isrc/emucore -Isrc/common -Isrc/common/tv_filters -Isrc/emucore/tia -Isrc/emucore/tia/frame-manager -Isrc/json -Isrc/common/repository/sqlite -I/usr/local/include -I/usr/local/include/SDL2 -I/usr/X11R6/include -D_REENTRANT -I/usr/X11R6/include -Isrc/unix -Isrc/gui -Isrc/debugger -Isrc/debugger/gui -Isrc/yacc -Isrc/cheat -Isrc/httplib -c src/common/repository/KeyValueRepositoryConfigfile.cxx -o out/src/common/repository/KeyValueRepositoryConfigfile.o In file included from src/common/repository/KeyValueRepositoryConfigfile.cxx:18: In file included from src/common/repository/KeyValueRepositoryConfigfile.hxx:21: In file included from src/emucore/FSNode.hxx:23: src/common/bspf.hxx:245:37: warning: unsafe pointer arithmetic [-Wunsafe-buffer-usage] const auto pos = std::search(s1.cbegin()+startpos, s1.cend(), ~~~^~~~~~~~ src/common/bspf.hxx:249:56: warning: unsafe pointer arithmetic [-Wunsafe-buffer-usage] return pos == s1.cend() ? string::npos : pos - (s1.cbegin()+startpos); ~~~^~~~~~~~ In file included from src/common/repository/KeyValueRepositoryConfigfile.cxx:18: In file included from src/common/repository/KeyValueRepositoryConfigfile.hxx:21: src/emucore/FSNode.hxx:513:31: warning: unsafe pointer arithmetic [-Wunsafe-buffer-usage] const char* cur = start + str.size() - 2; ~~~~~~^~~~~~~~~~~~ src/emucore/FSNode.hxx:512:19: warning: 'start' is an unsafe pointer used for buffer access [-Wunsafe-buffer-usage] const char* start = str.c_str(); ~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~ src/emucore/FSNode.hxx:513:25: note: used in pointer arithmetic here const char* cur = start + str.size() - 2; ^~~~~ src/emucore/FSNode.hxx:513:19: warning: 'cur' is an unsafe pointer used for buffer access [-Wunsafe-buffer-usage] const char* cur = start + str.size() - 2; ~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~ src/emucore/FSNode.hxx:518:14: note: used in pointer arithmetic here return cur + 1; ^~~ src/emucore/FSNode.hxx:516:11: note: used in pointer arithmetic here --cur; ^~~ 5 warnings generated. mkdir -p -p src/common/repository/.deps mkdir -p -p out/src/common/repository c++ -MMD -MF "src/common/repository/.deps/CompositeKVRJsonAdapter.d" -MQ "out/src/common/repository/CompositeKVRJsonAdapter.o" -MP -O2 -pipe -I/usr/X11R6/include -I/usr/local/include -x c++ -Wall -Wextra -Wno-unused-parameter -Wno-multichar -Wunused -Woverloaded-virtual -Wnon-virtual-dtor -std=c++17 -Weverything -Wno-c++98-compat-pedantic -Wno-unknown-warning-option -Wno-switch-enum -Wno-conversion -Wno-covered-switch-default -Wno-inconsistent-missing-destructor-override -Wno-float-equal -Wno-exit-time-destructors -Wno-global-constructors -Wno-weak-vtables -Wno-four-char-constants -Wno-padded -Wno-reserved-identifier -Wno-duplicate-enum -fomit-frame-pointer -DSDL_SUPPORT -D_GLIBCXX_USE_CXX11_ABI=1 -DUNIX -DBSPF_UNIX -DGUI_SUPPORT -DWINDOWED_SUPPORT -DSOUND_SUPPORT -DDEBUGGER_SUPPORT -DJOYSTICK_SUPPORT -DCHEATCODE_SUPPORT -DHTTP_LIB_SUPPORT -DPNG_SUPPORT -DZIP_SUPPORT -Isrc/emucore -Isrc/common -Isrc/common/tv_filters -Isrc/emucore/tia -Isrc/emucore/tia/frame-manager -Isrc/json -Isrc/common/repository/sqlite -I/usr/local/include -I/usr/local/include/SDL2 -I/usr/X11R6/include -D_REENTRANT -I/usr/X11R6/include -Isrc/unix -Isrc/gui -Isrc/debugger -Isrc/debugger/gui -Isrc/yacc -Isrc/cheat -Isrc/httplib -c src/common/repository/CompositeKVRJsonAdapter.cxx -o out/src/common/repository/CompositeKVRJsonAdapter.o In file included from src/common/repository/CompositeKVRJsonAdapter.cxx:20: In file included from src/common/repository/CompositeKVRJsonAdapter.hxx:21: In file included from src/common/repository/CompositeKeyValueRepository.hxx:23: In file included from src/common/repository/KeyValueRepository.hxx:23: In file included from src/common/Variant.hxx:21: In file included from src/common/Rect.hxx:26: src/common/bspf.hxx:245:37: warning: unsafe pointer arithmetic [-Wunsafe-buffer-usage] const auto pos = std::search(s1.cbegin()+startpos, s1.cend(), ~~~^~~~~~~~ src/common/bspf.hxx:249:56: warning: unsafe pointer arithmetic [-Wunsafe-buffer-usage] return pos == s1.cend() ? string::npos : pos - (s1.cbegin()+startpos); ~~~^~~~~~~~ In file included from src/common/repository/CompositeKVRJsonAdapter.cxx:21: In file included from src/common/repository/KeyValueRepositoryJsonFile.hxx:24: In file included from src/common/repository/KeyValueRepositoryFile.hxx:25: src/emucore/FSNode.hxx:513:31: warning: unsafe pointer arithmetic [-Wunsafe-buffer-usage] const char* cur = start + str.size() - 2; ~~~~~~^~~~~~~~~~~~ src/emucore/FSNode.hxx:512:19: warning: 'start' is an unsafe pointer used for buffer access [-Wunsafe-buffer-usage] const char* start = str.c_str(); ~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~ src/emucore/FSNode.hxx:513:25: note: used in pointer arithmetic here const char* cur = start + str.size() - 2; ^~~~~ src/emucore/FSNode.hxx:513:19: warning: 'cur' is an unsafe pointer used for buffer access [-Wunsafe-buffer-usage] const char* cur = start + str.size() - 2; ~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~ src/emucore/FSNode.hxx:516:11: note: used in pointer arithmetic here --cur; ^~~ src/emucore/FSNode.hxx:518:14: note: used in pointer arithmetic here return cur + 1; ^~~ 5 warnings generated. mkdir -p -p src/common/repository/.deps mkdir -p -p out/src/common/repository c++ -MMD -MF "src/common/repository/.deps/CompositeKeyValueRepository.d" -MQ "out/src/common/repository/CompositeKeyValueRepository.o" -MP -O2 -pipe -I/usr/X11R6/include -I/usr/local/include -x c++ -Wall -Wextra -Wno-unused-parameter -Wno-multichar -Wunused -Woverloaded-virtual -Wnon-virtual-dtor -std=c++17 -Weverything -Wno-c++98-compat-pedantic -Wno-unknown-warning-option -Wno-switch-enum -Wno-conversion -Wno-covered-switch-default -Wno-inconsistent-missing-destructor-override -Wno-float-equal -Wno-exit-time-destructors -Wno-global-constructors -Wno-weak-vtables -Wno-four-char-constants -Wno-padded -Wno-reserved-identifier -Wno-duplicate-enum -fomit-frame-pointer -DSDL_SUPPORT -D_GLIBCXX_USE_CXX11_ABI=1 -DUNIX -DBSPF_UNIX -DGUI_SUPPORT -DWINDOWED_SUPPORT -DSOUND_SUPPORT -DDEBUGGER_SUPPORT -DJOYSTICK_SUPPORT -DCHEATCODE_SUPPORT -DHTTP_LIB_SUPPORT -DPNG_SUPPORT -DZIP_SUPPORT -Isrc/emucore -Isrc/common -Isrc/common/tv_filters -Isrc/emucore/tia -Isrc/emucore/tia/frame-manager -Isrc/json -Isrc/common/repository/sqlite -I/usr/local/include -I/usr/local/include/SDL2 -I/usr/X11R6/include -D_REENTRANT -I/usr/X11R6/include -Isrc/unix -Isrc/gui -Isrc/debugger -Isrc/debugger/gui -Isrc/yacc -Isrc/cheat -Isrc/httplib -c src/common/repository/CompositeKeyValueRepository.cxx -o out/src/common/repository/CompositeKeyValueRepository.o In file included from src/common/repository/CompositeKeyValueRepository.cxx:18: In file included from src/common/repository/CompositeKeyValueRepository.hxx:23: In file included from src/common/repository/KeyValueRepository.hxx:23: In file included from src/common/Variant.hxx:21: In file included from src/common/Rect.hxx:26: src/common/bspf.hxx:245:37: warning: unsafe pointer arithmetic [-Wunsafe-buffer-usage] const auto pos = std::search(s1.cbegin()+startpos, s1.cend(), ~~~^~~~~~~~ src/common/bspf.hxx:249:56: warning: unsafe pointer arithmetic [-Wunsafe-buffer-usage] return pos == s1.cend() ? string::npos : pos - (s1.cbegin()+startpos); ~~~^~~~~~~~ 2 warnings generated. mkdir -p -p src/common/audio/.deps mkdir -p -p out/src/common/audio c++ -MMD -MF "src/common/audio/.deps/SimpleResampler.d" -MQ "out/src/common/audio/SimpleResampler.o" -MP -O2 -pipe -I/usr/X11R6/include -I/usr/local/include -x c++ -Wall -Wextra -Wno-unused-parameter -Wno-multichar -Wunused -Woverloaded-virtual -Wnon-virtual-dtor -std=c++17 -Weverything -Wno-c++98-compat-pedantic -Wno-unknown-warning-option -Wno-switch-enum -Wno-conversion -Wno-covered-switch-default -Wno-inconsistent-missing-destructor-override -Wno-float-equal -Wno-exit-time-destructors -Wno-global-constructors -Wno-weak-vtables -Wno-four-char-constants -Wno-padded -Wno-reserved-identifier -Wno-duplicate-enum -fomit-frame-pointer -DSDL_SUPPORT -D_GLIBCXX_USE_CXX11_ABI=1 -DUNIX -DBSPF_UNIX -DGUI_SUPPORT -DWINDOWED_SUPPORT -DSOUND_SUPPORT -DDEBUGGER_SUPPORT -DJOYSTICK_SUPPORT -DCHEATCODE_SUPPORT -DHTTP_LIB_SUPPORT -DPNG_SUPPORT -DZIP_SUPPORT -Isrc/emucore -Isrc/common -Isrc/common/tv_filters -Isrc/emucore/tia -Isrc/emucore/tia/frame-manager -Isrc/json -Isrc/common/repository/sqlite -I/usr/local/include -I/usr/local/include/SDL2 -I/usr/X11R6/include -D_REENTRANT -I/usr/X11R6/include -Isrc/unix -Isrc/gui -Isrc/debugger -Isrc/debugger/gui -Isrc/yacc -Isrc/cheat -Isrc/httplib -c src/common/audio/SimpleResampler.cxx -o out/src/common/audio/SimpleResampler.o In file included from src/common/audio/SimpleResampler.cxx:18: In file included from src/common/audio/SimpleResampler.hxx:21: src/common/bspf.hxx:245:37: warning: unsafe pointer arithmetic [-Wunsafe-buffer-usage] const auto pos = std::search(s1.cbegin()+startpos, s1.cend(), ~~~^~~~~~~~ src/common/bspf.hxx:249:56: warning: unsafe pointer arithmetic [-Wunsafe-buffer-usage] return pos == s1.cend() ? string::npos : pos - (s1.cbegin()+startpos); ~~~^~~~~~~~ src/common/audio/SimpleResampler.cxx:52:48: warning: unsafe buffer access [-Wunsafe-buffer-usage] const float sampleL = static_cast(myCurrentFragment[2*myFragmentIndex]) / static_cast(0x7fff); ^~~~~~~~~~~~~~~~~ src/common/audio/SimpleResampler.cxx:53:48: warning: unsafe buffer access [-Wunsafe-buffer-usage] const float sampleR = static_cast(myCurrentFragment[2*myFragmentIndex + 1]) / static_cast(0x7fff); ^~~~~~~~~~~~~~~~~ src/common/audio/SimpleResampler.cxx:62:47: warning: unsafe buffer access [-Wunsafe-buffer-usage] const float sample = static_cast(myCurrentFragment[myFragmentIndex] / static_cast(0x7fff)); ^~~~~~~~~~~~~~~~~ src/common/audio/SimpleResampler.cxx:30:43: warning: 'fragment' is an unsafe pointer used for buffer access [-Wunsafe-buffer-usage] void SimpleResampler::fillFragment(float* fragment, uInt32 length) ~~~~~~~^~~~~~~~ src/common/audio/SimpleResampler.cxx:56:9: note: used in buffer access here fragment[2*i] = sampleL; ^~~~~~~~ src/common/audio/SimpleResampler.cxx:65:25: note: used in buffer access here fragment[2*i] = fragment[2*i + 1] = sample; ^~~~~~~~ src/common/audio/SimpleResampler.cxx:60:9: note: used in buffer access here fragment[i] = (sampleL + sampleR) / 2.F; ^~~~~~~~ src/common/audio/SimpleResampler.cxx:57:9: note: used in buffer access here fragment[2*i + 1] = sampleR; ^~~~~~~~ src/common/audio/SimpleResampler.cxx:65:9: note: used in buffer access here fragment[2*i] = fragment[2*i + 1] = sample; ^~~~~~~~ src/common/audio/SimpleResampler.cxx:67:9: note: used in buffer access here fragment[i] = sample; ^~~~~~~~ 6 warnings generated. mkdir -p -p src/common/audio/.deps mkdir -p -p out/src/common/audio c++ -MMD -MF "src/common/audio/.deps/ConvolutionBuffer.d" -MQ "out/src/common/audio/ConvolutionBuffer.o" -MP -O2 -pipe -I/usr/X11R6/include -I/usr/local/include -x c++ -Wall -Wextra -Wno-unused-parameter -Wno-multichar -Wunused -Woverloaded-virtual -Wnon-virtual-dtor -std=c++17 -Weverything -Wno-c++98-compat-pedantic -Wno-unknown-warning-option -Wno-switch-enum -Wno-conversion -Wno-covered-switch-default -Wno-inconsistent-missing-destructor-override -Wno-float-equal -Wno-exit-time-destructors -Wno-global-constructors -Wno-weak-vtables -Wno-four-char-constants -Wno-padded -Wno-reserved-identifier -Wno-duplicate-enum -fomit-frame-pointer -DSDL_SUPPORT -D_GLIBCXX_USE_CXX11_ABI=1 -DUNIX -DBSPF_UNIX -DGUI_SUPPORT -DWINDOWED_SUPPORT -DSOUND_SUPPORT -DDEBUGGER_SUPPORT -DJOYSTICK_SUPPORT -DCHEATCODE_SUPPORT -DHTTP_LIB_SUPPORT -DPNG_SUPPORT -DZIP_SUPPORT -Isrc/emucore -Isrc/common -Isrc/common/tv_filters -Isrc/emucore/tia -Isrc/emucore/tia/frame-manager -Isrc/json -Isrc/common/repository/sqlite -I/usr/local/include -I/usr/local/include/SDL2 -I/usr/X11R6/include -D_REENTRANT -I/usr/X11R6/include -Isrc/unix -Isrc/gui -Isrc/debugger -Isrc/debugger/gui -Isrc/yacc -Isrc/cheat -Isrc/httplib -c src/common/audio/ConvolutionBuffer.cxx -o out/src/common/audio/ConvolutionBuffer.o In file included from src/common/audio/ConvolutionBuffer.cxx:18: In file included from src/common/audio/ConvolutionBuffer.hxx:21: src/common/bspf.hxx:245:37: warning: unsafe pointer arithmetic [-Wunsafe-buffer-usage] const auto pos = std::search(s1.cbegin()+startpos, s1.cend(), ~~~^~~~~~~~ src/common/bspf.hxx:249:56: warning: unsafe pointer arithmetic [-Wunsafe-buffer-usage] return pos == s1.cend() ? string::npos : pos - (s1.cbegin()+startpos); ~~~^~~~~~~~ src/common/audio/ConvolutionBuffer.cxx:36:59: warning: 'kernel' is an unsafe pointer used for buffer access [-Wunsafe-buffer-usage] float ConvolutionBuffer::convoluteWith(const float* const kernel) const ~~~~~~~~~~~~~~~~~~~^~~~~~ src/common/audio/ConvolutionBuffer.cxx:41:15: note: used in buffer access here result += kernel[i] * myData[(myFirstIndex + i) % mySize]; ^~~~~~ 3 warnings generated. mkdir -p -p src/common/audio/.deps mkdir -p -p out/src/common/audio c++ -MMD -MF "src/common/audio/.deps/LanczosResampler.d" -MQ "out/src/common/audio/LanczosResampler.o" -MP -O2 -pipe -I/usr/X11R6/include -I/usr/local/include -x c++ -Wall -Wextra -Wno-unused-parameter -Wno-multichar -Wunused -Woverloaded-virtual -Wnon-virtual-dtor -std=c++17 -Weverything -Wno-c++98-compat-pedantic -Wno-unknown-warning-option -Wno-switch-enum -Wno-conversion -Wno-covered-switch-default -Wno-inconsistent-missing-destructor-override -Wno-float-equal -Wno-exit-time-destructors -Wno-global-constructors -Wno-weak-vtables -Wno-four-char-constants -Wno-padded -Wno-reserved-identifier -Wno-duplicate-enum -fomit-frame-pointer -DSDL_SUPPORT -D_GLIBCXX_USE_CXX11_ABI=1 -DUNIX -DBSPF_UNIX -DGUI_SUPPORT -DWINDOWED_SUPPORT -DSOUND_SUPPORT -DDEBUGGER_SUPPORT -DJOYSTICK_SUPPORT -DCHEATCODE_SUPPORT -DHTTP_LIB_SUPPORT -DPNG_SUPPORT -DZIP_SUPPORT -Isrc/emucore -Isrc/common -Isrc/common/tv_filters -Isrc/emucore/tia -Isrc/emucore/tia/frame-manager -Isrc/json -Isrc/common/repository/sqlite -I/usr/local/include -I/usr/local/include/SDL2 -I/usr/X11R6/include -D_REENTRANT -I/usr/X11R6/include -Isrc/unix -Isrc/gui -Isrc/debugger -Isrc/debugger/gui -Isrc/yacc -Isrc/cheat -Isrc/httplib -c src/common/audio/LanczosResampler.cxx -o out/src/common/audio/LanczosResampler.o In file included from src/common/audio/LanczosResampler.cxx:20: In file included from src/common/audio/LanczosResampler.hxx:21: src/common/bspf.hxx:245:37: warning: unsafe pointer arithmetic [-Wunsafe-buffer-usage] const auto pos = std::search(s1.cbegin()+startpos, s1.cend(), ~~~^~~~~~~~ src/common/bspf.hxx:249:56: warning: unsafe pointer arithmetic [-Wunsafe-buffer-usage] return pos == s1.cend() ? string::npos : pos - (s1.cbegin()+startpos); ~~~^~~~~~~~ src/common/audio/LanczosResampler.cxx:99:42: warning: unsafe pointer arithmetic [-Wunsafe-buffer-usage] float* kernel = myPrecomputedKernels.get() + myKernelSize * i; ~~~~~~~~~~~~~~~~~~~~~^~~~~ src/common/audio/LanczosResampler.cxx:99:12: warning: 'kernel' is an unsafe pointer used for buffer access [-Wunsafe-buffer-usage] float* kernel = myPrecomputedKernels.get() + myKernelSize * i; ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ src/common/audio/LanczosResampler.cxx:105:7: note: used in buffer access here kernel[j] = lanczosKernel( ^~~~~~ src/common/audio/LanczosResampler.cxx:146:48: warning: unsafe pointer arithmetic [-Wunsafe-buffer-usage] const float* kernel = myPrecomputedKernels.get() + (myCurrentKernelIndex * myKernelSize); ~~~~~~~~~~~~~~~~~~~~~^~~~~ src/common/audio/LanczosResampler.cxx:126:44: warning: 'fragment' is an unsafe pointer used for buffer access [-Wunsafe-buffer-usage] void LanczosResampler::fillFragment(float* fragment, uInt32 length) ~~~~~~~^~~~~~~~ src/common/audio/LanczosResampler.cxx:155:9: note: used in buffer access here fragment[2*i + 1] = sampleR; ^~~~~~~~ src/common/audio/LanczosResampler.cxx:154:9: note: used in buffer access here fragment[2*i] = sampleL; ^~~~~~~~ src/common/audio/LanczosResampler.cxx:158:9: note: used in buffer access here fragment[i] = (sampleL + sampleR) / 2.F; ^~~~~~~~ src/common/audio/LanczosResampler.cxx:163:9: note: used in buffer access here fragment[2*i] = fragment[2*i + 1] = sample; ^~~~~~~~ src/common/audio/LanczosResampler.cxx:165:9: note: used in buffer access here fragment[i] = sample; ^~~~~~~~ src/common/audio/LanczosResampler.cxx:163:25: note: used in buffer access here fragment[2*i] = fragment[2*i + 1] = sample; ^~~~~~~~ src/common/audio/LanczosResampler.cxx:183:42: warning: unsafe buffer access [-Wunsafe-buffer-usage] myBufferL->shift(myHighPassL.apply(myCurrentFragment[2*myFragmentIndex] / static_cast(0x7fff))); ^~~~~~~~~~~~~~~~~ src/common/audio/LanczosResampler.cxx:184:42: warning: unsafe buffer access [-Wunsafe-buffer-usage] myBufferR->shift(myHighPassR.apply(myCurrentFragment[2*myFragmentIndex + 1] / static_cast(0x7fff))); ^~~~~~~~~~~~~~~~~ src/common/audio/LanczosResampler.cxx:187:40: warning: unsafe buffer access [-Wunsafe-buffer-usage] myBuffer->shift(myHighPass.apply(myCurrentFragment[myFragmentIndex] / static_cast(0x7fff))); ^~~~~~~~~~~~~~~~~ 9 warnings generated. mkdir -p -p src/common/audio/.deps mkdir -p -p out/src/common/audio c++ -MMD -MF "src/common/audio/.deps/HighPass.d" -MQ "out/src/common/audio/HighPass.o" -MP -O2 -pipe -I/usr/X11R6/include -I/usr/local/include -x c++ -Wall -Wextra -Wno-unused-parameter -Wno-multichar -Wunused -Woverloaded-virtual -Wnon-virtual-dtor -std=c++17 -Weverything -Wno-c++98-compat-pedantic -Wno-unknown-warning-option -Wno-switch-enum -Wno-conversion -Wno-covered-switch-default -Wno-inconsistent-missing-destructor-override -Wno-float-equal -Wno-exit-time-destructors -Wno-global-constructors -Wno-weak-vtables -Wno-four-char-constants -Wno-padded -Wno-reserved-identifier -Wno-duplicate-enum -fomit-frame-pointer -DSDL_SUPPORT -D_GLIBCXX_USE_CXX11_ABI=1 -DUNIX -DBSPF_UNIX -DGUI_SUPPORT -DWINDOWED_SUPPORT -DSOUND_SUPPORT -DDEBUGGER_SUPPORT -DJOYSTICK_SUPPORT -DCHEATCODE_SUPPORT -DHTTP_LIB_SUPPORT -DPNG_SUPPORT -DZIP_SUPPORT -Isrc/emucore -Isrc/common -Isrc/common/tv_filters -Isrc/emucore/tia -Isrc/emucore/tia/frame-manager -Isrc/json -Isrc/common/repository/sqlite -I/usr/local/include -I/usr/local/include/SDL2 -I/usr/X11R6/include -D_REENTRANT -I/usr/X11R6/include -Isrc/unix -Isrc/gui -Isrc/debugger -Isrc/debugger/gui -Isrc/yacc -Isrc/cheat -Isrc/httplib -c src/common/audio/HighPass.cxx -o out/src/common/audio/HighPass.o In file included from src/common/audio/HighPass.cxx:18: src/common/bspf.hxx:245:37: warning: unsafe pointer arithmetic [-Wunsafe-buffer-usage] const auto pos = std::search(s1.cbegin()+startpos, s1.cend(), ~~~^~~~~~~~ src/common/bspf.hxx:249:56: warning: unsafe pointer arithmetic [-Wunsafe-buffer-usage] return pos == s1.cend() ? string::npos : pos - (s1.cbegin()+startpos); ~~~^~~~~~~~ 2 warnings generated. mkdir -p -p src/common/tv_filters/.deps mkdir -p -p out/src/common/tv_filters c++ -MMD -MF "src/common/tv_filters/.deps/NTSCFilter.d" -MQ "out/src/common/tv_filters/NTSCFilter.o" -MP -O2 -pipe -I/usr/X11R6/include -I/usr/local/include -x c++ -Wall -Wextra -Wno-unused-parameter -Wno-multichar -Wunused -Woverloaded-virtual -Wnon-virtual-dtor -std=c++17 -Weverything -Wno-c++98-compat-pedantic -Wno-unknown-warning-option -Wno-switch-enum -Wno-conversion -Wno-covered-switch-default -Wno-inconsistent-missing-destructor-override -Wno-float-equal -Wno-exit-time-destructors -Wno-global-constructors -Wno-weak-vtables -Wno-four-char-constants -Wno-padded -Wno-reserved-identifier -Wno-duplicate-enum -fomit-frame-pointer -DSDL_SUPPORT -D_GLIBCXX_USE_CXX11_ABI=1 -DUNIX -DBSPF_UNIX -DGUI_SUPPORT -DWINDOWED_SUPPORT -DSOUND_SUPPORT -DDEBUGGER_SUPPORT -DJOYSTICK_SUPPORT -DCHEATCODE_SUPPORT -DHTTP_LIB_SUPPORT -DPNG_SUPPORT -DZIP_SUPPORT -Isrc/emucore -Isrc/common -Isrc/common/tv_filters -Isrc/emucore/tia -Isrc/emucore/tia/frame-manager -Isrc/json -Isrc/common/repository/sqlite -I/usr/local/include -I/usr/local/include/SDL2 -I/usr/X11R6/include -D_REENTRANT -I/usr/X11R6/include -Isrc/unix -Isrc/gui -Isrc/debugger -Isrc/debugger/gui -Isrc/yacc -Isrc/cheat -Isrc/httplib -c src/common/tv_filters/NTSCFilter.cxx -o out/src/common/tv_filters/NTSCFilter.o In file included from src/common/tv_filters/NTSCFilter.cxx:18: In file included from src/emucore/TIASurface.hxx:29: In file included from src/common/Rect.hxx:26: src/common/bspf.hxx:245:37: warning: unsafe pointer arithmetic [-Wunsafe-buffer-usage] const auto pos = std::search(s1.cbegin()+startpos, s1.cend(), ~~~^~~~~~~~ src/common/bspf.hxx:249:56: warning: unsafe pointer arithmetic [-Wunsafe-buffer-usage] return pos == s1.cend() ? string::npos : pos - (s1.cbegin()+startpos); ~~~^~~~~~~~ In file included from src/common/tv_filters/NTSCFilter.cxx:18: In file included from src/emucore/TIASurface.hxx:31: In file included from src/common/tv_filters/NTSCFilter.hxx:25: src/common/tv_filters/AtariNTSC.hxx:238:22: warning: 'to_rgb' is an unsafe pointer used for buffer access [-Wunsafe-buffer-usage] const float* to_rgb, int& ir, int& ig, int& ib) { ~~~~~~~~~~~~~^~~~~~ src/common/tv_filters/AtariNTSC.hxx:240:33: note: used in buffer access here ig = static_cast(y + to_rgb[2] * i + to_rgb[3] * q); ^~~~~~ src/common/tv_filters/AtariNTSC.hxx:241:33: note: used in buffer access here ib = static_cast(y + to_rgb[4] * i + to_rgb[5] * q); ^~~~~~ src/common/tv_filters/AtariNTSC.hxx:241:49: note: used in buffer access here ib = static_cast(y + to_rgb[4] * i + to_rgb[5] * q); ^~~~~~ src/common/tv_filters/AtariNTSC.hxx:240:49: note: used in buffer access here ig = static_cast(y + to_rgb[2] * i + to_rgb[3] * q); ^~~~~~ src/common/tv_filters/AtariNTSC.hxx:239:49: note: used in buffer access here ir = static_cast(y + to_rgb[0] * i + to_rgb[1] * q); ^~~~~~ 3 warnings generated. mkdir -p -p src/common/tv_filters/.deps mkdir -p -p out/src/common/tv_filters c++ -MMD -MF "src/common/tv_filters/.deps/AtariNTSC.d" -MQ "out/src/common/tv_filters/AtariNTSC.o" -MP -O2 -pipe -I/usr/X11R6/include -I/usr/local/include -x c++ -Wall -Wextra -Wno-unused-parameter -Wno-multichar -Wunused -Woverloaded-virtual -Wnon-virtual-dtor -std=c++17 -Weverything -Wno-c++98-compat-pedantic -Wno-unknown-warning-option -Wno-switch-enum -Wno-conversion -Wno-covered-switch-default -Wno-inconsistent-missing-destructor-override -Wno-float-equal -Wno-exit-time-destructors -Wno-global-constructors -Wno-weak-vtables -Wno-four-char-constants -Wno-padded -Wno-reserved-identifier -Wno-duplicate-enum -fomit-frame-pointer -DSDL_SUPPORT -D_GLIBCXX_USE_CXX11_ABI=1 -DUNIX -DBSPF_UNIX -DGUI_SUPPORT -DWINDOWED_SUPPORT -DSOUND_SUPPORT -DDEBUGGER_SUPPORT -DJOYSTICK_SUPPORT -DCHEATCODE_SUPPORT -DHTTP_LIB_SUPPORT -DPNG_SUPPORT -DZIP_SUPPORT -Isrc/emucore -Isrc/common -Isrc/common/tv_filters -Isrc/emucore/tia -Isrc/emucore/tia/frame-manager -Isrc/json -Isrc/common/repository/sqlite -I/usr/local/include -I/usr/local/include/SDL2 -I/usr/X11R6/include -D_REENTRANT -I/usr/X11R6/include -Isrc/unix -Isrc/gui -Isrc/debugger -Isrc/debugger/gui -Isrc/yacc -Isrc/cheat -Isrc/httplib -c src/common/tv_filters/AtariNTSC.cxx -o out/src/common/tv_filters/AtariNTSC.o In file included from src/common/tv_filters/AtariNTSC.cxx:19: In file included from src/common/tv_filters/AtariNTSC.hxx:46: In file included from src/emucore/FrameBufferConstants.hxx:21: In file included from src/emucore/tia/TIAConstants.hxx:21: src/common/bspf.hxx:245:37: warning: unsafe pointer arithmetic [-Wunsafe-buffer-usage] const auto pos = std::search(s1.cbegin()+startpos, s1.cend(), ~~~^~~~~~~~ src/common/bspf.hxx:249:56: warning: unsafe pointer arithmetic [-Wunsafe-buffer-usage] return pos == s1.cend() ? string::npos : pos - (s1.cbegin()+startpos); ~~~^~~~~~~~ In file included from src/common/tv_filters/AtariNTSC.cxx:19: src/common/tv_filters/AtariNTSC.hxx:238:22: warning: 'to_rgb' is an unsafe pointer used for buffer access [-Wunsafe-buffer-usage] const float* to_rgb, int& ir, int& ig, int& ib) { ~~~~~~~~~~~~~^~~~~~ src/common/tv_filters/AtariNTSC.hxx:240:33: note: used in buffer access here ig = static_cast(y + to_rgb[2] * i + to_rgb[3] * q); ^~~~~~ src/common/tv_filters/AtariNTSC.hxx:241:33: note: used in buffer access here ib = static_cast(y + to_rgb[4] * i + to_rgb[5] * q); ^~~~~~ src/common/tv_filters/AtariNTSC.hxx:240:49: note: used in buffer access here ig = static_cast(y + to_rgb[2] * i + to_rgb[3] * q); ^~~~~~ src/common/tv_filters/AtariNTSC.hxx:241:49: note: used in buffer access here ib = static_cast(y + to_rgb[4] * i + to_rgb[5] * q); ^~~~~~ src/common/tv_filters/AtariNTSC.hxx:239:49: note: used in buffer access here ir = static_cast(y + to_rgb[0] * i + to_rgb[1] * q); ^~~~~~ src/common/tv_filters/AtariNTSC.cxx:44:10: warning: 'ptr' is an unsafe pointer used for buffer access [-Wunsafe-buffer-usage] uInt8* ptr = myRGBPalette.data(); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~ src/common/tv_filters/AtariNTSC.cxx:47:6: note: used in pointer arithmetic here *ptr++ = (palette[i] >> 16) & 0xff; ^~~ src/common/tv_filters/AtariNTSC.cxx:49:6: note: used in pointer arithmetic here *ptr++ = palette[i] & 0xff; ^~~ src/common/tv_filters/AtariNTSC.cxx:48:6: note: used in pointer arithmetic here *ptr++ = (palette[i] >> 8) & 0xff; ^~~ src/common/tv_filters/AtariNTSC.cxx:57:16: warning: 'ptr' is an unsafe pointer used for buffer access [-Wunsafe-buffer-usage] const uInt8* ptr = myRGBPalette.data(); ~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~ src/common/tv_filters/AtariNTSC.cxx:62:23: note: used in pointer arithmetic here b = (*ptr++) / 255.F * rgb_unit + rgb_offset; ^~~ src/common/tv_filters/AtariNTSC.cxx:61:23: note: used in pointer arithmetic here g = (*ptr++) / 255.F * rgb_unit + rgb_offset, ^~~ src/common/tv_filters/AtariNTSC.cxx:60:23: note: used in pointer arithmetic here const float r = (*ptr++) / 255.F * rgb_unit + rgb_offset, ^~~ src/common/tv_filters/AtariNTSC.cxx:69:13: warning: 'kernel' is an unsafe pointer used for buffer access [-Wunsafe-buffer-usage] uInt32* kernel = myColorTable[entry].data(); ~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ src/common/tv_filters/AtariNTSC.cxx:75:11: note: used in buffer access here kernel [c ] - kernel [(c+10)%14+14] - ^~~~~~ src/common/tv_filters/AtariNTSC.cxx:77:7: note: used in buffer access here kernel [c + 3 + 14] += error; ^~~~~~ src/common/tv_filters/AtariNTSC.cxx:76:11: note: used in buffer access here kernel [c + 7] - kernel [c + 3 +14]; ^~~~~~ src/common/tv_filters/AtariNTSC.cxx:76:28: note: used in buffer access here kernel [c + 7] - kernel [c + 3 +14]; ^~~~~~ src/common/tv_filters/AtariNTSC.cxx:75:28: note: used in buffer access here kernel [c ] - kernel [(c+10)%14+14] - ^~~~~~ src/common/tv_filters/AtariNTSC.cxx:138:14: warning: unsafe pointer arithmetic [-Wunsafe-buffer-usage] rgb_out = static_cast(rgb_out) + out_pitch * yStart; ^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/common/tv_filters/AtariNTSC.cxx:199:15: warning: unsafe pointer arithmetic [-Wunsafe-buffer-usage] rgb_out = static_cast(rgb_out) + out_pitch; ^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/common/tv_filters/AtariNTSC.cxx:130:43: warning: 'atari_in' is an unsafe pointer used for buffer access [-Wunsafe-buffer-usage] void AtariNTSC::renderThread(const uInt8* atari_in, const uInt32 in_width, ~~~~~~~~~~~~~^~~~~~~~ src/common/tv_filters/AtariNTSC.cxx:137:3: note: used in pointer arithmetic here atari_in += in_width * yStart; ^~~~~~~~ src/common/tv_filters/AtariNTSC.cxx:198:5: note: used in pointer arithmetic here atari_in += in_width; ^~~~~~~~ src/common/tv_filters/AtariNTSC.cxx:144:18: warning: 'line_in' is an unsafe pointer used for buffer access [-Wunsafe-buffer-usage] const uInt8* line_in = atari_in; ~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~ src/common/tv_filters/AtariNTSC.cxx:162:30: note: used in buffer access here ATARI_NTSC_COLOR_IN(1, line_in[1]) ^~~~~~~ src/common/tv_filters/AtariNTSC.hxx:209:34: note: expanded from macro 'ATARI_NTSC_COLOR_IN' kernel##index = (color_ = (color), myColorTable[color_].data());\ ^~~~~ src/common/tv_filters/AtariNTSC.cxx:147:7: note: used in pointer arithmetic here ++line_in; ^~~~~~~ src/common/tv_filters/AtariNTSC.cxx:167:7: note: used in pointer arithmetic here line_in += 2; ^~~~~~~ src/common/tv_filters/AtariNTSC.cxx:145:5: warning: 'kernel0' is an unsafe pointer used for buffer access [-Wunsafe-buffer-usage] ATARI_NTSC_BEGIN_ROW(NTSC_black, line_in[0]); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ src/common/tv_filters/AtariNTSC.hxx:199:21: note: expanded from macro 'ATARI_NTSC_BEGIN_ROW' uInt32 const* kernel0 = myColorTable[atari_ntsc_pixel0_].data();\ ~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ src/common/tv_filters/AtariNTSC.cxx:192:5: note: used in buffer access here ATARI_NTSC_RGB_OUT_8888(4, line_out[4]) ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ src/common/tv_filters/AtariNTSC.hxx:216:9: note: expanded from macro 'ATARI_NTSC_RGB_OUT_8888' kernel0 [index ] + kernel1 [(index+10)%7+14] +\ ^~~~~~~ src/common/tv_filters/AtariNTSC.cxx:158:7: note: used in buffer access here ATARI_NTSC_RGB_OUT_8888(1, line_out[1]) ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ src/common/tv_filters/AtariNTSC.hxx:216:9: note: expanded from macro 'ATARI_NTSC_RGB_OUT_8888' kernel0 [index ] + kernel1 [(index+10)%7+14] +\ ^~~~~~~ src/common/tv_filters/AtariNTSC.cxx:165:7: note: used in buffer access here ATARI_NTSC_RGB_OUT_8888(6, line_out[6]) ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ src/common/tv_filters/AtariNTSC.hxx:216:9: note: expanded from macro 'ATARI_NTSC_RGB_OUT_8888' kernel0 [index ] + kernel1 [(index+10)%7+14] +\ ^~~~~~~ src/common/tv_filters/AtariNTSC.cxx:175:5: note: used in buffer access here ATARI_NTSC_RGB_OUT_8888(2, line_out[2]) ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ src/common/tv_filters/AtariNTSC.hxx:216:9: note: expanded from macro 'ATARI_NTSC_RGB_OUT_8888' kernel0 [index ] + kernel1 [(index+10)%7+14] +\ ^~~~~~~ src/common/tv_filters/AtariNTSC.cxx:174:5: note: used in buffer access here ATARI_NTSC_RGB_OUT_8888(1, line_out[1]) ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ src/common/tv_filters/AtariNTSC.hxx:216:9: note: expanded from macro 'ATARI_NTSC_RGB_OUT_8888' kernel0 [index ] + kernel1 [(index+10)%7+14] +\ ^~~~~~~ src/common/tv_filters/AtariNTSC.cxx:179:5: note: used in buffer access here ATARI_NTSC_RGB_OUT_8888(4, line_out[4]) ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ src/common/tv_filters/AtariNTSC.hxx:216:9: note: expanded from macro 'ATARI_NTSC_RGB_OUT_8888' kernel0 [index ] + kernel1 [(index+10)%7+14] +\ ^~~~~~~ src/common/tv_filters/AtariNTSC.cxx:176:5: note: used in buffer access here ATARI_NTSC_RGB_OUT_8888(3, line_out[3]) ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ src/common/tv_filters/AtariNTSC.hxx:216:9: note: expanded from macro 'ATARI_NTSC_RGB_OUT_8888' kernel0 [index ] + kernel1 [(index+10)%7+14] +\ ^~~~~~~ src/common/tv_filters/AtariNTSC.cxx:163:7: note: used in buffer access here ATARI_NTSC_RGB_OUT_8888(4, line_out[4]) ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ src/common/tv_filters/AtariNTSC.hxx:216:9: note: expanded from macro 'ATARI_NTSC_RGB_OUT_8888' kernel0 [index ] + kernel1 [(index+10)%7+14] +\ ^~~~~~~ src/common/tv_filters/AtariNTSC.cxx:159:7: note: used in buffer access here ATARI_NTSC_RGB_OUT_8888(2, line_out[2]) ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ src/common/tv_filters/AtariNTSC.hxx:216:9: note: expanded from macro 'ATARI_NTSC_RGB_OUT_8888' kernel0 [index ] + kernel1 [(index+10)%7+14] +\ ^~~~~~~ src/common/tv_filters/AtariNTSC.cxx:160:7: note: used in buffer access here ATARI_NTSC_RGB_OUT_8888(3, line_out[3]) ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ src/common/tv_filters/AtariNTSC.hxx:216:9: note: expanded from macro 'ATARI_NTSC_RGB_OUT_8888' kernel0 [index ] + kernel1 [(index+10)%7+14] +\ ^~~~~~~ src/common/tv_filters/AtariNTSC.cxx:188:5: note: used in buffer access here ATARI_NTSC_RGB_OUT_8888(2, line_out[2]) ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ src/common/tv_filters/AtariNTSC.hxx:216:9: note: expanded from macro 'ATARI_NTSC_RGB_OUT_8888' kernel0 [index ] + kernel1 [(index+10)%7+14] +\ ^~~~~~~ src/common/tv_filters/AtariNTSC.cxx:164:7: note: used in buffer access here ATARI_NTSC_RGB_OUT_8888(5, line_out[5]) ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ src/common/tv_filters/AtariNTSC.hxx:216:9: note: expanded from macro 'ATARI_NTSC_RGB_OUT_8888' kernel0 [index ] + kernel1 [(index+10)%7+14] +\ ^~~~~~~ src/common/tv_filters/AtariNTSC.cxx:187:5: note: used in buffer access here ATARI_NTSC_RGB_OUT_8888(1, line_out[1]) ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ src/common/tv_filters/AtariNTSC.hxx:216:9: note: expanded from macro 'ATARI_NTSC_RGB_OUT_8888' kernel0 [index ] + kernel1 [(index+10)%7+14] +\ ^~~~~~~ src/common/tv_filters/AtariNTSC.cxx:189:5: note: used in buffer access here ATARI_NTSC_RGB_OUT_8888(3, line_out[3]) ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ src/common/tv_filters/AtariNTSC.hxx:216:9: note: expanded from macro 'ATARI_NTSC_RGB_OUT_8888' kernel0 [index ] + kernel1 [(index+10)%7+14] +\ ^~~~~~~ src/common/tv_filters/AtariNTSC.cxx:180:5: note: used in buffer access here ATARI_NTSC_RGB_OUT_8888(5, line_out[5]) ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ src/common/tv_filters/AtariNTSC.hxx:216:9: note: expanded from macro 'ATARI_NTSC_RGB_OUT_8888' kernel0 [index ] + kernel1 [(index+10)%7+14] +\ ^~~~~~~ src/common/tv_filters/AtariNTSC.cxx:181:5: note: used in buffer access here ATARI_NTSC_RGB_OUT_8888(6, line_out[6]) ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ src/common/tv_filters/AtariNTSC.hxx:216:9: note: expanded from macro 'ATARI_NTSC_RGB_OUT_8888' kernel0 [index ] + kernel1 [(index+10)%7+14] +\ ^~~~~~~ src/common/tv_filters/AtariNTSC.cxx:145:5: warning: 'kernel1' is an unsafe pointer used for buffer access [-Wunsafe-buffer-usage] ATARI_NTSC_BEGIN_ROW(NTSC_black, line_in[0]); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ src/common/tv_filters/AtariNTSC.hxx:201:21: note: expanded from macro 'ATARI_NTSC_BEGIN_ROW' uInt32 const* kernel1 = myColorTable[atari_ntsc_pixel1_].data();\ ~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ src/common/tv_filters/AtariNTSC.cxx:163:7: note: used in buffer access here ATARI_NTSC_RGB_OUT_8888(4, line_out[4]) ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ src/common/tv_filters/AtariNTSC.hxx:216:35: note: expanded from macro 'ATARI_NTSC_RGB_OUT_8888' kernel0 [index ] + kernel1 [(index+10)%7+14] +\ ^~~~~~~ src/common/tv_filters/AtariNTSC.cxx:181:5: note: used in buffer access here ATARI_NTSC_RGB_OUT_8888(6, line_out[6]) ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ src/common/tv_filters/AtariNTSC.hxx:216:35: note: expanded from macro 'ATARI_NTSC_RGB_OUT_8888' kernel0 [index ] + kernel1 [(index+10)%7+14] +\ ^~~~~~~ src/common/tv_filters/AtariNTSC.cxx:179:5: note: used in buffer access here ATARI_NTSC_RGB_OUT_8888(4, line_out[4]) ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ src/common/tv_filters/AtariNTSC.hxx:216:35: note: expanded from macro 'ATARI_NTSC_RGB_OUT_8888' kernel0 [index ] + kernel1 [(index+10)%7+14] +\ ^~~~~~~ src/common/tv_filters/AtariNTSC.cxx:180:5: note: used in buffer access here ATARI_NTSC_RGB_OUT_8888(5, line_out[5]) ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ src/common/tv_filters/AtariNTSC.hxx:216:35: note: expanded from macro 'ATARI_NTSC_RGB_OUT_8888' kernel0 [index ] + kernel1 [(index+10)%7+14] +\ ^~~~~~~ src/common/tv_filters/AtariNTSC.cxx:157:7: note: used in buffer access here ATARI_NTSC_RGB_OUT_8888(0, line_out[0]) ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ src/common/tv_filters/AtariNTSC.hxx:216:35: note: expanded from macro 'ATARI_NTSC_RGB_OUT_8888' kernel0 [index ] + kernel1 [(index+10)%7+14] +\ ^~~~~~~ src/common/tv_filters/AtariNTSC.cxx:164:7: note: used in buffer access here ATARI_NTSC_RGB_OUT_8888(5, line_out[5]) ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ src/common/tv_filters/AtariNTSC.hxx:216:35: note: expanded from macro 'ATARI_NTSC_RGB_OUT_8888' kernel0 [index ] + kernel1 [(index+10)%7+14] +\ ^~~~~~~ src/common/tv_filters/AtariNTSC.cxx:173:5: note: used in buffer access here ATARI_NTSC_RGB_OUT_8888(0, line_out[0]) ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ src/common/tv_filters/AtariNTSC.hxx:216:35: note: expanded from macro 'ATARI_NTSC_RGB_OUT_8888' kernel0 [index ] + kernel1 [(index+10)%7+14] +\ ^~~~~~~ src/common/tv_filters/AtariNTSC.cxx:175:5: note: used in buffer access here ATARI_NTSC_RGB_OUT_8888(2, line_out[2]) ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ src/common/tv_filters/AtariNTSC.hxx:216:35: note: expanded from macro 'ATARI_NTSC_RGB_OUT_8888' kernel0 [index ] + kernel1 [(index+10)%7+14] +\ ^~~~~~~ src/common/tv_filters/AtariNTSC.cxx:176:5: note: used in buffer access here ATARI_NTSC_RGB_OUT_8888(3, line_out[3]) ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ src/common/tv_filters/AtariNTSC.hxx:216:35: note: expanded from macro 'ATARI_NTSC_RGB_OUT_8888' kernel0 [index ] + kernel1 [(index+10)%7+14] +\ ^~~~~~~ src/common/tv_filters/AtariNTSC.cxx:186:5: note: used in buffer access here ATARI_NTSC_RGB_OUT_8888(0, line_out[0]) ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ src/common/tv_filters/AtariNTSC.hxx:216:35: note: expanded from macro 'ATARI_NTSC_RGB_OUT_8888' kernel0 [index ] + kernel1 [(index+10)%7+14] +\ ^~~~~~~ src/common/tv_filters/AtariNTSC.cxx:174:5: note: used in buffer access here ATARI_NTSC_RGB_OUT_8888(1, line_out[1]) ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ src/common/tv_filters/AtariNTSC.hxx:216:35: note: expanded from macro 'ATARI_NTSC_RGB_OUT_8888' kernel0 [index ] + kernel1 [(index+10)%7+14] +\ ^~~~~~~ src/common/tv_filters/AtariNTSC.cxx:158:7: note: used in buffer access here ATARI_NTSC_RGB_OUT_8888(1, line_out[1]) ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ src/common/tv_filters/AtariNTSC.hxx:216:35: note: expanded from macro 'ATARI_NTSC_RGB_OUT_8888' kernel0 [index ] + kernel1 [(index+10)%7+14] +\ ^~~~~~~ src/common/tv_filters/AtariNTSC.cxx:189:5: note: used in buffer access here ATARI_NTSC_RGB_OUT_8888(3, line_out[3]) ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ src/common/tv_filters/AtariNTSC.hxx:216:35: note: expanded from macro 'ATARI_NTSC_RGB_OUT_8888' kernel0 [index ] + kernel1 [(index+10)%7+14] +\ ^~~~~~~ src/common/tv_filters/AtariNTSC.cxx:159:7: note: used in buffer access here ATARI_NTSC_RGB_OUT_8888(2, line_out[2]) ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ src/common/tv_filters/AtariNTSC.hxx:216:35: note: expanded from macro 'ATARI_NTSC_RGB_OUT_8888' kernel0 [index ] + kernel1 [(index+10)%7+14] +\ ^~~~~~~ src/common/tv_filters/AtariNTSC.cxx:165:7: note: used in buffer access here ATARI_NTSC_RGB_OUT_8888(6, line_out[6]) ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ src/common/tv_filters/AtariNTSC.hxx:216:35: note: expanded from macro 'ATARI_NTSC_RGB_OUT_8888' kernel0 [index ] + kernel1 [(index+10)%7+14] +\ ^~~~~~~ src/common/tv_filters/AtariNTSC.cxx:192:5: note: used in buffer access here ATARI_NTSC_RGB_OUT_8888(4, line_out[4]) ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ src/common/tv_filters/AtariNTSC.hxx:216:35: note: expanded from macro 'ATARI_NTSC_RGB_OUT_8888' kernel0 [index ] + kernel1 [(index+10)%7+14] +\ ^~~~~~~ src/common/tv_filters/AtariNTSC.cxx:160:7: note: used in buffer access here ATARI_NTSC_RGB_OUT_8888(3, line_out[3]) ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ src/common/tv_filters/AtariNTSC.hxx:216:35: note: expanded from macro 'ATARI_NTSC_RGB_OUT_8888' kernel0 [index ] + kernel1 [(index+10)%7+14] +\ ^~~~~~~ src/common/tv_filters/AtariNTSC.cxx:187:5: note: used in buffer access here ATARI_NTSC_RGB_OUT_8888(1, line_out[1]) ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ src/common/tv_filters/AtariNTSC.hxx:216:35: note: expanded from macro 'ATARI_NTSC_RGB_OUT_8888' kernel0 [index ] + kernel1 [(index+10)%7+14] +\ ^~~~~~~ src/common/tv_filters/AtariNTSC.cxx:188:5: note: used in buffer access here ATARI_NTSC_RGB_OUT_8888(2, line_out[2]) ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ src/common/tv_filters/AtariNTSC.hxx:216:35: note: expanded from macro 'ATARI_NTSC_RGB_OUT_8888' kernel0 [index ] + kernel1 [(index+10)%7+14] +\ ^~~~~~~ src/common/tv_filters/AtariNTSC.cxx:145:5: warning: 'kernelx0' is an unsafe pointer used for buffer access [-Wunsafe-buffer-usage] ATARI_NTSC_BEGIN_ROW(NTSC_black, line_in[0]); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ src/common/tv_filters/AtariNTSC.hxx:202:21: note: expanded from macro 'ATARI_NTSC_BEGIN_ROW' uInt32 const* kernelx0;\ ~~~~~~~~~~~~~~^~~~~~~~ src/common/tv_filters/AtariNTSC.cxx:157:7: note: used in buffer access here ATARI_NTSC_RGB_OUT_8888(0, line_out[0]) ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ src/common/tv_filters/AtariNTSC.hxx:217:9: note: expanded from macro 'ATARI_NTSC_RGB_OUT_8888' kernelx0 [(index+7)%14] + kernelx1 [(index+ 3)%7+14+7];\ ^~~~~~~~ src/common/tv_filters/AtariNTSC.cxx:164:7: note: used in buffer access here ATARI_NTSC_RGB_OUT_8888(5, line_out[5]) ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ src/common/tv_filters/AtariNTSC.hxx:217:9: note: expanded from macro 'ATARI_NTSC_RGB_OUT_8888' kernelx0 [(index+7)%14] + kernelx1 [(index+ 3)%7+14+7];\ ^~~~~~~~ src/common/tv_filters/AtariNTSC.cxx:163:7: note: used in buffer access here ATARI_NTSC_RGB_OUT_8888(4, line_out[4]) ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ src/common/tv_filters/AtariNTSC.hxx:217:9: note: expanded from macro 'ATARI_NTSC_RGB_OUT_8888' kernelx0 [(index+7)%14] + kernelx1 [(index+ 3)%7+14+7];\ ^~~~~~~~ src/common/tv_filters/AtariNTSC.cxx:188:5: note: used in buffer access here ATARI_NTSC_RGB_OUT_8888(2, line_out[2]) ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ src/common/tv_filters/AtariNTSC.hxx:217:9: note: expanded from macro 'ATARI_NTSC_RGB_OUT_8888' kernelx0 [(index+7)%14] + kernelx1 [(index+ 3)%7+14+7];\ ^~~~~~~~ src/common/tv_filters/AtariNTSC.cxx:160:7: note: used in buffer access here ATARI_NTSC_RGB_OUT_8888(3, line_out[3]) ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ src/common/tv_filters/AtariNTSC.hxx:217:9: note: expanded from macro 'ATARI_NTSC_RGB_OUT_8888' kernelx0 [(index+7)%14] + kernelx1 [(index+ 3)%7+14+7];\ ^~~~~~~~ src/common/tv_filters/AtariNTSC.cxx:187:5: note: used in buffer access here ATARI_NTSC_RGB_OUT_8888(1, line_out[1]) ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ src/common/tv_filters/AtariNTSC.hxx:217:9: note: expanded from macro 'ATARI_NTSC_RGB_OUT_8888' kernelx0 [(index+7)%14] + kernelx1 [(index+ 3)%7+14+7];\ ^~~~~~~~ src/common/tv_filters/AtariNTSC.cxx:158:7: note: used in buffer access here ATARI_NTSC_RGB_OUT_8888(1, line_out[1]) ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ src/common/tv_filters/AtariNTSC.hxx:217:9: note: expanded from macro 'ATARI_NTSC_RGB_OUT_8888' kernelx0 [(index+7)%14] + kernelx1 [(index+ 3)%7+14+7];\ ^~~~~~~~ src/common/tv_filters/AtariNTSC.cxx:176:5: note: used in buffer access here ATARI_NTSC_RGB_OUT_8888(3, line_out[3]) ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ src/common/tv_filters/AtariNTSC.hxx:217:9: note: expanded from macro 'ATARI_NTSC_RGB_OUT_8888' kernelx0 [(index+7)%14] + kernelx1 [(index+ 3)%7+14+7];\ ^~~~~~~~ src/common/tv_filters/AtariNTSC.cxx:174:5: note: used in buffer access here ATARI_NTSC_RGB_OUT_8888(1, line_out[1]) ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ src/common/tv_filters/AtariNTSC.hxx:217:9: note: expanded from macro 'ATARI_NTSC_RGB_OUT_8888' kernelx0 [(index+7)%14] + kernelx1 [(index+ 3)%7+14+7];\ ^~~~~~~~ src/common/tv_filters/AtariNTSC.cxx:175:5: note: used in buffer access here ATARI_NTSC_RGB_OUT_8888(2, line_out[2]) ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ src/common/tv_filters/AtariNTSC.hxx:217:9: note: expanded from macro 'ATARI_NTSC_RGB_OUT_8888' kernelx0 [(index+7)%14] + kernelx1 [(index+ 3)%7+14+7];\ ^~~~~~~~ src/common/tv_filters/AtariNTSC.cxx:159:7: note: used in buffer access here ATARI_NTSC_RGB_OUT_8888(2, line_out[2]) ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ src/common/tv_filters/AtariNTSC.hxx:217:9: note: expanded from macro 'ATARI_NTSC_RGB_OUT_8888' kernelx0 [(index+7)%14] + kernelx1 [(index+ 3)%7+14+7];\ ^~~~~~~~ src/common/tv_filters/AtariNTSC.cxx:179:5: note: used in buffer access here ATARI_NTSC_RGB_OUT_8888(4, line_out[4]) ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ src/common/tv_filters/AtariNTSC.hxx:217:9: note: expanded from macro 'ATARI_NTSC_RGB_OUT_8888' kernelx0 [(index+7)%14] + kernelx1 [(index+ 3)%7+14+7];\ ^~~~~~~~ src/common/tv_filters/AtariNTSC.cxx:173:5: note: used in buffer access here ATARI_NTSC_RGB_OUT_8888(0, line_out[0]) ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ src/common/tv_filters/AtariNTSC.hxx:217:9: note: expanded from macro 'ATARI_NTSC_RGB_OUT_8888' kernelx0 [(index+7)%14] + kernelx1 [(index+ 3)%7+14+7];\ ^~~~~~~~ src/common/tv_filters/AtariNTSC.cxx:192:5: note: used in buffer access here ATARI_NTSC_RGB_OUT_8888(4, line_out[4]) ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ src/common/tv_filters/AtariNTSC.hxx:217:9: note: expanded from macro 'ATARI_NTSC_RGB_OUT_8888' kernelx0 [(index+7)%14] + kernelx1 [(index+ 3)%7+14+7];\ ^~~~~~~~ src/common/tv_filters/AtariNTSC.cxx:181:5: note: used in buffer access here ATARI_NTSC_RGB_OUT_8888(6, line_out[6]) ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ src/common/tv_filters/AtariNTSC.hxx:217:9: note: expanded from macro 'ATARI_NTSC_RGB_OUT_8888' kernelx0 [(index+7)%14] + kernelx1 [(index+ 3)%7+14+7];\ ^~~~~~~~ src/common/tv_filters/AtariNTSC.cxx:189:5: note: used in buffer access here ATARI_NTSC_RGB_OUT_8888(3, line_out[3]) ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ src/common/tv_filters/AtariNTSC.hxx:217:9: note: expanded from macro 'ATARI_NTSC_RGB_OUT_8888' kernelx0 [(index+7)%14] + kernelx1 [(index+ 3)%7+14+7];\ ^~~~~~~~ src/common/tv_filters/AtariNTSC.cxx:180:5: note: used in buffer access here ATARI_NTSC_RGB_OUT_8888(5, line_out[5]) ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ src/common/tv_filters/AtariNTSC.hxx:217:9: note: expanded from macro 'ATARI_NTSC_RGB_OUT_8888' kernelx0 [(index+7)%14] + kernelx1 [(index+ 3)%7+14+7];\ ^~~~~~~~ src/common/tv_filters/AtariNTSC.cxx:186:5: note: used in buffer access here ATARI_NTSC_RGB_OUT_8888(0, line_out[0]) ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ src/common/tv_filters/AtariNTSC.hxx:217:9: note: expanded from macro 'ATARI_NTSC_RGB_OUT_8888' kernelx0 [(index+7)%14] + kernelx1 [(index+ 3)%7+14+7];\ ^~~~~~~~ src/common/tv_filters/AtariNTSC.cxx:165:7: note: used in buffer access here ATARI_NTSC_RGB_OUT_8888(6, line_out[6]) ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ src/common/tv_filters/AtariNTSC.hxx:217:9: note: expanded from macro 'ATARI_NTSC_RGB_OUT_8888' kernelx0 [(index+7)%14] + kernelx1 [(index+ 3)%7+14+7];\ ^~~~~~~~ src/common/tv_filters/AtariNTSC.cxx:145:5: warning: 'kernelx1' is an unsafe pointer used for buffer access [-Wunsafe-buffer-usage] ATARI_NTSC_BEGIN_ROW(NTSC_black, line_in[0]); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ src/common/tv_filters/AtariNTSC.hxx:203:21: note: expanded from macro 'ATARI_NTSC_BEGIN_ROW' uInt32 const* kernelx1 = kernel0 ~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~ src/common/tv_filters/AtariNTSC.cxx:187:5: note: used in buffer access here ATARI_NTSC_RGB_OUT_8888(1, line_out[1]) ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ src/common/tv_filters/AtariNTSC.hxx:217:35: note: expanded from macro 'ATARI_NTSC_RGB_OUT_8888' kernelx0 [(index+7)%14] + kernelx1 [(index+ 3)%7+14+7];\ ^~~~~~~~ src/common/tv_filters/AtariNTSC.cxx:159:7: note: used in buffer access here ATARI_NTSC_RGB_OUT_8888(2, line_out[2]) ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ src/common/tv_filters/AtariNTSC.hxx:217:35: note: expanded from macro 'ATARI_NTSC_RGB_OUT_8888' kernelx0 [(index+7)%14] + kernelx1 [(index+ 3)%7+14+7];\ ^~~~~~~~ src/common/tv_filters/AtariNTSC.cxx:164:7: note: used in buffer access here ATARI_NTSC_RGB_OUT_8888(5, line_out[5]) ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ src/common/tv_filters/AtariNTSC.hxx:217:35: note: expanded from macro 'ATARI_NTSC_RGB_OUT_8888' kernelx0 [(index+7)%14] + kernelx1 [(index+ 3)%7+14+7];\ ^~~~~~~~ src/common/tv_filters/AtariNTSC.cxx:180:5: note: used in buffer access here ATARI_NTSC_RGB_OUT_8888(5, line_out[5]) ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ src/common/tv_filters/AtariNTSC.hxx:217:35: note: expanded from macro 'ATARI_NTSC_RGB_OUT_8888' kernelx0 [(index+7)%14] + kernelx1 [(index+ 3)%7+14+7];\ ^~~~~~~~ src/common/tv_filters/AtariNTSC.cxx:165:7: note: used in buffer access here ATARI_NTSC_RGB_OUT_8888(6, line_out[6]) ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ src/common/tv_filters/AtariNTSC.hxx:217:35: note: expanded from macro 'ATARI_NTSC_RGB_OUT_8888' kernelx0 [(index+7)%14] + kernelx1 [(index+ 3)%7+14+7];\ ^~~~~~~~ src/common/tv_filters/AtariNTSC.cxx:179:5: note: used in buffer access here ATARI_NTSC_RGB_OUT_8888(4, line_out[4]) ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ src/common/tv_filters/AtariNTSC.hxx:217:35: note: expanded from macro 'ATARI_NTSC_RGB_OUT_8888' kernelx0 [(index+7)%14] + kernelx1 [(index+ 3)%7+14+7];\ ^~~~~~~~ src/common/tv_filters/AtariNTSC.cxx:163:7: note: used in buffer access here ATARI_NTSC_RGB_OUT_8888(4, line_out[4]) ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ src/common/tv_filters/AtariNTSC.hxx:217:35: note: expanded from macro 'ATARI_NTSC_RGB_OUT_8888' kernelx0 [(index+7)%14] + kernelx1 [(index+ 3)%7+14+7];\ ^~~~~~~~ src/common/tv_filters/AtariNTSC.cxx:174:5: note: used in buffer access here ATARI_NTSC_RGB_OUT_8888(1, line_out[1]) ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ src/common/tv_filters/AtariNTSC.hxx:217:35: note: expanded from macro 'ATARI_NTSC_RGB_OUT_8888' kernelx0 [(index+7)%14] + kernelx1 [(index+ 3)%7+14+7];\ ^~~~~~~~ src/common/tv_filters/AtariNTSC.cxx:158:7: note: used in buffer access here ATARI_NTSC_RGB_OUT_8888(1, line_out[1]) ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ src/common/tv_filters/AtariNTSC.hxx:217:35: note: expanded from macro 'ATARI_NTSC_RGB_OUT_8888' kernelx0 [(index+7)%14] + kernelx1 [(index+ 3)%7+14+7];\ ^~~~~~~~ src/common/tv_filters/AtariNTSC.cxx:192:5: note: used in buffer access here ATARI_NTSC_RGB_OUT_8888(4, line_out[4]) ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ src/common/tv_filters/AtariNTSC.hxx:217:35: note: expanded from macro 'ATARI_NTSC_RGB_OUT_8888' kernelx0 [(index+7)%14] + kernelx1 [(index+ 3)%7+14+7];\ ^~~~~~~~ src/common/tv_filters/AtariNTSC.cxx:175:5: note: used in buffer access here ATARI_NTSC_RGB_OUT_8888(2, line_out[2]) ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ src/common/tv_filters/AtariNTSC.hxx:217:35: note: expanded from macro 'ATARI_NTSC_RGB_OUT_8888' kernelx0 [(index+7)%14] + kernelx1 [(index+ 3)%7+14+7];\ ^~~~~~~~ src/common/tv_filters/AtariNTSC.cxx:160:7: note: used in buffer access here ATARI_NTSC_RGB_OUT_8888(3, line_out[3]) ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ src/common/tv_filters/AtariNTSC.hxx:217:35: note: expanded from macro 'ATARI_NTSC_RGB_OUT_8888' kernelx0 [(index+7)%14] + kernelx1 [(index+ 3)%7+14+7];\ ^~~~~~~~ src/common/tv_filters/AtariNTSC.cxx:188:5: note: used in buffer access here ATARI_NTSC_RGB_OUT_8888(2, line_out[2]) ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ src/common/tv_filters/AtariNTSC.hxx:217:35: note: expanded from macro 'ATARI_NTSC_RGB_OUT_8888' kernelx0 [(index+7)%14] + kernelx1 [(index+ 3)%7+14+7];\ ^~~~~~~~ src/common/tv_filters/AtariNTSC.cxx:176:5: note: used in buffer access here ATARI_NTSC_RGB_OUT_8888(3, line_out[3]) ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ src/common/tv_filters/AtariNTSC.hxx:217:35: note: expanded from macro 'ATARI_NTSC_RGB_OUT_8888' kernelx0 [(index+7)%14] + kernelx1 [(index+ 3)%7+14+7];\ ^~~~~~~~ src/common/tv_filters/AtariNTSC.cxx:181:5: note: used in buffer access here ATARI_NTSC_RGB_OUT_8888(6, line_out[6]) ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ src/common/tv_filters/AtariNTSC.hxx:217:35: note: expanded from macro 'ATARI_NTSC_RGB_OUT_8888' kernelx0 [(index+7)%14] + kernelx1 [(index+ 3)%7+14+7];\ ^~~~~~~~ src/common/tv_filters/AtariNTSC.cxx:186:5: note: used in buffer access here ATARI_NTSC_RGB_OUT_8888(0, line_out[0]) ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ src/common/tv_filters/AtariNTSC.hxx:217:35: note: expanded from macro 'ATARI_NTSC_RGB_OUT_8888' kernelx0 [(index+7)%14] + kernelx1 [(index+ 3)%7+14+7];\ ^~~~~~~~ src/common/tv_filters/AtariNTSC.cxx:157:7: note: used in buffer access here ATARI_NTSC_RGB_OUT_8888(0, line_out[0]) ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ src/common/tv_filters/AtariNTSC.hxx:217:35: note: expanded from macro 'ATARI_NTSC_RGB_OUT_8888' kernelx0 [(index+7)%14] + kernelx1 [(index+ 3)%7+14+7];\ ^~~~~~~~ src/common/tv_filters/AtariNTSC.cxx:189:5: note: used in buffer access here ATARI_NTSC_RGB_OUT_8888(3, line_out[3]) ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ src/common/tv_filters/AtariNTSC.hxx:217:35: note: expanded from macro 'ATARI_NTSC_RGB_OUT_8888' kernelx0 [(index+7)%14] + kernelx1 [(index+ 3)%7+14+7];\ ^~~~~~~~ src/common/tv_filters/AtariNTSC.cxx:173:5: note: used in buffer access here ATARI_NTSC_RGB_OUT_8888(0, line_out[0]) ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ src/common/tv_filters/AtariNTSC.hxx:217:35: note: expanded from macro 'ATARI_NTSC_RGB_OUT_8888' kernelx0 [(index+7)%14] + kernelx1 [(index+ 3)%7+14+7];\ ^~~~~~~~ src/common/tv_filters/AtariNTSC.cxx:146:22: warning: 'line_out' is an unsafe pointer used for buffer access [-Wunsafe-buffer-usage] uInt32* restrict line_out = static_cast(rgb_out); ~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ src/common/tv_filters/AtariNTSC.cxx:158:34: note: used in buffer access here ATARI_NTSC_RGB_OUT_8888(1, line_out[1]) ^~~~~~~~ src/common/tv_filters/AtariNTSC.hxx:219:7: note: expanded from macro 'ATARI_NTSC_RGB_OUT_8888' rgb_out = (raw_>>5 & 0x00FF0000)|(raw_>>3 & 0x0000FF00)|(raw_>>1 & 0x000000FF);\ ^~~~~~~ src/common/tv_filters/AtariNTSC.cxx:180:32: note: used in buffer access here ATARI_NTSC_RGB_OUT_8888(5, line_out[5]) ^~~~~~~~ src/common/tv_filters/AtariNTSC.hxx:219:7: note: expanded from macro 'ATARI_NTSC_RGB_OUT_8888' rgb_out = (raw_>>5 & 0x00FF0000)|(raw_>>3 & 0x0000FF00)|(raw_>>1 & 0x000000FF);\ ^~~~~~~ src/common/tv_filters/AtariNTSC.cxx:150:19: note: used in buffer access here line_out[0] = line_out[1] = 0; ^~~~~~~~ src/common/tv_filters/AtariNTSC.cxx:181:32: note: used in buffer access here ATARI_NTSC_RGB_OUT_8888(6, line_out[6]) ^~~~~~~~ src/common/tv_filters/AtariNTSC.hxx:219:7: note: expanded from macro 'ATARI_NTSC_RGB_OUT_8888' rgb_out = (raw_>>5 & 0x00FF0000)|(raw_>>3 & 0x0000FF00)|(raw_>>1 & 0x000000FF);\ ^~~~~~~ src/common/tv_filters/AtariNTSC.cxx:164:34: note: used in buffer access here ATARI_NTSC_RGB_OUT_8888(5, line_out[5]) ^~~~~~~~ src/common/tv_filters/AtariNTSC.hxx:219:7: note: expanded from macro 'ATARI_NTSC_RGB_OUT_8888' rgb_out = (raw_>>5 & 0x00FF0000)|(raw_>>3 & 0x0000FF00)|(raw_>>1 & 0x000000FF);\ ^~~~~~~ src/common/tv_filters/AtariNTSC.cxx:179:32: note: used in buffer access here ATARI_NTSC_RGB_OUT_8888(4, line_out[4]) ^~~~~~~~ src/common/tv_filters/AtariNTSC.hxx:219:7: note: expanded from macro 'ATARI_NTSC_RGB_OUT_8888' rgb_out = (raw_>>5 & 0x00FF0000)|(raw_>>3 & 0x0000FF00)|(raw_>>1 & 0x000000FF);\ ^~~~~~~ src/common/tv_filters/AtariNTSC.cxx:163:34: note: used in buffer access here ATARI_NTSC_RGB_OUT_8888(4, line_out[4]) ^~~~~~~~ src/common/tv_filters/AtariNTSC.hxx:219:7: note: expanded from macro 'ATARI_NTSC_RGB_OUT_8888' rgb_out = (raw_>>5 & 0x00FF0000)|(raw_>>3 & 0x0000FF00)|(raw_>>1 & 0x000000FF);\ ^~~~~~~ src/common/tv_filters/AtariNTSC.cxx:183:5: note: used in pointer arithmetic here line_out += 7; ^~~~~~~~ src/common/tv_filters/AtariNTSC.cxx:159:34: note: used in buffer access here ATARI_NTSC_RGB_OUT_8888(2, line_out[2]) ^~~~~~~~ src/common/tv_filters/AtariNTSC.hxx:219:7: note: expanded from macro 'ATARI_NTSC_RGB_OUT_8888' rgb_out = (raw_>>5 & 0x00FF0000)|(raw_>>3 & 0x0000FF00)|(raw_>>1 & 0x000000FF);\ ^~~~~~~ src/common/tv_filters/AtariNTSC.cxx:165:34: note: used in buffer access here ATARI_NTSC_RGB_OUT_8888(6, line_out[6]) ^~~~~~~~ src/common/tv_filters/AtariNTSC.hxx:219:7: note: expanded from macro 'ATARI_NTSC_RGB_OUT_8888' rgb_out = (raw_>>5 & 0x00FF0000)|(raw_>>3 & 0x0000FF00)|(raw_>>1 & 0x000000FF);\ ^~~~~~~ src/common/tv_filters/AtariNTSC.cxx:175:32: note: used in buffer access here ATARI_NTSC_RGB_OUT_8888(2, line_out[2]) ^~~~~~~~ src/common/tv_filters/AtariNTSC.hxx:219:7: note: expanded from macro 'ATARI_NTSC_RGB_OUT_8888' rgb_out = (raw_>>5 & 0x00FF0000)|(raw_>>3 & 0x0000FF00)|(raw_>>1 & 0x000000FF);\ ^~~~~~~ src/common/tv_filters/AtariNTSC.cxx:174:32: note: used in buffer access here ATARI_NTSC_RGB_OUT_8888(1, line_out[1]) ^~~~~~~~ src/common/tv_filters/AtariNTSC.hxx:219:7: note: expanded from macro 'ATARI_NTSC_RGB_OUT_8888' rgb_out = (raw_>>5 & 0x00FF0000)|(raw_>>3 & 0x0000FF00)|(raw_>>1 & 0x000000FF);\ ^~~~~~~ src/common/tv_filters/AtariNTSC.cxx:168:7: note: used in pointer arithmetic here line_out += 7; ^~~~~~~~ src/common/tv_filters/AtariNTSC.cxx:189:32: note: used in buffer access here ATARI_NTSC_RGB_OUT_8888(3, line_out[3]) ^~~~~~~~ src/common/tv_filters/AtariNTSC.hxx:219:7: note: expanded from macro 'ATARI_NTSC_RGB_OUT_8888' rgb_out = (raw_>>5 & 0x00FF0000)|(raw_>>3 & 0x0000FF00)|(raw_>>1 & 0x000000FF);\ ^~~~~~~ src/common/tv_filters/AtariNTSC.cxx:192:32: note: used in buffer access here ATARI_NTSC_RGB_OUT_8888(4, line_out[4]) ^~~~~~~~ src/common/tv_filters/AtariNTSC.hxx:219:7: note: expanded from macro 'ATARI_NTSC_RGB_OUT_8888' rgb_out = (raw_>>5 & 0x00FF0000)|(raw_>>3 & 0x0000FF00)|(raw_>>1 & 0x000000FF);\ ^~~~~~~ src/common/tv_filters/AtariNTSC.cxx:188:32: note: used in buffer access here ATARI_NTSC_RGB_OUT_8888(2, line_out[2]) ^~~~~~~~ src/common/tv_filters/AtariNTSC.hxx:219:7: note: expanded from macro 'ATARI_NTSC_RGB_OUT_8888' rgb_out = (raw_>>5 & 0x00FF0000)|(raw_>>3 & 0x0000FF00)|(raw_>>1 & 0x000000FF);\ ^~~~~~~ src/common/tv_filters/AtariNTSC.cxx:187:32: note: used in buffer access here ATARI_NTSC_RGB_OUT_8888(1, line_out[1]) ^~~~~~~~ src/common/tv_filters/AtariNTSC.hxx:219:7: note: expanded from macro 'ATARI_NTSC_RGB_OUT_8888' rgb_out = (raw_>>5 & 0x00FF0000)|(raw_>>3 & 0x0000FF00)|(raw_>>1 & 0x000000FF);\ ^~~~~~~ src/common/tv_filters/AtariNTSC.cxx:176:32: note: used in buffer access here ATARI_NTSC_RGB_OUT_8888(3, line_out[3]) ^~~~~~~~ src/common/tv_filters/AtariNTSC.hxx:219:7: note: expanded from macro 'ATARI_NTSC_RGB_OUT_8888' rgb_out = (raw_>>5 & 0x00FF0000)|(raw_>>3 & 0x0000FF00)|(raw_>>1 & 0x000000FF);\ ^~~~~~~ src/common/tv_filters/AtariNTSC.cxx:151:5: note: used in pointer arithmetic here line_out += 2; ^~~~~~~~ src/common/tv_filters/AtariNTSC.cxx:160:34: note: used in buffer access here ATARI_NTSC_RGB_OUT_8888(3, line_out[3]) ^~~~~~~~ src/common/tv_filters/AtariNTSC.hxx:219:7: note: expanded from macro 'ATARI_NTSC_RGB_OUT_8888' rgb_out = (raw_>>5 & 0x00FF0000)|(raw_>>3 & 0x0000FF00)|(raw_>>1 & 0x000000FF);\ ^~~~~~~ src/common/tv_filters/AtariNTSC.cxx:214:13: warning: unsafe pointer arithmetic [-Wunsafe-buffer-usage] rgb_out = static_cast(rgb_out) + out_pitch * yStart; ^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/common/tv_filters/AtariNTSC.cxx:316:15: warning: unsafe pointer arithmetic [-Wunsafe-buffer-usage] rgb_out = static_cast(rgb_out) + out_pitch; ^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/common/tv_filters/AtariNTSC.cxx:204:55: warning: 'atari_in' is an unsafe pointer used for buffer access [-Wunsafe-buffer-usage] void AtariNTSC::renderWithPhosphorThread(const uInt8* atari_in, const uInt32 in_width, ~~~~~~~~~~~~~^~~~~~~~ src/common/tv_filters/AtariNTSC.cxx:213:3: note: used in pointer arithmetic here atari_in += in_width * yStart; ^~~~~~~~ src/common/tv_filters/AtariNTSC.cxx:315:5: note: used in pointer arithmetic here atari_in += in_width; ^~~~~~~~ src/common/tv_filters/AtariNTSC.cxx:206:11: warning: 'rgb_in' is an unsafe pointer used for buffer access [-Wunsafe-buffer-usage] uInt32* rgb_in, void* rgb_out, const uInt32 out_pitch) ~~~~~~~~^~~~~~ src/common/tv_filters/AtariNTSC.cxx:282:63: note: used in buffer access here rgb_in[bufofs] = PhosphorHandler::getPixel(out[bufofs], rgb_in[bufofs]); ^~~~~~ src/common/tv_filters/AtariNTSC.cxx:286:7: note: used in buffer access here rgb_in[bufofs] = PhosphorHandler::getPixel(out[bufofs], rgb_in[bufofs]); ^~~~~~ src/common/tv_filters/AtariNTSC.cxx:284:63: note: used in buffer access here rgb_in[bufofs] = PhosphorHandler::getPixel(out[bufofs], rgb_in[bufofs]); ^~~~~~ src/common/tv_filters/AtariNTSC.cxx:284:7: note: used in buffer access here rgb_in[bufofs] = PhosphorHandler::getPixel(out[bufofs], rgb_in[bufofs]); ^~~~~~ src/common/tv_filters/AtariNTSC.cxx:292:7: note: used in buffer access here rgb_in[bufofs] = PhosphorHandler::getPixel(out[bufofs], rgb_in[bufofs]); ^~~~~~ src/common/tv_filters/AtariNTSC.cxx:282:7: note: used in buffer access here rgb_in[bufofs] = PhosphorHandler::getPixel(out[bufofs], rgb_in[bufofs]); ^~~~~~ src/common/tv_filters/AtariNTSC.cxx:292:63: note: used in buffer access here rgb_in[bufofs] = PhosphorHandler::getPixel(out[bufofs], rgb_in[bufofs]); ^~~~~~ src/common/tv_filters/AtariNTSC.cxx:294:7: note: used in buffer access here rgb_in[bufofs] = PhosphorHandler::getPixel(out[bufofs], rgb_in[bufofs]); ^~~~~~ src/common/tv_filters/AtariNTSC.cxx:294:63: note: used in buffer access here rgb_in[bufofs] = PhosphorHandler::getPixel(out[bufofs], rgb_in[bufofs]); ^~~~~~ src/common/tv_filters/AtariNTSC.cxx:280:63: note: used in buffer access here rgb_in[bufofs] = PhosphorHandler::getPixel(out[bufofs], rgb_in[bufofs]); ^~~~~~ src/common/tv_filters/AtariNTSC.cxx:280:7: note: used in buffer access here rgb_in[bufofs] = PhosphorHandler::getPixel(out[bufofs], rgb_in[bufofs]); ^~~~~~ src/common/tv_filters/AtariNTSC.cxx:286:63: note: used in buffer access here rgb_in[bufofs] = PhosphorHandler::getPixel(out[bufofs], rgb_in[bufofs]); ^~~~~~ src/common/tv_filters/AtariNTSC.cxx:288:7: note: used in buffer access here rgb_in[bufofs] = PhosphorHandler::getPixel(out[bufofs], rgb_in[bufofs]); ^~~~~~ src/common/tv_filters/AtariNTSC.cxx:290:63: note: used in buffer access here rgb_in[bufofs] = PhosphorHandler::getPixel(out[bufofs], rgb_in[bufofs]); ^~~~~~ src/common/tv_filters/AtariNTSC.cxx:288:63: note: used in buffer access here rgb_in[bufofs] = PhosphorHandler::getPixel(out[bufofs], rgb_in[bufofs]); ^~~~~~ src/common/tv_filters/AtariNTSC.cxx:290:7: note: used in buffer access here rgb_in[bufofs] = PhosphorHandler::getPixel(out[bufofs], rgb_in[bufofs]); ^~~~~~ src/common/tv_filters/AtariNTSC.cxx:212:17: warning: 'out' is an unsafe pointer used for buffer access [-Wunsafe-buffer-usage] const uInt32* out = static_cast(rgb_out); ~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ src/common/tv_filters/AtariNTSC.cxx:282:50: note: used in buffer access here rgb_in[bufofs] = PhosphorHandler::getPixel(out[bufofs], rgb_in[bufofs]); ^~~ src/common/tv_filters/AtariNTSC.cxx:288:50: note: used in buffer access here rgb_in[bufofs] = PhosphorHandler::getPixel(out[bufofs], rgb_in[bufofs]); ^~~ src/common/tv_filters/AtariNTSC.cxx:292:50: note: used in buffer access here rgb_in[bufofs] = PhosphorHandler::getPixel(out[bufofs], rgb_in[bufofs]); ^~~ src/common/tv_filters/AtariNTSC.cxx:284:50: note: used in buffer access here rgb_in[bufofs] = PhosphorHandler::getPixel(out[bufofs], rgb_in[bufofs]); ^~~ src/common/tv_filters/AtariNTSC.cxx:290:50: note: used in buffer access here rgb_in[bufofs] = PhosphorHandler::getPixel(out[bufofs], rgb_in[bufofs]); ^~~ src/common/tv_filters/AtariNTSC.cxx:280:50: note: used in buffer access here rgb_in[bufofs] = PhosphorHandler::getPixel(out[bufofs], rgb_in[bufofs]); ^~~ src/common/tv_filters/AtariNTSC.cxx:286:50: note: used in buffer access here rgb_in[bufofs] = PhosphorHandler::getPixel(out[bufofs], rgb_in[bufofs]); ^~~ src/common/tv_filters/AtariNTSC.cxx:294:50: note: used in buffer access here rgb_in[bufofs] = PhosphorHandler::getPixel(out[bufofs], rgb_in[bufofs]); ^~~ src/common/tv_filters/AtariNTSC.cxx:220:18: warning: 'line_in' is an unsafe pointer used for buffer access [-Wunsafe-buffer-usage] const uInt8* line_in = atari_in; ~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~ src/common/tv_filters/AtariNTSC.cxx:238:30: note: used in buffer access here ATARI_NTSC_COLOR_IN(1, line_in[1]) ^~~~~~~ src/common/tv_filters/AtariNTSC.hxx:209:34: note: expanded from macro 'ATARI_NTSC_COLOR_IN' kernel##index = (color_ = (color), myColorTable[color_].data());\ ^~~~~ src/common/tv_filters/AtariNTSC.cxx:223:7: note: used in pointer arithmetic here ++line_in; ^~~~~~~ src/common/tv_filters/AtariNTSC.cxx:243:7: note: used in pointer arithmetic here line_in += 2; ^~~~~~~ src/common/tv_filters/AtariNTSC.cxx:221:5: warning: 'kernel0' is an unsafe pointer used for buffer access [-Wunsafe-buffer-usage] ATARI_NTSC_BEGIN_ROW(NTSC_black, line_in[0]); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ src/common/tv_filters/AtariNTSC.hxx:199:21: note: expanded from macro 'ATARI_NTSC_BEGIN_ROW' uInt32 const* kernel0 = myColorTable[atari_ntsc_pixel0_].data();\ ~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ src/common/tv_filters/AtariNTSC.cxx:250:5: note: used in buffer access here ATARI_NTSC_RGB_OUT_8888(1, line_out[1]) ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ src/common/tv_filters/AtariNTSC.hxx:216:9: note: expanded from macro 'ATARI_NTSC_RGB_OUT_8888' kernel0 [index ] + kernel1 [(index+10)%7+14] +\ ^~~~~~~ src/common/tv_filters/AtariNTSC.cxx:256:5: note: used in buffer access here ATARI_NTSC_RGB_OUT_8888(5, line_out[5]) ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ src/common/tv_filters/AtariNTSC.hxx:216:9: note: expanded from macro 'ATARI_NTSC_RGB_OUT_8888' kernel0 [index ] + kernel1 [(index+10)%7+14] +\ ^~~~~~~ src/common/tv_filters/AtariNTSC.cxx:235:7: note: used in buffer access here ATARI_NTSC_RGB_OUT_8888(2, line_out[2]) ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ src/common/tv_filters/AtariNTSC.hxx:216:9: note: expanded from macro 'ATARI_NTSC_RGB_OUT_8888' kernel0 [index ] + kernel1 [(index+10)%7+14] +\ ^~~~~~~ src/common/tv_filters/AtariNTSC.cxx:240:7: note: used in buffer access here ATARI_NTSC_RGB_OUT_8888(5, line_out[5]) ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ src/common/tv_filters/AtariNTSC.hxx:216:9: note: expanded from macro 'ATARI_NTSC_RGB_OUT_8888' kernel0 [index ] + kernel1 [(index+10)%7+14] +\ ^~~~~~~ src/common/tv_filters/AtariNTSC.cxx:257:5: note: used in buffer access here ATARI_NTSC_RGB_OUT_8888(6, line_out[6]) ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ src/common/tv_filters/AtariNTSC.hxx:216:9: note: expanded from macro 'ATARI_NTSC_RGB_OUT_8888' kernel0 [index ] + kernel1 [(index+10)%7+14] +\ ^~~~~~~ src/common/tv_filters/AtariNTSC.cxx:265:5: note: used in buffer access here ATARI_NTSC_RGB_OUT_8888(3, line_out[3]) ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ src/common/tv_filters/AtariNTSC.hxx:216:9: note: expanded from macro 'ATARI_NTSC_RGB_OUT_8888' kernel0 [index ] + kernel1 [(index+10)%7+14] +\ ^~~~~~~ src/common/tv_filters/AtariNTSC.cxx:263:5: note: used in buffer access here ATARI_NTSC_RGB_OUT_8888(1, line_out[1]) ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ src/common/tv_filters/AtariNTSC.hxx:216:9: note: expanded from macro 'ATARI_NTSC_RGB_OUT_8888' kernel0 [index ] + kernel1 [(index+10)%7+14] +\ ^~~~~~~ src/common/tv_filters/AtariNTSC.cxx:255:5: note: used in buffer access here ATARI_NTSC_RGB_OUT_8888(4, line_out[4]) ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ src/common/tv_filters/AtariNTSC.hxx:216:9: note: expanded from macro 'ATARI_NTSC_RGB_OUT_8888' kernel0 [index ] + kernel1 [(index+10)%7+14] +\ ^~~~~~~ src/common/tv_filters/AtariNTSC.cxx:264:5: note: used in buffer access here ATARI_NTSC_RGB_OUT_8888(2, line_out[2]) ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ src/common/tv_filters/AtariNTSC.hxx:216:9: note: expanded from macro 'ATARI_NTSC_RGB_OUT_8888' kernel0 [index ] + kernel1 [(index+10)%7+14] +\ ^~~~~~~ src/common/tv_filters/AtariNTSC.cxx:251:5: note: used in buffer access here ATARI_NTSC_RGB_OUT_8888(2, line_out[2]) ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ src/common/tv_filters/AtariNTSC.hxx:216:9: note: expanded from macro 'ATARI_NTSC_RGB_OUT_8888' kernel0 [index ] + kernel1 [(index+10)%7+14] +\ ^~~~~~~ src/common/tv_filters/AtariNTSC.cxx:234:7: note: used in buffer access here ATARI_NTSC_RGB_OUT_8888(1, line_out[1]) ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ src/common/tv_filters/AtariNTSC.hxx:216:9: note: expanded from macro 'ATARI_NTSC_RGB_OUT_8888' kernel0 [index ] + kernel1 [(index+10)%7+14] +\ ^~~~~~~ src/common/tv_filters/AtariNTSC.cxx:268:5: note: used in buffer access here ATARI_NTSC_RGB_OUT_8888(4, line_out[4]) ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ src/common/tv_filters/AtariNTSC.hxx:216:9: note: expanded from macro 'ATARI_NTSC_RGB_OUT_8888' kernel0 [index ] + kernel1 [(index+10)%7+14] +\ ^~~~~~~ src/common/tv_filters/AtariNTSC.cxx:236:7: note: used in buffer access here ATARI_NTSC_RGB_OUT_8888(3, line_out[3]) ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ src/common/tv_filters/AtariNTSC.hxx:216:9: note: expanded from macro 'ATARI_NTSC_RGB_OUT_8888' kernel0 [index ] + kernel1 [(index+10)%7+14] +\ ^~~~~~~ src/common/tv_filters/AtariNTSC.cxx:241:7: note: used in buffer access here ATARI_NTSC_RGB_OUT_8888(6, line_out[6]) ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ src/common/tv_filters/AtariNTSC.hxx:216:9: note: expanded from macro 'ATARI_NTSC_RGB_OUT_8888' kernel0 [index ] + kernel1 [(index+10)%7+14] +\ ^~~~~~~ src/common/tv_filters/AtariNTSC.cxx:252:5: note: used in buffer access here ATARI_NTSC_RGB_OUT_8888(3, line_out[3]) ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ src/common/tv_filters/AtariNTSC.hxx:216:9: note: expanded from macro 'ATARI_NTSC_RGB_OUT_8888' kernel0 [index ] + kernel1 [(index+10)%7+14] +\ ^~~~~~~ src/common/tv_filters/AtariNTSC.cxx:239:7: note: used in buffer access here ATARI_NTSC_RGB_OUT_8888(4, line_out[4]) ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ src/common/tv_filters/AtariNTSC.hxx:216:9: note: expanded from macro 'ATARI_NTSC_RGB_OUT_8888' kernel0 [index ] + kernel1 [(index+10)%7+14] +\ ^~~~~~~ src/common/tv_filters/AtariNTSC.cxx:221:5: warning: 'kernel1' is an unsafe pointer used for buffer access [-Wunsafe-buffer-usage] ATARI_NTSC_BEGIN_ROW(NTSC_black, line_in[0]); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ src/common/tv_filters/AtariNTSC.hxx:201:21: note: expanded from macro 'ATARI_NTSC_BEGIN_ROW' uInt32 const* kernel1 = myColorTable[atari_ntsc_pixel1_].data();\ ~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ src/common/tv_filters/AtariNTSC.cxx:257:5: note: used in buffer access here ATARI_NTSC_RGB_OUT_8888(6, line_out[6]) ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ src/common/tv_filters/AtariNTSC.hxx:216:35: note: expanded from macro 'ATARI_NTSC_RGB_OUT_8888' kernel0 [index ] + kernel1 [(index+10)%7+14] +\ ^~~~~~~ src/common/tv_filters/AtariNTSC.cxx:268:5: note: used in buffer access here ATARI_NTSC_RGB_OUT_8888(4, line_out[4]) ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ src/common/tv_filters/AtariNTSC.hxx:216:35: note: expanded from macro 'ATARI_NTSC_RGB_OUT_8888' kernel0 [index ] + kernel1 [(index+10)%7+14] +\ ^~~~~~~ src/common/tv_filters/AtariNTSC.cxx:251:5: note: used in buffer access here ATARI_NTSC_RGB_OUT_8888(2, line_out[2]) ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ src/common/tv_filters/AtariNTSC.hxx:216:35: note: expanded from macro 'ATARI_NTSC_RGB_OUT_8888' kernel0 [index ] + kernel1 [(index+10)%7+14] +\ ^~~~~~~ src/common/tv_filters/AtariNTSC.cxx:255:5: note: used in buffer access here ATARI_NTSC_RGB_OUT_8888(4, line_out[4]) ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ src/common/tv_filters/AtariNTSC.hxx:216:35: note: expanded from macro 'ATARI_NTSC_RGB_OUT_8888' kernel0 [index ] + kernel1 [(index+10)%7+14] +\ ^~~~~~~ src/common/tv_filters/AtariNTSC.cxx:240:7: note: used in buffer access here ATARI_NTSC_RGB_OUT_8888(5, line_out[5]) ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ src/common/tv_filters/AtariNTSC.hxx:216:35: note: expanded from macro 'ATARI_NTSC_RGB_OUT_8888' kernel0 [index ] + kernel1 [(index+10)%7+14] +\ ^~~~~~~ src/common/tv_filters/AtariNTSC.cxx:241:7: note: used in buffer access here ATARI_NTSC_RGB_OUT_8888(6, line_out[6]) ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ src/common/tv_filters/AtariNTSC.hxx:216:35: note: expanded from macro 'ATARI_NTSC_RGB_OUT_8888' kernel0 [index ] + kernel1 [(index+10)%7+14] +\ ^~~~~~~ src/common/tv_filters/AtariNTSC.cxx:265:5: note: used in buffer access here ATARI_NTSC_RGB_OUT_8888(3, line_out[3]) ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ src/common/tv_filters/AtariNTSC.hxx:216:35: note: expanded from macro 'ATARI_NTSC_RGB_OUT_8888' kernel0 [index ] + kernel1 [(index+10)%7+14] +\ ^~~~~~~ src/common/tv_filters/AtariNTSC.cxx:234:7: note: used in buffer access here ATARI_NTSC_RGB_OUT_8888(1, line_out[1]) ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ src/common/tv_filters/AtariNTSC.hxx:216:35: note: expanded from macro 'ATARI_NTSC_RGB_OUT_8888' kernel0 [index ] + kernel1 [(index+10)%7+14] +\ ^~~~~~~ src/common/tv_filters/AtariNTSC.cxx:262:5: note: used in buffer access here ATARI_NTSC_RGB_OUT_8888(0, line_out[0]) ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ src/common/tv_filters/AtariNTSC.hxx:216:35: note: expanded from macro 'ATARI_NTSC_RGB_OUT_8888' kernel0 [index ] + kernel1 [(index+10)%7+14] +\ ^~~~~~~ src/common/tv_filters/AtariNTSC.cxx:239:7: note: used in buffer access here ATARI_NTSC_RGB_OUT_8888(4, line_out[4]) ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ src/common/tv_filters/AtariNTSC.hxx:216:35: note: expanded from macro 'ATARI_NTSC_RGB_OUT_8888' kernel0 [index ] + kernel1 [(index+10)%7+14] +\ ^~~~~~~ src/common/tv_filters/AtariNTSC.cxx:249:5: note: used in buffer access here ATARI_NTSC_RGB_OUT_8888(0, line_out[0]) ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ src/common/tv_filters/AtariNTSC.hxx:216:35: note: expanded from macro 'ATARI_NTSC_RGB_OUT_8888' kernel0 [index ] + kernel1 [(index+10)%7+14] +\ ^~~~~~~ src/common/tv_filters/AtariNTSC.cxx:250:5: note: used in buffer access here ATARI_NTSC_RGB_OUT_8888(1, line_out[1]) ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ src/common/tv_filters/AtariNTSC.hxx:216:35: note: expanded from macro 'ATARI_NTSC_RGB_OUT_8888' kernel0 [index ] + kernel1 [(index+10)%7+14] +\ ^~~~~~~ src/common/tv_filters/AtariNTSC.cxx:263:5: note: used in buffer access here ATARI_NTSC_RGB_OUT_8888(1, line_out[1]) ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ src/common/tv_filters/AtariNTSC.hxx:216:35: note: expanded from macro 'ATARI_NTSC_RGB_OUT_8888' kernel0 [index ] + kernel1 [(index+10)%7+14] +\ ^~~~~~~ src/common/tv_filters/AtariNTSC.cxx:264:5: note: used in buffer access here ATARI_NTSC_RGB_OUT_8888(2, line_out[2]) ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ src/common/tv_filters/AtariNTSC.hxx:216:35: note: expanded from macro 'ATARI_NTSC_RGB_OUT_8888' kernel0 [index ] + kernel1 [(index+10)%7+14] +\ ^~~~~~~ src/common/tv_filters/AtariNTSC.cxx:256:5: note: used in buffer access here ATARI_NTSC_RGB_OUT_8888(5, line_out[5]) ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ src/common/tv_filters/AtariNTSC.hxx:216:35: note: expanded from macro 'ATARI_NTSC_RGB_OUT_8888' kernel0 [index ] + kernel1 [(index+10)%7+14] +\ ^~~~~~~ src/common/tv_filters/AtariNTSC.cxx:233:7: note: used in buffer access here ATARI_NTSC_RGB_OUT_8888(0, line_out[0]) ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ src/common/tv_filters/AtariNTSC.hxx:216:35: note: expanded from macro 'ATARI_NTSC_RGB_OUT_8888' kernel0 [index ] + kernel1 [(index+10)%7+14] +\ ^~~~~~~ src/common/tv_filters/AtariNTSC.cxx:236:7: note: used in buffer access here ATARI_NTSC_RGB_OUT_8888(3, line_out[3]) ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ src/common/tv_filters/AtariNTSC.hxx:216:35: note: expanded from macro 'ATARI_NTSC_RGB_OUT_8888' kernel0 [index ] + kernel1 [(index+10)%7+14] +\ ^~~~~~~ src/common/tv_filters/AtariNTSC.cxx:252:5: note: used in buffer access here ATARI_NTSC_RGB_OUT_8888(3, line_out[3]) ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ src/common/tv_filters/AtariNTSC.hxx:216:35: note: expanded from macro 'ATARI_NTSC_RGB_OUT_8888' kernel0 [index ] + kernel1 [(index+10)%7+14] +\ ^~~~~~~ src/common/tv_filters/AtariNTSC.cxx:235:7: note: used in buffer access here ATARI_NTSC_RGB_OUT_8888(2, line_out[2]) ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ src/common/tv_filters/AtariNTSC.hxx:216:35: note: expanded from macro 'ATARI_NTSC_RGB_OUT_8888' kernel0 [index ] + kernel1 [(index+10)%7+14] +\ ^~~~~~~ src/common/tv_filters/AtariNTSC.cxx:221:5: warning: 'kernelx0' is an unsafe pointer used for buffer access [-Wunsafe-buffer-usage] ATARI_NTSC_BEGIN_ROW(NTSC_black, line_in[0]); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ src/common/tv_filters/AtariNTSC.hxx:202:21: note: expanded from macro 'ATARI_NTSC_BEGIN_ROW' uInt32 const* kernelx0;\ ~~~~~~~~~~~~~~^~~~~~~~ src/common/tv_filters/AtariNTSC.cxx:233:7: note: used in buffer access here ATARI_NTSC_RGB_OUT_8888(0, line_out[0]) ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ src/common/tv_filters/AtariNTSC.hxx:217:9: note: expanded from macro 'ATARI_NTSC_RGB_OUT_8888' kernelx0 [(index+7)%14] + kernelx1 [(index+ 3)%7+14+7];\ ^~~~~~~~ src/common/tv_filters/AtariNTSC.cxx:249:5: note: used in buffer access here ATARI_NTSC_RGB_OUT_8888(0, line_out[0]) ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ src/common/tv_filters/AtariNTSC.hxx:217:9: note: expanded from macro 'ATARI_NTSC_RGB_OUT_8888' kernelx0 [(index+7)%14] + kernelx1 [(index+ 3)%7+14+7];\ ^~~~~~~~ src/common/tv_filters/AtariNTSC.cxx:256:5: note: used in buffer access here ATARI_NTSC_RGB_OUT_8888(5, line_out[5]) ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ src/common/tv_filters/AtariNTSC.hxx:217:9: note: expanded from macro 'ATARI_NTSC_RGB_OUT_8888' kernelx0 [(index+7)%14] + kernelx1 [(index+ 3)%7+14+7];\ ^~~~~~~~ src/common/tv_filters/AtariNTSC.cxx:268:5: note: used in buffer access here ATARI_NTSC_RGB_OUT_8888(4, line_out[4]) ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ src/common/tv_filters/AtariNTSC.hxx:217:9: note: expanded from macro 'ATARI_NTSC_RGB_OUT_8888' kernelx0 [(index+7)%14] + kernelx1 [(index+ 3)%7+14+7];\ ^~~~~~~~ src/common/tv_filters/AtariNTSC.cxx:250:5: note: used in buffer access here ATARI_NTSC_RGB_OUT_8888(1, line_out[1]) ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ src/common/tv_filters/AtariNTSC.hxx:217:9: note: expanded from macro 'ATARI_NTSC_RGB_OUT_8888' kernelx0 [(index+7)%14] + kernelx1 [(index+ 3)%7+14+7];\ ^~~~~~~~ src/common/tv_filters/AtariNTSC.cxx:265:5: note: used in buffer access here ATARI_NTSC_RGB_OUT_8888(3, line_out[3]) ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ src/common/tv_filters/AtariNTSC.hxx:217:9: note: expanded from macro 'ATARI_NTSC_RGB_OUT_8888' kernelx0 [(index+7)%14] + kernelx1 [(index+ 3)%7+14+7];\ ^~~~~~~~ src/common/tv_filters/AtariNTSC.cxx:236:7: note: used in buffer access here ATARI_NTSC_RGB_OUT_8888(3, line_out[3]) ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ src/common/tv_filters/AtariNTSC.hxx:217:9: note: expanded from macro 'ATARI_NTSC_RGB_OUT_8888' kernelx0 [(index+7)%14] + kernelx1 [(index+ 3)%7+14+7];\ ^~~~~~~~ src/common/tv_filters/AtariNTSC.cxx:255:5: note: used in buffer access here ATARI_NTSC_RGB_OUT_8888(4, line_out[4]) ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ src/common/tv_filters/AtariNTSC.hxx:217:9: note: expanded from macro 'ATARI_NTSC_RGB_OUT_8888' kernelx0 [(index+7)%14] + kernelx1 [(index+ 3)%7+14+7];\ ^~~~~~~~ src/common/tv_filters/AtariNTSC.cxx:263:5: note: used in buffer access here ATARI_NTSC_RGB_OUT_8888(1, line_out[1]) ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ src/common/tv_filters/AtariNTSC.hxx:217:9: note: expanded from macro 'ATARI_NTSC_RGB_OUT_8888' kernelx0 [(index+7)%14] + kernelx1 [(index+ 3)%7+14+7];\ ^~~~~~~~ src/common/tv_filters/AtariNTSC.cxx:241:7: note: used in buffer access here ATARI_NTSC_RGB_OUT_8888(6, line_out[6]) ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ src/common/tv_filters/AtariNTSC.hxx:217:9: note: expanded from macro 'ATARI_NTSC_RGB_OUT_8888' kernelx0 [(index+7)%14] + kernelx1 [(index+ 3)%7+14+7];\ ^~~~~~~~ src/common/tv_filters/AtariNTSC.cxx:252:5: note: used in buffer access here ATARI_NTSC_RGB_OUT_8888(3, line_out[3]) ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ src/common/tv_filters/AtariNTSC.hxx:217:9: note: expanded from macro 'ATARI_NTSC_RGB_OUT_8888' kernelx0 [(index+7)%14] + kernelx1 [(index+ 3)%7+14+7];\ ^~~~~~~~ src/common/tv_filters/AtariNTSC.cxx:262:5: note: used in buffer access here ATARI_NTSC_RGB_OUT_8888(0, line_out[0]) ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ src/common/tv_filters/AtariNTSC.hxx:217:9: note: expanded from macro 'ATARI_NTSC_RGB_OUT_8888' kernelx0 [(index+7)%14] + kernelx1 [(index+ 3)%7+14+7];\ ^~~~~~~~ src/common/tv_filters/AtariNTSC.cxx:264:5: note: used in buffer access here ATARI_NTSC_RGB_OUT_8888(2, line_out[2]) ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ src/common/tv_filters/AtariNTSC.hxx:217:9: note: expanded from macro 'ATARI_NTSC_RGB_OUT_8888' kernelx0 [(index+7)%14] + kernelx1 [(index+ 3)%7+14+7];\ ^~~~~~~~ src/common/tv_filters/AtariNTSC.cxx:240:7: note: used in buffer access here ATARI_NTSC_RGB_OUT_8888(5, line_out[5]) ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ src/common/tv_filters/AtariNTSC.hxx:217:9: note: expanded from macro 'ATARI_NTSC_RGB_OUT_8888' kernelx0 [(index+7)%14] + kernelx1 [(index+ 3)%7+14+7];\ ^~~~~~~~ src/common/tv_filters/AtariNTSC.cxx:251:5: note: used in buffer access here ATARI_NTSC_RGB_OUT_8888(2, line_out[2]) ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ src/common/tv_filters/AtariNTSC.hxx:217:9: note: expanded from macro 'ATARI_NTSC_RGB_OUT_8888' kernelx0 [(index+7)%14] + kernelx1 [(index+ 3)%7+14+7];\ ^~~~~~~~ src/common/tv_filters/AtariNTSC.cxx:257:5: note: used in buffer access here ATARI_NTSC_RGB_OUT_8888(6, line_out[6]) ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ src/common/tv_filters/AtariNTSC.hxx:217:9: note: expanded from macro 'ATARI_NTSC_RGB_OUT_8888' kernelx0 [(index+7)%14] + kernelx1 [(index+ 3)%7+14+7];\ ^~~~~~~~ src/common/tv_filters/AtariNTSC.cxx:239:7: note: used in buffer access here ATARI_NTSC_RGB_OUT_8888(4, line_out[4]) ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ src/common/tv_filters/AtariNTSC.hxx:217:9: note: expanded from macro 'ATARI_NTSC_RGB_OUT_8888' kernelx0 [(index+7)%14] + kernelx1 [(index+ 3)%7+14+7];\ ^~~~~~~~ src/common/tv_filters/AtariNTSC.cxx:234:7: note: used in buffer access here ATARI_NTSC_RGB_OUT_8888(1, line_out[1]) ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ src/common/tv_filters/AtariNTSC.hxx:217:9: note: expanded from macro 'ATARI_NTSC_RGB_OUT_8888' kernelx0 [(index+7)%14] + kernelx1 [(index+ 3)%7+14+7];\ ^~~~~~~~ src/common/tv_filters/AtariNTSC.cxx:235:7: note: used in buffer access here ATARI_NTSC_RGB_OUT_8888(2, line_out[2]) ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ src/common/tv_filters/AtariNTSC.hxx:217:9: note: expanded from macro 'ATARI_NTSC_RGB_OUT_8888' kernelx0 [(index+7)%14] + kernelx1 [(index+ 3)%7+14+7];\ ^~~~~~~~ src/common/tv_filters/AtariNTSC.cxx:221:5: warning: 'kernelx1' is an unsafe pointer used for buffer access [-Wunsafe-buffer-usage] ATARI_NTSC_BEGIN_ROW(NTSC_black, line_in[0]); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ src/common/tv_filters/AtariNTSC.hxx:203:21: note: expanded from macro 'ATARI_NTSC_BEGIN_ROW' uInt32 const* kernelx1 = kernel0 ~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~ src/common/tv_filters/AtariNTSC.cxx:250:5: note: used in buffer access here ATARI_NTSC_RGB_OUT_8888(1, line_out[1]) ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ src/common/tv_filters/AtariNTSC.hxx:217:35: note: expanded from macro 'ATARI_NTSC_RGB_OUT_8888' kernelx0 [(index+7)%14] + kernelx1 [(index+ 3)%7+14+7];\ ^~~~~~~~ src/common/tv_filters/AtariNTSC.cxx:256:5: note: used in buffer access here ATARI_NTSC_RGB_OUT_8888(5, line_out[5]) ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ src/common/tv_filters/AtariNTSC.hxx:217:35: note: expanded from macro 'ATARI_NTSC_RGB_OUT_8888' kernelx0 [(index+7)%14] + kernelx1 [(index+ 3)%7+14+7];\ ^~~~~~~~ src/common/tv_filters/AtariNTSC.cxx:257:5: note: used in buffer access here ATARI_NTSC_RGB_OUT_8888(6, line_out[6]) ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ src/common/tv_filters/AtariNTSC.hxx:217:35: note: expanded from macro 'ATARI_NTSC_RGB_OUT_8888' kernelx0 [(index+7)%14] + kernelx1 [(index+ 3)%7+14+7];\ ^~~~~~~~ src/common/tv_filters/AtariNTSC.cxx:262:5: note: used in buffer access here ATARI_NTSC_RGB_OUT_8888(0, line_out[0]) ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ src/common/tv_filters/AtariNTSC.hxx:217:35: note: expanded from macro 'ATARI_NTSC_RGB_OUT_8888' kernelx0 [(index+7)%14] + kernelx1 [(index+ 3)%7+14+7];\ ^~~~~~~~ src/common/tv_filters/AtariNTSC.cxx:236:7: note: used in buffer access here ATARI_NTSC_RGB_OUT_8888(3, line_out[3]) ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ src/common/tv_filters/AtariNTSC.hxx:217:35: note: expanded from macro 'ATARI_NTSC_RGB_OUT_8888' kernelx0 [(index+7)%14] + kernelx1 [(index+ 3)%7+14+7];\ ^~~~~~~~ src/common/tv_filters/AtariNTSC.cxx:241:7: note: used in buffer access here ATARI_NTSC_RGB_OUT_8888(6, line_out[6]) ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ src/common/tv_filters/AtariNTSC.hxx:217:35: note: expanded from macro 'ATARI_NTSC_RGB_OUT_8888' kernelx0 [(index+7)%14] + kernelx1 [(index+ 3)%7+14+7];\ ^~~~~~~~ src/common/tv_filters/AtariNTSC.cxx:251:5: note: used in buffer access here ATARI_NTSC_RGB_OUT_8888(2, line_out[2]) ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ src/common/tv_filters/AtariNTSC.hxx:217:35: note: expanded from macro 'ATARI_NTSC_RGB_OUT_8888' kernelx0 [(index+7)%14] + kernelx1 [(index+ 3)%7+14+7];\ ^~~~~~~~ src/common/tv_filters/AtariNTSC.cxx:263:5: note: used in buffer access here ATARI_NTSC_RGB_OUT_8888(1, line_out[1]) ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ src/common/tv_filters/AtariNTSC.hxx:217:35: note: expanded from macro 'ATARI_NTSC_RGB_OUT_8888' kernelx0 [(index+7)%14] + kernelx1 [(index+ 3)%7+14+7];\ ^~~~~~~~ src/common/tv_filters/AtariNTSC.cxx:233:7: note: used in buffer access here ATARI_NTSC_RGB_OUT_8888(0, line_out[0]) ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ src/common/tv_filters/AtariNTSC.hxx:217:35: note: expanded from macro 'ATARI_NTSC_RGB_OUT_8888' kernelx0 [(index+7)%14] + kernelx1 [(index+ 3)%7+14+7];\ ^~~~~~~~ src/common/tv_filters/AtariNTSC.cxx:265:5: note: used in buffer access here ATARI_NTSC_RGB_OUT_8888(3, line_out[3]) ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ src/common/tv_filters/AtariNTSC.hxx:217:35: note: expanded from macro 'ATARI_NTSC_RGB_OUT_8888' kernelx0 [(index+7)%14] + kernelx1 [(index+ 3)%7+14+7];\ ^~~~~~~~ src/common/tv_filters/AtariNTSC.cxx:239:7: note: used in buffer access here ATARI_NTSC_RGB_OUT_8888(4, line_out[4]) ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ src/common/tv_filters/AtariNTSC.hxx:217:35: note: expanded from macro 'ATARI_NTSC_RGB_OUT_8888' kernelx0 [(index+7)%14] + kernelx1 [(index+ 3)%7+14+7];\ ^~~~~~~~ src/common/tv_filters/AtariNTSC.cxx:252:5: note: used in buffer access here ATARI_NTSC_RGB_OUT_8888(3, line_out[3]) ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ src/common/tv_filters/AtariNTSC.hxx:217:35: note: expanded from macro 'ATARI_NTSC_RGB_OUT_8888' kernelx0 [(index+7)%14] + kernelx1 [(index+ 3)%7+14+7];\ ^~~~~~~~ src/common/tv_filters/AtariNTSC.cxx:255:5: note: used in buffer access here ATARI_NTSC_RGB_OUT_8888(4, line_out[4]) ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ src/common/tv_filters/AtariNTSC.hxx:217:35: note: expanded from macro 'ATARI_NTSC_RGB_OUT_8888' kernelx0 [(index+7)%14] + kernelx1 [(index+ 3)%7+14+7];\ ^~~~~~~~ src/common/tv_filters/AtariNTSC.cxx:268:5: note: used in buffer access here ATARI_NTSC_RGB_OUT_8888(4, line_out[4]) ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ src/common/tv_filters/AtariNTSC.hxx:217:35: note: expanded from macro 'ATARI_NTSC_RGB_OUT_8888' kernelx0 [(index+7)%14] + kernelx1 [(index+ 3)%7+14+7];\ ^~~~~~~~ src/common/tv_filters/AtariNTSC.cxx:234:7: note: used in buffer access here ATARI_NTSC_RGB_OUT_8888(1, line_out[1]) ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ src/common/tv_filters/AtariNTSC.hxx:217:35: note: expanded from macro 'ATARI_NTSC_RGB_OUT_8888' kernelx0 [(index+7)%14] + kernelx1 [(index+ 3)%7+14+7];\ ^~~~~~~~ src/common/tv_filters/AtariNTSC.cxx:264:5: note: used in buffer access here ATARI_NTSC_RGB_OUT_8888(2, line_out[2]) ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ src/common/tv_filters/AtariNTSC.hxx:217:35: note: expanded from macro 'ATARI_NTSC_RGB_OUT_8888' kernelx0 [(index+7)%14] + kernelx1 [(index+ 3)%7+14+7];\ ^~~~~~~~ src/common/tv_filters/AtariNTSC.cxx:249:5: note: used in buffer access here ATARI_NTSC_RGB_OUT_8888(0, line_out[0]) ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ src/common/tv_filters/AtariNTSC.hxx:217:35: note: expanded from macro 'ATARI_NTSC_RGB_OUT_8888' kernelx0 [(index+7)%14] + kernelx1 [(index+ 3)%7+14+7];\ ^~~~~~~~ src/common/tv_filters/AtariNTSC.cxx:240:7: note: used in buffer access here ATARI_NTSC_RGB_OUT_8888(5, line_out[5]) ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ src/common/tv_filters/AtariNTSC.hxx:217:35: note: expanded from macro 'ATARI_NTSC_RGB_OUT_8888' kernelx0 [(index+7)%14] + kernelx1 [(index+ 3)%7+14+7];\ ^~~~~~~~ src/common/tv_filters/AtariNTSC.cxx:235:7: note: used in buffer access here ATARI_NTSC_RGB_OUT_8888(2, line_out[2]) ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ src/common/tv_filters/AtariNTSC.hxx:217:35: note: expanded from macro 'ATARI_NTSC_RGB_OUT_8888' kernelx0 [(index+7)%14] + kernelx1 [(index+ 3)%7+14+7];\ ^~~~~~~~ src/common/tv_filters/AtariNTSC.cxx:222:22: warning: 'line_out' is an unsafe pointer used for buffer access [-Wunsafe-buffer-usage] uInt32* restrict line_out = static_cast(rgb_out); ~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ src/common/tv_filters/AtariNTSC.cxx:255:32: note: used in buffer access here ATARI_NTSC_RGB_OUT_8888(4, line_out[4]) ^~~~~~~~ src/common/tv_filters/AtariNTSC.hxx:219:7: note: expanded from macro 'ATARI_NTSC_RGB_OUT_8888' rgb_out = (raw_>>5 & 0x00FF0000)|(raw_>>3 & 0x0000FF00)|(raw_>>1 & 0x000000FF);\ ^~~~~~~ src/common/tv_filters/AtariNTSC.cxx:234:34: note: used in buffer access here ATARI_NTSC_RGB_OUT_8888(1, line_out[1]) ^~~~~~~~ src/common/tv_filters/AtariNTSC.hxx:219:7: note: expanded from macro 'ATARI_NTSC_RGB_OUT_8888' rgb_out = (raw_>>5 & 0x00FF0000)|(raw_>>3 & 0x0000FF00)|(raw_>>1 & 0x000000FF);\ ^~~~~~~ src/common/tv_filters/AtariNTSC.cxx:236:34: note: used in buffer access here ATARI_NTSC_RGB_OUT_8888(3, line_out[3]) ^~~~~~~~ src/common/tv_filters/AtariNTSC.hxx:219:7: note: expanded from macro 'ATARI_NTSC_RGB_OUT_8888' rgb_out = (raw_>>5 & 0x00FF0000)|(raw_>>3 & 0x0000FF00)|(raw_>>1 & 0x000000FF);\ ^~~~~~~ src/common/tv_filters/AtariNTSC.cxx:256:32: note: used in buffer access here ATARI_NTSC_RGB_OUT_8888(5, line_out[5]) ^~~~~~~~ src/common/tv_filters/AtariNTSC.hxx:219:7: note: expanded from macro 'ATARI_NTSC_RGB_OUT_8888' rgb_out = (raw_>>5 & 0x00FF0000)|(raw_>>3 & 0x0000FF00)|(raw_>>1 & 0x000000FF);\ ^~~~~~~ src/common/tv_filters/AtariNTSC.cxx:259:5: note: used in pointer arithmetic here line_out += 7; ^~~~~~~~ src/common/tv_filters/AtariNTSC.cxx:268:32: note: used in buffer access here ATARI_NTSC_RGB_OUT_8888(4, line_out[4]) ^~~~~~~~ src/common/tv_filters/AtariNTSC.hxx:219:7: note: expanded from macro 'ATARI_NTSC_RGB_OUT_8888' rgb_out = (raw_>>5 & 0x00FF0000)|(raw_>>3 & 0x0000FF00)|(raw_>>1 & 0x000000FF);\ ^~~~~~~ src/common/tv_filters/AtariNTSC.cxx:257:32: note: used in buffer access here ATARI_NTSC_RGB_OUT_8888(6, line_out[6]) ^~~~~~~~ src/common/tv_filters/AtariNTSC.hxx:219:7: note: expanded from macro 'ATARI_NTSC_RGB_OUT_8888' rgb_out = (raw_>>5 & 0x00FF0000)|(raw_>>3 & 0x0000FF00)|(raw_>>1 & 0x000000FF);\ ^~~~~~~ src/common/tv_filters/AtariNTSC.cxx:244:7: note: used in pointer arithmetic here line_out += 7; ^~~~~~~~ src/common/tv_filters/AtariNTSC.cxx:240:34: note: used in buffer access here ATARI_NTSC_RGB_OUT_8888(5, line_out[5]) ^~~~~~~~ src/common/tv_filters/AtariNTSC.hxx:219:7: note: expanded from macro 'ATARI_NTSC_RGB_OUT_8888' rgb_out = (raw_>>5 & 0x00FF0000)|(raw_>>3 & 0x0000FF00)|(raw_>>1 & 0x000000FF);\ ^~~~~~~ src/common/tv_filters/AtariNTSC.cxx:263:32: note: used in buffer access here ATARI_NTSC_RGB_OUT_8888(1, line_out[1]) ^~~~~~~~ src/common/tv_filters/AtariNTSC.hxx:219:7: note: expanded from macro 'ATARI_NTSC_RGB_OUT_8888' rgb_out = (raw_>>5 & 0x00FF0000)|(raw_>>3 & 0x0000FF00)|(raw_>>1 & 0x000000FF);\ ^~~~~~~ src/common/tv_filters/AtariNTSC.cxx:252:32: note: used in buffer access here ATARI_NTSC_RGB_OUT_8888(3, line_out[3]) ^~~~~~~~ src/common/tv_filters/AtariNTSC.hxx:219:7: note: expanded from macro 'ATARI_NTSC_RGB_OUT_8888' rgb_out = (raw_>>5 & 0x00FF0000)|(raw_>>3 & 0x0000FF00)|(raw_>>1 & 0x000000FF);\ ^~~~~~~ src/common/tv_filters/AtariNTSC.cxx:265:32: note: used in buffer access here ATARI_NTSC_RGB_OUT_8888(3, line_out[3]) ^~~~~~~~ src/common/tv_filters/AtariNTSC.hxx:219:7: note: expanded from macro 'ATARI_NTSC_RGB_OUT_8888' rgb_out = (raw_>>5 & 0x00FF0000)|(raw_>>3 & 0x0000FF00)|(raw_>>1 & 0x000000FF);\ ^~~~~~~ src/common/tv_filters/AtariNTSC.cxx:241:34: note: used in buffer access here ATARI_NTSC_RGB_OUT_8888(6, line_out[6]) ^~~~~~~~ src/common/tv_filters/AtariNTSC.hxx:219:7: note: expanded from macro 'ATARI_NTSC_RGB_OUT_8888' rgb_out = (raw_>>5 & 0x00FF0000)|(raw_>>3 & 0x0000FF00)|(raw_>>1 & 0x000000FF);\ ^~~~~~~ src/common/tv_filters/AtariNTSC.cxx:239:34: note: used in buffer access here ATARI_NTSC_RGB_OUT_8888(4, line_out[4]) ^~~~~~~~ src/common/tv_filters/AtariNTSC.hxx:219:7: note: expanded from macro 'ATARI_NTSC_RGB_OUT_8888' rgb_out = (raw_>>5 & 0x00FF0000)|(raw_>>3 & 0x0000FF00)|(raw_>>1 & 0x000000FF);\ ^~~~~~~ src/common/tv_filters/AtariNTSC.cxx:227:5: note: used in pointer arithmetic here line_out += 2; ^~~~~~~~ src/common/tv_filters/AtariNTSC.cxx:251:32: note: used in buffer access here ATARI_NTSC_RGB_OUT_8888(2, line_out[2]) ^~~~~~~~ src/common/tv_filters/AtariNTSC.hxx:219:7: note: expanded from macro 'ATARI_NTSC_RGB_OUT_8888' rgb_out = (raw_>>5 & 0x00FF0000)|(raw_>>3 & 0x0000FF00)|(raw_>>1 & 0x000000FF);\ ^~~~~~~ src/common/tv_filters/AtariNTSC.cxx:235:34: note: used in buffer access here ATARI_NTSC_RGB_OUT_8888(2, line_out[2]) ^~~~~~~~ src/common/tv_filters/AtariNTSC.hxx:219:7: note: expanded from macro 'ATARI_NTSC_RGB_OUT_8888' rgb_out = (raw_>>5 & 0x00FF0000)|(raw_>>3 & 0x0000FF00)|(raw_>>1 & 0x000000FF);\ ^~~~~~~ src/common/tv_filters/AtariNTSC.cxx:264:32: note: used in buffer access here ATARI_NTSC_RGB_OUT_8888(2, line_out[2]) ^~~~~~~~ src/common/tv_filters/AtariNTSC.hxx:219:7: note: expanded from macro 'ATARI_NTSC_RGB_OUT_8888' rgb_out = (raw_>>5 & 0x00FF0000)|(raw_>>3 & 0x0000FF00)|(raw_>>1 & 0x000000FF);\ ^~~~~~~ src/common/tv_filters/AtariNTSC.cxx:250:32: note: used in buffer access here ATARI_NTSC_RGB_OUT_8888(1, line_out[1]) ^~~~~~~~ src/common/tv_filters/AtariNTSC.hxx:219:7: note: expanded from macro 'ATARI_NTSC_RGB_OUT_8888' rgb_out = (raw_>>5 & 0x00FF0000)|(raw_>>3 & 0x0000FF00)|(raw_>>1 & 0x000000FF);\ ^~~~~~~ src/common/tv_filters/AtariNTSC.cxx:226:19: note: used in buffer access here line_out[0] = line_out[1] = 0; ^~~~~~~~ src/common/tv_filters/AtariNTSC.cxx:337:12: warning: 'out' is an unsafe pointer used for buffer access [-Wunsafe-buffer-usage] float* out = impl.to_rgb.data(); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/common/tv_filters/AtariNTSC.cxx:350:10: note: used in pointer arithmetic here *out++ = q; ^~~ src/common/tv_filters/AtariNTSC.cxx:349:10: note: used in pointer arithmetic here *out++ = i; ^~~ src/common/tv_filters/AtariNTSC.cxx:343:20: warning: 'in' is an unsafe pointer used for buffer access [-Wunsafe-buffer-usage] float const* in = default_decoder.data(); ~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/common/tv_filters/AtariNTSC.cxx:347:20: note: used in pointer arithmetic here float i = *in++; ^~ src/common/tv_filters/AtariNTSC.cxx:348:20: note: used in pointer arithmetic here float q = *in++; ^~ src/common/tv_filters/AtariNTSC.cxx:450:10: warning: 'out' is an unsafe pointer used for buffer access [-Wunsafe-buffer-usage] float* out = impl.kernel.data(); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/common/tv_filters/AtariNTSC.cxx:460:8: note: used in pointer arithmetic here *out++ = m + remain; ^~~ src/common/tv_filters/AtariNTSC.cxx:469:76: warning: 'out' is an unsafe pointer used for buffer access [-Wunsafe-buffer-usage] void AtariNTSC::genKernel(init_t& impl, float y, float i, float q, uInt32* out) ~~~~~~~~^~~ src/common/tv_filters/AtariNTSC.cxx:515:12: note: used in pointer arithmetic here *out++ = PACK_RGB( r, g, b ) - rgb_bias; ^~~ src/common/tv_filters/AtariNTSC.cxx:481:25: warning: 'pixel' is an unsafe pointer used for buffer access [-Wunsafe-buffer-usage] pixel_info_t const* pixel = atari_ntsc_pixels.data(); ~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ src/common/tv_filters/AtariNTSC.cxx:502:9: note: used in pointer arithmetic here ++pixel; ^~~~~ src/common/tv_filters/AtariNTSC.cxx:501:20: warning: 'k' is an unsafe pointer used for buffer access [-Wunsafe-buffer-usage] float const* k = &impl.kernel [pixel->offset]; ~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ src/common/tv_filters/AtariNTSC.cxx:507:26: note: used in buffer access here const float fy = k[kernel_size+0]*yc0 + k[kernel_size+1]*yc1 + ^ src/common/tv_filters/AtariNTSC.cxx:507:49: note: used in buffer access here const float fy = k[kernel_size+0]*yc0 + k[kernel_size+1]*yc1 + ^ src/common/tv_filters/AtariNTSC.cxx:508:19: note: used in buffer access here k[kernel_size+2]*yc2 + k[kernel_size+3]*yc3 + rgb_offset; ^ src/common/tv_filters/AtariNTSC.cxx:506:26: note: used in buffer access here const float fq = k[1]*qc1 + k[3]*qc3; ^ src/common/tv_filters/AtariNTSC.cxx:512:11: note: used in pointer arithmetic here k -= kernel_size * 2 * (rescale_out - 1) + 2; ^ src/common/tv_filters/AtariNTSC.cxx:506:37: note: used in buffer access here const float fq = k[1]*qc1 + k[3]*qc3; ^ src/common/tv_filters/AtariNTSC.cxx:508:42: note: used in buffer access here k[kernel_size+2]*yc2 + k[kernel_size+3]*yc3 + rgb_offset; ^ src/common/tv_filters/AtariNTSC.cxx:510:11: note: used in pointer arithmetic here k += kernel_size * 2 - 1; ^ src/common/tv_filters/AtariNTSC.cxx:505:37: note: used in buffer access here const float fi = k[0]*ic0 + k[2]*ic2; ^ 32 warnings generated. mkdir -p -p src/emucore/.deps mkdir -p -p out/src/emucore c++ -MMD -MF "src/emucore/.deps/AtariVox.d" -MQ "out/src/emucore/AtariVox.o" -MP -O2 -pipe -I/usr/X11R6/include -I/usr/local/include -x c++ -Wall -Wextra -Wno-unused-parameter -Wno-multichar -Wunused -Woverloaded-virtual -Wnon-virtual-dtor -std=c++17 -Weverything -Wno-c++98-compat-pedantic -Wno-unknown-warning-option -Wno-switch-enum -Wno-conversion -Wno-covered-switch-default -Wno-inconsistent-missing-destructor-override -Wno-float-equal -Wno-exit-time-destructors -Wno-global-constructors -Wno-weak-vtables -Wno-four-char-constants -Wno-padded -Wno-reserved-identifier -Wno-duplicate-enum -fomit-frame-pointer -DSDL_SUPPORT -D_GLIBCXX_USE_CXX11_ABI=1 -DUNIX -DBSPF_UNIX -DGUI_SUPPORT -DWINDOWED_SUPPORT -DSOUND_SUPPORT -DDEBUGGER_SUPPORT -DJOYSTICK_SUPPORT -DCHEATCODE_SUPPORT -DHTTP_LIB_SUPPORT -DPNG_SUPPORT -DZIP_SUPPORT -Isrc/emucore -Isrc/common -Isrc/common/tv_filters -Isrc/emucore/tia -Isrc/emucore/tia/frame-manager -Isrc/json -Isrc/common/repository/sqlite -I/usr/local/include -I/usr/local/include/SDL2 -I/usr/X11R6/include -D_REENTRANT -I/usr/X11R6/include -Isrc/unix -Isrc/gui -Isrc/debugger -Isrc/debugger/gui -Isrc/yacc -Isrc/cheat -Isrc/httplib -c src/emucore/AtariVox.cxx -o out/src/emucore/AtariVox.o In file included from src/emucore/AtariVox.cxx:18: In file included from src/common/MediaFactory.hxx:21: src/common/bspf.hxx:245:37: warning: unsafe pointer arithmetic [-Wunsafe-buffer-usage] const auto pos = std::search(s1.cbegin()+startpos, s1.cend(), ~~~^~~~~~~~ src/common/bspf.hxx:249:56: warning: unsafe pointer arithmetic [-Wunsafe-buffer-usage] return pos == s1.cend() ? string::npos : pos - (s1.cbegin()+startpos); ~~~^~~~~~~~ In file included from src/emucore/AtariVox.cxx:18: In file included from src/common/MediaFactory.hxx:23: In file included from src/common/SDL_lib.hxx:34: In file included from /usr/local/include/SDL2/SDL.h:32: In file included from /usr/local/include/SDL2/SDL_main.h:25: /usr/local/include/SDL2/SDL_stdinc.h:544:13: warning: '_p' is an unsafe pointer used for buffer access [-Wunsafe-buffer-usage] Uint32 *_p = SDL_static_cast(Uint32 *, dst); ~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /usr/local/include/SDL2/SDL_stdinc.h:550:26: note: used in pointer arithmetic here case 0: do { *_p++ = _val; SDL_FALLTHROUGH; ^~ /usr/local/include/SDL2/SDL_stdinc.h:551:26: note: used in pointer arithmetic here case 3: *_p++ = _val; SDL_FALLTHROUGH; ^~ /usr/local/include/SDL2/SDL_stdinc.h:552:26: note: used in pointer arithmetic here case 2: *_p++ = _val; SDL_FALLTHROUGH; ^~ /usr/local/include/SDL2/SDL_stdinc.h:553:26: note: used in pointer arithmetic here case 1: *_p++ = _val; ^~ In file included from src/emucore/AtariVox.cxx:18: In file included from src/common/MediaFactory.hxx:26: In file included from src/emucore/OSystem.hxx:55: src/emucore/FSNode.hxx:513:31: warning: unsafe pointer arithmetic [-Wunsafe-buffer-usage] const char* cur = start + str.size() - 2; ~~~~~~^~~~~~~~~~~~ src/emucore/FSNode.hxx:512:19: warning: 'start' is an unsafe pointer used for buffer access [-Wunsafe-buffer-usage] const char* start = str.c_str(); ~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~ src/emucore/FSNode.hxx:513:25: note: used in pointer arithmetic here const char* cur = start + str.size() - 2; ^~~~~ src/emucore/FSNode.hxx:513:19: warning: 'cur' is an unsafe pointer used for buffer access [-Wunsafe-buffer-usage] const char* cur = start + str.size() - 2; ~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~ src/emucore/FSNode.hxx:518:14: note: used in pointer arithmetic here return cur + 1; ^~~ src/emucore/FSNode.hxx:516:11: note: used in pointer arithmetic here --cur; ^~~ 6 warnings generated. mkdir -p -p src/emucore/.deps mkdir -p -p out/src/emucore c++ -MMD -MF "src/emucore/.deps/Bankswitch.d" -MQ "out/src/emucore/Bankswitch.o" -MP -O2 -pipe -I/usr/X11R6/include -I/usr/local/include -x c++ -Wall -Wextra -Wno-unused-parameter -Wno-multichar -Wunused -Woverloaded-virtual -Wnon-virtual-dtor -std=c++17 -Weverything -Wno-c++98-compat-pedantic -Wno-unknown-warning-option -Wno-switch-enum -Wno-conversion -Wno-covered-switch-default -Wno-inconsistent-missing-destructor-override -Wno-float-equal -Wno-exit-time-destructors -Wno-global-constructors -Wno-weak-vtables -Wno-four-char-constants -Wno-padded -Wno-reserved-identifier -Wno-duplicate-enum -fomit-frame-pointer -DSDL_SUPPORT -D_GLIBCXX_USE_CXX11_ABI=1 -DUNIX -DBSPF_UNIX -DGUI_SUPPORT -DWINDOWED_SUPPORT -DSOUND_SUPPORT -DDEBUGGER_SUPPORT -DJOYSTICK_SUPPORT -DCHEATCODE_SUPPORT -DHTTP_LIB_SUPPORT -DPNG_SUPPORT -DZIP_SUPPORT -Isrc/emucore -Isrc/common -Isrc/common/tv_filters -Isrc/emucore/tia -Isrc/emucore/tia/frame-manager -Isrc/json -Isrc/common/repository/sqlite -I/usr/local/include -I/usr/local/include/SDL2 -I/usr/X11R6/include -D_REENTRANT -I/usr/X11R6/include -Isrc/unix -Isrc/gui -Isrc/debugger -Isrc/debugger/gui -Isrc/yacc -Isrc/cheat -Isrc/httplib -c src/emucore/Bankswitch.cxx -o out/src/emucore/Bankswitch.o In file included from src/emucore/Bankswitch.cxx:18: In file included from src/emucore/Bankswitch.hxx:23: In file included from src/emucore/FSNode.hxx:23: src/common/bspf.hxx:245:37: warning: unsafe pointer arithmetic [-Wunsafe-buffer-usage] const auto pos = std::search(s1.cbegin()+startpos, s1.cend(), ~~~^~~~~~~~ src/common/bspf.hxx:249:56: warning: unsafe pointer arithmetic [-Wunsafe-buffer-usage] return pos == s1.cend() ? string::npos : pos - (s1.cbegin()+startpos); ~~~^~~~~~~~ In file included from src/emucore/Bankswitch.cxx:18: In file included from src/emucore/Bankswitch.hxx:23: src/emucore/FSNode.hxx:513:31: warning: unsafe pointer arithmetic [-Wunsafe-buffer-usage] const char* cur = start + str.size() - 2; ~~~~~~^~~~~~~~~~~~ src/emucore/FSNode.hxx:512:19: warning: 'start' is an unsafe pointer used for buffer access [-Wunsafe-buffer-usage] const char* start = str.c_str(); ~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~ src/emucore/FSNode.hxx:513:25: note: used in pointer arithmetic here const char* cur = start + str.size() - 2; ^~~~~ src/emucore/FSNode.hxx:513:19: warning: 'cur' is an unsafe pointer used for buffer access [-Wunsafe-buffer-usage] const char* cur = start + str.size() - 2; ~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~ src/emucore/FSNode.hxx:518:14: note: used in pointer arithmetic here return cur + 1; ^~~ src/emucore/FSNode.hxx:516:11: note: used in pointer arithmetic here --cur; ^~~ src/emucore/Bankswitch.cxx:49:53: warning: unsafe pointer arithmetic [-Wunsafe-buffer-usage] const auto it = ourExtensions.find(name.c_str() + idx + 1); ~~~~~~~~~~~~~^~~~~ src/emucore/Bankswitch.cxx:49:45: warning: unsafe pointer arithmetic [-Wunsafe-buffer-usage] const auto it = ourExtensions.find(name.c_str() + idx + 1); ~~~~~^~~~~~~ src/emucore/Bankswitch.cxx:63:40: warning: unsafe pointer arithmetic [-Wunsafe-buffer-usage] const char* const e = name.c_str() + idx + 1; ~~~~~~~~~~~~~^~~~~ src/emucore/Bankswitch.cxx:63:32: warning: unsafe pointer arithmetic [-Wunsafe-buffer-usage] const char* const e = name.c_str() + idx + 1; ~~~~~^~~~~~~ 9 warnings generated. mkdir -p -p src/emucore/.deps mkdir -p -p out/src/emucore c++ -MMD -MF "src/emucore/.deps/Booster.d" -MQ "out/src/emucore/Booster.o" -MP -O2 -pipe -I/usr/X11R6/include -I/usr/local/include -x c++ -Wall -Wextra -Wno-unused-parameter -Wno-multichar -Wunused -Woverloaded-virtual -Wnon-virtual-dtor -std=c++17 -Weverything -Wno-c++98-compat-pedantic -Wno-unknown-warning-option -Wno-switch-enum -Wno-conversion -Wno-covered-switch-default -Wno-inconsistent-missing-destructor-override -Wno-float-equal -Wno-exit-time-destructors -Wno-global-constructors -Wno-weak-vtables -Wno-four-char-constants -Wno-padded -Wno-reserved-identifier -Wno-duplicate-enum -fomit-frame-pointer -DSDL_SUPPORT -D_GLIBCXX_USE_CXX11_ABI=1 -DUNIX -DBSPF_UNIX -DGUI_SUPPORT -DWINDOWED_SUPPORT -DSOUND_SUPPORT -DDEBUGGER_SUPPORT -DJOYSTICK_SUPPORT -DCHEATCODE_SUPPORT -DHTTP_LIB_SUPPORT -DPNG_SUPPORT -DZIP_SUPPORT -Isrc/emucore -Isrc/common -Isrc/common/tv_filters -Isrc/emucore/tia -Isrc/emucore/tia/frame-manager -Isrc/json -Isrc/common/repository/sqlite -I/usr/local/include -I/usr/local/include/SDL2 -I/usr/X11R6/include -D_REENTRANT -I/usr/X11R6/include -Isrc/unix -Isrc/gui -Isrc/debugger -Isrc/debugger/gui -Isrc/yacc -Isrc/cheat -Isrc/httplib -c src/emucore/Booster.cxx -o out/src/emucore/Booster.o In file included from src/emucore/Booster.cxx:18: In file included from src/emucore/Booster.hxx:21: In file included from src/emucore/Joystick.hxx:21: In file included from src/emucore/Control.hxx:28: src/common/bspf.hxx:245:37: warning: unsafe pointer arithmetic [-Wunsafe-buffer-usage] const auto pos = std::search(s1.cbegin()+startpos, s1.cend(), ~~~^~~~~~~~ src/common/bspf.hxx:249:56: warning: unsafe pointer arithmetic [-Wunsafe-buffer-usage] return pos == s1.cend() ? string::npos : pos - (s1.cbegin()+startpos); ~~~^~~~~~~~ 2 warnings generated. mkdir -p -p src/emucore/.deps mkdir -p -p out/src/emucore c++ -MMD -MF "src/emucore/.deps/Cart.d" -MQ "out/src/emucore/Cart.o" -MP -O2 -pipe -I/usr/X11R6/include -I/usr/local/include -x c++ -Wall -Wextra -Wno-unused-parameter -Wno-multichar -Wunused -Woverloaded-virtual -Wnon-virtual-dtor -std=c++17 -Weverything -Wno-c++98-compat-pedantic -Wno-unknown-warning-option -Wno-switch-enum -Wno-conversion -Wno-covered-switch-default -Wno-inconsistent-missing-destructor-override -Wno-float-equal -Wno-exit-time-destructors -Wno-global-constructors -Wno-weak-vtables -Wno-four-char-constants -Wno-padded -Wno-reserved-identifier -Wno-duplicate-enum -fomit-frame-pointer -DSDL_SUPPORT -D_GLIBCXX_USE_CXX11_ABI=1 -DUNIX -DBSPF_UNIX -DGUI_SUPPORT -DWINDOWED_SUPPORT -DSOUND_SUPPORT -DDEBUGGER_SUPPORT -DJOYSTICK_SUPPORT -DCHEATCODE_SUPPORT -DHTTP_LIB_SUPPORT -DPNG_SUPPORT -DZIP_SUPPORT -Isrc/emucore -Isrc/common -Isrc/common/tv_filters -Isrc/emucore/tia -Isrc/emucore/tia/frame-manager -Isrc/json -Isrc/common/repository/sqlite -I/usr/local/include -I/usr/local/include/SDL2 -I/usr/X11R6/include -D_REENTRANT -I/usr/X11R6/include -Isrc/unix -Isrc/gui -Isrc/debugger -Isrc/debugger/gui -Isrc/yacc -Isrc/cheat -Isrc/httplib -c src/emucore/Cart.cxx -o out/src/emucore/Cart.o In file included from src/emucore/Cart.cxx:18: In file included from src/emucore/FSNode.hxx:23: src/common/bspf.hxx:245:37: warning: unsafe pointer arithmetic [-Wunsafe-buffer-usage] const auto pos = std::search(s1.cbegin()+startpos, s1.cend(), ~~~^~~~~~~~ src/common/bspf.hxx:249:56: warning: unsafe pointer arithmetic [-Wunsafe-buffer-usage] return pos == s1.cend() ? string::npos : pos - (s1.cbegin()+startpos); ~~~^~~~~~~~ In file included from src/emucore/Cart.cxx:18: src/emucore/FSNode.hxx:513:31: warning: unsafe pointer arithmetic [-Wunsafe-buffer-usage] const char* cur = start + str.size() - 2; ~~~~~~^~~~~~~~~~~~ src/emucore/FSNode.hxx:512:19: warning: 'start' is an unsafe pointer used for buffer access [-Wunsafe-buffer-usage] const char* start = str.c_str(); ~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~ src/emucore/FSNode.hxx:513:25: note: used in pointer arithmetic here const char* cur = start + str.size() - 2; ^~~~~ src/emucore/FSNode.hxx:513:19: warning: 'cur' is an unsafe pointer used for buffer access [-Wunsafe-buffer-usage] const char* cur = start + str.size() - 2; ~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~ src/emucore/FSNode.hxx:518:14: note: used in pointer arithmetic here return cur + 1; ^~~ src/emucore/FSNode.hxx:516:11: note: used in pointer arithmetic here --cur; ^~~ In file included from src/emucore/Cart.cxx:23: In file included from src/debugger/Debugger.hxx:48: In file included from src/gui/DialogContainer.hxx:26: In file included from src/common/StellaKeys.hxx:22: In file included from src/common/SDL_lib.hxx:34: In file included from /usr/local/include/SDL2/SDL.h:32: In file included from /usr/local/include/SDL2/SDL_main.h:25: /usr/local/include/SDL2/SDL_stdinc.h:544:13: warning: '_p' is an unsafe pointer used for buffer access [-Wunsafe-buffer-usage] Uint32 *_p = SDL_static_cast(Uint32 *, dst); ~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /usr/local/include/SDL2/SDL_stdinc.h:550:26: note: used in pointer arithmetic here case 0: do { *_p++ = _val; SDL_FALLTHROUGH; ^~ /usr/local/include/SDL2/SDL_stdinc.h:551:26: note: used in pointer arithmetic here case 3: *_p++ = _val; SDL_FALLTHROUGH; ^~ /usr/local/include/SDL2/SDL_stdinc.h:552:26: note: used in pointer arithmetic here case 2: *_p++ = _val; SDL_FALLTHROUGH; ^~ /usr/local/include/SDL2/SDL_stdinc.h:553:26: note: used in pointer arithmetic here case 1: *_p++ = _val; ^~ src/emucore/Cart.cxx:223:38: warning: 'arr' is an unsafe pointer used for buffer access [-Wunsafe-buffer-usage] void Cartridge::initializeRAM(uInt8* arr, size_t size, uInt8 val) const ~~~~~~~^~~ src/emucore/Cart.cxx:227:7: note: used in buffer access here arr[i] = mySystem->randGenerator().next(); ^~~ 7 warnings generated. mkdir -p -p src/emucore/.deps mkdir -p -p out/src/emucore c++ -MMD -MF "src/emucore/.deps/CartARM.d" -MQ "out/src/emucore/CartARM.o" -MP -O2 -pipe -I/usr/X11R6/include -I/usr/local/include -x c++ -Wall -Wextra -Wno-unused-parameter -Wno-multichar -Wunused -Woverloaded-virtual -Wnon-virtual-dtor -std=c++17 -Weverything -Wno-c++98-compat-pedantic -Wno-unknown-warning-option -Wno-switch-enum -Wno-conversion -Wno-covered-switch-default -Wno-inconsistent-missing-destructor-override -Wno-float-equal -Wno-exit-time-destructors -Wno-global-constructors -Wno-weak-vtables -Wno-four-char-constants -Wno-padded -Wno-reserved-identifier -Wno-duplicate-enum -fomit-frame-pointer -DSDL_SUPPORT -D_GLIBCXX_USE_CXX11_ABI=1 -DUNIX -DBSPF_UNIX -DGUI_SUPPORT -DWINDOWED_SUPPORT -DSOUND_SUPPORT -DDEBUGGER_SUPPORT -DJOYSTICK_SUPPORT -DCHEATCODE_SUPPORT -DHTTP_LIB_SUPPORT -DPNG_SUPPORT -DZIP_SUPPORT -Isrc/emucore -Isrc/common -Isrc/common/tv_filters -Isrc/emucore/tia -Isrc/emucore/tia/frame-manager -Isrc/json -Isrc/common/repository/sqlite -I/usr/local/include -I/usr/local/include/SDL2 -I/usr/X11R6/include -D_REENTRANT -I/usr/X11R6/include -Isrc/unix -Isrc/gui -Isrc/debugger -Isrc/debugger/gui -Isrc/yacc -Isrc/cheat -Isrc/httplib -c src/emucore/CartARM.cxx -o out/src/emucore/CartARM.o In file included from src/emucore/CartARM.cxx:18: In file included from src/emucore/System.hxx:26: src/common/bspf.hxx:245:37: warning: unsafe pointer arithmetic [-Wunsafe-buffer-usage] const auto pos = std::search(s1.cbegin()+startpos, s1.cend(), ~~~^~~~~~~~ src/common/bspf.hxx:249:56: warning: unsafe pointer arithmetic [-Wunsafe-buffer-usage] return pos == s1.cend() ? string::npos : pos - (s1.cbegin()+startpos); ~~~^~~~~~~~ 2 warnings generated. mkdir -p -p src/emucore/.deps mkdir -p -p out/src/emucore c++ -MMD -MF "src/emucore/.deps/CartCreator.d" -MQ "out/src/emucore/CartCreator.o" -MP -O2 -pipe -I/usr/X11R6/include -I/usr/local/include -x c++ -Wall -Wextra -Wno-unused-parameter -Wno-multichar -Wunused -Woverloaded-virtual -Wnon-virtual-dtor -std=c++17 -Weverything -Wno-c++98-compat-pedantic -Wno-unknown-warning-option -Wno-switch-enum -Wno-conversion -Wno-covered-switch-default -Wno-inconsistent-missing-destructor-override -Wno-float-equal -Wno-exit-time-destructors -Wno-global-constructors -Wno-weak-vtables -Wno-four-char-constants -Wno-padded -Wno-reserved-identifier -Wno-duplicate-enum -fomit-frame-pointer -DSDL_SUPPORT -D_GLIBCXX_USE_CXX11_ABI=1 -DUNIX -DBSPF_UNIX -DGUI_SUPPORT -DWINDOWED_SUPPORT -DSOUND_SUPPORT -DDEBUGGER_SUPPORT -DJOYSTICK_SUPPORT -DCHEATCODE_SUPPORT -DHTTP_LIB_SUPPORT -DPNG_SUPPORT -DZIP_SUPPORT -Isrc/emucore -Isrc/common -Isrc/common/tv_filters -Isrc/emucore/tia -Isrc/emucore/tia/frame-manager -Isrc/json -Isrc/common/repository/sqlite -I/usr/local/include -I/usr/local/include/SDL2 -I/usr/X11R6/include -D_REENTRANT -I/usr/X11R6/include -Isrc/unix -Isrc/gui -Isrc/debugger -Isrc/debugger/gui -Isrc/yacc -Isrc/cheat -Isrc/httplib -c src/emucore/CartCreator.cxx -o out/src/emucore/CartCreator.o In file included from src/emucore/CartCreator.cxx:18: src/common/bspf.hxx:245:37: warning: unsafe pointer arithmetic [-Wunsafe-buffer-usage] const auto pos = std::search(s1.cbegin()+startpos, s1.cend(), ~~~^~~~~~~~ src/common/bspf.hxx:249:56: warning: unsafe pointer arithmetic [-Wunsafe-buffer-usage] return pos == s1.cend() ? string::npos : pos - (s1.cbegin()+startpos); ~~~^~~~~~~~ In file included from src/emucore/CartCreator.cxx:20: In file included from src/emucore/Cart0840.hxx:22: In file included from src/emucore/CartEnhanced.hxx:27: In file included from src/debugger/gui/CartEnhancedWidget.hxx:31: In file included from src/debugger/gui/CartDebugWidget.hxx:30: In file included from src/gui/Widget.hxx:33: In file included from src/common/StellaKeys.hxx:22: In file included from src/common/SDL_lib.hxx:34: In file included from /usr/local/include/SDL2/SDL.h:32: In file included from /usr/local/include/SDL2/SDL_main.h:25: /usr/local/include/SDL2/SDL_stdinc.h:544:13: warning: '_p' is an unsafe pointer used for buffer access [-Wunsafe-buffer-usage] Uint32 *_p = SDL_static_cast(Uint32 *, dst); ~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /usr/local/include/SDL2/SDL_stdinc.h:550:26: note: used in pointer arithmetic here case 0: do { *_p++ = _val; SDL_FALLTHROUGH; ^~ /usr/local/include/SDL2/SDL_stdinc.h:553:26: note: used in pointer arithmetic here case 1: *_p++ = _val; ^~ /usr/local/include/SDL2/SDL_stdinc.h:551:26: note: used in pointer arithmetic here case 3: *_p++ = _val; SDL_FALLTHROUGH; ^~ /usr/local/include/SDL2/SDL_stdinc.h:552:26: note: used in pointer arithmetic here case 2: *_p++ = _val; SDL_FALLTHROUGH; ^~ In file included from src/emucore/CartCreator.cxx:69: In file included from src/emucore/CartDetector.hxx:21: In file included from src/emucore/Bankswitch.hxx:23: src/emucore/FSNode.hxx:513:31: warning: unsafe pointer arithmetic [-Wunsafe-buffer-usage] const char* cur = start + str.size() - 2; ~~~~~~^~~~~~~~~~~~ src/emucore/FSNode.hxx:512:19: warning: 'start' is an unsafe pointer used for buffer access [-Wunsafe-buffer-usage] const char* start = str.c_str(); ~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~ src/emucore/FSNode.hxx:513:25: note: used in pointer arithmetic here const char* cur = start + str.size() - 2; ^~~~~ src/emucore/FSNode.hxx:513:19: warning: 'cur' is an unsafe pointer used for buffer access [-Wunsafe-buffer-usage] const char* cur = start + str.size() - 2; ~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~ src/emucore/FSNode.hxx:518:14: note: used in pointer arithmetic here return cur + 1; ^~~ src/emucore/FSNode.hxx:516:11: note: used in pointer arithmetic here --cur; ^~~ src/emucore/CartCreator.cxx:237:21: warning: unsafe pointer arithmetic [-Wunsafe-buffer-usage] std::copy_n(image.get()+i*size, size, slice.get()); ~~~~~~^~~~~ 7 warnings generated. mkdir -p -p src/emucore/.deps mkdir -p -p out/src/emucore c++ -MMD -MF "src/emucore/.deps/CartDetector.d" -MQ "out/src/emucore/CartDetector.o" -MP -O2 -pipe -I/usr/X11R6/include -I/usr/local/include -x c++ -Wall -Wextra -Wno-unused-parameter -Wno-multichar -Wunused -Woverloaded-virtual -Wnon-virtual-dtor -std=c++17 -Weverything -Wno-c++98-compat-pedantic -Wno-unknown-warning-option -Wno-switch-enum -Wno-conversion -Wno-covered-switch-default -Wno-inconsistent-missing-destructor-override -Wno-float-equal -Wno-exit-time-destructors -Wno-global-constructors -Wno-weak-vtables -Wno-four-char-constants -Wno-padded -Wno-reserved-identifier -Wno-duplicate-enum -fomit-frame-pointer -DSDL_SUPPORT -D_GLIBCXX_USE_CXX11_ABI=1 -DUNIX -DBSPF_UNIX -DGUI_SUPPORT -DWINDOWED_SUPPORT -DSOUND_SUPPORT -DDEBUGGER_SUPPORT -DJOYSTICK_SUPPORT -DCHEATCODE_SUPPORT -DHTTP_LIB_SUPPORT -DPNG_SUPPORT -DZIP_SUPPORT -Isrc/emucore -Isrc/common -Isrc/common/tv_filters -Isrc/emucore/tia -Isrc/emucore/tia/frame-manager -Isrc/json -Isrc/common/repository/sqlite -I/usr/local/include -I/usr/local/include/SDL2 -I/usr/X11R6/include -D_REENTRANT -I/usr/X11R6/include -Isrc/unix -Isrc/gui -Isrc/debugger -Isrc/debugger/gui -Isrc/yacc -Isrc/cheat -Isrc/httplib -c src/emucore/CartDetector.cxx -o out/src/emucore/CartDetector.o In file included from src/emucore/CartDetector.cxx:18: src/common/bspf.hxx:245:37: warning: unsafe pointer arithmetic [-Wunsafe-buffer-usage] const auto pos = std::search(s1.cbegin()+startpos, s1.cend(), ~~~^~~~~~~~ src/common/bspf.hxx:249:56: warning: unsafe pointer arithmetic [-Wunsafe-buffer-usage] return pos == s1.cend() ? string::npos : pos - (s1.cbegin()+startpos); ~~~^~~~~~~~ In file included from src/emucore/CartDetector.cxx:21: In file included from src/emucore/CartDetector.hxx:21: In file included from src/emucore/Bankswitch.hxx:23: src/emucore/FSNode.hxx:513:31: warning: unsafe pointer arithmetic [-Wunsafe-buffer-usage] const char* cur = start + str.size() - 2; ~~~~~~^~~~~~~~~~~~ src/emucore/FSNode.hxx:512:19: warning: 'start' is an unsafe pointer used for buffer access [-Wunsafe-buffer-usage] const char* start = str.c_str(); ~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~ src/emucore/FSNode.hxx:513:25: note: used in pointer arithmetic here const char* cur = start + str.size() - 2; ^~~~~ src/emucore/FSNode.hxx:513:19: warning: 'cur' is an unsafe pointer used for buffer access [-Wunsafe-buffer-usage] const char* cur = start + str.size() - 2; ~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~ src/emucore/FSNode.hxx:518:14: note: used in pointer arithmetic here return cur + 1; ^~~ src/emucore/FSNode.hxx:516:11: note: used in pointer arithmetic here --cur; ^~~ src/emucore/CartDetector.cxx:39:59: warning: unsafe pointer arithmetic [-Wunsafe-buffer-usage] (size == 4_KB && std::memcmp(image.get(), image.get() + 2_KB, 2_KB) == 0)) ~~~~~~^~~~~ src/emucore/CartDetector.cxx:66:44: warning: unsafe pointer arithmetic [-Wunsafe-buffer-usage] else if(std::memcmp(image.get(), image.get() + 4_KB, 4_KB) == 0) ~~~~~~^~~~~ src/emucore/CartDetector.cxx:57:28: warning: 'signature' is an unsafe buffer that does not perform bounds checks [-Wunsafe-buffer-usage] static constexpr uInt8 signature[2][3] = { ~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~ src/emucore/CartDetector.cxx:62:49: note: used in buffer access here searchForBytes(image, size, signature[1], 3, 2); ^~~~~~~~~ src/emucore/CartDetector.cxx:266:48: warning: 'image' is an unsafe pointer used for buffer access [-Wunsafe-buffer-usage] bool CartDetector::searchForBytes(const uInt8* image, size_t imagesize, ~~~~~~~~~~~~~^~~~~ src/emucore/CartDetector.cxx:278:10: note: used in buffer access here if(image[i + j] != signature[j]) ^~~~~ src/emucore/CartDetector.cxx:267:48: warning: 'signature' is an unsafe pointer used for buffer access [-Wunsafe-buffer-usage] const uInt8* signature, uInt32 sigsize, ~~~~~~~~~~~~~^~~~~~~~~ src/emucore/CartDetector.cxx:278:26: note: used in buffer access here if(image[i + j] != signature[j]) ^~~~~~~~~ src/emucore/CartDetector.cxx:297:16: warning: 'ptr' is an unsafe pointer used for buffer access [-Wunsafe-buffer-usage] const uInt8* ptr = image.get(); ~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~ src/emucore/CartDetector.cxx:303:5: note: used in pointer arithmetic here ptr += 4_KB; ^~~ src/emucore/CartDetector.cxx:300:25: note: used in pointer arithmetic here if(std::memcmp(ptr, ptr + 128, 128) != 0) ^~~ src/emucore/CartDetector.cxx:314:26: warning: 'signature' is an unsafe buffer that does not perform bounds checks [-Wunsafe-buffer-usage] static constexpr uInt8 signature[2][4] = { ~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~ src/emucore/CartDetector.cxx:321:64: note: used in buffer access here return searchForBytes(image, std::min(size, 1_KB), signature[1], 4); ^~~~~~~~~ src/emucore/CartDetector.cxx:329:26: warning: 'signature1' is an unsafe buffer that does not perform bounds checks [-Wunsafe-buffer-usage] static constexpr uInt8 signature1[3][3] = { ~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~ src/emucore/CartDetector.cxx:335:36: note: used in buffer access here if(searchForBytes(image, size, signature1[i], 3, 2)) ^~~~~~~~~~ src/emucore/CartDetector.cxx:338:26: warning: 'signature2' is an unsafe buffer that does not perform bounds checks [-Wunsafe-buffer-usage] static constexpr uInt8 signature2[2][4] = { ~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~ src/emucore/CartDetector.cxx:343:36: note: used in buffer access here if(searchForBytes(image, size, signature2[i], 4, 2)) ^~~~~~~~~~ src/emucore/CartDetector.cxx:355:26: warning: 'signature' is an unsafe buffer that does not perform bounds checks [-Wunsafe-buffer-usage] static constexpr uInt8 signature[4][3] = { ~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~ src/emucore/CartDetector.cxx:362:36: note: used in buffer access here if(searchForBytes(image, size, signature[i], 3)) ^~~~~~~~~ src/emucore/CartDetector.cxx:453:32: warning: unsafe pointer arithmetic [-Wunsafe-buffer-usage] if(searchForBytes(image.get()+size-8, 8, bf, 4)) ~~~~~~~~~~~^~~~~ src/emucore/CartDetector.cxx:453:27: warning: unsafe pointer arithmetic [-Wunsafe-buffer-usage] if(searchForBytes(image.get()+size-8, 8, bf, 4)) ~~~~~~^~~~~ src/emucore/CartDetector.cxx:458:37: warning: unsafe pointer arithmetic [-Wunsafe-buffer-usage] else if(searchForBytes(image.get()+size-8, 8, bfsc, 4)) ~~~~~~~~~~~^~~~~ src/emucore/CartDetector.cxx:458:32: warning: unsafe pointer arithmetic [-Wunsafe-buffer-usage] else if(searchForBytes(image.get()+size-8, 8, bfsc, 4)) ~~~~~~^~~~~ src/emucore/CartDetector.cxx:501:26: warning: 'signature' is an unsafe buffer that does not perform bounds checks [-Wunsafe-buffer-usage] static constexpr uInt8 signature[2][3] = { ~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~ src/emucore/CartDetector.cxx:508:40: note: used in buffer access here return searchForBytes(image, size, signature[1], 3); ^~~~~~~~~ src/emucore/CartDetector.cxx:520:32: warning: unsafe pointer arithmetic [-Wunsafe-buffer-usage] if(searchForBytes(image.get()+size-8, 8, df, 4)) ~~~~~~~~~~~^~~~~ src/emucore/CartDetector.cxx:520:27: warning: unsafe pointer arithmetic [-Wunsafe-buffer-usage] if(searchForBytes(image.get()+size-8, 8, df, 4)) ~~~~~~^~~~~ src/emucore/CartDetector.cxx:525:37: warning: unsafe pointer arithmetic [-Wunsafe-buffer-usage] else if(searchForBytes(image.get()+size-8, 8, dfsc, 4)) ~~~~~~~~~~~^~~~~ src/emucore/CartDetector.cxx:525:32: warning: unsafe pointer arithmetic [-Wunsafe-buffer-usage] else if(searchForBytes(image.get()+size-8, 8, dfsc, 4)) ~~~~~~^~~~~ src/emucore/CartDetector.cxx:553:26: warning: 'signature' is an unsafe buffer that does not perform bounds checks [-Wunsafe-buffer-usage] static constexpr uInt8 signature[8][3] = { ~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~ src/emucore/CartDetector.cxx:564:36: note: used in buffer access here if(searchForBytes(image, size, signature[i], 3)) ^~~~~~~~~ src/emucore/CartDetector.cxx:579:26: warning: 'signature' is an unsafe buffer that does not perform bounds checks [-Wunsafe-buffer-usage] static constexpr uInt8 signature[7][3] = { ~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~ src/emucore/CartDetector.cxx:589:36: note: used in buffer access here if(searchForBytes(image, size, signature[i], 3)) ^~~~~~~~~ src/emucore/CartDetector.cxx:602:26: warning: 'signature' is an unsafe buffer that does not perform bounds checks [-Wunsafe-buffer-usage] static constexpr uInt8 signature[3][3] = { ~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~ src/emucore/CartDetector.cxx:608:36: note: used in buffer access here if(searchForBytes(image, size, signature[i], 3)) ^~~~~~~~~ src/emucore/CartDetector.cxx:622:32: warning: unsafe pointer arithmetic [-Wunsafe-buffer-usage] if(searchForBytes(image.get()+size-8, 8, efef, 4)) ~~~~~~~~~~~^~~~~ src/emucore/CartDetector.cxx:622:27: warning: unsafe pointer arithmetic [-Wunsafe-buffer-usage] if(searchForBytes(image.get()+size-8, 8, efef, 4)) ~~~~~~^~~~~ src/emucore/CartDetector.cxx:627:37: warning: unsafe pointer arithmetic [-Wunsafe-buffer-usage] else if(searchForBytes(image.get()+size-8, 8, efsc, 4)) ~~~~~~~~~~~^~~~~ src/emucore/CartDetector.cxx:627:32: warning: unsafe pointer arithmetic [-Wunsafe-buffer-usage] else if(searchForBytes(image.get()+size-8, 8, efsc, 4)) ~~~~~~^~~~~ src/emucore/CartDetector.cxx:637:26: warning: 'signature' is an unsafe buffer that does not perform bounds checks [-Wunsafe-buffer-usage] static constexpr uInt8 signature[4][3] = { ~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~ src/emucore/CartDetector.cxx:645:36: note: used in buffer access here if(searchForBytes(image, size, signature[i], 3)) ^~~~~~~~~ src/emucore/CartDetector.cxx:682:26: warning: 'signature' is an unsafe buffer that does not perform bounds checks [-Wunsafe-buffer-usage] static constexpr uInt8 signature[3][6] = { ~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~ src/emucore/CartDetector.cxx:688:36: note: used in buffer access here if(searchForBytes(image, size, signature[i], 6)) ^~~~~~~~~ src/emucore/CartDetector.cxx:700:26: warning: 'signature' is an unsafe buffer that does not perform bounds checks [-Wunsafe-buffer-usage] static constexpr uInt8 signature[4][5] = { ~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~ src/emucore/CartDetector.cxx:707:36: note: used in buffer access here if(searchForBytes(image, size, signature[i], 5)) ^~~~~~~~~ src/emucore/CartDetector.cxx:757:26: warning: 'signature' is an unsafe buffer that does not perform bounds checks [-Wunsafe-buffer-usage] static constexpr uInt8 signature[2][3] = { ~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~ src/emucore/CartDetector.cxx:764:40: note: used in buffer access here return searchForBytes(image, size, signature[1], 3); ^~~~~~~~~ src/emucore/CartDetector.cxx:782:26: warning: 'signature' is an unsafe buffer that does not perform bounds checks [-Wunsafe-buffer-usage] static constexpr uInt8 signature[6][3] = { ~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~ src/emucore/CartDetector.cxx:791:36: note: used in buffer access here if(searchForBytes(image, size, signature[i], 3)) ^~~~~~~~~ src/emucore/CartDetector.cxx:811:26: warning: 'signature' is an unsafe buffer that does not perform bounds checks [-Wunsafe-buffer-usage] static constexpr uInt8 signature[6][3] = { ~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~ src/emucore/CartDetector.cxx:820:36: note: used in buffer access here if(searchForBytes(image, size, signature[i], 3)) ^~~~~~~~~ 37 warnings generated. mkdir -p -p src/emucore/.deps mkdir -p -p out/src/emucore c++ -MMD -MF "src/emucore/.deps/CartEnhanced.d" -MQ "out/src/emucore/CartEnhanced.o" -MP -O2 -pipe -I/usr/X11R6/include -I/usr/local/include -x c++ -Wall -Wextra -Wno-unused-parameter -Wno-multichar -Wunused -Woverloaded-virtual -Wnon-virtual-dtor -std=c++17 -Weverything -Wno-c++98-compat-pedantic -Wno-unknown-warning-option -Wno-switch-enum -Wno-conversion -Wno-covered-switch-default -Wno-inconsistent-missing-destructor-override -Wno-float-equal -Wno-exit-time-destructors -Wno-global-constructors -Wno-weak-vtables -Wno-four-char-constants -Wno-padded -Wno-reserved-identifier -Wno-duplicate-enum -fomit-frame-pointer -DSDL_SUPPORT -D_GLIBCXX_USE_CXX11_ABI=1 -DUNIX -DBSPF_UNIX -DGUI_SUPPORT -DWINDOWED_SUPPORT -DSOUND_SUPPORT -DDEBUGGER_SUPPORT -DJOYSTICK_SUPPORT -DCHEATCODE_SUPPORT -DHTTP_LIB_SUPPORT -DPNG_SUPPORT -DZIP_SUPPORT -Isrc/emucore -Isrc/common -Isrc/common/tv_filters -Isrc/emucore/tia -Isrc/emucore/tia/frame-manager -Isrc/json -Isrc/common/repository/sqlite -I/usr/local/include -I/usr/local/include/SDL2 -I/usr/X11R6/include -D_REENTRANT -I/usr/X11R6/include -Isrc/unix -Isrc/gui -Isrc/debugger -Isrc/debugger/gui -Isrc/yacc -Isrc/cheat -Isrc/httplib -c src/emucore/CartEnhanced.cxx -o out/src/emucore/CartEnhanced.o In file included from src/emucore/CartEnhanced.cxx:18: In file included from src/common/Logger.hxx:24: src/common/bspf.hxx:245:37: warning: unsafe pointer arithmetic [-Wunsafe-buffer-usage] const auto pos = std::search(s1.cbegin()+startpos, s1.cend(), ~~~^~~~~~~~ src/common/bspf.hxx:249:56: warning: unsafe pointer arithmetic [-Wunsafe-buffer-usage] return pos == s1.cend() ? string::npos : pos - (s1.cbegin()+startpos); ~~~^~~~~~~~ In file included from src/emucore/CartEnhanced.cxx:21: In file included from src/emucore/CartEnhanced.hxx:27: In file included from src/debugger/gui/CartEnhancedWidget.hxx:31: In file included from src/debugger/gui/CartDebugWidget.hxx:30: In file included from src/gui/Widget.hxx:33: In file included from src/common/StellaKeys.hxx:22: In file included from src/common/SDL_lib.hxx:34: In file included from /usr/local/include/SDL2/SDL.h:32: In file included from /usr/local/include/SDL2/SDL_main.h:25: /usr/local/include/SDL2/SDL_stdinc.h:544:13: warning: '_p' is an unsafe pointer used for buffer access [-Wunsafe-buffer-usage] Uint32 *_p = SDL_static_cast(Uint32 *, dst); ~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /usr/local/include/SDL2/SDL_stdinc.h:550:26: note: used in pointer arithmetic here case 0: do { *_p++ = _val; SDL_FALLTHROUGH; ^~ /usr/local/include/SDL2/SDL_stdinc.h:552:26: note: used in pointer arithmetic here case 2: *_p++ = _val; SDL_FALLTHROUGH; ^~ /usr/local/include/SDL2/SDL_stdinc.h:553:26: note: used in pointer arithmetic here case 1: *_p++ = _val; ^~ /usr/local/include/SDL2/SDL_stdinc.h:551:26: note: used in pointer arithmetic here case 3: *_p++ = _val; SDL_FALLTHROUGH; ^~ 3 warnings generated. mkdir -p -p src/emucore/.deps mkdir -p -p out/src/emucore c++ -MMD -MF "src/emucore/.deps/Cart0840.d" -MQ "out/src/emucore/Cart0840.o" -MP -O2 -pipe -I/usr/X11R6/include -I/usr/local/include -x c++ -Wall -Wextra -Wno-unused-parameter -Wno-multichar -Wunused -Woverloaded-virtual -Wnon-virtual-dtor -std=c++17 -Weverything -Wno-c++98-compat-pedantic -Wno-unknown-warning-option -Wno-switch-enum -Wno-conversion -Wno-covered-switch-default -Wno-inconsistent-missing-destructor-override -Wno-float-equal -Wno-exit-time-destructors -Wno-global-constructors -Wno-weak-vtables -Wno-four-char-constants -Wno-padded -Wno-reserved-identifier -Wno-duplicate-enum -fomit-frame-pointer -DSDL_SUPPORT -D_GLIBCXX_USE_CXX11_ABI=1 -DUNIX -DBSPF_UNIX -DGUI_SUPPORT -DWINDOWED_SUPPORT -DSOUND_SUPPORT -DDEBUGGER_SUPPORT -DJOYSTICK_SUPPORT -DCHEATCODE_SUPPORT -DHTTP_LIB_SUPPORT -DPNG_SUPPORT -DZIP_SUPPORT -Isrc/emucore -Isrc/common -Isrc/common/tv_filters -Isrc/emucore/tia -Isrc/emucore/tia/frame-manager -Isrc/json -Isrc/common/repository/sqlite -I/usr/local/include -I/usr/local/include/SDL2 -I/usr/X11R6/include -D_REENTRANT -I/usr/X11R6/include -Isrc/unix -Isrc/gui -Isrc/debugger -Isrc/debugger/gui -Isrc/yacc -Isrc/cheat -Isrc/httplib -c src/emucore/Cart0840.cxx -o out/src/emucore/Cart0840.o In file included from src/emucore/Cart0840.cxx:18: In file included from src/emucore/System.hxx:26: src/common/bspf.hxx:245:37: warning: unsafe pointer arithmetic [-Wunsafe-buffer-usage] const auto pos = std::search(s1.cbegin()+startpos, s1.cend(), ~~~^~~~~~~~ src/common/bspf.hxx:249:56: warning: unsafe pointer arithmetic [-Wunsafe-buffer-usage] return pos == s1.cend() ? string::npos : pos - (s1.cbegin()+startpos); ~~~^~~~~~~~ In file included from src/emucore/Cart0840.cxx:19: In file included from src/emucore/Cart0840.hxx:22: In file included from src/emucore/CartEnhanced.hxx:27: In file included from src/debugger/gui/CartEnhancedWidget.hxx:31: In file included from src/debugger/gui/CartDebugWidget.hxx:30: In file included from src/gui/Widget.hxx:33: In file included from src/common/StellaKeys.hxx:22: In file included from src/common/SDL_lib.hxx:34: In file included from /usr/local/include/SDL2/SDL.h:32: In file included from /usr/local/include/SDL2/SDL_main.h:25: /usr/local/include/SDL2/SDL_stdinc.h:544:13: warning: '_p' is an unsafe pointer used for buffer access [-Wunsafe-buffer-usage] Uint32 *_p = SDL_static_cast(Uint32 *, dst); ~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /usr/local/include/SDL2/SDL_stdinc.h:550:26: note: used in pointer arithmetic here case 0: do { *_p++ = _val; SDL_FALLTHROUGH; ^~ /usr/local/include/SDL2/SDL_stdinc.h:551:26: note: used in pointer arithmetic here case 3: *_p++ = _val; SDL_FALLTHROUGH; ^~ /usr/local/include/SDL2/SDL_stdinc.h:552:26: note: used in pointer arithmetic here case 2: *_p++ = _val; SDL_FALLTHROUGH; ^~ /usr/local/include/SDL2/SDL_stdinc.h:553:26: note: used in pointer arithmetic here case 1: *_p++ = _val; ^~ 3 warnings generated. mkdir -p -p src/emucore/.deps mkdir -p -p out/src/emucore c++ -MMD -MF "src/emucore/.deps/Cart0FA0.d" -MQ "out/src/emucore/Cart0FA0.o" -MP -O2 -pipe -I/usr/X11R6/include -I/usr/local/include -x c++ -Wall -Wextra -Wno-unused-parameter -Wno-multichar -Wunused -Woverloaded-virtual -Wnon-virtual-dtor -std=c++17 -Weverything -Wno-c++98-compat-pedantic -Wno-unknown-warning-option -Wno-switch-enum -Wno-conversion -Wno-covered-switch-default -Wno-inconsistent-missing-destructor-override -Wno-float-equal -Wno-exit-time-destructors -Wno-global-constructors -Wno-weak-vtables -Wno-four-char-constants -Wno-padded -Wno-reserved-identifier -Wno-duplicate-enum -fomit-frame-pointer -DSDL_SUPPORT -D_GLIBCXX_USE_CXX11_ABI=1 -DUNIX -DBSPF_UNIX -DGUI_SUPPORT -DWINDOWED_SUPPORT -DSOUND_SUPPORT -DDEBUGGER_SUPPORT -DJOYSTICK_SUPPORT -DCHEATCODE_SUPPORT -DHTTP_LIB_SUPPORT -DPNG_SUPPORT -DZIP_SUPPORT -Isrc/emucore -Isrc/common -Isrc/common/tv_filters -Isrc/emucore/tia -Isrc/emucore/tia/frame-manager -Isrc/json -Isrc/common/repository/sqlite -I/usr/local/include -I/usr/local/include/SDL2 -I/usr/X11R6/include -D_REENTRANT -I/usr/X11R6/include -Isrc/unix -Isrc/gui -Isrc/debugger -Isrc/debugger/gui -Isrc/yacc -Isrc/cheat -Isrc/httplib -c src/emucore/Cart0FA0.cxx -o out/src/emucore/Cart0FA0.o In file included from src/emucore/Cart0FA0.cxx:18: In file included from src/emucore/System.hxx:26: src/common/bspf.hxx:245:37: warning: unsafe pointer arithmetic [-Wunsafe-buffer-usage] const auto pos = std::search(s1.cbegin()+startpos, s1.cend(), ~~~^~~~~~~~ src/common/bspf.hxx:249:56: warning: unsafe pointer arithmetic [-Wunsafe-buffer-usage] return pos == s1.cend() ? string::npos : pos - (s1.cbegin()+startpos); ~~~^~~~~~~~ In file included from src/emucore/Cart0FA0.cxx:19: In file included from src/emucore/Cart0FA0.hxx:22: In file included from src/emucore/CartEnhanced.hxx:27: In file included from src/debugger/gui/CartEnhancedWidget.hxx:31: In file included from src/debugger/gui/CartDebugWidget.hxx:30: In file included from src/gui/Widget.hxx:33: In file included from src/common/StellaKeys.hxx:22: In file included from src/common/SDL_lib.hxx:34: In file included from /usr/local/include/SDL2/SDL.h:32: In file included from /usr/local/include/SDL2/SDL_main.h:25: /usr/local/include/SDL2/SDL_stdinc.h:544:13: warning: '_p' is an unsafe pointer used for buffer access [-Wunsafe-buffer-usage] Uint32 *_p = SDL_static_cast(Uint32 *, dst); ~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /usr/local/include/SDL2/SDL_stdinc.h:551:26: note: used in pointer arithmetic here case 3: *_p++ = _val; SDL_FALLTHROUGH; ^~ /usr/local/include/SDL2/SDL_stdinc.h:552:26: note: used in pointer arithmetic here case 2: *_p++ = _val; SDL_FALLTHROUGH; ^~ /usr/local/include/SDL2/SDL_stdinc.h:550:26: note: used in pointer arithmetic here case 0: do { *_p++ = _val; SDL_FALLTHROUGH; ^~ /usr/local/include/SDL2/SDL_stdinc.h:553:26: note: used in pointer arithmetic here case 1: *_p++ = _val; ^~ 3 warnings generated. mkdir -p -p src/emucore/.deps mkdir -p -p out/src/emucore c++ -MMD -MF "src/emucore/.deps/Cart2K.d" -MQ "out/src/emucore/Cart2K.o" -MP -O2 -pipe -I/usr/X11R6/include -I/usr/local/include -x c++ -Wall -Wextra -Wno-unused-parameter -Wno-multichar -Wunused -Woverloaded-virtual -Wnon-virtual-dtor -std=c++17 -Weverything -Wno-c++98-compat-pedantic -Wno-unknown-warning-option -Wno-switch-enum -Wno-conversion -Wno-covered-switch-default -Wno-inconsistent-missing-destructor-override -Wno-float-equal -Wno-exit-time-destructors -Wno-global-constructors -Wno-weak-vtables -Wno-four-char-constants -Wno-padded -Wno-reserved-identifier -Wno-duplicate-enum -fomit-frame-pointer -DSDL_SUPPORT -D_GLIBCXX_USE_CXX11_ABI=1 -DUNIX -DBSPF_UNIX -DGUI_SUPPORT -DWINDOWED_SUPPORT -DSOUND_SUPPORT -DDEBUGGER_SUPPORT -DJOYSTICK_SUPPORT -DCHEATCODE_SUPPORT -DHTTP_LIB_SUPPORT -DPNG_SUPPORT -DZIP_SUPPORT -Isrc/emucore -Isrc/common -Isrc/common/tv_filters -Isrc/emucore/tia -Isrc/emucore/tia/frame-manager -Isrc/json -Isrc/common/repository/sqlite -I/usr/local/include -I/usr/local/include/SDL2 -I/usr/X11R6/include -D_REENTRANT -I/usr/X11R6/include -Isrc/unix -Isrc/gui -Isrc/debugger -Isrc/debugger/gui -Isrc/yacc -Isrc/cheat -Isrc/httplib -c src/emucore/Cart2K.cxx -o out/src/emucore/Cart2K.o In file included from src/emucore/Cart2K.cxx:18: In file included from src/emucore/System.hxx:26: src/common/bspf.hxx:245:37: warning: unsafe pointer arithmetic [-Wunsafe-buffer-usage] const auto pos = std::search(s1.cbegin()+startpos, s1.cend(), ~~~^~~~~~~~ src/common/bspf.hxx:249:56: warning: unsafe pointer arithmetic [-Wunsafe-buffer-usage] return pos == s1.cend() ? string::npos : pos - (s1.cbegin()+startpos); ~~~^~~~~~~~ In file included from src/emucore/Cart2K.cxx:19: In file included from src/emucore/Cart2K.hxx:24: In file included from src/emucore/CartEnhanced.hxx:27: In file included from src/debugger/gui/CartEnhancedWidget.hxx:31: In file included from src/debugger/gui/CartDebugWidget.hxx:30: In file included from src/gui/Widget.hxx:33: In file included from src/common/StellaKeys.hxx:22: In file included from src/common/SDL_lib.hxx:34: In file included from /usr/local/include/SDL2/SDL.h:32: In file included from /usr/local/include/SDL2/SDL_main.h:25: /usr/local/include/SDL2/SDL_stdinc.h:544:13: warning: '_p' is an unsafe pointer used for buffer access [-Wunsafe-buffer-usage] Uint32 *_p = SDL_static_cast(Uint32 *, dst); ~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /usr/local/include/SDL2/SDL_stdinc.h:553:26: note: used in pointer arithmetic here case 1: *_p++ = _val; ^~ /usr/local/include/SDL2/SDL_stdinc.h:551:26: note: used in pointer arithmetic here case 3: *_p++ = _val; SDL_FALLTHROUGH; ^~ /usr/local/include/SDL2/SDL_stdinc.h:552:26: note: used in pointer arithmetic here case 2: *_p++ = _val; SDL_FALLTHROUGH; ^~ /usr/local/include/SDL2/SDL_stdinc.h:550:26: note: used in pointer arithmetic here case 0: do { *_p++ = _val; SDL_FALLTHROUGH; ^~ src/emucore/Cart2K.cxx:47:48: warning: unsafe pointer arithmetic [-Wunsafe-buffer-usage] std::copy_n(image.get(), mySize, myImage.get() + i); ~~~~~~~~^~~~~ 4 warnings generated. mkdir -p -p src/emucore/.deps mkdir -p -p out/src/emucore c++ -MMD -MF "src/emucore/.deps/Cart3E.d" -MQ "out/src/emucore/Cart3E.o" -MP -O2 -pipe -I/usr/X11R6/include -I/usr/local/include -x c++ -Wall -Wextra -Wno-unused-parameter -Wno-multichar -Wunused -Woverloaded-virtual -Wnon-virtual-dtor -std=c++17 -Weverything -Wno-c++98-compat-pedantic -Wno-unknown-warning-option -Wno-switch-enum -Wno-conversion -Wno-covered-switch-default -Wno-inconsistent-missing-destructor-override -Wno-float-equal -Wno-exit-time-destructors -Wno-global-constructors -Wno-weak-vtables -Wno-four-char-constants -Wno-padded -Wno-reserved-identifier -Wno-duplicate-enum -fomit-frame-pointer -DSDL_SUPPORT -D_GLIBCXX_USE_CXX11_ABI=1 -DUNIX -DBSPF_UNIX -DGUI_SUPPORT -DWINDOWED_SUPPORT -DSOUND_SUPPORT -DDEBUGGER_SUPPORT -DJOYSTICK_SUPPORT -DCHEATCODE_SUPPORT -DHTTP_LIB_SUPPORT -DPNG_SUPPORT -DZIP_SUPPORT -Isrc/emucore -Isrc/common -Isrc/common/tv_filters -Isrc/emucore/tia -Isrc/emucore/tia/frame-manager -Isrc/json -Isrc/common/repository/sqlite -I/usr/local/include -I/usr/local/include/SDL2 -I/usr/X11R6/include -D_REENTRANT -I/usr/X11R6/include -Isrc/unix -Isrc/gui -Isrc/debugger -Isrc/debugger/gui -Isrc/yacc -Isrc/cheat -Isrc/httplib -c src/emucore/Cart3E.cxx -o out/src/emucore/Cart3E.o In file included from src/emucore/Cart3E.cxx:18: In file included from src/emucore/System.hxx:26: src/common/bspf.hxx:245:37: warning: unsafe pointer arithmetic [-Wunsafe-buffer-usage] const auto pos = std::search(s1.cbegin()+startpos, s1.cend(), ~~~^~~~~~~~ src/common/bspf.hxx:249:56: warning: unsafe pointer arithmetic [-Wunsafe-buffer-usage] return pos == s1.cend() ? string::npos : pos - (s1.cbegin()+startpos); ~~~^~~~~~~~ In file included from src/emucore/Cart3E.cxx:19: In file included from src/emucore/tia/TIA.hxx:37: src/emucore/tia/Missile.hxx:170:7: warning: unsafe buffer access [-Wunsafe-buffer-usage] if (myDecodes[myCounter] && !myResmp) { ^~~~~~~~~ src/emucore/tia/Missile.hxx:173:14: warning: unsafe buffer access [-Wunsafe-buffer-usage] myCopy = myDecodes[myCounter]; ^~~~~~~~~ In file included from src/emucore/Cart3E.cxx:19: In file included from src/emucore/tia/TIA.hxx:38: src/emucore/tia/Player.hxx:186:7: warning: unsafe buffer access [-Wunsafe-buffer-usage] if (myDecodes[myCounter]) { ^~~~~~~~~ src/emucore/tia/Player.hxx:190:14: warning: unsafe buffer access [-Wunsafe-buffer-usage] myCopy = myDecodes[myCounter]; ^~~~~~~~~ In file included from src/emucore/Cart3E.cxx:20: In file included from src/emucore/Cart3E.hxx:24: In file included from src/emucore/CartEnhanced.hxx:27: In file included from src/debugger/gui/CartEnhancedWidget.hxx:31: In file included from src/debugger/gui/CartDebugWidget.hxx:30: In file included from src/gui/Widget.hxx:33: In file included from src/common/StellaKeys.hxx:22: In file included from src/common/SDL_lib.hxx:34: In file included from /usr/local/include/SDL2/SDL.h:32: In file included from /usr/local/include/SDL2/SDL_main.h:25: /usr/local/include/SDL2/SDL_stdinc.h:544:13: warning: '_p' is an unsafe pointer used for buffer access [-Wunsafe-buffer-usage] Uint32 *_p = SDL_static_cast(Uint32 *, dst); ~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /usr/local/include/SDL2/SDL_stdinc.h:550:26: note: used in pointer arithmetic here case 0: do { *_p++ = _val; SDL_FALLTHROUGH; ^~ /usr/local/include/SDL2/SDL_stdinc.h:552:26: note: used in pointer arithmetic here case 2: *_p++ = _val; SDL_FALLTHROUGH; ^~ /usr/local/include/SDL2/SDL_stdinc.h:551:26: note: used in pointer arithmetic here case 3: *_p++ = _val; SDL_FALLTHROUGH; ^~ /usr/local/include/SDL2/SDL_stdinc.h:553:26: note: used in pointer arithmetic here case 1: *_p++ = _val; ^~ 7 warnings generated. mkdir -p -p src/emucore/.deps mkdir -p -p out/src/emucore c++ -MMD -MF "src/emucore/.deps/Cart3EPlus.d" -MQ "out/src/emucore/Cart3EPlus.o" -MP -O2 -pipe -I/usr/X11R6/include -I/usr/local/include -x c++ -Wall -Wextra -Wno-unused-parameter -Wno-multichar -Wunused -Woverloaded-virtual -Wnon-virtual-dtor -std=c++17 -Weverything -Wno-c++98-compat-pedantic -Wno-unknown-warning-option -Wno-switch-enum -Wno-conversion -Wno-covered-switch-default -Wno-inconsistent-missing-destructor-override -Wno-float-equal -Wno-exit-time-destructors -Wno-global-constructors -Wno-weak-vtables -Wno-four-char-constants -Wno-padded -Wno-reserved-identifier -Wno-duplicate-enum -fomit-frame-pointer -DSDL_SUPPORT -D_GLIBCXX_USE_CXX11_ABI=1 -DUNIX -DBSPF_UNIX -DGUI_SUPPORT -DWINDOWED_SUPPORT -DSOUND_SUPPORT -DDEBUGGER_SUPPORT -DJOYSTICK_SUPPORT -DCHEATCODE_SUPPORT -DHTTP_LIB_SUPPORT -DPNG_SUPPORT -DZIP_SUPPORT -Isrc/emucore -Isrc/common -Isrc/common/tv_filters -Isrc/emucore/tia -Isrc/emucore/tia/frame-manager -Isrc/json -Isrc/common/repository/sqlite -I/usr/local/include -I/usr/local/include/SDL2 -I/usr/X11R6/include -D_REENTRANT -I/usr/X11R6/include -Isrc/unix -Isrc/gui -Isrc/debugger -Isrc/debugger/gui -Isrc/yacc -Isrc/cheat -Isrc/httplib -c src/emucore/Cart3EPlus.cxx -o out/src/emucore/Cart3EPlus.o In file included from src/emucore/Cart3EPlus.cxx:18: In file included from src/emucore/System.hxx:26: src/common/bspf.hxx:245:37: warning: unsafe pointer arithmetic [-Wunsafe-buffer-usage] const auto pos = std::search(s1.cbegin()+startpos, s1.cend(), ~~~^~~~~~~~ src/common/bspf.hxx:249:56: warning: unsafe pointer arithmetic [-Wunsafe-buffer-usage] return pos == s1.cend() ? string::npos : pos - (s1.cbegin()+startpos); ~~~^~~~~~~~ In file included from src/emucore/Cart3EPlus.cxx:19: In file included from src/emucore/tia/TIA.hxx:37: src/emucore/tia/Missile.hxx:170:7: warning: unsafe buffer access [-Wunsafe-buffer-usage] if (myDecodes[myCounter] && !myResmp) { ^~~~~~~~~ src/emucore/tia/Missile.hxx:173:14: warning: unsafe buffer access [-Wunsafe-buffer-usage] myCopy = myDecodes[myCounter]; ^~~~~~~~~ In file included from src/emucore/Cart3EPlus.cxx:19: In file included from src/emucore/tia/TIA.hxx:38: src/emucore/tia/Player.hxx:186:7: warning: unsafe buffer access [-Wunsafe-buffer-usage] if (myDecodes[myCounter]) { ^~~~~~~~~ src/emucore/tia/Player.hxx:190:14: warning: unsafe buffer access [-Wunsafe-buffer-usage] myCopy = myDecodes[myCounter]; ^~~~~~~~~ In file included from src/emucore/Cart3EPlus.cxx:20: In file included from src/emucore/Cart3EPlus.hxx:24: In file included from src/emucore/Cart3E.hxx:24: In file included from src/emucore/CartEnhanced.hxx:27: In file included from src/debugger/gui/CartEnhancedWidget.hxx:31: In file included from src/debugger/gui/CartDebugWidget.hxx:30: In file included from src/gui/Widget.hxx:33: In file included from src/common/StellaKeys.hxx:22: In file included from src/common/SDL_lib.hxx:34: In file included from /usr/local/include/SDL2/SDL.h:32: In file included from /usr/local/include/SDL2/SDL_main.h:25: /usr/local/include/SDL2/SDL_stdinc.h:544:13: warning: '_p' is an unsafe pointer used for buffer access [-Wunsafe-buffer-usage] Uint32 *_p = SDL_static_cast(Uint32 *, dst); ~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /usr/local/include/SDL2/SDL_stdinc.h:550:26: note: used in pointer arithmetic here case 0: do { *_p++ = _val; SDL_FALLTHROUGH; ^~ /usr/local/include/SDL2/SDL_stdinc.h:553:26: note: used in pointer arithmetic here case 1: *_p++ = _val; ^~ /usr/local/include/SDL2/SDL_stdinc.h:552:26: note: used in pointer arithmetic here case 2: *_p++ = _val; SDL_FALLTHROUGH; ^~ /usr/local/include/SDL2/SDL_stdinc.h:551:26: note: used in pointer arithmetic here case 3: *_p++ = _val; SDL_FALLTHROUGH; ^~ 7 warnings generated. mkdir -p -p src/emucore/.deps mkdir -p -p out/src/emucore c++ -MMD -MF "src/emucore/.deps/Cart3EX.d" -MQ "out/src/emucore/Cart3EX.o" -MP -O2 -pipe -I/usr/X11R6/include -I/usr/local/include -x c++ -Wall -Wextra -Wno-unused-parameter -Wno-multichar -Wunused -Woverloaded-virtual -Wnon-virtual-dtor -std=c++17 -Weverything -Wno-c++98-compat-pedantic -Wno-unknown-warning-option -Wno-switch-enum -Wno-conversion -Wno-covered-switch-default -Wno-inconsistent-missing-destructor-override -Wno-float-equal -Wno-exit-time-destructors -Wno-global-constructors -Wno-weak-vtables -Wno-four-char-constants -Wno-padded -Wno-reserved-identifier -Wno-duplicate-enum -fomit-frame-pointer -DSDL_SUPPORT -D_GLIBCXX_USE_CXX11_ABI=1 -DUNIX -DBSPF_UNIX -DGUI_SUPPORT -DWINDOWED_SUPPORT -DSOUND_SUPPORT -DDEBUGGER_SUPPORT -DJOYSTICK_SUPPORT -DCHEATCODE_SUPPORT -DHTTP_LIB_SUPPORT -DPNG_SUPPORT -DZIP_SUPPORT -Isrc/emucore -Isrc/common -Isrc/common/tv_filters -Isrc/emucore/tia -Isrc/emucore/tia/frame-manager -Isrc/json -Isrc/common/repository/sqlite -I/usr/local/include -I/usr/local/include/SDL2 -I/usr/X11R6/include -D_REENTRANT -I/usr/X11R6/include -Isrc/unix -Isrc/gui -Isrc/debugger -Isrc/debugger/gui -Isrc/yacc -Isrc/cheat -Isrc/httplib -c src/emucore/Cart3EX.cxx -o out/src/emucore/Cart3EX.o In file included from src/emucore/Cart3EX.cxx:18: In file included from src/emucore/Cart3EX.hxx:24: src/common/bspf.hxx:245:37: warning: unsafe pointer arithmetic [-Wunsafe-buffer-usage] const auto pos = std::search(s1.cbegin()+startpos, s1.cend(), ~~~^~~~~~~~ src/common/bspf.hxx:249:56: warning: unsafe pointer arithmetic [-Wunsafe-buffer-usage] return pos == s1.cend() ? string::npos : pos - (s1.cbegin()+startpos); ~~~^~~~~~~~ In file included from src/emucore/Cart3EX.cxx:18: In file included from src/emucore/Cart3EX.hxx:25: In file included from src/emucore/Cart3E.hxx:24: In file included from src/emucore/CartEnhanced.hxx:27: In file included from src/debugger/gui/CartEnhancedWidget.hxx:31: In file included from src/debugger/gui/CartDebugWidget.hxx:30: In file included from src/gui/Widget.hxx:33: In file included from src/common/StellaKeys.hxx:22: In file included from src/common/SDL_lib.hxx:34: In file included from /usr/local/include/SDL2/SDL.h:32: In file included from /usr/local/include/SDL2/SDL_main.h:25: /usr/local/include/SDL2/SDL_stdinc.h:544:13: warning: '_p' is an unsafe pointer used for buffer access [-Wunsafe-buffer-usage] Uint32 *_p = SDL_static_cast(Uint32 *, dst); ~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /usr/local/include/SDL2/SDL_stdinc.h:552:26: note: used in pointer arithmetic here case 2: *_p++ = _val; SDL_FALLTHROUGH; ^~ /usr/local/include/SDL2/SDL_stdinc.h:553:26: note: used in pointer arithmetic here case 1: *_p++ = _val; ^~ /usr/local/include/SDL2/SDL_stdinc.h:550:26: note: used in pointer arithmetic here case 0: do { *_p++ = _val; SDL_FALLTHROUGH; ^~ /usr/local/include/SDL2/SDL_stdinc.h:551:26: note: used in pointer arithmetic here case 3: *_p++ = _val; SDL_FALLTHROUGH; ^~ 3 warnings generated. mkdir -p -p src/emucore/.deps mkdir -p -p out/src/emucore c++ -MMD -MF "src/emucore/.deps/Cart3F.d" -MQ "out/src/emucore/Cart3F.o" -MP -O2 -pipe -I/usr/X11R6/include -I/usr/local/include -x c++ -Wall -Wextra -Wno-unused-parameter -Wno-multichar -Wunused -Woverloaded-virtual -Wnon-virtual-dtor -std=c++17 -Weverything -Wno-c++98-compat-pedantic -Wno-unknown-warning-option -Wno-switch-enum -Wno-conversion -Wno-covered-switch-default -Wno-inconsistent-missing-destructor-override -Wno-float-equal -Wno-exit-time-destructors -Wno-global-constructors -Wno-weak-vtables -Wno-four-char-constants -Wno-padded -Wno-reserved-identifier -Wno-duplicate-enum -fomit-frame-pointer -DSDL_SUPPORT -D_GLIBCXX_USE_CXX11_ABI=1 -DUNIX -DBSPF_UNIX -DGUI_SUPPORT -DWINDOWED_SUPPORT -DSOUND_SUPPORT -DDEBUGGER_SUPPORT -DJOYSTICK_SUPPORT -DCHEATCODE_SUPPORT -DHTTP_LIB_SUPPORT -DPNG_SUPPORT -DZIP_SUPPORT -Isrc/emucore -Isrc/common -Isrc/common/tv_filters -Isrc/emucore/tia -Isrc/emucore/tia/frame-manager -Isrc/json -Isrc/common/repository/sqlite -I/usr/local/include -I/usr/local/include/SDL2 -I/usr/X11R6/include -D_REENTRANT -I/usr/X11R6/include -Isrc/unix -Isrc/gui -Isrc/debugger -Isrc/debugger/gui -Isrc/yacc -Isrc/cheat -Isrc/httplib -c src/emucore/Cart3F.cxx -o out/src/emucore/Cart3F.o In file included from src/emucore/Cart3F.cxx:18: In file included from src/emucore/System.hxx:26: src/common/bspf.hxx:245:37: warning: unsafe pointer arithmetic [-Wunsafe-buffer-usage] const auto pos = std::search(s1.cbegin()+startpos, s1.cend(), ~~~^~~~~~~~ src/common/bspf.hxx:249:56: warning: unsafe pointer arithmetic [-Wunsafe-buffer-usage] return pos == s1.cend() ? string::npos : pos - (s1.cbegin()+startpos); ~~~^~~~~~~~ In file included from src/emucore/Cart3F.cxx:19: In file included from src/emucore/tia/TIA.hxx:37: src/emucore/tia/Missile.hxx:170:7: warning: unsafe buffer access [-Wunsafe-buffer-usage] if (myDecodes[myCounter] && !myResmp) { ^~~~~~~~~ src/emucore/tia/Missile.hxx:173:14: warning: unsafe buffer access [-Wunsafe-buffer-usage] myCopy = myDecodes[myCounter]; ^~~~~~~~~ In file included from src/emucore/Cart3F.cxx:19: In file included from src/emucore/tia/TIA.hxx:38: src/emucore/tia/Player.hxx:186:7: warning: unsafe buffer access [-Wunsafe-buffer-usage] if (myDecodes[myCounter]) { ^~~~~~~~~ src/emucore/tia/Player.hxx:190:14: warning: unsafe buffer access [-Wunsafe-buffer-usage] myCopy = myDecodes[myCounter]; ^~~~~~~~~ In file included from src/emucore/Cart3F.cxx:20: In file included from src/emucore/Cart3F.hxx:24: In file included from src/emucore/CartEnhanced.hxx:27: In file included from src/debugger/gui/CartEnhancedWidget.hxx:31: In file included from src/debugger/gui/CartDebugWidget.hxx:30: In file included from src/gui/Widget.hxx:33: In file included from src/common/StellaKeys.hxx:22: In file included from src/common/SDL_lib.hxx:34: In file included from /usr/local/include/SDL2/SDL.h:32: In file included from /usr/local/include/SDL2/SDL_main.h:25: /usr/local/include/SDL2/SDL_stdinc.h:544:13: warning: '_p' is an unsafe pointer used for buffer access [-Wunsafe-buffer-usage] Uint32 *_p = SDL_static_cast(Uint32 *, dst); ~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /usr/local/include/SDL2/SDL_stdinc.h:553:26: note: used in pointer arithmetic here case 1: *_p++ = _val; ^~ /usr/local/include/SDL2/SDL_stdinc.h:550:26: note: used in pointer arithmetic here case 0: do { *_p++ = _val; SDL_FALLTHROUGH; ^~ /usr/local/include/SDL2/SDL_stdinc.h:551:26: note: used in pointer arithmetic here case 3: *_p++ = _val; SDL_FALLTHROUGH; ^~ /usr/local/include/SDL2/SDL_stdinc.h:552:26: note: used in pointer arithmetic here case 2: *_p++ = _val; SDL_FALLTHROUGH; ^~ 7 warnings generated. mkdir -p -p src/emucore/.deps mkdir -p -p out/src/emucore c++ -MMD -MF "src/emucore/.deps/Cart4A50.d" -MQ "out/src/emucore/Cart4A50.o" -MP -O2 -pipe -I/usr/X11R6/include -I/usr/local/include -x c++ -Wall -Wextra -Wno-unused-parameter -Wno-multichar -Wunused -Woverloaded-virtual -Wnon-virtual-dtor -std=c++17 -Weverything -Wno-c++98-compat-pedantic -Wno-unknown-warning-option -Wno-switch-enum -Wno-conversion -Wno-covered-switch-default -Wno-inconsistent-missing-destructor-override -Wno-float-equal -Wno-exit-time-destructors -Wno-global-constructors -Wno-weak-vtables -Wno-four-char-constants -Wno-padded -Wno-reserved-identifier -Wno-duplicate-enum -fomit-frame-pointer -DSDL_SUPPORT -D_GLIBCXX_USE_CXX11_ABI=1 -DUNIX -DBSPF_UNIX -DGUI_SUPPORT -DWINDOWED_SUPPORT -DSOUND_SUPPORT -DDEBUGGER_SUPPORT -DJOYSTICK_SUPPORT -DCHEATCODE_SUPPORT -DHTTP_LIB_SUPPORT -DPNG_SUPPORT -DZIP_SUPPORT -Isrc/emucore -Isrc/common -Isrc/common/tv_filters -Isrc/emucore/tia -Isrc/emucore/tia/frame-manager -Isrc/json -Isrc/common/repository/sqlite -I/usr/local/include -I/usr/local/include/SDL2 -I/usr/X11R6/include -D_REENTRANT -I/usr/X11R6/include -Isrc/unix -Isrc/gui -Isrc/debugger -Isrc/debugger/gui -Isrc/yacc -Isrc/cheat -Isrc/httplib -c src/emucore/Cart4A50.cxx -o out/src/emucore/Cart4A50.o In file included from src/emucore/Cart4A50.cxx:18: In file included from src/emucore/System.hxx:26: src/common/bspf.hxx:245:37: warning: unsafe pointer arithmetic [-Wunsafe-buffer-usage] const auto pos = std::search(s1.cbegin()+startpos, s1.cend(), ~~~^~~~~~~~ src/common/bspf.hxx:249:56: warning: unsafe pointer arithmetic [-Wunsafe-buffer-usage] return pos == s1.cend() ? string::npos : pos - (s1.cbegin()+startpos); ~~~^~~~~~~~ In file included from src/emucore/Cart4A50.cxx:20: In file included from src/emucore/tia/TIA.hxx:37: src/emucore/tia/Missile.hxx:170:7: warning: unsafe buffer access [-Wunsafe-buffer-usage] if (myDecodes[myCounter] && !myResmp) { ^~~~~~~~~ src/emucore/tia/Missile.hxx:173:14: warning: unsafe buffer access [-Wunsafe-buffer-usage] myCopy = myDecodes[myCounter]; ^~~~~~~~~ In file included from src/emucore/Cart4A50.cxx:20: In file included from src/emucore/tia/TIA.hxx:38: src/emucore/tia/Player.hxx:186:7: warning: unsafe buffer access [-Wunsafe-buffer-usage] if (myDecodes[myCounter]) { ^~~~~~~~~ src/emucore/tia/Player.hxx:190:14: warning: unsafe buffer access [-Wunsafe-buffer-usage] myCopy = myDecodes[myCounter]; ^~~~~~~~~ In file included from src/emucore/Cart4A50.cxx:21: In file included from src/emucore/Cart4A50.hxx:26: In file included from src/debugger/gui/Cart4A50Widget.hxx:24: In file included from src/debugger/gui/CartDebugWidget.hxx:30: In file included from src/gui/Widget.hxx:33: In file included from src/common/StellaKeys.hxx:22: In file included from src/common/SDL_lib.hxx:34: In file included from /usr/local/include/SDL2/SDL.h:32: In file included from /usr/local/include/SDL2/SDL_main.h:25: /usr/local/include/SDL2/SDL_stdinc.h:544:13: warning: '_p' is an unsafe pointer used for buffer access [-Wunsafe-buffer-usage] Uint32 *_p = SDL_static_cast(Uint32 *, dst); ~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /usr/local/include/SDL2/SDL_stdinc.h:552:26: note: used in pointer arithmetic here case 2: *_p++ = _val; SDL_FALLTHROUGH; ^~ /usr/local/include/SDL2/SDL_stdinc.h:550:26: note: used in pointer arithmetic here case 0: do { *_p++ = _val; SDL_FALLTHROUGH; ^~ /usr/local/include/SDL2/SDL_stdinc.h:553:26: note: used in pointer arithmetic here case 1: *_p++ = _val; ^~ /usr/local/include/SDL2/SDL_stdinc.h:551:26: note: used in pointer arithmetic here case 3: *_p++ = _val; SDL_FALLTHROUGH; ^~ src/emucore/Cart4A50.cxx:36:44: warning: unsafe pointer arithmetic [-Wunsafe-buffer-usage] std::copy_n(image.get(), size, myImage.get() + (slice*size)); ~~~~~~~~^~~~~ 8 warnings generated. mkdir -p -p src/emucore/.deps mkdir -p -p out/src/emucore c++ -MMD -MF "src/emucore/.deps/Cart4K.d" -MQ "out/src/emucore/Cart4K.o" -MP -O2 -pipe -I/usr/X11R6/include -I/usr/local/include -x c++ -Wall -Wextra -Wno-unused-parameter -Wno-multichar -Wunused -Woverloaded-virtual -Wnon-virtual-dtor -std=c++17 -Weverything -Wno-c++98-compat-pedantic -Wno-unknown-warning-option -Wno-switch-enum -Wno-conversion -Wno-covered-switch-default -Wno-inconsistent-missing-destructor-override -Wno-float-equal -Wno-exit-time-destructors -Wno-global-constructors -Wno-weak-vtables -Wno-four-char-constants -Wno-padded -Wno-reserved-identifier -Wno-duplicate-enum -fomit-frame-pointer -DSDL_SUPPORT -D_GLIBCXX_USE_CXX11_ABI=1 -DUNIX -DBSPF_UNIX -DGUI_SUPPORT -DWINDOWED_SUPPORT -DSOUND_SUPPORT -DDEBUGGER_SUPPORT -DJOYSTICK_SUPPORT -DCHEATCODE_SUPPORT -DHTTP_LIB_SUPPORT -DPNG_SUPPORT -DZIP_SUPPORT -Isrc/emucore -Isrc/common -Isrc/common/tv_filters -Isrc/emucore/tia -Isrc/emucore/tia/frame-manager -Isrc/json -Isrc/common/repository/sqlite -I/usr/local/include -I/usr/local/include/SDL2 -I/usr/X11R6/include -D_REENTRANT -I/usr/X11R6/include -Isrc/unix -Isrc/gui -Isrc/debugger -Isrc/debugger/gui -Isrc/yacc -Isrc/cheat -Isrc/httplib -c src/emucore/Cart4K.cxx -o out/src/emucore/Cart4K.o In file included from src/emucore/Cart4K.cxx:18: In file included from src/emucore/System.hxx:26: src/common/bspf.hxx:245:37: warning: unsafe pointer arithmetic [-Wunsafe-buffer-usage] const auto pos = std::search(s1.cbegin()+startpos, s1.cend(), ~~~^~~~~~~~ src/common/bspf.hxx:249:56: warning: unsafe pointer arithmetic [-Wunsafe-buffer-usage] return pos == s1.cend() ? string::npos : pos - (s1.cbegin()+startpos); ~~~^~~~~~~~ In file included from src/emucore/Cart4K.cxx:19: In file included from src/emucore/Cart4K.hxx:24: In file included from src/emucore/CartEnhanced.hxx:27: In file included from src/debugger/gui/CartEnhancedWidget.hxx:31: In file included from src/debugger/gui/CartDebugWidget.hxx:30: In file included from src/gui/Widget.hxx:33: In file included from src/common/StellaKeys.hxx:22: In file included from src/common/SDL_lib.hxx:34: In file included from /usr/local/include/SDL2/SDL.h:32: In file included from /usr/local/include/SDL2/SDL_main.h:25: /usr/local/include/SDL2/SDL_stdinc.h:544:13: warning: '_p' is an unsafe pointer used for buffer access [-Wunsafe-buffer-usage] Uint32 *_p = SDL_static_cast(Uint32 *, dst); ~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /usr/local/include/SDL2/SDL_stdinc.h:550:26: note: used in pointer arithmetic here case 0: do { *_p++ = _val; SDL_FALLTHROUGH; ^~ /usr/local/include/SDL2/SDL_stdinc.h:552:26: note: used in pointer arithmetic here case 2: *_p++ = _val; SDL_FALLTHROUGH; ^~ /usr/local/include/SDL2/SDL_stdinc.h:553:26: note: used in pointer arithmetic here case 1: *_p++ = _val; ^~ /usr/local/include/SDL2/SDL_stdinc.h:551:26: note: used in pointer arithmetic here case 3: *_p++ = _val; SDL_FALLTHROUGH; ^~ 3 warnings generated. mkdir -p -p src/emucore/.deps mkdir -p -p out/src/emucore c++ -MMD -MF "src/emucore/.deps/Cart4KSC.d" -MQ "out/src/emucore/Cart4KSC.o" -MP -O2 -pipe -I/usr/X11R6/include -I/usr/local/include -x c++ -Wall -Wextra -Wno-unused-parameter -Wno-multichar -Wunused -Woverloaded-virtual -Wnon-virtual-dtor -std=c++17 -Weverything -Wno-c++98-compat-pedantic -Wno-unknown-warning-option -Wno-switch-enum -Wno-conversion -Wno-covered-switch-default -Wno-inconsistent-missing-destructor-override -Wno-float-equal -Wno-exit-time-destructors -Wno-global-constructors -Wno-weak-vtables -Wno-four-char-constants -Wno-padded -Wno-reserved-identifier -Wno-duplicate-enum -fomit-frame-pointer -DSDL_SUPPORT -D_GLIBCXX_USE_CXX11_ABI=1 -DUNIX -DBSPF_UNIX -DGUI_SUPPORT -DWINDOWED_SUPPORT -DSOUND_SUPPORT -DDEBUGGER_SUPPORT -DJOYSTICK_SUPPORT -DCHEATCODE_SUPPORT -DHTTP_LIB_SUPPORT -DPNG_SUPPORT -DZIP_SUPPORT -Isrc/emucore -Isrc/common -Isrc/common/tv_filters -Isrc/emucore/tia -Isrc/emucore/tia/frame-manager -Isrc/json -Isrc/common/repository/sqlite -I/usr/local/include -I/usr/local/include/SDL2 -I/usr/X11R6/include -D_REENTRANT -I/usr/X11R6/include -Isrc/unix -Isrc/gui -Isrc/debugger -Isrc/debugger/gui -Isrc/yacc -Isrc/cheat -Isrc/httplib -c src/emucore/Cart4KSC.cxx -o out/src/emucore/Cart4KSC.o In file included from src/emucore/Cart4KSC.cxx:18: In file included from src/emucore/System.hxx:26: src/common/bspf.hxx:245:37: warning: unsafe pointer arithmetic [-Wunsafe-buffer-usage] const auto pos = std::search(s1.cbegin()+startpos, s1.cend(), ~~~^~~~~~~~ src/common/bspf.hxx:249:56: warning: unsafe pointer arithmetic [-Wunsafe-buffer-usage] return pos == s1.cend() ? string::npos : pos - (s1.cbegin()+startpos); ~~~^~~~~~~~ In file included from src/emucore/Cart4KSC.cxx:19: In file included from src/emucore/Cart4KSC.hxx:24: In file included from src/emucore/Cart4K.hxx:24: In file included from src/emucore/CartEnhanced.hxx:27: In file included from src/debugger/gui/CartEnhancedWidget.hxx:31: In file included from src/debugger/gui/CartDebugWidget.hxx:30: In file included from src/gui/Widget.hxx:33: In file included from src/common/StellaKeys.hxx:22: In file included from src/common/SDL_lib.hxx:34: In file included from /usr/local/include/SDL2/SDL.h:32: In file included from /usr/local/include/SDL2/SDL_main.h:25: /usr/local/include/SDL2/SDL_stdinc.h:544:13: warning: '_p' is an unsafe pointer used for buffer access [-Wunsafe-buffer-usage] Uint32 *_p = SDL_static_cast(Uint32 *, dst); ~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /usr/local/include/SDL2/SDL_stdinc.h:551:26: note: used in pointer arithmetic here case 3: *_p++ = _val; SDL_FALLTHROUGH; ^~ /usr/local/include/SDL2/SDL_stdinc.h:550:26: note: used in pointer arithmetic here case 0: do { *_p++ = _val; SDL_FALLTHROUGH; ^~ /usr/local/include/SDL2/SDL_stdinc.h:553:26: note: used in pointer arithmetic here case 1: *_p++ = _val; ^~ /usr/local/include/SDL2/SDL_stdinc.h:552:26: note: used in pointer arithmetic here case 2: *_p++ = _val; SDL_FALLTHROUGH; ^~ 3 warnings generated. mkdir -p -p src/emucore/.deps mkdir -p -p out/src/emucore c++ -MMD -MF "src/emucore/.deps/CartAR.d" -MQ "out/src/emucore/CartAR.o" -MP -O2 -pipe -I/usr/X11R6/include -I/usr/local/include -x c++ -Wall -Wextra -Wno-unused-parameter -Wno-multichar -Wunused -Woverloaded-virtual -Wnon-virtual-dtor -std=c++17 -Weverything -Wno-c++98-compat-pedantic -Wno-unknown-warning-option -Wno-switch-enum -Wno-conversion -Wno-covered-switch-default -Wno-inconsistent-missing-destructor-override -Wno-float-equal -Wno-exit-time-destructors -Wno-global-constructors -Wno-weak-vtables -Wno-four-char-constants -Wno-padded -Wno-reserved-identifier -Wno-duplicate-enum -fomit-frame-pointer -DSDL_SUPPORT -D_GLIBCXX_USE_CXX11_ABI=1 -DUNIX -DBSPF_UNIX -DGUI_SUPPORT -DWINDOWED_SUPPORT -DSOUND_SUPPORT -DDEBUGGER_SUPPORT -DJOYSTICK_SUPPORT -DCHEATCODE_SUPPORT -DHTTP_LIB_SUPPORT -DPNG_SUPPORT -DZIP_SUPPORT -Isrc/emucore -Isrc/common -Isrc/common/tv_filters -Isrc/emucore/tia -Isrc/emucore/tia/frame-manager -Isrc/json -Isrc/common/repository/sqlite -I/usr/local/include -I/usr/local/include/SDL2 -I/usr/X11R6/include -D_REENTRANT -I/usr/X11R6/include -Isrc/unix -Isrc/gui -Isrc/debugger -Isrc/debugger/gui -Isrc/yacc -Isrc/cheat -Isrc/httplib -c src/emucore/CartAR.cxx -o out/src/emucore/CartAR.o In file included from src/emucore/CartAR.cxx:18: In file included from src/emucore/M6502.hxx:31: In file included from src/debugger/Expression.hxx:21: src/common/bspf.hxx:245:37: warning: unsafe pointer arithmetic [-Wunsafe-buffer-usage] const auto pos = std::search(s1.cbegin()+startpos, s1.cend(), ~~~^~~~~~~~ src/common/bspf.hxx:249:56: warning: unsafe pointer arithmetic [-Wunsafe-buffer-usage] return pos == s1.cend() ? string::npos : pos - (s1.cbegin()+startpos); ~~~^~~~~~~~ In file included from src/emucore/CartAR.cxx:21: In file included from src/emucore/CartAR.hxx:26: In file included from src/debugger/gui/CartARWidget.hxx:24: In file included from src/debugger/gui/CartDebugWidget.hxx:30: In file included from src/gui/Widget.hxx:33: In file included from src/common/StellaKeys.hxx:22: In file included from src/common/SDL_lib.hxx:34: In file included from /usr/local/include/SDL2/SDL.h:32: In file included from /usr/local/include/SDL2/SDL_main.h:25: /usr/local/include/SDL2/SDL_stdinc.h:544:13: warning: '_p' is an unsafe pointer used for buffer access [-Wunsafe-buffer-usage] Uint32 *_p = SDL_static_cast(Uint32 *, dst); ~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /usr/local/include/SDL2/SDL_stdinc.h:551:26: note: used in pointer arithmetic here case 3: *_p++ = _val; SDL_FALLTHROUGH; ^~ /usr/local/include/SDL2/SDL_stdinc.h:553:26: note: used in pointer arithmetic here case 1: *_p++ = _val; ^~ /usr/local/include/SDL2/SDL_stdinc.h:550:26: note: used in pointer arithmetic here case 0: do { *_p++ = _val; SDL_FALLTHROUGH; ^~ /usr/local/include/SDL2/SDL_stdinc.h:552:26: note: used in pointer arithmetic here case 2: *_p++ = _val; SDL_FALLTHROUGH; ^~ src/emucore/CartAR.cxx:37:30: warning: unsafe pointer arithmetic [-Wunsafe-buffer-usage] myLoadImages.get() + myImage.size()); ~~~~~~~~~~~~~^~~~~ src/emucore/CartAR.cxx:230:16: warning: 'OFFSET_0' is an unsafe buffer that does not perform bounds checks [-Wunsafe-buffer-usage] const uInt32 OFFSET_0[8] = {2 * BANK_SIZE, 0 * BANK_SIZE, 2 * BANK_SIZE, 0 * BANK_SIZE, ~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ src/emucore/CartAR.cxx:243:22: note: used in buffer access here myImageOffset[0] = OFFSET_0[bankConfig]; ^~~~~~~~ src/emucore/CartAR.cxx:232:16: warning: 'OFFSET_1' is an unsafe buffer that does not perform bounds checks [-Wunsafe-buffer-usage] const uInt32 OFFSET_1[8] = {3 * BANK_SIZE, 3 * BANK_SIZE, 0 * BANK_SIZE, 2 * BANK_SIZE, ~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ src/emucore/CartAR.cxx:244:22: note: used in buffer access here myImageOffset[1] = OFFSET_1[bankConfig]; ^~~~~~~~ src/emucore/CartAR.cxx:267:23: warning: unsafe pointer arithmetic [-Wunsafe-buffer-usage] std::fill_n(myImage.begin() + (RAM_SIZE), BANK_SIZE, 0x02); ~~~~~~~~^~~~~~~ src/emucore/CartAR.cxx:270:71: warning: unsafe pointer arithmetic [-Wunsafe-buffer-usage] std::copy_n(ourDummyROMCode.data(), ourDummyROMCode.size(), myImage.data() + (RAM_SIZE)); ~~~~~~~~^~~~~~ src/emucore/CartAR.cxx:280:42: warning: 's' is an unsafe pointer used for buffer access [-Wunsafe-buffer-usage] uInt8 CartridgeAR::checksum(const uInt8* s, uInt16 length) ~~~~~~~~~~~~~^ src/emucore/CartAR.cxx:285:12: note: used in buffer access here sum += s[i]; ^ src/emucore/CartAR.cxx:303:38: warning: unsafe pointer arithmetic [-Wunsafe-buffer-usage] std::copy_n(myLoadImages.get() + (image * LOAD_SIZE) + myImage.size(), myHeader.size(), myHeader.data()); ~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~ src/emucore/CartAR.cxx:303:32: warning: unsafe pointer arithmetic [-Wunsafe-buffer-usage] std::copy_n(myLoadImages.get() + (image * LOAD_SIZE) + myImage.size(), myHeader.size(), myHeader.data()); ~~~~~~~~~~~~~^~~~~ src/emucore/CartAR.cxx:319:53: warning: unsafe pointer arithmetic [-Wunsafe-buffer-usage] const uInt8* const src = myLoadImages.get() + (image * LOAD_SIZE) + (j * 256); ~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~ src/emucore/CartAR.cxx:319:47: warning: unsafe pointer arithmetic [-Wunsafe-buffer-usage] const uInt8* const src = myLoadImages.get() + (image * LOAD_SIZE) + (j * 256); ~~~~~~~~~~~~~^~~~~ src/emucore/CartAR.cxx:332:48: warning: unsafe pointer arithmetic [-Wunsafe-buffer-usage] std::copy_n(src, 256, myImage.data() + (bank * BANK_SIZE) + (page * 256)); ~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~ src/emucore/CartAR.cxx:332:41: warning: unsafe pointer arithmetic [-Wunsafe-buffer-usage] std::copy_n(src, 256, myImage.data() + (bank * BANK_SIZE) + (page * 256)); ~~~~~~~~^~~~~~ 15 warnings generated. mkdir -p -p src/emucore/.deps mkdir -p -p out/src/emucore c++ -MMD -MF "src/emucore/.deps/CartBUS.d" -MQ "out/src/emucore/CartBUS.o" -MP -O2 -pipe -I/usr/X11R6/include -I/usr/local/include -x c++ -Wall -Wextra -Wno-unused-parameter -Wno-multichar -Wunused -Woverloaded-virtual -Wnon-virtual-dtor -std=c++17 -Weverything -Wno-c++98-compat-pedantic -Wno-unknown-warning-option -Wno-switch-enum -Wno-conversion -Wno-covered-switch-default -Wno-inconsistent-missing-destructor-override -Wno-float-equal -Wno-exit-time-destructors -Wno-global-constructors -Wno-weak-vtables -Wno-four-char-constants -Wno-padded -Wno-reserved-identifier -Wno-duplicate-enum -fomit-frame-pointer -DSDL_SUPPORT -D_GLIBCXX_USE_CXX11_ABI=1 -DUNIX -DBSPF_UNIX -DGUI_SUPPORT -DWINDOWED_SUPPORT -DSOUND_SUPPORT -DDEBUGGER_SUPPORT -DJOYSTICK_SUPPORT -DCHEATCODE_SUPPORT -DHTTP_LIB_SUPPORT -DPNG_SUPPORT -DZIP_SUPPORT -Isrc/emucore -Isrc/common -Isrc/common/tv_filters -Isrc/emucore/tia -Isrc/emucore/tia/frame-manager -Isrc/json -Isrc/common/repository/sqlite -I/usr/local/include -I/usr/local/include/SDL2 -I/usr/X11R6/include -D_REENTRANT -I/usr/X11R6/include -Isrc/unix -Isrc/gui -Isrc/debugger -Isrc/debugger/gui -Isrc/yacc -Isrc/cheat -Isrc/httplib -c src/emucore/CartBUS.cxx -o out/src/emucore/CartBUS.o In file included from src/emucore/CartBUS.cxx:21: In file included from src/debugger/Debugger.hxx:46: In file included from src/common/Base.hxx:24: src/common/bspf.hxx:245:37: warning: unsafe pointer arithmetic [-Wunsafe-buffer-usage] const auto pos = std::search(s1.cbegin()+startpos, s1.cend(), ~~~^~~~~~~~ src/common/bspf.hxx:249:56: warning: unsafe pointer arithmetic [-Wunsafe-buffer-usage] return pos == s1.cend() ? string::npos : pos - (s1.cbegin()+startpos); ~~~^~~~~~~~ In file included from src/emucore/CartBUS.cxx:21: In file included from src/debugger/Debugger.hxx:48: In file included from src/gui/DialogContainer.hxx:26: In file included from src/common/StellaKeys.hxx:22: In file included from src/common/SDL_lib.hxx:34: In file included from /usr/local/include/SDL2/SDL.h:32: In file included from /usr/local/include/SDL2/SDL_main.h:25: /usr/local/include/SDL2/SDL_stdinc.h:544:13: warning: '_p' is an unsafe pointer used for buffer access [-Wunsafe-buffer-usage] Uint32 *_p = SDL_static_cast(Uint32 *, dst); ~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /usr/local/include/SDL2/SDL_stdinc.h:550:26: note: used in pointer arithmetic here case 0: do { *_p++ = _val; SDL_FALLTHROUGH; ^~ /usr/local/include/SDL2/SDL_stdinc.h:551:26: note: used in pointer arithmetic here case 3: *_p++ = _val; SDL_FALLTHROUGH; ^~ /usr/local/include/SDL2/SDL_stdinc.h:552:26: note: used in pointer arithmetic here case 2: *_p++ = _val; SDL_FALLTHROUGH; ^~ /usr/local/include/SDL2/SDL_stdinc.h:553:26: note: used in pointer arithmetic here case 1: *_p++ = _val; ^~ In file included from src/emucore/CartBUS.cxx:27: In file included from src/emucore/tia/TIA.hxx:37: src/emucore/tia/Missile.hxx:170:7: warning: unsafe buffer access [-Wunsafe-buffer-usage] if (myDecodes[myCounter] && !myResmp) { ^~~~~~~~~ src/emucore/tia/Missile.hxx:173:14: warning: unsafe buffer access [-Wunsafe-buffer-usage] myCopy = myDecodes[myCounter]; ^~~~~~~~~ In file included from src/emucore/CartBUS.cxx:27: In file included from src/emucore/tia/TIA.hxx:38: src/emucore/tia/Player.hxx:186:7: warning: unsafe buffer access [-Wunsafe-buffer-usage] if (myDecodes[myCounter]) { ^~~~~~~~~ src/emucore/tia/Player.hxx:190:14: warning: unsafe buffer access [-Wunsafe-buffer-usage] myCopy = myDecodes[myCounter]; ^~~~~~~~~ src/emucore/CartBUS.cxx:39:48: warning: '_array' is an unsafe pointer used for buffer access [-Wunsafe-buffer-usage] static constexpr uInt32 getUInt32(const uInt8* _array, size_t _address) { ~~~~~~~~~~~~~^~~~~~ src/emucore/CartBUS.cxx:40:30: note: used in buffer access here return static_cast((_array)[(_address) + 0] + ^~~~~~~~ src/emucore/CartBUS.cxx:42:30: note: used in buffer access here ((_array)[(_address) + 2] << 16) + ^~~~~~~~ src/emucore/CartBUS.cxx:43:30: note: used in buffer access here ((_array)[(_address) + 3] << 24)); ^~~~~~~~ src/emucore/CartBUS.cxx:41:30: note: used in buffer access here ((_array)[(_address) + 1] << 8) + ^~~~~~~~ src/emucore/CartBUS.cxx:70:30: warning: unsafe pointer arithmetic [-Wunsafe-buffer-usage] myProgramImage = myImage.get() + 3_KB; ~~~~~~~~^~~~~ src/emucore/CartBUS.cxx:73:28: warning: unsafe pointer arithmetic [-Wunsafe-buffer-usage] myDisplayImage = myRAM.data() + 0x0C00; ~~~~~~^~~~~~ src/emucore/CartBUS.cxx:95:30: warning: unsafe pointer arithmetic [-Wunsafe-buffer-usage] myProgramImage = myImage.get() + 4_KB; ~~~~~~~~^~~~~ src/emucore/CartBUS.cxx:98:28: warning: unsafe pointer arithmetic [-Wunsafe-buffer-usage] myDisplayImage = myRAM.data() + 0x0800; ~~~~~~^~~~~~ src/emucore/CartBUS.cxx:128:25: warning: unsafe pointer arithmetic [-Wunsafe-buffer-usage] initializeRAM(myRAM.data() + 3_KB, 5_KB); ~~~~~~^~~~~~ src/emucore/CartBUS.cxx:133:25: warning: unsafe pointer arithmetic [-Wunsafe-buffer-usage] initializeRAM(myRAM.data() + 2_KB, 6_KB); ~~~~~~^~~~~~ src/emucore/CartBUS.cxx:259:23: warning: unsafe buffer access [-Wunsafe-buffer-usage] uInt8 peekvalue = myProgramImage[myBankOffset + address]; ^~~~~~~~~~~~~~ src/emucore/CartBUS.cxx:277:29: warning: unsafe buffer access [-Wunsafe-buffer-usage] const uInt8 value = myDisplayImage[pointer >> 20]; ^~~~~~~~~~~~~~ src/emucore/CartBUS.cxx:287:14: warning: unsafe buffer access [-Wunsafe-buffer-usage] && myProgramImage[myBankOffset + address+1] == 0 ^~~~~~~~~~~~~~ src/emucore/CartBUS.cxx:288:14: warning: unsafe buffer access [-Wunsafe-buffer-usage] && myProgramImage[myBankOffset + address+2] == 0) ^~~~~~~~~~~~~~ src/emucore/CartBUS.cxx:344:32: warning: unsafe buffer access [-Wunsafe-buffer-usage] const uInt32 i = myDisplayImage[(getWaveform(0)) + (myMusicCounters[0] >> myMusicWaveformSize[0])] + ^~~~~~~~~~~~~~ src/emucore/CartBUS.cxx:345:17: warning: unsafe buffer access [-Wunsafe-buffer-usage] myDisplayImage[(getWaveform(1)) + (myMusicCounters[1] >> myMusicWaveformSize[1])] + ^~~~~~~~~~~~~~ src/emucore/CartBUS.cxx:346:17: warning: unsafe buffer access [-Wunsafe-buffer-usage] myDisplayImage[(getWaveform(2)) + (myMusicCounters[2] >> myMusicWaveformSize[2])]; ^~~~~~~~~~~~~~ src/emucore/CartBUS.cxx:395:17: warning: unsafe buffer access [-Wunsafe-buffer-usage] myDisplayImage[(getWaveform(0) ) + (myMusicCounters[0] >> myMusicWaveformSize[0])] + ^~~~~~~~~~~~~~ src/emucore/CartBUS.cxx:396:17: warning: unsafe buffer access [-Wunsafe-buffer-usage] myDisplayImage[(getWaveform(1) ) + (myMusicCounters[1] >> myMusicWaveformSize[1])] + ^~~~~~~~~~~~~~ src/emucore/CartBUS.cxx:397:17: warning: unsafe buffer access [-Wunsafe-buffer-usage] myDisplayImage[(getWaveform(2) ) + (myMusicCounters[2] >> myMusicWaveformSize[2])]; ^~~~~~~~~~~~~~ src/emucore/CartBUS.cxx:558:11: warning: unsafe buffer access [-Wunsafe-buffer-usage] myDisplayImage[ pointer >> 20 ] = value; ^~~~~~~~~~~~~~ src/emucore/CartBUS.cxx:697:11: warning: unsafe buffer access [-Wunsafe-buffer-usage] myDisplayImage[ pointer >> 20 ] = value; ^~~~~~~~~~~~~~ src/emucore/CartBUS.cxx:743:13: warning: unsafe buffer access [-Wunsafe-buffer-usage] myDisplayImage[ pointer >> 20 ] = value; ^~~~~~~~~~~~~~ src/emucore/CartBUS.cxx:829:5: warning: unsafe buffer access [-Wunsafe-buffer-usage] myProgramImage[myBankOffset + (address & 0x0FFF)] = value; ^~~~~~~~~~~~~~ src/emucore/CartBUS.cxx:1130:23: warning: unsafe buffer access [-Wunsafe-buffer-usage] const uInt8 value = myDisplayImage[pointer >> 20]; ^~~~~~~~~~~~~~ 29 warnings generated. mkdir -p -p src/emucore/.deps mkdir -p -p out/src/emucore c++ -MMD -MF "src/emucore/.deps/CartCDF.d" -MQ "out/src/emucore/CartCDF.o" -MP -O2 -pipe -I/usr/X11R6/include -I/usr/local/include -x c++ -Wall -Wextra -Wno-unused-parameter -Wno-multichar -Wunused -Woverloaded-virtual -Wnon-virtual-dtor -std=c++17 -Weverything -Wno-c++98-compat-pedantic -Wno-unknown-warning-option -Wno-switch-enum -Wno-conversion -Wno-covered-switch-default -Wno-inconsistent-missing-destructor-override -Wno-float-equal -Wno-exit-time-destructors -Wno-global-constructors -Wno-weak-vtables -Wno-four-char-constants -Wno-padded -Wno-reserved-identifier -Wno-duplicate-enum -fomit-frame-pointer -DSDL_SUPPORT -D_GLIBCXX_USE_CXX11_ABI=1 -DUNIX -DBSPF_UNIX -DGUI_SUPPORT -DWINDOWED_SUPPORT -DSOUND_SUPPORT -DDEBUGGER_SUPPORT -DJOYSTICK_SUPPORT -DCHEATCODE_SUPPORT -DHTTP_LIB_SUPPORT -DPNG_SUPPORT -DZIP_SUPPORT -Isrc/emucore -Isrc/common -Isrc/common/tv_filters -Isrc/emucore/tia -Isrc/emucore/tia/frame-manager -Isrc/json -Isrc/common/repository/sqlite -I/usr/local/include -I/usr/local/include/SDL2 -I/usr/X11R6/include -D_REENTRANT -I/usr/X11R6/include -Isrc/unix -Isrc/gui -Isrc/debugger -Isrc/debugger/gui -Isrc/yacc -Isrc/cheat -Isrc/httplib -c src/emucore/CartCDF.cxx -o out/src/emucore/CartCDF.o In file included from src/emucore/CartCDF.cxx:21: In file included from src/debugger/Debugger.hxx:46: In file included from src/common/Base.hxx:24: src/common/bspf.hxx:245:37: warning: unsafe pointer arithmetic [-Wunsafe-buffer-usage] const auto pos = std::search(s1.cbegin()+startpos, s1.cend(), ~~~^~~~~~~~ src/common/bspf.hxx:249:56: warning: unsafe pointer arithmetic [-Wunsafe-buffer-usage] return pos == s1.cend() ? string::npos : pos - (s1.cbegin()+startpos); ~~~^~~~~~~~ In file included from src/emucore/CartCDF.cxx:21: In file included from src/debugger/Debugger.hxx:48: In file included from src/gui/DialogContainer.hxx:26: In file included from src/common/StellaKeys.hxx:22: In file included from src/common/SDL_lib.hxx:34: In file included from /usr/local/include/SDL2/SDL.h:32: In file included from /usr/local/include/SDL2/SDL_main.h:25: /usr/local/include/SDL2/SDL_stdinc.h:544:13: warning: '_p' is an unsafe pointer used for buffer access [-Wunsafe-buffer-usage] Uint32 *_p = SDL_static_cast(Uint32 *, dst); ~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /usr/local/include/SDL2/SDL_stdinc.h:552:26: note: used in pointer arithmetic here case 2: *_p++ = _val; SDL_FALLTHROUGH; ^~ /usr/local/include/SDL2/SDL_stdinc.h:553:26: note: used in pointer arithmetic here case 1: *_p++ = _val; ^~ /usr/local/include/SDL2/SDL_stdinc.h:550:26: note: used in pointer arithmetic here case 0: do { *_p++ = _val; SDL_FALLTHROUGH; ^~ /usr/local/include/SDL2/SDL_stdinc.h:551:26: note: used in pointer arithmetic here case 3: *_p++ = _val; SDL_FALLTHROUGH; ^~ In file included from src/emucore/CartCDF.cxx:28: In file included from src/emucore/tia/TIA.hxx:37: src/emucore/tia/Missile.hxx:170:7: warning: unsafe buffer access [-Wunsafe-buffer-usage] if (myDecodes[myCounter] && !myResmp) { ^~~~~~~~~ src/emucore/tia/Missile.hxx:173:14: warning: unsafe buffer access [-Wunsafe-buffer-usage] myCopy = myDecodes[myCounter]; ^~~~~~~~~ In file included from src/emucore/CartCDF.cxx:28: In file included from src/emucore/tia/TIA.hxx:38: src/emucore/tia/Player.hxx:186:7: warning: unsafe buffer access [-Wunsafe-buffer-usage] if (myDecodes[myCounter]) { ^~~~~~~~~ src/emucore/tia/Player.hxx:190:14: warning: unsafe buffer access [-Wunsafe-buffer-usage] myCopy = myDecodes[myCounter]; ^~~~~~~~~ src/emucore/CartCDF.cxx:34:48: warning: '_array' is an unsafe pointer used for buffer access [-Wunsafe-buffer-usage] static constexpr uInt32 getUInt32(const uInt8* _array, size_t _address) { ~~~~~~~~~~~~~^~~~~~ src/emucore/CartCDF.cxx:36:30: note: used in buffer access here ((_array)[(_address) + 1] << 8) + ^~~~~~~~ src/emucore/CartCDF.cxx:35:30: note: used in buffer access here return static_cast((_array)[(_address) + 0] + ^~~~~~~~ src/emucore/CartCDF.cxx:38:30: note: used in buffer access here ((_array)[(_address) + 3] << 24)); ^~~~~~~~ src/emucore/CartCDF.cxx:37:30: note: used in buffer access here ((_array)[(_address) + 2] << 16) + ^~~~~~~~ src/emucore/CartCDF.cxx:81:28: warning: unsafe pointer arithmetic [-Wunsafe-buffer-usage] myProgramImage = myImage.get() + (isCDFJplus() ? 2_KB : 4_KB); ~~~~~~~~^~~~~ src/emucore/CartCDF.cxx:87:26: warning: unsafe pointer arithmetic [-Wunsafe-buffer-usage] myDisplayImage = myRAM.data() + 2_KB; ~~~~~~^~~~~~ src/emucore/CartCDF.cxx:125:23: warning: unsafe pointer arithmetic [-Wunsafe-buffer-usage] initializeRAM(myRAM.data()+2_KB, myRAM.size()-2_KB); ~~~~~~^~~~~~ src/emucore/CartCDF.cxx:232:21: warning: unsafe buffer access [-Wunsafe-buffer-usage] uInt8 peekvalue = myProgramImage[myBankOffset + address]; ^~~~~~~~~~~~~~ src/emucore/CartCDF.cxx:249:15: warning: unsafe buffer access [-Wunsafe-buffer-usage] value = myDisplayImage[ pointer >> 16 ]; ^~~~~~~~~~~~~~ src/emucore/CartCDF.cxx:252:15: warning: unsafe buffer access [-Wunsafe-buffer-usage] value = myDisplayImage[ pointer >> 20 ]; ^~~~~~~~~~~~~~ src/emucore/CartCDF.cxx:264:11: warning: unsafe buffer access [-Wunsafe-buffer-usage] && (myProgramImage[myBankOffset + address+1] & myFastjumpStreamIndexMask) == 0 ^~~~~~~~~~~~~~ src/emucore/CartCDF.cxx:265:10: warning: unsafe buffer access [-Wunsafe-buffer-usage] && myProgramImage[myBankOffset + address+2] == 0) ^~~~~~~~~~~~~~ src/emucore/CartCDF.cxx:269:24: warning: unsafe buffer access [-Wunsafe-buffer-usage] myFastJumpStream = myProgramImage[myBankOffset + address+1] + JUMPSTREAM_BASE; ^~~~~~~~~~~~~~ src/emucore/CartCDF.cxx:317:21: warning: unsafe buffer access [-Wunsafe-buffer-usage] peekvalue = myDisplayImage[getWaveform(0) + (myMusicCounters[0] >> myMusicWaveformSize[0])] ^~~~~~~~~~~~~~ src/emucore/CartCDF.cxx:318:21: warning: unsafe buffer access [-Wunsafe-buffer-usage] + myDisplayImage[getWaveform(1) + (myMusicCounters[1] >> myMusicWaveformSize[1])] ^~~~~~~~~~~~~~ src/emucore/CartCDF.cxx:319:21: warning: unsafe buffer access [-Wunsafe-buffer-usage] + myDisplayImage[getWaveform(2) + (myMusicCounters[2] >> myMusicWaveformSize[2])]; ^~~~~~~~~~~~~~ src/emucore/CartCDF.cxx:395:9: warning: unsafe buffer access [-Wunsafe-buffer-usage] myDisplayImage[ pointer >> 16 ] = value; ^~~~~~~~~~~~~~ src/emucore/CartCDF.cxx:398:9: warning: unsafe buffer access [-Wunsafe-buffer-usage] myDisplayImage[ pointer >> 20 ] = value; ^~~~~~~~~~~~~~ src/emucore/CartCDF.cxx:506:5: warning: unsafe buffer access [-Wunsafe-buffer-usage] myProgramImage[myBankOffset + (address & 0x0FFF)] = value; ^~~~~~~~~~~~~~ src/emucore/CartCDF.cxx:739:13: warning: unsafe buffer access [-Wunsafe-buffer-usage] value = myDisplayImage[ pointer >> 16 ]; ^~~~~~~~~~~~~~ src/emucore/CartCDF.cxx:744:13: warning: unsafe buffer access [-Wunsafe-buffer-usage] value = myDisplayImage[ pointer >> 20 ]; ^~~~~~~~~~~~~~ 25 warnings generated. mkdir -p -p src/emucore/.deps mkdir -p -p out/src/emucore c++ -MMD -MF "src/emucore/.deps/CartCM.d" -MQ "out/src/emucore/CartCM.o" -MP -O2 -pipe -I/usr/X11R6/include -I/usr/local/include -x c++ -Wall -Wextra -Wno-unused-parameter -Wno-multichar -Wunused -Woverloaded-virtual -Wnon-virtual-dtor -std=c++17 -Weverything -Wno-c++98-compat-pedantic -Wno-unknown-warning-option -Wno-switch-enum -Wno-conversion -Wno-covered-switch-default -Wno-inconsistent-missing-destructor-override -Wno-float-equal -Wno-exit-time-destructors -Wno-global-constructors -Wno-weak-vtables -Wno-four-char-constants -Wno-padded -Wno-reserved-identifier -Wno-duplicate-enum -fomit-frame-pointer -DSDL_SUPPORT -D_GLIBCXX_USE_CXX11_ABI=1 -DUNIX -DBSPF_UNIX -DGUI_SUPPORT -DWINDOWED_SUPPORT -DSOUND_SUPPORT -DDEBUGGER_SUPPORT -DJOYSTICK_SUPPORT -DCHEATCODE_SUPPORT -DHTTP_LIB_SUPPORT -DPNG_SUPPORT -DZIP_SUPPORT -Isrc/emucore -Isrc/common -Isrc/common/tv_filters -Isrc/emucore/tia -Isrc/emucore/tia/frame-manager -Isrc/json -Isrc/common/repository/sqlite -I/usr/local/include -I/usr/local/include/SDL2 -I/usr/X11R6/include -D_REENTRANT -I/usr/X11R6/include -Isrc/unix -Isrc/gui -Isrc/debugger -Isrc/debugger/gui -Isrc/yacc -Isrc/cheat -Isrc/httplib -c src/emucore/CartCM.cxx -o out/src/emucore/CartCM.o In file included from src/emucore/CartCM.cxx:18: In file included from src/emucore/CompuMate.hxx:25: src/common/bspf.hxx:245:37: warning: unsafe pointer arithmetic [-Wunsafe-buffer-usage] const auto pos = std::search(s1.cbegin()+startpos, s1.cend(), ~~~^~~~~~~~ src/common/bspf.hxx:249:56: warning: unsafe pointer arithmetic [-Wunsafe-buffer-usage] return pos == s1.cend() ? string::npos : pos - (s1.cbegin()+startpos); ~~~^~~~~~~~ In file included from src/emucore/CartCM.cxx:21: In file included from src/emucore/CartCM.hxx:27: In file included from src/debugger/gui/CartCMWidget.hxx:28: In file included from src/debugger/gui/CartDebugWidget.hxx:30: In file included from src/gui/Widget.hxx:33: In file included from src/common/StellaKeys.hxx:22: In file included from src/common/SDL_lib.hxx:34: In file included from /usr/local/include/SDL2/SDL.h:32: In file included from /usr/local/include/SDL2/SDL_main.h:25: /usr/local/include/SDL2/SDL_stdinc.h:544:13: warning: '_p' is an unsafe pointer used for buffer access [-Wunsafe-buffer-usage] Uint32 *_p = SDL_static_cast(Uint32 *, dst); ~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /usr/local/include/SDL2/SDL_stdinc.h:553:26: note: used in pointer arithmetic here case 1: *_p++ = _val; ^~ /usr/local/include/SDL2/SDL_stdinc.h:551:26: note: used in pointer arithmetic here case 3: *_p++ = _val; SDL_FALLTHROUGH; ^~ /usr/local/include/SDL2/SDL_stdinc.h:552:26: note: used in pointer arithmetic here case 2: *_p++ = _val; SDL_FALLTHROUGH; ^~ /usr/local/include/SDL2/SDL_stdinc.h:550:26: note: used in pointer arithmetic here case 0: do { *_p++ = _val; SDL_FALLTHROUGH; ^~ 3 warnings generated. mkdir -p -p src/emucore/.deps mkdir -p -p out/src/emucore c++ -MMD -MF "src/emucore/.deps/CartCTY.d" -MQ "out/src/emucore/CartCTY.o" -MP -O2 -pipe -I/usr/X11R6/include -I/usr/local/include -x c++ -Wall -Wextra -Wno-unused-parameter -Wno-multichar -Wunused -Woverloaded-virtual -Wnon-virtual-dtor -std=c++17 -Weverything -Wno-c++98-compat-pedantic -Wno-unknown-warning-option -Wno-switch-enum -Wno-conversion -Wno-covered-switch-default -Wno-inconsistent-missing-destructor-override -Wno-float-equal -Wno-exit-time-destructors -Wno-global-constructors -Wno-weak-vtables -Wno-four-char-constants -Wno-padded -Wno-reserved-identifier -Wno-duplicate-enum -fomit-frame-pointer -DSDL_SUPPORT -D_GLIBCXX_USE_CXX11_ABI=1 -DUNIX -DBSPF_UNIX -DGUI_SUPPORT -DWINDOWED_SUPPORT -DSOUND_SUPPORT -DDEBUGGER_SUPPORT -DJOYSTICK_SUPPORT -DCHEATCODE_SUPPORT -DHTTP_LIB_SUPPORT -DPNG_SUPPORT -DZIP_SUPPORT -Isrc/emucore -Isrc/common -Isrc/common/tv_filters -Isrc/emucore/tia -Isrc/emucore/tia/frame-manager -Isrc/json -Isrc/common/repository/sqlite -I/usr/local/include -I/usr/local/include/SDL2 -I/usr/X11R6/include -D_REENTRANT -I/usr/X11R6/include -Isrc/unix -Isrc/gui -Isrc/debugger -Isrc/debugger/gui -Isrc/yacc -Isrc/cheat -Isrc/httplib -c src/emucore/CartCTY.cxx -o out/src/emucore/CartCTY.o In file included from src/emucore/CartCTY.cxx:18: In file included from src/emucore/OSystem.hxx:55: In file included from src/emucore/FSNode.hxx:23: src/common/bspf.hxx:245:37: warning: unsafe pointer arithmetic [-Wunsafe-buffer-usage] const auto pos = std::search(s1.cbegin()+startpos, s1.cend(), ~~~^~~~~~~~ src/common/bspf.hxx:249:56: warning: unsafe pointer arithmetic [-Wunsafe-buffer-usage] return pos == s1.cend() ? string::npos : pos - (s1.cbegin()+startpos); ~~~^~~~~~~~ In file included from src/emucore/CartCTY.cxx:18: In file included from src/emucore/OSystem.hxx:55: src/emucore/FSNode.hxx:513:31: warning: unsafe pointer arithmetic [-Wunsafe-buffer-usage] const char* cur = start + str.size() - 2; ~~~~~~^~~~~~~~~~~~ src/emucore/FSNode.hxx:512:19: warning: 'start' is an unsafe pointer used for buffer access [-Wunsafe-buffer-usage] const char* start = str.c_str(); ~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~ src/emucore/FSNode.hxx:513:25: note: used in pointer arithmetic here const char* cur = start + str.size() - 2; ^~~~~ src/emucore/FSNode.hxx:513:19: warning: 'cur' is an unsafe pointer used for buffer access [-Wunsafe-buffer-usage] const char* cur = start + str.size() - 2; ~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~ src/emucore/FSNode.hxx:518:14: note: used in pointer arithmetic here return cur + 1; ^~~ src/emucore/FSNode.hxx:516:11: note: used in pointer arithmetic here --cur; ^~~ In file included from src/emucore/CartCTY.cxx:22: In file included from src/emucore/CartCTY.hxx:26: In file included from src/debugger/gui/CartCTYWidget.hxx:24: In file included from src/debugger/gui/CartDebugWidget.hxx:30: In file included from src/gui/Widget.hxx:33: In file included from src/common/StellaKeys.hxx:22: In file included from src/common/SDL_lib.hxx:34: In file included from /usr/local/include/SDL2/SDL.h:32: In file included from /usr/local/include/SDL2/SDL_main.h:25: /usr/local/include/SDL2/SDL_stdinc.h:544:13: warning: '_p' is an unsafe pointer used for buffer access [-Wunsafe-buffer-usage] Uint32 *_p = SDL_static_cast(Uint32 *, dst); ~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /usr/local/include/SDL2/SDL_stdinc.h:551:26: note: used in pointer arithmetic here case 3: *_p++ = _val; SDL_FALLTHROUGH; ^~ /usr/local/include/SDL2/SDL_stdinc.h:550:26: note: used in pointer arithmetic here case 0: do { *_p++ = _val; SDL_FALLTHROUGH; ^~ /usr/local/include/SDL2/SDL_stdinc.h:552:26: note: used in pointer arithmetic here case 2: *_p++ = _val; SDL_FALLTHROUGH; ^~ /usr/local/include/SDL2/SDL_stdinc.h:553:26: note: used in pointer arithmetic here case 1: *_p++ = _val; ^~ src/emucore/CartCTY.cxx:39:23: warning: unsafe pointer arithmetic [-Wunsafe-buffer-usage] std::copy_n(image.get() + 32_KB, size - 32_KB, myTuneData.begin()); ~~~~~~^~~~~ src/emucore/CartCTY.cxx:349:35: warning: unsafe pointer arithmetic [-Wunsafe-buffer-usage] myFrequencyImage = myTuneData.data() + in.getLong(); ~~~~~~~~~~~^~~~~~ src/emucore/CartCTY.cxx:454:33: warning: unsafe pointer arithmetic [-Wunsafe-buffer-usage] myFrequencyImage = myTuneData.data() + (index << 12); ~~~~~~~~~~~^~~~~~ src/emucore/CartCTY.cxx:497:16: warning: unsafe buffer access [-Wunsafe-buffer-usage] uInt8 note = myFrequencyImage[songPosition + 0]; ^~~~~~~~~~~~~~~~ src/emucore/CartCTY.cxx:501:10: warning: unsafe buffer access [-Wunsafe-buffer-usage] note = myFrequencyImage[songPosition + 1]; ^~~~~~~~~~~~~~~~ src/emucore/CartCTY.cxx:505:10: warning: unsafe buffer access [-Wunsafe-buffer-usage] note = myFrequencyImage[songPosition + 2]; ^~~~~~~~~~~~~~~~ src/emucore/CartCTY.cxx:529:34: warning: unsafe pointer arithmetic [-Wunsafe-buffer-usage] std::copy_n(scoreRAM.begin() + (index << 6) + 4, 60, myRAM.begin() + 4); ~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~ src/emucore/CartCTY.cxx:529:26: warning: unsafe pointer arithmetic [-Wunsafe-buffer-usage] std::copy_n(scoreRAM.begin() + (index << 6) + 4, 60, myRAM.begin() + 4); ~~~~~~~~~^~~~~~~ src/emucore/CartCTY.cxx:529:64: warning: unsafe pointer arithmetic [-Wunsafe-buffer-usage] std::copy_n(scoreRAM.begin() + (index << 6) + 4, 60, myRAM.begin() + 4); ~~~~~~^~~~~~~ src/emucore/CartCTY.cxx:551:23: warning: unsafe pointer arithmetic [-Wunsafe-buffer-usage] std::copy_n(myRAM.begin() + 4, 60, scoreRAM.begin() + (index << 6) + 4); ~~~~~~^~~~~~~ src/emucore/CartCTY.cxx:551:57: warning: unsafe pointer arithmetic [-Wunsafe-buffer-usage] std::copy_n(myRAM.begin() + 4, 60, scoreRAM.begin() + (index << 6) + 4); ~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~ src/emucore/CartCTY.cxx:551:49: warning: unsafe pointer arithmetic [-Wunsafe-buffer-usage] std::copy_n(myRAM.begin() + 4, 60, scoreRAM.begin() + (index << 6) + 4); ~~~~~~~~~^~~~~~~ 18 warnings generated. mkdir -p -p src/emucore/.deps mkdir -p -p out/src/emucore c++ -MMD -MF "src/emucore/.deps/CartCV.d" -MQ "out/src/emucore/CartCV.o" -MP -O2 -pipe -I/usr/X11R6/include -I/usr/local/include -x c++ -Wall -Wextra -Wno-unused-parameter -Wno-multichar -Wunused -Woverloaded-virtual -Wnon-virtual-dtor -std=c++17 -Weverything -Wno-c++98-compat-pedantic -Wno-unknown-warning-option -Wno-switch-enum -Wno-conversion -Wno-covered-switch-default -Wno-inconsistent-missing-destructor-override -Wno-float-equal -Wno-exit-time-destructors -Wno-global-constructors -Wno-weak-vtables -Wno-four-char-constants -Wno-padded -Wno-reserved-identifier -Wno-duplicate-enum -fomit-frame-pointer -DSDL_SUPPORT -D_GLIBCXX_USE_CXX11_ABI=1 -DUNIX -DBSPF_UNIX -DGUI_SUPPORT -DWINDOWED_SUPPORT -DSOUND_SUPPORT -DDEBUGGER_SUPPORT -DJOYSTICK_SUPPORT -DCHEATCODE_SUPPORT -DHTTP_LIB_SUPPORT -DPNG_SUPPORT -DZIP_SUPPORT -Isrc/emucore -Isrc/common -Isrc/common/tv_filters -Isrc/emucore/tia -Isrc/emucore/tia/frame-manager -Isrc/json -Isrc/common/repository/sqlite -I/usr/local/include -I/usr/local/include/SDL2 -I/usr/X11R6/include -D_REENTRANT -I/usr/X11R6/include -Isrc/unix -Isrc/gui -Isrc/debugger -Isrc/debugger/gui -Isrc/yacc -Isrc/cheat -Isrc/httplib -c src/emucore/CartCV.cxx -o out/src/emucore/CartCV.o In file included from src/emucore/CartCV.cxx:18: In file included from src/emucore/System.hxx:26: src/common/bspf.hxx:245:37: warning: unsafe pointer arithmetic [-Wunsafe-buffer-usage] const auto pos = std::search(s1.cbegin()+startpos, s1.cend(), ~~~^~~~~~~~ src/common/bspf.hxx:249:56: warning: unsafe pointer arithmetic [-Wunsafe-buffer-usage] return pos == s1.cend() ? string::npos : pos - (s1.cbegin()+startpos); ~~~^~~~~~~~ In file included from src/emucore/CartCV.cxx:19: In file included from src/emucore/CartCV.hxx:24: In file included from src/emucore/CartEnhanced.hxx:27: In file included from src/debugger/gui/CartEnhancedWidget.hxx:31: In file included from src/debugger/gui/CartDebugWidget.hxx:30: In file included from src/gui/Widget.hxx:33: In file included from src/common/StellaKeys.hxx:22: In file included from src/common/SDL_lib.hxx:34: In file included from /usr/local/include/SDL2/SDL.h:32: In file included from /usr/local/include/SDL2/SDL_main.h:25: /usr/local/include/SDL2/SDL_stdinc.h:544:13: warning: '_p' is an unsafe pointer used for buffer access [-Wunsafe-buffer-usage] Uint32 *_p = SDL_static_cast(Uint32 *, dst); ~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /usr/local/include/SDL2/SDL_stdinc.h:552:26: note: used in pointer arithmetic here case 2: *_p++ = _val; SDL_FALLTHROUGH; ^~ /usr/local/include/SDL2/SDL_stdinc.h:550:26: note: used in pointer arithmetic here case 0: do { *_p++ = _val; SDL_FALLTHROUGH; ^~ /usr/local/include/SDL2/SDL_stdinc.h:551:26: note: used in pointer arithmetic here case 3: *_p++ = _val; SDL_FALLTHROUGH; ^~ /usr/local/include/SDL2/SDL_stdinc.h:553:26: note: used in pointer arithmetic here case 1: *_p++ = _val; ^~ src/emucore/CartCV.cxx:37:23: warning: unsafe pointer arithmetic [-Wunsafe-buffer-usage] std::copy_n(image.get() + 2_KB, 2_KB, myImage.get()); ~~~~~~^~~~~ 4 warnings generated. mkdir -p -p src/emucore/.deps mkdir -p -p out/src/emucore c++ -MMD -MF "src/emucore/.deps/CartDPC.d" -MQ "out/src/emucore/CartDPC.o" -MP -O2 -pipe -I/usr/X11R6/include -I/usr/local/include -x c++ -Wall -Wextra -Wno-unused-parameter -Wno-multichar -Wunused -Woverloaded-virtual -Wnon-virtual-dtor -std=c++17 -Weverything -Wno-c++98-compat-pedantic -Wno-unknown-warning-option -Wno-switch-enum -Wno-conversion -Wno-covered-switch-default -Wno-inconsistent-missing-destructor-override -Wno-float-equal -Wno-exit-time-destructors -Wno-global-constructors -Wno-weak-vtables -Wno-four-char-constants -Wno-padded -Wno-reserved-identifier -Wno-duplicate-enum -fomit-frame-pointer -DSDL_SUPPORT -D_GLIBCXX_USE_CXX11_ABI=1 -DUNIX -DBSPF_UNIX -DGUI_SUPPORT -DWINDOWED_SUPPORT -DSOUND_SUPPORT -DDEBUGGER_SUPPORT -DJOYSTICK_SUPPORT -DCHEATCODE_SUPPORT -DHTTP_LIB_SUPPORT -DPNG_SUPPORT -DZIP_SUPPORT -Isrc/emucore -Isrc/common -Isrc/common/tv_filters -Isrc/emucore/tia -Isrc/emucore/tia/frame-manager -Isrc/json -Isrc/common/repository/sqlite -I/usr/local/include -I/usr/local/include/SDL2 -I/usr/X11R6/include -D_REENTRANT -I/usr/X11R6/include -Isrc/unix -Isrc/gui -Isrc/debugger -Isrc/debugger/gui -Isrc/yacc -Isrc/cheat -Isrc/httplib -c src/emucore/CartDPC.cxx -o out/src/emucore/CartDPC.o In file included from src/emucore/CartDPC.cxx:18: In file included from src/emucore/Settings.hxx:23: In file included from src/common/Variant.hxx:21: In file included from src/common/Rect.hxx:26: src/common/bspf.hxx:245:37: warning: unsafe pointer arithmetic [-Wunsafe-buffer-usage] const auto pos = std::search(s1.cbegin()+startpos, s1.cend(), ~~~^~~~~~~~ src/common/bspf.hxx:249:56: warning: unsafe pointer arithmetic [-Wunsafe-buffer-usage] return pos == s1.cend() ? string::npos : pos - (s1.cbegin()+startpos); ~~~^~~~~~~~ In file included from src/emucore/CartDPC.cxx:21: In file included from src/emucore/CartDPC.hxx:21: In file included from src/emucore/CartF8.hxx:21: In file included from src/emucore/CartEnhanced.hxx:27: In file included from src/debugger/gui/CartEnhancedWidget.hxx:31: In file included from src/debugger/gui/CartDebugWidget.hxx:30: In file included from src/gui/Widget.hxx:33: In file included from src/common/StellaKeys.hxx:22: In file included from src/common/SDL_lib.hxx:34: In file included from /usr/local/include/SDL2/SDL.h:32: In file included from /usr/local/include/SDL2/SDL_main.h:25: /usr/local/include/SDL2/SDL_stdinc.h:544:13: warning: '_p' is an unsafe pointer used for buffer access [-Wunsafe-buffer-usage] Uint32 *_p = SDL_static_cast(Uint32 *, dst); ~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /usr/local/include/SDL2/SDL_stdinc.h:553:26: note: used in pointer arithmetic here case 1: *_p++ = _val; ^~ /usr/local/include/SDL2/SDL_stdinc.h:550:26: note: used in pointer arithmetic here case 0: do { *_p++ = _val; SDL_FALLTHROUGH; ^~ /usr/local/include/SDL2/SDL_stdinc.h:551:26: note: used in pointer arithmetic here case 3: *_p++ = _val; SDL_FALLTHROUGH; ^~ /usr/local/include/SDL2/SDL_stdinc.h:552:26: note: used in pointer arithmetic here case 2: *_p++ = _val; SDL_FALLTHROUGH; ^~ src/emucore/CartDPC.cxx:65:28: warning: unsafe pointer arithmetic [-Wunsafe-buffer-usage] myDisplayImage = myImage.get() + 8_KB; ~~~~~~~~^~~~~ src/emucore/CartDPC.cxx:213:18: warning: unsafe buffer access [-Wunsafe-buffer-usage] result = myDisplayImage[2047 - myCounters[index]]; ^~~~~~~~~~~~~~ src/emucore/CartDPC.cxx:220:18: warning: unsafe buffer access [-Wunsafe-buffer-usage] result = myDisplayImage[2047 - myCounters[index]] & myFlags[index]; ^~~~~~~~~~~~~~ 6 warnings generated. mkdir -p -p src/emucore/.deps mkdir -p -p out/src/emucore c++ -MMD -MF "src/emucore/.deps/CartDPCPlus.d" -MQ "out/src/emucore/CartDPCPlus.o" -MP -O2 -pipe -I/usr/X11R6/include -I/usr/local/include -x c++ -Wall -Wextra -Wno-unused-parameter -Wno-multichar -Wunused -Woverloaded-virtual -Wnon-virtual-dtor -std=c++17 -Weverything -Wno-c++98-compat-pedantic -Wno-unknown-warning-option -Wno-switch-enum -Wno-conversion -Wno-covered-switch-default -Wno-inconsistent-missing-destructor-override -Wno-float-equal -Wno-exit-time-destructors -Wno-global-constructors -Wno-weak-vtables -Wno-four-char-constants -Wno-padded -Wno-reserved-identifier -Wno-duplicate-enum -fomit-frame-pointer -DSDL_SUPPORT -D_GLIBCXX_USE_CXX11_ABI=1 -DUNIX -DBSPF_UNIX -DGUI_SUPPORT -DWINDOWED_SUPPORT -DSOUND_SUPPORT -DDEBUGGER_SUPPORT -DJOYSTICK_SUPPORT -DCHEATCODE_SUPPORT -DHTTP_LIB_SUPPORT -DPNG_SUPPORT -DZIP_SUPPORT -Isrc/emucore -Isrc/common -Isrc/common/tv_filters -Isrc/emucore/tia -Isrc/emucore/tia/frame-manager -Isrc/json -Isrc/common/repository/sqlite -I/usr/local/include -I/usr/local/include/SDL2 -I/usr/X11R6/include -D_REENTRANT -I/usr/X11R6/include -Isrc/unix -Isrc/gui -Isrc/debugger -Isrc/debugger/gui -Isrc/yacc -Isrc/cheat -Isrc/httplib -c src/emucore/CartDPCPlus.cxx -o out/src/emucore/CartDPCPlus.o In file included from src/emucore/CartDPCPlus.cxx:19: In file included from src/debugger/Debugger.hxx:46: In file included from src/common/Base.hxx:24: src/common/bspf.hxx:245:37: warning: unsafe pointer arithmetic [-Wunsafe-buffer-usage] const auto pos = std::search(s1.cbegin()+startpos, s1.cend(), ~~~^~~~~~~~ src/common/bspf.hxx:249:56: warning: unsafe pointer arithmetic [-Wunsafe-buffer-usage] return pos == s1.cend() ? string::npos : pos - (s1.cbegin()+startpos); ~~~^~~~~~~~ In file included from src/emucore/CartDPCPlus.cxx:19: In file included from src/debugger/Debugger.hxx:48: In file included from src/gui/DialogContainer.hxx:26: In file included from src/common/StellaKeys.hxx:22: In file included from src/common/SDL_lib.hxx:34: In file included from /usr/local/include/SDL2/SDL.h:32: In file included from /usr/local/include/SDL2/SDL_main.h:25: /usr/local/include/SDL2/SDL_stdinc.h:544:13: warning: '_p' is an unsafe pointer used for buffer access [-Wunsafe-buffer-usage] Uint32 *_p = SDL_static_cast(Uint32 *, dst); ~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /usr/local/include/SDL2/SDL_stdinc.h:553:26: note: used in pointer arithmetic here case 1: *_p++ = _val; ^~ /usr/local/include/SDL2/SDL_stdinc.h:550:26: note: used in pointer arithmetic here case 0: do { *_p++ = _val; SDL_FALLTHROUGH; ^~ /usr/local/include/SDL2/SDL_stdinc.h:551:26: note: used in pointer arithmetic here case 3: *_p++ = _val; SDL_FALLTHROUGH; ^~ /usr/local/include/SDL2/SDL_stdinc.h:552:26: note: used in pointer arithmetic here case 2: *_p++ = _val; SDL_FALLTHROUGH; ^~ In file included from src/emucore/CartDPCPlus.cxx:24: In file included from src/emucore/tia/TIA.hxx:37: src/emucore/tia/Missile.hxx:170:7: warning: unsafe buffer access [-Wunsafe-buffer-usage] if (myDecodes[myCounter] && !myResmp) { ^~~~~~~~~ src/emucore/tia/Missile.hxx:173:14: warning: unsafe buffer access [-Wunsafe-buffer-usage] myCopy = myDecodes[myCounter]; ^~~~~~~~~ In file included from src/emucore/CartDPCPlus.cxx:24: In file included from src/emucore/tia/TIA.hxx:38: src/emucore/tia/Player.hxx:186:7: warning: unsafe buffer access [-Wunsafe-buffer-usage] if (myDecodes[myCounter]) { ^~~~~~~~~ src/emucore/tia/Player.hxx:190:14: warning: unsafe buffer access [-Wunsafe-buffer-usage] myCopy = myDecodes[myCounter]; ^~~~~~~~~ src/emucore/CartDPCPlus.cxx:38:42: warning: unsafe pointer arithmetic [-Wunsafe-buffer-usage] std::copy_n(image.get(), size, myImage.get() + (32_KB - mySize)); ~~~~~~~~^~~~~ src/emucore/CartDPCPlus.cxx:42:28: warning: unsafe pointer arithmetic [-Wunsafe-buffer-usage] myProgramImage = myImage.get() + 3_KB; ~~~~~~~~^~~~~ src/emucore/CartDPCPlus.cxx:45:29: warning: unsafe pointer arithmetic [-Wunsafe-buffer-usage] myDisplayImage = myDPCRAM.data() + 3_KB; ~~~~~~~~~^~~~~~ src/emucore/CartDPCPlus.cxx:48:22: warning: unsafe pointer arithmetic [-Wunsafe-buffer-usage] myFrequencyImage = myDisplayImage + 4_KB; ^~~~~~~~~~~~~~ src/emucore/CartDPCPlus.cxx:110:15: warning: unsafe pointer arithmetic [-Wunsafe-buffer-usage] std::copy_n(myProgramImage + 24_KB, 5_KB, myDisplayImage); ^~~~~~~~~~~~~~ src/emucore/CartDPCPlus.cxx:194:9: warning: unsafe buffer access [-Wunsafe-buffer-usage] myDisplayImage[myCounters[myParameter[2] & 0x7]+i] = myProgramImage[ROMdata+i]; ^~~~~~~~~~~~~~ src/emucore/CartDPCPlus.cxx:194:62: warning: unsafe buffer access [-Wunsafe-buffer-usage] myDisplayImage[myCounters[myParameter[2] & 0x7]+i] = myProgramImage[ROMdata+i]; ^~~~~~~~~~~~~~ src/emucore/CartDPCPlus.cxx:199:9: warning: unsafe buffer access [-Wunsafe-buffer-usage] myDisplayImage[myCounters[myParameter[2]]+i] = myParameter[0]; ^~~~~~~~~~~~~~ src/emucore/CartDPCPlus.cxx:238:27: warning: unsafe buffer access [-Wunsafe-buffer-usage] const uInt8 peekvalue = myProgramImage[myBankOffset + address]; ^~~~~~~~~~~~~~ src/emucore/CartDPCPlus.cxx:301:17: warning: unsafe buffer access [-Wunsafe-buffer-usage] myDisplayImage[(myMusicWaveforms[0] << 5) + (myMusicCounters[0] >> 27)] + ^~~~~~~~~~~~~~ src/emucore/CartDPCPlus.cxx:302:17: warning: unsafe buffer access [-Wunsafe-buffer-usage] myDisplayImage[(myMusicWaveforms[1] << 5) + (myMusicCounters[1] >> 27)] + ^~~~~~~~~~~~~~ src/emucore/CartDPCPlus.cxx:303:17: warning: unsafe buffer access [-Wunsafe-buffer-usage] myDisplayImage[(myMusicWaveforms[2] << 5) + (myMusicCounters[2] >> 27)]; ^~~~~~~~~~~~~~ src/emucore/CartDPCPlus.cxx:322:18: warning: unsafe buffer access [-Wunsafe-buffer-usage] result = myDisplayImage[myCounters[index]]; ^~~~~~~~~~~~~~ src/emucore/CartDPCPlus.cxx:330:18: warning: unsafe buffer access [-Wunsafe-buffer-usage] result = myDisplayImage[myCounters[index]] & flag; ^~~~~~~~~~~~~~ src/emucore/CartDPCPlus.cxx:338:18: warning: unsafe buffer access [-Wunsafe-buffer-usage] result = myDisplayImage[myFractionalCounters[index] >> 8]; ^~~~~~~~~~~~~~ src/emucore/CartDPCPlus.cxx:505:9: warning: unsafe buffer access [-Wunsafe-buffer-usage] myDisplayImage[myCounters[index]] = value; ^~~~~~~~~~~~~~ src/emucore/CartDPCPlus.cxx:549:43: warning: unsafe buffer access [-Wunsafe-buffer-usage] myMusicFrequencies[index-5] = myFrequencyImage[(value<<2)] + ^~~~~~~~~~~~~~~~ src/emucore/CartDPCPlus.cxx:550:14: warning: unsafe buffer access [-Wunsafe-buffer-usage] (myFrequencyImage[(value<<2)+1]<<8) + ^~~~~~~~~~~~~~~~ src/emucore/CartDPCPlus.cxx:551:14: warning: unsafe buffer access [-Wunsafe-buffer-usage] (myFrequencyImage[(value<<2)+2]<<16) + ^~~~~~~~~~~~~~~~ src/emucore/CartDPCPlus.cxx:552:14: warning: unsafe buffer access [-Wunsafe-buffer-usage] (myFrequencyImage[(value<<2)+3]<<24); ^~~~~~~~~~~~~~~~ src/emucore/CartDPCPlus.cxx:564:9: warning: unsafe buffer access [-Wunsafe-buffer-usage] myDisplayImage[myCounters[index]] = value; ^~~~~~~~~~~~~~ src/emucore/CartDPCPlus.cxx:657:5: warning: unsafe buffer access [-Wunsafe-buffer-usage] myProgramImage[myBankOffset + (address & 0x0FFF)] = value; ^~~~~~~~~~~~~~ 29 warnings generated. mkdir -p -p src/emucore/.deps mkdir -p -p out/src/emucore c++ -MMD -MF "src/emucore/.deps/CartE0.d" -MQ "out/src/emucore/CartE0.o" -MP -O2 -pipe -I/usr/X11R6/include -I/usr/local/include -x c++ -Wall -Wextra -Wno-unused-parameter -Wno-multichar -Wunused -Woverloaded-virtual -Wnon-virtual-dtor -std=c++17 -Weverything -Wno-c++98-compat-pedantic -Wno-unknown-warning-option -Wno-switch-enum -Wno-conversion -Wno-covered-switch-default -Wno-inconsistent-missing-destructor-override -Wno-float-equal -Wno-exit-time-destructors -Wno-global-constructors -Wno-weak-vtables -Wno-four-char-constants -Wno-padded -Wno-reserved-identifier -Wno-duplicate-enum -fomit-frame-pointer -DSDL_SUPPORT -D_GLIBCXX_USE_CXX11_ABI=1 -DUNIX -DBSPF_UNIX -DGUI_SUPPORT -DWINDOWED_SUPPORT -DSOUND_SUPPORT -DDEBUGGER_SUPPORT -DJOYSTICK_SUPPORT -DCHEATCODE_SUPPORT -DHTTP_LIB_SUPPORT -DPNG_SUPPORT -DZIP_SUPPORT -Isrc/emucore -Isrc/common -Isrc/common/tv_filters -Isrc/emucore/tia -Isrc/emucore/tia/frame-manager -Isrc/json -Isrc/common/repository/sqlite -I/usr/local/include -I/usr/local/include/SDL2 -I/usr/X11R6/include -D_REENTRANT -I/usr/X11R6/include -Isrc/unix -Isrc/gui -Isrc/debugger -Isrc/debugger/gui -Isrc/yacc -Isrc/cheat -Isrc/httplib -c src/emucore/CartE0.cxx -o out/src/emucore/CartE0.o In file included from src/emucore/CartE0.cxx:18: In file included from src/emucore/System.hxx:26: src/common/bspf.hxx:245:37: warning: unsafe pointer arithmetic [-Wunsafe-buffer-usage] const auto pos = std::search(s1.cbegin()+startpos, s1.cend(), ~~~^~~~~~~~ src/common/bspf.hxx:249:56: warning: unsafe pointer arithmetic [-Wunsafe-buffer-usage] return pos == s1.cend() ? string::npos : pos - (s1.cbegin()+startpos); ~~~^~~~~~~~ In file included from src/emucore/CartE0.cxx:19: In file included from src/emucore/CartE0.hxx:24: In file included from src/emucore/CartEnhanced.hxx:27: In file included from src/debugger/gui/CartEnhancedWidget.hxx:31: In file included from src/debugger/gui/CartDebugWidget.hxx:30: In file included from src/gui/Widget.hxx:33: In file included from src/common/StellaKeys.hxx:22: In file included from src/common/SDL_lib.hxx:34: In file included from /usr/local/include/SDL2/SDL.h:32: In file included from /usr/local/include/SDL2/SDL_main.h:25: /usr/local/include/SDL2/SDL_stdinc.h:544:13: warning: '_p' is an unsafe pointer used for buffer access [-Wunsafe-buffer-usage] Uint32 *_p = SDL_static_cast(Uint32 *, dst); ~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /usr/local/include/SDL2/SDL_stdinc.h:553:26: note: used in pointer arithmetic here case 1: *_p++ = _val; ^~ /usr/local/include/SDL2/SDL_stdinc.h:552:26: note: used in pointer arithmetic here case 2: *_p++ = _val; SDL_FALLTHROUGH; ^~ /usr/local/include/SDL2/SDL_stdinc.h:551:26: note: used in pointer arithmetic here case 3: *_p++ = _val; SDL_FALLTHROUGH; ^~ /usr/local/include/SDL2/SDL_stdinc.h:550:26: note: used in pointer arithmetic here case 0: do { *_p++ = _val; SDL_FALLTHROUGH; ^~ 3 warnings generated. mkdir -p -p src/emucore/.deps mkdir -p -p out/src/emucore c++ -MMD -MF "src/emucore/.deps/CartE7.d" -MQ "out/src/emucore/CartE7.o" -MP -O2 -pipe -I/usr/X11R6/include -I/usr/local/include -x c++ -Wall -Wextra -Wno-unused-parameter -Wno-multichar -Wunused -Woverloaded-virtual -Wnon-virtual-dtor -std=c++17 -Weverything -Wno-c++98-compat-pedantic -Wno-unknown-warning-option -Wno-switch-enum -Wno-conversion -Wno-covered-switch-default -Wno-inconsistent-missing-destructor-override -Wno-float-equal -Wno-exit-time-destructors -Wno-global-constructors -Wno-weak-vtables -Wno-four-char-constants -Wno-padded -Wno-reserved-identifier -Wno-duplicate-enum -fomit-frame-pointer -DSDL_SUPPORT -D_GLIBCXX_USE_CXX11_ABI=1 -DUNIX -DBSPF_UNIX -DGUI_SUPPORT -DWINDOWED_SUPPORT -DSOUND_SUPPORT -DDEBUGGER_SUPPORT -DJOYSTICK_SUPPORT -DCHEATCODE_SUPPORT -DHTTP_LIB_SUPPORT -DPNG_SUPPORT -DZIP_SUPPORT -Isrc/emucore -Isrc/common -Isrc/common/tv_filters -Isrc/emucore/tia -Isrc/emucore/tia/frame-manager -Isrc/json -Isrc/common/repository/sqlite -I/usr/local/include -I/usr/local/include/SDL2 -I/usr/X11R6/include -D_REENTRANT -I/usr/X11R6/include -Isrc/unix -Isrc/gui -Isrc/debugger -Isrc/debugger/gui -Isrc/yacc -Isrc/cheat -Isrc/httplib -c src/emucore/CartE7.cxx -o out/src/emucore/CartE7.o In file included from src/emucore/CartE7.cxx:18: In file included from src/emucore/System.hxx:26: src/common/bspf.hxx:245:37: warning: unsafe pointer arithmetic [-Wunsafe-buffer-usage] const auto pos = std::search(s1.cbegin()+startpos, s1.cend(), ~~~^~~~~~~~ src/common/bspf.hxx:249:56: warning: unsafe pointer arithmetic [-Wunsafe-buffer-usage] return pos == s1.cend() ? string::npos : pos - (s1.cbegin()+startpos); ~~~^~~~~~~~ In file included from src/emucore/CartE7.cxx:19: In file included from src/emucore/CartE7.hxx:26: In file included from src/debugger/gui/CartE7Widget.hxx:24: In file included from src/debugger/gui/CartDebugWidget.hxx:30: In file included from src/gui/Widget.hxx:33: In file included from src/common/StellaKeys.hxx:22: In file included from src/common/SDL_lib.hxx:34: In file included from /usr/local/include/SDL2/SDL.h:32: In file included from /usr/local/include/SDL2/SDL_main.h:25: /usr/local/include/SDL2/SDL_stdinc.h:544:13: warning: '_p' is an unsafe pointer used for buffer access [-Wunsafe-buffer-usage] Uint32 *_p = SDL_static_cast(Uint32 *, dst); ~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /usr/local/include/SDL2/SDL_stdinc.h:551:26: note: used in pointer arithmetic here case 3: *_p++ = _val; SDL_FALLTHROUGH; ^~ /usr/local/include/SDL2/SDL_stdinc.h:550:26: note: used in pointer arithmetic here case 0: do { *_p++ = _val; SDL_FALLTHROUGH; ^~ /usr/local/include/SDL2/SDL_stdinc.h:553:26: note: used in pointer arithmetic here case 1: *_p++ = _val; ^~ /usr/local/include/SDL2/SDL_stdinc.h:552:26: note: used in pointer arithmetic here case 2: *_p++ = _val; SDL_FALLTHROUGH; ^~ src/emucore/CartE7.cxx:61:33: warning: 'directData' is an unsafe pointer used for buffer access [-Wunsafe-buffer-usage] uInt16 directOffset, uInt8* directData, uInt16 codeOffset, ~~~~~~~^~~~~~~~~~ src/emucore/CartE7.cxx:71:32: note: used in buffer access here access.directPeekBase = &directData[directOffset + (addr & addrMask)]; ^~~~~~~~~~ 4 warnings generated. mkdir -p -p src/emucore/.deps mkdir -p -p out/src/emucore c++ -MMD -MF "src/emucore/.deps/CartEF.d" -MQ "out/src/emucore/CartEF.o" -MP -O2 -pipe -I/usr/X11R6/include -I/usr/local/include -x c++ -Wall -Wextra -Wno-unused-parameter -Wno-multichar -Wunused -Woverloaded-virtual -Wnon-virtual-dtor -std=c++17 -Weverything -Wno-c++98-compat-pedantic -Wno-unknown-warning-option -Wno-switch-enum -Wno-conversion -Wno-covered-switch-default -Wno-inconsistent-missing-destructor-override -Wno-float-equal -Wno-exit-time-destructors -Wno-global-constructors -Wno-weak-vtables -Wno-four-char-constants -Wno-padded -Wno-reserved-identifier -Wno-duplicate-enum -fomit-frame-pointer -DSDL_SUPPORT -D_GLIBCXX_USE_CXX11_ABI=1 -DUNIX -DBSPF_UNIX -DGUI_SUPPORT -DWINDOWED_SUPPORT -DSOUND_SUPPORT -DDEBUGGER_SUPPORT -DJOYSTICK_SUPPORT -DCHEATCODE_SUPPORT -DHTTP_LIB_SUPPORT -DPNG_SUPPORT -DZIP_SUPPORT -Isrc/emucore -Isrc/common -Isrc/common/tv_filters -Isrc/emucore/tia -Isrc/emucore/tia/frame-manager -Isrc/json -Isrc/common/repository/sqlite -I/usr/local/include -I/usr/local/include/SDL2 -I/usr/X11R6/include -D_REENTRANT -I/usr/X11R6/include -Isrc/unix -Isrc/gui -Isrc/debugger -Isrc/debugger/gui -Isrc/yacc -Isrc/cheat -Isrc/httplib -c src/emucore/CartEF.cxx -o out/src/emucore/CartEF.o In file included from src/emucore/CartEF.cxx:18: In file included from src/emucore/System.hxx:26: src/common/bspf.hxx:245:37: warning: unsafe pointer arithmetic [-Wunsafe-buffer-usage] const auto pos = std::search(s1.cbegin()+startpos, s1.cend(), ~~~^~~~~~~~ src/common/bspf.hxx:249:56: warning: unsafe pointer arithmetic [-Wunsafe-buffer-usage] return pos == s1.cend() ? string::npos : pos - (s1.cbegin()+startpos); ~~~^~~~~~~~ In file included from src/emucore/CartEF.cxx:19: In file included from src/emucore/CartEF.hxx:24: In file included from src/emucore/CartEnhanced.hxx:27: In file included from src/debugger/gui/CartEnhancedWidget.hxx:31: In file included from src/debugger/gui/CartDebugWidget.hxx:30: In file included from src/gui/Widget.hxx:33: In file included from src/common/StellaKeys.hxx:22: In file included from src/common/SDL_lib.hxx:34: In file included from /usr/local/include/SDL2/SDL.h:32: In file included from /usr/local/include/SDL2/SDL_main.h:25: /usr/local/include/SDL2/SDL_stdinc.h:544:13: warning: '_p' is an unsafe pointer used for buffer access [-Wunsafe-buffer-usage] Uint32 *_p = SDL_static_cast(Uint32 *, dst); ~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /usr/local/include/SDL2/SDL_stdinc.h:550:26: note: used in pointer arithmetic here case 0: do { *_p++ = _val; SDL_FALLTHROUGH; ^~ /usr/local/include/SDL2/SDL_stdinc.h:553:26: note: used in pointer arithmetic here case 1: *_p++ = _val; ^~ /usr/local/include/SDL2/SDL_stdinc.h:551:26: note: used in pointer arithmetic here case 3: *_p++ = _val; SDL_FALLTHROUGH; ^~ /usr/local/include/SDL2/SDL_stdinc.h:552:26: note: used in pointer arithmetic here case 2: *_p++ = _val; SDL_FALLTHROUGH; ^~ 3 warnings generated. mkdir -p -p src/emucore/.deps mkdir -p -p out/src/emucore c++ -MMD -MF "src/emucore/.deps/CartEFSC.d" -MQ "out/src/emucore/CartEFSC.o" -MP -O2 -pipe -I/usr/X11R6/include -I/usr/local/include -x c++ -Wall -Wextra -Wno-unused-parameter -Wno-multichar -Wunused -Woverloaded-virtual -Wnon-virtual-dtor -std=c++17 -Weverything -Wno-c++98-compat-pedantic -Wno-unknown-warning-option -Wno-switch-enum -Wno-conversion -Wno-covered-switch-default -Wno-inconsistent-missing-destructor-override -Wno-float-equal -Wno-exit-time-destructors -Wno-global-constructors -Wno-weak-vtables -Wno-four-char-constants -Wno-padded -Wno-reserved-identifier -Wno-duplicate-enum -fomit-frame-pointer -DSDL_SUPPORT -D_GLIBCXX_USE_CXX11_ABI=1 -DUNIX -DBSPF_UNIX -DGUI_SUPPORT -DWINDOWED_SUPPORT -DSOUND_SUPPORT -DDEBUGGER_SUPPORT -DJOYSTICK_SUPPORT -DCHEATCODE_SUPPORT -DHTTP_LIB_SUPPORT -DPNG_SUPPORT -DZIP_SUPPORT -Isrc/emucore -Isrc/common -Isrc/common/tv_filters -Isrc/emucore/tia -Isrc/emucore/tia/frame-manager -Isrc/json -Isrc/common/repository/sqlite -I/usr/local/include -I/usr/local/include/SDL2 -I/usr/X11R6/include -D_REENTRANT -I/usr/X11R6/include -Isrc/unix -Isrc/gui -Isrc/debugger -Isrc/debugger/gui -Isrc/yacc -Isrc/cheat -Isrc/httplib -c src/emucore/CartEFSC.cxx -o out/src/emucore/CartEFSC.o In file included from src/emucore/CartEFSC.cxx:18: In file included from src/emucore/System.hxx:26: src/common/bspf.hxx:245:37: warning: unsafe pointer arithmetic [-Wunsafe-buffer-usage] const auto pos = std::search(s1.cbegin()+startpos, s1.cend(), ~~~^~~~~~~~ src/common/bspf.hxx:249:56: warning: unsafe pointer arithmetic [-Wunsafe-buffer-usage] return pos == s1.cend() ? string::npos : pos - (s1.cbegin()+startpos); ~~~^~~~~~~~ In file included from src/emucore/CartEFSC.cxx:19: In file included from src/emucore/CartEFSC.hxx:24: In file included from src/emucore/CartEF.hxx:24: In file included from src/emucore/CartEnhanced.hxx:27: In file included from src/debugger/gui/CartEnhancedWidget.hxx:31: In file included from src/debugger/gui/CartDebugWidget.hxx:30: In file included from src/gui/Widget.hxx:33: In file included from src/common/StellaKeys.hxx:22: In file included from src/common/SDL_lib.hxx:34: In file included from /usr/local/include/SDL2/SDL.h:32: In file included from /usr/local/include/SDL2/SDL_main.h:25: /usr/local/include/SDL2/SDL_stdinc.h:544:13: warning: '_p' is an unsafe pointer used for buffer access [-Wunsafe-buffer-usage] Uint32 *_p = SDL_static_cast(Uint32 *, dst); ~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /usr/local/include/SDL2/SDL_stdinc.h:550:26: note: used in pointer arithmetic here case 0: do { *_p++ = _val; SDL_FALLTHROUGH; ^~ /usr/local/include/SDL2/SDL_stdinc.h:552:26: note: used in pointer arithmetic here case 2: *_p++ = _val; SDL_FALLTHROUGH; ^~ /usr/local/include/SDL2/SDL_stdinc.h:551:26: note: used in pointer arithmetic here case 3: *_p++ = _val; SDL_FALLTHROUGH; ^~ /usr/local/include/SDL2/SDL_stdinc.h:553:26: note: used in pointer arithmetic here case 1: *_p++ = _val; ^~ 3 warnings generated. mkdir -p -p src/emucore/.deps mkdir -p -p out/src/emucore c++ -MMD -MF "src/emucore/.deps/CartBF.d" -MQ "out/src/emucore/CartBF.o" -MP -O2 -pipe -I/usr/X11R6/include -I/usr/local/include -x c++ -Wall -Wextra -Wno-unused-parameter -Wno-multichar -Wunused -Woverloaded-virtual -Wnon-virtual-dtor -std=c++17 -Weverything -Wno-c++98-compat-pedantic -Wno-unknown-warning-option -Wno-switch-enum -Wno-conversion -Wno-covered-switch-default -Wno-inconsistent-missing-destructor-override -Wno-float-equal -Wno-exit-time-destructors -Wno-global-constructors -Wno-weak-vtables -Wno-four-char-constants -Wno-padded -Wno-reserved-identifier -Wno-duplicate-enum -fomit-frame-pointer -DSDL_SUPPORT -D_GLIBCXX_USE_CXX11_ABI=1 -DUNIX -DBSPF_UNIX -DGUI_SUPPORT -DWINDOWED_SUPPORT -DSOUND_SUPPORT -DDEBUGGER_SUPPORT -DJOYSTICK_SUPPORT -DCHEATCODE_SUPPORT -DHTTP_LIB_SUPPORT -DPNG_SUPPORT -DZIP_SUPPORT -Isrc/emucore -Isrc/common -Isrc/common/tv_filters -Isrc/emucore/tia -Isrc/emucore/tia/frame-manager -Isrc/json -Isrc/common/repository/sqlite -I/usr/local/include -I/usr/local/include/SDL2 -I/usr/X11R6/include -D_REENTRANT -I/usr/X11R6/include -Isrc/unix -Isrc/gui -Isrc/debugger -Isrc/debugger/gui -Isrc/yacc -Isrc/cheat -Isrc/httplib -c src/emucore/CartBF.cxx -o out/src/emucore/CartBF.o In file included from src/emucore/CartBF.cxx:18: In file included from src/emucore/System.hxx:26: src/common/bspf.hxx:245:37: warning: unsafe pointer arithmetic [-Wunsafe-buffer-usage] const auto pos = std::search(s1.cbegin()+startpos, s1.cend(), ~~~^~~~~~~~ src/common/bspf.hxx:249:56: warning: unsafe pointer arithmetic [-Wunsafe-buffer-usage] return pos == s1.cend() ? string::npos : pos - (s1.cbegin()+startpos); ~~~^~~~~~~~ In file included from src/emucore/CartBF.cxx:19: In file included from src/emucore/CartBF.hxx:24: In file included from src/emucore/CartEnhanced.hxx:27: In file included from src/debugger/gui/CartEnhancedWidget.hxx:31: In file included from src/debugger/gui/CartDebugWidget.hxx:30: In file included from src/gui/Widget.hxx:33: In file included from src/common/StellaKeys.hxx:22: In file included from src/common/SDL_lib.hxx:34: In file included from /usr/local/include/SDL2/SDL.h:32: In file included from /usr/local/include/SDL2/SDL_main.h:25: /usr/local/include/SDL2/SDL_stdinc.h:544:13: warning: '_p' is an unsafe pointer used for buffer access [-Wunsafe-buffer-usage] Uint32 *_p = SDL_static_cast(Uint32 *, dst); ~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /usr/local/include/SDL2/SDL_stdinc.h:553:26: note: used in pointer arithmetic here case 1: *_p++ = _val; ^~ /usr/local/include/SDL2/SDL_stdinc.h:550:26: note: used in pointer arithmetic here case 0: do { *_p++ = _val; SDL_FALLTHROUGH; ^~ /usr/local/include/SDL2/SDL_stdinc.h:552:26: note: used in pointer arithmetic here case 2: *_p++ = _val; SDL_FALLTHROUGH; ^~ /usr/local/include/SDL2/SDL_stdinc.h:551:26: note: used in pointer arithmetic here case 3: *_p++ = _val; SDL_FALLTHROUGH; ^~ 3 warnings generated. mkdir -p -p src/emucore/.deps mkdir -p -p out/src/emucore c++ -MMD -MF "src/emucore/.deps/CartBFSC.d" -MQ "out/src/emucore/CartBFSC.o" -MP -O2 -pipe -I/usr/X11R6/include -I/usr/local/include -x c++ -Wall -Wextra -Wno-unused-parameter -Wno-multichar -Wunused -Woverloaded-virtual -Wnon-virtual-dtor -std=c++17 -Weverything -Wno-c++98-compat-pedantic -Wno-unknown-warning-option -Wno-switch-enum -Wno-conversion -Wno-covered-switch-default -Wno-inconsistent-missing-destructor-override -Wno-float-equal -Wno-exit-time-destructors -Wno-global-constructors -Wno-weak-vtables -Wno-four-char-constants -Wno-padded -Wno-reserved-identifier -Wno-duplicate-enum -fomit-frame-pointer -DSDL_SUPPORT -D_GLIBCXX_USE_CXX11_ABI=1 -DUNIX -DBSPF_UNIX -DGUI_SUPPORT -DWINDOWED_SUPPORT -DSOUND_SUPPORT -DDEBUGGER_SUPPORT -DJOYSTICK_SUPPORT -DCHEATCODE_SUPPORT -DHTTP_LIB_SUPPORT -DPNG_SUPPORT -DZIP_SUPPORT -Isrc/emucore -Isrc/common -Isrc/common/tv_filters -Isrc/emucore/tia -Isrc/emucore/tia/frame-manager -Isrc/json -Isrc/common/repository/sqlite -I/usr/local/include -I/usr/local/include/SDL2 -I/usr/X11R6/include -D_REENTRANT -I/usr/X11R6/include -Isrc/unix -Isrc/gui -Isrc/debugger -Isrc/debugger/gui -Isrc/yacc -Isrc/cheat -Isrc/httplib -c src/emucore/CartBFSC.cxx -o out/src/emucore/CartBFSC.o In file included from src/emucore/CartBFSC.cxx:18: In file included from src/emucore/System.hxx:26: src/common/bspf.hxx:245:37: warning: unsafe pointer arithmetic [-Wunsafe-buffer-usage] const auto pos = std::search(s1.cbegin()+startpos, s1.cend(), ~~~^~~~~~~~ src/common/bspf.hxx:249:56: warning: unsafe pointer arithmetic [-Wunsafe-buffer-usage] return pos == s1.cend() ? string::npos : pos - (s1.cbegin()+startpos); ~~~^~~~~~~~ In file included from src/emucore/CartBFSC.cxx:19: In file included from src/emucore/CartBFSC.hxx:24: In file included from src/emucore/CartBF.hxx:24: In file included from src/emucore/CartEnhanced.hxx:27: In file included from src/debugger/gui/CartEnhancedWidget.hxx:31: In file included from src/debugger/gui/CartDebugWidget.hxx:30: In file included from src/gui/Widget.hxx:33: In file included from src/common/StellaKeys.hxx:22: In file included from src/common/SDL_lib.hxx:34: In file included from /usr/local/include/SDL2/SDL.h:32: In file included from /usr/local/include/SDL2/SDL_main.h:25: /usr/local/include/SDL2/SDL_stdinc.h:544:13: warning: '_p' is an unsafe pointer used for buffer access [-Wunsafe-buffer-usage] Uint32 *_p = SDL_static_cast(Uint32 *, dst); ~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /usr/local/include/SDL2/SDL_stdinc.h:550:26: note: used in pointer arithmetic here case 0: do { *_p++ = _val; SDL_FALLTHROUGH; ^~ /usr/local/include/SDL2/SDL_stdinc.h:553:26: note: used in pointer arithmetic here case 1: *_p++ = _val; ^~ /usr/local/include/SDL2/SDL_stdinc.h:552:26: note: used in pointer arithmetic here case 2: *_p++ = _val; SDL_FALLTHROUGH; ^~ /usr/local/include/SDL2/SDL_stdinc.h:551:26: note: used in pointer arithmetic here case 3: *_p++ = _val; SDL_FALLTHROUGH; ^~ 3 warnings generated. mkdir -p -p src/emucore/.deps mkdir -p -p out/src/emucore c++ -MMD -MF "src/emucore/.deps/CartDF.d" -MQ "out/src/emucore/CartDF.o" -MP -O2 -pipe -I/usr/X11R6/include -I/usr/local/include -x c++ -Wall -Wextra -Wno-unused-parameter -Wno-multichar -Wunused -Woverloaded-virtual -Wnon-virtual-dtor -std=c++17 -Weverything -Wno-c++98-compat-pedantic -Wno-unknown-warning-option -Wno-switch-enum -Wno-conversion -Wno-covered-switch-default -Wno-inconsistent-missing-destructor-override -Wno-float-equal -Wno-exit-time-destructors -Wno-global-constructors -Wno-weak-vtables -Wno-four-char-constants -Wno-padded -Wno-reserved-identifier -Wno-duplicate-enum -fomit-frame-pointer -DSDL_SUPPORT -D_GLIBCXX_USE_CXX11_ABI=1 -DUNIX -DBSPF_UNIX -DGUI_SUPPORT -DWINDOWED_SUPPORT -DSOUND_SUPPORT -DDEBUGGER_SUPPORT -DJOYSTICK_SUPPORT -DCHEATCODE_SUPPORT -DHTTP_LIB_SUPPORT -DPNG_SUPPORT -DZIP_SUPPORT -Isrc/emucore -Isrc/common -Isrc/common/tv_filters -Isrc/emucore/tia -Isrc/emucore/tia/frame-manager -Isrc/json -Isrc/common/repository/sqlite -I/usr/local/include -I/usr/local/include/SDL2 -I/usr/X11R6/include -D_REENTRANT -I/usr/X11R6/include -Isrc/unix -Isrc/gui -Isrc/debugger -Isrc/debugger/gui -Isrc/yacc -Isrc/cheat -Isrc/httplib -c src/emucore/CartDF.cxx -o out/src/emucore/CartDF.o In file included from src/emucore/CartDF.cxx:18: In file included from src/emucore/System.hxx:26: src/common/bspf.hxx:245:37: warning: unsafe pointer arithmetic [-Wunsafe-buffer-usage] const auto pos = std::search(s1.cbegin()+startpos, s1.cend(), ~~~^~~~~~~~ src/common/bspf.hxx:249:56: warning: unsafe pointer arithmetic [-Wunsafe-buffer-usage] return pos == s1.cend() ? string::npos : pos - (s1.cbegin()+startpos); ~~~^~~~~~~~ In file included from src/emucore/CartDF.cxx:19: In file included from src/emucore/CartDF.hxx:24: In file included from src/emucore/CartEnhanced.hxx:27: In file included from src/debugger/gui/CartEnhancedWidget.hxx:31: In file included from src/debugger/gui/CartDebugWidget.hxx:30: In file included from src/gui/Widget.hxx:33: In file included from src/common/StellaKeys.hxx:22: In file included from src/common/SDL_lib.hxx:34: In file included from /usr/local/include/SDL2/SDL.h:32: In file included from /usr/local/include/SDL2/SDL_main.h:25: /usr/local/include/SDL2/SDL_stdinc.h:544:13: warning: '_p' is an unsafe pointer used for buffer access [-Wunsafe-buffer-usage] Uint32 *_p = SDL_static_cast(Uint32 *, dst); ~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /usr/local/include/SDL2/SDL_stdinc.h:552:26: note: used in pointer arithmetic here case 2: *_p++ = _val; SDL_FALLTHROUGH; ^~ /usr/local/include/SDL2/SDL_stdinc.h:553:26: note: used in pointer arithmetic here case 1: *_p++ = _val; ^~ /usr/local/include/SDL2/SDL_stdinc.h:550:26: note: used in pointer arithmetic here case 0: do { *_p++ = _val; SDL_FALLTHROUGH; ^~ /usr/local/include/SDL2/SDL_stdinc.h:551:26: note: used in pointer arithmetic here case 3: *_p++ = _val; SDL_FALLTHROUGH; ^~ 3 warnings generated. mkdir -p -p src/emucore/.deps mkdir -p -p out/src/emucore c++ -MMD -MF "src/emucore/.deps/CartDFSC.d" -MQ "out/src/emucore/CartDFSC.o" -MP -O2 -pipe -I/usr/X11R6/include -I/usr/local/include -x c++ -Wall -Wextra -Wno-unused-parameter -Wno-multichar -Wunused -Woverloaded-virtual -Wnon-virtual-dtor -std=c++17 -Weverything -Wno-c++98-compat-pedantic -Wno-unknown-warning-option -Wno-switch-enum -Wno-conversion -Wno-covered-switch-default -Wno-inconsistent-missing-destructor-override -Wno-float-equal -Wno-exit-time-destructors -Wno-global-constructors -Wno-weak-vtables -Wno-four-char-constants -Wno-padded -Wno-reserved-identifier -Wno-duplicate-enum -fomit-frame-pointer -DSDL_SUPPORT -D_GLIBCXX_USE_CXX11_ABI=1 -DUNIX -DBSPF_UNIX -DGUI_SUPPORT -DWINDOWED_SUPPORT -DSOUND_SUPPORT -DDEBUGGER_SUPPORT -DJOYSTICK_SUPPORT -DCHEATCODE_SUPPORT -DHTTP_LIB_SUPPORT -DPNG_SUPPORT -DZIP_SUPPORT -Isrc/emucore -Isrc/common -Isrc/common/tv_filters -Isrc/emucore/tia -Isrc/emucore/tia/frame-manager -Isrc/json -Isrc/common/repository/sqlite -I/usr/local/include -I/usr/local/include/SDL2 -I/usr/X11R6/include -D_REENTRANT -I/usr/X11R6/include -Isrc/unix -Isrc/gui -Isrc/debugger -Isrc/debugger/gui -Isrc/yacc -Isrc/cheat -Isrc/httplib -c src/emucore/CartDFSC.cxx -o out/src/emucore/CartDFSC.o In file included from src/emucore/CartDFSC.cxx:18: In file included from src/emucore/System.hxx:26: src/common/bspf.hxx:245:37: warning: unsafe pointer arithmetic [-Wunsafe-buffer-usage] const auto pos = std::search(s1.cbegin()+startpos, s1.cend(), ~~~^~~~~~~~ src/common/bspf.hxx:249:56: warning: unsafe pointer arithmetic [-Wunsafe-buffer-usage] return pos == s1.cend() ? string::npos : pos - (s1.cbegin()+startpos); ~~~^~~~~~~~ In file included from src/emucore/CartDFSC.cxx:19: In file included from src/emucore/CartDFSC.hxx:24: In file included from src/emucore/CartDF.hxx:24: In file included from src/emucore/CartEnhanced.hxx:27: In file included from src/debugger/gui/CartEnhancedWidget.hxx:31: In file included from src/debugger/gui/CartDebugWidget.hxx:30: In file included from src/gui/Widget.hxx:33: In file included from src/common/StellaKeys.hxx:22: In file included from src/common/SDL_lib.hxx:34: In file included from /usr/local/include/SDL2/SDL.h:32: In file included from /usr/local/include/SDL2/SDL_main.h:25: /usr/local/include/SDL2/SDL_stdinc.h:544:13: warning: '_p' is an unsafe pointer used for buffer access [-Wunsafe-buffer-usage] Uint32 *_p = SDL_static_cast(Uint32 *, dst); ~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /usr/local/include/SDL2/SDL_stdinc.h:553:26: note: used in pointer arithmetic here case 1: *_p++ = _val; ^~ /usr/local/include/SDL2/SDL_stdinc.h:551:26: note: used in pointer arithmetic here case 3: *_p++ = _val; SDL_FALLTHROUGH; ^~ /usr/local/include/SDL2/SDL_stdinc.h:552:26: note: used in pointer arithmetic here case 2: *_p++ = _val; SDL_FALLTHROUGH; ^~ /usr/local/include/SDL2/SDL_stdinc.h:550:26: note: used in pointer arithmetic here case 0: do { *_p++ = _val; SDL_FALLTHROUGH; ^~ 3 warnings generated. mkdir -p -p src/emucore/.deps mkdir -p -p out/src/emucore c++ -MMD -MF "src/emucore/.deps/CartF0.d" -MQ "out/src/emucore/CartF0.o" -MP -O2 -pipe -I/usr/X11R6/include -I/usr/local/include -x c++ -Wall -Wextra -Wno-unused-parameter -Wno-multichar -Wunused -Woverloaded-virtual -Wnon-virtual-dtor -std=c++17 -Weverything -Wno-c++98-compat-pedantic -Wno-unknown-warning-option -Wno-switch-enum -Wno-conversion -Wno-covered-switch-default -Wno-inconsistent-missing-destructor-override -Wno-float-equal -Wno-exit-time-destructors -Wno-global-constructors -Wno-weak-vtables -Wno-four-char-constants -Wno-padded -Wno-reserved-identifier -Wno-duplicate-enum -fomit-frame-pointer -DSDL_SUPPORT -D_GLIBCXX_USE_CXX11_ABI=1 -DUNIX -DBSPF_UNIX -DGUI_SUPPORT -DWINDOWED_SUPPORT -DSOUND_SUPPORT -DDEBUGGER_SUPPORT -DJOYSTICK_SUPPORT -DCHEATCODE_SUPPORT -DHTTP_LIB_SUPPORT -DPNG_SUPPORT -DZIP_SUPPORT -Isrc/emucore -Isrc/common -Isrc/common/tv_filters -Isrc/emucore/tia -Isrc/emucore/tia/frame-manager -Isrc/json -Isrc/common/repository/sqlite -I/usr/local/include -I/usr/local/include/SDL2 -I/usr/X11R6/include -D_REENTRANT -I/usr/X11R6/include -Isrc/unix -Isrc/gui -Isrc/debugger -Isrc/debugger/gui -Isrc/yacc -Isrc/cheat -Isrc/httplib -c src/emucore/CartF0.cxx -o out/src/emucore/CartF0.o In file included from src/emucore/CartF0.cxx:18: In file included from src/emucore/CartF0.hxx:21: In file included from src/emucore/CartEnhanced.hxx:23: src/common/bspf.hxx:245:37: warning: unsafe pointer arithmetic [-Wunsafe-buffer-usage] const auto pos = std::search(s1.cbegin()+startpos, s1.cend(), ~~~^~~~~~~~ src/common/bspf.hxx:249:56: warning: unsafe pointer arithmetic [-Wunsafe-buffer-usage] return pos == s1.cend() ? string::npos : pos - (s1.cbegin()+startpos); ~~~^~~~~~~~ In file included from src/emucore/CartF0.cxx:18: In file included from src/emucore/CartF0.hxx:21: In file included from src/emucore/CartEnhanced.hxx:27: In file included from src/debugger/gui/CartEnhancedWidget.hxx:31: In file included from src/debugger/gui/CartDebugWidget.hxx:30: In file included from src/gui/Widget.hxx:33: In file included from src/common/StellaKeys.hxx:22: In file included from src/common/SDL_lib.hxx:34: In file included from /usr/local/include/SDL2/SDL.h:32: In file included from /usr/local/include/SDL2/SDL_main.h:25: /usr/local/include/SDL2/SDL_stdinc.h:544:13: warning: '_p' is an unsafe pointer used for buffer access [-Wunsafe-buffer-usage] Uint32 *_p = SDL_static_cast(Uint32 *, dst); ~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /usr/local/include/SDL2/SDL_stdinc.h:553:26: note: used in pointer arithmetic here case 1: *_p++ = _val; ^~ /usr/local/include/SDL2/SDL_stdinc.h:552:26: note: used in pointer arithmetic here case 2: *_p++ = _val; SDL_FALLTHROUGH; ^~ /usr/local/include/SDL2/SDL_stdinc.h:550:26: note: used in pointer arithmetic here case 0: do { *_p++ = _val; SDL_FALLTHROUGH; ^~ /usr/local/include/SDL2/SDL_stdinc.h:551:26: note: used in pointer arithmetic here case 3: *_p++ = _val; SDL_FALLTHROUGH; ^~ 3 warnings generated. mkdir -p -p src/emucore/.deps mkdir -p -p out/src/emucore c++ -MMD -MF "src/emucore/.deps/CartF4.d" -MQ "out/src/emucore/CartF4.o" -MP -O2 -pipe -I/usr/X11R6/include -I/usr/local/include -x c++ -Wall -Wextra -Wno-unused-parameter -Wno-multichar -Wunused -Woverloaded-virtual -Wnon-virtual-dtor -std=c++17 -Weverything -Wno-c++98-compat-pedantic -Wno-unknown-warning-option -Wno-switch-enum -Wno-conversion -Wno-covered-switch-default -Wno-inconsistent-missing-destructor-override -Wno-float-equal -Wno-exit-time-destructors -Wno-global-constructors -Wno-weak-vtables -Wno-four-char-constants -Wno-padded -Wno-reserved-identifier -Wno-duplicate-enum -fomit-frame-pointer -DSDL_SUPPORT -D_GLIBCXX_USE_CXX11_ABI=1 -DUNIX -DBSPF_UNIX -DGUI_SUPPORT -DWINDOWED_SUPPORT -DSOUND_SUPPORT -DDEBUGGER_SUPPORT -DJOYSTICK_SUPPORT -DCHEATCODE_SUPPORT -DHTTP_LIB_SUPPORT -DPNG_SUPPORT -DZIP_SUPPORT -Isrc/emucore -Isrc/common -Isrc/common/tv_filters -Isrc/emucore/tia -Isrc/emucore/tia/frame-manager -Isrc/json -Isrc/common/repository/sqlite -I/usr/local/include -I/usr/local/include/SDL2 -I/usr/X11R6/include -D_REENTRANT -I/usr/X11R6/include -Isrc/unix -Isrc/gui -Isrc/debugger -Isrc/debugger/gui -Isrc/yacc -Isrc/cheat -Isrc/httplib -c src/emucore/CartF4.cxx -o out/src/emucore/CartF4.o In file included from src/emucore/CartF4.cxx:18: In file included from src/emucore/CartF4.hxx:21: In file included from src/emucore/CartEnhanced.hxx:23: src/common/bspf.hxx:245:37: warning: unsafe pointer arithmetic [-Wunsafe-buffer-usage] const auto pos = std::search(s1.cbegin()+startpos, s1.cend(), ~~~^~~~~~~~ src/common/bspf.hxx:249:56: warning: unsafe pointer arithmetic [-Wunsafe-buffer-usage] return pos == s1.cend() ? string::npos : pos - (s1.cbegin()+startpos); ~~~^~~~~~~~ In file included from src/emucore/CartF4.cxx:18: In file included from src/emucore/CartF4.hxx:21: In file included from src/emucore/CartEnhanced.hxx:27: In file included from src/debugger/gui/CartEnhancedWidget.hxx:31: In file included from src/debugger/gui/CartDebugWidget.hxx:30: In file included from src/gui/Widget.hxx:33: In file included from src/common/StellaKeys.hxx:22: In file included from src/common/SDL_lib.hxx:34: In file included from /usr/local/include/SDL2/SDL.h:32: In file included from /usr/local/include/SDL2/SDL_main.h:25: /usr/local/include/SDL2/SDL_stdinc.h:544:13: warning: '_p' is an unsafe pointer used for buffer access [-Wunsafe-buffer-usage] Uint32 *_p = SDL_static_cast(Uint32 *, dst); ~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /usr/local/include/SDL2/SDL_stdinc.h:550:26: note: used in pointer arithmetic here case 0: do { *_p++ = _val; SDL_FALLTHROUGH; ^~ /usr/local/include/SDL2/SDL_stdinc.h:553:26: note: used in pointer arithmetic here case 1: *_p++ = _val; ^~ /usr/local/include/SDL2/SDL_stdinc.h:551:26: note: used in pointer arithmetic here case 3: *_p++ = _val; SDL_FALLTHROUGH; ^~ /usr/local/include/SDL2/SDL_stdinc.h:552:26: note: used in pointer arithmetic here case 2: *_p++ = _val; SDL_FALLTHROUGH; ^~ 3 warnings generated. mkdir -p -p src/emucore/.deps mkdir -p -p out/src/emucore c++ -MMD -MF "src/emucore/.deps/CartF4SC.d" -MQ "out/src/emucore/CartF4SC.o" -MP -O2 -pipe -I/usr/X11R6/include -I/usr/local/include -x c++ -Wall -Wextra -Wno-unused-parameter -Wno-multichar -Wunused -Woverloaded-virtual -Wnon-virtual-dtor -std=c++17 -Weverything -Wno-c++98-compat-pedantic -Wno-unknown-warning-option -Wno-switch-enum -Wno-conversion -Wno-covered-switch-default -Wno-inconsistent-missing-destructor-override -Wno-float-equal -Wno-exit-time-destructors -Wno-global-constructors -Wno-weak-vtables -Wno-four-char-constants -Wno-padded -Wno-reserved-identifier -Wno-duplicate-enum -fomit-frame-pointer -DSDL_SUPPORT -D_GLIBCXX_USE_CXX11_ABI=1 -DUNIX -DBSPF_UNIX -DGUI_SUPPORT -DWINDOWED_SUPPORT -DSOUND_SUPPORT -DDEBUGGER_SUPPORT -DJOYSTICK_SUPPORT -DCHEATCODE_SUPPORT -DHTTP_LIB_SUPPORT -DPNG_SUPPORT -DZIP_SUPPORT -Isrc/emucore -Isrc/common -Isrc/common/tv_filters -Isrc/emucore/tia -Isrc/emucore/tia/frame-manager -Isrc/json -Isrc/common/repository/sqlite -I/usr/local/include -I/usr/local/include/SDL2 -I/usr/X11R6/include -D_REENTRANT -I/usr/X11R6/include -Isrc/unix -Isrc/gui -Isrc/debugger -Isrc/debugger/gui -Isrc/yacc -Isrc/cheat -Isrc/httplib -c src/emucore/CartF4SC.cxx -o out/src/emucore/CartF4SC.o In file included from src/emucore/CartF4SC.cxx:18: In file included from src/emucore/CartF4SC.hxx:21: In file included from src/emucore/CartF4.hxx:21: In file included from src/emucore/CartEnhanced.hxx:23: src/common/bspf.hxx:245:37: warning: unsafe pointer arithmetic [-Wunsafe-buffer-usage] const auto pos = std::search(s1.cbegin()+startpos, s1.cend(), ~~~^~~~~~~~ src/common/bspf.hxx:249:56: warning: unsafe pointer arithmetic [-Wunsafe-buffer-usage] return pos == s1.cend() ? string::npos : pos - (s1.cbegin()+startpos); ~~~^~~~~~~~ In file included from src/emucore/CartF4SC.cxx:18: In file included from src/emucore/CartF4SC.hxx:21: In file included from src/emucore/CartF4.hxx:21: In file included from src/emucore/CartEnhanced.hxx:27: In file included from src/debugger/gui/CartEnhancedWidget.hxx:31: In file included from src/debugger/gui/CartDebugWidget.hxx:30: In file included from src/gui/Widget.hxx:33: In file included from src/common/StellaKeys.hxx:22: In file included from src/common/SDL_lib.hxx:34: In file included from /usr/local/include/SDL2/SDL.h:32: In file included from /usr/local/include/SDL2/SDL_main.h:25: /usr/local/include/SDL2/SDL_stdinc.h:544:13: warning: '_p' is an unsafe pointer used for buffer access [-Wunsafe-buffer-usage] Uint32 *_p = SDL_static_cast(Uint32 *, dst); ~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /usr/local/include/SDL2/SDL_stdinc.h:550:26: note: used in pointer arithmetic here case 0: do { *_p++ = _val; SDL_FALLTHROUGH; ^~ /usr/local/include/SDL2/SDL_stdinc.h:553:26: note: used in pointer arithmetic here case 1: *_p++ = _val; ^~ /usr/local/include/SDL2/SDL_stdinc.h:551:26: note: used in pointer arithmetic here case 3: *_p++ = _val; SDL_FALLTHROUGH; ^~ /usr/local/include/SDL2/SDL_stdinc.h:552:26: note: used in pointer arithmetic here case 2: *_p++ = _val; SDL_FALLTHROUGH; ^~ 3 warnings generated. mkdir -p -p src/emucore/.deps mkdir -p -p out/src/emucore c++ -MMD -MF "src/emucore/.deps/CartF6.d" -MQ "out/src/emucore/CartF6.o" -MP -O2 -pipe -I/usr/X11R6/include -I/usr/local/include -x c++ -Wall -Wextra -Wno-unused-parameter -Wno-multichar -Wunused -Woverloaded-virtual -Wnon-virtual-dtor -std=c++17 -Weverything -Wno-c++98-compat-pedantic -Wno-unknown-warning-option -Wno-switch-enum -Wno-conversion -Wno-covered-switch-default -Wno-inconsistent-missing-destructor-override -Wno-float-equal -Wno-exit-time-destructors -Wno-global-constructors -Wno-weak-vtables -Wno-four-char-constants -Wno-padded -Wno-reserved-identifier -Wno-duplicate-enum -fomit-frame-pointer -DSDL_SUPPORT -D_GLIBCXX_USE_CXX11_ABI=1 -DUNIX -DBSPF_UNIX -DGUI_SUPPORT -DWINDOWED_SUPPORT -DSOUND_SUPPORT -DDEBUGGER_SUPPORT -DJOYSTICK_SUPPORT -DCHEATCODE_SUPPORT -DHTTP_LIB_SUPPORT -DPNG_SUPPORT -DZIP_SUPPORT -Isrc/emucore -Isrc/common -Isrc/common/tv_filters -Isrc/emucore/tia -Isrc/emucore/tia/frame-manager -Isrc/json -Isrc/common/repository/sqlite -I/usr/local/include -I/usr/local/include/SDL2 -I/usr/X11R6/include -D_REENTRANT -I/usr/X11R6/include -Isrc/unix -Isrc/gui -Isrc/debugger -Isrc/debugger/gui -Isrc/yacc -Isrc/cheat -Isrc/httplib -c src/emucore/CartF6.cxx -o out/src/emucore/CartF6.o In file included from src/emucore/CartF6.cxx:18: In file included from src/emucore/CartF6.hxx:21: In file included from src/emucore/CartEnhanced.hxx:23: src/common/bspf.hxx:245:37: warning: unsafe pointer arithmetic [-Wunsafe-buffer-usage] const auto pos = std::search(s1.cbegin()+startpos, s1.cend(), ~~~^~~~~~~~ src/common/bspf.hxx:249:56: warning: unsafe pointer arithmetic [-Wunsafe-buffer-usage] return pos == s1.cend() ? string::npos : pos - (s1.cbegin()+startpos); ~~~^~~~~~~~ In file included from src/emucore/CartF6.cxx:18: In file included from src/emucore/CartF6.hxx:21: In file included from src/emucore/CartEnhanced.hxx:27: In file included from src/debugger/gui/CartEnhancedWidget.hxx:31: In file included from src/debugger/gui/CartDebugWidget.hxx:30: In file included from src/gui/Widget.hxx:33: In file included from src/common/StellaKeys.hxx:22: In file included from src/common/SDL_lib.hxx:34: In file included from /usr/local/include/SDL2/SDL.h:32: In file included from /usr/local/include/SDL2/SDL_main.h:25: /usr/local/include/SDL2/SDL_stdinc.h:544:13: warning: '_p' is an unsafe pointer used for buffer access [-Wunsafe-buffer-usage] Uint32 *_p = SDL_static_cast(Uint32 *, dst); ~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /usr/local/include/SDL2/SDL_stdinc.h:552:26: note: used in pointer arithmetic here case 2: *_p++ = _val; SDL_FALLTHROUGH; ^~ /usr/local/include/SDL2/SDL_stdinc.h:553:26: note: used in pointer arithmetic here case 1: *_p++ = _val; ^~ /usr/local/include/SDL2/SDL_stdinc.h:550:26: note: used in pointer arithmetic here case 0: do { *_p++ = _val; SDL_FALLTHROUGH; ^~ /usr/local/include/SDL2/SDL_stdinc.h:551:26: note: used in pointer arithmetic here case 3: *_p++ = _val; SDL_FALLTHROUGH; ^~ 3 warnings generated. mkdir -p -p src/emucore/.deps mkdir -p -p out/src/emucore c++ -MMD -MF "src/emucore/.deps/CartF6SC.d" -MQ "out/src/emucore/CartF6SC.o" -MP -O2 -pipe -I/usr/X11R6/include -I/usr/local/include -x c++ -Wall -Wextra -Wno-unused-parameter -Wno-multichar -Wunused -Woverloaded-virtual -Wnon-virtual-dtor -std=c++17 -Weverything -Wno-c++98-compat-pedantic -Wno-unknown-warning-option -Wno-switch-enum -Wno-conversion -Wno-covered-switch-default -Wno-inconsistent-missing-destructor-override -Wno-float-equal -Wno-exit-time-destructors -Wno-global-constructors -Wno-weak-vtables -Wno-four-char-constants -Wno-padded -Wno-reserved-identifier -Wno-duplicate-enum -fomit-frame-pointer -DSDL_SUPPORT -D_GLIBCXX_USE_CXX11_ABI=1 -DUNIX -DBSPF_UNIX -DGUI_SUPPORT -DWINDOWED_SUPPORT -DSOUND_SUPPORT -DDEBUGGER_SUPPORT -DJOYSTICK_SUPPORT -DCHEATCODE_SUPPORT -DHTTP_LIB_SUPPORT -DPNG_SUPPORT -DZIP_SUPPORT -Isrc/emucore -Isrc/common -Isrc/common/tv_filters -Isrc/emucore/tia -Isrc/emucore/tia/frame-manager -Isrc/json -Isrc/common/repository/sqlite -I/usr/local/include -I/usr/local/include/SDL2 -I/usr/X11R6/include -D_REENTRANT -I/usr/X11R6/include -Isrc/unix -Isrc/gui -Isrc/debugger -Isrc/debugger/gui -Isrc/yacc -Isrc/cheat -Isrc/httplib -c src/emucore/CartF6SC.cxx -o out/src/emucore/CartF6SC.o In file included from src/emucore/CartF6SC.cxx:18: In file included from src/emucore/CartF6SC.hxx:21: In file included from src/emucore/CartF6.hxx:21: In file included from src/emucore/CartEnhanced.hxx:23: src/common/bspf.hxx:245:37: warning: unsafe pointer arithmetic [-Wunsafe-buffer-usage] const auto pos = std::search(s1.cbegin()+startpos, s1.cend(), ~~~^~~~~~~~ src/common/bspf.hxx:249:56: warning: unsafe pointer arithmetic [-Wunsafe-buffer-usage] return pos == s1.cend() ? string::npos : pos - (s1.cbegin()+startpos); ~~~^~~~~~~~ In file included from src/emucore/CartF6SC.cxx:18: In file included from src/emucore/CartF6SC.hxx:21: In file included from src/emucore/CartF6.hxx:21: In file included from src/emucore/CartEnhanced.hxx:27: In file included from src/debugger/gui/CartEnhancedWidget.hxx:31: In file included from src/debugger/gui/CartDebugWidget.hxx:30: In file included from src/gui/Widget.hxx:33: In file included from src/common/StellaKeys.hxx:22: In file included from src/common/SDL_lib.hxx:34: In file included from /usr/local/include/SDL2/SDL.h:32: In file included from /usr/local/include/SDL2/SDL_main.h:25: /usr/local/include/SDL2/SDL_stdinc.h:544:13: warning: '_p' is an unsafe pointer used for buffer access [-Wunsafe-buffer-usage] Uint32 *_p = SDL_static_cast(Uint32 *, dst); ~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /usr/local/include/SDL2/SDL_stdinc.h:553:26: note: used in pointer arithmetic here case 1: *_p++ = _val; ^~ /usr/local/include/SDL2/SDL_stdinc.h:550:26: note: used in pointer arithmetic here case 0: do { *_p++ = _val; SDL_FALLTHROUGH; ^~ /usr/local/include/SDL2/SDL_stdinc.h:551:26: note: used in pointer arithmetic here case 3: *_p++ = _val; SDL_FALLTHROUGH; ^~ /usr/local/include/SDL2/SDL_stdinc.h:552:26: note: used in pointer arithmetic here case 2: *_p++ = _val; SDL_FALLTHROUGH; ^~ 3 warnings generated. mkdir -p -p src/emucore/.deps mkdir -p -p out/src/emucore c++ -MMD -MF "src/emucore/.deps/CartF8.d" -MQ "out/src/emucore/CartF8.o" -MP -O2 -pipe -I/usr/X11R6/include -I/usr/local/include -x c++ -Wall -Wextra -Wno-unused-parameter -Wno-multichar -Wunused -Woverloaded-virtual -Wnon-virtual-dtor -std=c++17 -Weverything -Wno-c++98-compat-pedantic -Wno-unknown-warning-option -Wno-switch-enum -Wno-conversion -Wno-covered-switch-default -Wno-inconsistent-missing-destructor-override -Wno-float-equal -Wno-exit-time-destructors -Wno-global-constructors -Wno-weak-vtables -Wno-four-char-constants -Wno-padded -Wno-reserved-identifier -Wno-duplicate-enum -fomit-frame-pointer -DSDL_SUPPORT -D_GLIBCXX_USE_CXX11_ABI=1 -DUNIX -DBSPF_UNIX -DGUI_SUPPORT -DWINDOWED_SUPPORT -DSOUND_SUPPORT -DDEBUGGER_SUPPORT -DJOYSTICK_SUPPORT -DCHEATCODE_SUPPORT -DHTTP_LIB_SUPPORT -DPNG_SUPPORT -DZIP_SUPPORT -Isrc/emucore -Isrc/common -Isrc/common/tv_filters -Isrc/emucore/tia -Isrc/emucore/tia/frame-manager -Isrc/json -Isrc/common/repository/sqlite -I/usr/local/include -I/usr/local/include/SDL2 -I/usr/X11R6/include -D_REENTRANT -I/usr/X11R6/include -Isrc/unix -Isrc/gui -Isrc/debugger -Isrc/debugger/gui -Isrc/yacc -Isrc/cheat -Isrc/httplib -c src/emucore/CartF8.cxx -o out/src/emucore/CartF8.o In file included from src/emucore/CartF8.cxx:18: In file included from src/emucore/CartF8.hxx:21: In file included from src/emucore/CartEnhanced.hxx:23: src/common/bspf.hxx:245:37: warning: unsafe pointer arithmetic [-Wunsafe-buffer-usage] const auto pos = std::search(s1.cbegin()+startpos, s1.cend(), ~~~^~~~~~~~ src/common/bspf.hxx:249:56: warning: unsafe pointer arithmetic [-Wunsafe-buffer-usage] return pos == s1.cend() ? string::npos : pos - (s1.cbegin()+startpos); ~~~^~~~~~~~ In file included from src/emucore/CartF8.cxx:18: In file included from src/emucore/CartF8.hxx:21: In file included from src/emucore/CartEnhanced.hxx:27: In file included from src/debugger/gui/CartEnhancedWidget.hxx:31: In file included from src/debugger/gui/CartDebugWidget.hxx:30: In file included from src/gui/Widget.hxx:33: In file included from src/common/StellaKeys.hxx:22: In file included from src/common/SDL_lib.hxx:34: In file included from /usr/local/include/SDL2/SDL.h:32: In file included from /usr/local/include/SDL2/SDL_main.h:25: /usr/local/include/SDL2/SDL_stdinc.h:544:13: warning: '_p' is an unsafe pointer used for buffer access [-Wunsafe-buffer-usage] Uint32 *_p = SDL_static_cast(Uint32 *, dst); ~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /usr/local/include/SDL2/SDL_stdinc.h:553:26: note: used in pointer arithmetic here case 1: *_p++ = _val; ^~ /usr/local/include/SDL2/SDL_stdinc.h:551:26: note: used in pointer arithmetic here case 3: *_p++ = _val; SDL_FALLTHROUGH; ^~ /usr/local/include/SDL2/SDL_stdinc.h:550:26: note: used in pointer arithmetic here case 0: do { *_p++ = _val; SDL_FALLTHROUGH; ^~ /usr/local/include/SDL2/SDL_stdinc.h:552:26: note: used in pointer arithmetic here case 2: *_p++ = _val; SDL_FALLTHROUGH; ^~ 3 warnings generated. mkdir -p -p src/emucore/.deps mkdir -p -p out/src/emucore c++ -MMD -MF "src/emucore/.deps/CartF8SC.d" -MQ "out/src/emucore/CartF8SC.o" -MP -O2 -pipe -I/usr/X11R6/include -I/usr/local/include -x c++ -Wall -Wextra -Wno-unused-parameter -Wno-multichar -Wunused -Woverloaded-virtual -Wnon-virtual-dtor -std=c++17 -Weverything -Wno-c++98-compat-pedantic -Wno-unknown-warning-option -Wno-switch-enum -Wno-conversion -Wno-covered-switch-default -Wno-inconsistent-missing-destructor-override -Wno-float-equal -Wno-exit-time-destructors -Wno-global-constructors -Wno-weak-vtables -Wno-four-char-constants -Wno-padded -Wno-reserved-identifier -Wno-duplicate-enum -fomit-frame-pointer -DSDL_SUPPORT -D_GLIBCXX_USE_CXX11_ABI=1 -DUNIX -DBSPF_UNIX -DGUI_SUPPORT -DWINDOWED_SUPPORT -DSOUND_SUPPORT -DDEBUGGER_SUPPORT -DJOYSTICK_SUPPORT -DCHEATCODE_SUPPORT -DHTTP_LIB_SUPPORT -DPNG_SUPPORT -DZIP_SUPPORT -Isrc/emucore -Isrc/common -Isrc/common/tv_filters -Isrc/emucore/tia -Isrc/emucore/tia/frame-manager -Isrc/json -Isrc/common/repository/sqlite -I/usr/local/include -I/usr/local/include/SDL2 -I/usr/X11R6/include -D_REENTRANT -I/usr/X11R6/include -Isrc/unix -Isrc/gui -Isrc/debugger -Isrc/debugger/gui -Isrc/yacc -Isrc/cheat -Isrc/httplib -c src/emucore/CartF8SC.cxx -o out/src/emucore/CartF8SC.o In file included from src/emucore/CartF8SC.cxx:18: In file included from src/emucore/CartF8SC.hxx:21: In file included from src/emucore/CartF8.hxx:21: In file included from src/emucore/CartEnhanced.hxx:23: src/common/bspf.hxx:245:37: warning: unsafe pointer arithmetic [-Wunsafe-buffer-usage] const auto pos = std::search(s1.cbegin()+startpos, s1.cend(), ~~~^~~~~~~~ src/common/bspf.hxx:249:56: warning: unsafe pointer arithmetic [-Wunsafe-buffer-usage] return pos == s1.cend() ? string::npos : pos - (s1.cbegin()+startpos); ~~~^~~~~~~~ In file included from src/emucore/CartF8SC.cxx:18: In file included from src/emucore/CartF8SC.hxx:21: In file included from src/emucore/CartF8.hxx:21: In file included from src/emucore/CartEnhanced.hxx:27: In file included from src/debugger/gui/CartEnhancedWidget.hxx:31: In file included from src/debugger/gui/CartDebugWidget.hxx:30: In file included from src/gui/Widget.hxx:33: In file included from src/common/StellaKeys.hxx:22: In file included from src/common/SDL_lib.hxx:34: In file included from /usr/local/include/SDL2/SDL.h:32: In file included from /usr/local/include/SDL2/SDL_main.h:25: /usr/local/include/SDL2/SDL_stdinc.h:544:13: warning: '_p' is an unsafe pointer used for buffer access [-Wunsafe-buffer-usage] Uint32 *_p = SDL_static_cast(Uint32 *, dst); ~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /usr/local/include/SDL2/SDL_stdinc.h:552:26: note: used in pointer arithmetic here case 2: *_p++ = _val; SDL_FALLTHROUGH; ^~ /usr/local/include/SDL2/SDL_stdinc.h:551:26: note: used in pointer arithmetic here case 3: *_p++ = _val; SDL_FALLTHROUGH; ^~ /usr/local/include/SDL2/SDL_stdinc.h:553:26: note: used in pointer arithmetic here case 1: *_p++ = _val; ^~ /usr/local/include/SDL2/SDL_stdinc.h:550:26: note: used in pointer arithmetic here case 0: do { *_p++ = _val; SDL_FALLTHROUGH; ^~ 3 warnings generated. mkdir -p -p src/emucore/.deps mkdir -p -p out/src/emucore c++ -MMD -MF "src/emucore/.deps/CartFA.d" -MQ "out/src/emucore/CartFA.o" -MP -O2 -pipe -I/usr/X11R6/include -I/usr/local/include -x c++ -Wall -Wextra -Wno-unused-parameter -Wno-multichar -Wunused -Woverloaded-virtual -Wnon-virtual-dtor -std=c++17 -Weverything -Wno-c++98-compat-pedantic -Wno-unknown-warning-option -Wno-switch-enum -Wno-conversion -Wno-covered-switch-default -Wno-inconsistent-missing-destructor-override -Wno-float-equal -Wno-exit-time-destructors -Wno-global-constructors -Wno-weak-vtables -Wno-four-char-constants -Wno-padded -Wno-reserved-identifier -Wno-duplicate-enum -fomit-frame-pointer -DSDL_SUPPORT -D_GLIBCXX_USE_CXX11_ABI=1 -DUNIX -DBSPF_UNIX -DGUI_SUPPORT -DWINDOWED_SUPPORT -DSOUND_SUPPORT -DDEBUGGER_SUPPORT -DJOYSTICK_SUPPORT -DCHEATCODE_SUPPORT -DHTTP_LIB_SUPPORT -DPNG_SUPPORT -DZIP_SUPPORT -Isrc/emucore -Isrc/common -Isrc/common/tv_filters -Isrc/emucore/tia -Isrc/emucore/tia/frame-manager -Isrc/json -Isrc/common/repository/sqlite -I/usr/local/include -I/usr/local/include/SDL2 -I/usr/X11R6/include -D_REENTRANT -I/usr/X11R6/include -Isrc/unix -Isrc/gui -Isrc/debugger -Isrc/debugger/gui -Isrc/yacc -Isrc/cheat -Isrc/httplib -c src/emucore/CartFA.cxx -o out/src/emucore/CartFA.o In file included from src/emucore/CartFA.cxx:18: In file included from src/emucore/System.hxx:26: src/common/bspf.hxx:245:37: warning: unsafe pointer arithmetic [-Wunsafe-buffer-usage] const auto pos = std::search(s1.cbegin()+startpos, s1.cend(), ~~~^~~~~~~~ src/common/bspf.hxx:249:56: warning: unsafe pointer arithmetic [-Wunsafe-buffer-usage] return pos == s1.cend() ? string::npos : pos - (s1.cbegin()+startpos); ~~~^~~~~~~~ In file included from src/emucore/CartFA.cxx:19: In file included from src/emucore/CartFA.hxx:24: In file included from src/emucore/CartEnhanced.hxx:27: In file included from src/debugger/gui/CartEnhancedWidget.hxx:31: In file included from src/debugger/gui/CartDebugWidget.hxx:30: In file included from src/gui/Widget.hxx:33: In file included from src/common/StellaKeys.hxx:22: In file included from src/common/SDL_lib.hxx:34: In file included from /usr/local/include/SDL2/SDL.h:32: In file included from /usr/local/include/SDL2/SDL_main.h:25: /usr/local/include/SDL2/SDL_stdinc.h:544:13: warning: '_p' is an unsafe pointer used for buffer access [-Wunsafe-buffer-usage] Uint32 *_p = SDL_static_cast(Uint32 *, dst); ~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /usr/local/include/SDL2/SDL_stdinc.h:553:26: note: used in pointer arithmetic here case 1: *_p++ = _val; ^~ /usr/local/include/SDL2/SDL_stdinc.h:550:26: note: used in pointer arithmetic here case 0: do { *_p++ = _val; SDL_FALLTHROUGH; ^~ /usr/local/include/SDL2/SDL_stdinc.h:552:26: note: used in pointer arithmetic here case 2: *_p++ = _val; SDL_FALLTHROUGH; ^~ /usr/local/include/SDL2/SDL_stdinc.h:551:26: note: used in pointer arithmetic here case 3: *_p++ = _val; SDL_FALLTHROUGH; ^~ 3 warnings generated. mkdir -p -p src/emucore/.deps mkdir -p -p out/src/emucore c++ -MMD -MF "src/emucore/.deps/CartFA2.d" -MQ "out/src/emucore/CartFA2.o" -MP -O2 -pipe -I/usr/X11R6/include -I/usr/local/include -x c++ -Wall -Wextra -Wno-unused-parameter -Wno-multichar -Wunused -Woverloaded-virtual -Wnon-virtual-dtor -std=c++17 -Weverything -Wno-c++98-compat-pedantic -Wno-unknown-warning-option -Wno-switch-enum -Wno-conversion -Wno-covered-switch-default -Wno-inconsistent-missing-destructor-override -Wno-float-equal -Wno-exit-time-destructors -Wno-global-constructors -Wno-weak-vtables -Wno-four-char-constants -Wno-padded -Wno-reserved-identifier -Wno-duplicate-enum -fomit-frame-pointer -DSDL_SUPPORT -D_GLIBCXX_USE_CXX11_ABI=1 -DUNIX -DBSPF_UNIX -DGUI_SUPPORT -DWINDOWED_SUPPORT -DSOUND_SUPPORT -DDEBUGGER_SUPPORT -DJOYSTICK_SUPPORT -DCHEATCODE_SUPPORT -DHTTP_LIB_SUPPORT -DPNG_SUPPORT -DZIP_SUPPORT -Isrc/emucore -Isrc/common -Isrc/common/tv_filters -Isrc/emucore/tia -Isrc/emucore/tia/frame-manager -Isrc/json -Isrc/common/repository/sqlite -I/usr/local/include -I/usr/local/include/SDL2 -I/usr/X11R6/include -D_REENTRANT -I/usr/X11R6/include -Isrc/unix -Isrc/gui -Isrc/debugger -Isrc/debugger/gui -Isrc/yacc -Isrc/cheat -Isrc/httplib -c src/emucore/CartFA2.cxx -o out/src/emucore/CartFA2.o In file included from src/emucore/CartFA2.cxx:18: In file included from src/common/TimerManager.hxx:31: src/common/bspf.hxx:245:37: warning: unsafe pointer arithmetic [-Wunsafe-buffer-usage] const auto pos = std::search(s1.cbegin()+startpos, s1.cend(), ~~~^~~~~~~~ src/common/bspf.hxx:249:56: warning: unsafe pointer arithmetic [-Wunsafe-buffer-usage] return pos == s1.cend() ? string::npos : pos - (s1.cbegin()+startpos); ~~~^~~~~~~~ In file included from src/emucore/CartFA2.cxx:19: In file included from src/emucore/CartFA2.hxx:24: In file included from src/emucore/CartFA.hxx:24: In file included from src/emucore/CartEnhanced.hxx:27: In file included from src/debugger/gui/CartEnhancedWidget.hxx:31: In file included from src/debugger/gui/CartDebugWidget.hxx:30: In file included from src/gui/Widget.hxx:33: In file included from src/common/StellaKeys.hxx:22: In file included from src/common/SDL_lib.hxx:34: In file included from /usr/local/include/SDL2/SDL.h:32: In file included from /usr/local/include/SDL2/SDL_main.h:25: /usr/local/include/SDL2/SDL_stdinc.h:544:13: warning: '_p' is an unsafe pointer used for buffer access [-Wunsafe-buffer-usage] Uint32 *_p = SDL_static_cast(Uint32 *, dst); ~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /usr/local/include/SDL2/SDL_stdinc.h:550:26: note: used in pointer arithmetic here case 0: do { *_p++ = _val; SDL_FALLTHROUGH; ^~ /usr/local/include/SDL2/SDL_stdinc.h:553:26: note: used in pointer arithmetic here case 1: *_p++ = _val; ^~ /usr/local/include/SDL2/SDL_stdinc.h:551:26: note: used in pointer arithmetic here case 3: *_p++ = _val; SDL_FALLTHROUGH; ^~ /usr/local/include/SDL2/SDL_stdinc.h:552:26: note: used in pointer arithmetic here case 2: *_p++ = _val; SDL_FALLTHROUGH; ^~ src/emucore/CartFA2.cxx:28:16: warning: 'img_ptr' is an unsafe pointer used for buffer access [-Wunsafe-buffer-usage] const uInt8* img_ptr = image.get(); ~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~ src/emucore/CartFA2.cxx:31:5: note: used in pointer arithmetic here img_ptr += 1_KB; ^~~~~~~ 4 warnings generated. mkdir -p -p src/emucore/.deps mkdir -p -p out/src/emucore c++ -MMD -MF "src/emucore/.deps/CartFC.d" -MQ "out/src/emucore/CartFC.o" -MP -O2 -pipe -I/usr/X11R6/include -I/usr/local/include -x c++ -Wall -Wextra -Wno-unused-parameter -Wno-multichar -Wunused -Woverloaded-virtual -Wnon-virtual-dtor -std=c++17 -Weverything -Wno-c++98-compat-pedantic -Wno-unknown-warning-option -Wno-switch-enum -Wno-conversion -Wno-covered-switch-default -Wno-inconsistent-missing-destructor-override -Wno-float-equal -Wno-exit-time-destructors -Wno-global-constructors -Wno-weak-vtables -Wno-four-char-constants -Wno-padded -Wno-reserved-identifier -Wno-duplicate-enum -fomit-frame-pointer -DSDL_SUPPORT -D_GLIBCXX_USE_CXX11_ABI=1 -DUNIX -DBSPF_UNIX -DGUI_SUPPORT -DWINDOWED_SUPPORT -DSOUND_SUPPORT -DDEBUGGER_SUPPORT -DJOYSTICK_SUPPORT -DCHEATCODE_SUPPORT -DHTTP_LIB_SUPPORT -DPNG_SUPPORT -DZIP_SUPPORT -Isrc/emucore -Isrc/common -Isrc/common/tv_filters -Isrc/emucore/tia -Isrc/emucore/tia/frame-manager -Isrc/json -Isrc/common/repository/sqlite -I/usr/local/include -I/usr/local/include/SDL2 -I/usr/X11R6/include -D_REENTRANT -I/usr/X11R6/include -Isrc/unix -Isrc/gui -Isrc/debugger -Isrc/debugger/gui -Isrc/yacc -Isrc/cheat -Isrc/httplib -c src/emucore/CartFC.cxx -o out/src/emucore/CartFC.o In file included from src/emucore/CartFC.cxx:18: In file included from src/emucore/System.hxx:26: src/common/bspf.hxx:245:37: warning: unsafe pointer arithmetic [-Wunsafe-buffer-usage] const auto pos = std::search(s1.cbegin()+startpos, s1.cend(), ~~~^~~~~~~~ src/common/bspf.hxx:249:56: warning: unsafe pointer arithmetic [-Wunsafe-buffer-usage] return pos == s1.cend() ? string::npos : pos - (s1.cbegin()+startpos); ~~~^~~~~~~~ In file included from src/emucore/CartFC.cxx:19: In file included from src/emucore/CartFC.hxx:24: In file included from src/emucore/CartEnhanced.hxx:27: In file included from src/debugger/gui/CartEnhancedWidget.hxx:31: In file included from src/debugger/gui/CartDebugWidget.hxx:30: In file included from src/gui/Widget.hxx:33: In file included from src/common/StellaKeys.hxx:22: In file included from src/common/SDL_lib.hxx:34: In file included from /usr/local/include/SDL2/SDL.h:32: In file included from /usr/local/include/SDL2/SDL_main.h:25: /usr/local/include/SDL2/SDL_stdinc.h:544:13: warning: '_p' is an unsafe pointer used for buffer access [-Wunsafe-buffer-usage] Uint32 *_p = SDL_static_cast(Uint32 *, dst); ~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /usr/local/include/SDL2/SDL_stdinc.h:550:26: note: used in pointer arithmetic here case 0: do { *_p++ = _val; SDL_FALLTHROUGH; ^~ /usr/local/include/SDL2/SDL_stdinc.h:553:26: note: used in pointer arithmetic here case 1: *_p++ = _val; ^~ /usr/local/include/SDL2/SDL_stdinc.h:551:26: note: used in pointer arithmetic here case 3: *_p++ = _val; SDL_FALLTHROUGH; ^~ /usr/local/include/SDL2/SDL_stdinc.h:552:26: note: used in pointer arithmetic here case 2: *_p++ = _val; SDL_FALLTHROUGH; ^~ 3 warnings generated. mkdir -p -p src/emucore/.deps mkdir -p -p out/src/emucore c++ -MMD -MF "src/emucore/.deps/CartFE.d" -MQ "out/src/emucore/CartFE.o" -MP -O2 -pipe -I/usr/X11R6/include -I/usr/local/include -x c++ -Wall -Wextra -Wno-unused-parameter -Wno-multichar -Wunused -Woverloaded-virtual -Wnon-virtual-dtor -std=c++17 -Weverything -Wno-c++98-compat-pedantic -Wno-unknown-warning-option -Wno-switch-enum -Wno-conversion -Wno-covered-switch-default -Wno-inconsistent-missing-destructor-override -Wno-float-equal -Wno-exit-time-destructors -Wno-global-constructors -Wno-weak-vtables -Wno-four-char-constants -Wno-padded -Wno-reserved-identifier -Wno-duplicate-enum -fomit-frame-pointer -DSDL_SUPPORT -D_GLIBCXX_USE_CXX11_ABI=1 -DUNIX -DBSPF_UNIX -DGUI_SUPPORT -DWINDOWED_SUPPORT -DSOUND_SUPPORT -DDEBUGGER_SUPPORT -DJOYSTICK_SUPPORT -DCHEATCODE_SUPPORT -DHTTP_LIB_SUPPORT -DPNG_SUPPORT -DZIP_SUPPORT -Isrc/emucore -Isrc/common -Isrc/common/tv_filters -Isrc/emucore/tia -Isrc/emucore/tia/frame-manager -Isrc/json -Isrc/common/repository/sqlite -I/usr/local/include -I/usr/local/include/SDL2 -I/usr/X11R6/include -D_REENTRANT -I/usr/X11R6/include -Isrc/unix -Isrc/gui -Isrc/debugger -Isrc/debugger/gui -Isrc/yacc -Isrc/cheat -Isrc/httplib -c src/emucore/CartFE.cxx -o out/src/emucore/CartFE.o In file included from src/emucore/CartFE.cxx:18: In file included from src/emucore/M6532.hxx:26: src/common/bspf.hxx:245:37: warning: unsafe pointer arithmetic [-Wunsafe-buffer-usage] const auto pos = std::search(s1.cbegin()+startpos, s1.cend(), ~~~^~~~~~~~ src/common/bspf.hxx:249:56: warning: unsafe pointer arithmetic [-Wunsafe-buffer-usage] return pos == s1.cend() ? string::npos : pos - (s1.cbegin()+startpos); ~~~^~~~~~~~ In file included from src/emucore/CartFE.cxx:20: In file included from src/emucore/CartFE.hxx:24: In file included from src/emucore/CartEnhanced.hxx:27: In file included from src/debugger/gui/CartEnhancedWidget.hxx:31: In file included from src/debugger/gui/CartDebugWidget.hxx:30: In file included from src/gui/Widget.hxx:33: In file included from src/common/StellaKeys.hxx:22: In file included from src/common/SDL_lib.hxx:34: In file included from /usr/local/include/SDL2/SDL.h:32: In file included from /usr/local/include/SDL2/SDL_main.h:25: /usr/local/include/SDL2/SDL_stdinc.h:544:13: warning: '_p' is an unsafe pointer used for buffer access [-Wunsafe-buffer-usage] Uint32 *_p = SDL_static_cast(Uint32 *, dst); ~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /usr/local/include/SDL2/SDL_stdinc.h:553:26: note: used in pointer arithmetic here case 1: *_p++ = _val; ^~ /usr/local/include/SDL2/SDL_stdinc.h:552:26: note: used in pointer arithmetic here case 2: *_p++ = _val; SDL_FALLTHROUGH; ^~ /usr/local/include/SDL2/SDL_stdinc.h:550:26: note: used in pointer arithmetic here case 0: do { *_p++ = _val; SDL_FALLTHROUGH; ^~ /usr/local/include/SDL2/SDL_stdinc.h:551:26: note: used in pointer arithmetic here case 3: *_p++ = _val; SDL_FALLTHROUGH; ^~ 3 warnings generated. mkdir -p -p src/emucore/.deps mkdir -p -p out/src/emucore c++ -MMD -MF "src/emucore/.deps/CartMDM.d" -MQ "out/src/emucore/CartMDM.o" -MP -O2 -pipe -I/usr/X11R6/include -I/usr/local/include -x c++ -Wall -Wextra -Wno-unused-parameter -Wno-multichar -Wunused -Woverloaded-virtual -Wnon-virtual-dtor -std=c++17 -Weverything -Wno-c++98-compat-pedantic -Wno-unknown-warning-option -Wno-switch-enum -Wno-conversion -Wno-covered-switch-default -Wno-inconsistent-missing-destructor-override -Wno-float-equal -Wno-exit-time-destructors -Wno-global-constructors -Wno-weak-vtables -Wno-four-char-constants -Wno-padded -Wno-reserved-identifier -Wno-duplicate-enum -fomit-frame-pointer -DSDL_SUPPORT -D_GLIBCXX_USE_CXX11_ABI=1 -DUNIX -DBSPF_UNIX -DGUI_SUPPORT -DWINDOWED_SUPPORT -DSOUND_SUPPORT -DDEBUGGER_SUPPORT -DJOYSTICK_SUPPORT -DCHEATCODE_SUPPORT -DHTTP_LIB_SUPPORT -DPNG_SUPPORT -DZIP_SUPPORT -Isrc/emucore -Isrc/common -Isrc/common/tv_filters -Isrc/emucore/tia -Isrc/emucore/tia/frame-manager -Isrc/json -Isrc/common/repository/sqlite -I/usr/local/include -I/usr/local/include/SDL2 -I/usr/X11R6/include -D_REENTRANT -I/usr/X11R6/include -Isrc/unix -Isrc/gui -Isrc/debugger -Isrc/debugger/gui -Isrc/yacc -Isrc/cheat -Isrc/httplib -c src/emucore/CartMDM.cxx -o out/src/emucore/CartMDM.o In file included from src/emucore/CartMDM.cxx:18: In file included from src/emucore/System.hxx:26: src/common/bspf.hxx:245:37: warning: unsafe pointer arithmetic [-Wunsafe-buffer-usage] const auto pos = std::search(s1.cbegin()+startpos, s1.cend(), ~~~^~~~~~~~ src/common/bspf.hxx:249:56: warning: unsafe pointer arithmetic [-Wunsafe-buffer-usage] return pos == s1.cend() ? string::npos : pos - (s1.cbegin()+startpos); ~~~^~~~~~~~ In file included from src/emucore/CartMDM.cxx:19: In file included from src/emucore/CartMDM.hxx:22: In file included from src/emucore/CartEnhanced.hxx:27: In file included from src/debugger/gui/CartEnhancedWidget.hxx:31: In file included from src/debugger/gui/CartDebugWidget.hxx:30: In file included from src/gui/Widget.hxx:33: In file included from src/common/StellaKeys.hxx:22: In file included from src/common/SDL_lib.hxx:34: In file included from /usr/local/include/SDL2/SDL.h:32: In file included from /usr/local/include/SDL2/SDL_main.h:25: /usr/local/include/SDL2/SDL_stdinc.h:544:13: warning: '_p' is an unsafe pointer used for buffer access [-Wunsafe-buffer-usage] Uint32 *_p = SDL_static_cast(Uint32 *, dst); ~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /usr/local/include/SDL2/SDL_stdinc.h:552:26: note: used in pointer arithmetic here case 2: *_p++ = _val; SDL_FALLTHROUGH; ^~ /usr/local/include/SDL2/SDL_stdinc.h:553:26: note: used in pointer arithmetic here case 1: *_p++ = _val; ^~ /usr/local/include/SDL2/SDL_stdinc.h:550:26: note: used in pointer arithmetic here case 0: do { *_p++ = _val; SDL_FALLTHROUGH; ^~ /usr/local/include/SDL2/SDL_stdinc.h:551:26: note: used in pointer arithmetic here case 3: *_p++ = _val; SDL_FALLTHROUGH; ^~ 3 warnings generated. mkdir -p -p src/emucore/.deps mkdir -p -p out/src/emucore c++ -MMD -MF "src/emucore/.deps/CartMVC.d" -MQ "out/src/emucore/CartMVC.o" -MP -O2 -pipe -I/usr/X11R6/include -I/usr/local/include -x c++ -Wall -Wextra -Wno-unused-parameter -Wno-multichar -Wunused -Woverloaded-virtual -Wnon-virtual-dtor -std=c++17 -Weverything -Wno-c++98-compat-pedantic -Wno-unknown-warning-option -Wno-switch-enum -Wno-conversion -Wno-covered-switch-default -Wno-inconsistent-missing-destructor-override -Wno-float-equal -Wno-exit-time-destructors -Wno-global-constructors -Wno-weak-vtables -Wno-four-char-constants -Wno-padded -Wno-reserved-identifier -Wno-duplicate-enum -fomit-frame-pointer -DSDL_SUPPORT -D_GLIBCXX_USE_CXX11_ABI=1 -DUNIX -DBSPF_UNIX -DGUI_SUPPORT -DWINDOWED_SUPPORT -DSOUND_SUPPORT -DDEBUGGER_SUPPORT -DJOYSTICK_SUPPORT -DCHEATCODE_SUPPORT -DHTTP_LIB_SUPPORT -DPNG_SUPPORT -DZIP_SUPPORT -Isrc/emucore -Isrc/common -Isrc/common/tv_filters -Isrc/emucore/tia -Isrc/emucore/tia/frame-manager -Isrc/json -Isrc/common/repository/sqlite -I/usr/local/include -I/usr/local/include/SDL2 -I/usr/X11R6/include -D_REENTRANT -I/usr/X11R6/include -Isrc/unix -Isrc/gui -Isrc/debugger -Isrc/debugger/gui -Isrc/yacc -Isrc/cheat -Isrc/httplib -c src/emucore/CartMVC.cxx -o out/src/emucore/CartMVC.o In file included from src/emucore/CartMVC.cxx:18: In file included from src/emucore/Serializer.hxx:21: src/common/bspf.hxx:245:37: warning: unsafe pointer arithmetic [-Wunsafe-buffer-usage] const auto pos = std::search(s1.cbegin()+startpos, s1.cend(), ~~~^~~~~~~~ src/common/bspf.hxx:249:56: warning: unsafe pointer arithmetic [-Wunsafe-buffer-usage] return pos == s1.cend() ? string::npos : pos - (s1.cbegin()+startpos); ~~~^~~~~~~~ src/emucore/CartMVC.cxx:73:9: warning: unsafe buffer access [-Wunsafe-buffer-usage] myColor[1] = 0; ^~~~~~~ src/emucore/CartMVC.cxx:74:9: warning: unsafe buffer access [-Wunsafe-buffer-usage] myColor[2] = 0; ^~~~~~~ src/emucore/CartMVC.cxx:75:9: warning: unsafe buffer access [-Wunsafe-buffer-usage] myColor[3] = 0; ^~~~~~~ src/emucore/CartMVC.cxx:76:9: warning: unsafe buffer access [-Wunsafe-buffer-usage] myColor[4] = 0; ^~~~~~~ src/emucore/CartMVC.cxx:81:9: warning: unsafe buffer access [-Wunsafe-buffer-usage] myColor[colorSize - 5] = 0; ^~~~~~~ src/emucore/CartMVC.cxx:82:9: warning: unsafe buffer access [-Wunsafe-buffer-usage] myColor[colorSize - 4] = 0; ^~~~~~~ src/emucore/CartMVC.cxx:83:9: warning: unsafe buffer access [-Wunsafe-buffer-usage] myColor[colorSize - 3] = 0; ^~~~~~~ src/emucore/CartMVC.cxx:84:9: warning: unsafe buffer access [-Wunsafe-buffer-usage] myColor[colorSize - 2] = 0; ^~~~~~~ src/emucore/CartMVC.cxx:85:9: warning: unsafe buffer access [-Wunsafe-buffer-usage] myColor[colorSize - 1] = 0; ^~~~~~~ src/emucore/CartMVC.cxx:103:11: warning: unsafe pointer arithmetic [-Wunsafe-buffer-usage] myColorBK++; ^~~~~~~~~ src/emucore/CartMVC.cxx:92:14: warning: 'offset' is an unsafe pointer used for buffer access [-Wunsafe-buffer-usage] uInt8* offset = index ? myBuffer1.data() : myBuffer2.data(); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ src/emucore/CartMVC.cxx:94:20: note: used in pointer arithmetic here myVersion = offset + VERSION_DATA_OFFSET; ^~~~~~ src/emucore/CartMVC.cxx:98:20: note: used in pointer arithmetic here myTimecode = offset + TIMECODE_DATA_OFFSET; ^~~~~~ src/emucore/CartMVC.cxx:97:20: note: used in pointer arithmetic here myGraph = offset + GRAPH_DATA_OFFSET; ^~~~~~ src/emucore/CartMVC.cxx:99:20: note: used in pointer arithmetic here myColor = offset + COLOR_DATA_OFFSET; ^~~~~~ src/emucore/CartMVC.cxx:96:20: note: used in pointer arithmetic here myAudio = offset + AUDIO_DATA_OFFSET; ^~~~~~ src/emucore/CartMVC.cxx:95:20: note: used in pointer arithmetic here myFrame = offset + FRAME_DATA_OFFSET; ^~~~~~ src/emucore/CartMVC.cxx:100:20: note: used in pointer arithmetic here myColorBK = offset + COLORBK_DATA_OFFSET; ^~~~~~ src/emucore/CartMVC.cxx:125:35: warning: unsafe pointer arithmetic [-Wunsafe-buffer-usage] uInt8 readVersion() { return *myVersion++; } ^~~~~~~~~ src/emucore/CartMVC.cxx:126:35: warning: unsafe pointer arithmetic [-Wunsafe-buffer-usage] uInt8 readFrame() { return *myFrame++; } ^~~~~~~ src/emucore/CartMVC.cxx:127:35: warning: unsafe pointer arithmetic [-Wunsafe-buffer-usage] uInt8 readColor() { return *myColor++; } ^~~~~~~ src/emucore/CartMVC.cxx:128:35: warning: unsafe pointer arithmetic [-Wunsafe-buffer-usage] uInt8 readColorBK() { return *myColorBK++; } ^~~~~~~~~ src/emucore/CartMVC.cxx:131:33: warning: unsafe pointer arithmetic [-Wunsafe-buffer-usage] return myGraphOverride ? *myGraphOverride++ : *myGraph++; ^~~~~~~~~~~~~~~ src/emucore/CartMVC.cxx:131:54: warning: unsafe pointer arithmetic [-Wunsafe-buffer-usage] return myGraphOverride ? *myGraphOverride++ : *myGraph++; ^~~~~~~ src/emucore/CartMVC.cxx:136:33: warning: unsafe pointer arithmetic [-Wunsafe-buffer-usage] uInt8 readAudio() { return *myAudio++; } ^~~~~~~ src/emucore/CartMVC.cxx:778:25: warning: unsafe buffer access [-Wunsafe-buffer-usage] writeROM(address, myVolumeScale[val]); ^~~~~~~~~~~~~ src/emucore/CartMVC.cxx:381:21: warning: 'scales' is an unsafe buffer that does not perform bounds checks [-Wunsafe-buffer-usage] static const uInt8* scales[11] = { ~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~ src/emucore/CartMVC.cxx:872:19: note: used in buffer access here myVolumeScale = scales[DEFAULT_LEVEL]; ^~~~~~ src/emucore/CartMVC.cxx:387:24: warning: 'shiftBright' is an unsafe buffer that does not perform bounds checks [-Wunsafe-buffer-usage] static constexpr uInt8 shiftBright[16 + MAX_LEVEL - 1] = { ~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ src/emucore/CartMVC.cxx:886:20: note: used in buffer access here v = (v & 0xf0) | shiftBright[(v & 0x0f) + myBright]; ^~~~~~~~~~~ src/emucore/CartMVC.cxx:381:21: warning: 'scales' is an unsafe buffer that does not perform bounds checks [-Wunsafe-buffer-usage] static const uInt8* scales[11] = { ~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~ src/emucore/CartMVC.cxx:1043:21: note: used in buffer access here myVolumeScale = scales[myVolume]; ^~~~~~ src/emucore/CartMVC.cxx:531:24: warning: 'levelBarsEvenData' is an unsafe buffer that does not perform bounds checks [-Wunsafe-buffer-usage] static constexpr uInt8 levelBarsEvenData[] = { ~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~ src/emucore/CartMVC.cxx:1335:39: note: used in buffer access here myStream.overrideGraph(&levelBarsEvenData[levelValue * 40]); ^~~~~~~~~~~~~~~~~ src/emucore/CartMVC.cxx:633:24: warning: 'levelBarsOddData' is an unsafe buffer that does not perform bounds checks [-Wunsafe-buffer-usage] static constexpr uInt8 levelBarsOddData[] = { ~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~ src/emucore/CartMVC.cxx:1333:39: note: used in buffer access here myStream.overrideGraph(&levelBarsOddData[levelValue * 40]); ^~~~~~~~~~~~~~~~ 26 warnings generated. mkdir -p -p src/emucore/.deps mkdir -p -p out/src/emucore c++ -MMD -MF "src/emucore/.deps/CartSB.d" -MQ "out/src/emucore/CartSB.o" -MP -O2 -pipe -I/usr/X11R6/include -I/usr/local/include -x c++ -Wall -Wextra -Wno-unused-parameter -Wno-multichar -Wunused -Woverloaded-virtual -Wnon-virtual-dtor -std=c++17 -Weverything -Wno-c++98-compat-pedantic -Wno-unknown-warning-option -Wno-switch-enum -Wno-conversion -Wno-covered-switch-default -Wno-inconsistent-missing-destructor-override -Wno-float-equal -Wno-exit-time-destructors -Wno-global-constructors -Wno-weak-vtables -Wno-four-char-constants -Wno-padded -Wno-reserved-identifier -Wno-duplicate-enum -fomit-frame-pointer -DSDL_SUPPORT -D_GLIBCXX_USE_CXX11_ABI=1 -DUNIX -DBSPF_UNIX -DGUI_SUPPORT -DWINDOWED_SUPPORT -DSOUND_SUPPORT -DDEBUGGER_SUPPORT -DJOYSTICK_SUPPORT -DCHEATCODE_SUPPORT -DHTTP_LIB_SUPPORT -DPNG_SUPPORT -DZIP_SUPPORT -Isrc/emucore -Isrc/common -Isrc/common/tv_filters -Isrc/emucore/tia -Isrc/emucore/tia/frame-manager -Isrc/json -Isrc/common/repository/sqlite -I/usr/local/include -I/usr/local/include/SDL2 -I/usr/X11R6/include -D_REENTRANT -I/usr/X11R6/include -Isrc/unix -Isrc/gui -Isrc/debugger -Isrc/debugger/gui -Isrc/yacc -Isrc/cheat -Isrc/httplib -c src/emucore/CartSB.cxx -o out/src/emucore/CartSB.o In file included from src/emucore/CartSB.cxx:18: In file included from src/emucore/System.hxx:26: src/common/bspf.hxx:245:37: warning: unsafe pointer arithmetic [-Wunsafe-buffer-usage] const auto pos = std::search(s1.cbegin()+startpos, s1.cend(), ~~~^~~~~~~~ src/common/bspf.hxx:249:56: warning: unsafe pointer arithmetic [-Wunsafe-buffer-usage] return pos == s1.cend() ? string::npos : pos - (s1.cbegin()+startpos); ~~~^~~~~~~~ In file included from src/emucore/CartSB.cxx:19: In file included from src/emucore/CartSB.hxx:22: In file included from src/emucore/CartEnhanced.hxx:27: In file included from src/debugger/gui/CartEnhancedWidget.hxx:31: In file included from src/debugger/gui/CartDebugWidget.hxx:30: In file included from src/gui/Widget.hxx:33: In file included from src/common/StellaKeys.hxx:22: In file included from src/common/SDL_lib.hxx:34: In file included from /usr/local/include/SDL2/SDL.h:32: In file included from /usr/local/include/SDL2/SDL_main.h:25: /usr/local/include/SDL2/SDL_stdinc.h:544:13: warning: '_p' is an unsafe pointer used for buffer access [-Wunsafe-buffer-usage] Uint32 *_p = SDL_static_cast(Uint32 *, dst); ~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /usr/local/include/SDL2/SDL_stdinc.h:553:26: note: used in pointer arithmetic here case 1: *_p++ = _val; ^~ /usr/local/include/SDL2/SDL_stdinc.h:551:26: note: used in pointer arithmetic here case 3: *_p++ = _val; SDL_FALLTHROUGH; ^~ /usr/local/include/SDL2/SDL_stdinc.h:552:26: note: used in pointer arithmetic here case 2: *_p++ = _val; SDL_FALLTHROUGH; ^~ /usr/local/include/SDL2/SDL_stdinc.h:550:26: note: used in pointer arithmetic here case 0: do { *_p++ = _val; SDL_FALLTHROUGH; ^~ 3 warnings generated. mkdir -p -p src/emucore/.deps mkdir -p -p out/src/emucore c++ -MMD -MF "src/emucore/.deps/CartTVBoy.d" -MQ "out/src/emucore/CartTVBoy.o" -MP -O2 -pipe -I/usr/X11R6/include -I/usr/local/include -x c++ -Wall -Wextra -Wno-unused-parameter -Wno-multichar -Wunused -Woverloaded-virtual -Wnon-virtual-dtor -std=c++17 -Weverything -Wno-c++98-compat-pedantic -Wno-unknown-warning-option -Wno-switch-enum -Wno-conversion -Wno-covered-switch-default -Wno-inconsistent-missing-destructor-override -Wno-float-equal -Wno-exit-time-destructors -Wno-global-constructors -Wno-weak-vtables -Wno-four-char-constants -Wno-padded -Wno-reserved-identifier -Wno-duplicate-enum -fomit-frame-pointer -DSDL_SUPPORT -D_GLIBCXX_USE_CXX11_ABI=1 -DUNIX -DBSPF_UNIX -DGUI_SUPPORT -DWINDOWED_SUPPORT -DSOUND_SUPPORT -DDEBUGGER_SUPPORT -DJOYSTICK_SUPPORT -DCHEATCODE_SUPPORT -DHTTP_LIB_SUPPORT -DPNG_SUPPORT -DZIP_SUPPORT -Isrc/emucore -Isrc/common -Isrc/common/tv_filters -Isrc/emucore/tia -Isrc/emucore/tia/frame-manager -Isrc/json -Isrc/common/repository/sqlite -I/usr/local/include -I/usr/local/include/SDL2 -I/usr/X11R6/include -D_REENTRANT -I/usr/X11R6/include -Isrc/unix -Isrc/gui -Isrc/debugger -Isrc/debugger/gui -Isrc/yacc -Isrc/cheat -Isrc/httplib -c src/emucore/CartTVBoy.cxx -o out/src/emucore/CartTVBoy.o In file included from src/emucore/CartTVBoy.cxx:18: In file included from src/emucore/System.hxx:26: src/common/bspf.hxx:245:37: warning: unsafe pointer arithmetic [-Wunsafe-buffer-usage] const auto pos = std::search(s1.cbegin()+startpos, s1.cend(), ~~~^~~~~~~~ src/common/bspf.hxx:249:56: warning: unsafe pointer arithmetic [-Wunsafe-buffer-usage] return pos == s1.cend() ? string::npos : pos - (s1.cbegin()+startpos); ~~~^~~~~~~~ In file included from src/emucore/CartTVBoy.cxx:19: In file included from src/emucore/CartTVBoy.hxx:22: In file included from src/emucore/CartEnhanced.hxx:27: In file included from src/debugger/gui/CartEnhancedWidget.hxx:31: In file included from src/debugger/gui/CartDebugWidget.hxx:30: In file included from src/gui/Widget.hxx:33: In file included from src/common/StellaKeys.hxx:22: In file included from src/common/SDL_lib.hxx:34: In file included from /usr/local/include/SDL2/SDL.h:32: In file included from /usr/local/include/SDL2/SDL_main.h:25: /usr/local/include/SDL2/SDL_stdinc.h:544:13: warning: '_p' is an unsafe pointer used for buffer access [-Wunsafe-buffer-usage] Uint32 *_p = SDL_static_cast(Uint32 *, dst); ~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /usr/local/include/SDL2/SDL_stdinc.h:551:26: note: used in pointer arithmetic here case 3: *_p++ = _val; SDL_FALLTHROUGH; ^~ /usr/local/include/SDL2/SDL_stdinc.h:552:26: note: used in pointer arithmetic here case 2: *_p++ = _val; SDL_FALLTHROUGH; ^~ /usr/local/include/SDL2/SDL_stdinc.h:553:26: note: used in pointer arithmetic here case 1: *_p++ = _val; ^~ /usr/local/include/SDL2/SDL_stdinc.h:550:26: note: used in pointer arithmetic here case 0: do { *_p++ = _val; SDL_FALLTHROUGH; ^~ 3 warnings generated. mkdir -p -p src/emucore/.deps mkdir -p -p out/src/emucore c++ -MMD -MF "src/emucore/.deps/CartUA.d" -MQ "out/src/emucore/CartUA.o" -MP -O2 -pipe -I/usr/X11R6/include -I/usr/local/include -x c++ -Wall -Wextra -Wno-unused-parameter -Wno-multichar -Wunused -Woverloaded-virtual -Wnon-virtual-dtor -std=c++17 -Weverything -Wno-c++98-compat-pedantic -Wno-unknown-warning-option -Wno-switch-enum -Wno-conversion -Wno-covered-switch-default -Wno-inconsistent-missing-destructor-override -Wno-float-equal -Wno-exit-time-destructors -Wno-global-constructors -Wno-weak-vtables -Wno-four-char-constants -Wno-padded -Wno-reserved-identifier -Wno-duplicate-enum -fomit-frame-pointer -DSDL_SUPPORT -D_GLIBCXX_USE_CXX11_ABI=1 -DUNIX -DBSPF_UNIX -DGUI_SUPPORT -DWINDOWED_SUPPORT -DSOUND_SUPPORT -DDEBUGGER_SUPPORT -DJOYSTICK_SUPPORT -DCHEATCODE_SUPPORT -DHTTP_LIB_SUPPORT -DPNG_SUPPORT -DZIP_SUPPORT -Isrc/emucore -Isrc/common -Isrc/common/tv_filters -Isrc/emucore/tia -Isrc/emucore/tia/frame-manager -Isrc/json -Isrc/common/repository/sqlite -I/usr/local/include -I/usr/local/include/SDL2 -I/usr/X11R6/include -D_REENTRANT -I/usr/X11R6/include -Isrc/unix -Isrc/gui -Isrc/debugger -Isrc/debugger/gui -Isrc/yacc -Isrc/cheat -Isrc/httplib -c src/emucore/CartUA.cxx -o out/src/emucore/CartUA.o In file included from src/emucore/CartUA.cxx:18: In file included from src/emucore/System.hxx:26: src/common/bspf.hxx:245:37: warning: unsafe pointer arithmetic [-Wunsafe-buffer-usage] const auto pos = std::search(s1.cbegin()+startpos, s1.cend(), ~~~^~~~~~~~ src/common/bspf.hxx:249:56: warning: unsafe pointer arithmetic [-Wunsafe-buffer-usage] return pos == s1.cend() ? string::npos : pos - (s1.cbegin()+startpos); ~~~^~~~~~~~ In file included from src/emucore/CartUA.cxx:19: In file included from src/emucore/CartUA.hxx:22: In file included from src/emucore/CartEnhanced.hxx:27: In file included from src/debugger/gui/CartEnhancedWidget.hxx:31: In file included from src/debugger/gui/CartDebugWidget.hxx:30: In file included from src/gui/Widget.hxx:33: In file included from src/common/StellaKeys.hxx:22: In file included from src/common/SDL_lib.hxx:34: In file included from /usr/local/include/SDL2/SDL.h:32: In file included from /usr/local/include/SDL2/SDL_main.h:25: /usr/local/include/SDL2/SDL_stdinc.h:544:13: warning: '_p' is an unsafe pointer used for buffer access [-Wunsafe-buffer-usage] Uint32 *_p = SDL_static_cast(Uint32 *, dst); ~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /usr/local/include/SDL2/SDL_stdinc.h:553:26: note: used in pointer arithmetic here case 1: *_p++ = _val; ^~ /usr/local/include/SDL2/SDL_stdinc.h:551:26: note: used in pointer arithmetic here case 3: *_p++ = _val; SDL_FALLTHROUGH; ^~ /usr/local/include/SDL2/SDL_stdinc.h:552:26: note: used in pointer arithmetic here case 2: *_p++ = _val; SDL_FALLTHROUGH; ^~ /usr/local/include/SDL2/SDL_stdinc.h:550:26: note: used in pointer arithmetic here case 0: do { *_p++ = _val; SDL_FALLTHROUGH; ^~ 3 warnings generated. mkdir -p -p src/emucore/.deps mkdir -p -p out/src/emucore c++ -MMD -MF "src/emucore/.deps/CartWD.d" -MQ "out/src/emucore/CartWD.o" -MP -O2 -pipe -I/usr/X11R6/include -I/usr/local/include -x c++ -Wall -Wextra -Wno-unused-parameter -Wno-multichar -Wunused -Woverloaded-virtual -Wnon-virtual-dtor -std=c++17 -Weverything -Wno-c++98-compat-pedantic -Wno-unknown-warning-option -Wno-switch-enum -Wno-conversion -Wno-covered-switch-default -Wno-inconsistent-missing-destructor-override -Wno-float-equal -Wno-exit-time-destructors -Wno-global-constructors -Wno-weak-vtables -Wno-four-char-constants -Wno-padded -Wno-reserved-identifier -Wno-duplicate-enum -fomit-frame-pointer -DSDL_SUPPORT -D_GLIBCXX_USE_CXX11_ABI=1 -DUNIX -DBSPF_UNIX -DGUI_SUPPORT -DWINDOWED_SUPPORT -DSOUND_SUPPORT -DDEBUGGER_SUPPORT -DJOYSTICK_SUPPORT -DCHEATCODE_SUPPORT -DHTTP_LIB_SUPPORT -DPNG_SUPPORT -DZIP_SUPPORT -Isrc/emucore -Isrc/common -Isrc/common/tv_filters -Isrc/emucore/tia -Isrc/emucore/tia/frame-manager -Isrc/json -Isrc/common/repository/sqlite -I/usr/local/include -I/usr/local/include/SDL2 -I/usr/X11R6/include -D_REENTRANT -I/usr/X11R6/include -Isrc/unix -Isrc/gui -Isrc/debugger -Isrc/debugger/gui -Isrc/yacc -Isrc/cheat -Isrc/httplib -c src/emucore/CartWD.cxx -o out/src/emucore/CartWD.o In file included from src/emucore/CartWD.cxx:18: In file included from src/emucore/tia/TIA.hxx:23: src/common/bspf.hxx:245:37: warning: unsafe pointer arithmetic [-Wunsafe-buffer-usage] const auto pos = std::search(s1.cbegin()+startpos, s1.cend(), ~~~^~~~~~~~ src/common/bspf.hxx:249:56: warning: unsafe pointer arithmetic [-Wunsafe-buffer-usage] return pos == s1.cend() ? string::npos : pos - (s1.cbegin()+startpos); ~~~^~~~~~~~ In file included from src/emucore/CartWD.cxx:18: In file included from src/emucore/tia/TIA.hxx:37: src/emucore/tia/Missile.hxx:170:7: warning: unsafe buffer access [-Wunsafe-buffer-usage] if (myDecodes[myCounter] && !myResmp) { ^~~~~~~~~ src/emucore/tia/Missile.hxx:173:14: warning: unsafe buffer access [-Wunsafe-buffer-usage] myCopy = myDecodes[myCounter]; ^~~~~~~~~ In file included from src/emucore/CartWD.cxx:18: In file included from src/emucore/tia/TIA.hxx:38: src/emucore/tia/Player.hxx:186:7: warning: unsafe buffer access [-Wunsafe-buffer-usage] if (myDecodes[myCounter]) { ^~~~~~~~~ src/emucore/tia/Player.hxx:190:14: warning: unsafe buffer access [-Wunsafe-buffer-usage] myCopy = myDecodes[myCounter]; ^~~~~~~~~ In file included from src/emucore/CartWD.cxx:21: In file included from src/emucore/CartWD.hxx:24: In file included from src/emucore/CartEnhanced.hxx:27: In file included from src/debugger/gui/CartEnhancedWidget.hxx:31: In file included from src/debugger/gui/CartDebugWidget.hxx:30: In file included from src/gui/Widget.hxx:33: In file included from src/common/StellaKeys.hxx:22: In file included from src/common/SDL_lib.hxx:34: In file included from /usr/local/include/SDL2/SDL.h:32: In file included from /usr/local/include/SDL2/SDL_main.h:25: /usr/local/include/SDL2/SDL_stdinc.h:544:13: warning: '_p' is an unsafe pointer used for buffer access [-Wunsafe-buffer-usage] Uint32 *_p = SDL_static_cast(Uint32 *, dst); ~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /usr/local/include/SDL2/SDL_stdinc.h:552:26: note: used in pointer arithmetic here case 2: *_p++ = _val; SDL_FALLTHROUGH; ^~ /usr/local/include/SDL2/SDL_stdinc.h:551:26: note: used in pointer arithmetic here case 3: *_p++ = _val; SDL_FALLTHROUGH; ^~ /usr/local/include/SDL2/SDL_stdinc.h:553:26: note: used in pointer arithmetic here case 1: *_p++ = _val; ^~ /usr/local/include/SDL2/SDL_stdinc.h:550:26: note: used in pointer arithmetic here case 0: do { *_p++ = _val; SDL_FALLTHROUGH; ^~ src/emucore/CartWD.cxx:33:23: warning: unsafe pointer arithmetic [-Wunsafe-buffer-usage] std::copy_n(image.get() + 1_KB * 3, 1_KB * 1, myImage.get() + 1_KB * 2); ~~~~~~^~~~~ src/emucore/CartWD.cxx:33:59: warning: unsafe pointer arithmetic [-Wunsafe-buffer-usage] std::copy_n(image.get() + 1_KB * 3, 1_KB * 1, myImage.get() + 1_KB * 2); ~~~~~~~~^~~~~ src/emucore/CartWD.cxx:34:23: warning: unsafe pointer arithmetic [-Wunsafe-buffer-usage] std::copy_n(image.get() + 1_KB * 2, 1_KB * 1, myImage.get() + 1_KB * 3); ~~~~~~^~~~~ src/emucore/CartWD.cxx:34:59: warning: unsafe pointer arithmetic [-Wunsafe-buffer-usage] std::copy_n(image.get() + 1_KB * 2, 1_KB * 1, myImage.get() + 1_KB * 3); ~~~~~~~~^~~~~ 11 warnings generated. mkdir -p -p src/emucore/.deps mkdir -p -p out/src/emucore c++ -MMD -MF "src/emucore/.deps/CartX07.d" -MQ "out/src/emucore/CartX07.o" -MP -O2 -pipe -I/usr/X11R6/include -I/usr/local/include -x c++ -Wall -Wextra -Wno-unused-parameter -Wno-multichar -Wunused -Woverloaded-virtual -Wnon-virtual-dtor -std=c++17 -Weverything -Wno-c++98-compat-pedantic -Wno-unknown-warning-option -Wno-switch-enum -Wno-conversion -Wno-covered-switch-default -Wno-inconsistent-missing-destructor-override -Wno-float-equal -Wno-exit-time-destructors -Wno-global-constructors -Wno-weak-vtables -Wno-four-char-constants -Wno-padded -Wno-reserved-identifier -Wno-duplicate-enum -fomit-frame-pointer -DSDL_SUPPORT -D_GLIBCXX_USE_CXX11_ABI=1 -DUNIX -DBSPF_UNIX -DGUI_SUPPORT -DWINDOWED_SUPPORT -DSOUND_SUPPORT -DDEBUGGER_SUPPORT -DJOYSTICK_SUPPORT -DCHEATCODE_SUPPORT -DHTTP_LIB_SUPPORT -DPNG_SUPPORT -DZIP_SUPPORT -Isrc/emucore -Isrc/common -Isrc/common/tv_filters -Isrc/emucore/tia -Isrc/emucore/tia/frame-manager -Isrc/json -Isrc/common/repository/sqlite -I/usr/local/include -I/usr/local/include/SDL2 -I/usr/X11R6/include -D_REENTRANT -I/usr/X11R6/include -Isrc/unix -Isrc/gui -Isrc/debugger -Isrc/debugger/gui -Isrc/yacc -Isrc/cheat -Isrc/httplib -c src/emucore/CartX07.cxx -o out/src/emucore/CartX07.o In file included from src/emucore/CartX07.cxx:18: In file included from src/emucore/System.hxx:26: src/common/bspf.hxx:245:37: warning: unsafe pointer arithmetic [-Wunsafe-buffer-usage] const auto pos = std::search(s1.cbegin()+startpos, s1.cend(), ~~~^~~~~~~~ src/common/bspf.hxx:249:56: warning: unsafe pointer arithmetic [-Wunsafe-buffer-usage] return pos == s1.cend() ? string::npos : pos - (s1.cbegin()+startpos); ~~~^~~~~~~~ In file included from src/emucore/CartX07.cxx:20: In file included from src/emucore/tia/TIA.hxx:37: src/emucore/tia/Missile.hxx:170:7: warning: unsafe buffer access [-Wunsafe-buffer-usage] if (myDecodes[myCounter] && !myResmp) { ^~~~~~~~~ src/emucore/tia/Missile.hxx:173:14: warning: unsafe buffer access [-Wunsafe-buffer-usage] myCopy = myDecodes[myCounter]; ^~~~~~~~~ In file included from src/emucore/CartX07.cxx:20: In file included from src/emucore/tia/TIA.hxx:38: src/emucore/tia/Player.hxx:186:7: warning: unsafe buffer access [-Wunsafe-buffer-usage] if (myDecodes[myCounter]) { ^~~~~~~~~ src/emucore/tia/Player.hxx:190:14: warning: unsafe buffer access [-Wunsafe-buffer-usage] myCopy = myDecodes[myCounter]; ^~~~~~~~~ In file included from src/emucore/CartX07.cxx:21: In file included from src/emucore/CartX07.hxx:24: In file included from src/emucore/CartEnhanced.hxx:27: In file included from src/debugger/gui/CartEnhancedWidget.hxx:31: In file included from src/debugger/gui/CartDebugWidget.hxx:30: In file included from src/gui/Widget.hxx:33: In file included from src/common/StellaKeys.hxx:22: In file included from src/common/SDL_lib.hxx:34: In file included from /usr/local/include/SDL2/SDL.h:32: In file included from /usr/local/include/SDL2/SDL_main.h:25: /usr/local/include/SDL2/SDL_stdinc.h:544:13: warning: '_p' is an unsafe pointer used for buffer access [-Wunsafe-buffer-usage] Uint32 *_p = SDL_static_cast(Uint32 *, dst); ~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /usr/local/include/SDL2/SDL_stdinc.h:550:26: note: used in pointer arithmetic here case 0: do { *_p++ = _val; SDL_FALLTHROUGH; ^~ /usr/local/include/SDL2/SDL_stdinc.h:552:26: note: used in pointer arithmetic here case 2: *_p++ = _val; SDL_FALLTHROUGH; ^~ /usr/local/include/SDL2/SDL_stdinc.h:553:26: note: used in pointer arithmetic here case 1: *_p++ = _val; ^~ /usr/local/include/SDL2/SDL_stdinc.h:551:26: note: used in pointer arithmetic here case 3: *_p++ = _val; SDL_FALLTHROUGH; ^~ 7 warnings generated. mkdir -p -p src/emucore/.deps mkdir -p -p out/src/emucore c++ -MMD -MF "src/emucore/.deps/CompuMate.d" -MQ "out/src/emucore/CompuMate.o" -MP -O2 -pipe -I/usr/X11R6/include -I/usr/local/include -x c++ -Wall -Wextra -Wno-unused-parameter -Wno-multichar -Wunused -Woverloaded-virtual -Wnon-virtual-dtor -std=c++17 -Weverything -Wno-c++98-compat-pedantic -Wno-unknown-warning-option -Wno-switch-enum -Wno-conversion -Wno-covered-switch-default -Wno-inconsistent-missing-destructor-override -Wno-float-equal -Wno-exit-time-destructors -Wno-global-constructors -Wno-weak-vtables -Wno-four-char-constants -Wno-padded -Wno-reserved-identifier -Wno-duplicate-enum -fomit-frame-pointer -DSDL_SUPPORT -D_GLIBCXX_USE_CXX11_ABI=1 -DUNIX -DBSPF_UNIX -DGUI_SUPPORT -DWINDOWED_SUPPORT -DSOUND_SUPPORT -DDEBUGGER_SUPPORT -DJOYSTICK_SUPPORT -DCHEATCODE_SUPPORT -DHTTP_LIB_SUPPORT -DPNG_SUPPORT -DZIP_SUPPORT -Isrc/emucore -Isrc/common -Isrc/common/tv_filters -Isrc/emucore/tia -Isrc/emucore/tia/frame-manager -Isrc/json -Isrc/common/repository/sqlite -I/usr/local/include -I/usr/local/include/SDL2 -I/usr/X11R6/include -D_REENTRANT -I/usr/X11R6/include -Isrc/unix -Isrc/gui -Isrc/debugger -Isrc/debugger/gui -Isrc/yacc -Isrc/cheat -Isrc/httplib -c src/emucore/CompuMate.cxx -o out/src/emucore/CompuMate.o In file included from src/emucore/CompuMate.cxx:18: In file included from src/emucore/Console.hxx:34: src/common/bspf.hxx:245:37: warning: unsafe pointer arithmetic [-Wunsafe-buffer-usage] const auto pos = std::search(s1.cbegin()+startpos, s1.cend(), ~~~^~~~~~~~ src/common/bspf.hxx:249:56: warning: unsafe pointer arithmetic [-Wunsafe-buffer-usage] return pos == s1.cend() ? string::npos : pos - (s1.cbegin()+startpos); ~~~^~~~~~~~ 2 warnings generated. mkdir -p -p src/emucore/.deps mkdir -p -p out/src/emucore c++ -MMD -MF "src/emucore/.deps/Console.d" -MQ "out/src/emucore/Console.o" -MP -O2 -pipe -I/usr/X11R6/include -I/usr/local/include -x c++ -Wall -Wextra -Wno-unused-parameter -Wno-multichar -Wunused -Woverloaded-virtual -Wnon-virtual-dtor -std=c++17 -Weverything -Wno-c++98-compat-pedantic -Wno-unknown-warning-option -Wno-switch-enum -Wno-conversion -Wno-covered-switch-default -Wno-inconsistent-missing-destructor-override -Wno-float-equal -Wno-exit-time-destructors -Wno-global-constructors -Wno-weak-vtables -Wno-four-char-constants -Wno-padded -Wno-reserved-identifier -Wno-duplicate-enum -fomit-frame-pointer -DSDL_SUPPORT -D_GLIBCXX_USE_CXX11_ABI=1 -DUNIX -DBSPF_UNIX -DGUI_SUPPORT -DWINDOWED_SUPPORT -DSOUND_SUPPORT -DDEBUGGER_SUPPORT -DJOYSTICK_SUPPORT -DCHEATCODE_SUPPORT -DHTTP_LIB_SUPPORT -DPNG_SUPPORT -DZIP_SUPPORT -Isrc/emucore -Isrc/common -Isrc/common/tv_filters -Isrc/emucore/tia -Isrc/emucore/tia/frame-manager -Isrc/json -Isrc/common/repository/sqlite -I/usr/local/include -I/usr/local/include/SDL2 -I/usr/X11R6/include -D_REENTRANT -I/usr/X11R6/include -Isrc/unix -Isrc/gui -Isrc/debugger -Isrc/debugger/gui -Isrc/yacc -Isrc/cheat -Isrc/httplib -c src/emucore/Console.cxx -o out/src/emucore/Console.o In file included from src/emucore/Console.cxx:22: In file included from src/emucore/AtariVox.hxx:25: In file included from src/emucore/Control.hxx:28: src/common/bspf.hxx:245:37: warning: unsafe pointer arithmetic [-Wunsafe-buffer-usage] const auto pos = std::search(s1.cbegin()+startpos, s1.cend(), ~~~^~~~~~~~ src/common/bspf.hxx:249:56: warning: unsafe pointer arithmetic [-Wunsafe-buffer-usage] return pos == s1.cend() ? string::npos : pos - (s1.cbegin()+startpos); ~~~^~~~~~~~ In file included from src/emucore/Console.cxx:27: In file included from src/emucore/CartCM.hxx:27: In file included from src/debugger/gui/CartCMWidget.hxx:28: In file included from src/debugger/gui/CartDebugWidget.hxx:30: In file included from src/gui/Widget.hxx:33: In file included from src/common/StellaKeys.hxx:22: In file included from src/common/SDL_lib.hxx:34: In file included from /usr/local/include/SDL2/SDL.h:32: In file included from /usr/local/include/SDL2/SDL_main.h:25: /usr/local/include/SDL2/SDL_stdinc.h:544:13: warning: '_p' is an unsafe pointer used for buffer access [-Wunsafe-buffer-usage] Uint32 *_p = SDL_static_cast(Uint32 *, dst); ~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /usr/local/include/SDL2/SDL_stdinc.h:553:26: note: used in pointer arithmetic here case 1: *_p++ = _val; ^~ /usr/local/include/SDL2/SDL_stdinc.h:550:26: note: used in pointer arithmetic here case 0: do { *_p++ = _val; SDL_FALLTHROUGH; ^~ /usr/local/include/SDL2/SDL_stdinc.h:552:26: note: used in pointer arithmetic here case 2: *_p++ = _val; SDL_FALLTHROUGH; ^~ /usr/local/include/SDL2/SDL_stdinc.h:551:26: note: used in pointer arithmetic here case 3: *_p++ = _val; SDL_FALLTHROUGH; ^~ In file included from src/emucore/Console.cxx:45: In file included from src/emucore/tia/TIA.hxx:37: src/emucore/tia/Missile.hxx:170:7: warning: unsafe buffer access [-Wunsafe-buffer-usage] if (myDecodes[myCounter] && !myResmp) { ^~~~~~~~~ src/emucore/tia/Missile.hxx:173:14: warning: unsafe buffer access [-Wunsafe-buffer-usage] myCopy = myDecodes[myCounter]; ^~~~~~~~~ In file included from src/emucore/Console.cxx:45: In file included from src/emucore/tia/TIA.hxx:38: src/emucore/tia/Player.hxx:186:7: warning: unsafe buffer access [-Wunsafe-buffer-usage] if (myDecodes[myCounter]) { ^~~~~~~~~ src/emucore/tia/Player.hxx:190:14: warning: unsafe buffer access [-Wunsafe-buffer-usage] myCopy = myDecodes[myCounter]; ^~~~~~~~~ In file included from src/emucore/Console.cxx:56: In file included from src/emucore/TIASurface.hxx:31: In file included from src/common/tv_filters/NTSCFilter.hxx:25: src/common/tv_filters/AtariNTSC.hxx:238:22: warning: 'to_rgb' is an unsafe pointer used for buffer access [-Wunsafe-buffer-usage] const float* to_rgb, int& ir, int& ig, int& ib) { ~~~~~~~~~~~~~^~~~~~ src/common/tv_filters/AtariNTSC.hxx:240:33: note: used in buffer access here ig = static_cast(y + to_rgb[2] * i + to_rgb[3] * q); ^~~~~~ src/common/tv_filters/AtariNTSC.hxx:240:49: note: used in buffer access here ig = static_cast(y + to_rgb[2] * i + to_rgb[3] * q); ^~~~~~ src/common/tv_filters/AtariNTSC.hxx:239:49: note: used in buffer access here ir = static_cast(y + to_rgb[0] * i + to_rgb[1] * q); ^~~~~~ src/common/tv_filters/AtariNTSC.hxx:241:33: note: used in buffer access here ib = static_cast(y + to_rgb[4] * i + to_rgb[5] * q); ^~~~~~ src/common/tv_filters/AtariNTSC.hxx:241:49: note: used in buffer access here ib = static_cast(y + to_rgb[4] * i + to_rgb[5] * q); ^~~~~~ In file included from src/emucore/Console.cxx:57: In file included from src/emucore/OSystem.hxx:55: src/emucore/FSNode.hxx:513:31: warning: unsafe pointer arithmetic [-Wunsafe-buffer-usage] const char* cur = start + str.size() - 2; ~~~~~~^~~~~~~~~~~~ src/emucore/FSNode.hxx:512:19: warning: 'start' is an unsafe pointer used for buffer access [-Wunsafe-buffer-usage] const char* start = str.c_str(); ~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~ src/emucore/FSNode.hxx:513:25: note: used in pointer arithmetic here const char* cur = start + str.size() - 2; ^~~~~ src/emucore/FSNode.hxx:513:19: warning: 'cur' is an unsafe pointer used for buffer access [-Wunsafe-buffer-usage] const char* cur = start + str.size() - 2; ~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~ src/emucore/FSNode.hxx:518:14: note: used in pointer arithmetic here return cur + 1; ^~~ src/emucore/FSNode.hxx:516:11: note: used in pointer arithmetic here --cur; ^~~ 11 warnings generated. mkdir -p -p src/emucore/.deps mkdir -p -p out/src/emucore c++ -MMD -MF "src/emucore/.deps/Control.d" -MQ "out/src/emucore/Control.o" -MP -O2 -pipe -I/usr/X11R6/include -I/usr/local/include -x c++ -Wall -Wextra -Wno-unused-parameter -Wno-multichar -Wunused -Woverloaded-virtual -Wnon-virtual-dtor -std=c++17 -Weverything -Wno-c++98-compat-pedantic -Wno-unknown-warning-option -Wno-switch-enum -Wno-conversion -Wno-covered-switch-default -Wno-inconsistent-missing-destructor-override -Wno-float-equal -Wno-exit-time-destructors -Wno-global-constructors -Wno-weak-vtables -Wno-four-char-constants -Wno-padded -Wno-reserved-identifier -Wno-duplicate-enum -fomit-frame-pointer -DSDL_SUPPORT -D_GLIBCXX_USE_CXX11_ABI=1 -DUNIX -DBSPF_UNIX -DGUI_SUPPORT -DWINDOWED_SUPPORT -DSOUND_SUPPORT -DDEBUGGER_SUPPORT -DJOYSTICK_SUPPORT -DCHEATCODE_SUPPORT -DHTTP_LIB_SUPPORT -DPNG_SUPPORT -DZIP_SUPPORT -Isrc/emucore -Isrc/common -Isrc/common/tv_filters -Isrc/emucore/tia -Isrc/emucore/tia/frame-manager -Isrc/json -Isrc/common/repository/sqlite -I/usr/local/include -I/usr/local/include/SDL2 -I/usr/X11R6/include -D_REENTRANT -I/usr/X11R6/include -Isrc/unix -Isrc/gui -Isrc/debugger -Isrc/debugger/gui -Isrc/yacc -Isrc/cheat -Isrc/httplib -c src/emucore/Control.cxx -o out/src/emucore/Control.o In file included from src/emucore/Control.cxx:21: In file included from src/emucore/System.hxx:26: src/common/bspf.hxx:245:37: warning: unsafe pointer arithmetic [-Wunsafe-buffer-usage] const auto pos = std::search(s1.cbegin()+startpos, s1.cend(), ~~~^~~~~~~~ src/common/bspf.hxx:249:56: warning: unsafe pointer arithmetic [-Wunsafe-buffer-usage] return pos == s1.cend() ? string::npos : pos - (s1.cbegin()+startpos); ~~~^~~~~~~~ 2 warnings generated. mkdir -p -p src/emucore/.deps mkdir -p -p out/src/emucore c++ -MMD -MF "src/emucore/.deps/ControllerDetector.d" -MQ "out/src/emucore/ControllerDetector.o" -MP -O2 -pipe -I/usr/X11R6/include -I/usr/local/include -x c++ -Wall -Wextra -Wno-unused-parameter -Wno-multichar -Wunused -Woverloaded-virtual -Wnon-virtual-dtor -std=c++17 -Weverything -Wno-c++98-compat-pedantic -Wno-unknown-warning-option -Wno-switch-enum -Wno-conversion -Wno-covered-switch-default -Wno-inconsistent-missing-destructor-override -Wno-float-equal -Wno-exit-time-destructors -Wno-global-constructors -Wno-weak-vtables -Wno-four-char-constants -Wno-padded -Wno-reserved-identifier -Wno-duplicate-enum -fomit-frame-pointer -DSDL_SUPPORT -D_GLIBCXX_USE_CXX11_ABI=1 -DUNIX -DBSPF_UNIX -DGUI_SUPPORT -DWINDOWED_SUPPORT -DSOUND_SUPPORT -DDEBUGGER_SUPPORT -DJOYSTICK_SUPPORT -DCHEATCODE_SUPPORT -DHTTP_LIB_SUPPORT -DPNG_SUPPORT -DZIP_SUPPORT -Isrc/emucore -Isrc/common -Isrc/common/tv_filters -Isrc/emucore/tia -Isrc/emucore/tia/frame-manager -Isrc/json -Isrc/common/repository/sqlite -I/usr/local/include -I/usr/local/include/SDL2 -I/usr/X11R6/include -D_REENTRANT -I/usr/X11R6/include -Isrc/unix -Isrc/gui -Isrc/debugger -Isrc/debugger/gui -Isrc/yacc -Isrc/cheat -Isrc/httplib -c src/emucore/ControllerDetector.cxx -o out/src/emucore/ControllerDetector.o In file included from src/emucore/ControllerDetector.cxx:18: In file included from src/emucore/Settings.hxx:23: In file included from src/common/Variant.hxx:21: In file included from src/common/Rect.hxx:26: src/common/bspf.hxx:245:37: warning: unsafe pointer arithmetic [-Wunsafe-buffer-usage] const auto pos = std::search(s1.cbegin()+startpos, s1.cend(), ~~~^~~~~~~~ src/common/bspf.hxx:249:56: warning: unsafe pointer arithmetic [-Wunsafe-buffer-usage] return pos == s1.cend() ? string::npos : pos - (s1.cbegin()+startpos); ~~~^~~~~~~~ src/emucore/ControllerDetector.cxx:98:54: warning: 'signature' is an unsafe pointer used for buffer access [-Wunsafe-buffer-usage] const uInt8* signature, uInt32 sigsize) ~~~~~~~~~~~~~^~~~~~~~~ src/emucore/ControllerDetector.cxx:106:28: note: used in buffer access here if(image[i + j] == signature[j]) ^~~~~~~~~ src/emucore/ControllerDetector.cxx:129:28: warning: 'signature_0' is an unsafe buffer that does not perform bounds checks [-Wunsafe-buffer-usage] static constexpr uInt8 signature_0[NUM_SIGS_0][SIG_SIZE_0] = { ~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ src/emucore/ControllerDetector.cxx:183:38: note: used in buffer access here if(searchForBytes(image, size, signature_0[i], SIG_SIZE_0)) ^~~~~~~~~~~ src/emucore/ControllerDetector.cxx:157:28: warning: 'signature_1' is an unsafe buffer that does not perform bounds checks [-Wunsafe-buffer-usage] static constexpr uInt8 signature_1[NUM_SIGS_1][SIG_SIZE_1] = { ~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ src/emucore/ControllerDetector.cxx:187:38: note: used in buffer access here if(searchForBytes(image, size, signature_1[i], SIG_SIZE_1)) ^~~~~~~~~~~ src/emucore/ControllerDetector.cxx:170:28: warning: 'signature_2' is an unsafe buffer that does not perform bounds checks [-Wunsafe-buffer-usage] static constexpr uInt8 signature_2[NUM_SIGS_2][SIG_SIZE_2] = { ~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ src/emucore/ControllerDetector.cxx:191:38: note: used in buffer access here if(searchForBytes(image, size, signature_2[i], SIG_SIZE_2)) ^~~~~~~~~~~ src/emucore/ControllerDetector.cxx:199:28: warning: 'signature_0' is an unsafe buffer that does not perform bounds checks [-Wunsafe-buffer-usage] static constexpr uInt8 signature_0[NUM_SIGS_0][SIG_SIZE_0] = { ~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ src/emucore/ControllerDetector.cxx:237:38: note: used in buffer access here if(searchForBytes(image, size, signature_0[i], SIG_SIZE_0)) ^~~~~~~~~~~ src/emucore/ControllerDetector.cxx:219:28: warning: 'signature_1' is an unsafe buffer that does not perform bounds checks [-Wunsafe-buffer-usage] static constexpr uInt8 signature_1[NUM_SIGS_1][SIG_SIZE_1] = { ~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ src/emucore/ControllerDetector.cxx:241:38: note: used in buffer access here if(searchForBytes(image, size, signature_1[i], SIG_SIZE_1)) ^~~~~~~~~~~ src/emucore/ControllerDetector.cxx:230:28: warning: 'signature_2' is an unsafe buffer that does not perform bounds checks [-Wunsafe-buffer-usage] static constexpr uInt8 signature_2[NUM_SIGS_2][SIG_SIZE_2] = { ~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ src/emucore/ControllerDetector.cxx:245:38: note: used in buffer access here if(searchForBytes(image, size, signature_2[i], SIG_SIZE_2)) ^~~~~~~~~~~ src/emucore/ControllerDetector.cxx:260:28: warning: 'signature_0_0' is an unsafe buffer that does not perform bounds checks [-Wunsafe-buffer-usage] static constexpr uInt8 signature_0_0[NUM_SIGS_0_0][SIG_SIZE_0_0] = { ~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ src/emucore/ControllerDetector.cxx:294:38: note: used in buffer access here if(searchForBytes(image, size, signature_0_0[i], SIG_SIZE_0_0)) ^~~~~~~~~~~~~ src/emucore/ControllerDetector.cxx:270:28: warning: 'signature_0_2' is an unsafe buffer that does not perform bounds checks [-Wunsafe-buffer-usage] static constexpr uInt8 signature_0_2[NUM_SIGS_0_2][SIG_SIZE_0_2] = { ~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ src/emucore/ControllerDetector.cxx:301:40: note: used in buffer access here if(searchForBytes(image, size, signature_0_2[i], SIG_SIZE_0_2)) ^~~~~~~~~~~~~ src/emucore/ControllerDetector.cxx:276:28: warning: 'signature_1_0' is an unsafe buffer that does not perform bounds checks [-Wunsafe-buffer-usage] static constexpr uInt8 signature_1_0[NUM_SIGS_1_0][SIG_SIZE_1_0] = { ~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ src/emucore/ControllerDetector.cxx:309:40: note: used in buffer access here if(searchForBytes(image, size, signature_1_0[j], SIG_SIZE_1_0)) ^~~~~~~~~~~~~ src/emucore/ControllerDetector.cxx:287:28: warning: 'signature_1_2' is an unsafe buffer that does not perform bounds checks [-Wunsafe-buffer-usage] static constexpr uInt8 signature_1_2[NUM_SIGS_1_2][SIG_SIZE_1_2] = { ~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ src/emucore/ControllerDetector.cxx:315:40: note: used in buffer access here if(searchForBytes(image, size, signature_1_2[j], SIG_SIZE_1_2)) ^~~~~~~~~~~~~ src/emucore/ControllerDetector.cxx:326:28: warning: 'signature_0_0' is an unsafe buffer that does not perform bounds checks [-Wunsafe-buffer-usage] static constexpr uInt8 signature_0_0[NUM_SIGS_0_0][SIG_SIZE_0_0] = { ~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ src/emucore/ControllerDetector.cxx:359:38: note: used in buffer access here if(searchForBytes(image, size, signature_0_0[i], SIG_SIZE_0_0)) ^~~~~~~~~~~~~ src/emucore/ControllerDetector.cxx:336:28: warning: 'signature_0_2' is an unsafe buffer that does not perform bounds checks [-Wunsafe-buffer-usage] static constexpr uInt8 signature_0_2[NUM_SIGS_0_2][SIG_SIZE_0_2] = { ~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ src/emucore/ControllerDetector.cxx:367:40: note: used in buffer access here if(searchForBytes(image, size, signature_0_2[i], SIG_SIZE_0_2)) ^~~~~~~~~~~~~ src/emucore/ControllerDetector.cxx:342:28: warning: 'signature_1_0' is an unsafe buffer that does not perform bounds checks [-Wunsafe-buffer-usage] static constexpr uInt8 signature_1_0[NUM_SIGS_1_0][SIG_SIZE_1_0] = { ~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ src/emucore/ControllerDetector.cxx:376:40: note: used in buffer access here if(searchForBytes(image, size, signature_1_0[j], SIG_SIZE_1_0)) ^~~~~~~~~~~~~ src/emucore/ControllerDetector.cxx:352:28: warning: 'signature_1_2' is an unsafe buffer that does not perform bounds checks [-Wunsafe-buffer-usage] static constexpr uInt8 signature_1_2[NUM_SIGS_1_2][SIG_SIZE_1_2] = { ~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ src/emucore/ControllerDetector.cxx:382:40: note: used in buffer access here if(searchForBytes(image, size, signature_1_2[j], SIG_SIZE_1_2)) ^~~~~~~~~~~~~ src/emucore/ControllerDetector.cxx:401:28: warning: 'signature_0' is an unsafe buffer that does not perform bounds checks [-Wunsafe-buffer-usage] static constexpr uInt8 signature_0[NUM_SIGS_0][SIG_SIZE_0] = { ~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ src/emucore/ControllerDetector.cxx:423:38: note: used in buffer access here if(searchForBytes(image, size, signature_0[i], SIG_SIZE_0)) ^~~~~~~~~~~ src/emucore/ControllerDetector.cxx:431:28: warning: 'signature_0' is an unsafe buffer that does not perform bounds checks [-Wunsafe-buffer-usage] static constexpr uInt8 signature_0[NUM_SIGS_0][SIG_SIZE_0] = { ~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ src/emucore/ControllerDetector.cxx:444:38: note: used in buffer access here if(searchForBytes(image, size, signature_0[i], SIG_SIZE_0)) ^~~~~~~~~~~ src/emucore/ControllerDetector.cxx:459:28: warning: 'signature_0' is an unsafe buffer that does not perform bounds checks [-Wunsafe-buffer-usage] static constexpr uInt8 signature_0[NUM_SIGS_0][SIG_SIZE_0] = { ~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ src/emucore/ControllerDetector.cxx:494:38: note: used in buffer access here if(searchForBytes(image, size, signature_0[i], SIG_SIZE_0)) ^~~~~~~~~~~ src/emucore/ControllerDetector.cxx:478:28: warning: 'signature_1' is an unsafe buffer that does not perform bounds checks [-Wunsafe-buffer-usage] static constexpr uInt8 signature_1[NUM_SIGS_1][SIG_SIZE_1] = { ~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ src/emucore/ControllerDetector.cxx:498:38: note: used in buffer access here if(searchForBytes(image, size, signature_1[i], SIG_SIZE_1)) ^~~~~~~~~~~ src/emucore/ControllerDetector.cxx:486:28: warning: 'signature_2' is an unsafe buffer that does not perform bounds checks [-Wunsafe-buffer-usage] static constexpr uInt8 signature_2[NUM_SIGS_2][SIG_SIZE_2] = { ~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ src/emucore/ControllerDetector.cxx:502:38: note: used in buffer access here if(searchForBytes(image, size, signature_2[i], SIG_SIZE_2)) ^~~~~~~~~~~ src/emucore/ControllerDetector.cxx:510:28: warning: 'signature_0' is an unsafe buffer that does not perform bounds checks [-Wunsafe-buffer-usage] static constexpr uInt8 signature_0[NUM_SIGS_0][SIG_SIZE_0] = { ~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ src/emucore/ControllerDetector.cxx:544:38: note: used in buffer access here if(searchForBytes(image, size, signature_0[i], SIG_SIZE_0)) ^~~~~~~~~~~ src/emucore/ControllerDetector.cxx:532:28: warning: 'signature_1' is an unsafe buffer that does not perform bounds checks [-Wunsafe-buffer-usage] static constexpr uInt8 signature_1[NUM_SIGS_1][SIG_SIZE_1] = { ~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ src/emucore/ControllerDetector.cxx:548:38: note: used in buffer access here if(searchForBytes(image, size, signature_1[i], SIG_SIZE_1)) ^~~~~~~~~~~ src/emucore/ControllerDetector.cxx:537:28: warning: 'signature_2' is an unsafe buffer that does not perform bounds checks [-Wunsafe-buffer-usage] static constexpr uInt8 signature_2[NUM_SIGS_2][SIG_SIZE_2] = { ~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ src/emucore/ControllerDetector.cxx:552:38: note: used in buffer access here if(searchForBytes(image, size, signature_2[i], SIG_SIZE_2)) ^~~~~~~~~~~ src/emucore/ControllerDetector.cxx:565:26: warning: 'signature' is an unsafe buffer that does not perform bounds checks [-Wunsafe-buffer-usage] static constexpr uInt8 signature[NUM_SIGS][SIG_SIZE] = { ~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ src/emucore/ControllerDetector.cxx:572:36: note: used in buffer access here if(searchForBytes(image, size, signature[i], SIG_SIZE)) ^~~~~~~~~ src/emucore/ControllerDetector.cxx:584:26: warning: 'signature' is an unsafe buffer that does not perform bounds checks [-Wunsafe-buffer-usage] static constexpr uInt8 signature[NUM_SIGS][SIG_SIZE] = { ~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ src/emucore/ControllerDetector.cxx:591:36: note: used in buffer access here if(searchForBytes(image, size, signature[i], SIG_SIZE)) ^~~~~~~~~ src/emucore/ControllerDetector.cxx:603:26: warning: 'signature' is an unsafe buffer that does not perform bounds checks [-Wunsafe-buffer-usage] static constexpr uInt8 signature[NUM_SIGS][SIG_SIZE] = { ~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ src/emucore/ControllerDetector.cxx:611:36: note: used in buffer access here if(searchForBytes(image, size, signature[i], SIG_SIZE)) ^~~~~~~~~ src/emucore/ControllerDetector.cxx:626:28: warning: 'signature' is an unsafe buffer that does not perform bounds checks [-Wunsafe-buffer-usage] static constexpr uInt8 signature[NUM_SIGS][SIG_SIZE] = { ~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ src/emucore/ControllerDetector.cxx:655:38: note: used in buffer access here if(searchForBytes(image, size, signature[i], SIG_SIZE)) ^~~~~~~~~ src/emucore/ControllerDetector.cxx:671:28: warning: 'signature' is an unsafe buffer that does not perform bounds checks [-Wunsafe-buffer-usage] static constexpr uInt8 signature[NUM_SIGS][SIG_SIZE] = { ~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ src/emucore/ControllerDetector.cxx:677:39: note: used in buffer access here if (searchForBytes(image, size, signature[i], SIG_SIZE)) ^~~~~~~~~ src/emucore/ControllerDetector.cxx:687:28: warning: 'signature' is an unsafe buffer that does not perform bounds checks [-Wunsafe-buffer-usage] static constexpr uInt8 signature[NUM_SIGS][SIG_SIZE] = { ~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ src/emucore/ControllerDetector.cxx:693:39: note: used in buffer access here if (searchForBytes(image, size, signature[i], SIG_SIZE)) ^~~~~~~~~ src/emucore/ControllerDetector.cxx:706:28: warning: 'signatureBoth' is an unsafe buffer that does not perform bounds checks [-Wunsafe-buffer-usage] static constexpr uInt8 signatureBoth[NUM_SIGS][SIG_SIZE] = { ~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ src/emucore/ControllerDetector.cxx:712:38: note: used in buffer access here if(searchForBytes(image, size, signatureBoth[i], SIG_SIZE)) ^~~~~~~~~~~~~ 32 warnings generated. mkdir -p -p src/emucore/.deps mkdir -p -p out/src/emucore c++ -MMD -MF "src/emucore/.deps/DispatchResult.d" -MQ "out/src/emucore/DispatchResult.o" -MP -O2 -pipe -I/usr/X11R6/include -I/usr/local/include -x c++ -Wall -Wextra -Wno-unused-parameter -Wno-multichar -Wunused -Woverloaded-virtual -Wnon-virtual-dtor -std=c++17 -Weverything -Wno-c++98-compat-pedantic -Wno-unknown-warning-option -Wno-switch-enum -Wno-conversion -Wno-covered-switch-default -Wno-inconsistent-missing-destructor-override -Wno-float-equal -Wno-exit-time-destructors -Wno-global-constructors -Wno-weak-vtables -Wno-four-char-constants -Wno-padded -Wno-reserved-identifier -Wno-duplicate-enum -fomit-frame-pointer -DSDL_SUPPORT -D_GLIBCXX_USE_CXX11_ABI=1 -DUNIX -DBSPF_UNIX -DGUI_SUPPORT -DWINDOWED_SUPPORT -DSOUND_SUPPORT -DDEBUGGER_SUPPORT -DJOYSTICK_SUPPORT -DCHEATCODE_SUPPORT -DHTTP_LIB_SUPPORT -DPNG_SUPPORT -DZIP_SUPPORT -Isrc/emucore -Isrc/common -Isrc/common/tv_filters -Isrc/emucore/tia -Isrc/emucore/tia/frame-manager -Isrc/json -Isrc/common/repository/sqlite -I/usr/local/include -I/usr/local/include/SDL2 -I/usr/X11R6/include -D_REENTRANT -I/usr/X11R6/include -Isrc/unix -Isrc/gui -Isrc/debugger -Isrc/debugger/gui -Isrc/yacc -Isrc/cheat -Isrc/httplib -c src/emucore/DispatchResult.cxx -o out/src/emucore/DispatchResult.o In file included from src/emucore/DispatchResult.cxx:18: In file included from src/emucore/DispatchResult.hxx:21: src/common/bspf.hxx:245:37: warning: unsafe pointer arithmetic [-Wunsafe-buffer-usage] const auto pos = std::search(s1.cbegin()+startpos, s1.cend(), ~~~^~~~~~~~ src/common/bspf.hxx:249:56: warning: unsafe pointer arithmetic [-Wunsafe-buffer-usage] return pos == s1.cend() ? string::npos : pos - (s1.cbegin()+startpos); ~~~^~~~~~~~ 2 warnings generated. mkdir -p -p src/emucore/.deps mkdir -p -p out/src/emucore c++ -MMD -MF "src/emucore/.deps/Driving.d" -MQ "out/src/emucore/Driving.o" -MP -O2 -pipe -I/usr/X11R6/include -I/usr/local/include -x c++ -Wall -Wextra -Wno-unused-parameter -Wno-multichar -Wunused -Woverloaded-virtual -Wnon-virtual-dtor -std=c++17 -Weverything -Wno-c++98-compat-pedantic -Wno-unknown-warning-option -Wno-switch-enum -Wno-conversion -Wno-covered-switch-default -Wno-inconsistent-missing-destructor-override -Wno-float-equal -Wno-exit-time-destructors -Wno-global-constructors -Wno-weak-vtables -Wno-four-char-constants -Wno-padded -Wno-reserved-identifier -Wno-duplicate-enum -fomit-frame-pointer -DSDL_SUPPORT -D_GLIBCXX_USE_CXX11_ABI=1 -DUNIX -DBSPF_UNIX -DGUI_SUPPORT -DWINDOWED_SUPPORT -DSOUND_SUPPORT -DDEBUGGER_SUPPORT -DJOYSTICK_SUPPORT -DCHEATCODE_SUPPORT -DHTTP_LIB_SUPPORT -DPNG_SUPPORT -DZIP_SUPPORT -Isrc/emucore -Isrc/common -Isrc/common/tv_filters -Isrc/emucore/tia -Isrc/emucore/tia/frame-manager -Isrc/json -Isrc/common/repository/sqlite -I/usr/local/include -I/usr/local/include/SDL2 -I/usr/X11R6/include -D_REENTRANT -I/usr/X11R6/include -Isrc/unix -Isrc/gui -Isrc/debugger -Isrc/debugger/gui -Isrc/yacc -Isrc/cheat -Isrc/httplib -c src/emucore/Driving.cxx -o out/src/emucore/Driving.o In file included from src/emucore/Driving.cxx:18: In file included from src/emucore/Driving.hxx:21: In file included from src/emucore/Control.hxx:28: src/common/bspf.hxx:245:37: warning: unsafe pointer arithmetic [-Wunsafe-buffer-usage] const auto pos = std::search(s1.cbegin()+startpos, s1.cend(), ~~~^~~~~~~~ src/common/bspf.hxx:249:56: warning: unsafe pointer arithmetic [-Wunsafe-buffer-usage] return pos == s1.cend() ? string::npos : pos - (s1.cbegin()+startpos); ~~~^~~~~~~~ 2 warnings generated. mkdir -p -p src/emucore/.deps mkdir -p -p out/src/emucore c++ -MMD -MF "src/emucore/.deps/EventHandler.d" -MQ "out/src/emucore/EventHandler.o" -MP -O2 -pipe -I/usr/X11R6/include -I/usr/local/include -x c++ -Wall -Wextra -Wno-unused-parameter -Wno-multichar -Wunused -Woverloaded-virtual -Wnon-virtual-dtor -std=c++17 -Weverything -Wno-c++98-compat-pedantic -Wno-unknown-warning-option -Wno-switch-enum -Wno-conversion -Wno-covered-switch-default -Wno-inconsistent-missing-destructor-override -Wno-float-equal -Wno-exit-time-destructors -Wno-global-constructors -Wno-weak-vtables -Wno-four-char-constants -Wno-padded -Wno-reserved-identifier -Wno-duplicate-enum -fomit-frame-pointer -DSDL_SUPPORT -D_GLIBCXX_USE_CXX11_ABI=1 -DUNIX -DBSPF_UNIX -DGUI_SUPPORT -DWINDOWED_SUPPORT -DSOUND_SUPPORT -DDEBUGGER_SUPPORT -DJOYSTICK_SUPPORT -DCHEATCODE_SUPPORT -DHTTP_LIB_SUPPORT -DPNG_SUPPORT -DZIP_SUPPORT -Isrc/emucore -Isrc/common -Isrc/common/tv_filters -Isrc/emucore/tia -Isrc/emucore/tia/frame-manager -Isrc/json -Isrc/common/repository/sqlite -I/usr/local/include -I/usr/local/include/SDL2 -I/usr/X11R6/include -D_REENTRANT -I/usr/X11R6/include -Isrc/unix -Isrc/gui -Isrc/debugger -Isrc/debugger/gui -Isrc/yacc -Isrc/cheat -Isrc/httplib -c src/emucore/EventHandler.cxx -o out/src/emucore/EventHandler.o In file included from src/emucore/EventHandler.cxx:21: In file included from src/common/Logger.hxx:24: src/common/bspf.hxx:245:37: warning: unsafe pointer arithmetic [-Wunsafe-buffer-usage] const auto pos = std::search(s1.cbegin()+startpos, s1.cend(), ~~~^~~~~~~~ src/common/bspf.hxx:249:56: warning: unsafe pointer arithmetic [-Wunsafe-buffer-usage] return pos == s1.cend() ? string::npos : pos - (s1.cbegin()+startpos); ~~~^~~~~~~~ In file included from src/emucore/EventHandler.cxx:25: In file included from src/common/PaletteHandler.hxx:22: In file included from src/emucore/OSystem.hxx:55: src/emucore/FSNode.hxx:513:31: warning: unsafe pointer arithmetic [-Wunsafe-buffer-usage] const char* cur = start + str.size() - 2; ~~~~~~^~~~~~~~~~~~ src/emucore/FSNode.hxx:512:19: warning: 'start' is an unsafe pointer used for buffer access [-Wunsafe-buffer-usage] const char* start = str.c_str(); ~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~ src/emucore/FSNode.hxx:513:25: note: used in pointer arithmetic here const char* cur = start + str.size() - 2; ^~~~~ src/emucore/FSNode.hxx:513:19: warning: 'cur' is an unsafe pointer used for buffer access [-Wunsafe-buffer-usage] const char* cur = start + str.size() - 2; ~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~ src/emucore/FSNode.hxx:518:14: note: used in pointer arithmetic here return cur + 1; ^~~ src/emucore/FSNode.hxx:516:11: note: used in pointer arithmetic here --cur; ^~~ In file included from src/emucore/EventHandler.cxx:41: In file included from src/emucore/GlobalKeyHandler.hxx:21: In file included from src/emucore/EventHandler.hxx:38: In file included from src/common/PKeyboardHandler.hxx:30: In file included from src/common/KeyMap.hxx:24: In file included from src/common/StellaKeys.hxx:22: In file included from src/common/SDL_lib.hxx:34: In file included from /usr/local/include/SDL2/SDL.h:32: In file included from /usr/local/include/SDL2/SDL_main.h:25: /usr/local/include/SDL2/SDL_stdinc.h:544:13: warning: '_p' is an unsafe pointer used for buffer access [-Wunsafe-buffer-usage] Uint32 *_p = SDL_static_cast(Uint32 *, dst); ~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /usr/local/include/SDL2/SDL_stdinc.h:553:26: note: used in pointer arithmetic here case 1: *_p++ = _val; ^~ /usr/local/include/SDL2/SDL_stdinc.h:551:26: note: used in pointer arithmetic here case 3: *_p++ = _val; SDL_FALLTHROUGH; ^~ /usr/local/include/SDL2/SDL_stdinc.h:550:26: note: used in pointer arithmetic here case 0: do { *_p++ = _val; SDL_FALLTHROUGH; ^~ /usr/local/include/SDL2/SDL_stdinc.h:552:26: note: used in pointer arithmetic here case 2: *_p++ = _val; SDL_FALLTHROUGH; ^~ In file included from src/emucore/EventHandler.cxx:49: In file included from src/emucore/TIASurface.hxx:31: In file included from src/common/tv_filters/NTSCFilter.hxx:25: src/common/tv_filters/AtariNTSC.hxx:238:22: warning: 'to_rgb' is an unsafe pointer used for buffer access [-Wunsafe-buffer-usage] const float* to_rgb, int& ir, int& ig, int& ib) { ~~~~~~~~~~~~~^~~~~~ src/common/tv_filters/AtariNTSC.hxx:239:49: note: used in buffer access here ir = static_cast(y + to_rgb[0] * i + to_rgb[1] * q); ^~~~~~ src/common/tv_filters/AtariNTSC.hxx:240:49: note: used in buffer access here ig = static_cast(y + to_rgb[2] * i + to_rgb[3] * q); ^~~~~~ src/common/tv_filters/AtariNTSC.hxx:241:49: note: used in buffer access here ib = static_cast(y + to_rgb[4] * i + to_rgb[5] * q); ^~~~~~ src/common/tv_filters/AtariNTSC.hxx:241:33: note: used in buffer access here ib = static_cast(y + to_rgb[4] * i + to_rgb[5] * q); ^~~~~~ src/common/tv_filters/AtariNTSC.hxx:240:33: note: used in buffer access here ig = static_cast(y + to_rgb[2] * i + to_rgb[3] * q); ^~~~~~ src/emucore/EventHandler.cxx:2528:16: warning: 'MODES' is an unsafe buffer that does not perform bounds checks [-Wunsafe-buffer-usage] const string MODES[NUM_MODES] = {"always", "analog", "never"}; ~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ src/emucore/EventHandler.cxx:2538:18: note: used in buffer access here usemouse = MODES[i]; ^~~~~ src/emucore/EventHandler.cxx:2529:16: warning: 'MSG' is an unsafe buffer that does not perform bounds checks [-Wunsafe-buffer-usage] const string MSG[NUM_MODES] = {"all", "analog", "no"}; ~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ src/emucore/EventHandler.cxx:2548:30: note: used in buffer access here ss << "Mouse controls " << MSG[i] << " devices"; ^~~ 9 warnings generated. mkdir -p -p src/emucore/.deps mkdir -p -p out/src/emucore c++ -MMD -MF "src/emucore/.deps/EmulationTiming.d" -MQ "out/src/emucore/EmulationTiming.o" -MP -O2 -pipe -I/usr/X11R6/include -I/usr/local/include -x c++ -Wall -Wextra -Wno-unused-parameter -Wno-multichar -Wunused -Woverloaded-virtual -Wnon-virtual-dtor -std=c++17 -Weverything -Wno-c++98-compat-pedantic -Wno-unknown-warning-option -Wno-switch-enum -Wno-conversion -Wno-covered-switch-default -Wno-inconsistent-missing-destructor-override -Wno-float-equal -Wno-exit-time-destructors -Wno-global-constructors -Wno-weak-vtables -Wno-four-char-constants -Wno-padded -Wno-reserved-identifier -Wno-duplicate-enum -fomit-frame-pointer -DSDL_SUPPORT -D_GLIBCXX_USE_CXX11_ABI=1 -DUNIX -DBSPF_UNIX -DGUI_SUPPORT -DWINDOWED_SUPPORT -DSOUND_SUPPORT -DDEBUGGER_SUPPORT -DJOYSTICK_SUPPORT -DCHEATCODE_SUPPORT -DHTTP_LIB_SUPPORT -DPNG_SUPPORT -DZIP_SUPPORT -Isrc/emucore -Isrc/common -Isrc/common/tv_filters -Isrc/emucore/tia -Isrc/emucore/tia/frame-manager -Isrc/json -Isrc/common/repository/sqlite -I/usr/local/include -I/usr/local/include/SDL2 -I/usr/X11R6/include -D_REENTRANT -I/usr/X11R6/include -Isrc/unix -Isrc/gui -Isrc/debugger -Isrc/debugger/gui -Isrc/yacc -Isrc/cheat -Isrc/httplib -c src/emucore/EmulationTiming.cxx -o out/src/emucore/EmulationTiming.o In file included from src/emucore/EmulationTiming.cxx:20: In file included from src/emucore/EmulationTiming.hxx:21: src/common/bspf.hxx:245:37: warning: unsafe pointer arithmetic [-Wunsafe-buffer-usage] const auto pos = std::search(s1.cbegin()+startpos, s1.cend(), ~~~^~~~~~~~ src/common/bspf.hxx:249:56: warning: unsafe pointer arithmetic [-Wunsafe-buffer-usage] return pos == s1.cend() ? string::npos : pos - (s1.cbegin()+startpos); ~~~^~~~~~~~ 2 warnings generated. mkdir -p -p src/emucore/.deps mkdir -p -p out/src/emucore c++ -MMD -MF "src/emucore/.deps/EmulationWorker.d" -MQ "out/src/emucore/EmulationWorker.o" -MP -O2 -pipe -I/usr/X11R6/include -I/usr/local/include -x c++ -Wall -Wextra -Wno-unused-parameter -Wno-multichar -Wunused -Woverloaded-virtual -Wnon-virtual-dtor -std=c++17 -Weverything -Wno-c++98-compat-pedantic -Wno-unknown-warning-option -Wno-switch-enum -Wno-conversion -Wno-covered-switch-default -Wno-inconsistent-missing-destructor-override -Wno-float-equal -Wno-exit-time-destructors -Wno-global-constructors -Wno-weak-vtables -Wno-four-char-constants -Wno-padded -Wno-reserved-identifier -Wno-duplicate-enum -fomit-frame-pointer -DSDL_SUPPORT -D_GLIBCXX_USE_CXX11_ABI=1 -DUNIX -DBSPF_UNIX -DGUI_SUPPORT -DWINDOWED_SUPPORT -DSOUND_SUPPORT -DDEBUGGER_SUPPORT -DJOYSTICK_SUPPORT -DCHEATCODE_SUPPORT -DHTTP_LIB_SUPPORT -DPNG_SUPPORT -DZIP_SUPPORT -Isrc/emucore -Isrc/common -Isrc/common/tv_filters -Isrc/emucore/tia -Isrc/emucore/tia/frame-manager -Isrc/json -Isrc/common/repository/sqlite -I/usr/local/include -I/usr/local/include/SDL2 -I/usr/X11R6/include -D_REENTRANT -I/usr/X11R6/include -Isrc/unix -Isrc/gui -Isrc/debugger -Isrc/debugger/gui -Isrc/yacc -Isrc/cheat -Isrc/httplib -c src/emucore/EmulationWorker.cxx -o out/src/emucore/EmulationWorker.o In file included from src/emucore/EmulationWorker.cxx:20: In file included from src/emucore/EmulationWorker.hxx:48: src/common/bspf.hxx:245:37: warning: unsafe pointer arithmetic [-Wunsafe-buffer-usage] const auto pos = std::search(s1.cbegin()+startpos, s1.cend(), ~~~^~~~~~~~ src/common/bspf.hxx:249:56: warning: unsafe pointer arithmetic [-Wunsafe-buffer-usage] return pos == s1.cend() ? string::npos : pos - (s1.cbegin()+startpos); ~~~^~~~~~~~ In file included from src/emucore/EmulationWorker.cxx:22: In file included from src/emucore/tia/TIA.hxx:37: src/emucore/tia/Missile.hxx:170:7: warning: unsafe buffer access [-Wunsafe-buffer-usage] if (myDecodes[myCounter] && !myResmp) { ^~~~~~~~~ src/emucore/tia/Missile.hxx:173:14: warning: unsafe buffer access [-Wunsafe-buffer-usage] myCopy = myDecodes[myCounter]; ^~~~~~~~~ In file included from src/emucore/EmulationWorker.cxx:22: In file included from src/emucore/tia/TIA.hxx:38: src/emucore/tia/Player.hxx:186:7: warning: unsafe buffer access [-Wunsafe-buffer-usage] if (myDecodes[myCounter]) { ^~~~~~~~~ src/emucore/tia/Player.hxx:190:14: warning: unsafe buffer access [-Wunsafe-buffer-usage] myCopy = myDecodes[myCounter]; ^~~~~~~~~ 6 warnings generated. mkdir -p -p src/emucore/.deps mkdir -p -p out/src/emucore c++ -MMD -MF "src/emucore/.deps/FrameBuffer.d" -MQ "out/src/emucore/FrameBuffer.o" -MP -O2 -pipe -I/usr/X11R6/include -I/usr/local/include -x c++ -Wall -Wextra -Wno-unused-parameter -Wno-multichar -Wunused -Woverloaded-virtual -Wnon-virtual-dtor -std=c++17 -Weverything -Wno-c++98-compat-pedantic -Wno-unknown-warning-option -Wno-switch-enum -Wno-conversion -Wno-covered-switch-default -Wno-inconsistent-missing-destructor-override -Wno-float-equal -Wno-exit-time-destructors -Wno-global-constructors -Wno-weak-vtables -Wno-four-char-constants -Wno-padded -Wno-reserved-identifier -Wno-duplicate-enum -fomit-frame-pointer -DSDL_SUPPORT -D_GLIBCXX_USE_CXX11_ABI=1 -DUNIX -DBSPF_UNIX -DGUI_SUPPORT -DWINDOWED_SUPPORT -DSOUND_SUPPORT -DDEBUGGER_SUPPORT -DJOYSTICK_SUPPORT -DCHEATCODE_SUPPORT -DHTTP_LIB_SUPPORT -DPNG_SUPPORT -DZIP_SUPPORT -Isrc/emucore -Isrc/common -Isrc/common/tv_filters -Isrc/emucore/tia -Isrc/emucore/tia/frame-manager -Isrc/json -Isrc/common/repository/sqlite -I/usr/local/include -I/usr/local/include/SDL2 -I/usr/X11R6/include -D_REENTRANT -I/usr/X11R6/include -Isrc/unix -Isrc/gui -Isrc/debugger -Isrc/debugger/gui -Isrc/yacc -Isrc/cheat -Isrc/httplib -c src/emucore/FrameBuffer.cxx -o out/src/emucore/FrameBuffer.o In file included from src/emucore/FrameBuffer.cxx:18: src/common/bspf.hxx:245:37: warning: unsafe pointer arithmetic [-Wunsafe-buffer-usage] const auto pos = std::search(s1.cbegin()+startpos, s1.cend(), ~~~^~~~~~~~ src/common/bspf.hxx:249:56: warning: unsafe pointer arithmetic [-Wunsafe-buffer-usage] return pos == s1.cend() ? string::npos : pos - (s1.cbegin()+startpos); ~~~^~~~~~~~ In file included from src/emucore/FrameBuffer.cxx:22: In file included from src/emucore/EventHandler.hxx:38: In file included from src/common/PKeyboardHandler.hxx:30: In file included from src/common/KeyMap.hxx:24: In file included from src/common/StellaKeys.hxx:22: In file included from src/common/SDL_lib.hxx:34: In file included from /usr/local/include/SDL2/SDL.h:32: In file included from /usr/local/include/SDL2/SDL_main.h:25: /usr/local/include/SDL2/SDL_stdinc.h:544:13: warning: '_p' is an unsafe pointer used for buffer access [-Wunsafe-buffer-usage] Uint32 *_p = SDL_static_cast(Uint32 *, dst); ~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /usr/local/include/SDL2/SDL_stdinc.h:552:26: note: used in pointer arithmetic here case 2: *_p++ = _val; SDL_FALLTHROUGH; ^~ /usr/local/include/SDL2/SDL_stdinc.h:551:26: note: used in pointer arithmetic here case 3: *_p++ = _val; SDL_FALLTHROUGH; ^~ /usr/local/include/SDL2/SDL_stdinc.h:553:26: note: used in pointer arithmetic here case 1: *_p++ = _val; ^~ /usr/local/include/SDL2/SDL_stdinc.h:550:26: note: used in pointer arithmetic here case 0: do { *_p++ = _val; SDL_FALLTHROUGH; ^~ In file included from src/emucore/FrameBuffer.cxx:24: In file included from src/emucore/OSystem.hxx:55: src/emucore/FSNode.hxx:513:31: warning: unsafe pointer arithmetic [-Wunsafe-buffer-usage] const char* cur = start + str.size() - 2; ~~~~~~^~~~~~~~~~~~ src/emucore/FSNode.hxx:512:19: warning: 'start' is an unsafe pointer used for buffer access [-Wunsafe-buffer-usage] const char* start = str.c_str(); ~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~ src/emucore/FSNode.hxx:513:25: note: used in pointer arithmetic here const char* cur = start + str.size() - 2; ^~~~~ src/emucore/FSNode.hxx:513:19: warning: 'cur' is an unsafe pointer used for buffer access [-Wunsafe-buffer-usage] const char* cur = start + str.size() - 2; ~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~ src/emucore/FSNode.hxx:518:14: note: used in pointer arithmetic here return cur + 1; ^~~ src/emucore/FSNode.hxx:516:11: note: used in pointer arithmetic here --cur; ^~~ In file included from src/emucore/FrameBuffer.cxx:26: In file included from src/emucore/tia/TIA.hxx:37: src/emucore/tia/Missile.hxx:170:7: warning: unsafe buffer access [-Wunsafe-buffer-usage] if (myDecodes[myCounter] && !myResmp) { ^~~~~~~~~ src/emucore/tia/Missile.hxx:173:14: warning: unsafe buffer access [-Wunsafe-buffer-usage] myCopy = myDecodes[myCounter]; ^~~~~~~~~ In file included from src/emucore/FrameBuffer.cxx:26: In file included from src/emucore/tia/TIA.hxx:38: src/emucore/tia/Player.hxx:186:7: warning: unsafe buffer access [-Wunsafe-buffer-usage] if (myDecodes[myCounter]) { ^~~~~~~~~ src/emucore/tia/Player.hxx:190:14: warning: unsafe buffer access [-Wunsafe-buffer-usage] myCopy = myDecodes[myCounter]; ^~~~~~~~~ In file included from src/emucore/FrameBuffer.cxx:32: In file included from src/emucore/TIASurface.hxx:31: In file included from src/common/tv_filters/NTSCFilter.hxx:25: src/common/tv_filters/AtariNTSC.hxx:238:22: warning: 'to_rgb' is an unsafe pointer used for buffer access [-Wunsafe-buffer-usage] const float* to_rgb, int& ir, int& ig, int& ib) { ~~~~~~~~~~~~~^~~~~~ src/common/tv_filters/AtariNTSC.hxx:241:49: note: used in buffer access here ib = static_cast(y + to_rgb[4] * i + to_rgb[5] * q); ^~~~~~ src/common/tv_filters/AtariNTSC.hxx:240:49: note: used in buffer access here ig = static_cast(y + to_rgb[2] * i + to_rgb[3] * q); ^~~~~~ src/common/tv_filters/AtariNTSC.hxx:240:33: note: used in buffer access here ig = static_cast(y + to_rgb[2] * i + to_rgb[3] * q); ^~~~~~ src/common/tv_filters/AtariNTSC.hxx:241:33: note: used in buffer access here ib = static_cast(y + to_rgb[4] * i + to_rgb[5] * q); ^~~~~~ src/common/tv_filters/AtariNTSC.hxx:239:49: note: used in buffer access here ir = static_cast(y + to_rgb[0] * i + to_rgb[1] * q); ^~~~~~ src/emucore/FrameBuffer.cxx:173:14: warning: 'FONT_DESC' is an unsafe buffer that does not perform bounds checks [-Wunsafe-buffer-usage] FontDesc FONT_DESC[NUM_FONTS] = {GUI::consoleDesc, GUI::consoleMediumDesc, GUI::stellaMediumDesc, ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ src/emucore/FrameBuffer.cxx:191:41: note: used in buffer access here myInfoFont = make_unique(FONT_DESC[fontIdx]); // default 8x13 ^~~~~~~~~ src/emucore/FrameBuffer.cxx:185:23: note: used in buffer access here if(fd.height <= FONT_DESC[i].height * 1.4) ^~~~~~~~~ 12 warnings generated. mkdir -p -p src/emucore/.deps mkdir -p -p out/src/emucore c++ -MMD -MF "src/emucore/.deps/FBSurface.d" -MQ "out/src/emucore/FBSurface.o" -MP -O2 -pipe -I/usr/X11R6/include -I/usr/local/include -x c++ -Wall -Wextra -Wno-unused-parameter -Wno-multichar -Wunused -Woverloaded-virtual -Wnon-virtual-dtor -std=c++17 -Weverything -Wno-c++98-compat-pedantic -Wno-unknown-warning-option -Wno-switch-enum -Wno-conversion -Wno-covered-switch-default -Wno-inconsistent-missing-destructor-override -Wno-float-equal -Wno-exit-time-destructors -Wno-global-constructors -Wno-weak-vtables -Wno-four-char-constants -Wno-padded -Wno-reserved-identifier -Wno-duplicate-enum -fomit-frame-pointer -DSDL_SUPPORT -D_GLIBCXX_USE_CXX11_ABI=1 -DUNIX -DBSPF_UNIX -DGUI_SUPPORT -DWINDOWED_SUPPORT -DSOUND_SUPPORT -DDEBUGGER_SUPPORT -DJOYSTICK_SUPPORT -DCHEATCODE_SUPPORT -DHTTP_LIB_SUPPORT -DPNG_SUPPORT -DZIP_SUPPORT -Isrc/emucore -Isrc/common -Isrc/common/tv_filters -Isrc/emucore/tia -Isrc/emucore/tia/frame-manager -Isrc/json -Isrc/common/repository/sqlite -I/usr/local/include -I/usr/local/include/SDL2 -I/usr/X11R6/include -D_REENTRANT -I/usr/X11R6/include -Isrc/unix -Isrc/gui -Isrc/debugger -Isrc/debugger/gui -Isrc/yacc -Isrc/cheat -Isrc/httplib -c src/emucore/FBSurface.cxx -o out/src/emucore/FBSurface.o In file included from src/emucore/FBSurface.cxx:20: In file included from src/common/Rect.hxx:26: src/common/bspf.hxx:245:37: warning: unsafe pointer arithmetic [-Wunsafe-buffer-usage] const auto pos = std::search(s1.cbegin()+startpos, s1.cend(), ~~~^~~~~~~~ src/common/bspf.hxx:249:56: warning: unsafe pointer arithmetic [-Wunsafe-buffer-usage] return pos == s1.cend() ? string::npos : pos - (s1.cbegin()+startpos); ~~~^~~~~~~~ src/emucore/FBSurface.cxx:31:50: warning: unsafe pointer arithmetic [-Wunsafe-buffer-usage] uInt8* src = reinterpret_cast(myPixels + rect.y() * myPitch + rect.x()); ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~ src/emucore/FBSurface.cxx:31:41: warning: unsafe pointer arithmetic [-Wunsafe-buffer-usage] uInt8* src = reinterpret_cast(myPixels + rect.y() * myPitch + rect.x()); ^~~~~~~~ src/emucore/FBSurface.cxx:31:10: warning: 'src' is an unsafe pointer used for buffer access [-Wunsafe-buffer-usage] uInt8* src = reinterpret_cast(myPixels + rect.y() * myPitch + rect.x()); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ src/emucore/FBSurface.cxx:45:7: note: used in pointer arithmetic here src += myPitch * 4; ^~~ src/emucore/FBSurface.cxx:41:12: warning: 'dst' is an unsafe pointer used for buffer access [-Wunsafe-buffer-usage] uInt8* dst = buffer; ~~~~~~~^~~~~~~~~~~~ src/emucore/FBSurface.cxx:46:7: note: used in pointer arithmetic here dst += pitch * 4; ^~~ src/emucore/FBSurface.cxx:55:29: warning: unsafe pointer arithmetic [-Wunsafe-buffer-usage] uInt32* buffer = myPixels + y * myPitch + x; ~~~~~~~~~^~~~~~~~~~~~~ src/emucore/FBSurface.cxx:55:20: warning: unsafe pointer arithmetic [-Wunsafe-buffer-usage] uInt32* buffer = myPixels + y * myPitch + x; ^~~~~~~~ src/emucore/FBSurface.cxx:128:29: warning: unsafe pointer arithmetic [-Wunsafe-buffer-usage] uInt32* buffer = myPixels + y * myPitch + x; ~~~~~~~~~^~~~~~~~~~~~~ src/emucore/FBSurface.cxx:128:20: warning: unsafe pointer arithmetic [-Wunsafe-buffer-usage] uInt32* buffer = myPixels + y * myPitch + x; ^~~~~~~~ src/emucore/FBSurface.cxx:128:11: warning: 'buffer' is an unsafe pointer used for buffer access [-Wunsafe-buffer-usage] uInt32* buffer = myPixels + y * myPitch + x; ~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ src/emucore/FBSurface.cxx:130:6: note: used in pointer arithmetic here *buffer++ = myPalette[color]; ^~~~~~ src/emucore/FBSurface.cxx:139:29: warning: unsafe pointer arithmetic [-Wunsafe-buffer-usage] uInt32* buffer = myPixels + y * myPitch + x; ~~~~~~~~~^~~~~~~~~~~~~ src/emucore/FBSurface.cxx:139:20: warning: unsafe pointer arithmetic [-Wunsafe-buffer-usage] uInt32* buffer = myPixels + y * myPitch + x; ^~~~~~~~ src/emucore/FBSurface.cxx:139:11: warning: 'buffer' is an unsafe pointer used for buffer access [-Wunsafe-buffer-usage] uInt32* buffer = myPixels + y * myPitch + x; ~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ src/emucore/FBSurface.cxx:143:5: note: used in pointer arithmetic here buffer += myPitch; ^~~~~~ src/emucore/FBSurface.cxx:187:11: warning: unsafe buffer access [-Wunsafe-buffer-usage] bbw = desc.bbx[chr].w; // NOLINT ^~~~~~~~ src/emucore/FBSurface.cxx:188:11: warning: unsafe buffer access [-Wunsafe-buffer-usage] bbh = desc.bbx[chr].h; // NOLINT ^~~~~~~~ src/emucore/FBSurface.cxx:189:11: warning: unsafe buffer access [-Wunsafe-buffer-usage] bbx = desc.bbx[chr].x; // NOLINT ^~~~~~~~ src/emucore/FBSurface.cxx:190:11: warning: unsafe buffer access [-Wunsafe-buffer-usage] bby = desc.bbx[chr].y; // NOLINT ^~~~~~~~ src/emucore/FBSurface.cxx:199:23: warning: unsafe pointer arithmetic [-Wunsafe-buffer-usage] const uInt16* tmp = desc.bits + (desc.offset ? desc.offset[chr] : (chr * desc.fbbh)); ^~~~~~~~~ src/emucore/FBSurface.cxx:199:50: warning: unsafe buffer access [-Wunsafe-buffer-usage] const uInt16* tmp = desc.bits + (desc.offset ? desc.offset[chr] : (chr * desc.fbbh)); ^~~~~~~~~~~ src/emucore/FBSurface.cxx:200:29: warning: unsafe pointer arithmetic [-Wunsafe-buffer-usage] uInt32* buffer = myPixels + cy * myPitch + cx; ~~~~~~~~~^~~~~~~~~~~~~~ src/emucore/FBSurface.cxx:200:20: warning: unsafe pointer arithmetic [-Wunsafe-buffer-usage] uInt32* buffer = myPixels + cy * myPitch + cx; ^~~~~~~~ src/emucore/FBSurface.cxx:199:17: warning: 'tmp' is an unsafe pointer used for buffer access [-Wunsafe-buffer-usage] const uInt16* tmp = desc.bits + (desc.offset ? desc.offset[chr] : (chr * desc.fbbh)); ~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ src/emucore/FBSurface.cxx:204:25: note: used in pointer arithmetic here const uInt16 ptr = *tmp++; ^~~ src/emucore/FBSurface.cxx:200:11: warning: 'buffer' is an unsafe pointer used for buffer access [-Wunsafe-buffer-usage] uInt32* buffer = myPixels + cy * myPitch + cx; ~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ src/emucore/FBSurface.cxx:211:5: note: used in pointer arithmetic here buffer += myPitch; ^~~~~~ src/emucore/FBSurface.cxx:209:9: note: used in buffer access here buffer[x] = myPalette[color]; ^~~~~~ src/emucore/FBSurface.cxx:230:29: warning: unsafe pointer arithmetic [-Wunsafe-buffer-usage] uInt32* buffer = myPixels + ty * myPitch + tx; ~~~~~~~~~^~~~~~~~~~~~~~ src/emucore/FBSurface.cxx:230:20: warning: unsafe pointer arithmetic [-Wunsafe-buffer-usage] uInt32* buffer = myPixels + ty * myPitch + tx; ^~~~~~~~ src/emucore/FBSurface.cxx:224:42: warning: 'bitmap' is an unsafe pointer used for buffer access [-Wunsafe-buffer-usage] void FBSurface::drawBitmap(const uInt32* bitmap, uInt32 tx, uInt32 ty, ~~~~~~~~~~~~~~^~~~~~ src/emucore/FBSurface.cxx:236:10: note: used in buffer access here if(bitmap[y] & mask) ^~~~~~ src/emucore/FBSurface.cxx:230:11: warning: 'buffer' is an unsafe pointer used for buffer access [-Wunsafe-buffer-usage] uInt32* buffer = myPixels + ty * myPitch + tx; ~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ src/emucore/FBSurface.cxx:237:9: note: used in buffer access here buffer[x] = myPalette[color]; ^~~~~~ src/emucore/FBSurface.cxx:239:5: note: used in pointer arithmetic here buffer += myPitch; ^~~~~~ src/emucore/FBSurface.cxx:249:29: warning: unsafe pointer arithmetic [-Wunsafe-buffer-usage] uInt32* buffer = myPixels + ty * myPitch + tx; ~~~~~~~~~^~~~~~~~~~~~~~ src/emucore/FBSurface.cxx:249:20: warning: unsafe pointer arithmetic [-Wunsafe-buffer-usage] uInt32* buffer = myPixels + ty * myPitch + tx; ^~~~~~~~ src/emucore/FBSurface.cxx:244:42: warning: 'data' is an unsafe pointer used for buffer access [-Wunsafe-buffer-usage] void FBSurface::drawPixels(const uInt32* data, uInt32 tx, uInt32 ty, uInt32 numpixels) ~~~~~~~~~~~~~~^~~~ src/emucore/FBSurface.cxx:252:17: note: used in buffer access here *buffer++ = data[i]; ^~~~ src/emucore/FBSurface.cxx:249:11: warning: 'buffer' is an unsafe pointer used for buffer access [-Wunsafe-buffer-usage] uInt32* buffer = myPixels + ty * myPitch + tx; ~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ src/emucore/FBSurface.cxx:252:6: note: used in pointer arithmetic here *buffer++ = data[i]; ^~~~~~ 32 warnings generated. mkdir -p -p src/emucore/.deps mkdir -p -p out/src/emucore c++ -MMD -MF "src/emucore/.deps/FSNode.d" -MQ "out/src/emucore/FSNode.o" -MP -O2 -pipe -I/usr/X11R6/include -I/usr/local/include -x c++ -Wall -Wextra -Wno-unused-parameter -Wno-multichar -Wunused -Woverloaded-virtual -Wnon-virtual-dtor -std=c++17 -Weverything -Wno-c++98-compat-pedantic -Wno-unknown-warning-option -Wno-switch-enum -Wno-conversion -Wno-covered-switch-default -Wno-inconsistent-missing-destructor-override -Wno-float-equal -Wno-exit-time-destructors -Wno-global-constructors -Wno-weak-vtables -Wno-four-char-constants -Wno-padded -Wno-reserved-identifier -Wno-duplicate-enum -fomit-frame-pointer -DSDL_SUPPORT -D_GLIBCXX_USE_CXX11_ABI=1 -DUNIX -DBSPF_UNIX -DGUI_SUPPORT -DWINDOWED_SUPPORT -DSOUND_SUPPORT -DDEBUGGER_SUPPORT -DJOYSTICK_SUPPORT -DCHEATCODE_SUPPORT -DHTTP_LIB_SUPPORT -DPNG_SUPPORT -DZIP_SUPPORT -Isrc/emucore -Isrc/common -Isrc/common/tv_filters -Isrc/emucore/tia -Isrc/emucore/tia/frame-manager -Isrc/json -Isrc/common/repository/sqlite -I/usr/local/include -I/usr/local/include/SDL2 -I/usr/X11R6/include -D_REENTRANT -I/usr/X11R6/include -Isrc/unix -Isrc/gui -Isrc/debugger -Isrc/debugger/gui -Isrc/yacc -Isrc/cheat -Isrc/httplib -c src/emucore/FSNode.cxx -o out/src/emucore/FSNode.o In file included from src/emucore/FSNode.cxx:18: In file included from src/common/FSNodeFactory.hxx:24: In file included from src/common/FSNodeZIP.hxx:23: In file included from src/common/ZipHandler.hxx:25: src/common/bspf.hxx:245:37: warning: unsafe pointer arithmetic [-Wunsafe-buffer-usage] const auto pos = std::search(s1.cbegin()+startpos, s1.cend(), ~~~^~~~~~~~ src/common/bspf.hxx:249:56: warning: unsafe pointer arithmetic [-Wunsafe-buffer-usage] return pos == s1.cend() ? string::npos : pos - (s1.cbegin()+startpos); ~~~^~~~~~~~ In file included from src/emucore/FSNode.cxx:18: In file included from src/common/FSNodeFactory.hxx:24: In file included from src/common/FSNodeZIP.hxx:23: src/common/ZipHandler.hxx:158:18: warning: unsafe buffer access [-Wunsafe-buffer-usage] return myBuf[offs]; ^~~~~ src/common/ZipHandler.hxx:162:39: warning: unsafe buffer access [-Wunsafe-buffer-usage] return (static_cast(myBuf[offs + 1]) << 8) | ^~~~~ src/common/ZipHandler.hxx:163:39: warning: unsafe buffer access [-Wunsafe-buffer-usage] (static_cast(myBuf[offs + 0]) << 0); ^~~~~ src/common/ZipHandler.hxx:167:39: warning: unsafe buffer access [-Wunsafe-buffer-usage] return (static_cast(myBuf[offs + 3]) << 24) | ^~~~~ src/common/ZipHandler.hxx:168:39: warning: unsafe buffer access [-Wunsafe-buffer-usage] (static_cast(myBuf[offs + 2]) << 16) | ^~~~~ src/common/ZipHandler.hxx:169:39: warning: unsafe buffer access [-Wunsafe-buffer-usage] (static_cast(myBuf[offs + 1]) << 8) | ^~~~~ src/common/ZipHandler.hxx:170:39: warning: unsafe buffer access [-Wunsafe-buffer-usage] (static_cast(myBuf[offs + 0]) << 0); ^~~~~ src/common/ZipHandler.hxx:174:39: warning: unsafe buffer access [-Wunsafe-buffer-usage] return (static_cast(myBuf[offs + 7]) << 56) | ^~~~~ src/common/ZipHandler.hxx:175:39: warning: unsafe buffer access [-Wunsafe-buffer-usage] (static_cast(myBuf[offs + 6]) << 48) | ^~~~~ src/common/ZipHandler.hxx:176:39: warning: unsafe buffer access [-Wunsafe-buffer-usage] (static_cast(myBuf[offs + 5]) << 40) | ^~~~~ src/common/ZipHandler.hxx:177:39: warning: unsafe buffer access [-Wunsafe-buffer-usage] (static_cast(myBuf[offs + 4]) << 32) | ^~~~~ src/common/ZipHandler.hxx:178:39: warning: unsafe buffer access [-Wunsafe-buffer-usage] (static_cast(myBuf[offs + 3]) << 24) | ^~~~~ src/common/ZipHandler.hxx:179:39: warning: unsafe buffer access [-Wunsafe-buffer-usage] (static_cast(myBuf[offs + 2]) << 16) | ^~~~~ src/common/ZipHandler.hxx:180:39: warning: unsafe buffer access [-Wunsafe-buffer-usage] (static_cast(myBuf[offs + 1]) << 8) | ^~~~~ src/common/ZipHandler.hxx:181:39: warning: unsafe buffer access [-Wunsafe-buffer-usage] (static_cast(myBuf[offs + 0]) << 0); ^~~~~ src/common/ZipHandler.hxx:185:56: warning: unsafe pointer arithmetic [-Wunsafe-buffer-usage] return string(reinterpret_cast(myBuf + offs), len); ^~~~~ In file included from src/emucore/FSNode.cxx:18: In file included from src/common/FSNodeFactory.hxx:24: In file included from src/common/FSNodeZIP.hxx:24: src/emucore/FSNode.hxx:513:31: warning: unsafe pointer arithmetic [-Wunsafe-buffer-usage] const char* cur = start + str.size() - 2; ~~~~~~^~~~~~~~~~~~ src/emucore/FSNode.hxx:512:19: warning: 'start' is an unsafe pointer used for buffer access [-Wunsafe-buffer-usage] const char* start = str.c_str(); ~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~ src/emucore/FSNode.hxx:513:25: note: used in pointer arithmetic here const char* cur = start + str.size() - 2; ^~~~~ src/emucore/FSNode.hxx:513:19: warning: 'cur' is an unsafe pointer used for buffer access [-Wunsafe-buffer-usage] const char* cur = start + str.size() - 2; ~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~ src/emucore/FSNode.hxx:516:11: note: used in pointer arithmetic here --cur; ^~~ src/emucore/FSNode.hxx:518:14: note: used in pointer arithmetic here return cur + 1; ^~~ 21 warnings generated. mkdir -p -p src/emucore/.deps mkdir -p -p out/src/emucore c++ -MMD -MF "src/emucore/.deps/Genesis.d" -MQ "out/src/emucore/Genesis.o" -MP -O2 -pipe -I/usr/X11R6/include -I/usr/local/include -x c++ -Wall -Wextra -Wno-unused-parameter -Wno-multichar -Wunused -Woverloaded-virtual -Wnon-virtual-dtor -std=c++17 -Weverything -Wno-c++98-compat-pedantic -Wno-unknown-warning-option -Wno-switch-enum -Wno-conversion -Wno-covered-switch-default -Wno-inconsistent-missing-destructor-override -Wno-float-equal -Wno-exit-time-destructors -Wno-global-constructors -Wno-weak-vtables -Wno-four-char-constants -Wno-padded -Wno-reserved-identifier -Wno-duplicate-enum -fomit-frame-pointer -DSDL_SUPPORT -D_GLIBCXX_USE_CXX11_ABI=1 -DUNIX -DBSPF_UNIX -DGUI_SUPPORT -DWINDOWED_SUPPORT -DSOUND_SUPPORT -DDEBUGGER_SUPPORT -DJOYSTICK_SUPPORT -DCHEATCODE_SUPPORT -DHTTP_LIB_SUPPORT -DPNG_SUPPORT -DZIP_SUPPORT -Isrc/emucore -Isrc/common -Isrc/common/tv_filters -Isrc/emucore/tia -Isrc/emucore/tia/frame-manager -Isrc/json -Isrc/common/repository/sqlite -I/usr/local/include -I/usr/local/include/SDL2 -I/usr/X11R6/include -D_REENTRANT -I/usr/X11R6/include -Isrc/unix -Isrc/gui -Isrc/debugger -Isrc/debugger/gui -Isrc/yacc -Isrc/cheat -Isrc/httplib -c src/emucore/Genesis.cxx -o out/src/emucore/Genesis.o In file included from src/emucore/Genesis.cxx:18: In file included from src/emucore/Genesis.hxx:21: In file included from src/emucore/Joystick.hxx:21: In file included from src/emucore/Control.hxx:28: src/common/bspf.hxx:245:37: warning: unsafe pointer arithmetic [-Wunsafe-buffer-usage] const auto pos = std::search(s1.cbegin()+startpos, s1.cend(), ~~~^~~~~~~~ src/common/bspf.hxx:249:56: warning: unsafe pointer arithmetic [-Wunsafe-buffer-usage] return pos == s1.cend() ? string::npos : pos - (s1.cbegin()+startpos); ~~~^~~~~~~~ 2 warnings generated. mkdir -p -p src/emucore/.deps mkdir -p -p out/src/emucore c++ -MMD -MF "src/emucore/.deps/GlobalKeyHandler.d" -MQ "out/src/emucore/GlobalKeyHandler.o" -MP -O2 -pipe -I/usr/X11R6/include -I/usr/local/include -x c++ -Wall -Wextra -Wno-unused-parameter -Wno-multichar -Wunused -Woverloaded-virtual -Wnon-virtual-dtor -std=c++17 -Weverything -Wno-c++98-compat-pedantic -Wno-unknown-warning-option -Wno-switch-enum -Wno-conversion -Wno-covered-switch-default -Wno-inconsistent-missing-destructor-override -Wno-float-equal -Wno-exit-time-destructors -Wno-global-constructors -Wno-weak-vtables -Wno-four-char-constants -Wno-padded -Wno-reserved-identifier -Wno-duplicate-enum -fomit-frame-pointer -DSDL_SUPPORT -D_GLIBCXX_USE_CXX11_ABI=1 -DUNIX -DBSPF_UNIX -DGUI_SUPPORT -DWINDOWED_SUPPORT -DSOUND_SUPPORT -DDEBUGGER_SUPPORT -DJOYSTICK_SUPPORT -DCHEATCODE_SUPPORT -DHTTP_LIB_SUPPORT -DPNG_SUPPORT -DZIP_SUPPORT -Isrc/emucore -Isrc/common -Isrc/common/tv_filters -Isrc/emucore/tia -Isrc/emucore/tia/frame-manager -Isrc/json -Isrc/common/repository/sqlite -I/usr/local/include -I/usr/local/include/SDL2 -I/usr/X11R6/include -D_REENTRANT -I/usr/X11R6/include -Isrc/unix -Isrc/gui -Isrc/debugger -Isrc/debugger/gui -Isrc/yacc -Isrc/cheat -Isrc/httplib -c src/emucore/GlobalKeyHandler.cxx -o out/src/emucore/GlobalKeyHandler.o In file included from src/emucore/GlobalKeyHandler.cxx:18: In file included from src/emucore/Console.hxx:34: src/common/bspf.hxx:245:37: warning: unsafe pointer arithmetic [-Wunsafe-buffer-usage] const auto pos = std::search(s1.cbegin()+startpos, s1.cend(), ~~~^~~~~~~~ src/common/bspf.hxx:249:56: warning: unsafe pointer arithmetic [-Wunsafe-buffer-usage] return pos == s1.cend() ? string::npos : pos - (s1.cbegin()+startpos); ~~~^~~~~~~~ In file included from src/emucore/GlobalKeyHandler.cxx:20: In file included from src/common/PaletteHandler.hxx:22: In file included from src/emucore/OSystem.hxx:55: src/emucore/FSNode.hxx:513:31: warning: unsafe pointer arithmetic [-Wunsafe-buffer-usage] const char* cur = start + str.size() - 2; ~~~~~~^~~~~~~~~~~~ src/emucore/FSNode.hxx:512:19: warning: 'start' is an unsafe pointer used for buffer access [-Wunsafe-buffer-usage] const char* start = str.c_str(); ~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~ src/emucore/FSNode.hxx:513:25: note: used in pointer arithmetic here const char* cur = start + str.size() - 2; ^~~~~ src/emucore/FSNode.hxx:513:19: warning: 'cur' is an unsafe pointer used for buffer access [-Wunsafe-buffer-usage] const char* cur = start + str.size() - 2; ~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~ src/emucore/FSNode.hxx:516:11: note: used in pointer arithmetic here --cur; ^~~ src/emucore/FSNode.hxx:518:14: note: used in pointer arithmetic here return cur + 1; ^~~ In file included from src/emucore/GlobalKeyHandler.cxx:24: In file included from src/emucore/TIASurface.hxx:31: In file included from src/common/tv_filters/NTSCFilter.hxx:25: src/common/tv_filters/AtariNTSC.hxx:238:22: warning: 'to_rgb' is an unsafe pointer used for buffer access [-Wunsafe-buffer-usage] const float* to_rgb, int& ir, int& ig, int& ib) { ~~~~~~~~~~~~~^~~~~~ src/common/tv_filters/AtariNTSC.hxx:239:49: note: used in buffer access here ir = static_cast(y + to_rgb[0] * i + to_rgb[1] * q); ^~~~~~ src/common/tv_filters/AtariNTSC.hxx:240:49: note: used in buffer access here ig = static_cast(y + to_rgb[2] * i + to_rgb[3] * q); ^~~~~~ src/common/tv_filters/AtariNTSC.hxx:241:33: note: used in buffer access here ib = static_cast(y + to_rgb[4] * i + to_rgb[5] * q); ^~~~~~ src/common/tv_filters/AtariNTSC.hxx:240:33: note: used in buffer access here ig = static_cast(y + to_rgb[2] * i + to_rgb[3] * q); ^~~~~~ src/common/tv_filters/AtariNTSC.hxx:241:49: note: used in buffer access here ib = static_cast(y + to_rgb[4] * i + to_rgb[5] * q); ^~~~~~ In file included from src/emucore/GlobalKeyHandler.cxx:26: In file included from src/emucore/GlobalKeyHandler.hxx:21: In file included from src/emucore/EventHandler.hxx:38: In file included from src/common/PKeyboardHandler.hxx:30: In file included from src/common/KeyMap.hxx:24: In file included from src/common/StellaKeys.hxx:22: In file included from src/common/SDL_lib.hxx:34: In file included from /usr/local/include/SDL2/SDL.h:32: In file included from /usr/local/include/SDL2/SDL_main.h:25: /usr/local/include/SDL2/SDL_stdinc.h:544:13: warning: '_p' is an unsafe pointer used for buffer access [-Wunsafe-buffer-usage] Uint32 *_p = SDL_static_cast(Uint32 *, dst); ~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /usr/local/include/SDL2/SDL_stdinc.h:551:26: note: used in pointer arithmetic here case 3: *_p++ = _val; SDL_FALLTHROUGH; ^~ /usr/local/include/SDL2/SDL_stdinc.h:552:26: note: used in pointer arithmetic here case 2: *_p++ = _val; SDL_FALLTHROUGH; ^~ /usr/local/include/SDL2/SDL_stdinc.h:553:26: note: used in pointer arithmetic here case 1: *_p++ = _val; ^~ /usr/local/include/SDL2/SDL_stdinc.h:550:26: note: used in pointer arithmetic here case 0: do { *_p++ = _val; SDL_FALLTHROUGH; ^~ 7 warnings generated. mkdir -p -p src/emucore/.deps mkdir -p -p out/src/emucore c++ -MMD -MF "src/emucore/.deps/Joystick.d" -MQ "out/src/emucore/Joystick.o" -MP -O2 -pipe -I/usr/X11R6/include -I/usr/local/include -x c++ -Wall -Wextra -Wno-unused-parameter -Wno-multichar -Wunused -Woverloaded-virtual -Wnon-virtual-dtor -std=c++17 -Weverything -Wno-c++98-compat-pedantic -Wno-unknown-warning-option -Wno-switch-enum -Wno-conversion -Wno-covered-switch-default -Wno-inconsistent-missing-destructor-override -Wno-float-equal -Wno-exit-time-destructors -Wno-global-constructors -Wno-weak-vtables -Wno-four-char-constants -Wno-padded -Wno-reserved-identifier -Wno-duplicate-enum -fomit-frame-pointer -DSDL_SUPPORT -D_GLIBCXX_USE_CXX11_ABI=1 -DUNIX -DBSPF_UNIX -DGUI_SUPPORT -DWINDOWED_SUPPORT -DSOUND_SUPPORT -DDEBUGGER_SUPPORT -DJOYSTICK_SUPPORT -DCHEATCODE_SUPPORT -DHTTP_LIB_SUPPORT -DPNG_SUPPORT -DZIP_SUPPORT -Isrc/emucore -Isrc/common -Isrc/common/tv_filters -Isrc/emucore/tia -Isrc/emucore/tia/frame-manager -Isrc/json -Isrc/common/repository/sqlite -I/usr/local/include -I/usr/local/include/SDL2 -I/usr/X11R6/include -D_REENTRANT -I/usr/X11R6/include -Isrc/unix -Isrc/gui -Isrc/debugger -Isrc/debugger/gui -Isrc/yacc -Isrc/cheat -Isrc/httplib -c src/emucore/Joystick.cxx -o out/src/emucore/Joystick.o In file included from src/emucore/Joystick.cxx:18: In file included from src/emucore/Joystick.hxx:21: In file included from src/emucore/Control.hxx:28: src/common/bspf.hxx:245:37: warning: unsafe pointer arithmetic [-Wunsafe-buffer-usage] const auto pos = std::search(s1.cbegin()+startpos, s1.cend(), ~~~^~~~~~~~ src/common/bspf.hxx:249:56: warning: unsafe pointer arithmetic [-Wunsafe-buffer-usage] return pos == s1.cend() ? string::npos : pos - (s1.cbegin()+startpos); ~~~^~~~~~~~ 2 warnings generated. mkdir -p -p src/emucore/.deps mkdir -p -p out/src/emucore c++ -MMD -MF "src/emucore/.deps/Keyboard.d" -MQ "out/src/emucore/Keyboard.o" -MP -O2 -pipe -I/usr/X11R6/include -I/usr/local/include -x c++ -Wall -Wextra -Wno-unused-parameter -Wno-multichar -Wunused -Woverloaded-virtual -Wnon-virtual-dtor -std=c++17 -Weverything -Wno-c++98-compat-pedantic -Wno-unknown-warning-option -Wno-switch-enum -Wno-conversion -Wno-covered-switch-default -Wno-inconsistent-missing-destructor-override -Wno-float-equal -Wno-exit-time-destructors -Wno-global-constructors -Wno-weak-vtables -Wno-four-char-constants -Wno-padded -Wno-reserved-identifier -Wno-duplicate-enum -fomit-frame-pointer -DSDL_SUPPORT -D_GLIBCXX_USE_CXX11_ABI=1 -DUNIX -DBSPF_UNIX -DGUI_SUPPORT -DWINDOWED_SUPPORT -DSOUND_SUPPORT -DDEBUGGER_SUPPORT -DJOYSTICK_SUPPORT -DCHEATCODE_SUPPORT -DHTTP_LIB_SUPPORT -DPNG_SUPPORT -DZIP_SUPPORT -Isrc/emucore -Isrc/common -Isrc/common/tv_filters -Isrc/emucore/tia -Isrc/emucore/tia/frame-manager -Isrc/json -Isrc/common/repository/sqlite -I/usr/local/include -I/usr/local/include/SDL2 -I/usr/X11R6/include -D_REENTRANT -I/usr/X11R6/include -Isrc/unix -Isrc/gui -Isrc/debugger -Isrc/debugger/gui -Isrc/yacc -Isrc/cheat -Isrc/httplib -c src/emucore/Keyboard.cxx -o out/src/emucore/Keyboard.o In file included from src/emucore/Keyboard.cxx:18: In file included from src/emucore/Event.hxx:24: src/common/bspf.hxx:245:37: warning: unsafe pointer arithmetic [-Wunsafe-buffer-usage] const auto pos = std::search(s1.cbegin()+startpos, s1.cend(), ~~~^~~~~~~~ src/common/bspf.hxx:249:56: warning: unsafe pointer arithmetic [-Wunsafe-buffer-usage] return pos == s1.cend() ? string::npos : pos - (s1.cbegin()+startpos); ~~~^~~~~~~~ src/emucore/Keyboard.cxx:58:65: warning: 'buttons' is an unsafe pointer used for buffer access [-Wunsafe-buffer-usage] Keyboard::ColumnState Keyboard::processColumn(const Event::Type buttons[]) { ~~~~~~~~~~~~~~~~~~^~~~~~~~~ src/emucore/Keyboard.cxx:63:21: note: used in buffer access here if (myEvent.get(buttons[i]) && !getPin(signals[i])) return ColumnState::gnd; ^~~~~~~ src/emucore/Keyboard.cxx:66:21: note: used in buffer access here if (myEvent.get(buttons[i]) && getPin(signals[i])) return ColumnState::vcc; ^~~~~~~ src/emucore/Keyboard.cxx:59:31: warning: 'signals' is an unsafe buffer that does not perform bounds checks [-Wunsafe-buffer-usage] static constexpr DigitalPin signals[] = ~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~ src/emucore/Keyboard.cxx:63:44: note: used in buffer access here if (myEvent.get(buttons[i]) && !getPin(signals[i])) return ColumnState::gnd; ^~~~~~~ src/emucore/Keyboard.cxx:66:43: note: used in buffer access here if (myEvent.get(buttons[i]) && getPin(signals[i])) return ColumnState::vcc; ^~~~~~~ 4 warnings generated. mkdir -p -p src/emucore/.deps mkdir -p -p out/src/emucore c++ -MMD -MF "src/emucore/.deps/KidVid.d" -MQ "out/src/emucore/KidVid.o" -MP -O2 -pipe -I/usr/X11R6/include -I/usr/local/include -x c++ -Wall -Wextra -Wno-unused-parameter -Wno-multichar -Wunused -Woverloaded-virtual -Wnon-virtual-dtor -std=c++17 -Weverything -Wno-c++98-compat-pedantic -Wno-unknown-warning-option -Wno-switch-enum -Wno-conversion -Wno-covered-switch-default -Wno-inconsistent-missing-destructor-override -Wno-float-equal -Wno-exit-time-destructors -Wno-global-constructors -Wno-weak-vtables -Wno-four-char-constants -Wno-padded -Wno-reserved-identifier -Wno-duplicate-enum -fomit-frame-pointer -DSDL_SUPPORT -D_GLIBCXX_USE_CXX11_ABI=1 -DUNIX -DBSPF_UNIX -DGUI_SUPPORT -DWINDOWED_SUPPORT -DSOUND_SUPPORT -DDEBUGGER_SUPPORT -DJOYSTICK_SUPPORT -DCHEATCODE_SUPPORT -DHTTP_LIB_SUPPORT -DPNG_SUPPORT -DZIP_SUPPORT -Isrc/emucore -Isrc/common -Isrc/common/tv_filters -Isrc/emucore/tia -Isrc/emucore/tia/frame-manager -Isrc/json -Isrc/common/repository/sqlite -I/usr/local/include -I/usr/local/include/SDL2 -I/usr/X11R6/include -D_REENTRANT -I/usr/X11R6/include -Isrc/unix -Isrc/gui -Isrc/debugger -Isrc/debugger/gui -Isrc/yacc -Isrc/cheat -Isrc/httplib -c src/emucore/KidVid.cxx -o out/src/emucore/KidVid.o In file included from src/emucore/KidVid.cxx:20: In file included from src/emucore/Event.hxx:24: src/common/bspf.hxx:245:37: warning: unsafe pointer arithmetic [-Wunsafe-buffer-usage] const auto pos = std::search(s1.cbegin()+startpos, s1.cend(), ~~~^~~~~~~~ src/common/bspf.hxx:249:56: warning: unsafe pointer arithmetic [-Wunsafe-buffer-usage] return pos == s1.cend() ? string::npos : pos - (s1.cbegin()+startpos); ~~~^~~~~~~~ 2 warnings generated. mkdir -p -p src/emucore/.deps mkdir -p -p out/src/emucore c++ -MMD -MF "src/emucore/.deps/Lightgun.d" -MQ "out/src/emucore/Lightgun.o" -MP -O2 -pipe -I/usr/X11R6/include -I/usr/local/include -x c++ -Wall -Wextra -Wno-unused-parameter -Wno-multichar -Wunused -Woverloaded-virtual -Wnon-virtual-dtor -std=c++17 -Weverything -Wno-c++98-compat-pedantic -Wno-unknown-warning-option -Wno-switch-enum -Wno-conversion -Wno-covered-switch-default -Wno-inconsistent-missing-destructor-override -Wno-float-equal -Wno-exit-time-destructors -Wno-global-constructors -Wno-weak-vtables -Wno-four-char-constants -Wno-padded -Wno-reserved-identifier -Wno-duplicate-enum -fomit-frame-pointer -DSDL_SUPPORT -D_GLIBCXX_USE_CXX11_ABI=1 -DUNIX -DBSPF_UNIX -DGUI_SUPPORT -DWINDOWED_SUPPORT -DSOUND_SUPPORT -DDEBUGGER_SUPPORT -DJOYSTICK_SUPPORT -DCHEATCODE_SUPPORT -DHTTP_LIB_SUPPORT -DPNG_SUPPORT -DZIP_SUPPORT -Isrc/emucore -Isrc/common -Isrc/common/tv_filters -Isrc/emucore/tia -Isrc/emucore/tia/frame-manager -Isrc/json -Isrc/common/repository/sqlite -I/usr/local/include -I/usr/local/include/SDL2 -I/usr/X11R6/include -D_REENTRANT -I/usr/X11R6/include -Isrc/unix -Isrc/gui -Isrc/debugger -Isrc/debugger/gui -Isrc/yacc -Isrc/cheat -Isrc/httplib -c src/emucore/Lightgun.cxx -o out/src/emucore/Lightgun.o In file included from src/emucore/Lightgun.cxx:18: In file included from src/emucore/Event.hxx:24: src/common/bspf.hxx:245:37: warning: unsafe pointer arithmetic [-Wunsafe-buffer-usage] const auto pos = std::search(s1.cbegin()+startpos, s1.cend(), ~~~^~~~~~~~ src/common/bspf.hxx:249:56: warning: unsafe pointer arithmetic [-Wunsafe-buffer-usage] return pos == s1.cend() ? string::npos : pos - (s1.cbegin()+startpos); ~~~^~~~~~~~ In file included from src/emucore/Lightgun.cxx:19: In file included from src/emucore/tia/TIA.hxx:37: src/emucore/tia/Missile.hxx:170:7: warning: unsafe buffer access [-Wunsafe-buffer-usage] if (myDecodes[myCounter] && !myResmp) { ^~~~~~~~~ src/emucore/tia/Missile.hxx:173:14: warning: unsafe buffer access [-Wunsafe-buffer-usage] myCopy = myDecodes[myCounter]; ^~~~~~~~~ In file included from src/emucore/Lightgun.cxx:19: In file included from src/emucore/tia/TIA.hxx:38: src/emucore/tia/Player.hxx:186:7: warning: unsafe buffer access [-Wunsafe-buffer-usage] if (myDecodes[myCounter]) { ^~~~~~~~~ src/emucore/tia/Player.hxx:190:14: warning: unsafe buffer access [-Wunsafe-buffer-usage] myCopy = myDecodes[myCounter]; ^~~~~~~~~ 6 warnings generated. mkdir -p -p src/emucore/.deps mkdir -p -p out/src/emucore c++ -MMD -MF "src/emucore/.deps/MindLink.d" -MQ "out/src/emucore/MindLink.o" -MP -O2 -pipe -I/usr/X11R6/include -I/usr/local/include -x c++ -Wall -Wextra -Wno-unused-parameter -Wno-multichar -Wunused -Woverloaded-virtual -Wnon-virtual-dtor -std=c++17 -Weverything -Wno-c++98-compat-pedantic -Wno-unknown-warning-option -Wno-switch-enum -Wno-conversion -Wno-covered-switch-default -Wno-inconsistent-missing-destructor-override -Wno-float-equal -Wno-exit-time-destructors -Wno-global-constructors -Wno-weak-vtables -Wno-four-char-constants -Wno-padded -Wno-reserved-identifier -Wno-duplicate-enum -fomit-frame-pointer -DSDL_SUPPORT -D_GLIBCXX_USE_CXX11_ABI=1 -DUNIX -DBSPF_UNIX -DGUI_SUPPORT -DWINDOWED_SUPPORT -DSOUND_SUPPORT -DDEBUGGER_SUPPORT -DJOYSTICK_SUPPORT -DCHEATCODE_SUPPORT -DHTTP_LIB_SUPPORT -DPNG_SUPPORT -DZIP_SUPPORT -Isrc/emucore -Isrc/common -Isrc/common/tv_filters -Isrc/emucore/tia -Isrc/emucore/tia/frame-manager -Isrc/json -Isrc/common/repository/sqlite -I/usr/local/include -I/usr/local/include/SDL2 -I/usr/X11R6/include -D_REENTRANT -I/usr/X11R6/include -Isrc/unix -Isrc/gui -Isrc/debugger -Isrc/debugger/gui -Isrc/yacc -Isrc/cheat -Isrc/httplib -c src/emucore/MindLink.cxx -o out/src/emucore/MindLink.o In file included from src/emucore/MindLink.cxx:18: In file included from src/emucore/Event.hxx:24: src/common/bspf.hxx:245:37: warning: unsafe pointer arithmetic [-Wunsafe-buffer-usage] const auto pos = std::search(s1.cbegin()+startpos, s1.cend(), ~~~^~~~~~~~ src/common/bspf.hxx:249:56: warning: unsafe pointer arithmetic [-Wunsafe-buffer-usage] return pos == s1.cend() ? string::npos : pos - (s1.cbegin()+startpos); ~~~^~~~~~~~ 2 warnings generated. mkdir -p -p src/emucore/.deps mkdir -p -p out/src/emucore c++ -MMD -MF "src/emucore/.deps/M6502.d" -MQ "out/src/emucore/M6502.o" -MP -O2 -pipe -I/usr/X11R6/include -I/usr/local/include -x c++ -Wall -Wextra -Wno-unused-parameter -Wno-multichar -Wunused -Woverloaded-virtual -Wnon-virtual-dtor -std=c++17 -Weverything -Wno-c++98-compat-pedantic -Wno-unknown-warning-option -Wno-switch-enum -Wno-conversion -Wno-covered-switch-default -Wno-inconsistent-missing-destructor-override -Wno-float-equal -Wno-exit-time-destructors -Wno-global-constructors -Wno-weak-vtables -Wno-four-char-constants -Wno-padded -Wno-reserved-identifier -Wno-duplicate-enum -fomit-frame-pointer -DSDL_SUPPORT -D_GLIBCXX_USE_CXX11_ABI=1 -DUNIX -DBSPF_UNIX -DGUI_SUPPORT -DWINDOWED_SUPPORT -DSOUND_SUPPORT -DDEBUGGER_SUPPORT -DJOYSTICK_SUPPORT -DCHEATCODE_SUPPORT -DHTTP_LIB_SUPPORT -DPNG_SUPPORT -DZIP_SUPPORT -Isrc/emucore -Isrc/common -Isrc/common/tv_filters -Isrc/emucore/tia -Isrc/emucore/tia/frame-manager -Isrc/json -Isrc/common/repository/sqlite -I/usr/local/include -I/usr/local/include/SDL2 -I/usr/X11R6/include -D_REENTRANT -I/usr/X11R6/include -Isrc/unix -Isrc/gui -Isrc/debugger -Isrc/debugger/gui -Isrc/yacc -Isrc/cheat -Isrc/httplib -c src/emucore/M6502.cxx -o out/src/emucore/M6502.o In file included from src/emucore/M6502.cxx:19: In file included from src/debugger/Debugger.hxx:46: In file included from src/common/Base.hxx:24: src/common/bspf.hxx:245:37: warning: unsafe pointer arithmetic [-Wunsafe-buffer-usage] const auto pos = std::search(s1.cbegin()+startpos, s1.cend(), ~~~^~~~~~~~ src/common/bspf.hxx:249:56: warning: unsafe pointer arithmetic [-Wunsafe-buffer-usage] return pos == s1.cend() ? string::npos : pos - (s1.cbegin()+startpos); ~~~^~~~~~~~ In file included from src/emucore/M6502.cxx:19: In file included from src/debugger/Debugger.hxx:48: In file included from src/gui/DialogContainer.hxx:26: In file included from src/common/StellaKeys.hxx:22: In file included from src/common/SDL_lib.hxx:34: In file included from /usr/local/include/SDL2/SDL.h:32: In file included from /usr/local/include/SDL2/SDL_main.h:25: /usr/local/include/SDL2/SDL_stdinc.h:544:13: warning: '_p' is an unsafe pointer used for buffer access [-Wunsafe-buffer-usage] Uint32 *_p = SDL_static_cast(Uint32 *, dst); ~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /usr/local/include/SDL2/SDL_stdinc.h:551:26: note: used in pointer arithmetic here case 3: *_p++ = _val; SDL_FALLTHROUGH; ^~ /usr/local/include/SDL2/SDL_stdinc.h:553:26: note: used in pointer arithmetic here case 1: *_p++ = _val; ^~ /usr/local/include/SDL2/SDL_stdinc.h:552:26: note: used in pointer arithmetic here case 2: *_p++ = _val; SDL_FALLTHROUGH; ^~ /usr/local/include/SDL2/SDL_stdinc.h:550:26: note: used in pointer arithmetic here case 0: do { *_p++ = _val; SDL_FALLTHROUGH; ^~ In file included from src/emucore/M6502.cxx:40: In file included from src/emucore/tia/TIA.hxx:37: src/emucore/tia/Missile.hxx:170:7: warning: unsafe buffer access [-Wunsafe-buffer-usage] if (myDecodes[myCounter] && !myResmp) { ^~~~~~~~~ src/emucore/tia/Missile.hxx:173:14: warning: unsafe buffer access [-Wunsafe-buffer-usage] myCopy = myDecodes[myCounter]; ^~~~~~~~~ In file included from src/emucore/M6502.cxx:40: In file included from src/emucore/tia/TIA.hxx:38: src/emucore/tia/Player.hxx:186:7: warning: unsafe buffer access [-Wunsafe-buffer-usage] if (myDecodes[myCounter]) { ^~~~~~~~~ src/emucore/tia/Player.hxx:190:14: warning: unsafe buffer access [-Wunsafe-buffer-usage] myCopy = myDecodes[myCounter]; ^~~~~~~~~ 7 warnings generated. mkdir -p -p src/emucore/.deps mkdir -p -p out/src/emucore c++ -MMD -MF "src/emucore/.deps/M6532.d" -MQ "out/src/emucore/M6532.o" -MP -O2 -pipe -I/usr/X11R6/include -I/usr/local/include -x c++ -Wall -Wextra -Wno-unused-parameter -Wno-multichar -Wunused -Woverloaded-virtual -Wnon-virtual-dtor -std=c++17 -Weverything -Wno-c++98-compat-pedantic -Wno-unknown-warning-option -Wno-switch-enum -Wno-conversion -Wno-covered-switch-default -Wno-inconsistent-missing-destructor-override -Wno-float-equal -Wno-exit-time-destructors -Wno-global-constructors -Wno-weak-vtables -Wno-four-char-constants -Wno-padded -Wno-reserved-identifier -Wno-duplicate-enum -fomit-frame-pointer -DSDL_SUPPORT -D_GLIBCXX_USE_CXX11_ABI=1 -DUNIX -DBSPF_UNIX -DGUI_SUPPORT -DWINDOWED_SUPPORT -DSOUND_SUPPORT -DDEBUGGER_SUPPORT -DJOYSTICK_SUPPORT -DCHEATCODE_SUPPORT -DHTTP_LIB_SUPPORT -DPNG_SUPPORT -DZIP_SUPPORT -Isrc/emucore -Isrc/common -Isrc/common/tv_filters -Isrc/emucore/tia -Isrc/emucore/tia/frame-manager -Isrc/json -Isrc/common/repository/sqlite -I/usr/local/include -I/usr/local/include/SDL2 -I/usr/X11R6/include -D_REENTRANT -I/usr/X11R6/include -Isrc/unix -Isrc/gui -Isrc/debugger -Isrc/debugger/gui -Isrc/yacc -Isrc/cheat -Isrc/httplib -c src/emucore/M6532.cxx -o out/src/emucore/M6532.o In file included from src/emucore/M6532.cxx:20: In file included from src/emucore/Console.hxx:34: src/common/bspf.hxx:245:37: warning: unsafe pointer arithmetic [-Wunsafe-buffer-usage] const auto pos = std::search(s1.cbegin()+startpos, s1.cend(), ~~~^~~~~~~~ src/common/bspf.hxx:249:56: warning: unsafe pointer arithmetic [-Wunsafe-buffer-usage] return pos == s1.cend() ? string::npos : pos - (s1.cbegin()+startpos); ~~~^~~~~~~~ 2 warnings generated. mkdir -p -p src/emucore/.deps mkdir -p -p out/src/emucore c++ -MMD -MF "src/emucore/.deps/MT24LC256.d" -MQ "out/src/emucore/MT24LC256.o" -MP -O2 -pipe -I/usr/X11R6/include -I/usr/local/include -x c++ -Wall -Wextra -Wno-unused-parameter -Wno-multichar -Wunused -Woverloaded-virtual -Wnon-virtual-dtor -std=c++17 -Weverything -Wno-c++98-compat-pedantic -Wno-unknown-warning-option -Wno-switch-enum -Wno-conversion -Wno-covered-switch-default -Wno-inconsistent-missing-destructor-override -Wno-float-equal -Wno-exit-time-destructors -Wno-global-constructors -Wno-weak-vtables -Wno-four-char-constants -Wno-padded -Wno-reserved-identifier -Wno-duplicate-enum -fomit-frame-pointer -DSDL_SUPPORT -D_GLIBCXX_USE_CXX11_ABI=1 -DUNIX -DBSPF_UNIX -DGUI_SUPPORT -DWINDOWED_SUPPORT -DSOUND_SUPPORT -DDEBUGGER_SUPPORT -DJOYSTICK_SUPPORT -DCHEATCODE_SUPPORT -DHTTP_LIB_SUPPORT -DPNG_SUPPORT -DZIP_SUPPORT -Isrc/emucore -Isrc/common -Isrc/common/tv_filters -Isrc/emucore/tia -Isrc/emucore/tia/frame-manager -Isrc/json -Isrc/common/repository/sqlite -I/usr/local/include -I/usr/local/include/SDL2 -I/usr/X11R6/include -D_REENTRANT -I/usr/X11R6/include -Isrc/unix -Isrc/gui -Isrc/debugger -Isrc/debugger/gui -Isrc/yacc -Isrc/cheat -Isrc/httplib -c src/emucore/MT24LC256.cxx -o out/src/emucore/MT24LC256.o In file included from src/emucore/MT24LC256.cxx:20: In file included from src/emucore/System.hxx:26: src/common/bspf.hxx:245:37: warning: unsafe pointer arithmetic [-Wunsafe-buffer-usage] const auto pos = std::search(s1.cbegin()+startpos, s1.cend(), ~~~^~~~~~~~ src/common/bspf.hxx:249:56: warning: unsafe pointer arithmetic [-Wunsafe-buffer-usage] return pos == s1.cend() ? string::npos : pos - (s1.cbegin()+startpos); ~~~^~~~~~~~ In file included from src/emucore/MT24LC256.cxx:21: In file included from src/emucore/MT24LC256.hxx:24: src/emucore/FSNode.hxx:513:31: warning: unsafe pointer arithmetic [-Wunsafe-buffer-usage] const char* cur = start + str.size() - 2; ~~~~~~^~~~~~~~~~~~ src/emucore/FSNode.hxx:512:19: warning: 'start' is an unsafe pointer used for buffer access [-Wunsafe-buffer-usage] const char* start = str.c_str(); ~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~ src/emucore/FSNode.hxx:513:25: note: used in pointer arithmetic here const char* cur = start + str.size() - 2; ^~~~~ src/emucore/FSNode.hxx:513:19: warning: 'cur' is an unsafe pointer used for buffer access [-Wunsafe-buffer-usage] const char* cur = start + str.size() - 2; ~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~ src/emucore/FSNode.hxx:518:14: note: used in pointer arithmetic here return cur + 1; ^~~ src/emucore/FSNode.hxx:516:11: note: used in pointer arithmetic here --cur; ^~~ src/emucore/MT24LC256.cxx:153:26: warning: unsafe pointer arithmetic [-Wunsafe-buffer-usage] std::fill_n(myData.get() + page * PAGE_SIZE, PAGE_SIZE, INITIAL_VALUE); ~~~~~~~^~~~~ 6 warnings generated. mkdir -p -p src/emucore/.deps mkdir -p -p out/src/emucore c++ -MMD -MF "src/emucore/.deps/MD5.d" -MQ "out/src/emucore/MD5.o" -MP -O2 -pipe -I/usr/X11R6/include -I/usr/local/include -x c++ -Wall -Wextra -Wno-unused-parameter -Wno-multichar -Wunused -Woverloaded-virtual -Wnon-virtual-dtor -std=c++17 -Weverything -Wno-c++98-compat-pedantic -Wno-unknown-warning-option -Wno-switch-enum -Wno-conversion -Wno-covered-switch-default -Wno-inconsistent-missing-destructor-override -Wno-float-equal -Wno-exit-time-destructors -Wno-global-constructors -Wno-weak-vtables -Wno-four-char-constants -Wno-padded -Wno-reserved-identifier -Wno-duplicate-enum -fomit-frame-pointer -DSDL_SUPPORT -D_GLIBCXX_USE_CXX11_ABI=1 -DUNIX -DBSPF_UNIX -DGUI_SUPPORT -DWINDOWED_SUPPORT -DSOUND_SUPPORT -DDEBUGGER_SUPPORT -DJOYSTICK_SUPPORT -DCHEATCODE_SUPPORT -DHTTP_LIB_SUPPORT -DPNG_SUPPORT -DZIP_SUPPORT -Isrc/emucore -Isrc/common -Isrc/common/tv_filters -Isrc/emucore/tia -Isrc/emucore/tia/frame-manager -Isrc/json -Isrc/common/repository/sqlite -I/usr/local/include -I/usr/local/include/SDL2 -I/usr/X11R6/include -D_REENTRANT -I/usr/X11R6/include -Isrc/unix -Isrc/gui -Isrc/debugger -Isrc/debugger/gui -Isrc/yacc -Isrc/cheat -Isrc/httplib -c src/emucore/MD5.cxx -o out/src/emucore/MD5.o In file included from src/emucore/MD5.cxx:21: In file included from src/emucore/FSNode.hxx:23: src/common/bspf.hxx:245:37: warning: unsafe pointer arithmetic [-Wunsafe-buffer-usage] const auto pos = std::search(s1.cbegin()+startpos, s1.cend(), ~~~^~~~~~~~ src/common/bspf.hxx:249:56: warning: unsafe pointer arithmetic [-Wunsafe-buffer-usage] return pos == s1.cend() ? string::npos : pos - (s1.cbegin()+startpos); ~~~^~~~~~~~ In file included from src/emucore/MD5.cxx:21: src/emucore/FSNode.hxx:513:31: warning: unsafe pointer arithmetic [-Wunsafe-buffer-usage] const char* cur = start + str.size() - 2; ~~~~~~^~~~~~~~~~~~ src/emucore/FSNode.hxx:512:19: warning: 'start' is an unsafe pointer used for buffer access [-Wunsafe-buffer-usage] const char* start = str.c_str(); ~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~ src/emucore/FSNode.hxx:513:25: note: used in pointer arithmetic here const char* cur = start + str.size() - 2; ^~~~~ src/emucore/FSNode.hxx:513:19: warning: 'cur' is an unsafe pointer used for buffer access [-Wunsafe-buffer-usage] const char* cur = start + str.size() - 2; ~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~ src/emucore/FSNode.hxx:518:14: note: used in pointer arithmetic here return cur + 1; ^~~ src/emucore/FSNode.hxx:516:11: note: used in pointer arithmetic here --cur; ^~~ src/emucore/MD5.cxx:126:23: warning: unsafe buffer access [-Wunsafe-buffer-usage] context->count[0] = context->count[1] = 0; ^~~~~~~~~~~~~~ src/emucore/MD5.cxx:129:3: warning: unsafe buffer access [-Wunsafe-buffer-usage] context->state[1] = 0xefcdab89; ^~~~~~~~~~~~~~ src/emucore/MD5.cxx:130:3: warning: unsafe buffer access [-Wunsafe-buffer-usage] context->state[2] = 0x98badcfe; ^~~~~~~~~~~~~~ src/emucore/MD5.cxx:131:3: warning: unsafe buffer access [-Wunsafe-buffer-usage] context->state[3] = 0x10325476; ^~~~~~~~~~~~~~ src/emucore/MD5.cxx:147:5: warning: unsafe buffer access [-Wunsafe-buffer-usage] context->count[1]++; ^~~~~~~~~~~~~~ src/emucore/MD5.cxx:148:3: warning: unsafe buffer access [-Wunsafe-buffer-usage] context->count[1] += (inputLen >> 29); ^~~~~~~~~~~~~~ src/emucore/MD5.cxx:154:14: warning: unsafe buffer access [-Wunsafe-buffer-usage] memcpy (&context->buffer[index], input, partLen); ^~~~~~~~~~~~~~~ src/emucore/MD5.cxx:166:11: warning: unsafe buffer access [-Wunsafe-buffer-usage] memcpy(&context->buffer[index], &input[i], inputLen-i); ^~~~~~~~~~~~~~~ src/emucore/MD5.cxx:137:60: warning: 'input' is an unsafe pointer used for buffer access [-Wunsafe-buffer-usage] static void MD5Update(MD5_CTX* context, const uInt8* const input, ~~~~~~~~~~~~~~~~~~~^~~~~ src/emucore/MD5.cxx:158:38: note: used in buffer access here MD5Transform (context->state, &input[i]); ^~~~~ src/emucore/MD5.cxx:166:36: note: used in buffer access here memcpy(&context->buffer[index], &input[i], inputLen-i); ^~~~~ src/emucore/MD5.cxx:193:33: warning: 'state' is an unsafe pointer used for buffer access [-Wunsafe-buffer-usage] static void MD5Transform(uInt32 state[4], const uInt8 block[64]) ~~~~~~~^~~~~~~~ src/emucore/MD5.cxx:273:3: note: used in buffer access here state[2] += c; ^~~~~ src/emucore/MD5.cxx:272:3: note: used in buffer access here state[1] += b; ^~~~~ src/emucore/MD5.cxx:195:42: note: used in buffer access here uInt32 a = state[0], b = state[1], c = state[2], d = state[3], x[16]; ^~~~~ src/emucore/MD5.cxx:195:28: note: used in buffer access here uInt32 a = state[0], b = state[1], c = state[2], d = state[3], x[16]; ^~~~~ src/emucore/MD5.cxx:195:56: note: used in buffer access here uInt32 a = state[0], b = state[1], c = state[2], d = state[3], x[16]; ^~~~~ src/emucore/MD5.cxx:274:3: note: used in buffer access here state[3] += d; ^~~~~ src/emucore/MD5.cxx:195:66: warning: 'x' is an unsafe buffer that does not perform bounds checks [-Wunsafe-buffer-usage] uInt32 a = state[0], b = state[1], c = state[2], d = state[3], x[16]; ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~ src/emucore/MD5.cxx:231:19: note: used in buffer access here GG (d, a, b, c, x[ 2], S22, 0xfcefa3f8) /* 30 */ ^ src/emucore/MD5.cxx:108:30: note: expanded from macro 'GG' (a) += G ((b), (c), (d)) + (x) + uInt32(ac); \ ^ src/emucore/MD5.cxx:259:19: note: used in buffer access here II (d, a, b, c, x[ 3], S42, 0x8f0ccc92) /* 54 */ ^ src/emucore/MD5.cxx:118:30: note: expanded from macro 'II' (a) += I ((b), (c), (d)) + (x) + uInt32(ac); \ ^ src/emucore/MD5.cxx:267:19: note: used in buffer access here II (d, a, b, c, x[11], S42, 0xbd3af235) /* 62 */ ^ src/emucore/MD5.cxx:118:30: note: expanded from macro 'II' (a) += I ((b), (c), (d)) + (x) + uInt32(ac); \ ^ src/emucore/MD5.cxx:250:19: note: used in buffer access here HH (c, d, a, b, x[15], S33, 0x1fa27cf8) /* 47 */ ^ src/emucore/MD5.cxx:113:30: note: expanded from macro 'HH' (a) += H ((b), (c), (d)) + (x) + uInt32(ac); \ ^ src/emucore/MD5.cxx:203:19: note: used in buffer access here FF (b, c, d, a, x[ 3], S14, 0xc1bdceee) /* 4 */ ^ src/emucore/MD5.cxx:103:30: note: expanded from macro 'FF' (a) += F ((b), (c), (d)) + (x) + uInt32(ac); \ ^ src/emucore/MD5.cxx:255:19: note: used in buffer access here II (d, a, b, c, x[ 7], S42, 0x432aff97) /* 50 */ ^ src/emucore/MD5.cxx:118:30: note: expanded from macro 'II' (a) += I ((b), (c), (d)) + (x) + uInt32(ac); \ ^ src/emucore/MD5.cxx:264:19: note: used in buffer access here II (c, d, a, b, x[ 6], S43, 0xa3014314) /* 59 */ ^ src/emucore/MD5.cxx:118:30: note: expanded from macro 'II' (a) += I ((b), (c), (d)) + (x) + uInt32(ac); \ ^ src/emucore/MD5.cxx:204:19: note: used in buffer access here FF (a, b, c, d, x[ 4], S11, 0xf57c0faf) /* 5 */ ^ src/emucore/MD5.cxx:103:30: note: expanded from macro 'FF' (a) += F ((b), (c), (d)) + (x) + uInt32(ac); \ ^ src/emucore/MD5.cxx:233:19: note: used in buffer access here GG (b, c, d, a, x[12], S24, 0x8d2a4c8a) /* 32 */ ^ src/emucore/MD5.cxx:108:30: note: expanded from macro 'GG' (a) += G ((b), (c), (d)) + (x) + uInt32(ac); \ ^ src/emucore/MD5.cxx:232:19: note: used in buffer access here GG (c, d, a, b, x[ 7], S23, 0x676f02d9) /* 31 */ ^ src/emucore/MD5.cxx:108:30: note: expanded from macro 'GG' (a) += G ((b), (c), (d)) + (x) + uInt32(ac); \ ^ src/emucore/MD5.cxx:212:19: note: used in buffer access here FF (a, b, c, d, x[12], S11, 0x6b901122) /* 13 */ ^ src/emucore/MD5.cxx:103:30: note: expanded from macro 'FF' (a) += F ((b), (c), (d)) + (x) + uInt32(ac); \ ^ src/emucore/MD5.cxx:226:19: note: used in buffer access here GG (a, b, c, d, x[ 9], S21, 0x21e1cde6) /* 25 */ ^ src/emucore/MD5.cxx:108:30: note: expanded from macro 'GG' (a) += G ((b), (c), (d)) + (x) + uInt32(ac); \ ^ src/emucore/MD5.cxx:224:19: note: used in buffer access here GG (c, d, a, b, x[15], S23, 0xd8a1e681) /* 23 */ ^ src/emucore/MD5.cxx:108:30: note: expanded from macro 'GG' (a) += G ((b), (c), (d)) + (x) + uInt32(ac); \ ^ src/emucore/MD5.cxx:227:19: note: used in buffer access here GG (d, a, b, c, x[14], S22, 0xc33707d6) /* 26 */ ^ src/emucore/MD5.cxx:108:30: note: expanded from macro 'GG' (a) += G ((b), (c), (d)) + (x) + uInt32(ac); \ ^ src/emucore/MD5.cxx:260:19: note: used in buffer access here II (c, d, a, b, x[10], S43, 0xffeff47d) /* 55 */ ^ src/emucore/MD5.cxx:118:30: note: expanded from macro 'II' (a) += I ((b), (c), (d)) + (x) + uInt32(ac); \ ^ src/emucore/MD5.cxx:248:19: note: used in buffer access here HH (a, b, c, d, x[ 9], S31, 0xd9d4d039) /* 45 */ ^ src/emucore/MD5.cxx:113:30: note: expanded from macro 'HH' (a) += H ((b), (c), (d)) + (x) + uInt32(ac); \ ^ src/emucore/MD5.cxx:208:19: note: used in buffer access here FF (a, b, c, d, x[ 8], S11, 0x698098d8) /* 9 */ ^ src/emucore/MD5.cxx:103:30: note: expanded from macro 'FF' (a) += F ((b), (c), (d)) + (x) + uInt32(ac); \ ^ src/emucore/MD5.cxx:269:19: note: used in buffer access here II (b, c, d, a, x[ 9], S44, 0xeb86d391) /* 64 */ ^ src/emucore/MD5.cxx:118:30: note: expanded from macro 'II' (a) += I ((b), (c), (d)) + (x) + uInt32(ac); \ ^ src/emucore/MD5.cxx:202:19: note: used in buffer access here FF (c, d, a, b, x[ 2], S13, 0x242070db) /* 3 */ ^ src/emucore/MD5.cxx:103:30: note: expanded from macro 'FF' (a) += F ((b), (c), (d)) + (x) + uInt32(ac); \ ^ src/emucore/MD5.cxx:229:19: note: used in buffer access here GG (b, c, d, a, x[ 8], S24, 0x455a14ed) /* 28 */ ^ src/emucore/MD5.cxx:108:30: note: expanded from macro 'GG' (a) += G ((b), (c), (d)) + (x) + uInt32(ac); \ ^ src/emucore/MD5.cxx:239:19: note: used in buffer access here HH (b, c, d, a, x[14], S34, 0xfde5380c) /* 36 */ ^ src/emucore/MD5.cxx:113:30: note: expanded from macro 'HH' (a) += H ((b), (c), (d)) + (x) + uInt32(ac); \ ^ src/emucore/MD5.cxx:251:19: note: used in buffer access here HH (b, c, d, a, x[ 2], S34, 0xc4ac5665) /* 48 */ ^ src/emucore/MD5.cxx:113:30: note: expanded from macro 'HH' (a) += H ((b), (c), (d)) + (x) + uInt32(ac); \ ^ src/emucore/MD5.cxx:256:19: note: used in buffer access here II (c, d, a, b, x[14], S43, 0xab9423a7) /* 51 */ ^ src/emucore/MD5.cxx:118:30: note: expanded from macro 'II' (a) += I ((b), (c), (d)) + (x) + uInt32(ac); \ ^ src/emucore/MD5.cxx:258:19: note: used in buffer access here II (a, b, c, d, x[12], S41, 0x655b59c3) /* 53 */ ^ src/emucore/MD5.cxx:118:30: note: expanded from macro 'II' (a) += I ((b), (c), (d)) + (x) + uInt32(ac); \ ^ src/emucore/MD5.cxx:263:19: note: used in buffer access here II (d, a, b, c, x[15], S42, 0xfe2ce6e0) /* 58 */ ^ src/emucore/MD5.cxx:118:30: note: expanded from macro 'II' (a) += I ((b), (c), (d)) + (x) + uInt32(ac); \ ^ src/emucore/MD5.cxx:209:19: note: used in buffer access here FF (d, a, b, c, x[ 9], S12, 0x8b44f7af) /* 10 */ ^ src/emucore/MD5.cxx:103:30: note: expanded from macro 'FF' (a) += F ((b), (c), (d)) + (x) + uInt32(ac); \ ^ src/emucore/MD5.cxx:243:19: note: used in buffer access here HH (b, c, d, a, x[10], S34, 0xbebfbc70) /* 40 */ ^ src/emucore/MD5.cxx:113:30: note: expanded from macro 'HH' (a) += H ((b), (c), (d)) + (x) + uInt32(ac); \ ^ src/emucore/MD5.cxx:237:19: note: used in buffer access here HH (d, a, b, c, x[ 8], S32, 0x8771f681) /* 34 */ ^ src/emucore/MD5.cxx:113:30: note: expanded from macro 'HH' (a) += H ((b), (c), (d)) + (x) + uInt32(ac); \ ^ src/emucore/MD5.cxx:214:19: note: used in buffer access here FF (c, d, a, b, x[14], S13, 0xa679438e) /* 15 */ ^ src/emucore/MD5.cxx:103:30: note: expanded from macro 'FF' (a) += F ((b), (c), (d)) + (x) + uInt32(ac); \ ^ src/emucore/MD5.cxx:266:19: note: used in buffer access here II (a, b, c, d, x[ 4], S41, 0xf7537e82) /* 61 */ ^ src/emucore/MD5.cxx:118:30: note: expanded from macro 'II' (a) += I ((b), (c), (d)) + (x) + uInt32(ac); \ ^ src/emucore/MD5.cxx:240:19: note: used in buffer access here HH (a, b, c, d, x[ 1], S31, 0xa4beea44) /* 37 */ ^ src/emucore/MD5.cxx:113:30: note: expanded from macro 'HH' (a) += H ((b), (c), (d)) + (x) + uInt32(ac); \ ^ src/emucore/MD5.cxx:215:19: note: used in buffer access here FF (b, c, d, a, x[15], S14, 0x49b40821) /* 16 */ ^ src/emucore/MD5.cxx:103:30: note: expanded from macro 'FF' (a) += F ((b), (c), (d)) + (x) + uInt32(ac); \ ^ src/emucore/MD5.cxx:242:19: note: used in buffer access here HH (c, d, a, b, x[ 7], S33, 0xf6bb4b60) /* 39 */ ^ src/emucore/MD5.cxx:113:30: note: expanded from macro 'HH' (a) += H ((b), (c), (d)) + (x) + uInt32(ac); \ ^ src/emucore/MD5.cxx:249:19: note: used in buffer access here HH (d, a, b, c, x[12], S32, 0xe6db99e5) /* 46 */ ^ src/emucore/MD5.cxx:113:30: note: expanded from macro 'HH' (a) += H ((b), (c), (d)) + (x) + uInt32(ac); \ ^ src/emucore/MD5.cxx:205:19: note: used in buffer access here FF (d, a, b, c, x[ 5], S12, 0x4787c62a) /* 6 */ ^ src/emucore/MD5.cxx:103:30: note: expanded from macro 'FF' (a) += F ((b), (c), (d)) + (x) + uInt32(ac); \ ^ src/emucore/MD5.cxx:206:19: note: used in buffer access here FF (c, d, a, b, x[ 6], S13, 0xa8304613) /* 7 */ ^ src/emucore/MD5.cxx:103:30: note: expanded from macro 'FF' (a) += F ((b), (c), (d)) + (x) + uInt32(ac); \ ^ src/emucore/MD5.cxx:207:19: note: used in buffer access here FF (b, c, d, a, x[ 7], S14, 0xfd469501) /* 8 */ ^ src/emucore/MD5.cxx:103:30: note: expanded from macro 'FF' (a) += F ((b), (c), (d)) + (x) + uInt32(ac); \ ^ src/emucore/MD5.cxx:218:19: note: used in buffer access here GG (a, b, c, d, x[ 1], S21, 0xf61e2562) /* 17 */ ^ src/emucore/MD5.cxx:108:30: note: expanded from macro 'GG' (a) += G ((b), (c), (d)) + (x) + uInt32(ac); \ ^ src/emucore/MD5.cxx:220:19: note: used in buffer access here GG (c, d, a, b, x[11], S23, 0x265e5a51) /* 19 */ ^ src/emucore/MD5.cxx:108:30: note: expanded from macro 'GG' (a) += G ((b), (c), (d)) + (x) + uInt32(ac); \ ^ src/emucore/MD5.cxx:222:19: note: used in buffer access here GG (a, b, c, d, x[ 5], S21, 0xd62f105d) /* 21 */ ^ src/emucore/MD5.cxx:108:30: note: expanded from macro 'GG' (a) += G ((b), (c), (d)) + (x) + uInt32(ac); \ ^ src/emucore/MD5.cxx:223:19: note: used in buffer access here GG (d, a, b, c, x[10], S22, 0x2441453) /* 22 */ ^ src/emucore/MD5.cxx:108:30: note: expanded from macro 'GG' (a) += G ((b), (c), (d)) + (x) + uInt32(ac); \ ^ src/emucore/MD5.cxx:228:19: note: used in buffer access here GG (c, d, a, b, x[ 3], S23, 0xf4d50d87) /* 27 */ ^ src/emucore/MD5.cxx:108:30: note: expanded from macro 'GG' (a) += G ((b), (c), (d)) + (x) + uInt32(ac); \ ^ src/emucore/MD5.cxx:236:19: note: used in buffer access here HH (a, b, c, d, x[ 5], S31, 0xfffa3942) /* 33 */ ^ src/emucore/MD5.cxx:113:30: note: expanded from macro 'HH' (a) += H ((b), (c), (d)) + (x) + uInt32(ac); \ ^ src/emucore/MD5.cxx:241:19: note: used in buffer access here HH (d, a, b, c, x[ 4], S32, 0x4bdecfa9) /* 38 */ ^ src/emucore/MD5.cxx:113:30: note: expanded from macro 'HH' (a) += H ((b), (c), (d)) + (x) + uInt32(ac); \ ^ src/emucore/MD5.cxx:225:19: note: used in buffer access here GG (b, c, d, a, x[ 4], S24, 0xe7d3fbc8) /* 24 */ ^ src/emucore/MD5.cxx:108:30: note: expanded from macro 'GG' (a) += G ((b), (c), (d)) + (x) + uInt32(ac); \ ^ src/emucore/MD5.cxx:230:19: note: used in buffer access here GG (a, b, c, d, x[13], S21, 0xa9e3e905) /* 29 */ ^ src/emucore/MD5.cxx:108:30: note: expanded from macro 'GG' (a) += G ((b), (c), (d)) + (x) + uInt32(ac); \ ^ src/emucore/MD5.cxx:244:19: note: used in buffer access here HH (a, b, c, d, x[13], S31, 0x289b7ec6) /* 41 */ ^ src/emucore/MD5.cxx:113:30: note: expanded from macro 'HH' (a) += H ((b), (c), (d)) + (x) + uInt32(ac); \ ^ src/emucore/MD5.cxx:201:19: note: used in buffer access here FF (d, a, b, c, x[ 1], S12, 0xe8c7b756) /* 2 */ ^ src/emucore/MD5.cxx:103:30: note: expanded from macro 'FF' (a) += F ((b), (c), (d)) + (x) + uInt32(ac); \ ^ src/emucore/MD5.cxx:246:19: note: used in buffer access here HH (c, d, a, b, x[ 3], S33, 0xd4ef3085) /* 43 */ ^ src/emucore/MD5.cxx:113:30: note: expanded from macro 'HH' (a) += H ((b), (c), (d)) + (x) + uInt32(ac); \ ^ src/emucore/MD5.cxx:238:19: note: used in buffer access here HH (c, d, a, b, x[11], S33, 0x6d9d6122) /* 35 */ ^ src/emucore/MD5.cxx:113:30: note: expanded from macro 'HH' (a) += H ((b), (c), (d)) + (x) + uInt32(ac); \ ^ src/emucore/MD5.cxx:247:19: note: used in buffer access here HH (b, c, d, a, x[ 6], S34, 0x4881d05) /* 44 */ ^ src/emucore/MD5.cxx:113:30: note: expanded from macro 'HH' (a) += H ((b), (c), (d)) + (x) + uInt32(ac); \ ^ src/emucore/MD5.cxx:257:19: note: used in buffer access here II (b, c, d, a, x[ 5], S44, 0xfc93a039) /* 52 */ ^ src/emucore/MD5.cxx:118:30: note: expanded from macro 'II' (a) += I ((b), (c), (d)) + (x) + uInt32(ac); \ ^ src/emucore/MD5.cxx:265:19: note: used in buffer access here II (b, c, d, a, x[13], S44, 0x4e0811a1) /* 60 */ ^ src/emucore/MD5.cxx:118:30: note: expanded from macro 'II' (a) += I ((b), (c), (d)) + (x) + uInt32(ac); \ ^ src/emucore/MD5.cxx:268:19: note: used in buffer access here II (c, d, a, b, x[ 2], S43, 0x2ad7d2bb) /* 63 */ ^ src/emucore/MD5.cxx:118:30: note: expanded from macro 'II' (a) += I ((b), (c), (d)) + (x) + uInt32(ac); \ ^ src/emucore/MD5.cxx:211:19: note: used in buffer access here FF (b, c, d, a, x[11], S14, 0x895cd7be) /* 12 */ ^ src/emucore/MD5.cxx:103:30: note: expanded from macro 'FF' (a) += F ((b), (c), (d)) + (x) + uInt32(ac); \ ^ src/emucore/MD5.cxx:261:19: note: used in buffer access here II (b, c, d, a, x[ 1], S44, 0x85845dd1) /* 56 */ ^ src/emucore/MD5.cxx:118:30: note: expanded from macro 'II' (a) += I ((b), (c), (d)) + (x) + uInt32(ac); \ ^ src/emucore/MD5.cxx:213:19: note: used in buffer access here FF (d, a, b, c, x[13], S12, 0xfd987193) /* 14 */ ^ src/emucore/MD5.cxx:103:30: note: expanded from macro 'FF' (a) += F ((b), (c), (d)) + (x) + uInt32(ac); \ ^ src/emucore/MD5.cxx:219:19: note: used in buffer access here GG (d, a, b, c, x[ 6], S22, 0xc040b340) /* 18 */ ^ src/emucore/MD5.cxx:108:30: note: expanded from macro 'GG' (a) += G ((b), (c), (d)) + (x) + uInt32(ac); \ ^ src/emucore/MD5.cxx:210:19: note: used in buffer access here FF (c, d, a, b, x[10], S13, 0xffff5bb1) /* 11 */ ^ src/emucore/MD5.cxx:103:30: note: expanded from macro 'FF' (a) += F ((b), (c), (d)) + (x) + uInt32(ac); \ ^ src/emucore/MD5.cxx:262:19: note: used in buffer access here II (a, b, c, d, x[ 8], S41, 0x6fa87e4f) /* 57 */ ^ src/emucore/MD5.cxx:118:30: note: expanded from macro 'II' (a) += I ((b), (c), (d)) + (x) + uInt32(ac); \ ^ src/emucore/MD5.cxx:282:27: warning: 'output' is an unsafe pointer used for buffer access [-Wunsafe-buffer-usage] static void Encode(uInt8* output, const uInt32* const input, uInt32 len) ~~~~~~~^~~~~~ src/emucore/MD5.cxx:285:5: note: used in buffer access here output[j] = static_cast(input[i] & 0xff); ^~~~~~ src/emucore/MD5.cxx:288:5: note: used in buffer access here output[j+3] = static_cast((input[i] >> 24) & 0xff); ^~~~~~ src/emucore/MD5.cxx:286:5: note: used in buffer access here output[j+1] = static_cast((input[i] >> 8) & 0xff); ^~~~~~ src/emucore/MD5.cxx:287:5: note: used in buffer access here output[j+2] = static_cast((input[i] >> 16) & 0xff); ^~~~~~ src/emucore/MD5.cxx:282:55: warning: 'input' is an unsafe pointer used for buffer access [-Wunsafe-buffer-usage] static void Encode(uInt8* output, const uInt32* const input, uInt32 len) ~~~~~~~~~~~~~~~~~~~~^~~~~ src/emucore/MD5.cxx:288:39: note: used in buffer access here output[j+3] = static_cast((input[i] >> 24) & 0xff); ^~~~~ src/emucore/MD5.cxx:285:38: note: used in buffer access here output[j] = static_cast(input[i] & 0xff); ^~~~~ src/emucore/MD5.cxx:286:39: note: used in buffer access here output[j+1] = static_cast((input[i] >> 8) & 0xff); ^~~~~ src/emucore/MD5.cxx:287:39: note: used in buffer access here output[j+2] = static_cast((input[i] >> 16) & 0xff); ^~~~~ src/emucore/MD5.cxx:294:28: warning: 'output' is an unsafe pointer used for buffer access [-Wunsafe-buffer-usage] static void Decode(uInt32* output, const uInt8* const input, uInt32 len) ~~~~~~~~^~~~~~ src/emucore/MD5.cxx:297:5: note: used in buffer access here output[i] = (static_cast(input[j])) ^~~~~~ src/emucore/MD5.cxx:294:55: warning: 'input' is an unsafe pointer used for buffer access [-Wunsafe-buffer-usage] static void Decode(uInt32* output, const uInt8* const input, uInt32 len) ~~~~~~~~~~~~~~~~~~~^~~~~ src/emucore/MD5.cxx:299:39: note: used in buffer access here | ((static_cast(input[j+2])) << 16) ^~~~~ src/emucore/MD5.cxx:298:39: note: used in buffer access here | ((static_cast(input[j+1])) << 8) ^~~~~ src/emucore/MD5.cxx:300:39: note: used in buffer access here | ((static_cast(input[j+3])) << 24); ^~~~~ src/emucore/MD5.cxx:297:39: note: used in buffer access here output[i] = (static_cast(input[j])) ^~~~~ src/emucore/MD5.cxx:320:25: warning: 'hex' is an unsafe buffer that does not perform bounds checks [-Wunsafe-buffer-usage] static constexpr char hex[] = "0123456789abcdef"; ~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~ src/emucore/MD5.cxx:332:15: note: used in buffer access here result += hex[(md5[t] >> 4) & 0x0f]; ^~~ src/emucore/MD5.cxx:333:15: note: used in buffer access here result += hex[md5[t] & 0x0f]; ^~~ src/emucore/MD5.cxx:322:9: warning: 'md5' is an unsafe buffer that does not perform bounds checks [-Wunsafe-buffer-usage] uInt8 md5[16] = {0}; ~~~~~~^~~~~~~~~~~~~ src/emucore/MD5.cxx:333:19: note: used in buffer access here result += hex[md5[t] & 0x0f]; ^~~ src/emucore/MD5.cxx:332:20: note: used in buffer access here result += hex[(md5[t] >> 4) & 0x0f]; ^~~ 22 warnings generated. mkdir -p -p src/emucore/.deps mkdir -p -p out/src/emucore c++ -MMD -MF "src/emucore/.deps/OSystem.d" -MQ "out/src/emucore/OSystem.o" -MP -O2 -pipe -I/usr/X11R6/include -I/usr/local/include -x c++ -Wall -Wextra -Wno-unused-parameter -Wno-multichar -Wunused -Woverloaded-virtual -Wnon-virtual-dtor -std=c++17 -Weverything -Wno-c++98-compat-pedantic -Wno-unknown-warning-option -Wno-switch-enum -Wno-conversion -Wno-covered-switch-default -Wno-inconsistent-missing-destructor-override -Wno-float-equal -Wno-exit-time-destructors -Wno-global-constructors -Wno-weak-vtables -Wno-four-char-constants -Wno-padded -Wno-reserved-identifier -Wno-duplicate-enum -fomit-frame-pointer -DSDL_SUPPORT -D_GLIBCXX_USE_CXX11_ABI=1 -DUNIX -DBSPF_UNIX -DGUI_SUPPORT -DWINDOWED_SUPPORT -DSOUND_SUPPORT -DDEBUGGER_SUPPORT -DJOYSTICK_SUPPORT -DCHEATCODE_SUPPORT -DHTTP_LIB_SUPPORT -DPNG_SUPPORT -DZIP_SUPPORT -Isrc/emucore -Isrc/common -Isrc/common/tv_filters -Isrc/emucore/tia -Isrc/emucore/tia/frame-manager -Isrc/json -Isrc/common/repository/sqlite -I/usr/local/include -I/usr/local/include/SDL2 -I/usr/X11R6/include -D_REENTRANT -I/usr/X11R6/include -Isrc/unix -Isrc/gui -Isrc/debugger -Isrc/debugger/gui -Isrc/yacc -Isrc/cheat -Isrc/httplib -c src/emucore/OSystem.cxx -o out/src/emucore/OSystem.o In file included from src/emucore/OSystem.cxx:21: src/common/bspf.hxx:245:37: warning: unsafe pointer arithmetic [-Wunsafe-buffer-usage] const auto pos = std::search(s1.cbegin()+startpos, s1.cend(), ~~~^~~~~~~~ src/common/bspf.hxx:249:56: warning: unsafe pointer arithmetic [-Wunsafe-buffer-usage] return pos == s1.cend() ? string::npos : pos - (s1.cbegin()+startpos); ~~~^~~~~~~~ In file included from src/emucore/OSystem.cxx:24: In file included from src/common/MediaFactory.hxx:23: In file included from src/common/SDL_lib.hxx:34: In file included from /usr/local/include/SDL2/SDL.h:32: In file included from /usr/local/include/SDL2/SDL_main.h:25: /usr/local/include/SDL2/SDL_stdinc.h:544:13: warning: '_p' is an unsafe pointer used for buffer access [-Wunsafe-buffer-usage] Uint32 *_p = SDL_static_cast(Uint32 *, dst); ~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /usr/local/include/SDL2/SDL_stdinc.h:553:26: note: used in pointer arithmetic here case 1: *_p++ = _val; ^~ /usr/local/include/SDL2/SDL_stdinc.h:552:26: note: used in pointer arithmetic here case 2: *_p++ = _val; SDL_FALLTHROUGH; ^~ /usr/local/include/SDL2/SDL_stdinc.h:550:26: note: used in pointer arithmetic here case 0: do { *_p++ = _val; SDL_FALLTHROUGH; ^~ /usr/local/include/SDL2/SDL_stdinc.h:551:26: note: used in pointer arithmetic here case 3: *_p++ = _val; SDL_FALLTHROUGH; ^~ In file included from src/emucore/OSystem.cxx:24: In file included from src/common/MediaFactory.hxx:26: In file included from src/emucore/OSystem.hxx:55: src/emucore/FSNode.hxx:513:31: warning: unsafe pointer arithmetic [-Wunsafe-buffer-usage] const char* cur = start + str.size() - 2; ~~~~~~^~~~~~~~~~~~ src/emucore/FSNode.hxx:512:19: warning: 'start' is an unsafe pointer used for buffer access [-Wunsafe-buffer-usage] const char* start = str.c_str(); ~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~ src/emucore/FSNode.hxx:513:25: note: used in pointer arithmetic here const char* cur = start + str.size() - 2; ^~~~~ src/emucore/FSNode.hxx:513:19: warning: 'cur' is an unsafe pointer used for buffer access [-Wunsafe-buffer-usage] const char* cur = start + str.size() - 2; ~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~ src/emucore/FSNode.hxx:516:11: note: used in pointer arithmetic here --cur; ^~~ src/emucore/FSNode.hxx:518:14: note: used in pointer arithmetic here return cur + 1; ^~~ In file included from src/emucore/OSystem.cxx:51: In file included from src/emucore/TIASurface.hxx:31: In file included from src/common/tv_filters/NTSCFilter.hxx:25: src/common/tv_filters/AtariNTSC.hxx:238:22: warning: 'to_rgb' is an unsafe pointer used for buffer access [-Wunsafe-buffer-usage] const float* to_rgb, int& ir, int& ig, int& ib) { ~~~~~~~~~~~~~^~~~~~ src/common/tv_filters/AtariNTSC.hxx:239:49: note: used in buffer access here ir = static_cast(y + to_rgb[0] * i + to_rgb[1] * q); ^~~~~~ src/common/tv_filters/AtariNTSC.hxx:240:49: note: used in buffer access here ig = static_cast(y + to_rgb[2] * i + to_rgb[3] * q); ^~~~~~ src/common/tv_filters/AtariNTSC.hxx:241:33: note: used in buffer access here ib = static_cast(y + to_rgb[4] * i + to_rgb[5] * q); ^~~~~~ src/common/tv_filters/AtariNTSC.hxx:241:49: note: used in buffer access here ib = static_cast(y + to_rgb[4] * i + to_rgb[5] * q); ^~~~~~ src/common/tv_filters/AtariNTSC.hxx:240:33: note: used in buffer access here ig = static_cast(y + to_rgb[2] * i + to_rgb[3] * q); ^~~~~~ In file included from src/emucore/OSystem.cxx:65: In file included from src/emucore/tia/TIA.hxx:37: src/emucore/tia/Missile.hxx:170:7: warning: unsafe buffer access [-Wunsafe-buffer-usage] if (myDecodes[myCounter] && !myResmp) { ^~~~~~~~~ src/emucore/tia/Missile.hxx:173:14: warning: unsafe buffer access [-Wunsafe-buffer-usage] myCopy = myDecodes[myCounter]; ^~~~~~~~~ In file included from src/emucore/OSystem.cxx:65: In file included from src/emucore/tia/TIA.hxx:38: src/emucore/tia/Player.hxx:186:7: warning: unsafe buffer access [-Wunsafe-buffer-usage] if (myDecodes[myCounter]) { ^~~~~~~~~ src/emucore/tia/Player.hxx:190:14: warning: unsafe buffer access [-Wunsafe-buffer-usage] myCopy = myDecodes[myCounter]; ^~~~~~~~~ src/emucore/OSystem.cxx:526:21: warning: 'HEX_DIGITS' is an unsafe pointer used for buffer access [-Wunsafe-buffer-usage] const char* HEX_DIGITS = "0123456789ABCDEF"; ~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ src/emucore/OSystem.cxx:531:15: note: used in buffer access here c = HEX_DIGITS[rnd.next() % 16]; ^~~~~~~~~~ 12 warnings generated. mkdir -p -p src/emucore/.deps mkdir -p -p out/src/emucore c++ -MMD -MF "src/emucore/.deps/OSystemStandalone.d" -MQ "out/src/emucore/OSystemStandalone.o" -MP -O2 -pipe -I/usr/X11R6/include -I/usr/local/include -x c++ -Wall -Wextra -Wno-unused-parameter -Wno-multichar -Wunused -Woverloaded-virtual -Wnon-virtual-dtor -std=c++17 -Weverything -Wno-c++98-compat-pedantic -Wno-unknown-warning-option -Wno-switch-enum -Wno-conversion -Wno-covered-switch-default -Wno-inconsistent-missing-destructor-override -Wno-float-equal -Wno-exit-time-destructors -Wno-global-constructors -Wno-weak-vtables -Wno-four-char-constants -Wno-padded -Wno-reserved-identifier -Wno-duplicate-enum -fomit-frame-pointer -DSDL_SUPPORT -D_GLIBCXX_USE_CXX11_ABI=1 -DUNIX -DBSPF_UNIX -DGUI_SUPPORT -DWINDOWED_SUPPORT -DSOUND_SUPPORT -DDEBUGGER_SUPPORT -DJOYSTICK_SUPPORT -DCHEATCODE_SUPPORT -DHTTP_LIB_SUPPORT -DPNG_SUPPORT -DZIP_SUPPORT -Isrc/emucore -Isrc/common -Isrc/common/tv_filters -Isrc/emucore/tia -Isrc/emucore/tia/frame-manager -Isrc/json -Isrc/common/repository/sqlite -I/usr/local/include -I/usr/local/include/SDL2 -I/usr/X11R6/include -D_REENTRANT -I/usr/X11R6/include -Isrc/unix -Isrc/gui -Isrc/debugger -Isrc/debugger/gui -Isrc/yacc -Isrc/cheat -Isrc/httplib -c src/emucore/OSystemStandalone.cxx -o out/src/emucore/OSystemStandalone.o In file included from src/emucore/OSystemStandalone.cxx:18: In file included from src/common/repository/sqlite/StellaDb.hxx:21: src/common/bspf.hxx:245:37: warning: unsafe pointer arithmetic [-Wunsafe-buffer-usage] const auto pos = std::search(s1.cbegin()+startpos, s1.cend(), ~~~^~~~~~~~ src/common/bspf.hxx:249:56: warning: unsafe pointer arithmetic [-Wunsafe-buffer-usage] return pos == s1.cend() ? string::npos : pos - (s1.cbegin()+startpos); ~~~^~~~~~~~ In file included from src/emucore/OSystemStandalone.cxx:18: In file included from src/common/repository/sqlite/StellaDb.hxx:25: src/emucore/FSNode.hxx:513:31: warning: unsafe pointer arithmetic [-Wunsafe-buffer-usage] const char* cur = start + str.size() - 2; ~~~~~~^~~~~~~~~~~~ src/emucore/FSNode.hxx:512:19: warning: 'start' is an unsafe pointer used for buffer access [-Wunsafe-buffer-usage] const char* start = str.c_str(); ~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~ src/emucore/FSNode.hxx:513:25: note: used in pointer arithmetic here const char* cur = start + str.size() - 2; ^~~~~ src/emucore/FSNode.hxx:513:19: warning: 'cur' is an unsafe pointer used for buffer access [-Wunsafe-buffer-usage] const char* cur = start + str.size() - 2; ~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~ src/emucore/FSNode.hxx:516:11: note: used in pointer arithmetic here --cur; ^~~ src/emucore/FSNode.hxx:518:14: note: used in pointer arithmetic here return cur + 1; ^~~ 5 warnings generated. mkdir -p -p src/emucore/.deps mkdir -p -p out/src/emucore c++ -MMD -MF "src/emucore/.deps/Paddles.d" -MQ "out/src/emucore/Paddles.o" -MP -O2 -pipe -I/usr/X11R6/include -I/usr/local/include -x c++ -Wall -Wextra -Wno-unused-parameter -Wno-multichar -Wunused -Woverloaded-virtual -Wnon-virtual-dtor -std=c++17 -Weverything -Wno-c++98-compat-pedantic -Wno-unknown-warning-option -Wno-switch-enum -Wno-conversion -Wno-covered-switch-default -Wno-inconsistent-missing-destructor-override -Wno-float-equal -Wno-exit-time-destructors -Wno-global-constructors -Wno-weak-vtables -Wno-four-char-constants -Wno-padded -Wno-reserved-identifier -Wno-duplicate-enum -fomit-frame-pointer -DSDL_SUPPORT -D_GLIBCXX_USE_CXX11_ABI=1 -DUNIX -DBSPF_UNIX -DGUI_SUPPORT -DWINDOWED_SUPPORT -DSOUND_SUPPORT -DDEBUGGER_SUPPORT -DJOYSTICK_SUPPORT -DCHEATCODE_SUPPORT -DHTTP_LIB_SUPPORT -DPNG_SUPPORT -DZIP_SUPPORT -Isrc/emucore -Isrc/common -Isrc/common/tv_filters -Isrc/emucore/tia -Isrc/emucore/tia/frame-manager -Isrc/json -Isrc/common/repository/sqlite -I/usr/local/include -I/usr/local/include/SDL2 -I/usr/X11R6/include -D_REENTRANT -I/usr/X11R6/include -Isrc/unix -Isrc/gui -Isrc/debugger -Isrc/debugger/gui -Isrc/yacc -Isrc/cheat -Isrc/httplib -c src/emucore/Paddles.cxx -o out/src/emucore/Paddles.o In file included from src/emucore/Paddles.cxx:20: In file included from src/emucore/Event.hxx:24: src/common/bspf.hxx:245:37: warning: unsafe pointer arithmetic [-Wunsafe-buffer-usage] const auto pos = std::search(s1.cbegin()+startpos, s1.cend(), ~~~^~~~~~~~ src/common/bspf.hxx:249:56: warning: unsafe pointer arithmetic [-Wunsafe-buffer-usage] return pos == s1.cend() ? string::npos : pos - (s1.cbegin()+startpos); ~~~^~~~~~~~ 2 warnings generated. mkdir -p -p src/emucore/.deps mkdir -p -p out/src/emucore c++ -MMD -MF "src/emucore/.deps/PlusROM.d" -MQ "out/src/emucore/PlusROM.o" -MP -O2 -pipe -I/usr/X11R6/include -I/usr/local/include -x c++ -Wall -Wextra -Wno-unused-parameter -Wno-multichar -Wunused -Woverloaded-virtual -Wnon-virtual-dtor -std=c++17 -Weverything -Wno-c++98-compat-pedantic -Wno-unknown-warning-option -Wno-switch-enum -Wno-conversion -Wno-covered-switch-default -Wno-inconsistent-missing-destructor-override -Wno-float-equal -Wno-exit-time-destructors -Wno-global-constructors -Wno-weak-vtables -Wno-four-char-constants -Wno-padded -Wno-reserved-identifier -Wno-duplicate-enum -fomit-frame-pointer -DSDL_SUPPORT -D_GLIBCXX_USE_CXX11_ABI=1 -DUNIX -DBSPF_UNIX -DGUI_SUPPORT -DWINDOWED_SUPPORT -DSOUND_SUPPORT -DDEBUGGER_SUPPORT -DJOYSTICK_SUPPORT -DCHEATCODE_SUPPORT -DHTTP_LIB_SUPPORT -DPNG_SUPPORT -DZIP_SUPPORT -Isrc/emucore -Isrc/common -Isrc/common/tv_filters -Isrc/emucore/tia -Isrc/emucore/tia/frame-manager -Isrc/json -Isrc/common/repository/sqlite -I/usr/local/include -I/usr/local/include/SDL2 -I/usr/X11R6/include -D_REENTRANT -I/usr/X11R6/include -Isrc/unix -Isrc/gui -Isrc/debugger -Isrc/debugger/gui -Isrc/yacc -Isrc/cheat -Isrc/httplib -c src/emucore/PlusROM.cxx -o out/src/emucore/PlusROM.o In file included from src/emucore/PlusROM.cxx:23: src/common/bspf.hxx:245:37: warning: unsafe pointer arithmetic [-Wunsafe-buffer-usage] const auto pos = std::search(s1.cbegin()+startpos, s1.cend(), ~~~^~~~~~~~ src/common/bspf.hxx:249:56: warning: unsafe pointer arithmetic [-Wunsafe-buffer-usage] return pos == s1.cend() ? string::npos : pos - (s1.cbegin()+startpos); ~~~^~~~~~~~ src/emucore/PlusROM.cxx:175:75: warning: unsafe pointer arithmetic [-Wunsafe-buffer-usage] myResponse.size() > 1 ? reinterpret_cast(myResponse.data() + 1) : nullptr ~~~~~~~~~~~^~~~~~ src/emucore/PlusROM.cxx:480:40: warning: unsafe buffer access [-Wunsafe-buffer-usage] myRxBuffer[myRxWritePos++] = response[i]; ^~~~~~~~ 4 warnings generated. mkdir -p -p src/emucore/.deps mkdir -p -p out/src/emucore c++ -MMD -MF "src/emucore/.deps/PointingDevice.d" -MQ "out/src/emucore/PointingDevice.o" -MP -O2 -pipe -I/usr/X11R6/include -I/usr/local/include -x c++ -Wall -Wextra -Wno-unused-parameter -Wno-multichar -Wunused -Woverloaded-virtual -Wnon-virtual-dtor -std=c++17 -Weverything -Wno-c++98-compat-pedantic -Wno-unknown-warning-option -Wno-switch-enum -Wno-conversion -Wno-covered-switch-default -Wno-inconsistent-missing-destructor-override -Wno-float-equal -Wno-exit-time-destructors -Wno-global-constructors -Wno-weak-vtables -Wno-four-char-constants -Wno-padded -Wno-reserved-identifier -Wno-duplicate-enum -fomit-frame-pointer -DSDL_SUPPORT -D_GLIBCXX_USE_CXX11_ABI=1 -DUNIX -DBSPF_UNIX -DGUI_SUPPORT -DWINDOWED_SUPPORT -DSOUND_SUPPORT -DDEBUGGER_SUPPORT -DJOYSTICK_SUPPORT -DCHEATCODE_SUPPORT -DHTTP_LIB_SUPPORT -DPNG_SUPPORT -DZIP_SUPPORT -Isrc/emucore -Isrc/common -Isrc/common/tv_filters -Isrc/emucore/tia -Isrc/emucore/tia/frame-manager -Isrc/json -Isrc/common/repository/sqlite -I/usr/local/include -I/usr/local/include/SDL2 -I/usr/X11R6/include -D_REENTRANT -I/usr/X11R6/include -Isrc/unix -Isrc/gui -Isrc/debugger -Isrc/debugger/gui -Isrc/yacc -Isrc/cheat -Isrc/httplib -c src/emucore/PointingDevice.cxx -o out/src/emucore/PointingDevice.o In file included from src/emucore/PointingDevice.cxx:20: In file included from src/emucore/Control.hxx:28: src/common/bspf.hxx:245:37: warning: unsafe pointer arithmetic [-Wunsafe-buffer-usage] const auto pos = std::search(s1.cbegin()+startpos, s1.cend(), ~~~^~~~~~~~ src/common/bspf.hxx:249:56: warning: unsafe pointer arithmetic [-Wunsafe-buffer-usage] return pos == s1.cend() ? string::npos : pos - (s1.cbegin()+startpos); ~~~^~~~~~~~ In file included from src/emucore/PointingDevice.cxx:23: In file included from src/emucore/tia/TIA.hxx:37: src/emucore/tia/Missile.hxx:170:7: warning: unsafe buffer access [-Wunsafe-buffer-usage] if (myDecodes[myCounter] && !myResmp) { ^~~~~~~~~ src/emucore/tia/Missile.hxx:173:14: warning: unsafe buffer access [-Wunsafe-buffer-usage] myCopy = myDecodes[myCounter]; ^~~~~~~~~ In file included from src/emucore/PointingDevice.cxx:23: In file included from src/emucore/tia/TIA.hxx:38: src/emucore/tia/Player.hxx:186:7: warning: unsafe buffer access [-Wunsafe-buffer-usage] if (myDecodes[myCounter]) { ^~~~~~~~~ src/emucore/tia/Player.hxx:190:14: warning: unsafe buffer access [-Wunsafe-buffer-usage] myCopy = myDecodes[myCounter]; ^~~~~~~~~ 6 warnings generated. mkdir -p -p src/emucore/.deps mkdir -p -p out/src/emucore c++ -MMD -MF "src/emucore/.deps/ProfilingRunner.d" -MQ "out/src/emucore/ProfilingRunner.o" -MP -O2 -pipe -I/usr/X11R6/include -I/usr/local/include -x c++ -Wall -Wextra -Wno-unused-parameter -Wno-multichar -Wunused -Woverloaded-virtual -Wnon-virtual-dtor -std=c++17 -Weverything -Wno-c++98-compat-pedantic -Wno-unknown-warning-option -Wno-switch-enum -Wno-conversion -Wno-covered-switch-default -Wno-inconsistent-missing-destructor-override -Wno-float-equal -Wno-exit-time-destructors -Wno-global-constructors -Wno-weak-vtables -Wno-four-char-constants -Wno-padded -Wno-reserved-identifier -Wno-duplicate-enum -fomit-frame-pointer -DSDL_SUPPORT -D_GLIBCXX_USE_CXX11_ABI=1 -DUNIX -DBSPF_UNIX -DGUI_SUPPORT -DWINDOWED_SUPPORT -DSOUND_SUPPORT -DDEBUGGER_SUPPORT -DJOYSTICK_SUPPORT -DCHEATCODE_SUPPORT -DHTTP_LIB_SUPPORT -DPNG_SUPPORT -DZIP_SUPPORT -Isrc/emucore -Isrc/common -Isrc/common/tv_filters -Isrc/emucore/tia -Isrc/emucore/tia/frame-manager -Isrc/json -Isrc/common/repository/sqlite -I/usr/local/include -I/usr/local/include/SDL2 -I/usr/X11R6/include -D_REENTRANT -I/usr/X11R6/include -Isrc/unix -Isrc/gui -Isrc/debugger -Isrc/debugger/gui -Isrc/yacc -Isrc/cheat -Isrc/httplib -c src/emucore/ProfilingRunner.cxx -o out/src/emucore/ProfilingRunner.o In file included from src/emucore/ProfilingRunner.cxx:21: In file included from src/emucore/ProfilingRunner.hxx:21: src/common/bspf.hxx:245:37: warning: unsafe pointer arithmetic [-Wunsafe-buffer-usage] const auto pos = std::search(s1.cbegin()+startpos, s1.cend(), ~~~^~~~~~~~ src/common/bspf.hxx:249:56: warning: unsafe pointer arithmetic [-Wunsafe-buffer-usage] return pos == s1.cend() ? string::npos : pos - (s1.cbegin()+startpos); ~~~^~~~~~~~ In file included from src/emucore/ProfilingRunner.cxx:22: src/emucore/FSNode.hxx:513:31: warning: unsafe pointer arithmetic [-Wunsafe-buffer-usage] const char* cur = start + str.size() - 2; ~~~~~~^~~~~~~~~~~~ src/emucore/FSNode.hxx:512:19: warning: 'start' is an unsafe pointer used for buffer access [-Wunsafe-buffer-usage] const char* start = str.c_str(); ~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~ src/emucore/FSNode.hxx:513:25: note: used in pointer arithmetic here const char* cur = start + str.size() - 2; ^~~~~ src/emucore/FSNode.hxx:513:19: warning: 'cur' is an unsafe pointer used for buffer access [-Wunsafe-buffer-usage] const char* cur = start + str.size() - 2; ~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~ src/emucore/FSNode.hxx:516:11: note: used in pointer arithmetic here --cur; ^~~ src/emucore/FSNode.hxx:518:14: note: used in pointer arithmetic here return cur + 1; ^~~ In file included from src/emucore/ProfilingRunner.cxx:29: In file included from src/emucore/tia/TIA.hxx:37: src/emucore/tia/Missile.hxx:170:7: warning: unsafe buffer access [-Wunsafe-buffer-usage] if (myDecodes[myCounter] && !myResmp) { ^~~~~~~~~ src/emucore/tia/Missile.hxx:173:14: warning: unsafe buffer access [-Wunsafe-buffer-usage] myCopy = myDecodes[myCounter]; ^~~~~~~~~ In file included from src/emucore/ProfilingRunner.cxx:29: In file included from src/emucore/tia/TIA.hxx:38: src/emucore/tia/Player.hxx:186:7: warning: unsafe buffer access [-Wunsafe-buffer-usage] if (myDecodes[myCounter]) { ^~~~~~~~~ src/emucore/tia/Player.hxx:190:14: warning: unsafe buffer access [-Wunsafe-buffer-usage] myCopy = myDecodes[myCounter]; ^~~~~~~~~ src/emucore/ProfilingRunner.cxx:58:50: warning: 'argv' is an unsafe pointer used for buffer access [-Wunsafe-buffer-usage] ProfilingRunner::ProfilingRunner(int argc, char* argv[]) ~~~~~~^~~~~~ src/emucore/ProfilingRunner.cxx:64:18: note: used in buffer access here string arg = argv[i]; ^~~~ 10 warnings generated. mkdir -p -p src/emucore/.deps mkdir -p -p out/src/emucore c++ -MMD -MF "src/emucore/.deps/Props.d" -MQ "out/src/emucore/Props.o" -MP -O2 -pipe -I/usr/X11R6/include -I/usr/local/include -x c++ -Wall -Wextra -Wno-unused-parameter -Wno-multichar -Wunused -Woverloaded-virtual -Wnon-virtual-dtor -std=c++17 -Weverything -Wno-c++98-compat-pedantic -Wno-unknown-warning-option -Wno-switch-enum -Wno-conversion -Wno-covered-switch-default -Wno-inconsistent-missing-destructor-override -Wno-float-equal -Wno-exit-time-destructors -Wno-global-constructors -Wno-weak-vtables -Wno-four-char-constants -Wno-padded -Wno-reserved-identifier -Wno-duplicate-enum -fomit-frame-pointer -DSDL_SUPPORT -D_GLIBCXX_USE_CXX11_ABI=1 -DUNIX -DBSPF_UNIX -DGUI_SUPPORT -DWINDOWED_SUPPORT -DSOUND_SUPPORT -DDEBUGGER_SUPPORT -DJOYSTICK_SUPPORT -DCHEATCODE_SUPPORT -DHTTP_LIB_SUPPORT -DPNG_SUPPORT -DZIP_SUPPORT -Isrc/emucore -Isrc/common -Isrc/common/tv_filters -Isrc/emucore/tia -Isrc/emucore/tia/frame-manager -Isrc/json -Isrc/common/repository/sqlite -I/usr/local/include -I/usr/local/include/SDL2 -I/usr/X11R6/include -D_REENTRANT -I/usr/X11R6/include -Isrc/unix -Isrc/gui -Isrc/debugger -Isrc/debugger/gui -Isrc/yacc -Isrc/cheat -Isrc/httplib -c src/emucore/Props.cxx -o out/src/emucore/Props.o In file included from src/emucore/Props.cxx:20: In file included from src/emucore/Props.hxx:21: In file included from src/common/repository/KeyValueRepository.hxx:23: In file included from src/common/Variant.hxx:21: In file included from src/common/Rect.hxx:26: src/common/bspf.hxx:245:37: warning: unsafe pointer arithmetic [-Wunsafe-buffer-usage] const auto pos = std::search(s1.cbegin()+startpos, s1.cend(), ~~~^~~~~~~~ src/common/bspf.hxx:249:56: warning: unsafe pointer arithmetic [-Wunsafe-buffer-usage] return pos == s1.cend() ? string::npos : pos - (s1.cbegin()+startpos); ~~~^~~~~~~~ 2 warnings generated. mkdir -p -p src/emucore/.deps mkdir -p -p out/src/emucore c++ -MMD -MF "src/emucore/.deps/PropsSet.d" -MQ "out/src/emucore/PropsSet.o" -MP -O2 -pipe -I/usr/X11R6/include -I/usr/local/include -x c++ -Wall -Wextra -Wno-unused-parameter -Wno-multichar -Wunused -Woverloaded-virtual -Wnon-virtual-dtor -std=c++17 -Weverything -Wno-c++98-compat-pedantic -Wno-unknown-warning-option -Wno-switch-enum -Wno-conversion -Wno-covered-switch-default -Wno-inconsistent-missing-destructor-override -Wno-float-equal -Wno-exit-time-destructors -Wno-global-constructors -Wno-weak-vtables -Wno-four-char-constants -Wno-padded -Wno-reserved-identifier -Wno-duplicate-enum -fomit-frame-pointer -DSDL_SUPPORT -D_GLIBCXX_USE_CXX11_ABI=1 -DUNIX -DBSPF_UNIX -DGUI_SUPPORT -DWINDOWED_SUPPORT -DSOUND_SUPPORT -DDEBUGGER_SUPPORT -DJOYSTICK_SUPPORT -DCHEATCODE_SUPPORT -DHTTP_LIB_SUPPORT -DPNG_SUPPORT -DZIP_SUPPORT -Isrc/emucore -Isrc/common -Isrc/common/tv_filters -Isrc/emucore/tia -Isrc/emucore/tia/frame-manager -Isrc/json -Isrc/common/repository/sqlite -I/usr/local/include -I/usr/local/include/SDL2 -I/usr/X11R6/include -D_REENTRANT -I/usr/X11R6/include -Isrc/unix -Isrc/gui -Isrc/debugger -Isrc/debugger/gui -Isrc/yacc -Isrc/cheat -Isrc/httplib -c src/emucore/PropsSet.cxx -o out/src/emucore/PropsSet.o In file included from src/emucore/PropsSet.cxx:20: src/common/bspf.hxx:245:37: warning: unsafe pointer arithmetic [-Wunsafe-buffer-usage] const auto pos = std::search(s1.cbegin()+startpos, s1.cend(), ~~~^~~~~~~~ src/common/bspf.hxx:249:56: warning: unsafe pointer arithmetic [-Wunsafe-buffer-usage] return pos == s1.cend() ? string::npos : pos - (s1.cbegin()+startpos); ~~~^~~~~~~~ In file included from src/emucore/PropsSet.cxx:21: src/emucore/FSNode.hxx:513:31: warning: unsafe pointer arithmetic [-Wunsafe-buffer-usage] const char* cur = start + str.size() - 2; ~~~~~~^~~~~~~~~~~~ src/emucore/FSNode.hxx:512:19: warning: 'start' is an unsafe pointer used for buffer access [-Wunsafe-buffer-usage] const char* start = str.c_str(); ~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~ src/emucore/FSNode.hxx:513:25: note: used in pointer arithmetic here const char* cur = start + str.size() - 2; ^~~~~ src/emucore/FSNode.hxx:513:19: warning: 'cur' is an unsafe pointer used for buffer access [-Wunsafe-buffer-usage] const char* cur = start + str.size() - 2; ~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~ src/emucore/FSNode.hxx:516:11: note: used in pointer arithmetic here --cur; ^~~ src/emucore/FSNode.hxx:518:14: note: used in pointer arithmetic here return cur + 1; ^~~ 5 warnings generated. mkdir -p -p src/emucore/.deps mkdir -p -p out/src/emucore c++ -MMD -MF "src/emucore/.deps/QuadTari.d" -MQ "out/src/emucore/QuadTari.o" -MP -O2 -pipe -I/usr/X11R6/include -I/usr/local/include -x c++ -Wall -Wextra -Wno-unused-parameter -Wno-multichar -Wunused -Woverloaded-virtual -Wnon-virtual-dtor -std=c++17 -Weverything -Wno-c++98-compat-pedantic -Wno-unknown-warning-option -Wno-switch-enum -Wno-conversion -Wno-covered-switch-default -Wno-inconsistent-missing-destructor-override -Wno-float-equal -Wno-exit-time-destructors -Wno-global-constructors -Wno-weak-vtables -Wno-four-char-constants -Wno-padded -Wno-reserved-identifier -Wno-duplicate-enum -fomit-frame-pointer -DSDL_SUPPORT -D_GLIBCXX_USE_CXX11_ABI=1 -DUNIX -DBSPF_UNIX -DGUI_SUPPORT -DWINDOWED_SUPPORT -DSOUND_SUPPORT -DDEBUGGER_SUPPORT -DJOYSTICK_SUPPORT -DCHEATCODE_SUPPORT -DHTTP_LIB_SUPPORT -DPNG_SUPPORT -DZIP_SUPPORT -Isrc/emucore -Isrc/common -Isrc/common/tv_filters -Isrc/emucore/tia -Isrc/emucore/tia/frame-manager -Isrc/json -Isrc/common/repository/sqlite -I/usr/local/include -I/usr/local/include/SDL2 -I/usr/X11R6/include -D_REENTRANT -I/usr/X11R6/include -Isrc/unix -Isrc/gui -Isrc/debugger -Isrc/debugger/gui -Isrc/yacc -Isrc/cheat -Isrc/httplib -c src/emucore/QuadTari.cxx -o out/src/emucore/QuadTari.o In file included from src/emucore/QuadTari.cxx:18: In file included from src/emucore/OSystem.hxx:55: In file included from src/emucore/FSNode.hxx:23: src/common/bspf.hxx:245:37: warning: unsafe pointer arithmetic [-Wunsafe-buffer-usage] const auto pos = std::search(s1.cbegin()+startpos, s1.cend(), ~~~^~~~~~~~ src/common/bspf.hxx:249:56: warning: unsafe pointer arithmetic [-Wunsafe-buffer-usage] return pos == s1.cend() ? string::npos : pos - (s1.cbegin()+startpos); ~~~^~~~~~~~ In file included from src/emucore/QuadTari.cxx:18: In file included from src/emucore/OSystem.hxx:55: src/emucore/FSNode.hxx:513:31: warning: unsafe pointer arithmetic [-Wunsafe-buffer-usage] const char* cur = start + str.size() - 2; ~~~~~~^~~~~~~~~~~~ src/emucore/FSNode.hxx:512:19: warning: 'start' is an unsafe pointer used for buffer access [-Wunsafe-buffer-usage] const char* start = str.c_str(); ~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~ src/emucore/FSNode.hxx:513:25: note: used in pointer arithmetic here const char* cur = start + str.size() - 2; ^~~~~ src/emucore/FSNode.hxx:513:19: warning: 'cur' is an unsafe pointer used for buffer access [-Wunsafe-buffer-usage] const char* cur = start + str.size() - 2; ~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~ src/emucore/FSNode.hxx:518:14: note: used in pointer arithmetic here return cur + 1; ^~~ src/emucore/FSNode.hxx:516:11: note: used in pointer arithmetic here --cur; ^~~ In file included from src/emucore/QuadTari.cxx:19: In file included from src/emucore/EventHandler.hxx:38: In file included from src/common/PKeyboardHandler.hxx:30: In file included from src/common/KeyMap.hxx:24: In file included from src/common/StellaKeys.hxx:22: In file included from src/common/SDL_lib.hxx:34: In file included from /usr/local/include/SDL2/SDL.h:32: In file included from /usr/local/include/SDL2/SDL_main.h:25: /usr/local/include/SDL2/SDL_stdinc.h:544:13: warning: '_p' is an unsafe pointer used for buffer access [-Wunsafe-buffer-usage] Uint32 *_p = SDL_static_cast(Uint32 *, dst); ~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /usr/local/include/SDL2/SDL_stdinc.h:552:26: note: used in pointer arithmetic here case 2: *_p++ = _val; SDL_FALLTHROUGH; ^~ /usr/local/include/SDL2/SDL_stdinc.h:553:26: note: used in pointer arithmetic here case 1: *_p++ = _val; ^~ /usr/local/include/SDL2/SDL_stdinc.h:551:26: note: used in pointer arithmetic here case 3: *_p++ = _val; SDL_FALLTHROUGH; ^~ /usr/local/include/SDL2/SDL_stdinc.h:550:26: note: used in pointer arithmetic here case 0: do { *_p++ = _val; SDL_FALLTHROUGH; ^~ In file included from src/emucore/QuadTari.cxx:23: In file included from src/emucore/tia/TIA.hxx:37: src/emucore/tia/Missile.hxx:170:7: warning: unsafe buffer access [-Wunsafe-buffer-usage] if (myDecodes[myCounter] && !myResmp) { ^~~~~~~~~ src/emucore/tia/Missile.hxx:173:14: warning: unsafe buffer access [-Wunsafe-buffer-usage] myCopy = myDecodes[myCounter]; ^~~~~~~~~ In file included from src/emucore/QuadTari.cxx:23: In file included from src/emucore/tia/TIA.hxx:38: src/emucore/tia/Player.hxx:186:7: warning: unsafe buffer access [-Wunsafe-buffer-usage] if (myDecodes[myCounter]) { ^~~~~~~~~ src/emucore/tia/Player.hxx:190:14: warning: unsafe buffer access [-Wunsafe-buffer-usage] myCopy = myDecodes[myCounter]; ^~~~~~~~~ 10 warnings generated. mkdir -p -p src/emucore/.deps mkdir -p -p out/src/emucore c++ -MMD -MF "src/emucore/.deps/SaveKey.d" -MQ "out/src/emucore/SaveKey.o" -MP -O2 -pipe -I/usr/X11R6/include -I/usr/local/include -x c++ -Wall -Wextra -Wno-unused-parameter -Wno-multichar -Wunused -Woverloaded-virtual -Wnon-virtual-dtor -std=c++17 -Weverything -Wno-c++98-compat-pedantic -Wno-unknown-warning-option -Wno-switch-enum -Wno-conversion -Wno-covered-switch-default -Wno-inconsistent-missing-destructor-override -Wno-float-equal -Wno-exit-time-destructors -Wno-global-constructors -Wno-weak-vtables -Wno-four-char-constants -Wno-padded -Wno-reserved-identifier -Wno-duplicate-enum -fomit-frame-pointer -DSDL_SUPPORT -D_GLIBCXX_USE_CXX11_ABI=1 -DUNIX -DBSPF_UNIX -DGUI_SUPPORT -DWINDOWED_SUPPORT -DSOUND_SUPPORT -DDEBUGGER_SUPPORT -DJOYSTICK_SUPPORT -DCHEATCODE_SUPPORT -DHTTP_LIB_SUPPORT -DPNG_SUPPORT -DZIP_SUPPORT -Isrc/emucore -Isrc/common -Isrc/common/tv_filters -Isrc/emucore/tia -Isrc/emucore/tia/frame-manager -Isrc/json -Isrc/common/repository/sqlite -I/usr/local/include -I/usr/local/include/SDL2 -I/usr/X11R6/include -D_REENTRANT -I/usr/X11R6/include -Isrc/unix -Isrc/gui -Isrc/debugger -Isrc/debugger/gui -Isrc/yacc -Isrc/cheat -Isrc/httplib -c src/emucore/SaveKey.cxx -o out/src/emucore/SaveKey.o In file included from src/emucore/SaveKey.cxx:18: In file included from src/emucore/MT24LC256.hxx:23: In file included from src/emucore/Control.hxx:28: src/common/bspf.hxx:245:37: warning: unsafe pointer arithmetic [-Wunsafe-buffer-usage] const auto pos = std::search(s1.cbegin()+startpos, s1.cend(), ~~~^~~~~~~~ src/common/bspf.hxx:249:56: warning: unsafe pointer arithmetic [-Wunsafe-buffer-usage] return pos == s1.cend() ? string::npos : pos - (s1.cbegin()+startpos); ~~~^~~~~~~~ In file included from src/emucore/SaveKey.cxx:18: In file included from src/emucore/MT24LC256.hxx:24: src/emucore/FSNode.hxx:513:31: warning: unsafe pointer arithmetic [-Wunsafe-buffer-usage] const char* cur = start + str.size() - 2; ~~~~~~^~~~~~~~~~~~ src/emucore/FSNode.hxx:512:19: warning: 'start' is an unsafe pointer used for buffer access [-Wunsafe-buffer-usage] const char* start = str.c_str(); ~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~ src/emucore/FSNode.hxx:513:25: note: used in pointer arithmetic here const char* cur = start + str.size() - 2; ^~~~~ src/emucore/FSNode.hxx:513:19: warning: 'cur' is an unsafe pointer used for buffer access [-Wunsafe-buffer-usage] const char* cur = start + str.size() - 2; ~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~ src/emucore/FSNode.hxx:518:14: note: used in pointer arithmetic here return cur + 1; ^~~ src/emucore/FSNode.hxx:516:11: note: used in pointer arithmetic here --cur; ^~~ 5 warnings generated. mkdir -p -p src/emucore/.deps mkdir -p -p out/src/emucore c++ -MMD -MF "src/emucore/.deps/Serializer.d" -MQ "out/src/emucore/Serializer.o" -MP -O2 -pipe -I/usr/X11R6/include -I/usr/local/include -x c++ -Wall -Wextra -Wno-unused-parameter -Wno-multichar -Wunused -Woverloaded-virtual -Wnon-virtual-dtor -std=c++17 -Weverything -Wno-c++98-compat-pedantic -Wno-unknown-warning-option -Wno-switch-enum -Wno-conversion -Wno-covered-switch-default -Wno-inconsistent-missing-destructor-override -Wno-float-equal -Wno-exit-time-destructors -Wno-global-constructors -Wno-weak-vtables -Wno-four-char-constants -Wno-padded -Wno-reserved-identifier -Wno-duplicate-enum -fomit-frame-pointer -DSDL_SUPPORT -D_GLIBCXX_USE_CXX11_ABI=1 -DUNIX -DBSPF_UNIX -DGUI_SUPPORT -DWINDOWED_SUPPORT -DSOUND_SUPPORT -DDEBUGGER_SUPPORT -DJOYSTICK_SUPPORT -DCHEATCODE_SUPPORT -DHTTP_LIB_SUPPORT -DPNG_SUPPORT -DZIP_SUPPORT -Isrc/emucore -Isrc/common -Isrc/common/tv_filters -Isrc/emucore/tia -Isrc/emucore/tia/frame-manager -Isrc/json -Isrc/common/repository/sqlite -I/usr/local/include -I/usr/local/include/SDL2 -I/usr/X11R6/include -D_REENTRANT -I/usr/X11R6/include -Isrc/unix -Isrc/gui -Isrc/debugger -Isrc/debugger/gui -Isrc/yacc -Isrc/cheat -Isrc/httplib -c src/emucore/Serializer.cxx -o out/src/emucore/Serializer.o In file included from src/emucore/Serializer.cxx:18: In file included from src/emucore/FSNode.hxx:23: src/common/bspf.hxx:245:37: warning: unsafe pointer arithmetic [-Wunsafe-buffer-usage] const auto pos = std::search(s1.cbegin()+startpos, s1.cend(), ~~~^~~~~~~~ src/common/bspf.hxx:249:56: warning: unsafe pointer arithmetic [-Wunsafe-buffer-usage] return pos == s1.cend() ? string::npos : pos - (s1.cbegin()+startpos); ~~~^~~~~~~~ In file included from src/emucore/Serializer.cxx:18: src/emucore/FSNode.hxx:513:31: warning: unsafe pointer arithmetic [-Wunsafe-buffer-usage] const char* cur = start + str.size() - 2; ~~~~~~^~~~~~~~~~~~ src/emucore/FSNode.hxx:512:19: warning: 'start' is an unsafe pointer used for buffer access [-Wunsafe-buffer-usage] const char* start = str.c_str(); ~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~ src/emucore/FSNode.hxx:513:25: note: used in pointer arithmetic here const char* cur = start + str.size() - 2; ^~~~~ src/emucore/FSNode.hxx:513:19: warning: 'cur' is an unsafe pointer used for buffer access [-Wunsafe-buffer-usage] const char* cur = start + str.size() - 2; ~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~ src/emucore/FSNode.hxx:516:11: note: used in pointer arithmetic here --cur; ^~~ src/emucore/FSNode.hxx:518:14: note: used in pointer arithmetic here return cur + 1; ^~~ 5 warnings generated. mkdir -p -p src/emucore/.deps mkdir -p -p out/src/emucore c++ -MMD -MF "src/emucore/.deps/Settings.d" -MQ "out/src/emucore/Settings.o" -MP -O2 -pipe -I/usr/X11R6/include -I/usr/local/include -x c++ -Wall -Wextra -Wno-unused-parameter -Wno-multichar -Wunused -Woverloaded-virtual -Wnon-virtual-dtor -std=c++17 -Weverything -Wno-c++98-compat-pedantic -Wno-unknown-warning-option -Wno-switch-enum -Wno-conversion -Wno-covered-switch-default -Wno-inconsistent-missing-destructor-override -Wno-float-equal -Wno-exit-time-destructors -Wno-global-constructors -Wno-weak-vtables -Wno-four-char-constants -Wno-padded -Wno-reserved-identifier -Wno-duplicate-enum -fomit-frame-pointer -DSDL_SUPPORT -D_GLIBCXX_USE_CXX11_ABI=1 -DUNIX -DBSPF_UNIX -DGUI_SUPPORT -DWINDOWED_SUPPORT -DSOUND_SUPPORT -DDEBUGGER_SUPPORT -DJOYSTICK_SUPPORT -DCHEATCODE_SUPPORT -DHTTP_LIB_SUPPORT -DPNG_SUPPORT -DZIP_SUPPORT -Isrc/emucore -Isrc/common -Isrc/common/tv_filters -Isrc/emucore/tia -Isrc/emucore/tia/frame-manager -Isrc/json -Isrc/common/repository/sqlite -I/usr/local/include -I/usr/local/include/SDL2 -I/usr/X11R6/include -D_REENTRANT -I/usr/X11R6/include -Isrc/unix -Isrc/gui -Isrc/debugger -Isrc/debugger/gui -Isrc/yacc -Isrc/cheat -Isrc/httplib -c src/emucore/Settings.cxx -o out/src/emucore/Settings.o In file included from src/emucore/Settings.cxx:18: src/common/bspf.hxx:245:37: warning: unsafe pointer arithmetic [-Wunsafe-buffer-usage] const auto pos = std::search(s1.cbegin()+startpos, s1.cend(), ~~~^~~~~~~~ src/common/bspf.hxx:249:56: warning: unsafe pointer arithmetic [-Wunsafe-buffer-usage] return pos == s1.cend() ? string::npos : pos - (s1.cbegin()+startpos); ~~~^~~~~~~~ In file included from src/emucore/Settings.cxx:20: In file included from src/emucore/OSystem.hxx:55: src/emucore/FSNode.hxx:513:31: warning: unsafe pointer arithmetic [-Wunsafe-buffer-usage] const char* cur = start + str.size() - 2; ~~~~~~^~~~~~~~~~~~ src/emucore/FSNode.hxx:512:19: warning: 'start' is an unsafe pointer used for buffer access [-Wunsafe-buffer-usage] const char* start = str.c_str(); ~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~ src/emucore/FSNode.hxx:513:25: note: used in pointer arithmetic here const char* cur = start + str.size() - 2; ^~~~~ src/emucore/FSNode.hxx:513:19: warning: 'cur' is an unsafe pointer used for buffer access [-Wunsafe-buffer-usage] const char* cur = start + str.size() - 2; ~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~ src/emucore/FSNode.hxx:518:14: note: used in pointer arithmetic here return cur + 1; ^~~ src/emucore/FSNode.hxx:516:11: note: used in pointer arithmetic here --cur; ^~~ In file included from src/emucore/Settings.cxx:24: In file included from src/emucore/TIASurface.hxx:31: In file included from src/common/tv_filters/NTSCFilter.hxx:25: src/common/tv_filters/AtariNTSC.hxx:238:22: warning: 'to_rgb' is an unsafe pointer used for buffer access [-Wunsafe-buffer-usage] const float* to_rgb, int& ir, int& ig, int& ib) { ~~~~~~~~~~~~~^~~~~~ src/common/tv_filters/AtariNTSC.hxx:239:49: note: used in buffer access here ir = static_cast(y + to_rgb[0] * i + to_rgb[1] * q); ^~~~~~ src/common/tv_filters/AtariNTSC.hxx:241:49: note: used in buffer access here ib = static_cast(y + to_rgb[4] * i + to_rgb[5] * q); ^~~~~~ src/common/tv_filters/AtariNTSC.hxx:240:33: note: used in buffer access here ig = static_cast(y + to_rgb[2] * i + to_rgb[3] * q); ^~~~~~ src/common/tv_filters/AtariNTSC.hxx:240:49: note: used in buffer access here ig = static_cast(y + to_rgb[2] * i + to_rgb[3] * q); ^~~~~~ src/common/tv_filters/AtariNTSC.hxx:241:33: note: used in buffer access here ib = static_cast(y + to_rgb[4] * i + to_rgb[5] * q); ^~~~~~ In file included from src/emucore/Settings.cxx:33: In file included from src/debugger/gui/DebuggerDialog.hxx:46: In file included from src/gui/Dialog.hxx:31: In file included from src/gui/Widget.hxx:33: In file included from src/common/StellaKeys.hxx:22: In file included from src/common/SDL_lib.hxx:34: In file included from /usr/local/include/SDL2/SDL.h:32: In file included from /usr/local/include/SDL2/SDL_main.h:25: /usr/local/include/SDL2/SDL_stdinc.h:544:13: warning: '_p' is an unsafe pointer used for buffer access [-Wunsafe-buffer-usage] Uint32 *_p = SDL_static_cast(Uint32 *, dst); ~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /usr/local/include/SDL2/SDL_stdinc.h:551:26: note: used in pointer arithmetic here case 3: *_p++ = _val; SDL_FALLTHROUGH; ^~ /usr/local/include/SDL2/SDL_stdinc.h:552:26: note: used in pointer arithmetic here case 2: *_p++ = _val; SDL_FALLTHROUGH; ^~ /usr/local/include/SDL2/SDL_stdinc.h:553:26: note: used in pointer arithmetic here case 1: *_p++ = _val; ^~ /usr/local/include/SDL2/SDL_stdinc.h:550:26: note: used in pointer arithmetic here case 0: do { *_p++ = _val; SDL_FALLTHROUGH; ^~ 7 warnings generated. mkdir -p -p src/emucore/.deps mkdir -p -p out/src/emucore c++ -MMD -MF "src/emucore/.deps/Switches.d" -MQ "out/src/emucore/Switches.o" -MP -O2 -pipe -I/usr/X11R6/include -I/usr/local/include -x c++ -Wall -Wextra -Wno-unused-parameter -Wno-multichar -Wunused -Woverloaded-virtual -Wnon-virtual-dtor -std=c++17 -Weverything -Wno-c++98-compat-pedantic -Wno-unknown-warning-option -Wno-switch-enum -Wno-conversion -Wno-covered-switch-default -Wno-inconsistent-missing-destructor-override -Wno-float-equal -Wno-exit-time-destructors -Wno-global-constructors -Wno-weak-vtables -Wno-four-char-constants -Wno-padded -Wno-reserved-identifier -Wno-duplicate-enum -fomit-frame-pointer -DSDL_SUPPORT -D_GLIBCXX_USE_CXX11_ABI=1 -DUNIX -DBSPF_UNIX -DGUI_SUPPORT -DWINDOWED_SUPPORT -DSOUND_SUPPORT -DDEBUGGER_SUPPORT -DJOYSTICK_SUPPORT -DCHEATCODE_SUPPORT -DHTTP_LIB_SUPPORT -DPNG_SUPPORT -DZIP_SUPPORT -Isrc/emucore -Isrc/common -Isrc/common/tv_filters -Isrc/emucore/tia -Isrc/emucore/tia/frame-manager -Isrc/json -Isrc/common/repository/sqlite -I/usr/local/include -I/usr/local/include/SDL2 -I/usr/X11R6/include -D_REENTRANT -I/usr/X11R6/include -Isrc/unix -Isrc/gui -Isrc/debugger -Isrc/debugger/gui -Isrc/yacc -Isrc/cheat -Isrc/httplib -c src/emucore/Switches.cxx -o out/src/emucore/Switches.o In file included from src/emucore/Switches.cxx:18: In file included from src/emucore/Event.hxx:24: src/common/bspf.hxx:245:37: warning: unsafe pointer arithmetic [-Wunsafe-buffer-usage] const auto pos = std::search(s1.cbegin()+startpos, s1.cend(), ~~~^~~~~~~~ src/common/bspf.hxx:249:56: warning: unsafe pointer arithmetic [-Wunsafe-buffer-usage] return pos == s1.cend() ? string::npos : pos - (s1.cbegin()+startpos); ~~~^~~~~~~~ 2 warnings generated. mkdir -p -p src/emucore/.deps mkdir -p -p out/src/emucore c++ -MMD -MF "src/emucore/.deps/System.d" -MQ "out/src/emucore/System.o" -MP -O2 -pipe -I/usr/X11R6/include -I/usr/local/include -x c++ -Wall -Wextra -Wno-unused-parameter -Wno-multichar -Wunused -Woverloaded-virtual -Wnon-virtual-dtor -std=c++17 -Weverything -Wno-c++98-compat-pedantic -Wno-unknown-warning-option -Wno-switch-enum -Wno-conversion -Wno-covered-switch-default -Wno-inconsistent-missing-destructor-override -Wno-float-equal -Wno-exit-time-destructors -Wno-global-constructors -Wno-weak-vtables -Wno-four-char-constants -Wno-padded -Wno-reserved-identifier -Wno-duplicate-enum -fomit-frame-pointer -DSDL_SUPPORT -D_GLIBCXX_USE_CXX11_ABI=1 -DUNIX -DBSPF_UNIX -DGUI_SUPPORT -DWINDOWED_SUPPORT -DSOUND_SUPPORT -DDEBUGGER_SUPPORT -DJOYSTICK_SUPPORT -DCHEATCODE_SUPPORT -DHTTP_LIB_SUPPORT -DPNG_SUPPORT -DZIP_SUPPORT -Isrc/emucore -Isrc/common -Isrc/common/tv_filters -Isrc/emucore/tia -Isrc/emucore/tia/frame-manager -Isrc/json -Isrc/common/repository/sqlite -I/usr/local/include -I/usr/local/include/SDL2 -I/usr/X11R6/include -D_REENTRANT -I/usr/X11R6/include -Isrc/unix -Isrc/gui -Isrc/debugger -Isrc/debugger/gui -Isrc/yacc -Isrc/cheat -Isrc/httplib -c src/emucore/System.cxx -o out/src/emucore/System.o In file included from src/emucore/System.cxx:21: In file included from src/emucore/Device.hxx:23: src/common/bspf.hxx:245:37: warning: unsafe pointer arithmetic [-Wunsafe-buffer-usage] const auto pos = std::search(s1.cbegin()+startpos, s1.cend(), ~~~^~~~~~~~ src/common/bspf.hxx:249:56: warning: unsafe pointer arithmetic [-Wunsafe-buffer-usage] return pos == s1.cend() ? string::npos : pos - (s1.cbegin()+startpos); ~~~^~~~~~~~ In file included from src/emucore/System.cxx:24: In file included from src/emucore/tia/TIA.hxx:37: src/emucore/tia/Missile.hxx:170:7: warning: unsafe buffer access [-Wunsafe-buffer-usage] if (myDecodes[myCounter] && !myResmp) { ^~~~~~~~~ src/emucore/tia/Missile.hxx:173:14: warning: unsafe buffer access [-Wunsafe-buffer-usage] myCopy = myDecodes[myCounter]; ^~~~~~~~~ In file included from src/emucore/System.cxx:24: In file included from src/emucore/tia/TIA.hxx:38: src/emucore/tia/Player.hxx:186:7: warning: unsafe buffer access [-Wunsafe-buffer-usage] if (myDecodes[myCounter]) { ^~~~~~~~~ src/emucore/tia/Player.hxx:190:14: warning: unsafe buffer access [-Wunsafe-buffer-usage] myCopy = myDecodes[myCounter]; ^~~~~~~~~ src/emucore/System.cxx:109:7: warning: unsafe pointer arithmetic [-Wunsafe-buffer-usage] *(access.romAccessBase + (addr & PAGE_MASK)) |= (flags | (addr & Device::HADDR)); ^~~~~~~~~~~~~~~~~~~~ src/emucore/System.cxx:116:9: warning: unsafe pointer arithmetic [-Wunsafe-buffer-usage] *(access.romPeekCounter + (addr & PAGE_MASK)) += 1; ^~~~~~~~~~~~~~~~~~~~~ src/emucore/System.cxx:124:11: warning: unsafe pointer arithmetic [-Wunsafe-buffer-usage] ? *(access.directPeekBase + (addr & PAGE_MASK)) ^~~~~~~~~~~~~~~~~~~~~ src/emucore/System.cxx:144:7: warning: unsafe pointer arithmetic [-Wunsafe-buffer-usage] *(access.romAccessBase + (addr & PAGE_MASK)) |= (flags | (addr & Device::HADDR)); ^~~~~~~~~~~~~~~~~~~~ src/emucore/System.cxx:151:9: warning: unsafe pointer arithmetic [-Wunsafe-buffer-usage] *(access.romPokeCounter + (addr & PAGE_MASK)) += 1; ^~~~~~~~~~~~~~~~~~~~~ src/emucore/System.cxx:161:7: warning: unsafe pointer arithmetic [-Wunsafe-buffer-usage] *(access.directPokeBase + (addr & PAGE_MASK)) = value; ^~~~~~~~~~~~~~~~~~~~~ src/emucore/System.cxx:183:14: warning: unsafe pointer arithmetic [-Wunsafe-buffer-usage] return *(access.romAccessBase + (addr & PAGE_MASK)); ^~~~~~~~~~~~~~~~~~~~ src/emucore/System.cxx:194:7: warning: unsafe pointer arithmetic [-Wunsafe-buffer-usage] *(access.romAccessBase + (addr & PAGE_MASK)) |= (flags | (addr & Device::HADDR)); ^~~~~~~~~~~~~~~~~~~~ src/emucore/System.cxx:209:9: warning: unsafe pointer arithmetic [-Wunsafe-buffer-usage] *(access.romPokeCounter + (addr & PAGE_MASK)) += 1; ^~~~~~~~~~~~~~~~~~~~~ src/emucore/System.cxx:217:9: warning: unsafe pointer arithmetic [-Wunsafe-buffer-usage] *(access.romPeekCounter + (addr & PAGE_MASK)) += 1; ^~~~~~~~~~~~~~~~~~~~~ 16 warnings generated. mkdir -p -p src/emucore/.deps mkdir -p -p out/src/emucore c++ -MMD -MF "src/emucore/.deps/TIASurface.d" -MQ "out/src/emucore/TIASurface.o" -MP -O2 -pipe -I/usr/X11R6/include -I/usr/local/include -x c++ -Wall -Wextra -Wno-unused-parameter -Wno-multichar -Wunused -Woverloaded-virtual -Wnon-virtual-dtor -std=c++17 -Weverything -Wno-c++98-compat-pedantic -Wno-unknown-warning-option -Wno-switch-enum -Wno-conversion -Wno-covered-switch-default -Wno-inconsistent-missing-destructor-override -Wno-float-equal -Wno-exit-time-destructors -Wno-global-constructors -Wno-weak-vtables -Wno-four-char-constants -Wno-padded -Wno-reserved-identifier -Wno-duplicate-enum -fomit-frame-pointer -DSDL_SUPPORT -D_GLIBCXX_USE_CXX11_ABI=1 -DUNIX -DBSPF_UNIX -DGUI_SUPPORT -DWINDOWED_SUPPORT -DSOUND_SUPPORT -DDEBUGGER_SUPPORT -DJOYSTICK_SUPPORT -DCHEATCODE_SUPPORT -DHTTP_LIB_SUPPORT -DPNG_SUPPORT -DZIP_SUPPORT -Isrc/emucore -Isrc/common -Isrc/common/tv_filters -Isrc/emucore/tia -Isrc/emucore/tia/frame-manager -Isrc/json -Isrc/common/repository/sqlite -I/usr/local/include -I/usr/local/include/SDL2 -I/usr/X11R6/include -D_REENTRANT -I/usr/X11R6/include -Isrc/unix -Isrc/gui -Isrc/debugger -Isrc/debugger/gui -Isrc/yacc -Isrc/cheat -Isrc/httplib -c src/emucore/TIASurface.cxx -o out/src/emucore/TIASurface.o In file included from src/emucore/TIASurface.cxx:20: In file included from src/emucore/FBSurface.hxx:31: In file included from src/emucore/FrameBufferConstants.hxx:21: In file included from src/emucore/tia/TIAConstants.hxx:21: src/common/bspf.hxx:245:37: warning: unsafe pointer arithmetic [-Wunsafe-buffer-usage] const auto pos = std::search(s1.cbegin()+startpos, s1.cend(), ~~~^~~~~~~~ src/common/bspf.hxx:249:56: warning: unsafe pointer arithmetic [-Wunsafe-buffer-usage] return pos == s1.cend() ? string::npos : pos - (s1.cbegin()+startpos); ~~~^~~~~~~~ In file included from src/emucore/TIASurface.cxx:22: In file included from src/emucore/OSystem.hxx:55: src/emucore/FSNode.hxx:513:31: warning: unsafe pointer arithmetic [-Wunsafe-buffer-usage] const char* cur = start + str.size() - 2; ~~~~~~^~~~~~~~~~~~ src/emucore/FSNode.hxx:512:19: warning: 'start' is an unsafe pointer used for buffer access [-Wunsafe-buffer-usage] const char* start = str.c_str(); ~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~ src/emucore/FSNode.hxx:513:25: note: used in pointer arithmetic here const char* cur = start + str.size() - 2; ^~~~~ src/emucore/FSNode.hxx:513:19: warning: 'cur' is an unsafe pointer used for buffer access [-Wunsafe-buffer-usage] const char* cur = start + str.size() - 2; ~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~ src/emucore/FSNode.hxx:516:11: note: used in pointer arithmetic here --cur; ^~~ src/emucore/FSNode.hxx:518:14: note: used in pointer arithmetic here return cur + 1; ^~~ In file included from src/emucore/TIASurface.cxx:24: In file included from src/emucore/tia/TIA.hxx:37: src/emucore/tia/Missile.hxx:170:7: warning: unsafe buffer access [-Wunsafe-buffer-usage] if (myDecodes[myCounter] && !myResmp) { ^~~~~~~~~ src/emucore/tia/Missile.hxx:173:14: warning: unsafe buffer access [-Wunsafe-buffer-usage] myCopy = myDecodes[myCounter]; ^~~~~~~~~ In file included from src/emucore/TIASurface.cxx:24: In file included from src/emucore/tia/TIA.hxx:38: src/emucore/tia/Player.hxx:186:7: warning: unsafe buffer access [-Wunsafe-buffer-usage] if (myDecodes[myCounter]) { ^~~~~~~~~ src/emucore/tia/Player.hxx:190:14: warning: unsafe buffer access [-Wunsafe-buffer-usage] myCopy = myDecodes[myCounter]; ^~~~~~~~~ In file included from src/emucore/TIASurface.cxx:27: In file included from src/emucore/TIASurface.hxx:31: In file included from src/common/tv_filters/NTSCFilter.hxx:25: src/common/tv_filters/AtariNTSC.hxx:238:22: warning: 'to_rgb' is an unsafe pointer used for buffer access [-Wunsafe-buffer-usage] const float* to_rgb, int& ir, int& ig, int& ib) { ~~~~~~~~~~~~~^~~~~~ src/common/tv_filters/AtariNTSC.hxx:240:49: note: used in buffer access here ig = static_cast(y + to_rgb[2] * i + to_rgb[3] * q); ^~~~~~ src/common/tv_filters/AtariNTSC.hxx:240:33: note: used in buffer access here ig = static_cast(y + to_rgb[2] * i + to_rgb[3] * q); ^~~~~~ src/common/tv_filters/AtariNTSC.hxx:239:49: note: used in buffer access here ir = static_cast(y + to_rgb[0] * i + to_rgb[1] * q); ^~~~~~ src/common/tv_filters/AtariNTSC.hxx:241:49: note: used in buffer access here ib = static_cast(y + to_rgb[4] * i + to_rgb[5] * q); ^~~~~~ src/common/tv_filters/AtariNTSC.hxx:241:33: note: used in buffer access here ib = static_cast(y + to_rgb[4] * i + to_rgb[5] * q); ^~~~~~ src/emucore/TIASurface.cxx:143:55: warning: unsafe pointer arithmetic [-Wunsafe-buffer-usage] *buf_ptr++ = myPalette[*(myTIA->frameBuffer() + y * tiaw + x / 2)]; ~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~ src/emucore/TIASurface.cxx:143:41: warning: unsafe pointer arithmetic [-Wunsafe-buffer-usage] *buf_ptr++ = myPalette[*(myTIA->frameBuffer() + y * tiaw + x / 2)]; ~~~~~~~^~~~~~~~~~~~~ src/emucore/TIASurface.cxx:138:11: warning: 'buf_ptr' is an unsafe pointer used for buffer access [-Wunsafe-buffer-usage] uInt32 *buf_ptr, pitch; ~~~~~~~~^~~~~~~ src/emucore/TIASurface.cxx:143:10: note: used in pointer arithmetic here *buf_ptr++ = myPalette[*(myTIA->frameBuffer() + y * tiaw + x / 2)]; ^~~~~~~ src/emucore/TIASurface.cxx:177:32: warning: 'PRESETS' is an unsafe buffer that does not perform bounds checks [-Wunsafe-buffer-usage] constexpr NTSCFilter::Preset PRESETS[] = { ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~ src/emucore/TIASurface.cxx:197:11: note: used in buffer access here setNTSC(PRESETS[preset], true); ^~~~~~~ src/emucore/TIASurface.cxx:260:16: warning: 'Masks' is an unsafe buffer that does not perform bounds checks [-Wunsafe-buffer-usage] const string Masks[int(ScanlineMask::NumMasks)] = { ~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ src/emucore/TIASurface.cxx:277:54: note: used in buffer access here myOSystem.settings().setValue("tv.scanmask", Masks[i]); ^~~~~ src/emucore/TIASurface.cxx:289:16: warning: 'Names' is an unsafe buffer that does not perform bounds checks [-Wunsafe-buffer-usage] const string Names[int(ScanlineMask::NumMasks)] = { ~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ src/emucore/TIASurface.cxx:303:31: note: used in buffer access here msg << "Scanline data '" << Names[i] << "'"; ^~~~~ src/emucore/TIASurface.cxx:522:11: warning: 'out' is an unsafe pointer used for buffer access [-Wunsafe-buffer-usage] uInt32 *out, outPitch; ~~~~~~~~^~~ src/emucore/TIASurface.cxx:537:11: note: used in buffer access here out[pos++] = myPalette[tiaIn[bufofs++]]; ^~~ src/emucore/TIASurface.cxx:538:11: note: used in buffer access here out[pos++] = myPalette[tiaIn[bufofs++]]; ^~~ src/emucore/TIASurface.cxx:561:27: note: used in buffer access here rgbIn[bufofs] = out[pos++] = PhosphorHandler::getPixel(myPalette[tiaIn[bufofs]], rgbIn[bufofs]); ^~~ src/emucore/TIASurface.cxx:563:27: note: used in buffer access here rgbIn[bufofs] = out[pos++] = PhosphorHandler::getPixel(myPalette[tiaIn[bufofs]], rgbIn[bufofs]); ^~~ src/emucore/TIASurface.cxx:529:20: warning: 'tiaIn' is an unsafe pointer used for buffer access [-Wunsafe-buffer-usage] const uInt8* tiaIn = myTIA->frameBuffer(); ~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~ src/emucore/TIASurface.cxx:537:34: note: used in buffer access here out[pos++] = myPalette[tiaIn[bufofs++]]; ^~~~~ src/emucore/TIASurface.cxx:538:34: note: used in buffer access here out[pos++] = myPalette[tiaIn[bufofs++]]; ^~~~~ src/emucore/TIASurface.cxx:547:20: warning: 'tiaIn' is an unsafe pointer used for buffer access [-Wunsafe-buffer-usage] const uInt8* tiaIn = myTIA->frameBuffer(); ~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~ src/emucore/TIASurface.cxx:561:76: note: used in buffer access here rgbIn[bufofs] = out[pos++] = PhosphorHandler::getPixel(myPalette[tiaIn[bufofs]], rgbIn[bufofs]); ^~~~~ src/emucore/TIASurface.cxx:563:76: note: used in buffer access here rgbIn[bufofs] = out[pos++] = PhosphorHandler::getPixel(myPalette[tiaIn[bufofs]], rgbIn[bufofs]); ^~~~~ src/emucore/TIASurface.cxx:548:15: warning: 'rgbIn' is an unsafe pointer used for buffer access [-Wunsafe-buffer-usage] uInt32* rgbIn = myRGBFramebuffer.data(); ~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ src/emucore/TIASurface.cxx:563:11: note: used in buffer access here rgbIn[bufofs] = out[pos++] = PhosphorHandler::getPixel(myPalette[tiaIn[bufofs]], rgbIn[bufofs]); ^~~~~ src/emucore/TIASurface.cxx:561:92: note: used in buffer access here rgbIn[bufofs] = out[pos++] = PhosphorHandler::getPixel(myPalette[tiaIn[bufofs]], rgbIn[bufofs]); ^~~~~ src/emucore/TIASurface.cxx:561:11: note: used in buffer access here rgbIn[bufofs] = out[pos++] = PhosphorHandler::getPixel(myPalette[tiaIn[bufofs]], rgbIn[bufofs]); ^~~~~ src/emucore/TIASurface.cxx:563:92: note: used in buffer access here rgbIn[bufofs] = out[pos++] = PhosphorHandler::getPixel(myPalette[tiaIn[bufofs]], rgbIn[bufofs]); ^~~~~ src/emucore/TIASurface.cxx:621:11: warning: 'outPtr' is an unsafe pointer used for buffer access [-Wunsafe-buffer-usage] uInt32 *outPtr, outPitch; ~~~~~~~~^~~~~~ src/emucore/TIASurface.cxx:655:11: note: used in buffer access here outPtr[pos++] = averageBuffers(bufofs++); ^~~~~~ src/emucore/TIASurface.cxx:644:11: note: used in buffer access here outPtr[pos++] = averageBuffers(bufofs++); ^~~~~~ src/emucore/TIASurface.cxx:643:11: note: used in buffer access here outPtr[pos++] = averageBuffers(bufofs++); ^~~~~~ 21 warnings generated. mkdir -p -p src/emucore/.deps mkdir -p -p out/src/emucore c++ -MMD -MF "src/emucore/.deps/Thumbulator.d" -MQ "out/src/emucore/Thumbulator.o" -MP -O2 -pipe -I/usr/X11R6/include -I/usr/local/include -x c++ -Wall -Wextra -Wno-unused-parameter -Wno-multichar -Wunused -Woverloaded-virtual -Wnon-virtual-dtor -std=c++17 -Weverything -Wno-c++98-compat-pedantic -Wno-unknown-warning-option -Wno-switch-enum -Wno-conversion -Wno-covered-switch-default -Wno-inconsistent-missing-destructor-override -Wno-float-equal -Wno-exit-time-destructors -Wno-global-constructors -Wno-weak-vtables -Wno-four-char-constants -Wno-padded -Wno-reserved-identifier -Wno-duplicate-enum -fomit-frame-pointer -DSDL_SUPPORT -D_GLIBCXX_USE_CXX11_ABI=1 -DUNIX -DBSPF_UNIX -DGUI_SUPPORT -DWINDOWED_SUPPORT -DSOUND_SUPPORT -DDEBUGGER_SUPPORT -DJOYSTICK_SUPPORT -DCHEATCODE_SUPPORT -DHTTP_LIB_SUPPORT -DPNG_SUPPORT -DZIP_SUPPORT -Isrc/emucore -Isrc/common -Isrc/common/tv_filters -Isrc/emucore/tia -Isrc/emucore/tia/frame-manager -Isrc/json -Isrc/common/repository/sqlite -I/usr/local/include -I/usr/local/include/SDL2 -I/usr/X11R6/include -D_REENTRANT -I/usr/X11R6/include -Isrc/unix -Isrc/gui -Isrc/debugger -Isrc/debugger/gui -Isrc/yacc -Isrc/cheat -Isrc/httplib -c src/emucore/Thumbulator.cxx -o out/src/emucore/Thumbulator.o In file included from src/emucore/Thumbulator.cxx:25: src/common/bspf.hxx:245:37: warning: unsafe pointer arithmetic [-Wunsafe-buffer-usage] const auto pos = std::search(s1.cbegin()+startpos, s1.cend(), ~~~^~~~~~~~ src/common/bspf.hxx:249:56: warning: unsafe pointer arithmetic [-Wunsafe-buffer-usage] return pos == s1.cend() ? string::npos : pos - (s1.cbegin()+startpos); ~~~^~~~~~~~ src/emucore/Thumbulator.cxx:143:55: warning: unsafe buffer access [-Wunsafe-buffer-usage] decodedRom[i] = decodeInstructionWord(CONV_RAMROM(rom[i])); ^~~ src/emucore/Thumbulator.cxx:52:27: note: expanded from macro 'CONV_RAMROM' #define CONV_RAMROM(d) (d) ^ src/emucore/Thumbulator.cxx:298:6: warning: unsafe buffer access [-Wunsafe-buffer-usage] if(_lastCycleType[2] == CycleType::I) ^~~~~~~~~~~~~~ src/emucore/Thumbulator.cxx:303:6: warning: unsafe buffer access [-Wunsafe-buffer-usage] if(_prefetchCycleType[_pipeIdx] == CycleType::S) ^~~~~~~~~~~~~~~~~~ src/emucore/Thumbulator.cxx:322:3: warning: unsafe buffer access [-Wunsafe-buffer-usage] _prefetchCycleType[_pipeIdx] = CycleType::S; // default ^~~~~~~~~~~~~~~~~~ src/emucore/Thumbulator.cxx:333:26: warning: unsafe buffer access [-Wunsafe-buffer-usage] data = CONV_RAMROM(rom[addr]); ^~~ src/emucore/Thumbulator.cxx:52:27: note: expanded from macro 'CONV_RAMROM' #define CONV_RAMROM(d) (d) ^ src/emucore/Thumbulator.cxx:340:26: warning: unsafe buffer access [-Wunsafe-buffer-usage] data = CONV_RAMROM(ram[addr]); ^~~ src/emucore/Thumbulator.cxx:52:27: note: expanded from macro 'CONV_RAMROM' #define CONV_RAMROM(d) (d) ^ src/emucore/Thumbulator.cxx:379:7: warning: unsafe buffer access [-Wunsafe-buffer-usage] ram[addr] = CONV_DATA(data); ^~~ src/emucore/Thumbulator.cxx:633:26: warning: unsafe buffer access [-Wunsafe-buffer-usage] data = CONV_RAMROM(rom[addr]); ^~~ src/emucore/Thumbulator.cxx:52:27: note: expanded from macro 'CONV_RAMROM' #define CONV_RAMROM(d) (d) ^ src/emucore/Thumbulator.cxx:644:26: warning: unsafe buffer access [-Wunsafe-buffer-usage] data = CONV_RAMROM(ram[addr]); ^~~ src/emucore/Thumbulator.cxx:52:27: note: expanded from macro 'CONV_RAMROM' #define CONV_RAMROM(d) (d) ^ src/emucore/Thumbulator.cxx:2505:7: warning: unsafe buffer access [-Wunsafe-buffer-usage] FETCH_TYPE_N; // ??? (copied from stmia) ^~~~~~~~~~~~ src/emucore/Thumbulator.cxx:100:5: note: expanded from macro 'FETCH_TYPE_N' _prefetchCycleType[_pipeIdx] = CycleType::N ^~~~~~~~~~~~~~~~~~ src/emucore/Thumbulator.cxx:2654:7: warning: unsafe buffer access [-Wunsafe-buffer-usage] FETCH_TYPE_N; ^~~~~~~~~~~~ src/emucore/Thumbulator.cxx:100:5: note: expanded from macro 'FETCH_TYPE_N' _prefetchCycleType[_pipeIdx] = CycleType::N ^~~~~~~~~~~~~~~~~~ src/emucore/Thumbulator.cxx:2668:7: warning: unsafe buffer access [-Wunsafe-buffer-usage] INC_STR_CYCLES; ^~~~~~~~~~~~~~ src/emucore/Thumbulator.cxx:87:5: note: expanded from macro 'INC_STR_CYCLES' FETCH_TYPE_N \ ^~~~~~~~~~~~ src/emucore/Thumbulator.cxx:100:5: note: expanded from macro 'FETCH_TYPE_N' _prefetchCycleType[_pipeIdx] = CycleType::N ^~~~~~~~~~~~~~~~~~ src/emucore/Thumbulator.cxx:2681:7: warning: unsafe buffer access [-Wunsafe-buffer-usage] INC_STR_CYCLES; ^~~~~~~~~~~~~~ src/emucore/Thumbulator.cxx:87:5: note: expanded from macro 'INC_STR_CYCLES' FETCH_TYPE_N \ ^~~~~~~~~~~~ src/emucore/Thumbulator.cxx:100:5: note: expanded from macro 'FETCH_TYPE_N' _prefetchCycleType[_pipeIdx] = CycleType::N ^~~~~~~~~~~~~~~~~~ src/emucore/Thumbulator.cxx:2695:7: warning: unsafe buffer access [-Wunsafe-buffer-usage] INC_STR_CYCLES; ^~~~~~~~~~~~~~ src/emucore/Thumbulator.cxx:87:5: note: expanded from macro 'INC_STR_CYCLES' FETCH_TYPE_N \ ^~~~~~~~~~~~ src/emucore/Thumbulator.cxx:100:5: note: expanded from macro 'FETCH_TYPE_N' _prefetchCycleType[_pipeIdx] = CycleType::N ^~~~~~~~~~~~~~~~~~ src/emucore/Thumbulator.cxx:2723:7: warning: unsafe buffer access [-Wunsafe-buffer-usage] INC_STRB_CYCLES; ^~~~~~~~~~~~~~~ src/emucore/Thumbulator.cxx:91:5: note: expanded from macro 'INC_STRB_CYCLES' FETCH_TYPE_N \ ^~~~~~~~~~~~ src/emucore/Thumbulator.cxx:100:5: note: expanded from macro 'FETCH_TYPE_N' _prefetchCycleType[_pipeIdx] = CycleType::N ^~~~~~~~~~~~~~~~~~ src/emucore/Thumbulator.cxx:2751:7: warning: unsafe buffer access [-Wunsafe-buffer-usage] INC_STRB_CYCLES; ^~~~~~~~~~~~~~~ src/emucore/Thumbulator.cxx:91:5: note: expanded from macro 'INC_STRB_CYCLES' FETCH_TYPE_N \ ^~~~~~~~~~~~ src/emucore/Thumbulator.cxx:100:5: note: expanded from macro 'FETCH_TYPE_N' _prefetchCycleType[_pipeIdx] = CycleType::N ^~~~~~~~~~~~~~~~~~ src/emucore/Thumbulator.cxx:2765:7: warning: unsafe buffer access [-Wunsafe-buffer-usage] INC_STR_CYCLES; ^~~~~~~~~~~~~~ src/emucore/Thumbulator.cxx:87:5: note: expanded from macro 'INC_STR_CYCLES' FETCH_TYPE_N \ ^~~~~~~~~~~~ src/emucore/Thumbulator.cxx:100:5: note: expanded from macro 'FETCH_TYPE_N' _prefetchCycleType[_pipeIdx] = CycleType::N ^~~~~~~~~~~~~~~~~~ src/emucore/Thumbulator.cxx:2778:7: warning: unsafe buffer access [-Wunsafe-buffer-usage] INC_STR_CYCLES; ^~~~~~~~~~~~~~ src/emucore/Thumbulator.cxx:87:5: note: expanded from macro 'INC_STR_CYCLES' FETCH_TYPE_N \ ^~~~~~~~~~~~ src/emucore/Thumbulator.cxx:100:5: note: expanded from macro 'FETCH_TYPE_N' _prefetchCycleType[_pipeIdx] = CycleType::N ^~~~~~~~~~~~~~~~~~ src/emucore/Thumbulator.cxx:3101:9: warning: unsafe buffer access [-Wunsafe-buffer-usage] _prefetchBufferAddr[bank ^ 1] = addr + 0x80; ^~~~~~~~~~~~~~~~~~~ src/emucore/Thumbulator.cxx:3102:20: warning: unsafe buffer access [-Wunsafe-buffer-usage] if(addr != _prefetchBufferAddr[bank] && addr != _branchBufferAddr[bank]) ^~~~~~~~~~~~~~~~~~~ src/emucore/Thumbulator.cxx:3102:57: warning: unsafe buffer access [-Wunsafe-buffer-usage] if(addr != _prefetchBufferAddr[bank] && addr != _branchBufferAddr[bank]) ^~~~~~~~~~~~~~~~~ src/emucore/Thumbulator.cxx:3107:11: warning: unsafe buffer access [-Wunsafe-buffer-usage] _prefetchBufferAddr[bank] = addr; ^~~~~~~~~~~~~~~~~~~ src/emucore/Thumbulator.cxx:3116:20: warning: unsafe buffer access [-Wunsafe-buffer-usage] if(addr != _prefetchBufferAddr[bank] && addr != _branchBufferAddr[bank]) ^~~~~~~~~~~~~~~~~~~ src/emucore/Thumbulator.cxx:3116:57: warning: unsafe buffer access [-Wunsafe-buffer-usage] if(addr != _prefetchBufferAddr[bank] && addr != _branchBufferAddr[bank]) ^~~~~~~~~~~~~~~~~ src/emucore/Thumbulator.cxx:3122:11: warning: unsafe buffer access [-Wunsafe-buffer-usage] _branchBufferAddr[bank] = addr; ^~~~~~~~~~~~~~~~~ src/emucore/Thumbulator.cxx:3123:11: warning: unsafe buffer access [-Wunsafe-buffer-usage] _branchBufferAddr[bank ^ 1] = addr + 0x80; ^~~~~~~~~~~~~~~~~ src/emucore/Thumbulator.cxx:3269:3: warning: unsafe buffer access [-Wunsafe-buffer-usage] _lastCycleType[2] = _lastCycleType[1]; ^~~~~~~~~~~~~~ src/emucore/Thumbulator.cxx:3269:23: warning: unsafe buffer access [-Wunsafe-buffer-usage] _lastCycleType[2] = _lastCycleType[1]; ^~~~~~~~~~~~~~ src/emucore/Thumbulator.cxx:3270:3: warning: unsafe buffer access [-Wunsafe-buffer-usage] _lastCycleType[1] = _lastCycleType[0]; ^~~~~~~~~~~~~~ src/emucore/Thumbulator.cxx:3280:8: warning: unsafe buffer access [-Wunsafe-buffer-usage] if(_lastCycleType[1] == CycleType::I || _lastCycleType[2] == CycleType::I) ^~~~~~~~~~~~~~ src/emucore/Thumbulator.cxx:3280:45: warning: unsafe buffer access [-Wunsafe-buffer-usage] if(_lastCycleType[1] == CycleType::I || _lastCycleType[2] == CycleType::I) ^~~~~~~~~~~~~~ src/emucore/Thumbulator.cxx:3281:5: warning: unsafe buffer access [-Wunsafe-buffer-usage] _lastCycleType[1] = _lastCycleType[2] = CycleType::S; ^~~~~~~~~~~~~~ src/emucore/Thumbulator.cxx:3281:25: warning: unsafe buffer access [-Wunsafe-buffer-usage] _lastCycleType[1] = _lastCycleType[2] = CycleType::S; ^~~~~~~~~~~~~~ src/emucore/Thumbulator.cxx:3310:3: warning: unsafe buffer access [-Wunsafe-buffer-usage] _lastCycleType[2] = _lastCycleType[1]; ^~~~~~~~~~~~~~ src/emucore/Thumbulator.cxx:3310:23: warning: unsafe buffer access [-Wunsafe-buffer-usage] _lastCycleType[2] = _lastCycleType[1]; ^~~~~~~~~~~~~~ src/emucore/Thumbulator.cxx:3311:3: warning: unsafe buffer access [-Wunsafe-buffer-usage] _lastCycleType[1] = _lastCycleType[0]; ^~~~~~~~~~~~~~ src/emucore/Thumbulator.cxx:3341:3: warning: unsafe buffer access [-Wunsafe-buffer-usage] _lastCycleType[2] = _lastCycleType[1]; ^~~~~~~~~~~~~~ src/emucore/Thumbulator.cxx:3341:23: warning: unsafe buffer access [-Wunsafe-buffer-usage] _lastCycleType[2] = _lastCycleType[1]; ^~~~~~~~~~~~~~ src/emucore/Thumbulator.cxx:3342:3: warning: unsafe buffer access [-Wunsafe-buffer-usage] _lastCycleType[1] = _lastCycleType[0]; ^~~~~~~~~~~~~~ src/emucore/Thumbulator.cxx:3362:8: warning: unsafe buffer access [-Wunsafe-buffer-usage] if(rom[i] == patternLo && rom[i + 1] == patternHi) ^~~ src/emucore/Thumbulator.cxx:3362:31: warning: unsafe buffer access [-Wunsafe-buffer-usage] if(rom[i] == patternLo && rom[i + 1] == patternHi) ^~~ 43 warnings generated. mkdir -p -p src/emucore/tia/.deps mkdir -p -p out/src/emucore/tia c++ -MMD -MF "src/emucore/tia/.deps/TIA.d" -MQ "out/src/emucore/tia/TIA.o" -MP -O2 -pipe -I/usr/X11R6/include -I/usr/local/include -x c++ -Wall -Wextra -Wno-unused-parameter -Wno-multichar -Wunused -Woverloaded-virtual -Wnon-virtual-dtor -std=c++17 -Weverything -Wno-c++98-compat-pedantic -Wno-unknown-warning-option -Wno-switch-enum -Wno-conversion -Wno-covered-switch-default -Wno-inconsistent-missing-destructor-override -Wno-float-equal -Wno-exit-time-destructors -Wno-global-constructors -Wno-weak-vtables -Wno-four-char-constants -Wno-padded -Wno-reserved-identifier -Wno-duplicate-enum -fomit-frame-pointer -DSDL_SUPPORT -D_GLIBCXX_USE_CXX11_ABI=1 -DUNIX -DBSPF_UNIX -DGUI_SUPPORT -DWINDOWED_SUPPORT -DSOUND_SUPPORT -DDEBUGGER_SUPPORT -DJOYSTICK_SUPPORT -DCHEATCODE_SUPPORT -DHTTP_LIB_SUPPORT -DPNG_SUPPORT -DZIP_SUPPORT -Isrc/emucore -Isrc/common -Isrc/common/tv_filters -Isrc/emucore/tia -Isrc/emucore/tia/frame-manager -Isrc/json -Isrc/common/repository/sqlite -I/usr/local/include -I/usr/local/include/SDL2 -I/usr/X11R6/include -D_REENTRANT -I/usr/X11R6/include -Isrc/unix -Isrc/gui -Isrc/debugger -Isrc/debugger/gui -Isrc/yacc -Isrc/cheat -Isrc/httplib -c src/emucore/tia/TIA.cxx -o out/src/emucore/tia/TIA.o In file included from src/emucore/tia/TIA.cxx:18: In file included from src/emucore/tia/TIA.hxx:23: src/common/bspf.hxx:245:37: warning: unsafe pointer arithmetic [-Wunsafe-buffer-usage] const auto pos = std::search(s1.cbegin()+startpos, s1.cend(), ~~~^~~~~~~~ src/common/bspf.hxx:249:56: warning: unsafe pointer arithmetic [-Wunsafe-buffer-usage] return pos == s1.cend() ? string::npos : pos - (s1.cbegin()+startpos); ~~~^~~~~~~~ In file included from src/emucore/tia/TIA.cxx:18: In file included from src/emucore/tia/TIA.hxx:37: src/emucore/tia/Missile.hxx:170:7: warning: unsafe buffer access [-Wunsafe-buffer-usage] if (myDecodes[myCounter] && !myResmp) { ^~~~~~~~~ src/emucore/tia/Missile.hxx:173:14: warning: unsafe buffer access [-Wunsafe-buffer-usage] myCopy = myDecodes[myCounter]; ^~~~~~~~~ In file included from src/emucore/tia/TIA.cxx:18: In file included from src/emucore/tia/TIA.hxx:38: src/emucore/tia/Player.hxx:186:7: warning: unsafe buffer access [-Wunsafe-buffer-usage] if (myDecodes[myCounter]) { ^~~~~~~~~ src/emucore/tia/Player.hxx:190:14: warning: unsafe buffer access [-Wunsafe-buffer-usage] myCopy = myDecodes[myCounter]; ^~~~~~~~~ src/emucore/tia/TIA.cxx:1395:30: warning: unsafe pointer arithmetic [-Wunsafe-buffer-usage] std::fill_n(myBackBuffer.begin() + TIAConstants::H_PIXEL * myFrameManager->getY(), missingScanlines * TIAConstants::H_PIXEL, 0); ~~~~~~~~~~~~~^~~~~~~ src/emucore/tia/TIA.cxx:1527:38: warning: unsafe pointer arithmetic [-Wunsafe-buffer-usage] std::fill_n(myBackBuffer.begin() + myFrameManager->getY() * TIAConstants::H_PIXEL + x, TIAConstants::H_PIXEL - x, 0); ~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ src/emucore/tia/TIA.cxx:1527:30: warning: unsafe pointer arithmetic [-Wunsafe-buffer-usage] std::fill_n(myBackBuffer.begin() + myFrameManager->getY() * TIAConstants::H_PIXEL + x, TIAConstants::H_PIXEL - x, 0); ~~~~~~~~~~~~~^~~~~~~ src/emucore/tia/TIA.cxx:1566:28: warning: unsafe pointer arithmetic [-Wunsafe-buffer-usage] std::copy_n(myBackBuffer.begin() + (y-1) * TIAConstants::H_PIXEL, TIAConstants::H_PIXEL, ~~~~~~~~~~~~~^~~~~~~ src/emucore/tia/TIA.cxx:1567:20: warning: unsafe pointer arithmetic [-Wunsafe-buffer-usage] myBackBuffer.begin() + y * TIAConstants::H_PIXEL); ~~~~~~~~~~~~~^~~~~~~ src/emucore/tia/TIA.cxx:1670:30: warning: unsafe pointer arithmetic [-Wunsafe-buffer-usage] std::fill_n(myBackBuffer.begin() + myFrameManager->getY() * TIAConstants::H_PIXEL, 8, myColorHBlank); ~~~~~~~~~~~~~^~~~~~~ 12 warnings generated. mkdir -p -p src/emucore/tia/.deps mkdir -p -p out/src/emucore/tia c++ -MMD -MF "src/emucore/tia/.deps/Playfield.d" -MQ "out/src/emucore/tia/Playfield.o" -MP -O2 -pipe -I/usr/X11R6/include -I/usr/local/include -x c++ -Wall -Wextra -Wno-unused-parameter -Wno-multichar -Wunused -Woverloaded-virtual -Wnon-virtual-dtor -std=c++17 -Weverything -Wno-c++98-compat-pedantic -Wno-unknown-warning-option -Wno-switch-enum -Wno-conversion -Wno-covered-switch-default -Wno-inconsistent-missing-destructor-override -Wno-float-equal -Wno-exit-time-destructors -Wno-global-constructors -Wno-weak-vtables -Wno-four-char-constants -Wno-padded -Wno-reserved-identifier -Wno-duplicate-enum -fomit-frame-pointer -DSDL_SUPPORT -D_GLIBCXX_USE_CXX11_ABI=1 -DUNIX -DBSPF_UNIX -DGUI_SUPPORT -DWINDOWED_SUPPORT -DSOUND_SUPPORT -DDEBUGGER_SUPPORT -DJOYSTICK_SUPPORT -DCHEATCODE_SUPPORT -DHTTP_LIB_SUPPORT -DPNG_SUPPORT -DZIP_SUPPORT -Isrc/emucore -Isrc/common -Isrc/common/tv_filters -Isrc/emucore/tia -Isrc/emucore/tia/frame-manager -Isrc/json -Isrc/common/repository/sqlite -I/usr/local/include -I/usr/local/include/SDL2 -I/usr/X11R6/include -D_REENTRANT -I/usr/X11R6/include -Isrc/unix -Isrc/gui -Isrc/debugger -Isrc/debugger/gui -Isrc/yacc -Isrc/cheat -Isrc/httplib -c src/emucore/tia/Playfield.cxx -o out/src/emucore/tia/Playfield.o In file included from src/emucore/tia/Playfield.cxx:18: In file included from src/emucore/tia/Playfield.hxx:23: src/common/bspf.hxx:245:37: warning: unsafe pointer arithmetic [-Wunsafe-buffer-usage] const auto pos = std::search(s1.cbegin()+startpos, s1.cend(), ~~~^~~~~~~~ src/common/bspf.hxx:249:56: warning: unsafe pointer arithmetic [-Wunsafe-buffer-usage] return pos == s1.cend() ? string::npos : pos - (s1.cbegin()+startpos); ~~~^~~~~~~~ In file included from src/emucore/tia/Playfield.cxx:19: In file included from src/emucore/tia/TIA.hxx:37: src/emucore/tia/Missile.hxx:170:7: warning: unsafe buffer access [-Wunsafe-buffer-usage] if (myDecodes[myCounter] && !myResmp) { ^~~~~~~~~ src/emucore/tia/Missile.hxx:173:14: warning: unsafe buffer access [-Wunsafe-buffer-usage] myCopy = myDecodes[myCounter]; ^~~~~~~~~ In file included from src/emucore/tia/Playfield.cxx:19: In file included from src/emucore/tia/TIA.hxx:38: src/emucore/tia/Player.hxx:186:7: warning: unsafe buffer access [-Wunsafe-buffer-usage] if (myDecodes[myCounter]) { ^~~~~~~~~ src/emucore/tia/Player.hxx:190:14: warning: unsafe buffer access [-Wunsafe-buffer-usage] myCopy = myDecodes[myCounter]; ^~~~~~~~~ 6 warnings generated. mkdir -p -p src/emucore/tia/.deps mkdir -p -p out/src/emucore/tia c++ -MMD -MF "src/emucore/tia/.deps/DrawCounterDecodes.d" -MQ "out/src/emucore/tia/DrawCounterDecodes.o" -MP -O2 -pipe -I/usr/X11R6/include -I/usr/local/include -x c++ -Wall -Wextra -Wno-unused-parameter -Wno-multichar -Wunused -Woverloaded-virtual -Wnon-virtual-dtor -std=c++17 -Weverything -Wno-c++98-compat-pedantic -Wno-unknown-warning-option -Wno-switch-enum -Wno-conversion -Wno-covered-switch-default -Wno-inconsistent-missing-destructor-override -Wno-float-equal -Wno-exit-time-destructors -Wno-global-constructors -Wno-weak-vtables -Wno-four-char-constants -Wno-padded -Wno-reserved-identifier -Wno-duplicate-enum -fomit-frame-pointer -DSDL_SUPPORT -D_GLIBCXX_USE_CXX11_ABI=1 -DUNIX -DBSPF_UNIX -DGUI_SUPPORT -DWINDOWED_SUPPORT -DSOUND_SUPPORT -DDEBUGGER_SUPPORT -DJOYSTICK_SUPPORT -DCHEATCODE_SUPPORT -DHTTP_LIB_SUPPORT -DPNG_SUPPORT -DZIP_SUPPORT -Isrc/emucore -Isrc/common -Isrc/common/tv_filters -Isrc/emucore/tia -Isrc/emucore/tia/frame-manager -Isrc/json -Isrc/common/repository/sqlite -I/usr/local/include -I/usr/local/include/SDL2 -I/usr/X11R6/include -D_REENTRANT -I/usr/X11R6/include -Isrc/unix -Isrc/gui -Isrc/debugger -Isrc/debugger/gui -Isrc/yacc -Isrc/cheat -Isrc/httplib -c src/emucore/tia/DrawCounterDecodes.cxx -o out/src/emucore/tia/DrawCounterDecodes.o In file included from src/emucore/tia/DrawCounterDecodes.cxx:18: In file included from src/emucore/tia/DrawCounterDecodes.hxx:21: src/common/bspf.hxx:245:37: warning: unsafe pointer arithmetic [-Wunsafe-buffer-usage] const auto pos = std::search(s1.cbegin()+startpos, s1.cend(), ~~~^~~~~~~~ src/common/bspf.hxx:249:56: warning: unsafe pointer arithmetic [-Wunsafe-buffer-usage] return pos == s1.cend() ? string::npos : pos - (s1.cbegin()+startpos); ~~~^~~~~~~~ src/emucore/tia/DrawCounterDecodes.cxx:49:3: warning: unsafe buffer access [-Wunsafe-buffer-usage] myDecodes1[12] = 2; // TJ: two copies close (+16) ^~~~~~~~~~ src/emucore/tia/DrawCounterDecodes.cxx:50:3: warning: unsafe buffer access [-Wunsafe-buffer-usage] myDecodes2[28] = 2; // TJ: two copies med (+32) ^~~~~~~~~~ src/emucore/tia/DrawCounterDecodes.cxx:51:3: warning: unsafe buffer access [-Wunsafe-buffer-usage] myDecodes3[12] = 2; myDecodes3[28] = 3; // TJ: three copies close (+16, +32) ^~~~~~~~~~ src/emucore/tia/DrawCounterDecodes.cxx:51:23: warning: unsafe buffer access [-Wunsafe-buffer-usage] myDecodes3[12] = 2; myDecodes3[28] = 3; // TJ: three copies close (+16, +32) ^~~~~~~~~~ src/emucore/tia/DrawCounterDecodes.cxx:52:3: warning: unsafe buffer access [-Wunsafe-buffer-usage] myDecodes4[60] = 2; // TJ: two copies wide (+64) ^~~~~~~~~~ src/emucore/tia/DrawCounterDecodes.cxx:53:3: warning: unsafe buffer access [-Wunsafe-buffer-usage] myDecodes6[28] = 2; myDecodes6[60] = 3; // TJ: three copies medium (+32, +64) ^~~~~~~~~~ src/emucore/tia/DrawCounterDecodes.cxx:53:23: warning: unsafe buffer access [-Wunsafe-buffer-usage] myDecodes6[28] = 2; myDecodes6[60] = 3; // TJ: three copies medium (+32, +64) ^~~~~~~~~~ src/emucore/tia/DrawCounterDecodes.cxx:57:3: warning: unsafe buffer access [-Wunsafe-buffer-usage] myPlayerDecodes[1] = myDecodes1; ^~~~~~~~~~~~~~~ src/emucore/tia/DrawCounterDecodes.cxx:58:3: warning: unsafe buffer access [-Wunsafe-buffer-usage] myPlayerDecodes[2] = myDecodes2; ^~~~~~~~~~~~~~~ src/emucore/tia/DrawCounterDecodes.cxx:59:3: warning: unsafe buffer access [-Wunsafe-buffer-usage] myPlayerDecodes[3] = myDecodes3; ^~~~~~~~~~~~~~~ src/emucore/tia/DrawCounterDecodes.cxx:60:3: warning: unsafe buffer access [-Wunsafe-buffer-usage] myPlayerDecodes[4] = myDecodes4; ^~~~~~~~~~~~~~~ src/emucore/tia/DrawCounterDecodes.cxx:61:3: warning: unsafe buffer access [-Wunsafe-buffer-usage] myPlayerDecodes[5] = myDecodes0; ^~~~~~~~~~~~~~~ src/emucore/tia/DrawCounterDecodes.cxx:62:3: warning: unsafe buffer access [-Wunsafe-buffer-usage] myPlayerDecodes[6] = myDecodes6; ^~~~~~~~~~~~~~~ src/emucore/tia/DrawCounterDecodes.cxx:63:3: warning: unsafe buffer access [-Wunsafe-buffer-usage] myPlayerDecodes[7] = myDecodes0; ^~~~~~~~~~~~~~~ src/emucore/tia/DrawCounterDecodes.cxx:67:3: warning: unsafe buffer access [-Wunsafe-buffer-usage] myMissileDecodes[1] = myDecodes1; ^~~~~~~~~~~~~~~~ src/emucore/tia/DrawCounterDecodes.cxx:68:3: warning: unsafe buffer access [-Wunsafe-buffer-usage] myMissileDecodes[2] = myDecodes2; ^~~~~~~~~~~~~~~~ src/emucore/tia/DrawCounterDecodes.cxx:69:3: warning: unsafe buffer access [-Wunsafe-buffer-usage] myMissileDecodes[3] = myDecodes3; ^~~~~~~~~~~~~~~~ src/emucore/tia/DrawCounterDecodes.cxx:70:3: warning: unsafe buffer access [-Wunsafe-buffer-usage] myMissileDecodes[4] = myDecodes4; ^~~~~~~~~~~~~~~~ src/emucore/tia/DrawCounterDecodes.cxx:71:3: warning: unsafe buffer access [-Wunsafe-buffer-usage] myMissileDecodes[5] = myDecodes0; ^~~~~~~~~~~~~~~~ src/emucore/tia/DrawCounterDecodes.cxx:72:3: warning: unsafe buffer access [-Wunsafe-buffer-usage] myMissileDecodes[6] = myDecodes6; ^~~~~~~~~~~~~~~~ src/emucore/tia/DrawCounterDecodes.cxx:73:3: warning: unsafe buffer access [-Wunsafe-buffer-usage] myMissileDecodes[7] = myDecodes0; ^~~~~~~~~~~~~~~~ src/emucore/tia/DrawCounterDecodes.cxx:43:13: warning: 'decodes' is an unsafe pointer used for buffer access [-Wunsafe-buffer-usage] for (auto decodes: decodeTables) ~~~~~^~~~~~~~ src/emucore/tia/DrawCounterDecodes.cxx:46:5: note: used in buffer access here decodes[156] = 1; // TJ: set for all copy pattern (first copy) ^~~~~~~ 24 warnings generated. mkdir -p -p src/emucore/tia/.deps mkdir -p -p out/src/emucore/tia c++ -MMD -MF "src/emucore/tia/.deps/Missile.d" -MQ "out/src/emucore/tia/Missile.o" -MP -O2 -pipe -I/usr/X11R6/include -I/usr/local/include -x c++ -Wall -Wextra -Wno-unused-parameter -Wno-multichar -Wunused -Woverloaded-virtual -Wnon-virtual-dtor -std=c++17 -Weverything -Wno-c++98-compat-pedantic -Wno-unknown-warning-option -Wno-switch-enum -Wno-conversion -Wno-covered-switch-default -Wno-inconsistent-missing-destructor-override -Wno-float-equal -Wno-exit-time-destructors -Wno-global-constructors -Wno-weak-vtables -Wno-four-char-constants -Wno-padded -Wno-reserved-identifier -Wno-duplicate-enum -fomit-frame-pointer -DSDL_SUPPORT -D_GLIBCXX_USE_CXX11_ABI=1 -DUNIX -DBSPF_UNIX -DGUI_SUPPORT -DWINDOWED_SUPPORT -DSOUND_SUPPORT -DDEBUGGER_SUPPORT -DJOYSTICK_SUPPORT -DCHEATCODE_SUPPORT -DHTTP_LIB_SUPPORT -DPNG_SUPPORT -DZIP_SUPPORT -Isrc/emucore -Isrc/common -Isrc/common/tv_filters -Isrc/emucore/tia -Isrc/emucore/tia/frame-manager -Isrc/json -Isrc/common/repository/sqlite -I/usr/local/include -I/usr/local/include/SDL2 -I/usr/X11R6/include -D_REENTRANT -I/usr/X11R6/include -Isrc/unix -Isrc/gui -Isrc/debugger -Isrc/debugger/gui -Isrc/yacc -Isrc/cheat -Isrc/httplib -c src/emucore/tia/Missile.cxx -o out/src/emucore/tia/Missile.o In file included from src/emucore/tia/Missile.cxx:18: In file included from src/emucore/tia/Missile.hxx:24: In file included from src/emucore/Serializable.hxx:21: In file included from src/emucore/Serializer.hxx:21: src/common/bspf.hxx:245:37: warning: unsafe pointer arithmetic [-Wunsafe-buffer-usage] const auto pos = std::search(s1.cbegin()+startpos, s1.cend(), ~~~^~~~~~~~ src/common/bspf.hxx:249:56: warning: unsafe pointer arithmetic [-Wunsafe-buffer-usage] return pos == s1.cend() ? string::npos : pos - (s1.cbegin()+startpos); ~~~^~~~~~~~ In file included from src/emucore/tia/Missile.cxx:18: src/emucore/tia/Missile.hxx:170:7: warning: unsafe buffer access [-Wunsafe-buffer-usage] if (myDecodes[myCounter] && !myResmp) { ^~~~~~~~~ src/emucore/tia/Missile.hxx:173:14: warning: unsafe buffer access [-Wunsafe-buffer-usage] myCopy = myDecodes[myCounter]; ^~~~~~~~~ In file included from src/emucore/tia/Missile.cxx:20: In file included from src/emucore/tia/TIA.hxx:38: src/emucore/tia/Player.hxx:186:7: warning: unsafe buffer access [-Wunsafe-buffer-usage] if (myDecodes[myCounter]) { ^~~~~~~~~ src/emucore/tia/Player.hxx:190:14: warning: unsafe buffer access [-Wunsafe-buffer-usage] myCopy = myDecodes[myCounter]; ^~~~~~~~~ src/emucore/tia/Missile.cxx:31:41: warning: unsafe buffer access [-Wunsafe-buffer-usage] myDecodes = DrawCounterDecodes::get().missileDecodes()[myDecodesOffset]; ~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~ src/emucore/tia/Missile.cxx:145:41: warning: unsafe buffer access [-Wunsafe-buffer-usage] myDecodes = DrawCounterDecodes::get().missileDecodes()[myDecodesOffset]; ~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~ src/emucore/tia/Missile.cxx:332:43: warning: unsafe buffer access [-Wunsafe-buffer-usage] myDecodes = DrawCounterDecodes::get().missileDecodes()[myDecodesOffset]; ~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~ 9 warnings generated. mkdir -p -p src/emucore/tia/.deps mkdir -p -p out/src/emucore/tia c++ -MMD -MF "src/emucore/tia/.deps/Player.d" -MQ "out/src/emucore/tia/Player.o" -MP -O2 -pipe -I/usr/X11R6/include -I/usr/local/include -x c++ -Wall -Wextra -Wno-unused-parameter -Wno-multichar -Wunused -Woverloaded-virtual -Wnon-virtual-dtor -std=c++17 -Weverything -Wno-c++98-compat-pedantic -Wno-unknown-warning-option -Wno-switch-enum -Wno-conversion -Wno-covered-switch-default -Wno-inconsistent-missing-destructor-override -Wno-float-equal -Wno-exit-time-destructors -Wno-global-constructors -Wno-weak-vtables -Wno-four-char-constants -Wno-padded -Wno-reserved-identifier -Wno-duplicate-enum -fomit-frame-pointer -DSDL_SUPPORT -D_GLIBCXX_USE_CXX11_ABI=1 -DUNIX -DBSPF_UNIX -DGUI_SUPPORT -DWINDOWED_SUPPORT -DSOUND_SUPPORT -DDEBUGGER_SUPPORT -DJOYSTICK_SUPPORT -DCHEATCODE_SUPPORT -DHTTP_LIB_SUPPORT -DPNG_SUPPORT -DZIP_SUPPORT -Isrc/emucore -Isrc/common -Isrc/common/tv_filters -Isrc/emucore/tia -Isrc/emucore/tia/frame-manager -Isrc/json -Isrc/common/repository/sqlite -I/usr/local/include -I/usr/local/include/SDL2 -I/usr/X11R6/include -D_REENTRANT -I/usr/X11R6/include -Isrc/unix -Isrc/gui -Isrc/debugger -Isrc/debugger/gui -Isrc/yacc -Isrc/cheat -Isrc/httplib -c src/emucore/tia/Player.cxx -o out/src/emucore/tia/Player.o In file included from src/emucore/tia/Player.cxx:18: In file included from src/emucore/tia/Player.hxx:23: src/common/bspf.hxx:245:37: warning: unsafe pointer arithmetic [-Wunsafe-buffer-usage] const auto pos = std::search(s1.cbegin()+startpos, s1.cend(), ~~~^~~~~~~~ src/common/bspf.hxx:249:56: warning: unsafe pointer arithmetic [-Wunsafe-buffer-usage] return pos == s1.cend() ? string::npos : pos - (s1.cbegin()+startpos); ~~~^~~~~~~~ In file included from src/emucore/tia/Player.cxx:18: src/emucore/tia/Player.hxx:186:7: warning: unsafe buffer access [-Wunsafe-buffer-usage] if (myDecodes[myCounter]) { ^~~~~~~~~ src/emucore/tia/Player.hxx:190:14: warning: unsafe buffer access [-Wunsafe-buffer-usage] myCopy = myDecodes[myCounter]; ^~~~~~~~~ In file included from src/emucore/tia/Player.cxx:20: In file included from src/emucore/tia/TIA.hxx:37: src/emucore/tia/Missile.hxx:170:7: warning: unsafe buffer access [-Wunsafe-buffer-usage] if (myDecodes[myCounter] && !myResmp) { ^~~~~~~~~ src/emucore/tia/Missile.hxx:173:14: warning: unsafe buffer access [-Wunsafe-buffer-usage] myCopy = myDecodes[myCounter]; ^~~~~~~~~ src/emucore/tia/Player.cxx:31:41: warning: unsafe buffer access [-Wunsafe-buffer-usage] myDecodes = DrawCounterDecodes::get().playerDecodes()[myDecodesOffset]; ~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~ src/emucore/tia/Player.cxx:95:41: warning: unsafe buffer access [-Wunsafe-buffer-usage] myDecodes = DrawCounterDecodes::get().playerDecodes()[myDecodesOffset]; ~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~ src/emucore/tia/Player.cxx:101:6: warning: unsafe buffer access [-Wunsafe-buffer-usage] !myDecodes[(myCounter - myRenderCounter + Count::renderCounterOffset + TIAConstants::H_PIXEL - 1) % TIAConstants::H_PIXEL] ^~~~~~~~~ src/emucore/tia/Player.cxx:482:43: warning: unsafe buffer access [-Wunsafe-buffer-usage] myDecodes = DrawCounterDecodes::get().playerDecodes()[myDecodesOffset]; ~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~ 10 warnings generated. mkdir -p -p src/emucore/tia/.deps mkdir -p -p out/src/emucore/tia c++ -MMD -MF "src/emucore/tia/.deps/Ball.d" -MQ "out/src/emucore/tia/Ball.o" -MP -O2 -pipe -I/usr/X11R6/include -I/usr/local/include -x c++ -Wall -Wextra -Wno-unused-parameter -Wno-multichar -Wunused -Woverloaded-virtual -Wnon-virtual-dtor -std=c++17 -Weverything -Wno-c++98-compat-pedantic -Wno-unknown-warning-option -Wno-switch-enum -Wno-conversion -Wno-covered-switch-default -Wno-inconsistent-missing-destructor-override -Wno-float-equal -Wno-exit-time-destructors -Wno-global-constructors -Wno-weak-vtables -Wno-four-char-constants -Wno-padded -Wno-reserved-identifier -Wno-duplicate-enum -fomit-frame-pointer -DSDL_SUPPORT -D_GLIBCXX_USE_CXX11_ABI=1 -DUNIX -DBSPF_UNIX -DGUI_SUPPORT -DWINDOWED_SUPPORT -DSOUND_SUPPORT -DDEBUGGER_SUPPORT -DJOYSTICK_SUPPORT -DCHEATCODE_SUPPORT -DHTTP_LIB_SUPPORT -DPNG_SUPPORT -DZIP_SUPPORT -Isrc/emucore -Isrc/common -Isrc/common/tv_filters -Isrc/emucore/tia -Isrc/emucore/tia/frame-manager -Isrc/json -Isrc/common/repository/sqlite -I/usr/local/include -I/usr/local/include/SDL2 -I/usr/X11R6/include -D_REENTRANT -I/usr/X11R6/include -Isrc/unix -Isrc/gui -Isrc/debugger -Isrc/debugger/gui -Isrc/yacc -Isrc/cheat -Isrc/httplib -c src/emucore/tia/Ball.cxx -o out/src/emucore/tia/Ball.o In file included from src/emucore/tia/Ball.cxx:18: In file included from src/emucore/tia/Ball.hxx:23: src/common/bspf.hxx:245:37: warning: unsafe pointer arithmetic [-Wunsafe-buffer-usage] const auto pos = std::search(s1.cbegin()+startpos, s1.cend(), ~~~^~~~~~~~ src/common/bspf.hxx:249:56: warning: unsafe pointer arithmetic [-Wunsafe-buffer-usage] return pos == s1.cend() ? string::npos : pos - (s1.cbegin()+startpos); ~~~^~~~~~~~ In file included from src/emucore/tia/Ball.cxx:19: In file included from src/emucore/tia/TIA.hxx:37: src/emucore/tia/Missile.hxx:170:7: warning: unsafe buffer access [-Wunsafe-buffer-usage] if (myDecodes[myCounter] && !myResmp) { ^~~~~~~~~ src/emucore/tia/Missile.hxx:173:14: warning: unsafe buffer access [-Wunsafe-buffer-usage] myCopy = myDecodes[myCounter]; ^~~~~~~~~ In file included from src/emucore/tia/Ball.cxx:19: In file included from src/emucore/tia/TIA.hxx:38: src/emucore/tia/Player.hxx:186:7: warning: unsafe buffer access [-Wunsafe-buffer-usage] if (myDecodes[myCounter]) { ^~~~~~~~~ src/emucore/tia/Player.hxx:190:14: warning: unsafe buffer access [-Wunsafe-buffer-usage] myCopy = myDecodes[myCounter]; ^~~~~~~~~ 6 warnings generated. mkdir -p -p src/emucore/tia/.deps mkdir -p -p out/src/emucore/tia c++ -MMD -MF "src/emucore/tia/.deps/Background.d" -MQ "out/src/emucore/tia/Background.o" -MP -O2 -pipe -I/usr/X11R6/include -I/usr/local/include -x c++ -Wall -Wextra -Wno-unused-parameter -Wno-multichar -Wunused -Woverloaded-virtual -Wnon-virtual-dtor -std=c++17 -Weverything -Wno-c++98-compat-pedantic -Wno-unknown-warning-option -Wno-switch-enum -Wno-conversion -Wno-covered-switch-default -Wno-inconsistent-missing-destructor-override -Wno-float-equal -Wno-exit-time-destructors -Wno-global-constructors -Wno-weak-vtables -Wno-four-char-constants -Wno-padded -Wno-reserved-identifier -Wno-duplicate-enum -fomit-frame-pointer -DSDL_SUPPORT -D_GLIBCXX_USE_CXX11_ABI=1 -DUNIX -DBSPF_UNIX -DGUI_SUPPORT -DWINDOWED_SUPPORT -DSOUND_SUPPORT -DDEBUGGER_SUPPORT -DJOYSTICK_SUPPORT -DCHEATCODE_SUPPORT -DHTTP_LIB_SUPPORT -DPNG_SUPPORT -DZIP_SUPPORT -Isrc/emucore -Isrc/common -Isrc/common/tv_filters -Isrc/emucore/tia -Isrc/emucore/tia/frame-manager -Isrc/json -Isrc/common/repository/sqlite -I/usr/local/include -I/usr/local/include/SDL2 -I/usr/X11R6/include -D_REENTRANT -I/usr/X11R6/include -Isrc/unix -Isrc/gui -Isrc/debugger -Isrc/debugger/gui -Isrc/yacc -Isrc/cheat -Isrc/httplib -c src/emucore/tia/Background.cxx -o out/src/emucore/tia/Background.o In file included from src/emucore/tia/Background.cxx:18: In file included from src/emucore/tia/Background.hxx:23: In file included from src/emucore/Serializable.hxx:21: In file included from src/emucore/Serializer.hxx:21: src/common/bspf.hxx:245:37: warning: unsafe pointer arithmetic [-Wunsafe-buffer-usage] const auto pos = std::search(s1.cbegin()+startpos, s1.cend(), ~~~^~~~~~~~ src/common/bspf.hxx:249:56: warning: unsafe pointer arithmetic [-Wunsafe-buffer-usage] return pos == s1.cend() ? string::npos : pos - (s1.cbegin()+startpos); ~~~^~~~~~~~ In file included from src/emucore/tia/Background.cxx:19: In file included from src/emucore/tia/TIA.hxx:37: src/emucore/tia/Missile.hxx:170:7: warning: unsafe buffer access [-Wunsafe-buffer-usage] if (myDecodes[myCounter] && !myResmp) { ^~~~~~~~~ src/emucore/tia/Missile.hxx:173:14: warning: unsafe buffer access [-Wunsafe-buffer-usage] myCopy = myDecodes[myCounter]; ^~~~~~~~~ In file included from src/emucore/tia/Background.cxx:19: In file included from src/emucore/tia/TIA.hxx:38: src/emucore/tia/Player.hxx:186:7: warning: unsafe buffer access [-Wunsafe-buffer-usage] if (myDecodes[myCounter]) { ^~~~~~~~~ src/emucore/tia/Player.hxx:190:14: warning: unsafe buffer access [-Wunsafe-buffer-usage] myCopy = myDecodes[myCounter]; ^~~~~~~~~ 6 warnings generated. mkdir -p -p src/emucore/tia/.deps mkdir -p -p out/src/emucore/tia c++ -MMD -MF "src/emucore/tia/.deps/LatchedInput.d" -MQ "out/src/emucore/tia/LatchedInput.o" -MP -O2 -pipe -I/usr/X11R6/include -I/usr/local/include -x c++ -Wall -Wextra -Wno-unused-parameter -Wno-multichar -Wunused -Woverloaded-virtual -Wnon-virtual-dtor -std=c++17 -Weverything -Wno-c++98-compat-pedantic -Wno-unknown-warning-option -Wno-switch-enum -Wno-conversion -Wno-covered-switch-default -Wno-inconsistent-missing-destructor-override -Wno-float-equal -Wno-exit-time-destructors -Wno-global-constructors -Wno-weak-vtables -Wno-four-char-constants -Wno-padded -Wno-reserved-identifier -Wno-duplicate-enum -fomit-frame-pointer -DSDL_SUPPORT -D_GLIBCXX_USE_CXX11_ABI=1 -DUNIX -DBSPF_UNIX -DGUI_SUPPORT -DWINDOWED_SUPPORT -DSOUND_SUPPORT -DDEBUGGER_SUPPORT -DJOYSTICK_SUPPORT -DCHEATCODE_SUPPORT -DHTTP_LIB_SUPPORT -DPNG_SUPPORT -DZIP_SUPPORT -Isrc/emucore -Isrc/common -Isrc/common/tv_filters -Isrc/emucore/tia -Isrc/emucore/tia/frame-manager -Isrc/json -Isrc/common/repository/sqlite -I/usr/local/include -I/usr/local/include/SDL2 -I/usr/X11R6/include -D_REENTRANT -I/usr/X11R6/include -Isrc/unix -Isrc/gui -Isrc/debugger -Isrc/debugger/gui -Isrc/yacc -Isrc/cheat -Isrc/httplib -c src/emucore/tia/LatchedInput.cxx -o out/src/emucore/tia/LatchedInput.o In file included from src/emucore/tia/LatchedInput.cxx:18: In file included from src/emucore/tia/LatchedInput.hxx:21: src/common/bspf.hxx:245:37: warning: unsafe pointer arithmetic [-Wunsafe-buffer-usage] const auto pos = std::search(s1.cbegin()+startpos, s1.cend(), ~~~^~~~~~~~ src/common/bspf.hxx:249:56: warning: unsafe pointer arithmetic [-Wunsafe-buffer-usage] return pos == s1.cend() ? string::npos : pos - (s1.cbegin()+startpos); ~~~^~~~~~~~ 2 warnings generated. mkdir -p -p src/emucore/tia/.deps mkdir -p -p out/src/emucore/tia c++ -MMD -MF "src/emucore/tia/.deps/AnalogReadout.d" -MQ "out/src/emucore/tia/AnalogReadout.o" -MP -O2 -pipe -I/usr/X11R6/include -I/usr/local/include -x c++ -Wall -Wextra -Wno-unused-parameter -Wno-multichar -Wunused -Woverloaded-virtual -Wnon-virtual-dtor -std=c++17 -Weverything -Wno-c++98-compat-pedantic -Wno-unknown-warning-option -Wno-switch-enum -Wno-conversion -Wno-covered-switch-default -Wno-inconsistent-missing-destructor-override -Wno-float-equal -Wno-exit-time-destructors -Wno-global-constructors -Wno-weak-vtables -Wno-four-char-constants -Wno-padded -Wno-reserved-identifier -Wno-duplicate-enum -fomit-frame-pointer -DSDL_SUPPORT -D_GLIBCXX_USE_CXX11_ABI=1 -DUNIX -DBSPF_UNIX -DGUI_SUPPORT -DWINDOWED_SUPPORT -DSOUND_SUPPORT -DDEBUGGER_SUPPORT -DJOYSTICK_SUPPORT -DCHEATCODE_SUPPORT -DHTTP_LIB_SUPPORT -DPNG_SUPPORT -DZIP_SUPPORT -Isrc/emucore -Isrc/common -Isrc/common/tv_filters -Isrc/emucore/tia -Isrc/emucore/tia/frame-manager -Isrc/json -Isrc/common/repository/sqlite -I/usr/local/include -I/usr/local/include/SDL2 -I/usr/X11R6/include -D_REENTRANT -I/usr/X11R6/include -Isrc/unix -Isrc/gui -Isrc/debugger -Isrc/debugger/gui -Isrc/yacc -Isrc/cheat -Isrc/httplib -c src/emucore/tia/AnalogReadout.cxx -o out/src/emucore/tia/AnalogReadout.o In file included from src/emucore/tia/AnalogReadout.cxx:20: In file included from src/emucore/tia/AnalogReadout.hxx:21: src/common/bspf.hxx:245:37: warning: unsafe pointer arithmetic [-Wunsafe-buffer-usage] const auto pos = std::search(s1.cbegin()+startpos, s1.cend(), ~~~^~~~~~~~ src/common/bspf.hxx:249:56: warning: unsafe pointer arithmetic [-Wunsafe-buffer-usage] return pos == s1.cend() ? string::npos : pos - (s1.cbegin()+startpos); ~~~^~~~~~~~ 2 warnings generated. mkdir -p -p src/emucore/tia/.deps mkdir -p -p out/src/emucore/tia c++ -MMD -MF "src/emucore/tia/.deps/Audio.d" -MQ "out/src/emucore/tia/Audio.o" -MP -O2 -pipe -I/usr/X11R6/include -I/usr/local/include -x c++ -Wall -Wextra -Wno-unused-parameter -Wno-multichar -Wunused -Woverloaded-virtual -Wnon-virtual-dtor -std=c++17 -Weverything -Wno-c++98-compat-pedantic -Wno-unknown-warning-option -Wno-switch-enum -Wno-conversion -Wno-covered-switch-default -Wno-inconsistent-missing-destructor-override -Wno-float-equal -Wno-exit-time-destructors -Wno-global-constructors -Wno-weak-vtables -Wno-four-char-constants -Wno-padded -Wno-reserved-identifier -Wno-duplicate-enum -fomit-frame-pointer -DSDL_SUPPORT -D_GLIBCXX_USE_CXX11_ABI=1 -DUNIX -DBSPF_UNIX -DGUI_SUPPORT -DWINDOWED_SUPPORT -DSOUND_SUPPORT -DDEBUGGER_SUPPORT -DJOYSTICK_SUPPORT -DCHEATCODE_SUPPORT -DHTTP_LIB_SUPPORT -DPNG_SUPPORT -DZIP_SUPPORT -Isrc/emucore -Isrc/common -Isrc/common/tv_filters -Isrc/emucore/tia -Isrc/emucore/tia/frame-manager -Isrc/json -Isrc/common/repository/sqlite -I/usr/local/include -I/usr/local/include/SDL2 -I/usr/X11R6/include -D_REENTRANT -I/usr/X11R6/include -Isrc/unix -Isrc/gui -Isrc/debugger -Isrc/debugger/gui -Isrc/yacc -Isrc/cheat -Isrc/httplib -c src/emucore/tia/Audio.cxx -o out/src/emucore/tia/Audio.o In file included from src/emucore/tia/Audio.cxx:18: In file included from src/emucore/tia/Audio.hxx:23: src/common/bspf.hxx:245:37: warning: unsafe pointer arithmetic [-Wunsafe-buffer-usage] const auto pos = std::search(s1.cbegin()+startpos, s1.cend(), ~~~^~~~~~~~ src/common/bspf.hxx:249:56: warning: unsafe pointer arithmetic [-Wunsafe-buffer-usage] return pos == s1.cend() ? string::npos : pos - (s1.cbegin()+startpos); ~~~^~~~~~~~ src/emucore/tia/Audio.cxx:105:5: warning: unsafe buffer access [-Wunsafe-buffer-usage] myCurrentFragment[2 * mySampleIndex] = myMixingTableIndividual[sample0]; ^~~~~~~~~~~~~~~~~ src/emucore/tia/Audio.cxx:106:5: warning: unsafe buffer access [-Wunsafe-buffer-usage] myCurrentFragment[2 * mySampleIndex + 1] = myMixingTableIndividual[sample1]; ^~~~~~~~~~~~~~~~~ src/emucore/tia/Audio.cxx:109:5: warning: unsafe buffer access [-Wunsafe-buffer-usage] myCurrentFragment[mySampleIndex] = myMixingTableSum[sample0 + sample1]; ^~~~~~~~~~~~~~~~~ 5 warnings generated. mkdir -p -p src/emucore/tia/.deps mkdir -p -p out/src/emucore/tia c++ -MMD -MF "src/emucore/tia/.deps/AudioChannel.d" -MQ "out/src/emucore/tia/AudioChannel.o" -MP -O2 -pipe -I/usr/X11R6/include -I/usr/local/include -x c++ -Wall -Wextra -Wno-unused-parameter -Wno-multichar -Wunused -Woverloaded-virtual -Wnon-virtual-dtor -std=c++17 -Weverything -Wno-c++98-compat-pedantic -Wno-unknown-warning-option -Wno-switch-enum -Wno-conversion -Wno-covered-switch-default -Wno-inconsistent-missing-destructor-override -Wno-float-equal -Wno-exit-time-destructors -Wno-global-constructors -Wno-weak-vtables -Wno-four-char-constants -Wno-padded -Wno-reserved-identifier -Wno-duplicate-enum -fomit-frame-pointer -DSDL_SUPPORT -D_GLIBCXX_USE_CXX11_ABI=1 -DUNIX -DBSPF_UNIX -DGUI_SUPPORT -DWINDOWED_SUPPORT -DSOUND_SUPPORT -DDEBUGGER_SUPPORT -DJOYSTICK_SUPPORT -DCHEATCODE_SUPPORT -DHTTP_LIB_SUPPORT -DPNG_SUPPORT -DZIP_SUPPORT -Isrc/emucore -Isrc/common -Isrc/common/tv_filters -Isrc/emucore/tia -Isrc/emucore/tia/frame-manager -Isrc/json -Isrc/common/repository/sqlite -I/usr/local/include -I/usr/local/include/SDL2 -I/usr/X11R6/include -D_REENTRANT -I/usr/X11R6/include -Isrc/unix -Isrc/gui -Isrc/debugger -Isrc/debugger/gui -Isrc/yacc -Isrc/cheat -Isrc/httplib -c src/emucore/tia/AudioChannel.cxx -o out/src/emucore/tia/AudioChannel.o In file included from src/emucore/tia/AudioChannel.cxx:18: In file included from src/emucore/tia/AudioChannel.hxx:21: src/common/bspf.hxx:245:37: warning: unsafe pointer arithmetic [-Wunsafe-buffer-usage] const auto pos = std::search(s1.cbegin()+startpos, s1.cend(), ~~~^~~~~~~~ src/common/bspf.hxx:249:56: warning: unsafe pointer arithmetic [-Wunsafe-buffer-usage] return pos == s1.cend() ? string::npos : pos - (s1.cbegin()+startpos); ~~~^~~~~~~~ 2 warnings generated. mkdir -p -p src/emucore/tia/frame-manager/.deps mkdir -p -p out/src/emucore/tia/frame-manager c++ -MMD -MF "src/emucore/tia/frame-manager/.deps/FrameManager.d" -MQ "out/src/emucore/tia/frame-manager/FrameManager.o" -MP -O2 -pipe -I/usr/X11R6/include -I/usr/local/include -x c++ -Wall -Wextra -Wno-unused-parameter -Wno-multichar -Wunused -Woverloaded-virtual -Wnon-virtual-dtor -std=c++17 -Weverything -Wno-c++98-compat-pedantic -Wno-unknown-warning-option -Wno-switch-enum -Wno-conversion -Wno-covered-switch-default -Wno-inconsistent-missing-destructor-override -Wno-float-equal -Wno-exit-time-destructors -Wno-global-constructors -Wno-weak-vtables -Wno-four-char-constants -Wno-padded -Wno-reserved-identifier -Wno-duplicate-enum -fomit-frame-pointer -DSDL_SUPPORT -D_GLIBCXX_USE_CXX11_ABI=1 -DUNIX -DBSPF_UNIX -DGUI_SUPPORT -DWINDOWED_SUPPORT -DSOUND_SUPPORT -DDEBUGGER_SUPPORT -DJOYSTICK_SUPPORT -DCHEATCODE_SUPPORT -DHTTP_LIB_SUPPORT -DPNG_SUPPORT -DZIP_SUPPORT -Isrc/emucore -Isrc/common -Isrc/common/tv_filters -Isrc/emucore/tia -Isrc/emucore/tia/frame-manager -Isrc/json -Isrc/common/repository/sqlite -I/usr/local/include -I/usr/local/include/SDL2 -I/usr/X11R6/include -D_REENTRANT -I/usr/X11R6/include -Isrc/unix -Isrc/gui -Isrc/debugger -Isrc/debugger/gui -Isrc/yacc -Isrc/cheat -Isrc/httplib -c src/emucore/tia/frame-manager/FrameManager.cxx -o out/src/emucore/tia/frame-manager/FrameManager.o In file included from src/emucore/tia/frame-manager/FrameManager.cxx:23: In file included from src/emucore/tia/frame-manager/FrameManager.hxx:21: In file included from src/emucore/tia/frame-manager/AbstractFrameManager.hxx:23: In file included from src/emucore/Serializable.hxx:21: In file included from src/emucore/Serializer.hxx:21: src/common/bspf.hxx:245:37: warning: unsafe pointer arithmetic [-Wunsafe-buffer-usage] const auto pos = std::search(s1.cbegin()+startpos, s1.cend(), ~~~^~~~~~~~ src/common/bspf.hxx:249:56: warning: unsafe pointer arithmetic [-Wunsafe-buffer-usage] return pos == s1.cend() ? string::npos : pos - (s1.cbegin()+startpos); ~~~^~~~~~~~ 2 warnings generated. mkdir -p -p src/emucore/tia/frame-manager/.deps mkdir -p -p out/src/emucore/tia/frame-manager c++ -MMD -MF "src/emucore/tia/frame-manager/.deps/AbstractFrameManager.d" -MQ "out/src/emucore/tia/frame-manager/AbstractFrameManager.o" -MP -O2 -pipe -I/usr/X11R6/include -I/usr/local/include -x c++ -Wall -Wextra -Wno-unused-parameter -Wno-multichar -Wunused -Woverloaded-virtual -Wnon-virtual-dtor -std=c++17 -Weverything -Wno-c++98-compat-pedantic -Wno-unknown-warning-option -Wno-switch-enum -Wno-conversion -Wno-covered-switch-default -Wno-inconsistent-missing-destructor-override -Wno-float-equal -Wno-exit-time-destructors -Wno-global-constructors -Wno-weak-vtables -Wno-four-char-constants -Wno-padded -Wno-reserved-identifier -Wno-duplicate-enum -fomit-frame-pointer -DSDL_SUPPORT -D_GLIBCXX_USE_CXX11_ABI=1 -DUNIX -DBSPF_UNIX -DGUI_SUPPORT -DWINDOWED_SUPPORT -DSOUND_SUPPORT -DDEBUGGER_SUPPORT -DJOYSTICK_SUPPORT -DCHEATCODE_SUPPORT -DHTTP_LIB_SUPPORT -DPNG_SUPPORT -DZIP_SUPPORT -Isrc/emucore -Isrc/common -Isrc/common/tv_filters -Isrc/emucore/tia -Isrc/emucore/tia/frame-manager -Isrc/json -Isrc/common/repository/sqlite -I/usr/local/include -I/usr/local/include/SDL2 -I/usr/X11R6/include -D_REENTRANT -I/usr/X11R6/include -Isrc/unix -Isrc/gui -Isrc/debugger -Isrc/debugger/gui -Isrc/yacc -Isrc/cheat -Isrc/httplib -c src/emucore/tia/frame-manager/AbstractFrameManager.cxx -o out/src/emucore/tia/frame-manager/AbstractFrameManager.o In file included from src/emucore/tia/frame-manager/AbstractFrameManager.cxx:18: In file included from src/emucore/tia/frame-manager/AbstractFrameManager.hxx:23: In file included from src/emucore/Serializable.hxx:21: In file included from src/emucore/Serializer.hxx:21: src/common/bspf.hxx:245:37: warning: unsafe pointer arithmetic [-Wunsafe-buffer-usage] const auto pos = std::search(s1.cbegin()+startpos, s1.cend(), ~~~^~~~~~~~ src/common/bspf.hxx:249:56: warning: unsafe pointer arithmetic [-Wunsafe-buffer-usage] return pos == s1.cend() ? string::npos : pos - (s1.cbegin()+startpos); ~~~^~~~~~~~ 2 warnings generated. mkdir -p -p src/emucore/tia/frame-manager/.deps mkdir -p -p out/src/emucore/tia/frame-manager c++ -MMD -MF "src/emucore/tia/frame-manager/.deps/FrameLayoutDetector.d" -MQ "out/src/emucore/tia/frame-manager/FrameLayoutDetector.o" -MP -O2 -pipe -I/usr/X11R6/include -I/usr/local/include -x c++ -Wall -Wextra -Wno-unused-parameter -Wno-multichar -Wunused -Woverloaded-virtual -Wnon-virtual-dtor -std=c++17 -Weverything -Wno-c++98-compat-pedantic -Wno-unknown-warning-option -Wno-switch-enum -Wno-conversion -Wno-covered-switch-default -Wno-inconsistent-missing-destructor-override -Wno-float-equal -Wno-exit-time-destructors -Wno-global-constructors -Wno-weak-vtables -Wno-four-char-constants -Wno-padded -Wno-reserved-identifier -Wno-duplicate-enum -fomit-frame-pointer -DSDL_SUPPORT -D_GLIBCXX_USE_CXX11_ABI=1 -DUNIX -DBSPF_UNIX -DGUI_SUPPORT -DWINDOWED_SUPPORT -DSOUND_SUPPORT -DDEBUGGER_SUPPORT -DJOYSTICK_SUPPORT -DCHEATCODE_SUPPORT -DHTTP_LIB_SUPPORT -DPNG_SUPPORT -DZIP_SUPPORT -Isrc/emucore -Isrc/common -Isrc/common/tv_filters -Isrc/emucore/tia -Isrc/emucore/tia/frame-manager -Isrc/json -Isrc/common/repository/sqlite -I/usr/local/include -I/usr/local/include/SDL2 -I/usr/X11R6/include -D_REENTRANT -I/usr/X11R6/include -Isrc/unix -Isrc/gui -Isrc/debugger -Isrc/debugger/gui -Isrc/yacc -Isrc/cheat -Isrc/httplib -c src/emucore/tia/frame-manager/FrameLayoutDetector.cxx -o out/src/emucore/tia/frame-manager/FrameLayoutDetector.o In file included from src/emucore/tia/frame-manager/FrameLayoutDetector.cxx:18: In file included from src/emucore/tia/frame-manager/FrameLayoutDetector.hxx:22: In file included from src/emucore/tia/frame-manager/AbstractFrameManager.hxx:23: In file included from src/emucore/Serializable.hxx:21: In file included from src/emucore/Serializer.hxx:21: src/common/bspf.hxx:245:37: warning: unsafe pointer arithmetic [-Wunsafe-buffer-usage] const auto pos = std::search(s1.cbegin()+startpos, s1.cend(), ~~~^~~~~~~~ src/common/bspf.hxx:249:56: warning: unsafe pointer arithmetic [-Wunsafe-buffer-usage] return pos == s1.cend() ? string::npos : pos - (s1.cbegin()+startpos); ~~~^~~~~~~~ 2 warnings generated. mkdir -p -p src/emucore/tia/frame-manager/.deps mkdir -p -p out/src/emucore/tia/frame-manager c++ -MMD -MF "src/emucore/tia/frame-manager/.deps/JitterEmulation.d" -MQ "out/src/emucore/tia/frame-manager/JitterEmulation.o" -MP -O2 -pipe -I/usr/X11R6/include -I/usr/local/include -x c++ -Wall -Wextra -Wno-unused-parameter -Wno-multichar -Wunused -Woverloaded-virtual -Wnon-virtual-dtor -std=c++17 -Weverything -Wno-c++98-compat-pedantic -Wno-unknown-warning-option -Wno-switch-enum -Wno-conversion -Wno-covered-switch-default -Wno-inconsistent-missing-destructor-override -Wno-float-equal -Wno-exit-time-destructors -Wno-global-constructors -Wno-weak-vtables -Wno-four-char-constants -Wno-padded -Wno-reserved-identifier -Wno-duplicate-enum -fomit-frame-pointer -DSDL_SUPPORT -D_GLIBCXX_USE_CXX11_ABI=1 -DUNIX -DBSPF_UNIX -DGUI_SUPPORT -DWINDOWED_SUPPORT -DSOUND_SUPPORT -DDEBUGGER_SUPPORT -DJOYSTICK_SUPPORT -DCHEATCODE_SUPPORT -DHTTP_LIB_SUPPORT -DPNG_SUPPORT -DZIP_SUPPORT -Isrc/emucore -Isrc/common -Isrc/common/tv_filters -Isrc/emucore/tia -Isrc/emucore/tia/frame-manager -Isrc/json -Isrc/common/repository/sqlite -I/usr/local/include -I/usr/local/include/SDL2 -I/usr/X11R6/include -D_REENTRANT -I/usr/X11R6/include -Isrc/unix -Isrc/gui -Isrc/debugger -Isrc/debugger/gui -Isrc/yacc -Isrc/cheat -Isrc/httplib -c src/emucore/tia/frame-manager/JitterEmulation.cxx -o out/src/emucore/tia/frame-manager/JitterEmulation.o In file included from src/emucore/tia/frame-manager/JitterEmulation.cxx:23: In file included from src/emucore/tia/frame-manager/JitterEmulation.hxx:23: src/common/bspf.hxx:245:37: warning: unsafe pointer arithmetic [-Wunsafe-buffer-usage] const auto pos = std::search(s1.cbegin()+startpos, s1.cend(), ~~~^~~~~~~~ src/common/bspf.hxx:249:56: warning: unsafe pointer arithmetic [-Wunsafe-buffer-usage] return pos == s1.cend() ? string::npos : pos - (s1.cbegin()+startpos); ~~~^~~~~~~~ 2 warnings generated. mkdir -p -p src/common/repository/sqlite/.deps mkdir -p -p out/src/common/repository/sqlite c++ -MMD -MF "src/common/repository/sqlite/.deps/AbstractKeyValueRepositorySqlite.d" -MQ "out/src/common/repository/sqlite/AbstractKeyValueRepositorySqlite.o" -MP -O2 -pipe -I/usr/X11R6/include -I/usr/local/include -x c++ -Wall -Wextra -Wno-unused-parameter -Wno-multichar -Wunused -Woverloaded-virtual -Wnon-virtual-dtor -std=c++17 -Weverything -Wno-c++98-compat-pedantic -Wno-unknown-warning-option -Wno-switch-enum -Wno-conversion -Wno-covered-switch-default -Wno-inconsistent-missing-destructor-override -Wno-float-equal -Wno-exit-time-destructors -Wno-global-constructors -Wno-weak-vtables -Wno-four-char-constants -Wno-padded -Wno-reserved-identifier -Wno-duplicate-enum -fomit-frame-pointer -DSDL_SUPPORT -D_GLIBCXX_USE_CXX11_ABI=1 -DUNIX -DBSPF_UNIX -DGUI_SUPPORT -DWINDOWED_SUPPORT -DSOUND_SUPPORT -DDEBUGGER_SUPPORT -DJOYSTICK_SUPPORT -DCHEATCODE_SUPPORT -DHTTP_LIB_SUPPORT -DPNG_SUPPORT -DZIP_SUPPORT -Isrc/emucore -Isrc/common -Isrc/common/tv_filters -Isrc/emucore/tia -Isrc/emucore/tia/frame-manager -Isrc/json -Isrc/common/repository/sqlite -I/usr/local/include -I/usr/local/include/SDL2 -I/usr/X11R6/include -D_REENTRANT -I/usr/X11R6/include -Isrc/unix -Isrc/gui -Isrc/debugger -Isrc/debugger/gui -Isrc/yacc -Isrc/cheat -Isrc/httplib -c src/common/repository/sqlite/AbstractKeyValueRepositorySqlite.cxx -o out/src/common/repository/sqlite/AbstractKeyValueRepositorySqlite.o In file included from src/common/repository/sqlite/AbstractKeyValueRepositorySqlite.cxx:18: In file included from src/common/repository/sqlite/AbstractKeyValueRepositorySqlite.hxx:21: src/common/bspf.hxx:245:37: warning: unsafe pointer arithmetic [-Wunsafe-buffer-usage] const auto pos = std::search(s1.cbegin()+startpos, s1.cend(), ~~~^~~~~~~~ src/common/bspf.hxx:249:56: warning: unsafe pointer arithmetic [-Wunsafe-buffer-usage] return pos == s1.cend() ? string::npos : pos - (s1.cbegin()+startpos); ~~~^~~~~~~~ 2 warnings generated. mkdir -p -p src/common/repository/sqlite/.deps mkdir -p -p out/src/common/repository/sqlite c++ -MMD -MF "src/common/repository/sqlite/.deps/KeyValueRepositorySqlite.d" -MQ "out/src/common/repository/sqlite/KeyValueRepositorySqlite.o" -MP -O2 -pipe -I/usr/X11R6/include -I/usr/local/include -x c++ -Wall -Wextra -Wno-unused-parameter -Wno-multichar -Wunused -Woverloaded-virtual -Wnon-virtual-dtor -std=c++17 -Weverything -Wno-c++98-compat-pedantic -Wno-unknown-warning-option -Wno-switch-enum -Wno-conversion -Wno-covered-switch-default -Wno-inconsistent-missing-destructor-override -Wno-float-equal -Wno-exit-time-destructors -Wno-global-constructors -Wno-weak-vtables -Wno-four-char-constants -Wno-padded -Wno-reserved-identifier -Wno-duplicate-enum -fomit-frame-pointer -DSDL_SUPPORT -D_GLIBCXX_USE_CXX11_ABI=1 -DUNIX -DBSPF_UNIX -DGUI_SUPPORT -DWINDOWED_SUPPORT -DSOUND_SUPPORT -DDEBUGGER_SUPPORT -DJOYSTICK_SUPPORT -DCHEATCODE_SUPPORT -DHTTP_LIB_SUPPORT -DPNG_SUPPORT -DZIP_SUPPORT -Isrc/emucore -Isrc/common -Isrc/common/tv_filters -Isrc/emucore/tia -Isrc/emucore/tia/frame-manager -Isrc/json -Isrc/common/repository/sqlite -I/usr/local/include -I/usr/local/include/SDL2 -I/usr/X11R6/include -D_REENTRANT -I/usr/X11R6/include -Isrc/unix -Isrc/gui -Isrc/debugger -Isrc/debugger/gui -Isrc/yacc -Isrc/cheat -Isrc/httplib -c src/common/repository/sqlite/KeyValueRepositorySqlite.cxx -o out/src/common/repository/sqlite/KeyValueRepositorySqlite.o In file included from src/common/repository/sqlite/KeyValueRepositorySqlite.cxx:18: In file included from src/common/repository/sqlite/KeyValueRepositorySqlite.hxx:21: src/common/bspf.hxx:245:37: warning: unsafe pointer arithmetic [-Wunsafe-buffer-usage] const auto pos = std::search(s1.cbegin()+startpos, s1.cend(), ~~~^~~~~~~~ src/common/bspf.hxx:249:56: warning: unsafe pointer arithmetic [-Wunsafe-buffer-usage] return pos == s1.cend() ? string::npos : pos - (s1.cbegin()+startpos); ~~~^~~~~~~~ 2 warnings generated. mkdir -p -p src/common/repository/sqlite/.deps mkdir -p -p out/src/common/repository/sqlite c++ -MMD -MF "src/common/repository/sqlite/.deps/CompositeKeyValueRepositorySqlite.d" -MQ "out/src/common/repository/sqlite/CompositeKeyValueRepositorySqlite.o" -MP -O2 -pipe -I/usr/X11R6/include -I/usr/local/include -x c++ -Wall -Wextra -Wno-unused-parameter -Wno-multichar -Wunused -Woverloaded-virtual -Wnon-virtual-dtor -std=c++17 -Weverything -Wno-c++98-compat-pedantic -Wno-unknown-warning-option -Wno-switch-enum -Wno-conversion -Wno-covered-switch-default -Wno-inconsistent-missing-destructor-override -Wno-float-equal -Wno-exit-time-destructors -Wno-global-constructors -Wno-weak-vtables -Wno-four-char-constants -Wno-padded -Wno-reserved-identifier -Wno-duplicate-enum -fomit-frame-pointer -DSDL_SUPPORT -D_GLIBCXX_USE_CXX11_ABI=1 -DUNIX -DBSPF_UNIX -DGUI_SUPPORT -DWINDOWED_SUPPORT -DSOUND_SUPPORT -DDEBUGGER_SUPPORT -DJOYSTICK_SUPPORT -DCHEATCODE_SUPPORT -DHTTP_LIB_SUPPORT -DPNG_SUPPORT -DZIP_SUPPORT -Isrc/emucore -Isrc/common -Isrc/common/tv_filters -Isrc/emucore/tia -Isrc/emucore/tia/frame-manager -Isrc/json -Isrc/common/repository/sqlite -I/usr/local/include -I/usr/local/include/SDL2 -I/usr/X11R6/include -D_REENTRANT -I/usr/X11R6/include -Isrc/unix -Isrc/gui -Isrc/debugger -Isrc/debugger/gui -Isrc/yacc -Isrc/cheat -Isrc/httplib -c src/common/repository/sqlite/CompositeKeyValueRepositorySqlite.cxx -o out/src/common/repository/sqlite/CompositeKeyValueRepositorySqlite.o In file included from src/common/repository/sqlite/CompositeKeyValueRepositorySqlite.cxx:18: In file included from src/common/repository/sqlite/CompositeKeyValueRepositorySqlite.hxx:21: In file included from src/common/repository/CompositeKeyValueRepository.hxx:23: In file included from src/common/repository/KeyValueRepository.hxx:23: In file included from src/common/Variant.hxx:21: In file included from src/common/Rect.hxx:26: src/common/bspf.hxx:245:37: warning: unsafe pointer arithmetic [-Wunsafe-buffer-usage] const auto pos = std::search(s1.cbegin()+startpos, s1.cend(), ~~~^~~~~~~~ src/common/bspf.hxx:249:56: warning: unsafe pointer arithmetic [-Wunsafe-buffer-usage] return pos == s1.cend() ? string::npos : pos - (s1.cbegin()+startpos); ~~~^~~~~~~~ 2 warnings generated. mkdir -p -p src/common/repository/sqlite/.deps mkdir -p -p out/src/common/repository/sqlite c++ -MMD -MF "src/common/repository/sqlite/.deps/StellaDb.d" -MQ "out/src/common/repository/sqlite/StellaDb.o" -MP -O2 -pipe -I/usr/X11R6/include -I/usr/local/include -x c++ -Wall -Wextra -Wno-unused-parameter -Wno-multichar -Wunused -Woverloaded-virtual -Wnon-virtual-dtor -std=c++17 -Weverything -Wno-c++98-compat-pedantic -Wno-unknown-warning-option -Wno-switch-enum -Wno-conversion -Wno-covered-switch-default -Wno-inconsistent-missing-destructor-override -Wno-float-equal -Wno-exit-time-destructors -Wno-global-constructors -Wno-weak-vtables -Wno-four-char-constants -Wno-padded -Wno-reserved-identifier -Wno-duplicate-enum -fomit-frame-pointer -DSDL_SUPPORT -D_GLIBCXX_USE_CXX11_ABI=1 -DUNIX -DBSPF_UNIX -DGUI_SUPPORT -DWINDOWED_SUPPORT -DSOUND_SUPPORT -DDEBUGGER_SUPPORT -DJOYSTICK_SUPPORT -DCHEATCODE_SUPPORT -DHTTP_LIB_SUPPORT -DPNG_SUPPORT -DZIP_SUPPORT -Isrc/emucore -Isrc/common -Isrc/common/tv_filters -Isrc/emucore/tia -Isrc/emucore/tia/frame-manager -Isrc/json -Isrc/common/repository/sqlite -I/usr/local/include -I/usr/local/include/SDL2 -I/usr/X11R6/include -D_REENTRANT -I/usr/X11R6/include -Isrc/unix -Isrc/gui -Isrc/debugger -Isrc/debugger/gui -Isrc/yacc -Isrc/cheat -Isrc/httplib -c src/common/repository/sqlite/StellaDb.cxx -o out/src/common/repository/sqlite/StellaDb.o In file included from src/common/repository/sqlite/StellaDb.cxx:20: In file included from src/common/repository/sqlite/StellaDb.hxx:21: src/common/bspf.hxx:245:37: warning: unsafe pointer arithmetic [-Wunsafe-buffer-usage] const auto pos = std::search(s1.cbegin()+startpos, s1.cend(), ~~~^~~~~~~~ src/common/bspf.hxx:249:56: warning: unsafe pointer arithmetic [-Wunsafe-buffer-usage] return pos == s1.cend() ? string::npos : pos - (s1.cbegin()+startpos); ~~~^~~~~~~~ In file included from src/common/repository/sqlite/StellaDb.cxx:20: In file included from src/common/repository/sqlite/StellaDb.hxx:25: src/emucore/FSNode.hxx:513:31: warning: unsafe pointer arithmetic [-Wunsafe-buffer-usage] const char* cur = start + str.size() - 2; ~~~~~~^~~~~~~~~~~~ src/emucore/FSNode.hxx:512:19: warning: 'start' is an unsafe pointer used for buffer access [-Wunsafe-buffer-usage] const char* start = str.c_str(); ~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~ src/emucore/FSNode.hxx:513:25: note: used in pointer arithmetic here const char* cur = start + str.size() - 2; ^~~~~ src/emucore/FSNode.hxx:513:19: warning: 'cur' is an unsafe pointer used for buffer access [-Wunsafe-buffer-usage] const char* cur = start + str.size() - 2; ~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~ src/emucore/FSNode.hxx:518:14: note: used in pointer arithmetic here return cur + 1; ^~~ src/emucore/FSNode.hxx:516:11: note: used in pointer arithmetic here --cur; ^~~ 5 warnings generated. mkdir -p -p src/common/repository/sqlite/.deps mkdir -p -p out/src/common/repository/sqlite c++ -MMD -MF "src/common/repository/sqlite/.deps/SqliteDatabase.d" -MQ "out/src/common/repository/sqlite/SqliteDatabase.o" -MP -O2 -pipe -I/usr/X11R6/include -I/usr/local/include -x c++ -Wall -Wextra -Wno-unused-parameter -Wno-multichar -Wunused -Woverloaded-virtual -Wnon-virtual-dtor -std=c++17 -Weverything -Wno-c++98-compat-pedantic -Wno-unknown-warning-option -Wno-switch-enum -Wno-conversion -Wno-covered-switch-default -Wno-inconsistent-missing-destructor-override -Wno-float-equal -Wno-exit-time-destructors -Wno-global-constructors -Wno-weak-vtables -Wno-four-char-constants -Wno-padded -Wno-reserved-identifier -Wno-duplicate-enum -fomit-frame-pointer -DSDL_SUPPORT -D_GLIBCXX_USE_CXX11_ABI=1 -DUNIX -DBSPF_UNIX -DGUI_SUPPORT -DWINDOWED_SUPPORT -DSOUND_SUPPORT -DDEBUGGER_SUPPORT -DJOYSTICK_SUPPORT -DCHEATCODE_SUPPORT -DHTTP_LIB_SUPPORT -DPNG_SUPPORT -DZIP_SUPPORT -Isrc/emucore -Isrc/common -Isrc/common/tv_filters -Isrc/emucore/tia -Isrc/emucore/tia/frame-manager -Isrc/json -Isrc/common/repository/sqlite -I/usr/local/include -I/usr/local/include/SDL2 -I/usr/X11R6/include -D_REENTRANT -I/usr/X11R6/include -Isrc/unix -Isrc/gui -Isrc/debugger -Isrc/debugger/gui -Isrc/yacc -Isrc/cheat -Isrc/httplib -c src/common/repository/sqlite/SqliteDatabase.cxx -o out/src/common/repository/sqlite/SqliteDatabase.o In file included from src/common/repository/sqlite/SqliteDatabase.cxx:20: In file included from src/common/repository/sqlite/SqliteDatabase.hxx:23: src/common/bspf.hxx:245:37: warning: unsafe pointer arithmetic [-Wunsafe-buffer-usage] const auto pos = std::search(s1.cbegin()+startpos, s1.cend(), ~~~^~~~~~~~ src/common/bspf.hxx:249:56: warning: unsafe pointer arithmetic [-Wunsafe-buffer-usage] return pos == s1.cend() ? string::npos : pos - (s1.cbegin()+startpos); ~~~^~~~~~~~ 2 warnings generated. mkdir -p -p src/common/repository/sqlite/.deps mkdir -p -p out/src/common/repository/sqlite c++ -MMD -MF "src/common/repository/sqlite/.deps/SqliteStatement.d" -MQ "out/src/common/repository/sqlite/SqliteStatement.o" -MP -O2 -pipe -I/usr/X11R6/include -I/usr/local/include -x c++ -Wall -Wextra -Wno-unused-parameter -Wno-multichar -Wunused -Woverloaded-virtual -Wnon-virtual-dtor -std=c++17 -Weverything -Wno-c++98-compat-pedantic -Wno-unknown-warning-option -Wno-switch-enum -Wno-conversion -Wno-covered-switch-default -Wno-inconsistent-missing-destructor-override -Wno-float-equal -Wno-exit-time-destructors -Wno-global-constructors -Wno-weak-vtables -Wno-four-char-constants -Wno-padded -Wno-reserved-identifier -Wno-duplicate-enum -fomit-frame-pointer -DSDL_SUPPORT -D_GLIBCXX_USE_CXX11_ABI=1 -DUNIX -DBSPF_UNIX -DGUI_SUPPORT -DWINDOWED_SUPPORT -DSOUND_SUPPORT -DDEBUGGER_SUPPORT -DJOYSTICK_SUPPORT -DCHEATCODE_SUPPORT -DHTTP_LIB_SUPPORT -DPNG_SUPPORT -DZIP_SUPPORT -Isrc/emucore -Isrc/common -Isrc/common/tv_filters -Isrc/emucore/tia -Isrc/emucore/tia/frame-manager -Isrc/json -Isrc/common/repository/sqlite -I/usr/local/include -I/usr/local/include/SDL2 -I/usr/X11R6/include -D_REENTRANT -I/usr/X11R6/include -Isrc/unix -Isrc/gui -Isrc/debugger -Isrc/debugger/gui -Isrc/yacc -Isrc/cheat -Isrc/httplib -c src/common/repository/sqlite/SqliteStatement.cxx -o out/src/common/repository/sqlite/SqliteStatement.o In file included from src/common/repository/sqlite/SqliteStatement.cxx:17: In file included from src/common/repository/sqlite/SqliteStatement.hxx:23: src/common/bspf.hxx:245:37: warning: unsafe pointer arithmetic [-Wunsafe-buffer-usage] const auto pos = std::search(s1.cbegin()+startpos, s1.cend(), ~~~^~~~~~~~ src/common/bspf.hxx:249:56: warning: unsafe pointer arithmetic [-Wunsafe-buffer-usage] return pos == s1.cend() ? string::npos : pos - (s1.cbegin()+startpos); ~~~^~~~~~~~ 2 warnings generated. mkdir -p -p src/common/repository/sqlite/.deps mkdir -p -p out/src/common/repository/sqlite c++ -MMD -MF "src/common/repository/sqlite/.deps/SqliteTransaction.d" -MQ "out/src/common/repository/sqlite/SqliteTransaction.o" -MP -O2 -pipe -I/usr/X11R6/include -I/usr/local/include -x c++ -Wall -Wextra -Wno-unused-parameter -Wno-multichar -Wunused -Woverloaded-virtual -Wnon-virtual-dtor -std=c++17 -Weverything -Wno-c++98-compat-pedantic -Wno-unknown-warning-option -Wno-switch-enum -Wno-conversion -Wno-covered-switch-default -Wno-inconsistent-missing-destructor-override -Wno-float-equal -Wno-exit-time-destructors -Wno-global-constructors -Wno-weak-vtables -Wno-four-char-constants -Wno-padded -Wno-reserved-identifier -Wno-duplicate-enum -fomit-frame-pointer -DSDL_SUPPORT -D_GLIBCXX_USE_CXX11_ABI=1 -DUNIX -DBSPF_UNIX -DGUI_SUPPORT -DWINDOWED_SUPPORT -DSOUND_SUPPORT -DDEBUGGER_SUPPORT -DJOYSTICK_SUPPORT -DCHEATCODE_SUPPORT -DHTTP_LIB_SUPPORT -DPNG_SUPPORT -DZIP_SUPPORT -Isrc/emucore -Isrc/common -Isrc/common/tv_filters -Isrc/emucore/tia -Isrc/emucore/tia/frame-manager -Isrc/json -Isrc/common/repository/sqlite -I/usr/local/include -I/usr/local/include/SDL2 -I/usr/X11R6/include -D_REENTRANT -I/usr/X11R6/include -Isrc/unix -Isrc/gui -Isrc/debugger -Isrc/debugger/gui -Isrc/yacc -Isrc/cheat -Isrc/httplib -c src/common/repository/sqlite/SqliteTransaction.cxx -o out/src/common/repository/sqlite/SqliteTransaction.o In file included from src/common/repository/sqlite/SqliteTransaction.cxx:19: In file included from src/common/repository/sqlite/SqliteDatabase.hxx:23: src/common/bspf.hxx:245:37: warning: unsafe pointer arithmetic [-Wunsafe-buffer-usage] const auto pos = std::search(s1.cbegin()+startpos, s1.cend(), ~~~^~~~~~~~ src/common/bspf.hxx:249:56: warning: unsafe pointer arithmetic [-Wunsafe-buffer-usage] return pos == s1.cend() ? string::npos : pos - (s1.cbegin()+startpos); ~~~^~~~~~~~ 2 warnings generated. c++ -pthread out/src/unix/FSNodePOSIX.o out/src/unix/OSystemUNIX.o out/src/unix/SerialPortUNIX.o out/src/gui/AboutDialog.o out/src/gui/BrowserDialog.o out/src/gui/CheckListWidget.o out/src/gui/ColorWidget.o out/src/gui/ComboDialog.o out/src/gui/CommandDialog.o out/src/gui/CommandMenu.o out/src/gui/ContextMenu.o out/src/gui/DeveloperDialog.o out/src/gui/DialogContainer.o out/src/gui/Dialog.o out/src/gui/EditableWidget.o out/src/gui/EditTextWidget.o out/src/gui/EmulationDialog.o out/src/gui/EventMappingWidget.o out/src/gui/FavoritesManager.o out/src/gui/FileListWidget.o out/src/gui/Font.o out/src/gui/GameInfoDialog.o out/src/gui/GlobalPropsDialog.o out/src/gui/HelpDialog.o out/src/gui/HighScoresDialog.o out/src/gui/HighScoresMenu.o out/src/gui/InputDialog.o out/src/gui/InputTextDialog.o out/src/gui/JoystickDialog.o out/src/gui/LauncherDialog.o out/src/gui/LauncherFileListWidget.o out/src/gui/Launcher.o out/src/gui/ListWidget.o out/src/gui/LoggerDialog.o out/src/gui/MessageBox.o out/src/gui/MessageDialog.o out/src/gui/MessageMenu.o out/src/gui/MinUICommandDialog.o out/src/gui/NavigationWidget.o out/src/gui/OptionsDialog.o out/src/gui/OptionsMenu.o out/src/gui/PlusRomsMenu.o out/src/gui/PlusRomsSetupDialog.o out/src/gui/PopUpWidget.o out/src/gui/ProgressDialog.o out/src/gui/QuadTariDialog.o out/src/gui/R77HelpDialog.o out/src/gui/RadioButtonWidget.o out/src/gui/RomAuditDialog.o out/src/gui/RomInfoWidget.o out/src/gui/ScrollBarWidget.o out/src/gui/SnapshotDialog.o out/src/gui/StellaSettingsDialog.o out/src/gui/StringListWidget.o out/src/gui/TabWidget.o out/src/gui/TimeLineWidget.o out/src/gui/TimeMachineDialog.o out/src/gui/TimeMachine.o out/src/gui/ToolTip.o out/src/gui/UndoHandler.o out/src/gui/UIDialog.o out/src/gui/VideoAudioDialog.o out/src/gui/WhatsNewDialog.o out/src/gui/Widget.o out/src/debugger/BreakpointMap.o out/src/debugger/Debugger.o out/src/debugger/DebuggerParser.o out/src/debugger/CartDebug.o out/src/debugger/CpuDebug.o out/src/debugger/DiStella.o out/src/debugger/RiotDebug.o out/src/debugger/TIADebug.o out/src/debugger/gui/AmigaMouseWidget.o out/src/debugger/gui/AtariMouseWidget.o out/src/debugger/gui/AtariVoxWidget.o out/src/debugger/gui/AudioWidget.o out/src/debugger/gui/BoosterWidget.o out/src/debugger/gui/Cart0840Widget.o out/src/debugger/gui/Cart0FA0Widget.o out/src/debugger/gui/Cart2KWidget.o out/src/debugger/gui/Cart3EPlusWidget.o out/src/debugger/gui/Cart3EWidget.o out/src/debugger/gui/Cart3FWidget.o out/src/debugger/gui/Cart4A50Widget.o out/src/debugger/gui/Cart4KSCWidget.o out/src/debugger/gui/Cart4KWidget.o out/src/debugger/gui/CartARMWidget.o out/src/debugger/gui/CartARWidget.o out/src/debugger/gui/CartBFSCWidget.o out/src/debugger/gui/CartBFWidget.o out/src/debugger/gui/CartBUSWidget.o out/src/debugger/gui/CartBUSInfoWidget.o out/src/debugger/gui/CartCDFWidget.o out/src/debugger/gui/CartCDFInfoWidget.o out/src/debugger/gui/CartCMWidget.o out/src/debugger/gui/CartCTYWidget.o out/src/debugger/gui/CartCVWidget.o out/src/debugger/gui/CartDFSCWidget.o out/src/debugger/gui/CartDFWidget.o out/src/debugger/gui/CartDPCPlusWidget.o out/src/debugger/gui/CartDPCWidget.o out/src/debugger/gui/CartE0Widget.o out/src/debugger/gui/CartEnhancedWidget.o out/src/debugger/gui/CartE7Widget.o out/src/debugger/gui/CartEFSCWidget.o out/src/debugger/gui/CartEFWidget.o out/src/debugger/gui/CartF0Widget.o out/src/debugger/gui/CartF4SCWidget.o out/src/debugger/gui/CartF4Widget.o out/src/debugger/gui/CartF6SCWidget.o out/src/debugger/gui/CartF6Widget.o out/src/debugger/gui/CartF8SCWidget.o out/src/debugger/gui/CartF8Widget.o out/src/debugger/gui/CartFA2Widget.o out/src/debugger/gui/CartFAWidget.o out/src/debugger/gui/CartFCWidget.o out/src/debugger/gui/CartFEWidget.o out/src/debugger/gui/CartMDMWidget.o out/src/debugger/gui/CartRamWidget.o out/src/debugger/gui/CartSBWidget.o out/src/debugger/gui/CartTVBoyWidget.o out/src/debugger/gui/CartUAWidget.o out/src/debugger/gui/CartWDWidget.o out/src/debugger/gui/CartX07Widget.o out/src/debugger/gui/CartDebugWidget.o out/src/debugger/gui/CpuWidget.o out/src/debugger/gui/DataGridOpsWidget.o out/src/debugger/gui/DataGridRamWidget.o out/src/debugger/gui/DataGridWidget.o out/src/debugger/gui/DebuggerDialog.o out/src/debugger/gui/DelayQueueWidget.o out/src/debugger/gui/DrivingWidget.o out/src/debugger/gui/FlashWidget.o out/src/debugger/gui/GenesisWidget.o out/src/debugger/gui/JoystickWidget.o out/src/debugger/gui/KeyboardWidget.o out/src/debugger/gui/PaddleWidget.o out/src/debugger/gui/PointingDeviceWidget.o out/src/debugger/gui/PromptWidget.o out/src/debugger/gui/QuadTariWidget.o out/src/debugger/gui/RamWidget.o out/src/debugger/gui/RiotRamWidget.o out/src/debugger/gui/RiotWidget.o out/src/debugger/gui/RomListSettings.o out/src/debugger/gui/RomListWidget.o out/src/debugger/gui/RomWidget.o out/src/debugger/gui/SaveKeyWidget.o out/src/debugger/gui/TiaInfoWidget.o out/src/debugger/gui/TiaOutputWidget.o out/src/debugger/gui/TiaWidget.o out/src/debugger/gui/TiaZoomWidget.o out/src/debugger/gui/ToggleBitWidget.o out/src/debugger/gui/TogglePixelWidget.o out/src/debugger/gui/ToggleWidget.o out/src/debugger/gui/TrakBallWidget.o out/src/yacc/YaccParser.o out/src/cheat/CheatCodeDialog.o out/src/cheat/CheatManager.o out/src/cheat/CheetahCheat.o out/src/cheat/BankRomCheat.o out/src/cheat/RamCheat.o out/src/common/AudioQueue.o out/src/common/AudioSettings.o out/src/common/Base.o out/src/common/DevSettingsHandler.o out/src/common/EventHandlerSDL2.o out/src/common/FBBackendSDL2.o out/src/common/FBSurfaceSDL2.o out/src/common/FpsMeter.o out/src/common/FSNodeZIP.o out/src/common/HighScoresManager.o out/src/common/JoyMap.o out/src/common/KeyMap.o out/src/common/Logger.o out/src/common/main.o out/src/common/MouseControl.o out/src/common/PaletteHandler.o out/src/common/PhosphorHandler.o out/src/common/PhysicalJoystick.o out/src/common/PJoystickHandler.o out/src/common/PKeyboardHandler.o out/src/common/PNGLibrary.o out/src/common/RewindManager.o out/src/common/SoundSDL2.o out/src/common/StaggeredLogger.o out/src/common/StateManager.o out/src/common/ThreadDebugging.o out/src/common/TimerManager.o out/src/common/VideoModeHandler.o out/src/common/ZipHandler.o out/src/common/sdl_blitter/BilinearBlitter.o out/src/common/sdl_blitter/QisBlitter.o out/src/common/sdl_blitter/BlitterFactory.o out/src/common/repository/KeyValueRepositoryPropertyFile.o out/src/common/repository/KeyValueRepositoryJsonFile.o out/src/common/repository/KeyValueRepositoryConfigfile.o out/src/common/repository/CompositeKVRJsonAdapter.o out/src/common/repository/CompositeKeyValueRepository.o out/src/common/audio/SimpleResampler.o out/src/common/audio/ConvolutionBuffer.o out/src/common/audio/LanczosResampler.o out/src/common/audio/HighPass.o out/src/common/tv_filters/NTSCFilter.o out/src/common/tv_filters/AtariNTSC.o out/src/emucore/AtariVox.o out/src/emucore/Bankswitch.o out/src/emucore/Booster.o out/src/emucore/Cart.o out/src/emucore/CartARM.o out/src/emucore/CartCreator.o out/src/emucore/CartDetector.o out/src/emucore/CartEnhanced.o out/src/emucore/Cart0840.o out/src/emucore/Cart0FA0.o out/src/emucore/Cart2K.o out/src/emucore/Cart3E.o out/src/emucore/Cart3EPlus.o out/src/emucore/Cart3EX.o out/src/emucore/Cart3F.o out/src/emucore/Cart4A50.o out/src/emucore/Cart4K.o out/src/emucore/Cart4KSC.o out/src/emucore/CartAR.o out/src/emucore/CartBUS.o out/src/emucore/CartCDF.o out/src/emucore/CartCM.o out/src/emucore/CartCTY.o out/src/emucore/CartCV.o out/src/emucore/CartDPC.o out/src/emucore/CartDPCPlus.o out/src/emucore/CartE0.o out/src/emucore/CartE7.o out/src/emucore/CartEF.o out/src/emucore/CartEFSC.o out/src/emucore/CartBF.o out/src/emucore/CartBFSC.o out/src/emucore/CartDF.o out/src/emucore/CartDFSC.o out/src/emucore/CartF0.o out/src/emucore/CartF4.o out/src/emucore/CartF4SC.o out/src/emucore/CartF6.o out/src/emucore/CartF6SC.o out/src/emucore/CartF8.o out/src/emucore/CartF8SC.o out/src/emucore/CartFA.o out/src/emucore/CartFA2.o out/src/emucore/CartFC.o out/src/emucore/CartFE.o out/src/emucore/CartMDM.o out/src/emucore/CartMVC.o out/src/emucore/CartSB.o out/src/emucore/CartTVBoy.o out/src/emucore/CartUA.o out/src/emucore/CartWD.o out/src/emucore/CartX07.o out/src/emucore/CompuMate.o out/src/emucore/Console.o out/src/emucore/Control.o out/src/emucore/ControllerDetector.o out/src/emucore/DispatchResult.o out/src/emucore/Driving.o out/src/emucore/EventHandler.o out/src/emucore/EmulationTiming.o out/src/emucore/EmulationWorker.o out/src/emucore/FrameBuffer.o out/src/emucore/FBSurface.o out/src/emucore/FSNode.o out/src/emucore/Genesis.o out/src/emucore/GlobalKeyHandler.o out/src/emucore/Joystick.o out/src/emucore/Keyboard.o out/src/emucore/KidVid.o out/src/emucore/Lightgun.o out/src/emucore/MindLink.o out/src/emucore/M6502.o out/src/emucore/M6532.o out/src/emucore/MT24LC256.o out/src/emucore/MD5.o out/src/emucore/OSystem.o out/src/emucore/OSystemStandalone.o out/src/emucore/Paddles.o out/src/emucore/PlusROM.o out/src/emucore/PointingDevice.o out/src/emucore/ProfilingRunner.o out/src/emucore/Props.o out/src/emucore/PropsSet.o out/src/emucore/QuadTari.o out/src/emucore/SaveKey.o out/src/emucore/Serializer.o out/src/emucore/Settings.o out/src/emucore/Switches.o out/src/emucore/System.o out/src/emucore/TIASurface.o out/src/emucore/Thumbulator.o out/src/emucore/tia/TIA.o out/src/emucore/tia/Playfield.o out/src/emucore/tia/DrawCounterDecodes.o out/src/emucore/tia/Missile.o out/src/emucore/tia/Player.o out/src/emucore/tia/Ball.o out/src/emucore/tia/Background.o out/src/emucore/tia/LatchedInput.o out/src/emucore/tia/AnalogReadout.o out/src/emucore/tia/Audio.o out/src/emucore/tia/AudioChannel.o out/src/emucore/tia/frame-manager/FrameManager.o out/src/emucore/tia/frame-manager/AbstractFrameManager.o out/src/emucore/tia/frame-manager/FrameLayoutDetector.o out/src/emucore/tia/frame-manager/JitterEmulation.o out/src/common/repository/sqlite/AbstractKeyValueRepositorySqlite.o out/src/common/repository/sqlite/KeyValueRepositorySqlite.o out/src/common/repository/sqlite/CompositeKeyValueRepositorySqlite.o out/src/common/repository/sqlite/StellaDb.o out/src/common/repository/sqlite/SqliteDatabase.o out/src/common/repository/sqlite/SqliteStatement.o out/src/common/repository/sqlite/SqliteTransaction.o -L/usr/local/lib -lSDL2 -L/usr/X11R6/lib -L/usr/local/lib -lpng -L/usr/local/lib -lsqlite3 -lz -o stella >>> Running fake in emulators/stella at 1714012562.22 ===> emulators/stella ===> Faking installation for stella-6.7.1 /exopi-obj/pobj/stella-6.7.1/bin/install -c -s -m 755 /exopi-obj/pobj/stella-6.7.1/stella-6.7.1/stella /exopi-obj/pobj/stella-6.7.1/fake-amd64/usr/local/bin /exopi-obj/pobj/stella-6.7.1/bin/install -d -m 755 /exopi-obj/pobj/stella-6.7.1/fake-amd64/usr/local/share/doc/stella /exopi-obj/pobj/stella-6.7.1/bin/install -c -m 644 /exopi-obj/pobj/stella-6.7.1/stella-6.7.1/docs/*.html /exopi-obj/pobj/stella-6.7.1/fake-amd64/usr/local/share/doc/stella /exopi-obj/pobj/stella-6.7.1/bin/install -d -m 755 /exopi-obj/pobj/stella-6.7.1/fake-amd64/usr/local/share/doc/stella/graphics /exopi-obj/pobj/stella-6.7.1/bin/install -c -m 644 /exopi-obj/pobj/stella-6.7.1/stella-6.7.1/docs/graphics/*.png /exopi-obj/pobj/stella-6.7.1/fake-amd64/usr/local/share/doc/stella/graphics/ >>> Running package in emulators/stella at 1714012563.24 ===> emulators/stella `/exopi-obj/pobj/stella-6.7.1/fake-amd64/.fake_done' is up to date. ===> Building package for stella-6.7.1 Create /exopi-cvs/ports/packages/amd64/all/stella-6.7.1.tgz Creating package stella-6.7.1 reading plist| checking dependencies| checking dependencies|databases/sqlite3 checking dependencies|devel/sdl2 checking dependencies|graphics/png checksumming| checksumming| | 0% checksumming|* | 1% checksumming|* | 2% checksumming|** | 3% checksumming|** | 4% checksumming|*** | 5% checksumming|**** | 6% checksumming|**** | 7% checksumming|***** | 8% checksumming|***** | 9% checksumming|****** | 10% checksumming|******* | 11% checksumming|******* | 12% checksumming|******** | 13% checksumming|******** | 14% checksumming|********* | 15% checksumming|********** | 16% checksumming|********** | 17% checksumming|*********** | 18% checksumming|*********** | 19% checksumming|************ | 20% checksumming|************* | 21% checksumming|************* | 22% checksumming|************** | 23% checksumming|************** | 24% checksumming|*************** | 25% checksumming|**************** | 25% checksumming|**************** | 26% checksumming|***************** | 27% checksumming|***************** | 28% checksumming|****************** | 29% checksumming|******************* | 30% checksumming|******************* | 31% checksumming|******************** | 32% checksumming|******************** | 33% checksumming|********************* | 34% checksumming|********************** | 35% checksumming|********************** | 36% checksumming|*********************** | 37% checksumming|*********************** | 38% checksumming|************************ | 39% checksumming|************************* | 40% checksumming|************************* | 41% checksumming|************************** | 42% checksumming|************************** | 43% checksumming|*************************** | 44% checksumming|**************************** | 45% checksumming|**************************** | 46% checksumming|***************************** | 47% checksumming|***************************** | 48% checksumming|****************************** | 49% checksumming|******************************* | 50% checksumming|******************************* | 51% checksumming|******************************** | 52% checksumming|******************************** | 53% checksumming|********************************* | 54% checksumming|********************************* | 55% checksumming|********************************** | 56% checksumming|*********************************** | 57% checksumming|*********************************** | 58% checksumming|************************************ | 59% checksumming|************************************ | 60% checksumming|************************************* | 61% checksumming|************************************** | 62% checksumming|************************************** | 63% checksumming|*************************************** | 64% checksumming|*************************************** | 65% checksumming|**************************************** | 66% checksumming|***************************************** | 67% checksumming|***************************************** | 68% checksumming|****************************************** | 69% checksumming|****************************************** | 70% checksumming|******************************************* | 71% checksumming|******************************************** | 72% checksumming|******************************************** | 73% checksumming|********************************************* | 74% checksumming|********************************************* | 75% checksumming|********************************************** | 75% checksumming|*********************************************** | 76% checksumming|*********************************************** | 77% checksumming|************************************************ | 78% checksumming|************************************************ | 79% checksumming|************************************************* | 80% checksumming|************************************************** | 81% checksumming|************************************************** | 82% checksumming|*************************************************** | 83% checksumming|*************************************************** | 84% checksumming|**************************************************** | 85% checksumming|***************************************************** | 86% checksumming|***************************************************** | 87% checksumming|****************************************************** | 88% checksumming|****************************************************** | 89% checksumming|******************************************************* | 90% checksumming|******************************************************** | 91% checksumming|******************************************************** | 92% checksumming|********************************************************* | 93% checksumming|********************************************************* | 94% checksumming|********************************************************** | 95% checksumming|*********************************************************** | 96% checksumming|*********************************************************** | 97% checksumming|************************************************************ | 98% checksumming|************************************************************ | 99% checksumming|*************************************************************|100% archiving| archiving| | 0% archiving|************** | 21% archiving|*************************** | 43% archiving|***************************************** | 64% archiving|******************************************************* | 85% archiving|********************************************************** | 91% archiving|*********************************************************** | 92% archiving|************************************************************ | 94% archiving|************************************************************* | 95% archiving|************************************************************* | 96% archiving|************************************************************** | 96% archiving|************************************************************** | 97% archiving|*************************************************************** | 98% archiving|*************************************************************** | 99% archiving|****************************************************************| 99% archiving|****************************************************************|100% Link to /exopi-cvs/ports/packages/amd64/ftp/stella-6.7.1.tgz >>> Running clean in emulators/stella at 1714012567.18 ===> emulators/stella ===> Cleaning for stella-6.7.1 >>> Ended at 1714012567.60 max_stuck=103.68/depends=3.01/show-prepare-results=1.54/junk=1.95/patch=2.26/configure=2.57/build=1561.93/fake=1.03/package=3.94/clean=0.45