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
With c++17 the [[nodiscard]] was introduced, which can be added to functions, so the compiler gives warnings, when the return-value of the function is not used. This is a quite nice feature to increase security and stability of the code itself, so it should be used where ever it is reasonable.
Acceptance Criteria
all functions and methods in the code, with are used for checks or returning true/false to indicate success/fail, now have the [[nodiscard]] in front of it
all resulting compiler-warnings are fixed, by adding checks for the return value
QA
Description
With c++17 the
[[nodiscard]]
was introduced, which can be added to functions, so the compiler gives warnings, when the return-value of the function is not used. This is a quite nice feature to increase security and stability of the code itself, so it should be used where ever it is reasonable.Acceptance Criteria
[[nodiscard]]
in front of itAdditional Information
Blocked by
How to test
The text was updated successfully, but these errors were encountered: