From c73d8d0d7894637cbdaec8f6bf55722edfd70a8d Mon Sep 17 00:00:00 2001 From: Thilo Graf Date: Thu, 23 Jan 2020 21:15:52 +0100 Subject: [PATCH] infoviewer: avoid possible compiler warnings with -Wignored-qualifiers The leading const should be superfluous. Origin commit data ------------------ Branch: ni/coolstream Commit: https://github.com/neutrino-images/ni-neutrino/commit/dbf37b2a20ddf7f1bcb3cf96acdb9cd141e2577d Author: Thilo Graf Date: 2020-01-23 (Thu, 23 Jan 2020) ------------------ This commit was generated by Migit --- src/gui/infoviewer.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/gui/infoviewer.cpp b/src/gui/infoviewer.cpp index 6f85d644a..e12c586ff 100644 --- a/src/gui/infoviewer.cpp +++ b/src/gui/infoviewer.cpp @@ -1602,7 +1602,7 @@ void CInfoViewer::sendNoEpg(const t_channel_id for_channel_id) if (!zap_mode/* & IV_MODE_DEFAULT*/) { char *p = new char[sizeof(t_channel_id)]; memcpy(p, &for_channel_id, sizeof(t_channel_id)); - g_RCInput->postMsg (NeutrinoMessages::EVT_NOEPG_YET, (const neutrino_msg_data_t) p, false); + g_RCInput->postMsg (NeutrinoMessages::EVT_NOEPG_YET, (neutrino_msg_data_t) p, false); } } @@ -1652,7 +1652,7 @@ void CInfoViewer::getEPG(const t_channel_id for_channel_id, CSectionsdClient::Cu } else msg = NeutrinoMessages::EVT_NOEPG_YET; - g_RCInput->postMsg(msg, (const neutrino_msg_data_t)p, false); // data is pointer to allocated memory + g_RCInput->postMsg(msg, (neutrino_msg_data_t)p, false); // data is pointer to allocated memory copy_info(&info,&oldinfo); } }