Fix some -Wunreachable-code-aggressive warnings

Bug: chromium:1066980
Change-Id: I24fea094f28577799c5fcbcf2e9657ffa9bfd076
Reviewed-on: https://webrtc-review.googlesource.com/c/src/+/228760
Reviewed-by: Jamie Walch <jamiewalch@chromium.org>
Reviewed-by: Tommi <tommi@webrtc.org>
Commit-Queue: Tommi <tommi@webrtc.org>
Cr-Commit-Position: refs/heads/master@{#34766}
This commit is contained in:
Nico Weber 2021-08-14 23:07:06 -04:00 committed by WebRTC LUCI CQ
parent 96106719a9
commit 19214818d7
3 changed files with 6 additions and 6 deletions

View File

@ -29,9 +29,9 @@ Aec3Optimization DetectOptimization() {
#if defined(WEBRTC_HAS_NEON) #if defined(WEBRTC_HAS_NEON)
return Aec3Optimization::kNeon; return Aec3Optimization::kNeon;
#endif #else
return Aec3Optimization::kNone; return Aec3Optimization::kNone;
#endif
} }
float FastApproxLog2f(const float in) { float FastApproxLog2f(const float in) {

View File

@ -34,9 +34,9 @@ std::unique_ptr<DesktopCapturer> DesktopCapturer::CreateRawScreenCapturer(
#if defined(WEBRTC_USE_X11) #if defined(WEBRTC_USE_X11)
return ScreenCapturerX11::CreateRawScreenCapturer(options); return ScreenCapturerX11::CreateRawScreenCapturer(options);
#endif // defined(WEBRTC_USE_X11) #else
return nullptr; return nullptr;
#endif // defined(WEBRTC_USE_X11)
} }
} // namespace webrtc } // namespace webrtc

View File

@ -34,9 +34,9 @@ std::unique_ptr<DesktopCapturer> DesktopCapturer::CreateRawWindowCapturer(
#if defined(WEBRTC_USE_X11) #if defined(WEBRTC_USE_X11)
return WindowCapturerX11::CreateRawWindowCapturer(options); return WindowCapturerX11::CreateRawWindowCapturer(options);
#endif // defined(WEBRTC_USE_X11) #else
return nullptr; return nullptr;
#endif // defined(WEBRTC_USE_X11)
} }
} // namespace webrtc } // namespace webrtc