Skip to content

Comments

Fix some warnings Wshorten-64-to-32 6186 v21.2#11524

Merged
victorjulien merged 4 commits intoOISF:masterfrom
catenacyber:warnint-64to32-6186-v21.2
Jul 22, 2024
Merged

Fix some warnings Wshorten-64-to-32 6186 v21.2#11524
victorjulien merged 4 commits intoOISF:masterfrom
catenacyber:warnint-64to32-6186-v21.2

Conversation

@catenacyber
Copy link
Contributor

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
#11519 with style improved and one less commit according to review

Still to do afterwards :

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

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
@catenacyber catenacyber requested review from a team and victorjulien as code owners July 19, 2024 08:14
@codecov
Copy link

codecov bot commented Jul 19, 2024

Codecov Report

Attention: Patch coverage is 38.09524% with 39 lines in your changes missing coverage. Please review.

Project coverage is 82.48%. Comparing base (6598a69) to head (eff7b52).

Additional details and impacted files
@@            Coverage Diff             @@
##           master   #11524      +/-   ##
==========================================
- Coverage   82.54%   82.48%   -0.07%     
==========================================
  Files         923      923              
  Lines      248460   248496      +36     
==========================================
- Hits       205083   204961     -122     
- Misses      43377    43535     +158     
Flag Coverage Δ
fuzzcorpus 60.37% <7.93%> (-0.15%) ⬇️
livemode 18.64% <23.80%> (-0.01%) ⬇️
pcap 44.02% <9.52%> (+0.02%) ⬆️
suricata-verify 61.70% <23.80%> (-0.03%) ⬇️
unittests 59.10% <7.93%> (-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 21665

@victorjulien victorjulien added this to the 8.0 milestone Jul 20, 2024
@victorjulien victorjulien merged commit eff7b52 into OISF:master Jul 22, 2024
@victorjulien
Copy link
Member

Merged in #11536, thanks!

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.

3 participants