summaryrefslogtreecommitdiff
path: root/src/shared/dlt_common.c
diff options
context:
space:
mode:
authorLutz Helwing <lutz_helwing@mentor.com>2015-10-09 14:34:19 +0200
committerAlexander Wenzel <Alexander.AW.Wenzel@bmw.de>2015-10-28 11:37:32 +0100
commitfb99b7875dfe64a4073aa14f33c551098632847c (patch)
treed771a7287e00b9dcedb3f94281cfdcb58d306a0e /src/shared/dlt_common.c
parenta65dcd34513308b37165f8544ab647016d6e7209 (diff)
downloadDLT-daemon-fb99b7875dfe64a4073aa14f33c551098632847c.tar.gz
Purged all warnings for -Wall -Wextra
Signed-off-by: Alexander Wenzel <Alexander.AW.Wenzel@bmw.de>
Diffstat (limited to 'src/shared/dlt_common.c')
-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)