mirror of
https://github.com/ZDoom/gzdoom.git
synced 2024-11-16 01:11:50 +00:00
- fixed compilation warnings introduced recently
src/console/c_cmds.cpp:690:11: warning: format string is not a string literal (potentially insecure) [-Wformat-security] src/scripting/vmthunks.cpp:2698:21: warning: comparison of integers of different signs: 'int' and 'unsigned long' [-Wsign-compare]
This commit is contained in:
parent
eaba63e13b
commit
fb20730960
2 changed files with 2 additions and 2 deletions
|
@ -687,7 +687,7 @@ CCMD(getdate)
|
|||
{
|
||||
char timeString[1024];
|
||||
if (strftime(timeString, sizeof(timeString), "%H:%M:%S %d-%m-%Y%n", timeinfo))
|
||||
Printf(timeString);
|
||||
Printf("%s\n", timeString);
|
||||
else
|
||||
Printf("Error Retrieving Current Date\n");
|
||||
}
|
||||
|
|
|
@ -2695,7 +2695,7 @@ static FString CheckStrfString(FString timeForm)
|
|||
if (t.Len() == 0) return FString("%");
|
||||
|
||||
// Single Character
|
||||
for (int i = 0; i < sizeof(validSingles)/sizeof(validSingles[0]); i++)
|
||||
for (size_t i = 0; i < sizeof(validSingles)/sizeof(validSingles[0]); i++)
|
||||
{
|
||||
if (t[0] == validSingles[i])
|
||||
{
|
||||
|
|
Loading…
Reference in a new issue