From: Michihiro NAKAJIMA Date: Tue, 17 Feb 2009 06:04:44 +0000 (-0500) Subject: Add stricter warning option to Visual Studio. X-Git-Tag: v2.7.0~254 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=d6806284cf88821625ee83eb2f68a7fcce936a1f;p=thirdparty%2Flibarchive.git Add stricter warning option to Visual Studio. SVN-Revision: 652 --- diff --git a/libarchive/archive_windows.h b/libarchive/archive_windows.h index fc95d58bc..0b060a9ea 100644 --- a/libarchive/archive_windows.h +++ b/libarchive/archive_windows.h @@ -62,6 +62,9 @@ #pragma warning(disable:4244) /* 'conversion' conversion from 'type1' to 'type2', possible loss of data */ #pragma warning(disable:4146) /* unary minus operator applied to unsigned type, result still unsigned */ //#pragma warning(disable:4267) /* Conversion, possible loss of data */ +#pragma warning(default: 4061) /* The enumerate has no associated handler in a switch statement */ +#pragma warning(default: 4296) /* An unsigned variable was used in a comparison operation with zero */ +#pragma warning(default: 4365) /* 'action':conversion from 'type_1' to 'type_2', signed/unsigned mismatch */ #endif #ifndef NULL