gcc: support -Werror=format-security

Support gcc -Werror=format-security which is used by default on Fedora.

ext2spice/ext2spice.c: format not a string literal and no format arguments
extflat/EFargs.c: likewise
windows/windCmdNR.c: likewise
This commit is contained in:
Mamoru TASAKA 2025-01-10 14:19:52 +09:00
parent 2afa222414
commit cb2a79d6b1
3 changed files with 3 additions and 3 deletions

View File

@ -1360,7 +1360,7 @@ spcParseArgs(pargc, pargv)
int argc = *pargc; int argc = *pargc;
char *ftmp, *t; char *ftmp, *t;
char usage_text[] = "Usage: ext2spice " const char usage_text[] = "Usage: ext2spice "
"[-B] [-o spicefile] [-M|-m] [-J flat|hier]\n" "[-B] [-o spicefile] [-M|-m] [-J flat|hier]\n"
"[-f spice2|spice3|hspice|ngspice] [-M] [-m] " "[-f spice2|spice3|hspice|ngspice] [-M] [-m] "
"[file]\n"; "[file]\n";

View File

@ -156,7 +156,7 @@ EFArgs(argc, argv, err_result, argsProc, cdata)
HierName *hierName; HierName *hierName;
FILE *f; FILE *f;
char usage_text[] = const char usage_text[] =
"Standard arguments: [-R] [-C] [-r rthresh] [-c cthresh] [-v]\n" "Standard arguments: [-R] [-C] [-r rthresh] [-c cthresh] [-v]\n"
"[-p searchpath] [-s sym=value] [-S symfile] [-t trimchars]\n" "[-p searchpath] [-s sym=value] [-S symfile] [-t trimchars]\n"
#ifdef MAGIC_WRAPPER #ifdef MAGIC_WRAPPER

View File

@ -158,7 +158,7 @@ windPauseCmd(w, cmd)
for (i = 1; i < cmd->tx_argc; i++) for (i = 1; i < cmd->tx_argc; i++)
{ {
TxPrintf(cmd->tx_argv[i]); TxPrintf("%s", cmd->tx_argv[i]);
TxPrintf(" "); TxPrintf(" ");
if (i+1 == cmd->tx_argc) TxPrintf(" "); if (i+1 == cmd->tx_argc) TxPrintf(" ");
} }