Skip to content

Commit 7977278

Browse files
kateinoigakukunAnka
authored and
Anka
committed
[Runtime] Repair build of getenv mode in EnvironmentVariables.cpp
Follow-up fix to 4b3a197
1 parent 37dbb16 commit 7977278

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

stdlib/public/runtime/EnvironmentVariables.cpp

+2-2
Original file line numberDiff line numberDiff line change
@@ -243,11 +243,11 @@ void swift::runtime::environment::initialize(void *context) {
243243
// everywhere.
244244
#define VARIABLE(name, type, defaultValue, help) \
245245
do { \
246-
const char name##_string = getenv(#name); \
246+
const char *name##_string = getenv(#name); \
247247
if (name##_string) \
248248
name##_isSet_variable = true; \
249249
name##_variable = parse_##type(#name, name##_string, defaultValue); \
250-
} while (0)
250+
} while (0);
251251
#include "EnvironmentVariables.def"
252252

253253
// Print help if requested.

0 commit comments

Comments
 (0)