You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
volatile access of '\<expression>' is subject to /volatile:[iso|ms] setting; consider using __iso_volatile_load/store intrinsic functions.
12
12
13
-
C4746 is emitted whenever a volatile variable is accessed directly. It is intended to help developers identify code locations that are affected by the specific volatile model currently specified (which can be controlled with the [/volatile](../../build/reference/volatile-volatile-keyword-interpretation.md) compiler option). In particular, it can be useful in locating compiler-generated hardware memory barriers when /volatile:ms is used.
13
+
C4746 is emitted whenever a volatile variable is accessed directly. It's intended to help developers identify code locations that are affected by the specific volatile model currently specified (which can be controlled with the [`/volatile`](../../build/reference/volatile-volatile-keyword-interpretation.md) compiler option). In particular, it can be useful in locating compiler-generated hardware memory barriers when `/volatile:ms` is used.
14
14
15
15
The __iso_volatile_load/store intrinsics can be used to explicitly access volatile memory without being affected by the volatile model. Using these intrinsics will not trigger C4746.
A **#pragma pointers_to_members(***single*|*multiple*|*virtual***)** was issued without an accompanying **#pragma pointers_to_members(full_generality)**.
13
+
A `#pragma pointers_to_members(single | multiple | virtual )` was issued without an accompanying `#pragma pointers_to_members(full_generality)`.
Copy file name to clipboardExpand all lines: docs/error-messages/compiler-warnings/compiler-warnings-c4200-through-c4399.md
+1-1
Original file line number
Diff line number
Diff line change
@@ -125,7 +125,7 @@ The articles in this section of the documentation explain a subset of the warnin
125
125
|[Compiler warning (level 4) C4336](../../error-messages/compiler-warnings/compiler-warning-level-4-c4336.md)|import cross-referenced type library '*library1*' before importing '*library2*'|
126
126
|[Compiler warning (level 4) C4337](../../error-messages/compiler-warnings/compiler-warning-level-4-c4337.md)|cross-referenced type library '*library1*' in '*library2*' is being automatically imported|
127
127
|Compiler warning (level 4) C4338|#pragma *directive*: standard section '*section*' is used|
128
-
|[Compiler warning (level 4) C4339](../../error-messages/compiler-warnings/compiler-warning-level-4-c4339.md)|'*type*': use of undefined type detected in 'WinRT|CLR' meta-data - use of this type may lead to a runtime exception|
128
+
|[Compiler warning (level 4) C4339](../../error-messages/compiler-warnings/compiler-warning-level-4-c4339.md)|'*type*': use of undefined type detected in 'WinRT\|CLR' meta-data - use of this type may lead to a runtime exception|
129
129
|[Compiler warning (level 1) C4340](../../error-messages/compiler-warnings/compiler-warning-level-1-c4340.md)|'*value*': value wrapped from positive to negative value|
130
130
|[Compiler warning (level 1) C4342](../../error-messages/compiler-warnings/compiler-warning-level-1-c4342.md)|behavior change: '*function*' called, but a member operator was called in previous versions|
Copy file name to clipboardExpand all lines: docs/error-messages/compiler-warnings/compiler-warnings-c4400-through-c4599.md
+4-4
Original file line number
Diff line number
Diff line change
@@ -25,7 +25,7 @@ The articles in this section of the documentation explain a subset of the warnin
25
25
|[Compiler warning (level 1) C4405](../../error-messages/compiler-warnings/compiler-warning-level-1-c4405.md)|'*identifier*': identifier is reserved word|
26
26
|[Compiler warning (level 1) C4406](../../error-messages/compiler-warnings/compiler-warning-level-1-c4406.md)|operand on directive ignored|
27
27
|[Compiler warning (level 1) C4407](../../error-messages/compiler-warnings/compiler-warning-level-1-c4407.md)|cast between different pointer to member representations, compiler may generate incorrect code|
28
-
|[Compiler warning (level 4) C4408](../../error-messages/compiler-warnings/compiler-warning-level-4-c4408.md)|anonymous 'struct|union' did not declare any data members|
28
+
|[Compiler warning (level 4) C4408](../../error-messages/compiler-warnings/compiler-warning-level-4-c4408.md)|anonymous 'struct\|union' did not declare any data members|
|[Compiler warning (level 1) C4410](../../error-messages/compiler-warnings/compiler-warning-level-1-c4410.md)|illegal size for operand|
31
31
|[Compiler warning (level 1) C4411](../../error-messages/compiler-warnings/compiler-warning-level-1-c4411.md)|'*identifier*': symbol resolves to displacement register|
@@ -58,7 +58,7 @@ The articles in this section of the documentation explain a subset of the warnin
58
58
|Compiler warning (level 1) C4442|embedded null terminator in __annotation argument. Value will be truncated.|
59
59
|Compiler warning (level 1) C4443|expected pragma parameter to be '0', '1', or '2'|
60
60
|Compiler warning (level 3) C4444|'*identifier*': top level '__unaligned' is not implemented in this context|
61
-
|[Compiler warning (level 1) C4445](../../error-messages/compiler-warnings/compiler-warning-level-1-c4445.md)|'*function*': in a 'WinRT|managed' type a virtual method cannot be private|
61
+
|[Compiler warning (level 1) C4445](../../error-messages/compiler-warnings/compiler-warning-level-1-c4445.md)|'*function*': in a 'WinRT\|managed' type a virtual method cannot be private|
62
62
|Compiler warning (level 1) C4446|'*type*': cannot map member '*name1*' into this type, due to conflict with the type name. The method was renamed to '*name2*'|
63
63
|Compiler warning (level 1) C4447|'main' signature found without threading model. Consider using 'int main(Platform::Array\<Platform::String^>^ args)'.|
64
64
|Compiler warning C4448|'*type*1' does not have a default interface specified in metadata. Picking: '*type2*', which may fail at runtime.|
@@ -73,14 +73,14 @@ The articles in this section of the documentation explain a subset of the warnin
73
73
|[Compiler warning (level 4) C4457](compiler-warning-level-4-c4457.md)|declaration of '*identifier*' hides function parameter|
74
74
|[Compiler warning (level 4) C4458](compiler-warning-level-4-c4458.md)|declaration of '*identifier*' hides class member|
75
75
|[Compiler warning (level 4) C4459](compiler-warning-level-4-c4459.md)|declaration of '*identifier*' hides global declaration|
76
-
|[Compiler warning (level 4) C4460](../../error-messages/compiler-warnings/compiler-warning-level-4-c4460.md)|'WinRT|managed' operator '*operator*', has parameter passed by reference. 'WinRT|managed' operator '*operator*' has different semantics from C++ operator '*cpp_operator*', did you intend to pass by value?|
76
+
|[Compiler warning (level 4) C4460](../../error-messages/compiler-warnings/compiler-warning-level-4-c4460.md)|'WinRT\|managed' operator '*operator*', has parameter passed by reference. 'WinRT\|managed' operator '*operator*' has different semantics from C++ operator '*cpp_operator*', did you intend to pass by value?|
77
77
|[Compiler warning (level 1) C4461](../../error-messages/compiler-warnings/compiler-warning-level-1-c4461.md)|'*classname*': this class has a finalizer '!*finalizer*' but no destructor '~*dtor*'|
78
78
|[Compiler warning (level 1, Error) C4462](../../error-messages/compiler-warnings/compiler-warning-level-1-c4462.md)|'*type*' : cannot determine the GUID of the type. Program may fail at runtime.|
79
79
|[Compiler warning (level 4) C4463](compiler-warning-level-4-c4463.md)|overflow; assigning '*value*' to bit-field that can only hold values from '*min_value*' to '*max_value*'|
80
80
|[Compiler warning (level 4) C4464](../../error-messages/compiler-warnings/compiler-warning-level-4-c4464.md)|relative include path contains '..'|
81
81
|[Compiler warning (level 1) C4470](../../error-messages/compiler-warnings/compiler-warning-level-1-c4470.md)|floating-point control pragmas ignored under /clr|
82
82
|[Compiler warning (level 4) C4471](compiler-warning-level-4-c4471.md)|'*enumeration*': a forward declaration of an unscoped enumeration must have an underlying type (int assumed)|
83
-
|Compiler warning (level 1) C4472|'*identifier*' is a native enum: add an access specifier (private/public) to declare a 'WinRT|managed' enum|
83
+
|Compiler warning (level 1) C4472|'*identifier*' is a native enum: add an access specifier (private/public) to declare a 'WinRT\|managed' enum|
84
84
|[Compiler warning (level 1) C4473](c4473.md)|'*function*' : not enough arguments passed for format string|
85
85
|Compiler warning (level 3) C4474|'*function*' : too many arguments passed for format string|
86
86
|Compiler warning (level 3) C4475|'*function*' : length modifier '*modifier*' cannot be used with type field character '*character*' in format specifier|
Copy file name to clipboardExpand all lines: docs/error-messages/compiler-warnings/compiler-warnings-c4600-through-c4799.md
+1-1
Original file line number
Diff line number
Diff line change
@@ -134,7 +134,7 @@ The articles in this section of the documentation explain a subset of the warnin
134
134
|[Compiler warning (Level 1) C4742](../../error-messages/compiler-warnings/compiler-warning-level-1-c4742.md)|'var' has different alignment in 'file1' and 'file2': number and number|
135
135
|[Compiler warning (Level 1) C4743](../../error-messages/compiler-warnings/compiler-warning-level-1-c4743.md)|'type' has different size in 'file1' and 'file2': number and number bytes|
136
136
|[Compiler warning (Level 1) C4744](../../error-messages/compiler-warnings/compiler-warning-level-1-c4744.md)|'var' has different type in 'file1' and 'file2': 'type1' and 'type2'|
137
-
|[Compiler warning C4746](../../error-messages/compiler-warnings/compiler-warning-c4746.md)|volatile access of '*expression*' is subject to /volatile:\<iso|ms> setting; consider using __iso_volatile_load/store intrinsic functions|
137
+
|[Compiler warning C4746](../../error-messages/compiler-warnings/compiler-warning-c4746.md)|volatile access of '*expression*' is subject to /volatile:\<iso\|ms> setting; consider using __iso_volatile_load/store intrinsic functions|
138
138
|[Compiler warning (level 1) C4747](../../error-messages/compiler-warnings/compiler-warning-level-1-c4747.md)|Calling managed 'entrypoint': Managed code may not be run under loader lock, including the DLL entrypoint and calls reached from the DLL entrypoint|
139
139
|Compiler warning (level 4) C4749|conditionally supported: offsetof applied to non-standard-layout type '*type*'|
140
140
|[Compiler warning (level 1) C4750](compiler-warning-level-1-c4750.md)|'identifier': function with _alloca() inlined into a loop|
Copy file name to clipboardExpand all lines: docs/preprocessor/compiler-warnings-that-are-off-by-default.md
+1-1
Original file line number
Diff line number
Diff line change
@@ -101,7 +101,7 @@ The following warnings are turned off by default in Visual Studio 2015 and later
101
101
|[C4692](../error-messages/compiler-warnings/compiler-warning-level-1-c4692.md) (level 1) | '*function*': signature of non-private member contains assembly private native type '*native_type*' |
102
102
|[C4710](../error-messages/compiler-warnings/compiler-warning-level-4-c4710.md) (level 4) | '*function*': function not inlined |
103
103
|[C4738](../error-messages/compiler-warnings/compiler-warning-level-3-c4738.md) (level 3) | storing 32-bit float result in memory, possible loss of performance |
104
-
|[C4746](../error-messages/compiler-warnings/compiler-warning-c4746.md)| volatile access of '*expression*' is subject to /volatile:\<iso|ms> setting; consider using __iso_volatile_load/store intrinsic functions |
104
+
|[C4746](../error-messages/compiler-warnings/compiler-warning-c4746.md)| volatile access of '*expression*' is subject to /volatile:\<iso\|ms> setting; consider using __iso_volatile_load/store intrinsic functions |
105
105
| C4749 (level 4) | conditionally supported: offsetof applied to non-standard-layout type '*type*' |
106
106
| C4767 (level 4) | section name '*symbol*' is longer than 8 characters and will be truncated by the linker |
107
107
| C4774 (level 4) | '*string*' : format string expected in argument *number* is not a string literal |
0 commit comments