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

Unpack struct file_data #312

Merged
merged 1 commit into from
Sep 5, 2019
Merged

Conversation

dridi
Copy link
Contributor

@dridi dridi commented Sep 5, 2019

Packing the structure brings no benefit on 32bit systems and plugs a
marginal hole of 4 bytes on 64bit architectures. It also creates a
misaligned starting point for the entries[] flex array at the end and
while this is typically not a problem for x86 it is reported by GCC
with the address-of-packed-member warning.

Closes #311

Packing the structure brings no benefit on 32bit systems and plugs a
marginal hole of 4 bytes on 64bit architectures. It also creates a
misaligned starting point for the entries[] flex array at the end and
while this is typically not a problem for x86 it is reported by GCC
with the address-of-packed-member warning.

Closes SimonKagstrom#311
@codecov
Copy link

codecov bot commented Sep 5, 2019

Codecov Report

Merging #312 into master will not change coverage.
The diff coverage is n/a.

Impacted file tree graph

@@           Coverage Diff           @@
##           master     #312   +/-   ##
=======================================
  Coverage   70.18%   70.18%           
=======================================
  Files          57       57           
  Lines        3706     3706           
=======================================
  Hits         2601     2601           
  Misses       1105     1105
Impacted Files Coverage Δ
src/merge-file-parser.cc 92.47% <ø> (ø) ⬆️

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 26fbca7...1fbf3c8. Read the comment docs.

@coveralls
Copy link

Coverage Status

Coverage remained the same at 70.183% when pulling 1fbf3c8 on Dridi:issue_311 into 26fbca7 on SimonKagstrom:master.

@SimonKagstrom SimonKagstrom merged commit 758f365 into SimonKagstrom:master Sep 5, 2019
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.

A couple of -Waddress-of-packed-member warnings
3 participants