BugĀ 598712 - can't detect text file with backspace
[dana/cg-glib.git] / msvc_recommended_pragmas.h
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 */
29
30 /* work around Microsoft's premature attempt to deprecate the C-Library */
31 #pragma warning(disable:4996)   /* This function or variable may be unsafe. */