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
@@ -26,17 +26,26 @@ The following warning-specifier parameters are available.
26
26
|--|--|
27
27
|`1`, `2`, `3`, `4`| Apply the given level to the specified warnings. Also turns on a specified warning that is off by default. |
28
28
|`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). |
29
-
|`disable`| Don't issue the specified warning messages. |
29
+
|`disable`| Don't issue the specified warning messages. The optional **`justification`** property is allowed. |
30
30
|`error`| Report the specified warnings as errors. |
31
31
|`once`| Display the specified message(s) only one time. |
32
-
|`suppress`| Pushes the current state of the pragma on the stack, disables the specified warning for the next line, and then pops the warning stack so that the pragma state is reset. |
32
+
|`suppress`| Pushes the current state of the pragma on the stack, disables the specified warning for the next line, and then pops the warning stack so that the pragma state is reset. The optional **`justification`** property is allowed. |
33
33
34
34
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.
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.
The **`justification`** fields allows you to explain why a warning is being disable or
47
+
suppressed. The **`justification`** field is only supported for the **`disable`** and **`suppress`***`warning-specifier`*. This value will appear in the SARIF output when the `/analyze:log:includesuppressed` option is specified. Its value is a UTF-8 encoded narrow string literal.
48
+
40
49
This directive is functionally equivalent to the following code:
0 commit comments