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/shared/dlt_config_file_parser.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/shared') 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; -- cgit v1.2.1