diff --git a/modules/audio_processing/aec3/aec3_common.cc b/modules/audio_processing/aec3/aec3_common.cc index 7bd8d6267a..3ba10d5baf 100644 --- a/modules/audio_processing/aec3/aec3_common.cc +++ b/modules/audio_processing/aec3/aec3_common.cc @@ -29,9 +29,9 @@ Aec3Optimization DetectOptimization() { #if defined(WEBRTC_HAS_NEON) return Aec3Optimization::kNeon; -#endif - +#else return Aec3Optimization::kNone; +#endif } float FastApproxLog2f(const float in) { diff --git a/modules/desktop_capture/screen_capturer_linux.cc b/modules/desktop_capture/screen_capturer_linux.cc index ed48b7d6d5..6cad2acd64 100644 --- a/modules/desktop_capture/screen_capturer_linux.cc +++ b/modules/desktop_capture/screen_capturer_linux.cc @@ -34,9 +34,9 @@ std::unique_ptr DesktopCapturer::CreateRawScreenCapturer( #if defined(WEBRTC_USE_X11) return ScreenCapturerX11::CreateRawScreenCapturer(options); -#endif // defined(WEBRTC_USE_X11) - +#else return nullptr; +#endif // defined(WEBRTC_USE_X11) } } // namespace webrtc diff --git a/modules/desktop_capture/window_capturer_linux.cc b/modules/desktop_capture/window_capturer_linux.cc index 2b142ae3b9..89ba90d80e 100644 --- a/modules/desktop_capture/window_capturer_linux.cc +++ b/modules/desktop_capture/window_capturer_linux.cc @@ -34,9 +34,9 @@ std::unique_ptr DesktopCapturer::CreateRawWindowCapturer( #if defined(WEBRTC_USE_X11) return WindowCapturerX11::CreateRawWindowCapturer(options); -#endif // defined(WEBRTC_USE_X11) - +#else return nullptr; +#endif // defined(WEBRTC_USE_X11) } } // namespace webrtc