This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author eckhardt
Recipients amaury.forgeotdarc, eckhardt, ghaering, loewis, rhettinger
Date 2009-02-03.11:36:48
SpamBayes Score 3.3766566e-05
Marked as misclassified No
Message-id <1233661010.54.0.375947573872.issue5134@psf.upfronthosting.co.za>
In-reply-to
Content
The syntax would be this:

#if defined(_MSC_VER)
#  pragma warning(push)
   /* Disable warnings for this file, see
   http://www.sqlite.org/faq.html#q17 why we don't care for them. */
#  pragma warning(disable: 4244)
#  pragma warning(disable: 4018)
#endif

...// code that produces warnings

#if defined(_MSC_VER)
#  pragma warning(pop)
#endif

For SQLite, I think the push/pop can be removed, as it is only a single
file and not just a section of code. Otherwise, they are good style, in
particular in header files, because they then don't affect other code.
History
Date User Action Args
2009-02-03 11:36:50eckhardtsetrecipients: + eckhardt, loewis, rhettinger, ghaering, amaury.forgeotdarc
2009-02-03 11:36:50eckhardtsetmessageid: <1233661010.54.0.375947573872.issue5134@psf.upfronthosting.co.za>
2009-02-03 11:36:49eckhardtlinkissue5134 messages
2009-02-03 11:36:48eckhardtcreate