Opened 11 years ago
Closed 11 years ago
#6185 closed Bugs (fixed)
_SCL_SECURE_NO_WARNINGS macro redefinition in Boost.Move
Reported by: | Owned by: | Ion Gaztañaga | |
---|---|---|---|
Milestone: | To Be Determined | Component: | move |
Version: | Boost 1.48.0 | Severity: | Regression |
Keywords: | _SCL_SECURE_NO_WARNINGS C4005 | Cc: |
Description
In the "boost/move/move.hpp" (line 28) header file _SCL_SECURE_NO_WARNINGS macro is defined without checking whether previous definition exists:
#ifdef BOOST_MSVC #ifndef _CRT_SECURE_NO_DEPRECATE #define BOOST_INTERPROCESS_CRT_SECURE_NO_DEPRECATE #define _CRT_SECURE_NO_DEPRECATE #define _SCL_SECURE_NO_WARNINGS #endif #pragma warning (push) #pragma warning(disable:4996) #endif
Correct code:
#ifdef BOOST_MSVC #ifndef _CRT_SECURE_NO_DEPRECATE #define BOOST_INTERPROCESS_CRT_SECURE_NO_DEPRECATE #define _CRT_SECURE_NO_DEPRECATE #endif #ifndef _SCL_SECURE_NO_WARNINGS #define _SCL_SECURE_NO_WARNINGS #endif #pragma warning (push) #pragma warning(disable:4996) #endif
Change History (3)
follow-up: 2 comment:1 by , 11 years ago
comment:2 by , 11 years ago
Severity: | Problem → Regression |
---|
Replying to Olaf van der Spek <olafvdspek@…>:
IMO the severity should be a bit higher. This produces lots of warnings.
Note:
See TracTickets
for help on using tickets.
IMO the severity should be a bit higher. This produces lots of warnings.