make-w32
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: W32 Warning disabled, and updated vcproj file


From: Paul D. Smith
Subject: Re: W32 Warning disabled, and updated vcproj file
Date: Tue, 17 Jan 2006 11:46:07 -0500

%% "J. Grant" <address@hidden> writes:

  jg> This is the other file, disable_mscv_w32_config.h_warnings.patch:

  jg> --- config.h.W32  2005-12-13 14:47:25.000000000 +0000
  jg> +++ config.h.W32.new      2006-01-14 23:33:50.000000000 +0000
  jg> @@ -427,6 +427,14 @@
  jg>   /* Define to the installation directory for locales.  */
  jg>   #define LOCALEDIR ""

  jg> +#ifdef _MSC_VER
  jg> +#if _MSC_VER > 1000
  jg> +#pragma warning (disable : 4127) /* conditional expression is constant */
  jg> +#pragma warning (disable : 4702) /* unreachable code */
  jg> +#pragma warning (disable : 4100) /* unreferenced formal parameter */
  jg> +#endif
  jg> +#endif
  jg> +

The latest CVS code already has this, from a patch by Rob Tulloh:

 /* Suppress some Visual C++ warnings.
    Maybe after the code cleanup for ISO C we can remove some/all of these.  */
 #if _MSC_VER > 1000
 # pragma warning(disable:4100) /* unreferenced formal parameter */
 # pragma warning(disable:4127) /* conditional expression is constant */
 # pragma warning(disable:4702) /* unreachable code */
 #endif

-- 
-------------------------------------------------------------------------------
 Paul D. Smith <address@hidden>          Find some GNU make tips at:
 http://www.gnu.org                      http://make.paulandlesley.org
 "Please remain calm...I may be mad, but I am a professional." --Mad Scientist




reply via email to

[Prev in Thread] Current Thread [Next in Thread]