diff options
author | Stanislaw Halik <sthalik@misaki.pl> | 2018-05-30 07:22:43 +0200 |
---|---|---|
committer | Stanislaw Halik <sthalik@misaki.pl> | 2018-05-30 07:26:21 +0200 |
commit | a1655ee916ca252be091c5188d9330adfd6ae928 (patch) | |
tree | 3e393eac166cb6719552df1495ae16afb6d5b6e3 /variant/default/main.cpp | |
parent | 4ad02e44686d955b32da8309a306cf789b00c1d2 (diff) |
opentrack: clang in qt creator shut up
Diffstat (limited to 'variant/default/main.cpp')
-rw-r--r-- | variant/default/main.cpp | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/variant/default/main.cpp b/variant/default/main.cpp index 3ee93422..4c41e33c 100644 --- a/variant/default/main.cpp +++ b/variant/default/main.cpp @@ -5,12 +5,17 @@ # include <windows.h> #endif +#if defined Q_CREATOR_RUN +# pragma GCC diagnostic ignored "-Wmain" +#endif + int main(int argc, char** argv) { return run_application(argc, argv, []() { return new main_window; }); } #if defined _MSC_VER + int CALLBACK WinMain(HINSTANCE, HINSTANCE, LPSTR, int /* nCmdShow */) { return main(__argc, __argv); |