Silence a warning saying that the variables always resolve to "true" in an
authorBill Wendling <isanbard@gmail.com>
Thu, 1 Nov 2007 09:38:19 +0000 (09:38 +0000)
committerBill Wendling <isanbard@gmail.com>
Thu, 1 Nov 2007 09:38:19 +0000 (09:38 +0000)
expression.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@43610 91177308-0d34-0410-b5e6-96231b3b80d8

lib/System/ltdl.c

index 67631bedd135fb56b9b696d21088f8e2494ba581..23db62f69d0c271373a7117c4d4ab1ca55e0e177 100644 (file)
@@ -865,13 +865,13 @@ struct lt_dlhandle_struct {
 
 #define LT_DLSTRERROR(name)    lt_dlerror_strings[LT_CONC(LT_ERROR_,name)]
 
-static const char      objdir[]                = LTDL_OBJDIR;
-static const char      archive_ext[]           = LTDL_ARCHIVE_EXT;
+static const char      *objdir                 = LTDL_OBJDIR;
+static const char      *archive_ext            = LTDL_ARCHIVE_EXT;
 #ifdef LTDL_SHLIB_EXT
-static const char      shlib_ext[]             = LTDL_SHLIB_EXT;
+static const char      *shlib_ext              = LTDL_SHLIB_EXT;
 #endif
 #ifdef LTDL_SYSSEARCHPATH
-static const char      sys_search_path[]       = LTDL_SYSSEARCHPATH;
+static const char      *sys_search_path        = LTDL_SYSSEARCHPATH;
 #endif