summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authormadmaxoft <github@xoft.cz>2014-01-12 08:43:13 +0100
committermadmaxoft <github@xoft.cz>2014-01-12 08:43:13 +0100
commit328b2db252fe42774cc001bf1a62d32fe7317c72 (patch)
treebaa0d3cdd2b74fb9fa8078eb14710c0c6af43a97
parentMerge pull request #532 from mc-server/LuaStateErrorHandler (diff)
downloadcuberite-328b2db252fe42774cc001bf1a62d32fe7317c72.tar
cuberite-328b2db252fe42774cc001bf1a62d32fe7317c72.tar.gz
cuberite-328b2db252fe42774cc001bf1a62d32fe7317c72.tar.bz2
cuberite-328b2db252fe42774cc001bf1a62d32fe7317c72.tar.lz
cuberite-328b2db252fe42774cc001bf1a62d32fe7317c72.tar.xz
cuberite-328b2db252fe42774cc001bf1a62d32fe7317c72.tar.zst
cuberite-328b2db252fe42774cc001bf1a62d32fe7317c72.zip
-rw-r--r--src/Bindings/tolua++.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/Bindings/tolua++.h b/src/Bindings/tolua++.h
index 4dfd06318..73e65b746 100644
--- a/src/Bindings/tolua++.h
+++ b/src/Bindings/tolua++.h
@@ -2,12 +2,18 @@
// tolua++.h
// Redirection file, needed because ToLua++ generates the Bindings.cpp file with >> #include "tolua++.h" <<
+// Only used from Bindings.cpp
#include "tolua++/include/tolua++.h"
+#ifdef _MSC_VER
+ // Disable specific warnings for the generated Bindings.cpp file:
+ #pragma warning(disable: 4800) // 'int' : forcing value to bool 'true' or 'false' (performance warning)
+#endif // _MSC_VER
+