mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2024-11-14 05:16:18 +01:00
b877c83cdc
2007-12-09 Hans Breuer <hans@breuer.org> * **/makefile.msc glib/makefile.msc.in : removed -GD to compile with msvc9 (vs2008) with less complains * glibconfig.h.win32.in : #define G_HAVE_ISO_VARARGS 1 for msv8 (vs2005) and above * glib/gfileutils.c : s/stricmp/_stricmp/ * msvc_recommended_pragmas.h : work around Microsoft's premature attempt to deprecate the C-Library * tests/makefile.msc.in : added checksum-test svn path=/trunk/; revision=6076
32 lines
1.7 KiB
C
32 lines
1.7 KiB
C
#ifndef _MSC_VER
|
|
#pragma error "This header is for Microsoft VC only."
|
|
#endif /* _MSC_VER */
|
|
|
|
/* Make MSVC more pedantic, this is a recommended pragma list
|
|
* from _Win32_Programming_ by Rector and Newcomer.
|
|
*/
|
|
#pragma warning(error:4002) /* too many actual parameters for macro */
|
|
#pragma warning(error:4003) /* not enough actual parameters for macro */
|
|
#pragma warning(1:4010) /* single-line comment contains line-continuation character */
|
|
#pragma warning(error:4013) /* 'function' undefined; assuming extern returning int */
|
|
#pragma warning(1:4016) /* no function return type; using int as default */
|
|
#pragma warning(error:4020) /* too many actual parameters */
|
|
#pragma warning(error:4021) /* too few actual parameters */
|
|
#pragma warning(error:4027) /* function declared without formal parameter list */
|
|
#pragma warning(error:4029) /* declared formal parameter list different from definition */
|
|
#pragma warning(error:4033) /* 'function' must return a value */
|
|
#pragma warning(error:4035) /* 'function' : no return value */
|
|
#pragma warning(error:4045) /* array bounds overflow */
|
|
#pragma warning(error:4047) /* different levels of indirection */
|
|
#pragma warning(error:4049) /* terminating line number emission */
|
|
#pragma warning(error:4053) /* An expression of type void was used as an operand */
|
|
#pragma warning(error:4071) /* no function prototype given */
|
|
#pragma warning(disable:4101) /* unreferenced local variable */
|
|
#pragma warning(error:4150)
|
|
|
|
#pragma warning(disable:4244) /* No possible loss of data warnings */
|
|
#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. */
|