Commit 196904d8 by Ilya Tocar Committed by Ilya Tocar

target.c (gomp_load_plugin_for_device): Use const char * instead of char * for…

target.c (gomp_load_plugin_for_device): Use const char * instead of char * for variables holding dlerror return values.

libgomp/

* target.c (gomp_load_plugin_for_device): Use const char * instead of
char * for variables holding dlerror return values.
(DLSYM_OPT): Ditto.

From-SVN: r220789
parent 8039a35d
2015-02-18 Ilya Tocar <ilya.tocar@intel.com>
* target.c (gomp_load_plugin_for_device): Use const char * instead of
char * for variables holding dlerror return values.
(DLSYM_OPT): Ditto.
2015-02-17 Thomas Schwinge <thomas@codesourcery.com>
* libgomp-plugin.c (GOMP_PLUGIN_debug): Fix typo.
......
......@@ -919,7 +919,7 @@ static bool
gomp_load_plugin_for_device (struct gomp_device_descr *device,
const char *plugin_name)
{
char *err = NULL, *last_missing = NULL;
const char *err = NULL, *last_missing = NULL;
int optional_present, optional_total;
/* Clear any existing error. */
......@@ -947,7 +947,7 @@ gomp_load_plugin_for_device (struct gomp_device_descr *device,
#define DLSYM_OPT(f, n) \
do \
{ \
char *tmp_err; \
const char *tmp_err; \
device->f##_func = dlsym (plugin_handle, "GOMP_OFFLOAD_" #n); \
tmp_err = dlerror (); \
if (tmp_err == NULL) \
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment