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 <rguent...@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(-) diff --git a/libstdc++-v3/src/c++17/fs_ops.cc b/libstdc++-v3/src/c++17/fs_ops.cc index 5b7f7edd1c9..cc8e4683900 100644 --- a/libstdc++-v3/src/c++17/fs_ops.cc +++ b/libstdc++-v3/src/c++17/fs_ops.cc @@ -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 -- 2.31.1