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:
parent
a3857b5d2c
commit
5ec93d18e1
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user