]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
libstdc++: Make permissions_are_testable function inline [PR90787]
authorJonathan Wakely <jwakely@redhat.com>
Mon, 23 Aug 2021 12:05:25 +0000 (13:05 +0100)
committerJonathan Wakely <jwakely@redhat.com>
Mon, 23 Aug 2021 13:44:48 +0000 (14:44 +0100)
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.

libstdc++-v3/testsuite/util/testsuite_fs.h

index 674b60b83d2642cb63d11e47c358c6ebd59fe0ab..0d32a616840eed774179c8e87a1005daa3ff4c12 100644 (file)
@@ -160,7 +160,7 @@ namespace __gnu_test
     path_type path;
   };
 
-  bool
+  inline bool
   permissions_are_testable(bool print_msg = true)
   {
     bool testable = false;