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

Use consistent __attribute__((__packed__)) #339

Merged

Conversation

GilesBathgate
Copy link
Contributor

@GilesBathgate GilesBathgate commented Nov 26, 2021

Description

Code consistency. In some places __attribute__((__packed__)) was used in others __attribute__((packed)). I can't find any documentation that supports the later version but it could possibly be old syntax that still works in gcc.

Behaviour/ Breaking changes

No behavioural changes are expected.

@GilesBathgate GilesBathgate force-pushed the consistent-attribute-packed branch from 7fcb669 to f05e944 Compare November 26, 2021 10:10
@GilesBathgate GilesBathgate changed the title Use consistent __attribute__((packed)) Use consistent __attribute__((__packed__)) Nov 26, 2021
@codecov
Copy link

codecov bot commented Nov 26, 2021

Codecov Report

Merging #339 (f05e944) into master (c1a0c6b) will not change coverage.
The diff coverage is n/a.

Impacted file tree graph

@@           Coverage Diff           @@
##           master     #339   +/-   ##
=======================================
  Coverage   91.14%   91.14%           
=======================================
  Files         166      166           
  Lines        7692     7692           
=======================================
  Hits         7011     7011           
  Misses        681      681           
Impacted Files Coverage Δ
parts/I2CPeripheral.h 100.00% <ø> (ø)
parts/components/MCP23S17.h 100.00% <ø> (ø)
parts/components/SDCard.h 100.00% <ø> (ø)
parts/components/TMC2130.h 100.00% <ø> (ø)

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update c1a0c6b...f05e944. Read the comment docs.

@vintagepc
Copy link
Owner

The ones using the second form look to have been imported third party code, hence the inconsistency :)

@vintagepc vintagepc merged commit ad578c3 into vintagepc:master Nov 26, 2021
@GilesBathgate GilesBathgate deleted the consistent-attribute-packed branch November 26, 2021 13:16
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.

2 participants