[Filter/Custom] Fix compiler complaints
authorMyungJoo Ham <myungjoo.ham@samsung.com>
Fri, 25 Oct 2019 06:23:08 +0000 (15:23 +0900)
committerwooksong <wook16.song@samsung.com>
Sun, 27 Oct 2019 13:22:34 +0000 (22:22 +0900)
Recent TAOS-CI/Android complains:

.../tensor_filter_custom.c: In function 'custom_loadlib':
.../tensor_filter_custom.c:95:15: warning: assignment discards 'const' qualifier from pointer target type
   dlsym_error = dlerror ();
               ^

Signed-off-by: MyungJoo Ham <myungjoo.ham@samsung.com>
gst/nnstreamer/tensor_filter/tensor_filter_custom.c

index 7297b5c..b8358ca 100644 (file)
@@ -58,7 +58,7 @@ static int
 custom_loadlib (const GstTensorFilterProperties * prop, void **private_data)
 {
   internal_data *ptr;
-  char *dlsym_error;
+  const char *dlsym_error;
 
   if (*private_data != NULL) {
     /** @todo : Check the integrity of filter->data and filter->model_file, nnfw */