mirror of
https://github.com/mpusz/mp-units.git
synced 2025-08-04 12:54:25 +02:00
Replace naked pragmas with defines
This commit is contained in:
@@ -29,9 +29,11 @@
|
||||
#include <units/bits/pow.h>
|
||||
#include <cassert>
|
||||
|
||||
#define UNITS_PRAGMA(X) _Pragma(#X)
|
||||
#ifdef _MSC_VER
|
||||
#pragma warning (push)
|
||||
#pragma warning (disable:4244) // warning C4244: 'argument': conversion from 'intmax_t' to 'T', possible loss of data with T=int
|
||||
#define UNITS_DIAGNOSTIC_PUSH UNITS_PRAGMA(warning(push))
|
||||
#define UNITS_DIAGNOSTIC_IGNORE_LOSSY_CONVERSION UNITS_PRAGMA(warning(disable : 4244))
|
||||
// warning C4244: 'argument': conversion from 'intmax_t' to 'T', possible loss of data with T=int
|
||||
#endif //_MSC_VER
|
||||
|
||||
namespace units {
|
||||
|
Reference in New Issue
Block a user