mirror of
https://github.com/morgan9e/FreeRDP
synced 2026-04-14 00:14:11 +09:00
[server,sample] initialize struct as array
avoid gcc >= 15 and clang nonstring warnings
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user