Skip to content

Commit 650e90a

Browse files
[Runtime] Repair build of getenv mode in EnvironmentVariables.cpp
Follow-up fix to 4b3a197
1 parent 8b7a75c commit 650e90a

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

stdlib/public/runtime/EnvironmentVariables.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -247,11 +247,11 @@ void swift::runtime::environment::initialize(void *context) {
247247
// everywhere.
248248
#define VARIABLE(name, type, defaultValue, help) \
249249
do { \
250-
const char name##_string = getenv(#name); \
250+
const char *name##_string = getenv(#name); \
251251
if (name##_string) \
252252
name##_isSet_variable = true; \
253253
name##_variable = parse_##type(#name, name##_string, defaultValue); \
254-
} while (0)
254+
} while (0);
255255
#include "EnvironmentVariables.def"
256256

257257
// Print help if requested.

0 commit comments

Comments
 (0)