Skip to content

fix: resolve char/u_char pointer-sign warnings in libopendmarc test suite#427

Merged
thegushi merged 1 commit into
trusteddomainproject:developfrom
thegushi:fix/test-suite-pointer-sign-warnings
Jun 20, 2026
Merged

fix: resolve char/u_char pointer-sign warnings in libopendmarc test suite#427
thegushi merged 1 commit into
trusteddomainproject:developfrom
thegushi:fix/test-suite-pointer-sign-warnings

Conversation

@thegushi

Copy link
Copy Markdown
Collaborator

Summary

Follow-up to #426. `make all` doesn't build `libopendmarc/tests/`, so `make check` surfaces its own set of `-Wpointer-sign` warnings once libmilter/libspf2 are on the include path. Same cast-based fix applied to 6 test files.

Also fixes a genuine bug caught by `-Wincompatible-pointer-types`: `test_dmarc_fetch.c` declared the return of `opendmarc_policy_fetch_ruf`/`opendmarc_policy_fetch_rua` as `u_char *`, but both functions actually return `u_char **`.

Test plan

  • `make check`: 0 warnings, 0 errors, all 11 test programs pass
  • Full `make` rebuild still clean (re-verified after rebasing onto current develop)

…uite

make check surfaces the same -Wpointer-sign warnings as the main build
once libmilter/libspf2 are on the include path. Also corrects
test_dmarc_fetch.c, which declared opendmarc_policy_fetch_ruf/rua's
return value as u_char * instead of the actual u_char ** (caught as
-Wincompatible-pointer-types).
@thegushi thegushi merged commit c190804 into trusteddomainproject:develop Jun 20, 2026
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant