diff options
author | Stanislaw Halik <sthalik@misaki.pl> | 2022-11-12 17:48:01 +0100 |
---|---|---|
committer | Stanislaw Halik <sthalik@misaki.pl> | 2022-11-12 18:24:55 +0100 |
commit | b84cfa301e2fb131275711c67a2e91e3cda65c4e (patch) | |
tree | d060791ca783f6b9c4da5959535ec0eb85dd73cf /loader/init.cpp | |
parent | eea6fad65d5c9fecfb47c4a1c516c253cee85fd2 (diff) |
loader: fix static initializer mess
Diffstat (limited to 'loader/init.cpp')
-rw-r--r-- | loader/init.cpp | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/loader/init.cpp b/loader/init.cpp index b4733ca7..89d9d6c9 100644 --- a/loader/init.cpp +++ b/loader/init.cpp @@ -10,6 +10,10 @@ extern "C" __declspec(dllimport) long WINAPI RtlGetVersion(PRTL_OSVERSIONINFOEXW #ifdef _MSC_VER #pragma comment(lib, "ntdll.lib") #endif +#if defined __GNUG__ && !defined __clang__ +#pragma GCC diagnostic ignored "-Wmissing-field-initializers" +#endif + #endif // _WIN32 namespace floormat::loader_detail { @@ -35,7 +39,7 @@ static void system_init_() #endif } -void system_init() +void loader_impl::system_init() { static bool once = false; if (once) |