From d6bedbc8fce89dda50dfb73c168693f9d1ccf7fb Mon Sep 17 00:00:00 2001 From: Phong Tran Date: Wed, 19 Jun 2019 22:10:43 +0700 Subject: fix warning of self assign use (void)xyz instead of self assign error log: error: explicitly assigning value of variable of type 'void *' to itself [-Werror,-Wself-assign] Signed-off-by: Phong Tran --- src/offlinelogstorage/dlt_offline_logstorage_behavior.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src/offlinelogstorage') diff --git a/src/offlinelogstorage/dlt_offline_logstorage_behavior.c b/src/offlinelogstorage/dlt_offline_logstorage_behavior.c index b9dc26c..64ba153 100644 --- a/src/offlinelogstorage/dlt_offline_logstorage_behavior.c +++ b/src/offlinelogstorage/dlt_offline_logstorage_behavior.c @@ -829,8 +829,8 @@ int dlt_logstorage_sync_on_msg(DltLogStorageFilterConfig *config, { int ret; - file_config = file_config; /* satisfy compiler */ - dev_path = dev_path; + (void)file_config; /* satisfy compiler */ + (void)dev_path; if (config == NULL) return -1; @@ -877,7 +877,7 @@ int dlt_logstorage_prepare_msg_cache(DltLogStorageFilterConfig *config, return -1; } - log_msg_size = log_msg_size; /* satisfy compiler */ + (void)log_msg_size; /* satisfy compiler */ /* check specific size is smaller than file size */ if ((DLT_OFFLINE_LOGSTORAGE_IS_STRATEGY_SET(config->sync, -- cgit v1.2.1