From 18290423b969188eadb6c1270e9677dfd7eef6ca Mon Sep 17 00:00:00 2001 From: Thomas Beutlich Date: Thu, 19 Jun 2025 20:41:45 +0200 Subject: [PATCH] Silence Clang warning ModelicaInternal.c:1309:15: note: initialize the variable 'result' to silence this warning --- Modelica/Resources/C-Sources/ModelicaInternal.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Modelica/Resources/C-Sources/ModelicaInternal.c b/Modelica/Resources/C-Sources/ModelicaInternal.c index 05f091e7d2..63641ea575 100644 --- a/Modelica/Resources/C-Sources/ModelicaInternal.c +++ b/Modelica/Resources/C-Sources/ModelicaInternal.c @@ -1306,7 +1306,7 @@ void ModelicaInternal_setenv(_In_z_ const char* name, ModelicaError("Memory allocation error\n"); } #elif defined(_POSIX_) && _POSIX_VERSION >= 200112L - int result; + int result = -1; if (1 == convertFromSlash) { char* buf = (char*)malloc((strlen(value) + 1)*sizeof(char)); if (NULL != buf) {