webrtc: Suppress a -Wunreachable-code warning on Android.

Bug: chromium:346399
Change-Id: Ie67cb36f96acd1ce752a274f309453be65fd83e9
Reviewed-on: https://webrtc-review.googlesource.com/c/src/+/171640
Commit-Queue: Nico Weber <thakis@chromium.org>
Reviewed-by: Sebastian Jansson <srte@webrtc.org>
Cr-Commit-Position: refs/heads/master@{#30879}
This commit is contained in:
Nico Weber 2020-03-24 17:01:17 -04:00 committed by Commit Bot
parent 1b20c41dcb
commit 000fb8440f

View File

@ -128,7 +128,7 @@ std::string OutputPath() {
std::string WorkingDir() {
#if defined(WEBRTC_ANDROID)
return kAndroidChromiumTestsRoot;
#endif
#else
char path_buffer[FILENAME_MAX];
if (!GET_CURRENT_DIR(path_buffer, sizeof(path_buffer))) {
fprintf(stderr, "Cannot get current directory!\n");
@ -136,6 +136,7 @@ std::string WorkingDir() {
} else {
return std::string(path_buffer);
}
#endif
}
std::string ResourcePath(const std::string& name,