Skip to content

Conversation

@Jojo-Schmitz
Copy link
Contributor

  • reg.: 'argument': conversion from 'size_t' to 'int', possible loss of data (C4267)
  • reg.: unreachable code (C4702)

return module;
}

bool ApiDumpModel::isAllowByType(const QString& module, ApiType type) const
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Shouldn't that rather be named isAllowedByType()?

@Jojo-Schmitz Jojo-Schmitz changed the title Fixy MSVC compiler warnings Fix MSVC compiler warnings Dec 5, 2025
@Jojo-Schmitz Jojo-Schmitz force-pushed the compiler-warnings branch 2 times, most recently from f5491e1 to f466e4d Compare December 5, 2025 17:15
}

bool ApiDumpModel::isAllowByType(const QString& module, ApiType type) const
bool ApiDumpModel::isAllowedByType(const QString& module, ApiType type) const
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Now it complains about unused parameters

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ah, of course. I'll fix it, tomorrow

bool ApiDumpModel::isAllowedByType(const QString& module, ApiType type) const
{
#if 1
return true;
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@igorkorsukov maybe this return true was not meant to be committed? Or maybe it's still work in progress?

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Sorry, that was a quick fix. I need to tweak this model a bit. I'll do it on Monday.

@Jojo-Schmitz Jojo-Schmitz force-pushed the compiler-warnings branch 3 times, most recently from 4e13b3c to ccdd559 Compare December 6, 2025 08:13
reg.: 'argument': conversion from 'size_t' to 'int', possible loss of data (C4267)
reg.: unreachable code (C4702)
and fix naming
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants