ROSE 0.11.145.147
WarningsOff.h
1// WARNING: Changes to this file must be contributed back to Sawyer or else they will
2// be clobbered by the next update from Sawyer. The Sawyer repository is at
3// https://gitlab.com/charger7534/sawyer.git.
4
5
6
7
8// Do not protect this file with include-once macros.
9
10// This file can be included to turn off certain warnings and re-enable them by including WarningsRestore.h
11
12#ifdef SAWYER_CONFIGURED
13# if _MSC_VER
14# pragma warning(push)
15
16 // Warning 4251: class 'XXX' needs to have dll-interface to be used by clients of class 'YYY'.
17 // See http://unknownroad.com/rtfm/VisualStudio/warningC4251.html for a discussion of this warning.
18 // We are turning this warning off within Sawyer header files because we are not trying to have portability over
19 // different versions of its prerequisite libraries (or even over its own *.C components, which also produce these
20 // warnings). In fact, we also don't try to be portable across different versions of Sawyer or compilers.
21# pragma warning(disable:4251)
22
23 // Warning 4996: This function or variable may be unsafe.
24 // This warning is emitted even for safe usage of functions like fopen, strerror, localtime, getenv, sprintf...
25# pragma warning(disable:4996)
26
27# endif
28#else
29# error "The <Sawyer/Sawyer.h> file must have been included already."
30#endif