Skip to content

Instantly share code, notes, and snippets.

@nickdowell
Created May 5, 2021 08:31
Show Gist options
  • Save nickdowell/54802bad2c310d7cbf2a6daa61cc54ad to your computer and use it in GitHub Desktop.
Save nickdowell/54802bad2c310d7cbf2a6daa61cc54ad to your computer and use it in GitHub Desktop.
CLANG_WARN__DUPLICATE_METHOD_MATCH
37a38
> -Wduplicate-method-match
CLANG_WARN__EXIT_TIME_DESTRUCTORS
37c37
< -Wno-exit-time-destructors
---
> -Wexit-time-destructors
CLANG_WARN_ASSIGN_ENUM
58a59
> -Wassign-enum
CLANG_WARN_ATOMIC_IMPLICIT_SEQ_CST
65a66
> -Watomic-implicit-seq-cst
CLANG_WARN_BLOCK_CAPTURE_AUTORELEASING
82c82
< -Wno-block-capture-autoreleasing
---
> -Wblock-capture-autoreleasing
CLANG_WARN_BOOL_CONVERSION
54c54
< -Wno-bool-conversion
---
> -Wbool-conversion
CLANG_WARN_COMMA
81c81
< -Wno-comma
---
> -Wcomma
CLANG_WARN_CONSTANT_CONVERSION
52c52
< -Wno-constant-conversion
---
> -Wconstant-conversion
CLANG_WARN_CXX0X_EXTENSIONS
65c65
< -Wno-c++11-extensions
---
> -Wc++11-extensions
CLANG_WARN_DELETE_NON_VIRTUAL_DTOR
59d58
< -Wno-delete-non-virtual-dtor
CLANG_WARN_DEPRECATED_OBJC_IMPLEMENTATIONS
64c64
< -Wno-deprecated-implementations
---
> -Wdeprecated-implementations
CLANG_WARN_DIRECT_OBJC_ISA_USAGE
33d32
< -Wno-deprecated-objc-isa-usage
CLANG_WARN_DOCUMENTATION_COMMENTS
31a32
> -Wdocumentation
CLANG_WARN_EMPTY_BODY
46c46
< -Wno-empty-body
---
> -Wempty-body
CLANG_WARN_ENUM_CONVERSION
55c55
< -Wno-enum-conversion
---
> -Wenum-conversion
CLANG_WARN_FLOAT_CONVERSION
56c56
< -Wno-float-conversion
---
> -Wfloat-conversion
CLANG_WARN_FRAMEWORK_INCLUDE_PRIVATE_FROM_PUBLIC
31a32
> -Wframework-include-private-from-public
CLANG_WARN_IMPLICIT_SIGN_CONVERSION
78c78
< -Wno-sign-conversion
---
> -Wsign-conversion
CLANG_WARN_INFINITE_RECURSION
79c79
< -Wno-infinite-recursion
---
> -Winfinite-recursion
CLANG_WARN_INT_CONVERSION
53c53
< -Wno-int-conversion
---
> -Wint-conversion
CLANG_WARN_MISSING_NOESCAPE
59d58
< -Wno-missing-noescape
CLANG_WARN_NON_LITERAL_NULL_CONVERSION
57c57
< -Wno-non-literal-null-conversion
---
> -Wnon-literal-null-conversion
CLANG_WARN_OBJC_EXPLICIT_OWNERSHIP_TYPE
34a35
> -Wexplicit-ownership-type
CLANG_WARN_OBJC_IMPLICIT_ATOMIC_PROPERTIES
32c32
< -Wno-implicit-atomic-properties
---
> -Wimplicit-atomic-properties
CLANG_WARN_OBJC_IMPLICIT_RETAIN_SELF
34a35
> -Wimplicit-retain-self
CLANG_WARN_OBJC_INTERFACE_IVARS
33c33
< -Wno-objc-interface-ivars
---
> -Wobjc-interface-ivars
CLANG_WARN_OBJC_LITERAL_CONVERSION
58c58
< -Wno-objc-literal-conversion
---
> -Wobjc-literal-conversion
CLANG_WARN_OBJC_MISSING_PROPERTY_SYNTHESIS
33a34
> -Wobjc-missing-property-synthesis
CLANG_WARN_OBJC_ROOT_CLASS
34d33
< -Wno-objc-root-class
CLANG_WARN_PRAGMA_PACK
59d58
< -Wno-pragma-pack
CLANG_WARN_PRIVATE_MODULE
59d58
< -Wno-private-module
CLANG_WARN_QUOTED_INCLUDE_IN_FRAMEWORK_HEADER
31a32
> -Wquoted-include-in-framework-header
CLANG_WARN_RANGE_LOOP_ANALYSIS
84c84
< -Wno-range-loop-analysis
---
> -Wrange-loop-analysis
CLANG_WARN_SEMICOLON_BEFORE_METHOD_BODY
85c85
< -Wno-semicolon-before-method-body
---
> -Wsemicolon-before-method-body
CLANG_WARN_STRICT_PROTOTYPES
83c83
< -Wno-strict-prototypes
---
> -Wstrict-prototypes
CLANG_WARN_SUSPICIOUS_IMPLICIT_CONVERSION
51,58c51,58
< -Wno-conversion
< -Wno-constant-conversion
< -Wno-int-conversion
< -Wno-bool-conversion
< -Wno-enum-conversion
< -Wno-float-conversion
< -Wno-non-literal-null-conversion
< -Wno-objc-literal-conversion
---
> -Wconversion
> -Wconstant-conversion
> -Wint-conversion
> -Wbool-conversion
> -Wenum-conversion
> -Wfloat-conversion
> -Wnon-literal-null-conversion
> -Wobjc-literal-conversion
CLANG_WARN_SUSPICIOUS_MOVE
80c80
< -Wno-move
---
> -Wmove
CLANG_WARN_UNGUARDED_AVAILABILITY
86d85
< -Wno-unguarded-availability
CLANG_WARN_UNREACHABLE_CODE
31a32
> -Wunreachable-code
CLANG_WARN_VEXING_PARSE
59d58
< -Wno-vexing-parse
GCC_TREAT_IMPLICIT_FUNCTION_DECLARATIONS_AS_ERRORS
GCC_TREAT_INCOMPATIBLE_POINTER_TYPE_WARNINGS_AS_ERRORS
28a29
> -Werror\=incompatible-pointer-types
GCC_TREAT_WARNINGS_AS_ERRORS
28a29
> -Werror
GCC_WARN_64_TO_32_BIT_CONVERSION
59c59
< -Wno-shorten-64-to-32
---
> -Wshorten-64-to-32
GCC_WARN_ABOUT_DEPRECATED_FUNCTIONS
73c73
< -Wno-deprecated-declarations
---
> -Wdeprecated-declarations
GCC_WARN_ABOUT_INVALID_OFFSETOF_MACRO
74c74
< -Wno-invalid-offsetof
---
> -Winvalid-offsetof
GCC_WARN_ABOUT_MISSING_FIELD_INITIALIZERS
29c29
< -Wno-missing-field-initializers
---
> -Wmissing-field-initializers
GCC_WARN_ABOUT_MISSING_NEWLINE
60c60
< -Wno-newline-eof
---
> -Wnewline-eof
GCC_WARN_ABOUT_MISSING_PROTOTYPES
30c30
< -Wno-missing-prototypes
---
> -Wmissing-prototypes
GCC_WARN_ABOUT_POINTER_SIGNEDNESS
GCC_WARN_ABOUT_RETURN_TYPE
31d30
< -Wno-return-type
GCC_WARN_ALLOW_INCOMPLETE_PROTOCOL
72c72
< -Wno-protocol
---
> -Wprotocol
GCC_WARN_CHECK_SWITCH_STATEMENTS
40c40
< -Wno-switch
---
> -Wswitch
GCC_WARN_FOUR_CHARACTER_CONSTANTS
50c50
< -Wno-four-char-constants
---
> -Wfour-char-constants
GCC_WARN_HIDDEN_VIRTUAL_FUNCTIONS
36c36
< -Wno-overloaded-virtual
---
> -Woverloaded-virtual
GCC_WARN_INITIALIZER_NOT_FULLY_BRACKETED
38c38
< -Wno-missing-braces
---
> -Wmissing-braces
GCC_WARN_MISSING_PARENTHESES
39c39
< -Wno-parentheses
---
> -Wparentheses
GCC_WARN_NON_VIRTUAL_DESTRUCTOR
35c35
< -Wno-non-virtual-dtor
---
> -Wnon-virtual-dtor
GCC_WARN_SHADOW
49c49
< -Wno-shadow
---
> -Wshadow
GCC_WARN_SIGN_COMPARE
58a59
> -Wsign-compare
GCC_WARN_STRICT_SELECTOR_MATCH
62c62
< -Wno-strict-selector-match
---
> -Wstrict-selector-match
GCC_WARN_TYPECHECK_CALLS_TO_PRINTF
38d37
< -Wno-format
GCC_WARN_UNDECLARED_SELECTOR
63c63
< -Wno-undeclared-selector
---
> -Wundeclared-selector
GCC_WARN_UNINITIALIZED_AUTOS
47c47
< -Wno-uninitialized
---
> -Wuninitialized
GCC_WARN_UNKNOWN_PRAGMAS
48c48
< -Wno-unknown-pragmas
---
> -Wunknown-pragmas
GCC_WARN_UNUSED_FUNCTION
41c41
< -Wno-unused-function
---
> -Wunused-function
GCC_WARN_UNUSED_LABEL
42c42
< -Wno-unused-label
---
> -Wunused-label
GCC_WARN_UNUSED_PARAMETER
43c43
< -Wno-unused-parameter
---
> -Wunused-parameter
GCC_WARN_UNUSED_VALUE
45c45
< -Wno-unused-value
---
> -Wunused-value
GCC_WARN_UNUSED_VARIABLE
44c44
< -Wno-unused-variable
---
> -Wunused-variable
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment