summaryrefslogtreecommitdiff
path: root/src/shared/dlt_common.c
diff options
context:
space:
mode:
authorLassi Marttala <Lassi.LM.Marttala@partner.bmw.de>2013-01-25 13:56:08 +0100
committerAlexander Wenzel <Alexander.AW.Wenzel@bmw.de>2013-07-19 16:54:21 +0200
commit06d85034559e3d7fd7a10e1caaa77fe79bf25a68 (patch)
tree572c57690f04bcb798dfba9b0b38266283556f3e /src/shared/dlt_common.c
parent78e1afcc7a1e0f3f7103ee242bdd08c1bef755ee (diff)
downloadDLT-daemon-06d85034559e3d7fd7a10e1caaa77fe79bf25a68.tar.gz
Fix compiler warnings
Signed-off-by: Alexander Wenzel <Alexander.AW.Wenzel@bmw.de>
Diffstat (limited to 'src/shared/dlt_common.c')
-rwxr-xr-xsrc/shared/dlt_common.c7
1 files changed, 1 insertions, 6 deletions
diff --git a/src/shared/dlt_common.c b/src/shared/dlt_common.c
index 3e7e498..7e9d852 100755
--- a/src/shared/dlt_common.c
+++ b/src/shared/dlt_common.c
@@ -3182,7 +3182,6 @@ 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=0,
uint32_t quantisation_tmp=0;
if (type_info & DLT_TYPE_INFO_STRG)
@@ -3238,7 +3237,7 @@ int dlt_message_argument_print(DltMessage *msg,uint32_t type_info,uint8_t **ptr,
return -1;
sprintf(text+strlen(text),"%d",value8u);
}
- else if (type_info & DLT_TYPE_INFO_SINT || type_info & DLT_TYPE_INFO_UINT)
+ else if ((type_info & DLT_TYPE_INFO_SINT) || (type_info & DLT_TYPE_INFO_UINT))
{
/* signed or unsigned argument received */
if (type_info & DLT_TYPE_INFO_VARI)
@@ -3262,15 +3261,11 @@ int dlt_message_argument_print(DltMessage *msg,uint32_t type_info,uint8_t **ptr,
}
if (type_info & DLT_TYPE_INFO_FIXP)
{
- //quantisation=0;
- quantisation_tmp=0;
//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);
if((*datalength)<0)
return -1;
- //quantisation=DLT_ENDIAN_GET_32(msg->standardheader->htyp, quantisation_tmp);
-
switch ( type_info & DLT_TYPE_INFO_TYLE)
{
case DLT_TYLE_8BIT: