mirror of
https://github.com/ZDoom/gzdoom-gles.git
synced 2024-12-12 05:11:45 +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
26f2bfe3fd
commit
3ff3a5f846
2 changed files with 2 additions and 2 deletions
|
@ -881,7 +881,7 @@ CCMD(getdate)
|
||||||
{
|
{
|
||||||
char timeString[1024];
|
char timeString[1024];
|
||||||
if (strftime(timeString, sizeof(timeString), "%H:%M:%S %d-%m-%Y%n", timeinfo))
|
if (strftime(timeString, sizeof(timeString), "%H:%M:%S %d-%m-%Y%n", timeinfo))
|
||||||
Printf(timeString);
|
Printf("%s\n", timeString);
|
||||||
else
|
else
|
||||||
Printf("Error Retrieving Current Date\n");
|
Printf("Error Retrieving Current Date\n");
|
||||||
}
|
}
|
||||||
|
|
|
@ -2893,7 +2893,7 @@ static FString CheckStrfString(FString timeForm)
|
||||||
if (t.Len() == 0) return FString("%");
|
if (t.Len() == 0) return FString("%");
|
||||||
|
|
||||||
// Single Character
|
// 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])
|
if (t[0] == validSingles[i])
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in a new issue