Projects
Extra
chromium-ffmpeg-extra
chromium-non-void-return.patch
Sign Up
Log In
Username
Password
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File chromium-non-void-return.patch of Package chromium-ffmpeg-extra (Revision 17)
Currently displaying revision
17
,
Show latest
Index: chromium-69.0.3497.57/media/gpu/vaapi/vaapi_wrapper.cc =================================================================== --- chromium-69.0.3497.57.orig/media/gpu/vaapi/vaapi_wrapper.cc +++ chromium-69.0.3497.57/media/gpu/vaapi/vaapi_wrapper.cc @@ -400,6 +400,8 @@ static VAEntrypoint GetVaEntryPoint(Vaap case VaapiWrapper::kCodecModeMax: NOTREACHED(); return VAEntrypointVLD; + default: + return 0; } } Index: chromium-69.0.3497.57/cc/input/snap_fling_controller.cc =================================================================== --- chromium-69.0.3497.57.orig/cc/input/snap_fling_controller.cc +++ chromium-69.0.3497.57/cc/input/snap_fling_controller.cc @@ -26,6 +26,8 @@ bool SnapFlingController::FilterEventFor case GestureScrollType::kEnd: { return state_ == State::kActive || state_ == State::kFinished; } + default: + return false; } } Index: chromium-69.0.3497.57/chrome/browser/ui/webui/discards/discards_ui.cc =================================================================== --- chromium-69.0.3497.57.orig/chrome/browser/ui/webui/discards/discards_ui.cc +++ chromium-69.0.3497.57/chrome/browser/ui/webui/discards/discards_ui.cc @@ -48,6 +48,8 @@ mojom::LifecycleUnitVisibility GetLifecy return mojom::LifecycleUnitVisibility::OCCLUDED; case content::Visibility::VISIBLE: return mojom::LifecycleUnitVisibility::VISIBLE; + default: + return mojom::LifecycleUnitVisibility::VISIBLE; } #if defined(COMPILER_MSVC) NOTREACHED(); Index: chromium-69.0.3497.57/components/autofill/core/browser/autofill_manager.cc =================================================================== --- chromium-69.0.3497.57.orig/components/autofill/core/browser/autofill_manager.cc +++ chromium-69.0.3497.57/components/autofill/core/browser/autofill_manager.cc @@ -285,6 +285,7 @@ PopupType AutofillManager::GetPopupType( default: NOTREACHED(); + return PopupType::kUnspecified; } } Index: chromium-69.0.3497.57/components/cast_channel/cast_message_util.cc =================================================================== --- chromium-69.0.3497.57.orig/components/cast_channel/cast_message_util.cc +++ chromium-69.0.3497.57/components/cast_channel/cast_message_util.cc @@ -368,6 +368,8 @@ const char* GetAppAvailabilityResultToSt return "unavailable"; case GetAppAvailabilityResult::kUnknown: return "unknown"; + default: + return "unknown"; } } Index: chromium-69.0.3497.57/components/data_reduction_proxy/core/browser/data_reduction_proxy_util.cc =================================================================== --- chromium-69.0.3497.57.orig/components/data_reduction_proxy/core/browser/data_reduction_proxy_util.cc +++ chromium-69.0.3497.57/components/data_reduction_proxy/core/browser/data_reduction_proxy_util.cc @@ -337,6 +337,8 @@ PageloadMetrics_ConnectionType ProtoConn return PageloadMetrics_ConnectionType_CONNECTION_NONE; case net::NetworkChangeNotifier::CONNECTION_BLUETOOTH: return PageloadMetrics_ConnectionType_CONNECTION_BLUETOOTH; + default: + return PageloadMetrics_ConnectionType_CONNECTION_UNKNOWN; } } @@ -351,6 +353,8 @@ RequestInfo_Protocol ProtoRequestInfoPro return RequestInfo_Protocol_QUIC; case DataReductionProxyData::RequestInfo::Protocol::UNKNOWN: return RequestInfo_Protocol_UNKNOWN; + default: + return RequestInfo_Protocol_UNKNOWN; } } Index: chromium-69.0.3497.57/content/browser/cache_storage/cache_storage_quota_client.cc =================================================================== --- chromium-69.0.3497.57.orig/content/browser/cache_storage/cache_storage_quota_client.cc +++ chromium-69.0.3497.57/content/browser/cache_storage/cache_storage_quota_client.cc @@ -98,6 +98,8 @@ storage::QuotaClient::ID CacheStorageQuo return kServiceWorkerCache; case CacheStorageOwner::kBackgroundFetch: return kBackgroundFetch; + default: + return kBackgroundFetch; } } Index: chromium-69.0.3497.57/media/capture/video/video_capture_device_descriptor.cc =================================================================== --- chromium-69.0.3497.57.orig/media/capture/video/video_capture_device_descriptor.cc +++ chromium-69.0.3497.57/media/capture/video/video_capture_device_descriptor.cc @@ -94,6 +94,8 @@ const char* VideoCaptureDeviceDescriptor return "Virtual Device"; case VideoCaptureApi::UNKNOWN: return "Unknown"; + default: + return "Unknown"; } } Index: chromium-69.0.3497.57/net/nqe/network_quality_estimator.cc =================================================================== --- chromium-69.0.3497.57.orig/net/nqe/network_quality_estimator.cc +++ chromium-69.0.3497.57/net/nqe/network_quality_estimator.cc @@ -1342,6 +1342,8 @@ base::TimeDelta NetworkQualityEstimator: case nqe::internal::OBSERVATION_CATEGORY_COUNT: NOTREACHED(); return base::TimeDelta(); + default: + return base::TimeDelta(); } } Index: chromium-69.0.3497.57/services/audio/public/cpp/audio_system_to_service_adapter.cc =================================================================== --- chromium-69.0.3497.57.orig/services/audio/public/cpp/audio_system_to_service_adapter.cc +++ chromium-69.0.3497.57/services/audio/public/cpp/audio_system_to_service_adapter.cc @@ -66,6 +66,8 @@ const char* GetTraceEvent(Action action) return "AudioSystemToServiceAdapter::GetAssociatedOutputDeviceID"; case kGetInputDeviceInfo: return "AudioSystemToServiceAdapter::GetInputDeviceInfo"; + default: + return "Unknown"; } NOTREACHED(); } Index: chromium-69.0.3497.57/services/network/cross_origin_read_blocking.cc =================================================================== --- chromium-69.0.3497.57.orig/services/network/cross_origin_read_blocking.cc +++ chromium-69.0.3497.57/services/network/cross_origin_read_blocking.cc @@ -800,6 +800,8 @@ bool CrossOriginReadBlocking::ResponseAn return sniffers_.empty() && !found_blockable_content_; case kBlock: return false; + default: + return true; } } @@ -811,6 +813,8 @@ bool CrossOriginReadBlocking::ResponseAn return sniffers_.empty() && found_blockable_content_; case kBlock: return true; + default: + return false; } } Index: chromium-69.0.3497.57/third_party/blink/renderer/modules/accessibility/ax_layout_object.cc =================================================================== --- chromium-69.0.3497.57.orig/third_party/blink/renderer/modules/accessibility/ax_layout_object.cc +++ chromium-69.0.3497.57/third_party/blink/renderer/modules/accessibility/ax_layout_object.cc @@ -1191,6 +1191,8 @@ AXTextPosition AXLayoutObject::GetTextPo return kAXTextPositionSubscript; case EVerticalAlign::kSuper: return kAXTextPositionSuperscript; + default: + return AXNodeObject::GetTextPosition(); } } Index: chromium-69.0.3497.57/third_party/blink/renderer/modules/webaudio/audio_param.cc =================================================================== --- chromium-69.0.3497.57.orig/third_party/blink/renderer/modules/webaudio/audio_param.cc +++ chromium-69.0.3497.57/third_party/blink/renderer/modules/webaudio/audio_param.cc @@ -144,6 +144,7 @@ String AudioParamHandler::GetParamName() return custom_param_name_; default: NOTREACHED(); + return "Unknown"; } } Index: chromium-69.0.3497.57/ui/accessibility/platform/ax_platform_node_auralinux.cc =================================================================== --- chromium-69.0.3497.57.orig/ui/accessibility/platform/ax_platform_node_auralinux.cc +++ chromium-69.0.3497.57/ui/accessibility/platform/ax_platform_node_auralinux.cc @@ -1291,6 +1291,8 @@ AtkRole AXPlatformNodeAuraLinux::GetAtkR case ax::mojom::Role::kPresentational: case ax::mojom::Role::kUnknown: return ATK_ROLE_REDUNDANT_OBJECT; + default: + return ATK_ROLE_REDUNDANT_OBJECT; } } Index: chromium-69.0.3497.57/chrome/browser/chrome_browser_main.cc =================================================================== --- chromium-69.0.3497.57.orig/chrome/browser/chrome_browser_main.cc +++ chromium-69.0.3497.57/chrome/browser/chrome_browser_main.cc @@ -769,6 +769,8 @@ bool WaitUntilMachineLevelUserCloudPolic case RegisterResult::kQuitDueToFailure: chrome::AttemptExit(); return false; + default: + return true; } #else return true; Index: chromium-69.0.3497.57/chrome/browser/resource_coordinator/tab_lifecycle_unit.cc =================================================================== --- chromium-69.0.3497.57.orig/chrome/browser/resource_coordinator/tab_lifecycle_unit.cc +++ chromium-69.0.3497.57/chrome/browser/resource_coordinator/tab_lifecycle_unit.cc @@ -161,6 +161,7 @@ bool IsValidStateChange(LifecycleUnitSta default: { return false; } } } + default: { return false; } } } @@ -172,6 +173,8 @@ StateChangeReason DiscardReasonToStateCh return StateChangeReason::BROWSER_INITIATED; case DiscardReason::kUrgent: return StateChangeReason::SYSTEM_MEMORY_PRESSURE; + default: + return StateChangeReason::BROWSER_INITIATED; } } Index: chromium-69.0.3497.57/chrome/browser/ui/views/harmony/material_refresh_layout_provider.cc =================================================================== --- chromium-69.0.3497.57.orig/chrome/browser/ui/views/harmony/material_refresh_layout_provider.cc +++ chromium-69.0.3497.57/chrome/browser/ui/views/harmony/material_refresh_layout_provider.cc @@ -43,6 +43,8 @@ int MaterialRefreshLayoutProvider::GetCo return 8; case views::EMPHASIS_MAXIMUM: return std::min(size.width(), size.height()) / 2; + default: + return 0; } } @@ -60,6 +62,8 @@ int MaterialRefreshLayoutProvider::GetSh return 3; case views::EMPHASIS_MAXIMUM: return 16; + default: + return 0; } } Index: chromium-69.0.3497.57/components/password_manager/core/browser/browser_save_password_progress_logger.cc =================================================================== --- chromium-69.0.3497.57.orig/components/password_manager/core/browser/browser_save_password_progress_logger.cc +++ chromium-69.0.3497.57/components/password_manager/core/browser/browser_save_password_progress_logger.cc @@ -86,6 +86,8 @@ std::string VoteTypeToString( return "HTML classifier"; case AutofillUploadContents::Field::FIRST_USE: return "First use"; + default: + return "No information"; } } Index: chromium-69.0.3497.57/components/policy/core/common/policy_proto_decoders.cc =================================================================== --- chromium-69.0.3497.57.orig/components/policy/core/common/policy_proto_decoders.cc +++ chromium-69.0.3497.57/components/policy/core/common/policy_proto_decoders.cc @@ -42,6 +42,8 @@ bool GetPolicyLevel(const AnyPolicyProto return true; case em::PolicyOptions::UNSET: return false; + default: + return false; } } @@ -186,4 +188,4 @@ void DecodeProtoFields( } } -} // namespace policy \ No newline at end of file +} // namespace policy Index: chromium-69.0.3497.57/components/previews/content/previews_hints.cc =================================================================== --- chromium-69.0.3497.57.orig/components/previews/content/previews_hints.cc +++ chromium-69.0.3497.57/components/previews/content/previews_hints.cc @@ -94,6 +94,8 @@ ConvertProtoOptimizationTypeToPreviewsOp return PreviewsType::NOSCRIPT; case optimization_guide::proto::RESOURCE_LOADING: return PreviewsType::RESOURCE_LOADING_HINTS; + default: + return base::nullopt; } } Index: chromium-69.0.3497.57/components/previews/core/previews_black_list.cc =================================================================== --- chromium-69.0.3497.57.orig/components/previews/core/previews_black_list.cc +++ chromium-69.0.3497.57/components/previews/core/previews_black_list.cc @@ -33,6 +33,9 @@ PreviewsEligibilityReason BlacklistReaso return PreviewsEligibilityReason::ALLOWED; case blacklist::BlacklistReason::kAllowed: return PreviewsEligibilityReason::ALLOWED; + default: + NOTREACHED() << "Previews does not support type-base blacklisting"; + return PreviewsEligibilityReason::ALLOWED; } } Index: chromium-69.0.3497.57/content/browser/frame_host/frame_tree_node.cc =================================================================== --- chromium-69.0.3497.57.orig/content/browser/frame_host/frame_tree_node.cc +++ chromium-69.0.3497.57/content/browser/frame_host/frame_tree_node.cc @@ -624,6 +624,7 @@ bool FrameTreeNode::UpdateUserActivation return NotifyUserActivation(); } NOTREACHED() << "Invalid update_type."; + return false; } void FrameTreeNode::OnSetHasReceivedUserGestureBeforeNavigation(bool value) { Index: chromium-69.0.3497.57/content/renderer/input/input_event_prediction.cc =================================================================== --- chromium-69.0.3497.57.orig/content/renderer/input/input_event_prediction.cc +++ chromium-69.0.3497.57/content/renderer/input/input_event_prediction.cc @@ -76,6 +76,8 @@ std::unique_ptr<ui::InputPredictor> Inpu return std::make_unique<ui::LeastSquaresPredictor>(); case PredictorType::kKalman: return std::make_unique<ui::KalmanPredictor>(); + default: + return std::make_unique<ui::EmptyPredictor>(); } } Index: chromium-69.0.3497.57/content/renderer/media/webrtc/peer_connection_tracker.cc =================================================================== --- chromium-69.0.3497.57.orig/content/renderer/media/webrtc/peer_connection_tracker.cc +++ chromium-69.0.3497.57/content/renderer/media/webrtc/peer_connection_tracker.cc @@ -112,6 +112,8 @@ static const char* SerializeDirection( return "'recvonly'"; case webrtc::RtpTransceiverDirection::kInactive: return "'inactive'"; + default: + return "'unknown'"; } } Index: chromium-69.0.3497.57/device/bluetooth/bluetooth_remote_gatt_characteristic.cc =================================================================== --- chromium-69.0.3497.57.orig/device/bluetooth/bluetooth_remote_gatt_characteristic.cc +++ chromium-69.0.3497.57/device/bluetooth/bluetooth_remote_gatt_characteristic.cc @@ -397,6 +397,8 @@ bool BluetoothRemoteGattCharacteristic:: return hasNotify; case NotificationType::kIndication: return hasIndicate; + default: + return false; } } Index: chromium-69.0.3497.57/media/blink/watch_time_reporter.cc =================================================================== --- chromium-69.0.3497.57.orig/media/blink/watch_time_reporter.cc +++ chromium-69.0.3497.57/media/blink/watch_time_reporter.cc @@ -571,6 +571,8 @@ WatchTimeKey WatchTimeReporter::GetDispl return DISPLAY_TYPE_KEY(DisplayFullscreen); case DisplayType::kPictureInPicture: return DISPLAY_TYPE_KEY(DisplayPictureInPicture); + default: + return DISPLAY_TYPE_KEY(DisplayInline); } } Index: chromium-69.0.3497.57/services/ui/public/cpp/gpu/command_buffer_metrics.cc =================================================================== --- chromium-69.0.3497.57.orig/services/ui/public/cpp/gpu/command_buffer_metrics.cc +++ chromium-69.0.3497.57/services/ui/public/cpp/gpu/command_buffer_metrics.cc @@ -86,6 +86,8 @@ std::string ContextTypeToString(ContextT return "Unknown"; case ContextType::FOR_TESTING: return "ForTesting"; + default: + return "Unknown"; } } Index: chromium-69.0.3497.57/third_party/blink/renderer/core/css/style_environment_variables.cc =================================================================== --- chromium-69.0.3497.57.orig/third_party/blink/renderer/core/css/style_environment_variables.cc +++ chromium-69.0.3497.57/third_party/blink/renderer/core/css/style_environment_variables.cc @@ -67,6 +67,7 @@ const AtomicString StyleEnvironmentVaria } NOTREACHED(); + return "unknown"; } // static Index: chromium-69.0.3497.57/third_party/blink/renderer/core/html/media/media_controls.cc =================================================================== --- chromium-69.0.3497.57.orig/third_party/blink/renderer/core/html/media/media_controls.cc +++ chromium-69.0.3497.57/third_party/blink/renderer/core/html/media/media_controls.cc @@ -36,6 +36,9 @@ AtomicString MediaControls::GetSizingCSS return kMediaControlsSizingMediumCSSClass; case MediaControlsSizingClass::kLarge: return kMediaControlsSizingLargeCSSClass; + default: + NOTREACHED(); + return kMediaControlsSizingMediumCSSClass; } NOTREACHED(); Index: chromium-69.0.3497.57/third_party/blink/renderer/modules/cookie_store/cookie_change_event.cc =================================================================== --- chromium-69.0.3497.57.orig/third_party/blink/renderer/modules/cookie_store/cookie_change_event.cc +++ chromium-69.0.3497.57/third_party/blink/renderer/modules/cookie_store/cookie_change_event.cc @@ -53,6 +53,9 @@ String ToCookieListItemSameSite(network: return "lax"; case network::mojom::CookieSameSite::NO_RESTRICTION: return "unrestricted"; + default: + NOTREACHED(); + return "unknown"; } NOTREACHED(); Index: chromium-69.0.3497.57/third_party/blink/renderer/modules/peerconnection/rtc_rtp_transceiver.cc =================================================================== --- chromium-69.0.3497.57.orig/third_party/blink/renderer/modules/peerconnection/rtc_rtp_transceiver.cc +++ chromium-69.0.3497.57/third_party/blink/renderer/modules/peerconnection/rtc_rtp_transceiver.cc @@ -28,6 +28,8 @@ String TransceiverDirectionToString( return "recvonly"; case webrtc::RtpTransceiverDirection::kInactive: return "inactive"; + default: + return "unknown"; } } Index: chromium-69.0.3497.57/third_party/blink/renderer/platform/heap/heap_stats_collector.h =================================================================== --- chromium-69.0.3497.57.orig/third_party/blink/renderer/platform/heap/heap_stats_collector.h +++ chromium-69.0.3497.57/third_party/blink/renderer/platform/heap/heap_stats_collector.h @@ -94,6 +94,8 @@ class PLATFORM_EXPORT ThreadHeapStatsCol return "BlinkGC.VisitPersistents"; case Id::kVisitStackRoots: return "BlinkGC.VisitStackRoots"; + default: + return "BlinkGC.Unknown"; } } Index: chromium-69.0.3497.57/third_party/blink/renderer/platform/scheduler/main_thread/page_scheduler_impl.cc =================================================================== --- chromium-69.0.3497.57.orig/third_party/blink/renderer/platform/scheduler/main_thread/page_scheduler_impl.cc +++ chromium-69.0.3497.57/third_party/blink/renderer/platform/scheduler/main_thread/page_scheduler_impl.cc @@ -670,6 +670,9 @@ PageSchedulerImpl::PageLifecycleStateTra NOTREACHED(); return base::nullopt; } + default: + NOTREACHED(); + return base::nullopt; } } Index: chromium-69.0.3497.57/ui/base/mojo/clipboard_struct_traits.h =================================================================== --- chromium-69.0.3497.57.orig/ui/base/mojo/clipboard_struct_traits.h +++ chromium-69.0.3497.57/ui/base/mojo/clipboard_struct_traits.h @@ -20,6 +20,9 @@ struct EnumTraits<ui::mojom::ClipboardTy return ui::mojom::ClipboardType::SELECTION; case ui::CLIPBOARD_TYPE_DRAG: return ui::mojom::ClipboardType::DRAG; + default: + NOTREACHED(); + return ui::mojom::ClipboardType::SELECTION; } } @@ -34,6 +37,8 @@ struct EnumTraits<ui::mojom::ClipboardTy case ui::mojom::ClipboardType::DRAG: *out = ui::CLIPBOARD_TYPE_DRAG; return true; + default: + return false; } NOTREACHED(); return false; Index: chromium-69.0.3497.57/ui/views/layout/layout_provider.cc =================================================================== --- chromium-69.0.3497.57.orig/ui/views/layout/layout_provider.cc +++ chromium-69.0.3497.57/ui/views/layout/layout_provider.cc @@ -156,6 +156,8 @@ int LayoutProvider::GetCornerRadiusMetri return is_touch ? 8 : 4; case EMPHASIS_MAXIMUM: return is_touch ? std::min(size.width(), size.height()) / 2 : 4; + default: + return 0; } }
Locations
Projects
Search
Status Monitor
Help
Open Build Service
OBS Manuals
API Documentation
OBS Portal
Reporting a Bug
Contact
Mailing List
Forums
Chat (IRC)
Twitter
Open Build Service (OBS)
is an
openSUSE project
.