Opened 16 years ago
Last modified 14 years ago
#775 closed Bugs (fixed)
Warnings on MSVC 2005 — at Version 1
| Reported by: | e4lam | Owned by: | John Maddock |
|---|---|---|---|
| Milestone: | Component: | config | |
| Version: | None | Severity: | Problem |
| Keywords: | Cc: |
Description (last modified by )
I've found that when using Boost on Microsoft Visual Studio C++ 2005, I get warning C4103 when
including any boost header which end up including:
abi_{prefix,suffix}.hpp
(eg. iostreams/filter/zlib.hpp)
or which manually performs a
#include BOOST_ABI_{PREFIX,SUFFIX}
(eg. regex/v4/regex_traits_defaults.hpp).
An explanation for the warning can be found here:
http://windowssdk.msdn.microsoft.com/en-us/library/t4d0762d.aspx
What is happening is that config/abi/msvc_{prefix,suffix}.hpp performs "#pragma
pack(push,8)" (in msvc_prefix.hpp) and then performs a "#pragma pack(pop)" (in msvc_suffix.hpp). This leads the compiler to think that the packing alignment has erroneously changed, generating unnecessary warnings.
Change History (1)
comment:1 by , 15 years ago
| Component: | build → config |
|---|---|
| Description: | modified (diff) |
| Severity: | → Problem |
Note:
See TracTickets
for help on using tickets.
