Skip to content

fix strict-aliasing rules warning on gcc 5.x#7166

Merged
JacobBarthelmeh merged 1 commit intowolfSSL:masterfrom
miyazakh:gcc5_strict-aliasing
Jan 24, 2024
Merged

fix strict-aliasing rules warning on gcc 5.x#7166
JacobBarthelmeh merged 1 commit intowolfSSL:masterfrom
miyazakh:gcc5_strict-aliasing

Conversation

@miyazakh
Copy link
Copy Markdown
Contributor

Description

fix compiler warning on gcc5.x

dereferencing type-punned pointer will break strict-aliasing rules [-Werror=strict-aliasing]
((RecordLayerHeader*)test_ctx.c_buff)->length);

Testing

compile wolfSSL with 5.3 and 5.5
make check

Checklist

  • [n/a] added tests
  • [n/a] updated/added doxygen
  • [n/a] updated appropriate READMEs
  • [n/a ] Updated manual and documentation

@JacobBarthelmeh JacobBarthelmeh merged commit 199a547 into wolfSSL:master Jan 24, 2024
@miyazakh miyazakh deleted the gcc5_strict-aliasing branch January 25, 2024 02:45
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.

3 participants