1
0
Fork 0

Codefix: "maybe uninitialized" warnings for linux generic release build

pull/12838/head
glx22 2024-07-02 00:45:51 +02:00
parent f98b90ac2e
commit d0e46412ed
2 changed files with 2 additions and 2 deletions

View File

@ -375,7 +375,7 @@ class BuildIndustryWindow : public Window {
std::string cargostring; std::string cargostring;
size_t numcargo = 0; size_t numcargo = 0;
size_t firstcargo; size_t firstcargo = 0;
for (size_t j = 0; j < cargolist.size(); j++) { for (size_t j = 0; j < cargolist.size(); j++) {
if (!IsValidCargoID(cargolist[j])) continue; if (!IsValidCargoID(cargolist[j])) continue;

View File

@ -29,7 +29,7 @@ private:
static_assert(std::is_base_of_v<NewGRFSpecBase<Tindex>, Tspec>); static_assert(std::is_base_of_v<NewGRFSpecBase<Tindex>, Tspec>);
uint ui_count = 0; ///< Number of specs in this class potentially available to the user. uint ui_count = 0; ///< Number of specs in this class potentially available to the user.
Tindex index; ///< Index of class within the list of classes. Tindex index = static_cast<Tindex>(0); ///< Index of class within the list of classes.
std::vector<Tspec *> spec; ///< List of specifications. std::vector<Tspec *> spec; ///< List of specifications.
/** /**