Skip to content
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

Cleanup nits : unused macros, better depency in makefile, remove unnecesarry field out of SuricataContext #12456

Open
wants to merge 4 commits into
base: master
Choose a base branch
from

Conversation

catenacyber
Copy link
Contributor

Link to ticket: https://redmine.openinfosecfoundation.org/issues/
none, just cleanups

Describe changes:

  • remove some warnings about unused macros depending on the compile options
  • better depency in makefile : with a change in cbindgen.toml, we rerun cbindgen
  • remove unnecesarry field out of SuricataContext

some simple commits out of #12455

make should rerun cbindgen if cbindgen.toml is modified
Just use a regular compile time rust export, instead of having
a runtime definition through the SuricataContext structure
when compiling without unit tests
detect-transform-base64.c:47:9: warning: macro is not used [-Wunused-macros]
   47 | #define DETECT_TRANSFORM_FROM_BASE64_MODE_DEFAULT (uint8_t) Base64ModeRFC4648
Copy link

codecov bot commented Jan 23, 2025

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 80.64%. Comparing base (95e8427) to head (4ddaff4).

Additional details and impacted files
@@            Coverage Diff             @@
##           master   #12456      +/-   ##
==========================================
+ Coverage   80.63%   80.64%   +0.01%     
==========================================
  Files         920      920              
  Lines      258704   258702       -2     
==========================================
+ Hits       208595   208627      +32     
+ Misses      50109    50075      -34     
Flag Coverage Δ
fuzzcorpus 56.83% <ø> (+0.02%) ⬆️
livemode 19.39% <ø> (-0.01%) ⬇️
pcap 44.35% <ø> (+0.01%) ⬆️
suricata-verify 63.25% <ø> (-0.02%) ⬇️
unittests 58.52% <100.00%> (-0.01%) ⬇️

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

@victorjulien victorjulien added this to the 8.0 milestone Jan 23, 2025
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