From 5ec93d18e16f83ff4548ea27379c813c8f42e413 Mon Sep 17 00:00:00 2001 From: John Emmas Date: Fri, 13 Feb 2015 11:37:00 +0000 Subject: [PATCH] When building with MSVC add a couple of new pragmas to cut down on the most frequent compiler warnings, namely:- 1) C4244 (conversion loses data) - e.g. when re-assigning a var of (say) int64_t to a lesser type, such as int32_t 2) C4275 (an exported class was derived from a class which is not exportable) - e.g. when deriving classes from std::set, std::exception or some other class which isn't declared with 'dllexport' --- msvc_extra_headers/ardourext/sys/targetsxs.h.input | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/msvc_extra_headers/ardourext/sys/targetsxs.h.input b/msvc_extra_headers/ardourext/sys/targetsxs.h.input index e508df083d..6569407ac8 100644 --- a/msvc_extra_headers/ardourext/sys/targetsxs.h.input +++ b/msvc_extra_headers/ardourext/sys/targetsxs.h.input @@ -1,7 +1,7 @@ #ifndef _TARGETSXS_H_ #define _TARGETSXS_H_ -#pragma warning( disable : 4250 4996 ) +#pragma warning( disable : 4244 4250 4275 4996 ) #ifndef LV2_SUPPORT #define LV2_SUPPORT 1