Skip to content

Commit 3ee06ec

Browse files
authored
Merge pull request #2521 from MicrosoftDocs/master
11/26/2019 AM Publish
2 parents 4f15b69 + c6ef624 commit 3ee06ec

File tree

42 files changed

+48
-48
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

42 files changed

+48
-48
lines changed

docs/assembler/masm/comm.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -19,9 +19,9 @@ Communal variables are allocated by the linker, and can't be initialized. This m
1919

2020
Each *definition* has the following form:
2121

22-
*langtype*⟧ ⟦**NEAR** | **FAR**_label_**:**_type_**:**_count_
22+
*language-type*⟧ ⟦**NEAR** | **FAR**_label_**:**_type_**:**_count_
2323

24-
The optional *langtype* sets the naming conventions for the name that follows. It overrides any language specified by the **.MODEL** directive. The optional **NEAR** or **FAR** override the current memory model. The *label* is the name of the variable. The *type* can be any type specifier ([BYTE](../../assembler/masm/byte-masm.md), [WORD](../../assembler/masm/word.md), and so on) or an integer specifying the number of bytes. The optional *count* specifies the number of elements in the declared data object; the default is one.
24+
The optional *language-type* sets the naming conventions for the name that follows. It overrides any language specified by the **.MODEL** directive. The optional **NEAR** or **FAR** override the current memory model. The *label* is the name of the variable. The *type* can be any type specifier ([BYTE](../../assembler/masm/byte-masm.md), [WORD](../../assembler/masm/word.md), and so on) or an integer specifying the number of bytes. The optional *count* specifies the number of elements in the declared data object. The default *count* is one.
2525

2626
## Example
2727

@@ -33,4 +33,4 @@ COMM FAR ByteArray:BYTE:512
3333

3434
## See also
3535

36-
[Directives Reference](../../assembler/masm/directives-reference.md)
36+
[Directives reference](directives-reference.md)

docs/cppcx/wrl/windows-runtime-cpp-template-library-wrl.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@ Uses the `HttpRequest` class that's defined in [Walkthrough: Connecting Using Ta
6767
[Creating a Windows Runtime DLL component with C++ sample](https://code.msdn.microsoft.com/windowsapps/Creating-a-Windows-Runtime-6c399797)<br/>
6868
Shows how to use the Windows Runtime C++ Template Library to create an in-process DLL component and consume it from C++/CX, JavaScript, and C#.
6969

70-
[DirectX marble maze game sample](https://code.msdn.microsoft.com/windowsapps/DirectX-Marble-Maze-Game-e4806345)<br/>
70+
[DirectX marble maze game sample](https://docs.microsoft.com/samples/microsoft/windows-appsample-marble-maze/directx-marble-maze-game-sample/)<br/>
7171
Demonstrates how to use the Windows Runtime C++ Template Library to manage the lifetime of COM components such as DirectX and Media Foundation in the context of a complete 3-D game.
7272

7373
[Sending toast notifications from desktop apps sample](https://code.msdn.microsoft.com/windowsdesktop/Sending-toast-notifications-71e230a2)<br/>

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ You can also manually unpin the object and ignore the warning.
1717

1818
The following sample generates C4823.
1919

20-
```
20+
```cpp
2121
// C4823.cpp
2222
// compile with: /clr /W3 /EHa-
2323
using namespace System;

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ The compiler encountered a function that was marked with pragma [deprecated](../
1515

1616
The following sample generates C4995:
1717

18-
```
18+
```cpp
1919
// C4995.cpp
2020
// compile with: /W3
2121
#include <stdio.h>

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ Under strict ANSI compatibility ([/Za](../../build/reference/za-ze-disable-langu
1919

2020
To disable warning, uncomment [#pragma warning(disable:4001)](../../preprocessor/warning.md).
2121

22-
```
22+
```cpp
2323
// C4001.cpp
2424
// compile with: /W4 /Za /TC
2525
// #pragma warning(disable:4001)

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ This warning may be fixed if you remove the extra semicolon.
1515

1616
## Example
1717

18-
```
18+
```c
1919
// C4019.c
2020
// compile with: /Za /W4
2121
#define declint( varname ) int varname;

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ This is an error in ANSI C ([/Za](../../build/reference/za-ze-disable-language-e
1515

1616
## Example
1717

18-
```
18+
```c
1919
// C4032.c
2020
// compile with: /W4
2121
void func();

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ C4100 can also be issued when code calls a destructor on a otherwise unreference
1515

1616
The following sample generates C4100:
1717

18-
```
18+
```cpp
1919
// C4100.cpp
2020
// compile with: /W4
2121
void func(int i) { // C4100, delete the unreferenced parameter to

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ ms.assetid: 8c5b85c9-2543-426b-88bc-319c50158c7e
1111

1212
The compiler added padding to align a structure member on the packing boundary but the packing value is less than the member's size. For example, the following code snippet produces C4121:
1313

14-
```
14+
```cpp
1515
// C4121.cpp
1616
// compile with: /W4 /c
1717
#pragma pack(2)

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ The compiler evaluates the octal number without the decimal digit and assumes th
1313

1414
## Example
1515

16-
```
16+
```cpp
1717
// C4125a.cpp
1818
// compile with: /W4
1919
char array1[] = "\709"; // C4125
@@ -24,7 +24,7 @@ int main()
2424

2525
If the digit 9 is intended as a character, correct the example as follows:
2626

27-
```
27+
```cpp
2828
// C4125b.cpp
2929
// compile with: /W4
3030
char array[] = "\0709"; // C4125 String containing "89"

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ Using the operator with the address of a string literal produces unexpected code
1313

1414
The following sample generates C4130:
1515

16-
```
16+
```cpp
1717
// C4130.cpp
1818
// compile with: /W4
1919
int main()

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ Old-style function declarations should be converted to prototype form.
1515

1616
The following example shows an old-style function declaration:
1717

18-
```
18+
```c
1919
// C4131.c
2020
// compile with: /W4 /c
2121
void addrec( name, id ) // C4131 expected
@@ -26,7 +26,7 @@ int id;
2626
2727
The following example shows a prototype form:
2828
29-
```
29+
```c
3030
void addrec( char *name, int id )
3131
{ }
3232
```

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ A variable is declared and initialized but not used.
1313

1414
The following sample generates C4189:
1515

16-
```
16+
```cpp
1717
// C4189.cpp
1818
// compile with: /W4
1919
int main() {

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ Under Microsoft extensions (/Ze), you can specify a structure without a declarat
1313

1414
## Example
1515

16-
```
16+
```cpp
1717
// C4201.cpp
1818
// compile with: /W4
1919
struct S

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ An old-style function definition contains variable arguments. These definitions
1313

1414
## Example
1515

16-
```
16+
```c
1717
// C4202.c
1818
// compile with: /W4
1919
void func( a, b, ...) // C4202

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ With Microsoft extensions (/Ze), you can initialize aggregate types (arrays, str
1313

1414
## Example
1515

16-
```
16+
```c
1717
// C4204.c
1818
// compile with: /W4
1919
int func1()

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ With Microsoft extensions (/Ze), **static** functions can be declared inside ano
1313

1414
## Example
1515

16-
```
16+
```c
1717
// C4205.c
1818
// compile with: /W4
1919
void func1()

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ With Microsoft extensions (/Ze), you can initialize an unsized array of `char` u
1313

1414
## Example
1515

16-
```
16+
```c
1717
// C4207.c
1818
// compile with: /W4
1919
char c[] = { 'a', 'b', "cdefg" }; // C4207

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ nonstandard extension used : delete [exp] - exp evaluated but ignored
1111

1212
With Microsoft extensions (/Ze), you can delete an array using a value within brackets with the [delete operator](../../cpp/delete-operator-cpp.md). The value is ignored.
1313

14-
```
14+
```cpp
1515
// C4208.cpp
1616
// compile with: /W4
1717
int main()

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ nonstandard extension used : function given file scope
1111

1212
With the default Microsoft extensions ([/Ze](../../build/reference/za-ze-disable-language-extensions.md)), function declarations have file scope.
1313

14-
```
14+
```c
1515
// C4210.c
1616
// compile with: /W4 /c
1717
void func1()

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ With the default Microsoft extensions (/Ze), you can redefine an `extern` identi
1313

1414
## Example
1515

16-
```
16+
```c
1717
// C4211.c
1818
// compile with: /W4
1919
extern int i;

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ The function prototype has a variable number of arguments. The function definiti
1313

1414
The following sample generates C4212:
1515

16-
```
16+
```c
1717
// C4212.c
1818
// compile with: /W4 /Ze /c
1919
void f(int , ...);

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ With the default Microsoft extensions (/Ze), you can use casts on the left side
1313

1414
## Example
1515

16-
```
16+
```c
1717
// C4213.c
1818
// compile with: /W4
1919
void *a;

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ With the default Microsoft extensions (/Ze), bitfield structure members can be o
1313

1414
## Example
1515

16-
```
16+
```c
1717
// C4214.c
1818
// compile with: /W4
1919
struct bitfields

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ Under the default Microsoft extensions (/Ze), a pointer to a function matches a
1313

1414
## Example
1515

16-
```
16+
```c
1717
// C4220.c
1818
// compile with: /W4
1919

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ With the default Microsoft extensions (/Ze), you can initialize an aggregate typ
1313

1414
## Example
1515

16-
```
16+
```c
1717
// C4221.c
1818
// compile with: /W4
1919
struct S

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ Under Microsoft extensions (/Ze), you can give a nonstatic value as the address
1313

1414
The following sample generates C4232:
1515

16-
```
16+
```c
1717
// C4232.c
1818
// compile with: /W4 /Ze /c
1919
int __declspec(dllimport) f();

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ The compiler does not yet implement the keyword you used.
1313

1414
This warning is automatically promoted to an error. If you wish to modify this behavior, use [#pragma warning](../../preprocessor/warning.md). For example, to make C4234 into a level 4 warning issue,
1515

16-
```
16+
```cpp
1717
#pragma warning(2:4234)
1818
```
1919

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ The compiler does not support the keyword you used.
1313

1414
This warning is automatically promoted to an error. If you wish to modify this behavior, use [#pragma warning](../../preprocessor/warning.md). For example, to make C4235 into a level 2 warning, use the following line of code
1515

16-
```
16+
```cpp
1717
#pragma warning(2:4235)
1818
```
1919

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ For compatibility with previous versions of Visual C++, Microsoft extensions (**
1313

1414
## Example
1515

16-
```
16+
```cpp
1717
// C4238.cpp
1818
// compile with: /W4 /c
1919
struct C {

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ This type conversion is not allowed by the C++ standard, but it is permitted her
1515

1616
The following sample generates C4239.
1717

18-
```
18+
```cpp
1919
// C4239.cpp
2020
// compile with: /W4 /c
2121
struct C {
@@ -35,7 +35,7 @@ Conversion from integral type to enum type is not strictly allowed.
3535
3636
The following sample generates C4239.
3737
38-
```
38+
```cpp
3939
// C4239b.cpp
4040
// compile with: /W4 /c
4141
enum E { value };

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ For additional information on C4242, see [Common Compiler Errors](/windows/win32
1717

1818
The following sample generates C4242:
1919

20-
```
20+
```cpp
2121
// C4242.cpp
2222
// compile with: /W4
2323
#pragma warning(4:4242)

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ You tried to convert a signed **const** that has a negative value to an `unsigne
1313

1414
The following sample generates C4245:
1515

16-
```
16+
```cpp
1717
// C4245.cpp
1818
// compile with: /W4 /c
1919
const int i = -1;

docs/error-messages/compiler-warnings/compiler-warning-level-4-c4254.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 C4254:
1717

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

docs/error-messages/compiler-warnings/compiler-warning-level-4-c4255.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 C4255:
1717

18-
```
18+
```c
1919
// C4255.c
2020
// compile with: /W4 /WX
2121
#pragma warning (default : 4255)

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ To fix this warning,
2121

2222
The following sample generates C4256:
2323

24-
```
24+
```cpp
2525
// C4256.cpp
2626
// compile with: /W4
2727
// #pragma warning(disable : 4256)

docs/error-messages/compiler-warnings/compiler-warning-level-4-c4263.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 C4263:
1717

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

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

Lines changed: 2 additions & 2 deletions
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 C4266:
1717

18-
```
18+
```cpp
1919
// C4266.cpp
2020
// compile with: /W4 /c
2121
#pragma warning (default : 4266)
@@ -32,7 +32,7 @@ class LocalBinding : private Engine {
3232
3333
Possible resolution:
3434
35-
```
35+
```cpp
3636
// C4266b.cpp
3737
// compile with: /W4 /c
3838
#pragma warning (default : 4266)

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ A **const** global or static instance of a non-trivial class is initialized with
1313

1414
## Example
1515

16-
```
16+
```cpp
1717
// C4268.cpp
1818
// compile with: /c /LD /W4
1919
class X {

0 commit comments

Comments
 (0)