[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[PATCH 3/6] Fix GCC compile warning for "discarded-qualifiers"
From: |
Torbjörn SVENSSON |
Subject: |
[PATCH 3/6] Fix GCC compile warning for "discarded-qualifiers" |
Date: |
Fri, 9 Jun 2023 16:09:54 +0200 |
Contributed by STMicroelectronics
Signed-off-by: Torbjörn SVENSSON <torbjorn.svensson@foss.st.com>
---
src/w32/compat/posixfcn.c | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/src/w32/compat/posixfcn.c b/src/w32/compat/posixfcn.c
index a89c0657..1af66b79 100644
--- a/src/w32/compat/posixfcn.c
+++ b/src/w32/compat/posixfcn.c
@@ -147,5 +147,6 @@ ttyname (int fd)
sophisticated implementation should test whether FD is open for
input or output. We can do that by looking at the mode returned
by GetConsoleMode. */
- return "CONOUT$";
+ static char name[] = "CONOUT$";
+ return name;
}
--
2.25.1