Skip to content
This repository was archived by the owner on Mar 4, 2026. It is now read-only.

Copy MDC-iOS' warnings.#3

Open
ajsecord wants to merge 3 commits into
material-foundation:developfrom
ajsecord:add-warnings
Open

Copy MDC-iOS' warnings.#3
ajsecord wants to merge 3 commits into
material-foundation:developfrom
ajsecord:add-warnings

Conversation

@ajsecord
Copy link
Copy Markdown
Member

Copy material-components/material-components-ios#2456 until the warnings can be rationalized.

@ajsecord ajsecord requested a review from jverkoey November 16, 2017 19:31
@jverkoey
Copy link
Copy Markdown
Contributor

Are we intentionally disabling all of the unused warnings?

Comment thread strict_warnings_objc_library.bzl Outdated
# * Our basic warnings cover most things and make warnings into errors.
# * If a warning is (transitively) enabled by our basic warnings, do not include it separately.
# * For warnings not enabled by our basic warnings, add them to the extra warnings.
# * To change a warning-as-error into just a warning, add it to the ignorable warnings.
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

"...using the format -Wno-error=<warning>"

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Done

Comment thread strict_warnings_objc_library.bzl Outdated
# * If a warning is (transitively) enabled by our basic warnings, do not include it separately.
# * For warnings not enabled by our basic warnings, add them to the extra warnings.
# * To change a warning-as-error into just a warning, add it to the ignorable warnings.
# * To disable a warning completely, add it to the disabled warnings.
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

"...using the format -Wno-<warning>"

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Done

@ajsecord
Copy link
Copy Markdown
Member Author

No. -Wall implies -Wunused, which includes all of them. When -Wextra is included, -Wunused also turns on -Wunused-parameters, which is why we turn it back off again.

@jverkoey
Copy link
Copy Markdown
Contributor

Got it!

@ajsecord
Copy link
Copy Markdown
Member Author

Done, PTAL.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants