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/console/dlt-control.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/console/dlt-control.c') diff --git a/src/console/dlt-control.c b/src/console/dlt-control.c index 19e4b36..f977b46 100644 --- a/src/console/dlt-control.c +++ b/src/console/dlt-control.c @@ -670,7 +670,7 @@ int dlt_receive_message_callback(DltMessage *message, void *data) return -1; /* to avoid warning */ - data = data; + (void)data; /* prepare storage header */ if (DLT_IS_HTYP_WEID(message->standardheader->htyp)) -- cgit v1.2.1