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

Silence clang warning of flexible array not at end #14764

Merged
merged 4 commits into from
Apr 19, 2023

Conversation

youzhongyang
Copy link
Contributor

Motivation and Context

#14737 breaks FreeBSD build when clang is used, we need to make both Linux and FreeBSD happy.

Description

As lundman pointed out, #pragma clang diagnostic ignored may help. I don't have a FreeBSD host to try out, so we will let CI to figure out. If this one works, #14763 will be cancelled.

How Has This Been Tested?

Types of changes

  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Performance enhancement (non-breaking change which improves efficiency)
  • Code cleanup (non-breaking change which makes code smaller or more readable)
  • Breaking change (fix or feature that would cause existing functionality to change)
  • Library ABI change (libzfs, libzfs_core, libnvpair, libuutil and libzfsbootenv)
  • Documentation (a change to man pages or other documentation)

Checklist:

Youzhong Yang added 3 commits April 18, 2023 07:13
Signed-off-by: Youzhong Yang <yyang@mathworks.com>
Signed-off-by: Youzhong Yang <yyang@mathworks.com>
Signed-off-by: Youzhong Yang <yyang@mathworks.com>
@behlendorf behlendorf added the Status: Code Review Needed Ready for review and testing label Apr 18, 2023
Signed-off-by: Youzhong Yang <yyang@mathworks.com>
@behlendorf behlendorf added Status: Accepted Ready to integrate (reviewed, tested) and removed Status: Code Review Needed Ready for review and testing labels Apr 19, 2023
@behlendorf behlendorf merged commit 23f84d1 into openzfs:master Apr 19, 2023
@ryao
Copy link
Contributor

ryao commented Apr 19, 2023

This is technically a violation of the C standard, which could be a source of future miscompilation headaches. :/

andrewc12 pushed a commit to andrewc12/openzfs that referenced this pull request Apr 30, 2023
Reviewed-by: Brian Behlendorf <behlendorf1@llnl.gov>
Reviewed-by: Jorgen Lundman <lundman@lundman.net>
Signed-off-by: Youzhong Yang <yyang@mathworks.com>
Closes openzfs#14764
behlendorf pushed a commit to behlendorf/zfs that referenced this pull request Jun 2, 2023
Reviewed-by: Brian Behlendorf <behlendorf1@llnl.gov>
Reviewed-by: Jorgen Lundman <lundman@lundman.net>
Signed-off-by: Youzhong Yang <yyang@mathworks.com>
Closes openzfs#14764
tonyhutter pushed a commit that referenced this pull request Jun 5, 2023
Reviewed-by: Brian Behlendorf <behlendorf1@llnl.gov>
Reviewed-by: Jorgen Lundman <lundman@lundman.net>
Signed-off-by: Youzhong Yang <yyang@mathworks.com>
Closes #14764
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Status: Accepted Ready to integrate (reviewed, tested)
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants