-
Notifications
You must be signed in to change notification settings - Fork 1.5k
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
util: fix -Wshorten-64-to-32 warnings #12633
Conversation
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## master #12633 +/- ##
==========================================
- Coverage 80.77% 80.75% -0.02%
==========================================
Files 932 932
Lines 259286 259314 +28
==========================================
- Hits 209437 209413 -24
- Misses 49849 49901 +52
Flags with carried forward coverage won't be shown. Click here to find out more. |
Information: QA ran without warnings. Pipeline 24806 |
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.
a nit inline, but can also address that in a follow up
@@ -126,13 +126,11 @@ void BuildCpusetWithCallback(const char *name, ConfNode *node, | |||
exit(EXIT_FAILURE); | |||
} | |||
if (b > max) { | |||
SCLogError("%s: upper bound (%ld) of cpu set is too high, only %d cpu(s)", name, b, | |||
SCLogError("%s: upper bound (%d) of cpu set is too high, only %d cpu(s)", name, b, |
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.
%u
now that b
is uint32_t
. Surprising no CI check rejected this.
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.
So, should I fix that in the next PR tackling other warnings ?
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.
yeah, staging branch with this PR is running
Merged in #12653, thanks! |
Link to redmine ticket:
https://redmine.openinfosecfoundation.org/issues/6186
Describe changes:
-Wshorten-64-to-32
warnings for some files : utilOne commit of #9840
#12624 CI fixed
Still to do afterwards :