Skip to content

Commit b6a4fe8

Browse files
authored
Merge pull request #5898 from TylerMSFT/UUF
UUF fixes and update gaming link on Hub page
2 parents 58b8900 + 0eac1ce commit b6a4fe8

File tree

5 files changed

+23
-23
lines changed

5 files changed

+23
-23
lines changed

docs/assembler/masm/masm-for-x64-ml64-exe.md

+1-2
Original file line numberDiff line numberDiff line change
@@ -3,11 +3,10 @@ description: "Learn more about: Microsoft Macro Assembler (MASM) for x64 (ml64.e
33
title: "MASM for x64 (ml64.exe)"
44
ms.date: 09/21/2021
55
helpviewer_keywords: ["ml64", "ml64.exe", "masm for x64"]
6-
ms.assetid: 89059103-f372-4968-80ea-0c7f90bb9c91
76
---
87
# MASM for x64 (ml64.exe)
98

10-
Visual Studio includes both 32-bit and 64-bit hosted versions of MASM (the Microsoft Macro Assembler) to target x64 code. Named ml64.exe, it's the assembler that accepts x64 assembler language. The MASM command-line tools are installed when you choose a C++ workload during Visual Studio installation. The MASM tools aren't available as a separate download. For instructions on how to download and install a copy of Visual Studio, see [Install Visual Studio](/visualstudio/install/install-visual-studio). If you only want the command-line tools, not the full IDE, download the [Build Tools for Visual Studio](https://visualstudio.microsoft.com/downloads/#build-tools-for-visual-studio-2022).
9+
Visual Studio includes both 32-bit and 64-bit hosted versions of MASM (the Microsoft Macro Assembler) to target x64 code. Named ml64.exe, it's the assembler that accepts x64 assembly language. The MASM command-line tools are installed when you choose a C++ workload during Visual Studio installation. The MASM tools aren't available as a separate download. For instructions on how to download and install a copy of Visual Studio, see [Install Visual Studio](/visualstudio/install/install-visual-studio). If you only want the command-line tools, not the full IDE, download the [Build Tools for Visual Studio](https://visualstudio.microsoft.com/downloads/#build-tools-for-visual-studio-2022).
1110

1211
To use ml64.exe on the command line, start a developer command prompt for x64 targets. A developer command prompt sets the required path and other environment variables. For information on how to start a developer command prompt, see [Build C/C++ code on the command line](../../build/building-on-the-command-line.md).
1312

docs/build/reference/running-nmake.md

+2
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,8 @@ helpviewer_keywords: ["targets, building", "response files, NMAKE", "targets", "
1212
1313
## Remarks
1414

15+
NMAKE must run in a Developer Command Prompt window. A Developer Command Prompt window has the environment variables set for the tools, libraries, and include file paths required to build at the command line. For details on how to open a Developer Command Prompt window, see [Use the MSVC toolset from the command line](../building-on-the-command-line.md).
16+
1517
NMAKE builds only specified *targets* or, when none is specified, the first target in the makefile. The first makefile target can be a [pseudotarget](description-blocks.md#pseudotargets) that builds other targets. NMAKE uses makefiles specified with **`/F`**, or if **`/F`** isn't specified, the Makefile file in the current directory. If no makefile is specified, it uses inference rules to build command-line *targets*.
1618

1719
The *command-file* text file (or response file) contains command-line input. Other input can precede or follow \@*command-file*. A path is permitted. In *command-file*, line breaks are treated as spaces. Enclose macro definitions in quotation marks if they contain spaces.

docs/code-quality/c6386.md

+6-9
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,9 @@
11
---
22
description: "Learn more about: Warning C6386"
33
title: Warning C6386
4-
ms.date: 11/04/2016
4+
ms.date: 4/30/2025
55
f1_keywords: ["C6386", "WRITE_OVERRUN", "__WARNING_WRITE_OVERRUN"]
66
helpviewer_keywords: ["C6386"]
7-
ms.assetid: 84e69fe8-8f03-4bb3-b194-e5551882e214
87
---
98
# Warning C6386
109

@@ -23,24 +22,22 @@ The following code generates both this warning and [C6201](../code-quality/c6201
2322
```cpp
2423
#define MAX 25
2524

26-
void f ( )
25+
void f()
2726
{
28-
char ar[MAX];
29-
// code ...
30-
ar[MAX] = '\0';
27+
char a[MAX];
28+
a[MAX] = '\0'; // this writes one element past the end of the buffer
3129
}
3230
```
3331

34-
To correct both warnings, use the following code:
32+
To correct the warning, use the following code which accounts for the fact that array indexes are zero-based. Thus `MAX - 1` is the last element in the buffer:
3533

3634
```cpp
3735
#define MAX 25
3836

3937
void f ( )
4038
{
4139
char a[MAX];
42-
// code ...
43-
a[MAX - 1] = '\0';
40+
a[MAX-1] = '\0';
4441
}
4542
```
4643

docs/index.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -172,7 +172,7 @@ additionalContent:
172172
- text: Mobile development
173173
url: cross-platform/index.yml
174174
- text: Game development
175-
url: /windows/uwp/gaming/e2e/
175+
url: /visualstudio/gamedev/
176176
# Card
177177
- title: Features
178178
links:

docs/preprocessor/warning.md

+13-11
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
---
22
title: "warning pragma"
33
description: "Learn more about the warning pragma in Microsoft C/C++"
4-
ms.date: 01/22/2021
4+
ms.date: 4/30/2025
55
f1_keywords: ["warning_CPP", "vc-pragma.warning"]
66
helpviewer_keywords: ["pragma, warning", "push pragma warning", "pop warning pragma", "warning pragma"]
77
no-loc: ["pragma"]
@@ -24,7 +24,7 @@ The following warning-specifier parameters are available.
2424

2525
| warning-specifier | Meaning |
2626
|--|--|
27-
| `1`, `2`, `3`, `4` | Apply the given level to the specified warnings. Also turns on a specified warning that is off by default. |
27+
| `1`, `2`, `3`, `4` | Apply the given level to the specified warnings. For example: `#pragma warning (3 : 5033)` turns off warning 5033 (normally a level 1 warning) unless the warning level is set to `/w3` or higher. Also can be used to turn on a specified warning that is off by default. |
2828
| `default` | Reset warning behavior to its default value. Also turns on a specified warning that is off by default. The warning will be generated at its default, documented, level.<br /><br /> For more information, see [Compiler warnings that are off by default](../preprocessor/compiler-warnings-that-are-off-by-default.md). |
2929
| `disable` | Don't issue the specified warning messages. The optional **`justification`** property is allowed. |
3030
| `error` | Report the specified warnings as errors. |
@@ -34,7 +34,7 @@ The following warning-specifier parameters are available.
3434
The following code statement illustrates that a *`warning-number-list`* parameter can contain multiple warning numbers, and that multiple *`warning-specifier`* parameters can be specified in the same pragma directive.
3535

3636
```cpp
37-
#pragma warning( disable : 4507 34; once : 4385; error : 164 )
37+
#pragma warning( disable : 4507 4034; once : 4385; error : 164 )
3838
```
3939

4040
However, when the **`justification`** field is present, only one warning number can be specified. The following code statement illustrates the use of the **`justification`** field.
@@ -50,13 +50,13 @@ This directive is functionally equivalent to the following code:
5050

5151
```cpp
5252
// Disable warning messages 4507 and 4034.
53-
#pragma warning( disable : 4507 34 )
53+
#pragma warning(disable : 4507 4034)
5454

5555
// Issue warning C4385 only once.
56-
#pragma warning( once : 4385 )
56+
#pragma warning(once : 4385)
5757

5858
// Report warning C4164 as an error.
59-
#pragma warning( error : 164 )
59+
#pragma warning(error : 164)
6060
```
6161

6262
The compiler adds 4000 to any warning number that is between 0 and 999.
@@ -67,15 +67,17 @@ Warning numbers in the range 4700-4999 are associated with code generation. For
6767
// pragma_warning.cpp
6868
// compile with: /W1
6969
#pragma warning(disable:4700)
70-
void Test() {
70+
void Test()
71+
{
7172
int x;
72-
int y = x; // no C4700 here
73-
#pragma warning(default:4700) // C4700 enabled after Test ends
73+
int y = x; // no C4700 here
74+
#pragma warning(default:4700) // C4700 enabled after compiling Test()
7475
}
7576

76-
int main() {
77+
int main()
78+
{
7779
int x;
78-
int y = x; // C4700
80+
int y = x; // C4700
7981
}
8082
```
8183

0 commit comments

Comments
 (0)