summaryrefslogtreecommitdiff
path: root/src/shared
diff options
context:
space:
mode:
authorSimon Brandner <simon.brandner@partner.bmw.de>2012-12-03 17:49:49 +0100
committerAlexander Wenzel <Alexander.AW.Wenzel@bmw.de>2013-07-19 16:54:04 +0200
commit311b8896c144c5ff8c10dbc0d4c7832720292608 (patch)
tree8f176477d72e254fb2347697262701b133f2937f /src/shared
parent0790eaebe0dfea27bd0f871e19af752d10bf8938 (diff)
downloadDLT-daemon-311b8896c144c5ff8c10dbc0d4c7832720292608.tar.gz
Removed most warnings caused by: Wunused-but-set-variable flag. Eome were kept, because they were the nicer variant to eliminate them, or they seemed reserved for an commandline argument
Signed-off-by: Alexander Wenzel <Alexander.AW.Wenzel@bmw.de>
Diffstat (limited to 'src/shared')
-rwxr-xr-xsrc/shared/dlt_common.c9
1 files changed, 6 insertions, 3 deletions
diff --git a/src/shared/dlt_common.c b/src/shared/dlt_common.c
index 1da96f0..68d06c6 100755
--- a/src/shared/dlt_common.c
+++ b/src/shared/dlt_common.c
@@ -3177,7 +3177,8 @@ 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, quantisation_tmp=0;
+ //uint32_t quantisation=0,
+ uint32_t quantisation_tmp=0;
if (type_info & DLT_TYPE_INFO_STRG)
{
@@ -3256,12 +3257,14 @@ int dlt_message_argument_print(DltMessage *msg,uint32_t type_info,uint8_t **ptr,
}
if (type_info & DLT_TYPE_INFO_FIXP)
{
- quantisation=0;
+ //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);
+ //quantisation=DLT_ENDIAN_GET_32(msg->standardheader->htyp, quantisation_tmp);
switch ( type_info & DLT_TYPE_INFO_TYLE)
{