From 29e4f99d6db73e01e050726f1451b2d5f0281b7e Mon Sep 17 00:00:00 2001 From: Alexander Wenzel Date: Tue, 18 Mar 2014 12:06:39 +0100 Subject: Fixed compiler warnings with 32Bit gcc compiler. Signed-off-by: Alexander Wenzel --- src/shared/dlt_common.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src/shared') 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; -- cgit v1.2.1