mirror of https://github.com/BOINC/boinc.git
lib: Use MSVC warning override scope
pragma warning(default: X) sets the 'X' warning to the DEFAULT state. Correct way is disable warning for scope and restore it to state BEFORE the scope when it ends. See https://www.viva64.com/en/w/v665/print/
This commit is contained in:
parent
e361a6dc0f
commit
07729834ba
|
@ -75,6 +75,7 @@ protected:
|
|||
// See lib/msg_log.C for commentary
|
||||
//
|
||||
#if _MSC_VER >= 1300
|
||||
#pragma warning(push)
|
||||
#pragma warning(disable: 4512) // assignment operator could not be generated
|
||||
#endif
|
||||
|
||||
|
@ -94,7 +95,7 @@ public:
|
|||
};
|
||||
|
||||
#if _MSC_VER >= 1300
|
||||
#pragma warning(default: 4512) // assignment operator could not be generated
|
||||
#pragma warning(pop)
|
||||
#endif
|
||||
|
||||
#ifdef _USING_FCGI_
|
||||
|
|
Loading…
Reference in New Issue