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 1
1
---
2
- description : " Learn about the cause and fixes for Compiler warning (level 1) C4834."
3
2
title : " Compiler warning (Level 1) C4834"
3
+ description : " Learn about the cause and fixes for Compiler warning (level 1) C4834."
4
4
ms.date : 01/18/2024
5
5
f1_keywords : ["C4834"]
6
6
helpviewer_keywords : ["C4834"]
@@ -43,7 +43,7 @@ int square_of(int i) { return i * i; }
43
43
int main()
44
44
{
45
45
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:
47
47
// For example:
48
48
std::cout << "square_of(42) = " << square_of(42) << "\n"; // Ok
49
49
// Or:
You can’t perform that action at this time.
0 commit comments