summaryrefslogtreecommitdiff
path: root/src/shared
diff options
context:
space:
mode:
authorPhong Tran <tranmanphong@gmail.com>2019-06-19 22:10:43 +0700
committerSaya Sugiura <39760799+ssugiura@users.noreply.github.com>2019-06-24 17:39:20 +0900
commitd6bedbc8fce89dda50dfb73c168693f9d1ccf7fb (patch)
tree467e4147ff8ba1f27ddbe4220b6b4e02360d1075 /src/shared
parent392d28959dc5869eec8cee60bd5d260bf8bb0a1c (diff)
downloadDLT-daemon-d6bedbc8fce89dda50dfb73c168693f9d1ccf7fb.tar.gz
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 <tranmanphong@gmail.com>
Diffstat (limited to 'src/shared')
-rw-r--r--src/shared/dlt_config_file_parser.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/shared/dlt_config_file_parser.c b/src/shared/dlt_config_file_parser.c
index 738fe3a..d73d445 100644
--- a/src/shared/dlt_config_file_parser.c
+++ b/src/shared/dlt_config_file_parser.c
@@ -239,7 +239,7 @@ static int dlt_config_file_set_section_data(DltConfigFile *file, char *str1, cha
*/
static int dlt_config_file_line_has_section(char *line)
{
- line = line; /* avoid compiler warnings */
+ (void)line; /* avoid compiler warnings */
if (line[0] == '[') /* section found */
return 0;