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.
This commit is contained in:
Jonathan Wakely 2021-08-23 13:05:25 +01:00
parent 3eb377b437
commit bc97e736a5
1 changed files with 1 additions and 1 deletions

View File

@ -160,7 +160,7 @@ namespace __gnu_test
path_type path;
};
bool
inline bool
permissions_are_testable(bool print_msg = true)
{
bool testable = false;