From 12a5245bfe93d4a0ccb692afefc4ecf1435d97f4 Mon Sep 17 00:00:00 2001 From: mmentovai Date: Fri, 27 Oct 2006 19:47:21 +0000 Subject: Disable exception handling warnings in Windows client code (#38). Patch by Ted Mielczarek. r=me http://groups.google.com/group/airbag-dev/browse_thread/thread/133814673f75d5fa git-svn-id: http://google-breakpad.googlecode.com/svn/trunk@56 4c0a9323-5329-0410-9bdc-e9ce6186880e --- src/client/windows/handler/exception_handler.h | 6 ++++++ src/client/windows/sender/crash_report_sender.cc | 3 +++ src/client/windows/sender/crash_report_sender.h | 6 ++++++ 3 files changed, 15 insertions(+) (limited to 'src/client') diff --git a/src/client/windows/handler/exception_handler.h b/src/client/windows/handler/exception_handler.h index 71360dbc..9f7f14d0 100644 --- a/src/client/windows/handler/exception_handler.h +++ b/src/client/windows/handler/exception_handler.h @@ -62,6 +62,10 @@ #include #include +#pragma warning( push ) +// Disable exception handler warnings. +#pragma warning( disable : 4530 ) + #include namespace google_airbag { @@ -143,4 +147,6 @@ class ExceptionHandler { } // namespace google_airbag +#pragma warning( pop ) + #endif // CLIENT_WINDOWS_HANDLER_EXCEPTION_HANDLER_H__ diff --git a/src/client/windows/sender/crash_report_sender.cc b/src/client/windows/sender/crash_report_sender.cc index 2a4f8250..0c48c875 100644 --- a/src/client/windows/sender/crash_report_sender.cc +++ b/src/client/windows/sender/crash_report_sender.cc @@ -27,6 +27,9 @@ // (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE // OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. +// Disable exception handler warnings. +#pragma warning( disable : 4530 ) + #include "client/windows/sender/crash_report_sender.h" #include "common/windows/http_upload.h" diff --git a/src/client/windows/sender/crash_report_sender.h b/src/client/windows/sender/crash_report_sender.h index 06785818..a909c466 100644 --- a/src/client/windows/sender/crash_report_sender.h +++ b/src/client/windows/sender/crash_report_sender.h @@ -38,6 +38,10 @@ // To use this library in your project, you will need to link against // wininet.lib. +#pragma warning( push ) +// Disable exception handler warnings. +#pragma warning( disable : 4530 ) + #include #include @@ -69,4 +73,6 @@ class CrashReportSender { } // namespace google_airbag +#pragma warning( pop ) + #endif // CLIENT_WINDOWS_SENDER_CRASH_REPORT_SENDER_H__ -- cgit v1.2.1