mirror of
https://github.com/openharmony/third_party_vulkan-loader.git
synced 2026-07-19 17:13:36 -04:00
loader: Fix unused variable warning on Apple
This commit is contained in:
committed by
Charles Giessen
parent
d1261df41b
commit
d4ba01b700
+2
-2
@@ -267,7 +267,6 @@ static inline char *loader_getenv(const char *name, const struct loader_instance
|
||||
}
|
||||
|
||||
static inline char *loader_secure_getenv(const char *name, const struct loader_instance *inst) {
|
||||
char *out;
|
||||
#if defined(__APPLE__)
|
||||
// Apple does not appear to have a secure getenv implementation.
|
||||
// The main difference between secure getenv and getenv is that secure getenv
|
||||
@@ -280,7 +279,8 @@ static inline char *loader_secure_getenv(const char *name, const struct loader_i
|
||||
#elif defined(__Fuchsia__)
|
||||
return loader_getenv(name, inst);
|
||||
#else
|
||||
// Linux
|
||||
// Linux
|
||||
char *out;
|
||||
#if defined(HAVE_SECURE_GETENV) && !defined(USE_UNSAFE_FILE_SEARCH)
|
||||
(void)inst;
|
||||
out = secure_getenv(name);
|
||||
|
||||
Reference in New Issue
Block a user