From 5c63f0e17b059f053322540ca575199dddbaf031 Mon Sep 17 00:00:00 2001 From: Armin Novak Date: Thu, 8 Jan 2026 09:45:33 +0100 Subject: [PATCH] [server,sample] initialize struct as array avoid gcc >= 15 and clang nonstring warnings --- server/Sample/sfreerdp.c | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/server/Sample/sfreerdp.c b/server/Sample/sfreerdp.c index 4e8cb5829..be45131da 100644 --- a/server/Sample/sfreerdp.c +++ b/server/Sample/sfreerdp.c @@ -1345,7 +1345,12 @@ static const struct const char slocal_only[13]; const char scert[7]; const char skey[6]; -} options = { "--pcap=", "--fast", "--port=", "--local-only", "--cert=", "--key=" }; +} options = { { '-', '-', 'p', 'c', 'a', 'p', '=' }, + { '-', '-', 'f', 'a', 's', 't' }, + { '-', '-', 'p', 'o', 'r', 't', '=' }, + { '-', '-', 'l', 'o', 'c', 'a', 'l', '-', 'o', 'n', 'l', 'y' }, + { '-', '-', 'c', 'e', 'r', 't', '=' }, + { '-', '-', 'k', 'e', 'y', '=' } }; WINPR_PRAGMA_DIAG_PUSH WINPR_PRAGMA_DIAG_IGNORED_FORMAT_NONLITERAL