ITK Function Reference
(V10000.1.0.60_20160308.00)
Main Page
Related Pages
Modules
Data Structures
Files
File List
Globals
msvcpragmas.h
Go to the documentation of this file.
1
/*HEAD MSVCPRAGMAS HHH INCLUDE */
2
/*SYS WNT */
3
/*==============================================================================
4
5
Copyright (c) 1999,2000 Unigraphics Solutions Inc.
6
Unpublished - All rights reserved
7
8
================================================================================
9
File description:
10
11
This header is included on Windows NT at the beginning of every
12
source file via the Forced Include mechanism (compiler option /FI).
13
It provides a means of adjusting warning levels for Visual C++
14
compiler warning messages so that some messages may be made more
15
(or less) visible.
16
17
==============================================================================*/
18
19
#ifndef MSVCPRAGMAS_H_INCLUDED
20
#define MSVCPRAGMAS_H_INCLUDED
21
22
/*
23
* The intent is to eventually make each of the following messages an error.
24
* This has not been done yet in order to minimize the impact on development.
25
*/
26
27
#pragma warning ( error : 4002 ) // too many actual parameters for macro
28
#pragma warning ( error : 4003 ) // not enough actual parameters for macro
29
#pragma warning ( error : 4005 ) // macro redefinition
30
#pragma warning ( error : 4013 ) // function undefined (no prototype seen)
31
#pragma warning ( error : 4016 ) // assuming func returns int (no prototype seen)
32
#pragma warning ( error : 4018 ) // signed/unsigned mismatch
33
#pragma warning ( error : 4020 ) // too many arguments in definition vs proto
34
#pragma warning ( error : 4021 ) // too few arguments in definition vs proto
35
#pragma warning ( error : 4022 ) // argument mismatch esp. w/pointers
36
#pragma warning ( error : 4024 ) // argument mismatch
37
#pragma warning ( error : 4028 ) // formal parameter differs from declaration
38
#pragma warning ( error : 4031 ) // 2nd paramter list longer (conflicting proto)
39
#pragma warning ( error : 4033 ) // no return value for function
40
#pragma warning ( error : 4035 ) // no return value for function
41
#pragma warning ( error : 4047 ) // differing levels of indirection
42
#pragma warning ( error : 4048 ) // differently declared array subscripts
43
#pragma warning ( error : 4060 ) // switch statement contains no �case� or �default� labels
44
#pragma warning ( error : 4065 ) // switch has default but no case statements
45
#pragma warning ( error : 4070 ) // return of void expression
46
#pragma warning ( error : 4071 ) // no function prototype given
47
#pragma warning ( error : 4090 ) // different qualifiers
48
#pragma warning ( error : 4100 ) // unreferenced formal parameter
49
#pragma warning ( error : 4101 ) // unreferenced local variable
50
#pragma warning ( error : 4102 ) // unreferenced label
51
#pragma warning ( error : 4113 ) // function pointer arg list differs
52
#pragma warning ( error : 4129 ) // unrecognized character escape sequence
53
#pragma warning ( error : 4130 ) // logical op on address of string constant
54
#pragma warning ( error : 4150 ) // deletion of pointer to incomplete type �type�; no destructor called
55
#pragma warning ( error : 4131 ) // uses old-style (K&R) declarator
56
#pragma warning ( error : 4133 ) // incompatible types
57
#pragma warning ( error : 4138 ) // nested comment
58
#pragma warning ( error : 4172 ) // returning address of local variable
59
#pragma warning ( error : 4189 ) // local variable initialized but never used
60
#pragma warning ( error : 4190 ) // 'identifier1' has C-linkage specified, but returns UDT 'identifier2' which is incompatible with C
61
#pragma warning ( error : 4197 ) // �type� : top-level volatile in cast is ignored
62
#pragma warning ( error : 4243 ) // inaccesible type cast conversion
63
#pragma warning ( error : 4244 ) // �conversion� conversion from �type1� to �type2�, possible loss of data
64
#pragma warning ( error : 4273 ) // inconsistent DLL linkage
65
#pragma warning ( error : 4275 ) // non � DLL-interface classkey �identifier� used as base for DLL-interface classkey �identifier�
66
#pragma warning ( error : 4290 ) // C++ exception specification ignored except to indicate a function is not __declspec(nothrow)
67
#pragma warning ( error : 4291 ) // no matching delete; memory will not be freed if initialization throws
68
#pragma warning ( error : 4293 ) // new in default argument will not free memory if initialization throws an exception
69
#pragma warning ( error : 4297 ) // �function� : function assumed not to throw an exception but does
70
#pragma warning ( error : 4301 ) // overriding virtual function differs in qualifier
71
#pragma warning ( error : 4305 ) // �identifier� : truncation from �type1� to �type2�
72
#pragma warning ( error : 4309 ) // �conversion� : truncation of constant value
73
#pragma warning ( error : 4310 ) // cast truncates constant value
74
#pragma warning ( error : 4311 ) // �variable� : pointer truncation from �type� to �type�
75
#pragma warning ( error : 4312 ) // �operation� : conversion from �type1� to �type2� of greater size
76
#pragma warning ( error : 4313 ) // pointer type mismatch in printf-like statements
77
#pragma warning ( error : 4318 ) // zero length used in memset
78
#pragma warning ( error : 4333 ) // �operator� : right shift by too large amount, data loss
79
#pragma warning ( error : 4351 ) // new behavior: elements of array �array� will be default initialized
80
#pragma warning ( error : 4355 ) // 'this' : used in base member initializer list
81
#pragma warning ( error : 4373 ) // previous versions of the compiler did not override when parameters only differed by const/volatile qualifiers
82
#pragma warning ( error : 4390 ) // empty statement following control statement
83
#pragma warning ( error : 4407 ) // cast between different pointer to member representations, compiler may generate incorrect code
84
#pragma warning ( error : 4503 ) // 'identifier' : decorated name length exceeded, name was truncated
85
#pragma warning ( error : 4505 ) // unreferenced local function
86
#pragma warning ( error : 4522 ) // �class� : multiple assignment operators specified
87
#pragma warning ( error : 4535 ) // calling _set_se_translator() requires /EHa
88
#pragma warning ( error : 4550 ) // expression evaluates to function missing argument list
89
#pragma warning ( error : 4553 ) // operator has no effect
90
#pragma warning ( error : 4554 ) // possible operator precedence error
91
#pragma warning ( error : 4700 ) // variable used without being initialized
92
#pragma warning ( error : 4701 ) // variable may be used without being init'd
93
#pragma warning ( error : 4706 ) // assignment in conditional (i = 0 instead of i == 0)
94
#pragma warning ( error : 4715 ) // not all paths return a value
95
#pragma warning ( error : 4716 ) // function must return a value
96
#pragma warning ( error : 4717 ) // infinite recursion
97
#pragma warning ( error : 4761 ) // integral mismatch; conversion supplied
98
#pragma warning ( error : 4789 ) // destination of memory copy is too small
99
#pragma warning ( error : 4800 ) // forcing value to bool (performance warning)
100
#pragma warning ( error : 4804 ) // �operation� : unsafe use of type �bool� in operation
101
#pragma warning ( error : 4805 ) // �operation� : unsafe mix of type �type� and type �type� in operation
102
#pragma warning ( error : 4809 ) // switch statement has redundant �default� label; all possible �case� labels are given
103
#pragma warning ( error : 4822 ) // �member� : local class member function does not have a body
104
#pragma warning ( error : 4930 ) // �prototype�: prototyped function not called (was a variable definition intended?)
105
#pragma warning ( error : 4995 ) // deprecated streams usage
106
107
108
/* This is frequently generated when using STL. MSDN suggests disabling. */
109
#pragma warning ( disable: 4786 ) // identifier truncated in debugger/browser
110
111
/* disable these -- at least for now ... */
112
#pragma warning ( disable: 4250 ) // inheritance via dominance
113
#pragma warning ( disable: 4251 ) // non-DLL interface with STL involved
114
#pragma warning ( disable: 4267 ) // possible loss of data on conversion
115
116
#endif
/* MSVCPRAGMAS_H_INCLUDED */