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

Enable pedantic warnings in C++ podspecs #34404

Closed
wants to merge 2 commits into from

Conversation

NickGerleman
Copy link
Contributor

Summary:
Mirrors D38457812 (063c2b4) and D38632454, this enables pedantic warnings for iOS in OSS, so that the warning level matches the internal.

This is enabled through the GCC_WARN_PEDANTIC xcconfig flag (confusingly part of "Apple Clang - Warning Policies"), which controls whether "-pedantic" is passed.

Changelog:
[iOS][Changed] - Enable pedantic errors in C++ podspecs

Differential Revision: D38681644

Summary:
This change mirrors D38457812 (facebook@063c2b4) which added -Wpedantic to ReactCommon targets, but for the Android build used by OSS. This should ensure contributors see the same warnings locally as the internal build would produce.

Changelog:
[Android][Changed] - Enable -Wpedantic in OSS Android Targets

Differential Revision: D38632454

fbshipit-source-id: d00d1262673d46f98b6e65ba372e33943523dbe5
Summary:
Mirrors D38457812 (facebook@063c2b4) and D38632454, this enables pedantic warnings for iOS in OSS, so that the warning level matches the internal.

This is enabled through the `GCC_WARN_PEDANTIC` xcconfig flag (confusingly part of "Apple Clang - Warning Policies"), which controls whether "-pedantic" is passed.

Changelog:
[iOS][Changed] - Enable pedantic errors in C++ podspecs

Differential Revision: D38681644

fbshipit-source-id: 3fc162d5eeedb26034cb50f112978ee9eee168e3
@facebook-github-bot facebook-github-bot added CLA Signed This label is managed by the Facebook bot. Authors need to sign the CLA before a PR can be reviewed. p: Facebook Partner: Facebook Partner fb-exported labels Aug 13, 2022
@facebook-github-bot
Copy link
Contributor

This pull request was exported from Phabricator. Differential Revision: D38681644

@NickGerleman NickGerleman changed the title - Enable pedantic warnings in C++ podspecs Enable pedantic warnings in C++ podspecs Aug 13, 2022
@react-native-bot react-native-bot added the Platform: iOS iOS applications. label Aug 13, 2022
@analysis-bot
Copy link

Platform Engine Arch Size (bytes) Diff
ios - universal n/a --

Base commit: b8425c8
Branch: main

@analysis-bot
Copy link

Platform Engine Arch Size (bytes) Diff
android hermes arm64-v8a 7,615,098 -53
android hermes armeabi-v7a 7,029,850 -51
android hermes x86 7,914,986 -36
android hermes x86_64 7,888,631 -52
android jsc arm64-v8a 9,491,684 -38
android jsc armeabi-v7a 8,269,321 -35
android jsc x86 9,429,153 -45
android jsc x86_64 10,021,904 -54

Base commit: b8425c8
Branch: main

@react-native-bot
Copy link
Collaborator

This pull request was successfully merged by @NickGerleman in 545c82b.

When will my fix make it into a release? | Upcoming Releases

@react-native-bot react-native-bot added the Merged This PR has been merged. label Aug 17, 2022
roryabraham pushed a commit to Expensify/react-native that referenced this pull request Aug 17, 2022
Summary:
Pull Request resolved: facebook#34404

Mirrors D38457812 (facebook@063c2b4) and D38632454 (facebook@06b55a3), this enables pedantic warnings for iOS in OSS, so that the warning level matches the internal.

This is enabled through the `GCC_WARN_PEDANTIC` xcconfig flag (part of "Apple Clang - Warning Policies"), which controls whether "-pedantic" is passed to clang.

Changelog:
[iOS][Changed] - Enable pedantic warnings in C++ podspecs

Reviewed By: cipolleschi

Differential Revision: D38681644

fbshipit-source-id: 724160fbe03660fcfd12ea0ffeedaab448c66a5f
roryabraham pushed a commit to Expensify/react-native that referenced this pull request Aug 17, 2022
Summary:
Pull Request resolved: facebook#34404

Mirrors D38457812 (facebook@063c2b4) and D38632454 (facebook@06b55a3), this enables pedantic warnings for iOS in OSS, so that the warning level matches the internal.

This is enabled through the `GCC_WARN_PEDANTIC` xcconfig flag (part of "Apple Clang - Warning Policies"), which controls whether "-pedantic" is passed to clang.

Changelog:
[iOS][Changed] - Enable pedantic warnings in C++ podspecs

Reviewed By: cipolleschi

Differential Revision: D38681644

fbshipit-source-id: 724160fbe03660fcfd12ea0ffeedaab448c66a5f
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
CLA Signed This label is managed by the Facebook bot. Authors need to sign the CLA before a PR can be reviewed. fb-exported Merged This PR has been merged. p: Facebook Partner: Facebook Partner Platform: iOS iOS applications.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants