-
Notifications
You must be signed in to change notification settings - Fork 3k
Fix MSVC compiler warnings #31361
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: master
Are you sure you want to change the base?
Fix MSVC compiler warnings #31361
Conversation
Jojo-Schmitz
commented
Dec 5, 2025
- 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 |
There was a problem hiding this comment.
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()?
f5491e1 to
f466e4d
Compare
| } | ||
|
|
||
| bool ApiDumpModel::isAllowByType(const QString& module, ApiType type) const | ||
| bool ApiDumpModel::isAllowedByType(const QString& module, ApiType type) const |
There was a problem hiding this comment.
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
There was a problem hiding this comment.
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; |
There was a problem hiding this comment.
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?
There was a problem hiding this comment.
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.
4e13b3c to
ccdd559
Compare
reg.: 'argument': conversion from 'size_t' to 'int', possible loss of data (C4267)
reg.: unreachable code (C4702) and fix naming
ccdd559 to
ee2f6db
Compare