summaryrefslogtreecommitdiffstats
path: root/src/plugins/sqldrivers
diff options
context:
space:
mode:
authorAndy Shaw <andy.shaw@qt.io>2018-05-18 14:05:56 +0200
committerAndy Shaw <andy.shaw@qt.io>2018-06-06 07:18:36 +0000
commit6108d8f515d7911427b764647f1d6ab487ad5203 (patch)
treef37966c149568879f9aadb63495bbe6064ecc608 /src/plugins/sqldrivers
parent314b7184aad09474c6790001b212310ea8993e57 (diff)
ibase: Silence warning about incompatible function types
Task-number: QTBUG-68330 Change-Id: I1bb272ec647f9fb5f67f67f04600e51409ebd40a Reviewed-by: Simon Hausmann <simon.hausmann@qt.io>
Diffstat (limited to 'src/plugins/sqldrivers')
-rw-r--r--src/plugins/sqldrivers/ibase/qsql_ibase.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/plugins/sqldrivers/ibase/qsql_ibase.cpp b/src/plugins/sqldrivers/ibase/qsql_ibase.cpp
index 6fbdef2695..484dad6e1d 100644
--- a/src/plugins/sqldrivers/ibase/qsql_ibase.cpp
+++ b/src/plugins/sqldrivers/ibase/qsql_ibase.cpp
@@ -1845,9 +1845,9 @@ bool QIBaseDriver::subscribeToNotification(const QString &name)
eBuffer->bufferLength,
eBuffer->eventBuffer,
#if defined (FB_API_VER) && FB_API_VER >= 20
- (ISC_EVENT_CALLBACK)qEventCallback,
+ reinterpret_cast<ISC_EVENT_CALLBACK>(qEventCallback),
#else
- (isc_callback)qEventCallback,
+ reinterpret_cast<isc_callback>(qEventCallback),
#endif
eBuffer->resultBuffer);
@@ -1925,9 +1925,9 @@ void QIBaseDriver::qHandleEventNotification(void *updatedResultBuffer)
eBuffer->bufferLength,
eBuffer->eventBuffer,
#if defined (FB_API_VER) && FB_API_VER >= 20
- (ISC_EVENT_CALLBACK)qEventCallback,
+ reinterpret_cast<ISC_EVENT_CALLBACK>(qEventCallback),
#else
- (isc_callback)qEventCallback,
+ reinterpret_cast<isc_callback>(qEventCallback),
#endif
eBuffer->resultBuffer);
if (Q_UNLIKELY(status[0] == 1 && status[1])) {