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

Remove no-op pragma clang lines #321

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

brooksdavis
Copy link

Description

The two uses of #pragma clang in the tree don't do anything and cause GCC to whine about unknown pragmas in some cases so remove them.

Noticed the push when trying to build FreeBSD and it's embedded copy of libcbor with GCC 13.

I've not updated the CHANGELOG as these commits don't have any functional effect.

Checklist

  • I have read followed CONTRIBUTING.md
    • I have added tests
    • I have updated the documentation
    • I have updated the CHANGELOG
  • Are there any breaking changes?
    • If yes: I have marked them in the CHANGELOG (example)
  • Does this PR introduce any platform specific code?
  • Security: Does this PR potentially affect security?
  • Performance: Does this PR potentially affect performance?

With no corresponding pragmas or pop it isn't doing anything.
Clang honors pragma GCC so specifying is is redundant (and with the
right flags GCC somewhat rudely whines about it.)
Copy link

codecov bot commented May 17, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 100.00%. Comparing base (a0582ab) to head (2ba0f70).

Additional details and impacted files
@@            Coverage Diff            @@
##            master      #321   +/-   ##
=========================================
  Coverage   100.00%   100.00%           
=========================================
  Files           20        20           
  Lines         1658      1658           
=========================================
  Hits          1658      1658           

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

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