Skip to content

Commit

Permalink
Address some CI complaints
Browse files Browse the repository at this point in the history
  • Loading branch information
dashodanger committed Jun 23, 2024
1 parent 2240025 commit b7f1175
Show file tree
Hide file tree
Showing 5 changed files with 18 additions and 14 deletions.
8 changes: 4 additions & 4 deletions source/g_doom.cc
Original file line number Diff line number Diff line change
Expand Up @@ -330,7 +330,7 @@ bool BuildNodes(std::string filename)

if (AJBSP_BuildNodes(filename, &build_info) != 0)
{
ProgStatus(_("AJBSP Error!"));
ProgStatus("%s", _("AJBSP Error!"));
return false;
}

Expand Down Expand Up @@ -1376,7 +1376,7 @@ bool Doom::game_interface_c::Start(const char *preset)

if (filename.empty())
{
ProgStatus(_("Cancelled"));
ProgStatus("%s", _("Cancelled"));
return false;
}

Expand Down Expand Up @@ -1425,14 +1425,14 @@ bool Doom::game_interface_c::Start(const char *preset)
}
if (!ZIPF_OpenWrite(zip_filename))
{
ProgStatus(_("Error (create PK3/ZIP)"), zip_filename.c_str());
ProgStatus("%s", _("Error (create PK3/ZIP)"), zip_filename.c_str());
return false;
}
}

if (!StartWAD(filename))
{
ProgStatus(_("Error (create file)"));
ProgStatus("%s", _("Error (create file)"));
return false;
}

Expand Down
2 changes: 2 additions & 0 deletions source/g_doom.h
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,8 @@

#pragma once

#include <stdint.h>

#include <string>
#include <vector>

Expand Down
8 changes: 4 additions & 4 deletions source/g_wolf.cc
Original file line number Diff line number Diff line change
Expand Up @@ -434,7 +434,7 @@ bool wolf_game_interface_c::Start(const char *ext)
break;

case 1:
ProgStatus(_("Cancelled"));
ProgStatus("%s", _("Cancelled"));
return false;

default:
Expand Down Expand Up @@ -471,7 +471,7 @@ bool wolf_game_interface_c::Start(const char *ext)
{
LogPrint("Unable to create map file:\n%s", strerror(errno));

ProgStatus(_("Error (create file)"));
ProgStatus("%s", _("Error (create file)"));
return false;
}

Expand All @@ -483,7 +483,7 @@ bool wolf_game_interface_c::Start(const char *ext)

LogPrint("Unable to create %s:\n%s", TEMP_HEADFILE, strerror(errno));

ProgStatus(_("Error (create file)"));
ProgStatus("%s", _("Error (create file)"));
return false;
}

Expand Down Expand Up @@ -528,7 +528,7 @@ bool wolf_game_interface_c::Finish(bool build_ok)

if (write_errors_seen > 0)
{
ProgStatus(_("Error (write file)"));
ProgStatus("%s", _("Error (write file)"));
Tidy();
return false;
}
Expand Down
6 changes: 3 additions & 3 deletions source/m_lua.cc
Original file line number Diff line number Diff line change
Expand Up @@ -2158,7 +2158,7 @@ void ob_invoke_hook(std::string hookname)

if (!Script_CallFunc("ob_invoke_hook", 0, &params[0]))
{
ProgStatus(_("Script Error"));
ProgStatus("%s", _("Script Error"));
}
}

Expand All @@ -2174,7 +2174,7 @@ bool ob_build_cool_shit()
.c_str());
}
#endif
ProgStatus(_("Script Error"));
ProgStatus("%s", _("Script Error"));
#ifndef CONSOLE_ONLY
if (main_win)
{
Expand All @@ -2199,7 +2199,7 @@ bool ob_build_cool_shit()
return true;
}

ProgStatus(_("Cancelled"));
ProgStatus("%s", _("Cancelled"));
return false;
}

Expand Down
8 changes: 5 additions & 3 deletions source/main.cc
Original file line number Diff line number Diff line change
Expand Up @@ -40,10 +40,12 @@
#include "physfs.h"
#include "sys_xoshiro.h"
#ifndef CONSOLE_ONLY
#ifndef _WIN32
#include <FL/Fl_File_Icon.H>
#endif
#include <FL/Fl_Shared_Image.H>
#include <FL/fl_ask.H>
#include <FL/platform.H>

#include "ui_boxes.h"
#include "ui_window.h"
#endif
Expand Down Expand Up @@ -1142,7 +1144,7 @@ bool Build_Cool_Shit()
}
if (was_ok)
{
ProgStatus(_("Success"));
ProgStatus("%s", _("Success"));

const uint32_t end_time = TimeGetMillies();
const uint32_t total_time = end_time - start_time;
Expand Down Expand Up @@ -1192,7 +1194,7 @@ bool Build_Cool_Shit()
.c_str());
}
#endif
ProgStatus(_("Cancelled"));
ProgStatus("%s", _("Cancelled"));
}

// Insurance in case the build process errored/cancelled
Expand Down

0 comments on commit b7f1175

Please sign in to comment.