Blame msvc_recommended_pragmas.h

Packit ae235b
#ifndef _MSC_VER
Packit ae235b
#pragma error "This header is for Microsoft VC only."
Packit ae235b
#endif /* _MSC_VER */
Packit ae235b
Packit ae235b
/* Make MSVC more pedantic, this is a recommended pragma list
Packit ae235b
 * from _Win32_Programming_ by Rector and Newcomer.
Packit ae235b
 */
Packit ae235b
#pragma warning(error:4002) /* too many actual parameters for macro */
Packit ae235b
#pragma warning(error:4003) /* not enough actual parameters for macro */
Packit ae235b
#pragma warning(1:4010)     /* single-line comment contains line-continuation character */
Packit ae235b
#pragma warning(error:4013) /* 'function' undefined; assuming extern returning int */
Packit ae235b
#pragma warning(1:4016)     /* no function return type; using int as default */
Packit ae235b
#pragma warning(error:4020) /* too many actual parameters */
Packit ae235b
#pragma warning(error:4021) /* too few actual parameters */
Packit ae235b
#pragma warning(error:4027) /* function declared without formal parameter list */
Packit ae235b
#pragma warning(error:4029) /* declared formal parameter list different from definition */
Packit ae235b
#pragma warning(error:4033) /* 'function' must return a value */
Packit ae235b
#pragma warning(error:4035) /* 'function' : no return value */
Packit ae235b
#pragma warning(error:4045) /* array bounds overflow */
Packit ae235b
#pragma warning(error:4047) /* different levels of indirection */
Packit ae235b
#pragma warning(error:4049) /* terminating line number emission */
Packit ae235b
#pragma warning(error:4053) /* An expression of type void was used as an operand */
Packit ae235b
#pragma warning(error:4071) /* no function prototype given */
Packit ae235b
#pragma warning(disable:4101) /* unreferenced local variable */
Packit ae235b
#pragma warning(error:4150)
Packit ae235b
Packit ae235b
#pragma warning(disable:4244)	/* No possible loss of data warnings */
Packit ae235b
#pragma warning(disable:4305)   /* No truncation from int to char warnings */
Packit ae235b
Packit ae235b
#pragma warning(error:4819) /* The file contains a character that cannot be represented in the current code page */
Packit ae235b
Packit ae235b
/* work around Microsoft's premature attempt to deprecate the C-Library */
Packit ae235b
#define _CRT_SECURE_NO_WARNINGS
Packit ae235b
#define _CRT_NONSTDC_NO_WARNINGS