[general] MSVC71 Warnings Off?
Hi all, I guess this question could have been asked before. But I've failed to find an answer from my basic search from the web so far. So please try to bear with me if it is old stuff. Our development environment is using MSVC71 at the moment, and our coding standard requires warning level 4 and 64-bit compatiblity check of the compiler. But whenever I use some of the Boost library headers (most notably Boost.Function, Boost.Integer and Boost.uBLAS for now, and we have not started using most of the other libraries yet), there are tons of warnings from the compiler. As our development team view compiler warnings as important signs of potential problems in our own code, we'd like to suppress warnings from Boost headers (assuming that they are at least better tested than our code). So my question is: Is there a way for us to suppress warnings from Boost headers without affecting the warning level significantly on our own code? Any idea is greatly appreciated. :) Cheers, Freddie -- Wu Yinghui, Freddie Research & Development Software Engineer Volume Interactions Pte Ltd 1 Kim Seng Promenade, #12-01 Great World City East Tower Singapore 237994 Tel: +65 62226962 (Ext 216) Fax: +65 62226215 Email: yhwu@volumeinteractions.com URL: http://www.volumeinteractions.com Important: This message is intended for the recipient(s) addressed above. It contains privileged and confidential information. If you are not the intended recipient, please notify the sender immediately by replying to this message and then delete it from your system. You must not read, copy, use, or disseminate this communication in any form. Thank you.
On 8/14/06, Wu Yinghui, Freddie
Hi all,
I guess this question could have been asked before. But I've failed to find an answer from my basic search from the web so far. So please try to bear with me if it is old stuff.
Our development environment is using MSVC71 at the moment, and our coding standard requires warning level 4 and 64-bit compatiblity check of the compiler. But whenever I use some of the Boost library headers (most notably Boost.Function, Boost.Integer and Boost.uBLAS for now, and we have not started using most of the other libraries yet), there are tons of warnings from the compiler.
As our development team view compiler warnings as important signs of potential problems in our own code, we'd like to suppress warnings from Boost headers (assuming that they are at least better tested than our code).
So my question is: Is there a way for us to suppress warnings from Boost headers without affecting the warning level significantly on our own code?
This will make vc++ treat a header with warning level 3:
#pragma warning(push, 3)
#include
Any idea is greatly appreciated. :)
Cheers,
Freddie
-- Wu Yinghui, Freddie Research & Development Software Engineer
Volume Interactions Pte Ltd 1 Kim Seng Promenade, #12-01 Great World City East Tower Singapore 237994 Tel: +65 62226962 (Ext 216) Fax: +65 62226215 Email: yhwu@volumeinteractions.com URL: http://www.volumeinteractions.com
Important: This message is intended for the recipient(s) addressed above. It contains privileged and confidential information. If you are not the intended recipient, please notify the sender immediately by replying to this message and then delete it from your system. You must not read, copy, use, or disseminate this communication in any form. Thank you.
_______________________________________________ Boost-users mailing list Boost-users@lists.boost.org http://lists.boost.org/mailman/listinfo.cgi/boost-users
-- Cory Nelson http://www.int64.org
Hi Freddie.
So my question is: Is there a way for us to suppress warnings from Boost headers without affecting the warning level significantly on our own code?
Any idea is greatly appreciated. :)
In our projects (also MSVC 7.1) we prepare wrapper files for any boost headers causing such warnings that include their respective header file, temporarily disabling the exact warning messages. Then all other code uses those BoostWrapper header files instead of those in boost. It actually turns out that not many of boost header files cause these warnings and not many different warnings at that so this is not such a big overehead as we first expected. I've actually been waiting for the boost 1.34 release to retest all of our settings and report to the mailing list every one of the warnings in question. In case it helps anyone I've attached a packaged up part of our source tree containing all the current BoostWrappers headers, you might find it useful... actually there is a tiny copyright notice at the top of each file but I did not take the time to remove it as each file simply follows a 'include any other needed headers, disable warnings, include header, reenable warnings' pattern... :-) so there is actually nothing proprietary to 'copy' from there... :-) Hope this helps... Best regards, Jurko Gospodnetic begin 666 boostWrappers.rar M4F%R(1H'`,^0
AA
MS P)`8D10;H/!31J;\LJ&':V> C7_S1UXIV<_G6/+@)RN1&<0DUW'V_VS"MC
MW-7K9JC[*W^\&*$IVJ\2&T-X@I0[:P,L?,:53DJ<[E1TTD#1@*1\.<!PP$5
MT"A4UJV+'?Y%QSM9D?D):V'/2E)G/ZC1:+@0W.2*WKD^H*1=7*]S.$\*71+'
M^AD"G53>WJ1EF!46R79=%'C\7BI5&I)I%D)0_^3!ND9,'JRT!$H22/H-HS1M
ML(K"Q8ZBS<9DZZ%QG#BB XY6GAZ0<" :C[U$Y&MQ0[_*LM#C!
MCEO#UBZ=W(ZF^0`>])KA!KY[V\D`N08C1?Q^P 9J_U'D>#-KVRC;E01LUJEO
MZ6)H4<]7C\' 88MKPVZ1&42D&&U1@@U?!HF*A4<7$!QLDTP-BMT$,FN9XAJ/
MF"&/;6>"5*>I()9G[JP6OK,'@1D@B4%Q/0#D\&>Z#KE>;X? @2I;6HRLL>0_
M4/$W.5VO=T]D1H.;#4BJMNEASKC6'#.ZI:H.77V:']JR.%_%42V@D40D/9A:
M:DDSM?;GS@MD"GH`#EYQS#U1ARH$CK=;CJO8-#NJ-M
participants (3)
-
Cory Nelson
-
Jurko Gospodnetic
-
Wu Yinghui, Freddie