webkit2gtk3/webkit2gtk3-no-return-in-nonvoid.patch
Bjørn Lie 09336ae8f0 Accepting request 521971 from GNOME:Next
- Add webkit2gtk3-no-return-in-nonvoid.patch: Fix brp error based

Note: the patch is BASED on the one from bugzilla, but the one there does not apply cleanly... so this is a derivate

OBS-URL: https://build.opensuse.org/request/show/521971
OBS-URL: https://build.opensuse.org/package/show/GNOME:Factory/webkit2gtk3?expand=0&rev=120
2017-09-07 15:01:00 +00:00

33 lines
1005 B
Diff

--- a/Source/WebCore/crypto/CryptoKey.cpp
+++ a/Source/WebCore/crypto/CryptoKey.cpp
@@ -67,6 +67,8 @@ auto CryptoKey::algorithm() const -> AlgorithmVariant
case KeyAlgorithmClass::Raw:
return downcast<RawKeyAlgorithm>(*algorithm).dictionary();
}
+
+ RELEASE_ASSERT_NOT_REACHED();
}
auto CryptoKey::usages() const -> Vector<CryptoKeyUsage>
--- a/Source/WebCore/crypto/SubtleCrypto.cpp
+++ a/Source/WebCore/crypto/SubtleCrypto.cpp
@@ -394,6 +394,8 @@ static CryptoKeyUsageBitmap toCryptoKeyUsageBitmap(CryptoKeyUsage usage)
case CryptoKeyUsage::UnwrapKey:
return CryptoKeyUsageUnwrapKey;
}
+
+ RELEASE_ASSERT_NOT_REACHED();
}
static CryptoKeyUsageBitmap toCryptoKeyUsageBitmap(const Vector<CryptoKeyUsage>& usages)
@@ -476,6 +478,8 @@ static std::optional<KeyData> toKeyData(SubtleCrypto::KeyFormat format, SubtleCr
}
);
}
+
+ RELEASE_ASSERT_NOT_REACHED();
}
static Vector<uint8_t> copyToVector(BufferSource&& data)