summaryrefslogtreecommitdiff
path: root/src/shared/dlt_common.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/shared/dlt_common.c')
-rwxr-xr-xsrc/shared/dlt_common.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/shared/dlt_common.c b/src/shared/dlt_common.c
index a12d137..8b94df7 100755
--- a/src/shared/dlt_common.c
+++ b/src/shared/dlt_common.c
@@ -3246,7 +3246,7 @@ int dlt_message_argument_print(DltMessage *msg,uint32_t type_info,uint8_t **ptr,
float64_t value64f=0,value64f_tmp=0;
int64_t value64f_tmp_int64i=0,value64f_tmp_int64i_swaped=0;
- uint32_t quantisation_tmp=0;
+ uint32_t quantisation_tmp = 0;
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)) )
{
@@ -3325,8 +3325,8 @@ int dlt_message_argument_print(DltMessage *msg,uint32_t type_info,uint8_t **ptr,
}
if (type_info & DLT_TYPE_INFO_FIXP)
{
- //compiler warning: variable ‘quantisation_tmp’ set but not used [-Wunused-but-set-variable], but: DLT_MSG_READ_VALUE wants a parameter, "0" does not work
- DLT_MSG_READ_VALUE(quantisation_tmp,*ptr,*datalength,uint32_t);
+ quantisation_tmp=quantisation_tmp; // prevent compiler warning
+ DLT_MSG_READ_VALUE(quantisation_tmp,*ptr,*datalength,uint32_t);
if((*datalength)<0)
return -1;