Commit b93d6ab8 authored by Chun-wei Fan's avatar Chun-wei Fan

Bug 661438: Update msvc_recommended_pragmas.h

Don't disable warning C4996 as that is the Visual C++ warning triggered by
__declspec(deprecated) and __declspec(deprecated('..."))-disabling that
warning will defeat the purpose of G_DPRECATED/G_DEPRECATED_FOR.

For people who don't want to see the GLib deprecation warnings during GLib
compilation, define GLIB_DISABLE_DEPRECATION_WARNINGS in the projects or
property sheet.
parent 36ccdab7
......@@ -28,4 +28,5 @@
#pragma warning(disable:4305) /* No truncation from int to char warnings */
/* work around Microsoft's premature attempt to deprecate the C-Library */
#pragma warning(disable:4996) /* This function or variable may be unsafe. */
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment