diff options
author | tocarip <tocarip@138bc75d-0d04-0410-961f-82ee72b054a4> | 2015-02-18 13:33:43 +0000 |
---|---|---|
committer | tocarip <tocarip@138bc75d-0d04-0410-961f-82ee72b054a4> | 2015-02-18 13:33:43 +0000 |
commit | c6aa02c62567d6dab5edd75818db8013dd8720aa (patch) | |
tree | 1df5c32883dd975366b4f7e897fb37998b137cd6 /libgomp/target.c | |
parent | 67a97bd851515ff1b62b80ee3ad571163209e72b (diff) | |
download | gcc-c6aa02c62567d6dab5edd75818db8013dd8720aa.tar.gz |
libgomp/
* target.c (gomp_load_plugin_for_device): Use const char * instead of
char * for variables holding dlerror return values.
(DLSYM_OPT): Ditto.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@220789 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'libgomp/target.c')
-rw-r--r-- | libgomp/target.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/libgomp/target.c b/libgomp/target.c index 73e757a9ec1..50baa4d1319 100644 --- a/libgomp/target.c +++ b/libgomp/target.c @@ -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) \ |