--- nono/util/viewcgrom/viewcgrom.cpp 2026/04/29 17:05:36 1.1.1.6 +++ nono/util/viewcgrom/viewcgrom.cpp 2026/04/29 17:05:58 1.1.1.8 @@ -1,19 +1,22 @@ // // X680x0 CGROM ビューア // -// Copyright (C) 2012-2019 isaki@NetBSD.org +// Copyright (C) 2012-2019 Tetsuya Isaki // #include "wxheader.h" +PRAGMA_PUSH_WARNINGS #include #include #include #include #include +PRAGMA_POP_WARNINGS #include +#include #define TITLE wxT("X680x0 CGROMビューア") -#define COPYRIGHT wxT("Copyright (C) 2012-2019 isaki@NetBSD.org") +#define COPYRIGHT wxT("Copyright (C) 2012-2019 Tetsuya Isaki") /* CGROM.DAT の大きさ(バイト単位) */ #define CGROM_SIZE (768 * 1024) @@ -108,7 +111,7 @@ class MyFrame : public wxFrame class MyApp : public wxApp { public: - virtual bool OnInit(); + bool OnInit() override; wxString filename; private: @@ -116,7 +119,10 @@ class MyApp : public wxApp static const wxCmdLineEntryDesc desc[]; }; +// IMPLEMENT_APP() は闇マクロすぎて clang のちからには耐えられない +PRAGMA_PUSH_WARNINGS IMPLEMENT_APP(MyApp) +PRAGMA_POP_WARNINGS // ---