Title: [288200] trunk/Source
Revision
288200
Author
[email protected]
Date
2022-01-19 07:55:58 -0800 (Wed, 19 Jan 2022)

Log Message

Fix -Wreturn-type and -Wunused-parameter warnings, January 2022 edition
https://bugs.webkit.org/show_bug.cgi?id=235336

Patch by Michael Catanzaro <[email protected]> on 2022-01-19
Reviewed by Adrian Perez de Castro.

Source/_javascript_Core:

* wasm/WasmCompilationMode.h:
(JSC::Wasm::isOSREntry):
(JSC::Wasm::isAnyBBQ):
(JSC::Wasm::isAnyOMG):

Source/WebCore:

* Modules/push-api/PushCrypto.cpp:
(WebCore::PushCrypto::computeP256DHSharedSecret):
* bindings/js/JSCSSRuleCustom.cpp:
(WebCore::toJSNewlyCreated):
* contentextensions/DFABytecodeCompiler.cpp:
(WebCore::ContentExtensions::toSizeT):
* css/CSSComputedStyleDeclaration.cpp:
(WebCore::valueForAnimationDirection):
(WebCore::valueForAnimationFillMode):
(WebCore::valueForAnimationPlayState):
* css/CSSPrimitiveValue.cpp:
(WebCore::lengthOfViewportPhysicalAxisForLogicalAxis):
* platform/graphics/ColorInterpolation.cpp:
(WebCore::fixupHueComponentsPriorToInterpolation):
* platform/graphics/ColorInterpolation.h:
(WebCore::interpolateColors):
* platform/graphics/filters/FEColorMatrix.cpp:
(WebCore::FEColorMatrix::createApplier const):
* platform/graphics/filters/FEComponentTransfer.cpp:
(WebCore::FEComponentTransfer::createApplier const):
* platform/graphics/filters/SourceGraphic.cpp:
(WebCore::SourceGraphic::createApplier const):

Modified Paths

Diff

Modified: trunk/Source/_javascript_Core/ChangeLog (288199 => 288200)


--- trunk/Source/_javascript_Core/ChangeLog	2022-01-19 15:46:50 UTC (rev 288199)
+++ trunk/Source/_javascript_Core/ChangeLog	2022-01-19 15:55:58 UTC (rev 288200)
@@ -1,3 +1,15 @@
+2022-01-19  Michael Catanzaro  <[email protected]>
+
+        Fix -Wreturn-type and -Wunused-parameter warnings, January 2022 edition
+        https://bugs.webkit.org/show_bug.cgi?id=235336
+
+        Reviewed by Adrian Perez de Castro.
+
+        * wasm/WasmCompilationMode.h:
+        (JSC::Wasm::isOSREntry):
+        (JSC::Wasm::isAnyBBQ):
+        (JSC::Wasm::isAnyOMG):
+
 2022-01-18  Yusuke Suzuki  <[email protected]>
 
         [JSC] Remove Wasm::Table's m_mask

Modified: trunk/Source/_javascript_Core/wasm/WasmCompilationMode.h (288199 => 288200)


--- trunk/Source/_javascript_Core/wasm/WasmCompilationMode.h	2022-01-19 15:46:50 UTC (rev 288199)
+++ trunk/Source/_javascript_Core/wasm/WasmCompilationMode.h	2022-01-19 15:55:58 UTC (rev 288200)
@@ -50,6 +50,7 @@
     case CompilationMode::OMGForOSREntryMode:
         return true;
     }
+    RELEASE_ASSERT_UNDER_CONSTEXPR_CONTEXT(false);
 }
 
 constexpr inline bool isAnyBBQ(CompilationMode compilationMode)
@@ -64,6 +65,7 @@
     case CompilationMode::EmbedderEntrypointMode:
         return false;
     }
+    RELEASE_ASSERT_UNDER_CONSTEXPR_CONTEXT(false);
 }
 
 constexpr inline bool isAnyOMG(CompilationMode compilationMode)
@@ -78,6 +80,7 @@
     case CompilationMode::EmbedderEntrypointMode:
         return false;
     }
+    RELEASE_ASSERT_UNDER_CONSTEXPR_CONTEXT(false);
 }
 
 } } // namespace JSC::Wasm

Modified: trunk/Source/WebCore/ChangeLog (288199 => 288200)


--- trunk/Source/WebCore/ChangeLog	2022-01-19 15:46:50 UTC (rev 288199)
+++ trunk/Source/WebCore/ChangeLog	2022-01-19 15:55:58 UTC (rev 288200)
@@ -1,3 +1,33 @@
+2022-01-19  Michael Catanzaro  <[email protected]>
+
+        Fix -Wreturn-type and -Wunused-parameter warnings, January 2022 edition
+        https://bugs.webkit.org/show_bug.cgi?id=235336
+
+        Reviewed by Adrian Perez de Castro.
+
+        * Modules/push-api/PushCrypto.cpp:
+        (WebCore::PushCrypto::computeP256DHSharedSecret):
+        * bindings/js/JSCSSRuleCustom.cpp:
+        (WebCore::toJSNewlyCreated):
+        * contentextensions/DFABytecodeCompiler.cpp:
+        (WebCore::ContentExtensions::toSizeT):
+        * css/CSSComputedStyleDeclaration.cpp:
+        (WebCore::valueForAnimationDirection):
+        (WebCore::valueForAnimationFillMode):
+        (WebCore::valueForAnimationPlayState):
+        * css/CSSPrimitiveValue.cpp:
+        (WebCore::lengthOfViewportPhysicalAxisForLogicalAxis):
+        * platform/graphics/ColorInterpolation.cpp:
+        (WebCore::fixupHueComponentsPriorToInterpolation):
+        * platform/graphics/ColorInterpolation.h:
+        (WebCore::interpolateColors):
+        * platform/graphics/filters/FEColorMatrix.cpp:
+        (WebCore::FEColorMatrix::createApplier const):
+        * platform/graphics/filters/FEComponentTransfer.cpp:
+        (WebCore::FEComponentTransfer::createApplier const):
+        * platform/graphics/filters/SourceGraphic.cpp:
+        (WebCore::SourceGraphic::createApplier const):
+
 2022-01-19  Alexey Shvayka  <[email protected]>
 
         Callback functions / interfaces should use global object of its _value_ for errors and lifecycle

Modified: trunk/Source/WebCore/Modules/push-api/PushCrypto.cpp (288199 => 288200)


--- trunk/Source/WebCore/Modules/push-api/PushCrypto.cpp	2022-01-19 15:46:50 UTC (rev 288199)
+++ trunk/Source/WebCore/Modules/push-api/PushCrypto.cpp	2022-01-19 15:55:58 UTC (rev 288200)
@@ -44,7 +44,7 @@
     return false;
 }
 
-std::optional<Vector<uint8_t>> computeP256DHSharedSecret(Span<const uint8_t> publicKey, const P256DHKeyPair& keyPair)
+std::optional<Vector<uint8_t>> computeP256DHSharedSecret(Span<const uint8_t>, const P256DHKeyPair&)
 {
     return std::nullopt;
 }

Modified: trunk/Source/WebCore/bindings/js/JSCSSRuleCustom.cpp (288199 => 288200)


--- trunk/Source/WebCore/bindings/js/JSCSSRuleCustom.cpp	2022-01-19 15:46:50 UTC (rev 288199)
+++ trunk/Source/WebCore/bindings/js/JSCSSRuleCustom.cpp	2022-01-19 15:55:58 UTC (rev 288200)
@@ -102,6 +102,7 @@
     case StyleRuleType::Margin:
         return createWrapper<CSSRule>(globalObject, WTFMove(rule));
     }
+    RELEASE_ASSERT_NOT_REACHED();
 }
 
 JSValue toJS(JSGlobalObject* lexicalGlobalObject, JSDOMGlobalObject* globalObject, CSSRule& object)

Modified: trunk/Source/WebCore/contentextensions/DFABytecodeCompiler.cpp (288199 => 288200)


--- trunk/Source/WebCore/contentextensions/DFABytecodeCompiler.cpp	2022-01-19 15:46:50 UTC (rev 288199)
+++ trunk/Source/WebCore/contentextensions/DFABytecodeCompiler.cpp	2022-01-19 15:55:58 UTC (rev 288200)
@@ -105,6 +105,7 @@
     case DFABytecodeFlagsSize::UInt24:
         return UInt24Size;
     }
+    RELEASE_ASSERT_NOT_REACHED();
 }
 
 static size_t toSizeT(DFABytecodeActionSize size)
@@ -119,6 +120,7 @@
     case DFABytecodeActionSize::UInt32:
         return sizeof(uint32_t);
     }
+    RELEASE_ASSERT_NOT_REACHED();
 }
 
 static size_t appendActionBytecodeSize(uint64_t action)

Modified: trunk/Source/WebCore/css/CSSComputedStyleDeclaration.cpp (288199 => 288200)


--- trunk/Source/WebCore/css/CSSComputedStyleDeclaration.cpp	2022-01-19 15:46:50 UTC (rev 288199)
+++ trunk/Source/WebCore/css/CSSComputedStyleDeclaration.cpp	2022-01-19 15:55:58 UTC (rev 288200)
@@ -1360,6 +1360,7 @@
     case Animation::AnimationDirectionAlternateReverse:
         return CSSValuePool::singleton().createIdentifierValue(CSSValueAlternateReverse);
     }
+    RELEASE_ASSERT_NOT_REACHED();
 }
 
 static Ref<CSSPrimitiveValue> valueForAnimationFillMode(AnimationFillMode fillMode)
@@ -1374,6 +1375,7 @@
     case AnimationFillMode::Both:
         return CSSValuePool::singleton().createIdentifierValue(CSSValueBoth);
     }
+    RELEASE_ASSERT_NOT_REACHED();
 }
 
 static Ref<CSSPrimitiveValue> valueForAnimationPlayState(AnimationPlayState playState)
@@ -1384,6 +1386,7 @@
     case AnimationPlayState::Paused:
         return CSSValuePool::singleton().createIdentifierValue(CSSValuePaused);
     }
+    RELEASE_ASSERT_NOT_REACHED();
 }
 
 static Ref<CSSPrimitiveValue> valueForAnimationName(const Animation::Name& name)

Modified: trunk/Source/WebCore/css/CSSPrimitiveValue.cpp (288199 => 288200)


--- trunk/Source/WebCore/css/CSSPrimitiveValue.cpp	2022-01-19 15:46:50 UTC (rev 288199)
+++ trunk/Source/WebCore/css/CSSPrimitiveValue.cpp	2022-01-19 15:55:58 UTC (rev 288200)
@@ -688,7 +688,7 @@
         return size.height();
     }
 
-    ASSERT_NOT_REACHED();
+    RELEASE_ASSERT_NOT_REACHED();
 }
 
 static double lengthOfViewportPhysicalAxisForLogicalAxis(LogicalBoxAxis logicalAxis, const FloatSize& size, const RenderView& renderView)

Modified: trunk/Source/WebCore/platform/graphics/ColorInterpolation.cpp (288199 => 288200)


--- trunk/Source/WebCore/platform/graphics/ColorInterpolation.cpp	2022-01-19 15:46:50 UTC (rev 288199)
+++ trunk/Source/WebCore/platform/graphics/ColorInterpolation.cpp	2022-01-19 15:55:58 UTC (rev 288200)
@@ -81,6 +81,7 @@
     case HueInterpolationMethod::Specified:
         return normalizeAnglesUsingSpecifiedAlgorithm(component1, component2);
     }
+    RELEASE_ASSERT_NOT_REACHED();
 }
 
 }

Modified: trunk/Source/WebCore/platform/graphics/ColorInterpolation.h (288199 => 288200)


--- trunk/Source/WebCore/platform/graphics/ColorInterpolation.h	2022-01-19 15:46:50 UTC (rev 288199)
+++ trunk/Source/WebCore/platform/graphics/ColorInterpolation.h	2022-01-19 15:55:58 UTC (rev 288200)
@@ -126,6 +126,7 @@
             case AlphaPremultiplication::Unpremultiplied:
                 return makeCanonicalColor(interpolateColorComponents<AlphaPremultiplication::Unpremultiplied>(colorSpace, color1.toColorTypeLossy<ColorType>(), color1Multiplier, color2.toColorTypeLossy<ColorType>(), color2Multiplier));
             }
+            RELEASE_ASSERT_NOT_REACHED();
         }
     );
 }

Modified: trunk/Source/WebCore/platform/graphics/filters/FEColorMatrix.cpp (288199 => 288200)


--- trunk/Source/WebCore/platform/graphics/filters/FEColorMatrix.cpp	2022-01-19 15:46:50 UTC (rev 288199)
+++ trunk/Source/WebCore/platform/graphics/filters/FEColorMatrix.cpp	2022-01-19 15:55:58 UTC (rev 288200)
@@ -115,6 +115,8 @@
 #if USE(CORE_IMAGE)
     if (filter.renderingMode() == RenderingMode::Accelerated)
         return FilterEffectApplier::create<FEColorMatrixCoreImageApplier>(*this);
+#else
+    UNUSED_PARAM(filter);
 #endif
     return FilterEffectApplier::create<FEColorMatrixSoftwareApplier>(*this);
 }

Modified: trunk/Source/WebCore/platform/graphics/filters/FEComponentTransfer.cpp (288199 => 288200)


--- trunk/Source/WebCore/platform/graphics/filters/FEComponentTransfer.cpp	2022-01-19 15:46:50 UTC (rev 288199)
+++ trunk/Source/WebCore/platform/graphics/filters/FEComponentTransfer.cpp	2022-01-19 15:55:58 UTC (rev 288200)
@@ -61,6 +61,8 @@
 #if USE(CORE_IMAGE)
     if (filter.renderingMode() == RenderingMode::Accelerated)
         return FilterEffectApplier::create<FEComponentTransferCoreImageApplier>(*this);
+#else
+    UNUSED_PARAM(filter);
 #endif
     return FilterEffectApplier::create<FEComponentTransferSoftwareApplier>(*this);
 }

Modified: trunk/Source/WebCore/platform/graphics/filters/SourceGraphic.cpp (288199 => 288200)


--- trunk/Source/WebCore/platform/graphics/filters/SourceGraphic.cpp	2022-01-19 15:46:50 UTC (rev 288199)
+++ trunk/Source/WebCore/platform/graphics/filters/SourceGraphic.cpp	2022-01-19 15:55:58 UTC (rev 288200)
@@ -47,6 +47,8 @@
     // FIXME: return SourceGraphicCoreImageApplier.
     if (filter.renderingMode() == RenderingMode::Accelerated)
         return FilterEffectApplier::create<SourceGraphicCoreImageApplier>(*this);
+#else
+    UNUSED_PARAM(filter);
 #endif
     return FilterEffectApplier::create<SourceGraphicSoftwareApplier>(*this);
 }
_______________________________________________
webkit-changes mailing list
[email protected]
https://lists.webkit.org/mailman/listinfo/webkit-changes

Reply via email to