summaryrefslogtreecommitdiff
path: root/ui/wx_form_build_hide_warnings.h
diff options
context:
space:
mode:
Diffstat (limited to 'ui/wx_form_build_hide_warnings.h')
-rw-r--r--ui/wx_form_build_hide_warnings.h6
1 files changed, 5 insertions, 1 deletions
diff --git a/ui/wx_form_build_hide_warnings.h b/ui/wx_form_build_hide_warnings.h
index 277fa0e7..5988aa12 100644
--- a/ui/wx_form_build_hide_warnings.h
+++ b/ui/wx_form_build_hide_warnings.h
@@ -7,10 +7,14 @@
#ifndef WX_FORM_BUILD_230948324234234
#define WX_FORM_BUILD_230948324234234
-//hide compiler warnings in generated code
+//pamper over wxFormBuilder "sub-optimal" code
#ifdef __GNUC__
#pragma GCC diagnostic ignored "-Wunused-but-set-variable"
+#pragma GCC diagnostic ignored "-Wunused-variable"
+
+#elif defined _MSC_VER
+#pragma warning(disable: 4189)
#endif
#endif //WX_FORM_BUILD_230948324234234
bgstack15