Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Newer
Older
100644 33 lines (29 sloc) 1.752 kb
abc754fa »
2002-01-05 moved warning to error pragmas to their own file to not force 'good
1 #ifndef _MSC_VER
2 #pragma error "This header is for Microsoft VC only."
3 #endif /* _MSC_VER */
4
5 /* Make MSVC more pedantic, this is a recommended pragma list
6 * from _Win32_Programming_ by Rector and Newcomer.
7 */
8 #pragma warning(error:4002) /* too many actual parameters for macro */
9 #pragma warning(error:4003) /* not enough actual parameters for macro */
10 #pragma warning(1:4010) /* single-line comment contains line-continuation character */
11 #pragma warning(error:4013) /* 'function' undefined; assuming extern returning int */
12 #pragma warning(1:4016) /* no function return type; using int as default */
13 #pragma warning(error:4020) /* too many actual parameters */
14 #pragma warning(error:4021) /* too few actual parameters */
15 #pragma warning(error:4027) /* function declared without formal parameter list */
16 #pragma warning(error:4029) /* declared formal parameter list different from definition */
17 #pragma warning(error:4033) /* 'function' must return a value */
18 #pragma warning(error:4035) /* 'function' : no return value */
19 #pragma warning(error:4045) /* array bounds overflow */
20 #pragma warning(error:4047) /* different levels of indirection */
21 #pragma warning(error:4049) /* terminating line number emission */
22 #pragma warning(error:4053) /* An expression of type void was used as an operand */
23 #pragma warning(error:4071) /* no function prototype given */
24 #pragma warning(disable:4101) /* unreferenced local variable */
25 #pragma warning(error:4150)
26
27 #pragma warning(disable:4244) /* No possible loss of data warnings */
28 #pragma warning(disable:4305) /* No truncation from int to char warnings */
b877c83c »
2007-12-09 removed -GD to compile with msvc9 (vs2008) with less complains
29
30 /* work around Microsoft's premature attempt to deprecate the C-Library */
b93d6ab8 »
2011-10-12 Bug 661438: Update msvc_recommended_pragmas.h
31 #define _CRT_SECURE_NO_WARNINGS
32 #define _CRT_NONSTDC_NO_WARNINGS
Something went wrong with that request. Please try again.