File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed
docs/error-messages/compiler-warnings Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change 11---
2- description : " Learn about the cause and fixes for Compiler warning (level 1) C4834."
32title : " Compiler warning (Level 1) C4834"
3+ description : " Learn about the cause and fixes for Compiler warning (level 1) C4834."
44ms.date : 01/18/2024
55f1_keywords : ["C4834"]
66helpviewer_keywords : ["C4834"]
@@ -43,7 +43,7 @@ int square_of(int i) { return i * i; }
4343int main()
4444{
4545 square_of(42); // warning C4834: discarding return value of function with 'nodiscard' attribute
46- // If ignoring the [[ nodiscard] attribute is unintentional, make use of the return value as intended:
46+ // If ignoring the [[ nodiscard]] attribute is unintentional, make use of the return value as intended:
4747 // For example:
4848 std::cout << "square_of(42) = " << square_of(42) << "\n"; // Ok
4949 // Or:
You can’t perform that action at this time.
0 commit comments