From d1af06e435d976fc242577868e842fa782d4fad8 Mon Sep 17 00:00:00 2001 From: Aleksander Morgado Date: Tue, 24 Apr 2012 09:41:19 +0200 Subject: [PATCH] qmi-device: avoid warnings when putting the guint32 into a gpointer --- src/qmi-device.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/qmi-device.c b/src/qmi-device.c index 12e8ad4..a847a16 100644 --- a/src/qmi-device.c +++ b/src/qmi-device.c @@ -125,7 +125,8 @@ build_transaction_key (QmiMessage *message) client_id = qmi_message_get_client_id (message); transaction_id = qmi_message_get_transaction_id (message); - key = (gpointer)((((service << 8) | client_id) << 16) | transaction_id); + /* We're putting a 32 bit value into a gpointer */ + key = GUINT_TO_POINTER ((((service << 8) | client_id) << 16) | transaction_id); #ifdef MESSAGE_ENABLE_TRACE {