Skip to content

Commit 31da439

Browse files
author
Colin Robertson
authored
Merge pull request #1745 from DGilliesMS/patch-1
Update warning.md
2 parents e9f26c2 + f16ecb2 commit 31da439

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

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)