summaryrefslogtreecommitdiff
path: root/src/shared
diff options
context:
space:
mode:
Diffstat (limited to 'src/shared')
-rw-r--r--src/shared/dlt_common.c7
1 files changed, 6 insertions, 1 deletions
diff --git a/src/shared/dlt_common.c b/src/shared/dlt_common.c
index 680e0a4..2448e70 100644
--- a/src/shared/dlt_common.c
+++ b/src/shared/dlt_common.c
@@ -3346,6 +3346,12 @@ DltReturnValue dlt_message_argument_print(DltMessage *msg,uint32_t type_info,uin
int64_t value64f_tmp_int64i=0,value64f_tmp_int64i_swaped=0;
uint32_t quantisation_tmp = 0;
+
+ /* apparently this makes no sense but needs to be done to prevent compiler warning.
+ * This variable is only written by DLT_MSG_READ_VALUE macro in if (type_info & DLT_TYPE_INFO_FIXP)
+ * case but never read anywhere */
+ quantisation_tmp += quantisation_tmp;
+
if ( (type_info & DLT_TYPE_INFO_STRG) && (((type_info & DLT_TYPE_INFO_SCOD) == DLT_SCOD_ASCII) || ((type_info & DLT_TYPE_INFO_SCOD) == DLT_SCOD_UTF8)) )
{
/* string type or utf8-encoded string type */
@@ -3495,7 +3501,6 @@ DltReturnValue dlt_message_argument_print(DltMessage *msg,uint32_t type_info,uin
}
if (type_info & DLT_TYPE_INFO_FIXP)
{
- quantisation_tmp=quantisation_tmp; // prevent compiler warning
DLT_MSG_READ_VALUE(quantisation_tmp, *ptr, *datalength, uint32_t);
if((*datalength)<0)