Skip to content

Commit d0504e2

Browse files
authored
Merge pull request #2526 from MicrosoftDocs/master
12/2/2019 AM Publish
2 parents 3ee06ec + 06eb4e4 commit d0504e2

25 files changed

+92
-92
lines changed

docs/build/reference/compiler-option-warning-level.md

Lines changed: 16 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -10,21 +10,21 @@ Specifies how the compiler generates warnings for a given compilation.
1010

1111
## Syntax
1212

13-
> **/w**
14-
> **/W0**
15-
> **/W1**
16-
> **/W2**
17-
> **/W3**
18-
> **/W4**
19-
> **/Wall**
20-
> **/Wv**\[**:**_version_]
21-
> **/WX**
22-
> **/w1**_warning_
23-
> **/w2**_warning_
24-
> **/w3**_warning_
25-
> **/w4**_warning_
26-
> **/wd**_warning_
27-
> **/we**_warning_
13+
> **/w**\
14+
> **/W0**\
15+
> **/W1**\
16+
> **/W2**\
17+
> **/W3**\
18+
> **/W4**\
19+
> **/Wall**\
20+
> **/Wv**\[**:**_version_]\
21+
> **/WX**\
22+
> **/w1**_warning_\
23+
> **/w2**_warning_\
24+
> **/w3**_warning_\
25+
> **/w4**_warning_\
26+
> **/wd**_warning_\
27+
> **/we**_warning_\
2828
> **/wo**_warning_
2929
3030
## Remarks
@@ -81,5 +81,5 @@ The [build errors documentation](../../error-messages/compiler-errors-1/c-cpp-bu
8181

8282
## See also
8383

84-
[MSVC Compiler Options](compiler-options.md)<br/>
84+
[MSVC Compiler Options](compiler-options.md)\
8585
[MSVC Compiler Command-Line Syntax](compiler-command-line-syntax.md)

docs/cpp/initializing-classes-and-structs-without-constructors-cpp.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -103,7 +103,7 @@ int main()
103103
class_d d3{ 4.5, "string", 'c' };
104104

105105
class_d d4{ "string", 'c' }; // compiler error
106-
class_d d5("string", 'c', 2.0 }; // compiler error
106+
class_d d5{ "string", 'c', 2.0 }; // compiler error
107107
}
108108
```
109109

docs/error-messages/compiler-warnings/compiler-warning-level-3-c4996.md

Lines changed: 49 additions & 50 deletions
Large diffs are not rendered by default.

docs/error-messages/compiler-warnings/compiler-warning-level-4-c4336.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ library C4336bLib
4444

4545
The following sample generates C4336:
4646

47-
```
47+
```cpp
4848
// C4336.cpp
4949
// compile with: /W4 /LD
5050
// #import "C4336a.tlb"

docs/error-messages/compiler-warnings/compiler-warning-level-4-c4337.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ library C4337bLib
5252

5353
The following sample generates C4337:
5454

55-
```
55+
```cpp
5656
// C4337.cpp
5757
// compile with: /W4 /LD
5858
#import "c4337b.tlb" auto_search // C4337

docs/error-messages/compiler-warnings/compiler-warning-level-4-c4339.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ This warning is off by default. See [Compiler Warnings That Are Off by Default](
1515

1616
The following sample generates C4339 and shows how to fix it:
1717

18-
```
18+
```cpp
1919
// C4339.cpp
2020
// compile with: /W4 /clr /c
2121
// C4339 expected

docs/error-messages/compiler-warnings/compiler-warning-level-4-c4343.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ This warning, only valid in the Itanium Processor Family (IPF) compiler, reports
1313

1414
The following sample generates C4343:
1515

16-
```
16+
```cpp
1717
// C4343.cpp
1818
// compile with: /Og /W4 /LD
1919
// processor: IPF

docs/error-messages/compiler-warnings/compiler-warning-level-4-c4365.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ C4365 is off by default. For more information, see [Compiler Warnings That Are
1717

1818
The following sample generates C4365.
1919

20-
```
20+
```cpp
2121
// C4365.cpp
2222
// compile with: /W4
2323
#pragma warning(default:4365)

docs/error-messages/compiler-warnings/compiler-warning-level-4-c4366.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ For more information, see __unaligned and [pack](../../preprocessor/pack.md).
1919

2020
The following sample generates C4366.
2121

22-
```
22+
```cpp
2323
// C4366.cpp
2424
// compile with: /W4 /c
2525
// processor: IPF x64

docs/error-messages/compiler-warnings/compiler-warning-level-4-c4389.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ An operation involved signed and unsigned variables. This could result in a loss
1313

1414
The following sample generates C4389:
1515

16-
```
16+
```cpp
1717
// C4389.cpp
1818
// compile with: /W4
1919
#pragma warning(default: 4389)

docs/error-messages/compiler-warnings/compiler-warning-level-4-c4400.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ The [const](../../cpp/const-cpp.md)and [volatile](../../cpp/volatile-cpp.md)qual
1515

1616
The following sample generates C4400.
1717

18-
```
18+
```cpp
1919
// C4400.cpp
2020
// compile with: /clr /W4
2121
// C4401 expected

docs/error-messages/compiler-warnings/compiler-warning-level-4-c4408.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ An anonymous struct or union must have at least one data member.
1313

1414
The following sample generates C4408:
1515

16-
```
16+
```cpp
1717
// C4408.cpp
1818
// compile with: /W4 /LD
1919
static union

docs/error-messages/compiler-warnings/compiler-warning-level-4-c4429.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ The compiler detected a character sequence that may be a badly formed universal
1313

1414
The following sample generates C4429:
1515

16-
```
16+
```cpp
1717
// C4429.cpp
1818
// compile with: /W4 /WX
1919
int \ug0e4 = 0; // C4429

docs/error-messages/compiler-warnings/compiler-warning-level-4-c4431.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ This warning is off by default. See [Compiler Warnings That Are Off by Default](
1717

1818
The following sample generates C4431.
1919

20-
```
20+
```c
2121
// C4431.c
2222
// compile with: /c /W4
2323
#pragma warning(default:4431)

docs/error-messages/compiler-warnings/compiler-warning-level-4-c4434.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ C4434 indicates that the compiler changed the accessibility of a static construc
1515

1616
The following sample generates C4434.
1717

18-
```
18+
```cpp
1919
// C4434.cpp
2020
// compile with: /W4 /c /clr
2121
public ref struct R {

docs/error-messages/compiler-warnings/compiler-warning-level-4-c4460.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ You passed a value by reference to a user-defined Windows Runtime or CLR operato
1515

1616
The following sample generates C4460 and shows how to fix it.
1717

18-
```
18+
```cpp
1919
// C4460.cpp
2020
// compile with: /W4 /clr
2121
#include <stdio.h>

docs/error-messages/compiler-warnings/compiler-warning-level-4-c4481.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ A keyword was used that is not in the C++ standard, for example, one of the over
1919

2020
The following sample generates C4481.
2121

22-
```
22+
```cpp
2323
// C4481.cpp
2424
// compile with: /W4 /c
2525
class B {

docs/error-messages/compiler-warnings/compiler-warning-level-4-c4487.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ For more information, see [new (new slot in vtable)](../../extensions/new-new-sl
1717

1818
The following sample generates C4487.
1919

20-
```
20+
```cpp
2121
// C4487.cpp
2222
// compile with: /W4 /clr
2323
using namespace System;

docs/error-messages/compiler-warnings/compiler-warning-level-4-c4512.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ You can resolve the C4512 warning for your code in one of three ways:
2929

3030
The following sample generates C4512.
3131

32-
```
32+
```cpp
3333
// C4512.cpp
3434
// compile with: /EHsc /W4
3535
// processor: x86

docs/error-messages/compiler-warnings/compiler-warning-level-4-c4514.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ This warning is off by default. See [Compiler Warnings That Are Off by Default](
1515

1616
The following sample generates C4514:
1717

18-
```
18+
```cpp
1919
// C4514.cpp
2020
// compile with: /W4
2121
#pragma warning(default : 4514)

docs/error-messages/compiler-warnings/compiler-warning-level-4-c4515.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ A namespace is used recursively.
1313

1414
The following sample generates C4515:
1515

16-
```
16+
```cpp
1717
// C4515.cpp
1818
// compile with: /W4
1919
namespace A

docs/error-messages/compiler-warnings/compiler-warning-level-4-c4516.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ The ANSI C++ committee has declared access declarations (changing the access of
1313

1414
The following sample generates C4516:
1515

16-
```
16+
```cpp
1717
// C4516.cpp
1818
// compile with: /W4
1919
class A

docs/error-messages/compiler-warnings/compiler-warning-level-4-c4564.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ The compiler detected a method with one or more parameters with default values.
1313

1414
Given the following .dll created with Visual Basic, which allows default parameters on method arguments:
1515

16-
```
16+
```vb
1717
' C4564.vb
1818
' compile with: vbc /t:library C4564.vb
1919
Public class TestClass
@@ -25,7 +25,7 @@ End class
2525

2626
And the following C++ sample that uses the .dll created with Visual Basic,
2727

28-
```
28+
```cpp
2929
// C4564.cpp
3030
// compile with: /clr /W4 /WX
3131
#using <C4564.dll>

docs/error-messages/tool-errors/linker-tools-warning-lnk4098.md

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
---
22
title: "Linker Tools Warning LNK4098"
3-
ms.date: "03/26/2019"
3+
description: "Describes how incompatible libraries cause linker tools warning LNK4098, and how to use /NODEFAULTLIB to fix it."
4+
ms.date: "12/02/2019"
45
f1_keywords: ["LNK4098"]
56
helpviewer_keywords: ["LNK4098"]
67
ms.assetid: 1f1b1408-1316-4e34-80f5-6a02f2db0ac1
@@ -28,5 +29,5 @@ The table below shows which libraries should be ignored depending on which run-t
2829
For example, if you received this warning and you want to create an executable file that uses the non-debug, DLL version of the run-time libraries, you could use the following options with the linker:
2930

3031
```cmd
31-
/NODEFAULTLIB:libcmt.lib NODEFAULTLIB:libcmtd.lib /NODEFAULTLIB:msvcrtd.lib
32-
```
32+
/NODEFAULTLIB:libcmt.lib /NODEFAULTLIB:libcmtd.lib /NODEFAULTLIB:msvcrtd.lib
33+
```

docs/preprocessor/warning.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ This directive is functionally equivalent to the following code:
5151

5252
The compiler adds 4000 to any warning number that is between 0 and 999.
5353

54-
For warning numbers in the range 4700-4999, which are the ones associated with code generation, the state of the warning in effect when the compiler encounters the open curly brace of a function will be in effect for the rest of the function. Use of the **warning** pragma in the function to change the state of a warning number larger than 4699 only takes effect after the end of the function. The following example shows the correct placement of **warning** pragmas to disable a code-generation warning message, and then to restore it.
54+
For warning numbers in the range 4700-4999, which are the ones associated with code generation, the state of the warning in effect when the compiler encounters the function definition will be in effect for the rest of the function. Use of the **warning** pragma in the function to change the state of a warning number larger than 4699 only takes effect after the end of the function. The following example shows the correct placement of **warning** pragmas to disable a code-generation warning message, and then to restore it.
5555

5656
```cpp
5757
// pragma_warning.cpp

0 commit comments

Comments
 (0)