[Openmp-commits] [openmp] r258797 - Fix compilations with msvc's /Zc:strictStrings

Ismail Donmez via Openmp-commits openmp-commits at lists.llvm.org
Tue Jan 26 00:24:58 PST 2016


Author: ismail
Date: Tue Jan 26 02:24:57 2016
New Revision: 258797

URL: http://llvm.org/viewvc/llvm-project?rev=258797&view=rev
Log:
Fix compilations with msvc's /Zc:strictStrings

Modified:
    openmp/trunk/runtime/src/kmp_settings.c

Modified: openmp/trunk/runtime/src/kmp_settings.c
URL: http://llvm.org/viewvc/llvm-project/openmp/trunk/runtime/src/kmp_settings.c?rev=258797&r1=258796&r2=258797&view=diff
==============================================================================
--- openmp/trunk/runtime/src/kmp_settings.c (original)
+++ openmp/trunk/runtime/src/kmp_settings.c Tue Jan 26 02:24:57 2016
@@ -5252,7 +5252,7 @@ __kmp_env_initialize( char const * strin
                     else if ( ( __kmp_affinity_gran != affinity_gran_group )
                       && ( __kmp_affinity_gran != affinity_gran_fine )
                       && ( __kmp_affinity_gran != affinity_gran_thread ) ) {
-                        char *str = NULL;
+                        const char *str = NULL;
                         switch ( __kmp_affinity_gran ) {
                             case affinity_gran_core: str = "core"; break;
                             case affinity_gran_package: str = "package"; break;
@@ -5268,7 +5268,7 @@ __kmp_env_initialize( char const * strin
                         __kmp_affinity_gran = affinity_gran_core;
                     }
                     else if ( __kmp_affinity_gran == affinity_gran_group ) {
-                        char *str = NULL;
+                        const char *str = NULL;
                         switch ( __kmp_affinity_type ) {
                             case affinity_physical: str = "physical"; break;
                             case affinity_logical: str = "logical"; break;




More information about the Openmp-commits mailing list