Place stray return inside if
Commit Message
This avoids a -Wunreachable-code-return diagnostic about
two consecutive returns by placing the return in the appropriate
conditional block.
OK?
Thanks,
Richard.
2021-11-29 Richard Biener <rguenther@suse.de>
libstd++-v3/
* src/c++17/fs_ops.cc (fs::equivalent): Move return stmt inside #else.
---
libstdc++-v3/src/c++17/fs_ops.cc | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
@@ -898,8 +898,8 @@ fs::equivalent(const path& p1, const path& p2, error_code& ec) noexcept
return false;
#else
ec = std::make_error_code(std::errc::function_not_supported);
-#endif
return false;
+#endif
}
std::uintmax_t