summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/lib/dlt_user.c1
-rwxr-xr-xsrc/shared/dlt_common.c6
-rwxr-xr-xsrc/tests/dlt-test-multi-process.c4
3 files changed, 5 insertions, 6 deletions
diff --git a/src/lib/dlt_user.c b/src/lib/dlt_user.c
index 1ace33c..c3eb29d 100644
--- a/src/lib/dlt_user.c
+++ b/src/lib/dlt_user.c
@@ -735,7 +735,6 @@ int dlt_register_context_ll_ts(DltContext *handle, const char *contextid, const
{
DltContextData log;
uint32_t i;
- char ctid[DLT_ID_SIZE+1];
if (dlt_user_initialised==0)
{
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;
diff --git a/src/tests/dlt-test-multi-process.c b/src/tests/dlt-test-multi-process.c
index b816b71..be5431b 100755
--- a/src/tests/dlt-test-multi-process.c
+++ b/src/tests/dlt-test-multi-process.c
@@ -270,7 +270,7 @@ void quit_handler(int signum)
*/
void cleanup()
{
- int i;
+ unsigned int i;
for(i=0;i<pidcount;i++)
{
kill(pids[i], SIGINT);
@@ -367,7 +367,7 @@ int wait_for_death()
}
else
{
- int i;
+ unsigned int i;
for(i=0;i<pidcount;i++)
{
if(pids[i] == w)