Skip to content

Commit 6aec845

Browse files
author
Jeff Verkoeyen
committed
Merge branch 'release-candidate' into stable
2 parents d35a2a3 + a117c6f commit 6aec845

File tree

3 files changed

+24
-1
lines changed

3 files changed

+24
-1
lines changed

CHANGELOG.md

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,11 @@
1+
# 2.0.0
2+
3+
Added additional warnings to `strict_warnings_objc_library`:
4+
5+
## Changes
6+
7+
* [Update warnings to match the MDC iOS project (#2)](https://github.com/material-foundation/bazel_ios_warnings/commit/aac7e59ab1b3e6d3329a08019b69ace1a68966b2) (featherless)
8+
19
# 1.0.1
210

311
This patch release fixes text layout in the AUTHORS file.

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ Add the following to your `WORKSPACE`:
99
git_repository(
1010
name = "bazel_ios_warnings",
1111
remote = "https://github.com/material-foundation/bazel_ios_warnings.git",
12-
tag = "v1.0.1",
12+
tag = "v2.0.0",
1313
)
1414
```
1515

strict_warnings_objc_library.bzl

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,13 +17,28 @@ COMMON_COPTS = [
1717
"-Wnewline-eof", # No newline at the end of the file.
1818
"-Wno-error=deprecated", # Deprecation warnings are never errors.
1919
"-Wno-error=deprecated-implementations", # Deprecation warnings are never errors.
20+
"-Wno-partial-availability",
2021
"-Wno-sign-conversion", # Do not warn on sign conversions.
2122
"-Wno-unused-parameter", # Do not warn on unused parameters.
2223
"-Woverlength-strings", # Strings longer than the C maximum.
2324
"-Wshadow", # Local variable shadows another variable, parameter, etc.
2425
"-Wstrict-selector-match", # Compiler can't figure out the right selector.
26+
"-Wstrict-prototypes",
2527
"-Wundeclared-selector", # Compiler doesn't see a selector.
2628
"-Wunreachable-code", # Code will never be reached.
29+
"-Wunused-comparison",
30+
"-Wunused-const-variable",
31+
"-Wunused-exception-parameter",
32+
"-Wunused-function",
33+
"-Wunused-label",
34+
"-Wunused-member-function",
35+
"-Wunused-private-field",
36+
"-Wunused-property-ivar",
37+
"-Wunused-result",
38+
"-Wunused-value",
39+
"-Wunused-variable",
40+
"-Wunused-volatile-lvalue",
41+
"-Wused-but-marked-unused",
2742
]
2843

2944
def strict_warnings_objc_library(

0 commit comments

Comments
 (0)