Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
yangql
googletest
Commits
c5be3930
Commit
c5be3930
authored
Jun 09, 2021
by
Abseil Team
Committed by
Dino Radaković
Jun 11, 2021
Browse files
Googletest export
cleanup: fix spurious MSAN warnings with Clang 12 PiperOrigin-RevId: 378430614
parent
aa533abf
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
googletest/src/gtest-filepath.cc
googletest/src/gtest-filepath.cc
+2
-2
No files found.
googletest/src/gtest-filepath.cc
View file @
c5be3930
...
@@ -210,7 +210,7 @@ bool FilePath::FileOrDirectoryExists() const {
...
@@ -210,7 +210,7 @@ bool FilePath::FileOrDirectoryExists() const {
delete
[]
unicode
;
delete
[]
unicode
;
return
attributes
!=
kInvalidFileAttributes
;
return
attributes
!=
kInvalidFileAttributes
;
#else
#else
posix
::
StatStruct
file_stat
;
posix
::
StatStruct
file_stat
{}
;
return
posix
::
Stat
(
pathname_
.
c_str
(),
&
file_stat
)
==
0
;
return
posix
::
Stat
(
pathname_
.
c_str
(),
&
file_stat
)
==
0
;
#endif // GTEST_OS_WINDOWS_MOBILE
#endif // GTEST_OS_WINDOWS_MOBILE
}
}
...
@@ -237,7 +237,7 @@ bool FilePath::DirectoryExists() const {
...
@@ -237,7 +237,7 @@ bool FilePath::DirectoryExists() const {
result
=
true
;
result
=
true
;
}
}
#else
#else
posix
::
StatStruct
file_stat
;
posix
::
StatStruct
file_stat
{}
;
result
=
posix
::
Stat
(
path
.
c_str
(),
&
file_stat
)
==
0
&&
result
=
posix
::
Stat
(
path
.
c_str
(),
&
file_stat
)
==
0
&&
posix
::
IsDir
(
file_stat
);
posix
::
IsDir
(
file_stat
);
#endif // GTEST_OS_WINDOWS_MOBILE
#endif // GTEST_OS_WINDOWS_MOBILE
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment