halapi: Remove build warning due to misused 'const' keyword 11/261511/1 accepted/tizen/unified/20210721.123533 submit/tizen/20210721.013304
authorChanwoo Choi <cw00.choi@samsung.com>
Tue, 20 Jul 2021 09:17:18 +0000 (18:17 +0900)
committerChanwoo Choi <cw00.choi@samsung.com>
Tue, 20 Jul 2021 09:17:18 +0000 (18:17 +0900)
commit99ff442c94e293dea66177c47122669f8cce7e94
treea87d2406ab2cac21a9fe491f90ac2f38a6449326
parent1aa48b3533c1d4ff0b14b71e5144ffdbca95222a
halapi: Remove build warning due to misused 'const' keyword

Remove the following build warning due to misused 'const' keyword.

[Build warning message]
[ 11%] Building C object CMakeFiles/hal-api-common.dir/src/hal-api-common.c.o
[ 22%] Building C object CMakeFiles/hal-api-common.dir/src/hal-api-conf.c.o
/home/abuild/rpmbuild/BUILD/hal-api-common-0.0.1/src/hal-api-common.c:
In function '__get_backend_library_data':
/home/abuild/rpmbuild/BUILD/hal-api-common-0.0.1/src/hal-api-common.c:684:9:
warning: passing argument 1 of 'g_free' discards 'const' qualifier
from pointer target type [-Wdiscarded-qualifiers]
  684 |  g_free(backend_module_name);

Change-Id: I8576581f3a40d140293fbbc62433107a25a9998b
Signed-off-by: Chanwoo Choi <cw00.choi@samsung.com>
src/hal-api-common.c