Skip to content

Commit 73a7223

Browse files
committed
CWG2943 Discarding a void return value
1 parent 57b6a1a commit 73a7223

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

source/declarations.tex

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9563,6 +9563,7 @@
95639563
\recommended
95649564
Appearance of a nodiscard call as
95659565
a potentially-evaluated discarded-value expression\iref{expr.prop}
9566+
of non-void type
95669567
is discouraged unless explicitly cast to \keyword{void}.
95679568
Implementations should issue a warning in such cases.
95689569
The value of

0 commit comments

Comments
 (0)