Try to include directly boost/thread.hpp, I get the same warning when I use
boost/mutex.hpp alone for example. Maybe you can still keep the warning
enabled with
this "trick".
Regards,
Isaac Lascasas.
--------------------------------------------------
From: "cowwoc"
When I compile my code against Boost 1.36 I get:
3>C:\Program Files\boost_1_36_0\boost/config/abi_prefix.hpp(19) : warning C4103: 'c:\program files\boost_1_36_0\boost\config\abi_prefix.hpp' : alignment changed after including header, may be due to missing #pragma pack(pop) 3>C:\Program Files\boost_1_36_0\boost/thread/exceptions.hpp(22) : warning C4103: 'c:\program files\boost_1_36_0\boost\thread\exceptions.hpp' : alignment changed after including header, may be due to missing #pragma pack(pop) 3>C:\Program Files\boost_1_36_0\boost/config/abi_suffix.hpp(20) : warning C4103: 'c:\program files\boost_1_36_0\boost\config\abi_suffix.hpp' : alignment changed after including header, may be due to missing #pragma pack(pop) 3>C:\Program Files\boost_1_36_0\boost/thread/exceptions.hpp(108) : warning C4103: 'c:\program files\boost_1_36_0\boost\thread\exceptions.hpp' : alignment changed after including header, may be due to missing #pragma pack(pop) 3>C:\Program Files\boost_1_36_0\boost/config/abi_prefix.hpp(19) : warning C4103: 'c:\program files\boost_1_36_0\boost\config\abi_prefix.hpp' : alignment changed after including header, may be due to missing #pragma pack(pop) 3>c:\program files\boost_1_36_0\boost\thread\win32\thread_primitives.hpp(151) : warning C4103: 'c:\program files\boost_1_36_0\boost\thread\win32\thread_primitives.hpp' : alignment changed after including header, may be due to missing #pragma pack(pop) 3>C:\Program Files\boost_1_36_0\boost/config/abi_suffix.hpp(20) : warning C4103: 'c:\program files\boost_1_36_0\boost\config\abi_suffix.hpp' : alignment changed after including header, may be due to missing #pragma pack(pop) 3>c:\program files\boost_1_36_0\boost\thread\win32\thread_primitives.hpp(396) : warning C4103: 'c:\program files\boost_1_36_0\boost\thread\win32\thread_primitives.hpp' : alignment changed after including header, may be due to missing #pragma pack(pop) 3>C:\Program Files\boost_1_36_0\boost/config/abi_prefix.hpp(19) : warning C4103: 'c:\program files\boost_1_36_0\boost\config\abi_prefix.hpp' : alignment changed after including header, may be due to missing #pragma pack(pop) 3>c:\program files\boost_1_36_0\boost\thread\win32\interlocked_read.hpp(14) : warning C4103: 'c:\program files\boost_1_36_0\boost\thread\win32\interlocked_read.hpp' : alignment changed after including header, may be due to missing #pragma pack(pop) 3>C:\Program Files\boost_1_36_0\boost/config/abi_suffix.hpp(20) : warning C4103: 'c:\program files\boost_1_36_0\boost\config\abi_suffix.hpp' : alignment changed after including header, may be due to missing #pragma pack(pop) 3>c:\program files\boost_1_36_0\boost\thread\win32\interlocked_read.hpp(78) : warning C4103: 'c:\program files\boost_1_36_0\boost\thread\win32\interlocked_read.hpp' : alignment changed after including header, may be due to missing #pragma pack(pop)
I don't recall seeing this in 1.35 and I compiled against it two days ago. I am compiling under Visual Studio 2008, in x64 mode. How do I fix these warnings?
Thank you, Gili -- View this message in context: http://www.nabble.com/New-compiler-warnings-triggered-by-Boost-1.36-tp189944... Sent from the Boost - Users mailing list archive at Nabble.com.
_______________________________________________ Boost-users mailing list Boost-users@lists.boost.org http://lists.boost.org/mailman/listinfo.cgi/boost-users