13
0

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'
This commit is contained in:
John Emmas 2015-02-13 11:37:00 +00:00
parent a3857b5d2c
commit 5ec93d18e1

View File

@ -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