forked from material-components/material-components-ios
-
Notifications
You must be signed in to change notification settings - Fork 0
/
MaterialComponentsWarnings.xcconfig
20 lines (19 loc) · 1.33 KB
/
MaterialComponentsWarnings.xcconfig
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
// Warning flags to be used for all library and example code.
//
// Clang's warning reference: https://clang.llvm.org/docs/DiagnosticsReference.html
// General xcconfig docs: https://pewpewthespells.com/blog/xcconfig_guide.html
//
// * 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 using the
// format `-Wno-error=<warning>`.
// * To disable a warning completely, add it to the disabled warnings using the format
// `-Wno-<warning>`.
//
MDC_BASIC_WARNINGS = -Wall -Wextra -Werror
MDC_EXTRA_WARNINGS = -Wcast-align -Wconversion -Watomic-properties -Wmissing-prototypes -Wnewline-eof -Woverlength-strings -Wshadow -Wstrict-selector-match -Wundeclared-selector -Wunreachable-code -Wstrict-prototypes
MDC_IGNORABLE_WARNINGS = -Wno-error=deprecated -Wno-error=deprecated-implementations
MDC_DISABLED_WARNINGS = -Wno-partial-availability -Wno-sign-conversion -Wno-unused-parameter
MDC_AVAILABILITY = -Wunguarded-availability
WARNING_CFLAGS = $(inherited) $(MDC_BASIC_WARNINGS) $(MDC_EXTRA_WARNINGS) $(MDC_IGNORABLE_WARNINGS) $(MDC_DISABLED_WARNINGS) $(MDC_AVAILABILITY)