Skip to content

Warnint 64to32 6186 v21.0#11517

Closed
catenacyber wants to merge 6 commits intoOISF:masterfrom
catenacyber:warnint-64to32-6186-v21.0
Closed

Warnint 64to32 6186 v21.0#11517
catenacyber wants to merge 6 commits intoOISF:masterfrom
catenacyber:warnint-64to32-6186-v21.0

Conversation

@catenacyber
Copy link
Contributor

@catenacyber catenacyber commented Jul 17, 2024

Link to redmine ticket:
https://redmine.openinfosecfoundation.org/issues/6186

Describe changes:

  • fix -Wshorten-64-to-32 warnings for some files : defrag, datasets, suricata.c, runmodes
  • adds -Wimplicit-int-float-conversion to the set of warning flags used by ./configure --enable-warnings

Some commits of #9840
#11453 next batch

Still to do afterwards :

  • detect
  • log
  • output
  • source
  • stream
  • util

Setting first as draft to see if CI is happy for -Wimplicit-int-float-conversion in all builds

When configure is used with --enable-warnings, we try to add most
warning flags that should pass.
This commits adds the warning Wimplicit-int-float-conversion
@codecov
Copy link

codecov bot commented Jul 17, 2024

Codecov Report

Attention: Patch coverage is 35.82090% with 43 lines in your changes missing coverage. Please review.

Project coverage is 82.67%. Comparing base (bce8f4b) to head (c183c9a).

Additional details and impacted files
@@            Coverage Diff             @@
##           master   #11517      +/-   ##
==========================================
+ Coverage   82.66%   82.67%   +0.01%     
==========================================
  Files         918      918              
  Lines      247447   247486      +39     
==========================================
+ Hits       204543   204610      +67     
+ Misses      42904    42876      -28     
Flag Coverage Δ
fuzzcorpus 60.94% <7.46%> (+<0.01%) ⬆️
livemode 18.72% <22.38%> (-0.01%) ⬇️
pcap 43.86% <8.95%> (+0.04%) ⬆️
suricata-verify 61.62% <22.38%> (-0.02%) ⬇️
unittests 59.29% <7.46%> (-0.01%) ⬇️

Flags with carried forward coverage won't be shown. Click here to find out more.

@suricata-qa
Copy link

Information: QA ran without warnings.

Pipeline 21585

@catenacyber
Copy link
Contributor Author

Clean in #11519

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

2 participants