@@ -2325,7 +2325,9 @@ static std::vector<std::string> GetReservedAttributesForElement(
23252325 return std::vector<std::string>();
23262326}
23272327
2328+ #if GTEST_HAS_FILE_SYSTEM
23282329// TODO(jdesprez): Merge the two getReserved attributes once skip is improved
2330+ // This function is only used when file systems are enabled.
23292331static std::vector<std::string> GetReservedOutputAttributesForElement (
23302332 const std::string& xml_element) {
23312333 if (xml_element == " testsuites" ) {
@@ -2340,6 +2342,7 @@ static std::vector<std::string> GetReservedOutputAttributesForElement(
23402342 // This code is unreachable but some compilers may not realizes that.
23412343 return std::vector<std::string>();
23422344}
2345+ #endif
23432346
23442347static std::string FormatWordList (const std::vector<std::string>& words) {
23452348 Message word_list;
@@ -6802,7 +6805,7 @@ std::string TempDir() {
68026805#endif
68036806}
68046807
6805- #if !defined(GTEST_CUSTOM_SRCDIR_FUNCTION_)
6808+ #if GTEST_HAS_FILE_SYSTEM && !defined(GTEST_CUSTOM_SRCDIR_FUNCTION_)
68066809// Returns the directory path (including terminating separator) of the current
68076810// executable as derived from argv[0].
68086811static std::string GetCurrentExecutableDirectory () {
@@ -6811,6 +6814,7 @@ static std::string GetCurrentExecutableDirectory() {
68116814}
68126815#endif
68136816
6817+ #if GTEST_HAS_FILE_SYSTEM
68146818std::string SrcDir () {
68156819#if defined(GTEST_CUSTOM_SRCDIR_FUNCTION_)
68166820 return GTEST_CUSTOM_SRCDIR_FUNCTION_ ();
@@ -6825,6 +6829,7 @@ std::string SrcDir() {
68256829 ' /' );
68266830#endif
68276831}
6832+ #endif
68286833
68296834// Class ScopedTrace
68306835
0 commit comments