Closed chestnykh closed 3 months ago
With -Werror gcc-14.1.1 (with libstdc++-14) emits an error: error: ignoring return value of _FIter std::remove_if(_FIter, _FIter, _Predicate) ... ... declared with attribute nodiscard [-Werror=unused-result]. Use cast to void to avoid it.
-Werror
error: ignoring return value of _FIter std::remove_if(_FIter, _FIter, _Predicate) ... ... declared with attribute nodiscard [-Werror=unused-result]
void
With
-Werror
gcc-14.1.1 (with libstdc++-14) emits an error:error: ignoring return value of _FIter std::remove_if(_FIter, _FIter, _Predicate) ... ... declared with attribute nodiscard [-Werror=unused-result]
. Use cast tovoid
to avoid it.