summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorTimur Pocheptsov <timur.pocheptsov@qt.io>2020-12-07 18:01:52 +0100
committerTimur Pocheptsov <timur.pocheptsov@qt.io>2020-12-07 19:27:16 +0100
commitc0a17ecfaf101715fd758f48c81141ddf2836975 (patch)
tree28c6fb3b8fbccd889c8497ea64f01b2a36181116 /src
parent4a9ed410750c8b111d33c52544388904244ec6e5 (diff)
TLS utils - remove useless static_assert
Compiler (gcc) keeps nagging and complaining about an address of function to be never nullptr in any particular instantiation, when argument is an address of a function. Change-Id: If67e80f2ff4d408608429d53814083777cc8441c Reviewed-by: MÃ¥rten Nordheim <marten.nordheim@qt.io>
Diffstat (limited to 'src')
-rw-r--r--src/network/ssl/qtls_utils_p.h4
1 files changed, 0 insertions, 4 deletions
diff --git a/src/network/ssl/qtls_utils_p.h b/src/network/ssl/qtls_utils_p.h
index ceca3030d6..514d1fefd0 100644
--- a/src/network/ssl/qtls_utils_p.h
+++ b/src/network/ssl/qtls_utils_p.h
@@ -72,8 +72,6 @@ namespace QTlslUtils
template <class NativeTlsType, void (*Deleter)(NativeTlsType *)>
void safe_delete(NativeTlsType *object)
{
- static_assert (Deleter, "safe_delete: invalid (nullptr) function pointer provided");
-
if (object)
Deleter(object);
}
@@ -81,8 +79,6 @@ void safe_delete(NativeTlsType *object)
template<class NativeTlsType, int ok, int (*Deleter)(NativeTlsType *)>
void safe_delete(NativeTlsType *object)
{
- static_assert (Deleter, "safe_delete: invalid (nullptr) function pointer provided");
-
if (object) {
if (Deleter(object) != ok) {
qCWarning(lcSsl, "Failed to free a resource.");