summaryrefslogtreecommitdiffstats
path: root/openmp/runtime/src/kmp_settings.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'openmp/runtime/src/kmp_settings.cpp')
-rw-r--r--openmp/runtime/src/kmp_settings.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/openmp/runtime/src/kmp_settings.cpp b/openmp/runtime/src/kmp_settings.cpp
index 66afa09fd8e..60f5da7b13d 100644
--- a/openmp/runtime/src/kmp_settings.cpp
+++ b/openmp/runtime/src/kmp_settings.cpp
@@ -3298,15 +3298,15 @@ static void __kmp_stg_parse_schedule(char const *name, char const *value,
if (length > INT_MAX) {
KMP_WARNING(LongValue, name);
} else {
- char *semicolon;
+ const char *semicolon;
if (value[length - 1] == '"' || value[length - 1] == '\'')
KMP_WARNING(UnbalancedQuotes, name);
do {
char sentinel;
- semicolon = CCAST(char *, strchr(value, ';'));
+ semicolon = strchr(value, ';');
if (*value && semicolon != value) {
- char *comma = CCAST(char *, strchr(value, ','));
+ const char *comma = strchr(value, ',');
if (comma) {
++comma;
@@ -3371,7 +3371,7 @@ static void __kmp_stg_parse_omp_schedule(char const *name, char const *value,
if (value) {
length = KMP_STRLEN(value);
if (length) {
- char *comma = CCAST(char *, strchr(value, ','));
+ const char *comma = strchr(value, ',');
if (value[length - 1] == '"' || value[length - 1] == '\'')
KMP_WARNING(UnbalancedQuotes, name);
/* get the specified scheduling style */
OpenPOWER on IntegriCloud