Boost logo

Boost Users :

From: Isaac Lascasas (pisiiki3_at_[hidden])
Date: 2008-08-15 11:08:19


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" <cowwoc_at_[hidden]>
Sent: Friday, August 15, 2008 8:32 AM
To: <boost-users_at_[hidden]>
Subject: [Boost-users] New compiler warnings triggered by Boost 1.36

>
> 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-tp18994472p18994472.html
> Sent from the Boost - Users mailing list archive at Nabble.com.
>
> _______________________________________________
> Boost-users mailing list
> Boost-users_at_[hidden]
> http://lists.boost.org/mailman/listinfo.cgi/boost-users
>


Boost-users list run by williamkempf at hotmail.com, kalb at libertysoft.com, bjorn.karlsson at readsoft.com, gregod at cs.rpi.edu, wekempf at cox.net