commit bc97e736a5597ac1545b7f9069472117b6caa867 Author: Jonathan Wakely Date: Mon Aug 23 13:05:25 2021 libstdc++: Make permissions_are_testable function inline [PR90787] This function should be inline, so that's it's not emitted in tests that don't use it, to avoid undefined references to geteuid(). libstdc++-v3/ChangeLog: PR libstdc++/90787 * testsuite/util/testsuite_fs.h (permissions_are_testable): Define as inline. diff --git a/libstdc++-v3/testsuite/util/testsuite_fs.h b/libstdc++-v3/testsuite/util/testsuite_fs.h index 674b60b83d2..0d32a616840 100644 --- a/libstdc++-v3/testsuite/util/testsuite_fs.h +++ b/libstdc++-v3/testsuite/util/testsuite_fs.h @@ -160,7 +160,7 @@ namespace __gnu_test path_type path; }; - bool + inline bool permissions_are_testable(bool print_msg = true) { bool testable = false;