forked from Barro/compiler-warnings
-
Notifications
You must be signed in to change notification settings - Fork 0
/
warnings-toplevelonly-clang-3.4.txt
383 lines (383 loc) · 26.2 KB
/
warnings-toplevelonly-clang-3.4.txt
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
-W <<<NONE>>>
# -Wextra Extra
# -Wignored-qualifiers IgnoredQualifiers
# -Winitializer-overrides InitializerOverrides
# -Wmissing-field-initializers MissingFieldInitializers
# -Wmissing-method-return-type MissingMethodReturnType
# -Wsemicolon-before-method-body SemiBeforeMethodBody
# -Wsign-compare SignCompare
# -Wunused-parameter UnusedParameter
-W#pragma-messages PoundPragmaMessage
-W#warnings PoundWarning
-WNSObject-attribute NSobjectAttribute
-Wabi <<<NONE>>>
-Wabstract-final-class AbstractFinalClass
-Waddress <<<NONE>>>
-Waddress-of-temporary AddressOfTemporary
-Waggregate-return <<<NONE>>>
-Wall <<<NONE>>>
# -Wmost Most
# -Wcast-of-sel-type SelTypeCast
# -Wchar-subscripts CharSubscript
# -Wcomment Comment
# -Wdelete-non-virtual-dtor DeleteNonVirtualDtor
# -Wextern-c-compat ExternCCompat
# -Wformat Format
# -Wformat-extra-args FormatExtraArgs
# -Wformat-invalid-specifier FormatInvalidSpecifier
# -Wformat-security FormatSecurity
# -Wformat-y2k FormatY2K
# -Wformat-zero-length FormatZeroLength
# -Wnonnull NonNull
# -Wimplicit Implicit
# -Wimplicit-function-declaration ImplicitFunctionDeclare
# -Wimplicit-int ImplicitInt
# -Wmismatched-tags MismatchedTags
# -Wmissing-braces MissingBraces
# -Wmultichar MultiChar
# -Wobjc-missing-super-calls ObjCMissingSuperCalls
# -Woverloaded-virtual OverloadedVirtual
# -Wprivate-extern PrivateExtern
# -Wreorder Reorder
# -Wreturn-type ReturnType
# -Wreturn-type-c-linkage ReturnTypeCLinkage
# -Wself-assign SelfAssignment
# -Wself-assign-field SelfAssignmentField
# -Wsizeof-array-argument SizeofArrayArgument
# -Wsizeof-array-decay SizeofArrayDecay
# -Wstring-plus-int StringPlusInt
# -Wtrigraphs Trigraphs
# -Wuninitialized Uninitialized
# -Wsometimes-uninitialized UninitializedSometimes
# -Wstatic-self-init UninitializedStaticSelfInit
# -Wunknown-pragmas UnknownPragmas
# -Wunused Unused
# -Wunused-argument UnusedArgument
# -Wunused-function UnusedFunction
# -Wunneeded-internal-declaration UnneededInternalDecl
# -Wunused-label UnusedLabel
# -Wunused-private-field UnusedPrivateField
# -Wunused-property-ivar UnusedPropertyIvar
# -Wunused-value UnusedValue
# -Wunused-comparison UnusedComparison
# -Wunused-result UnusedResult
# -Wunused-variable UnusedVariable
# -Wunused-const-variable UnusedConstVariable
# -Wvolatile-register-var VolatileRegisterVar
# -Wparentheses Parentheses
# -Wbitwise-op-parentheses BitwiseOpParentheses
# -Wdangling-else DanglingElse
# -Wlogical-not-parentheses LogicalNotParentheses
# -Wlogical-op-parentheses LogicalOpParentheses
# -Woverloaded-shift-op-parentheses OverloadedShiftOpParentheses
# -Wparentheses-equality ParenthesesOnEquality
# -Wshift-op-parentheses ShiftOpParentheses
# -Wswitch Switch
-Wambiguous-macro AmbiguousMacro
-Wambiguous-member-template AmbigMemberTemplate
-Warc AutomaticReferenceCounting
# -Warc-non-pod-memaccess ARCNonPodMemAccess
# -Warc-retain-cycles ARCRetainCycles
# -Warc-unsafe-retained-assign ARCUnsafeRetainedAssign
-Warc-abi <<<NONE>>>
-Warc-repeated-use-of-weak ARCRepeatedUseOfWeak
# -Warc-maybe-repeated-use-of-weak ARCRepeatedUseOfWeakMaybe
-Warray-bounds ArrayBounds
-Warray-bounds-pointer-arithmetic ArrayBoundsPointerArithmetic
-Wasm ASM
# -Wasm-operand-widths ASMOperandWidths
-Watomic-properties AtomicProperties
# -Wcustom-atomic-properties CustomAtomic
# -Wimplicit-atomic-properties ImplicitAtomic
-Wattributes UnknownAttributes
-Wauto-import AutoImport
-Wavailability Availability
-Wbad-array-new-length BadArrayNewLength
-Wbad-function-cast BadFunctionCast
-Wbind-to-temporary-copy BindToTemporaryCopy
# -Wc++98-compat-bind-to-temporary-copy CXX98CompatBindToTemporaryCopy
-Wbool-conversions <<<NONE>>>
# -Wbool-conversion BoolConversion
-Wbridge-cast ObjCBridge
-Wbuiltin-macro-redefined BuiltinMacroRedefined
-Wbuiltin-requires-header BuiltinRequiresHeader
-Wc++-compat CXXCompat
-Wc++0x-compat <<<NONE>>>
# -Wc++11-compat CXX11Compat
# -Wc++11-compat-deprecated-writable-strings CXX11CompatDeprecatedWritableStr
# -Wc++11-compat-reserved-user-defined-literal CXX11CompatReservedUserDefinedLiteral
# -Wc++11-narrowing CXX11Narrowing
# -Wc++98-c++11-compat CXXPre1yCompat
-Wc++0x-extensions <<<NONE>>>
# -Wc++11-extensions CXX11
# -Wc++11-extra-semi CXX11ExtraSemi
# -Wc++11-long-long CXX11LongLong
-Wc++0x-narrowing <<<NONE>>>
# -Wc++11-narrowing CXX11Narrowing
-Wc++11-compat-pedantic CXX11CompatPedantic
# -Wc++98-c++11-compat-pedantic CXXPre1yCompatPedantic
# -Wc++98-c++11-compat CXXPre1yCompat
-Wc++1y-extensions CXX1y
-Wc++98-compat-pedantic CXX98CompatPedantic
# -Wc++98-c++11-compat-pedantic CXXPre1yCompatPedantic
# -Wc++98-c++11-compat CXXPre1yCompat
# -Wc++98-compat CXX98Compat
# -Wc++98-c++11-compat CXXPre1yCompat
# -Wc++98-compat-bind-to-temporary-copy CXX98CompatBindToTemporaryCopy
# -Wc++98-compat-local-type-template-args CXX98CompatLocalTypeTemplateArgs
# -Wc++98-compat-unnamed-type-template-args CXX98CompatUnnamedTypeTemplateArgs
-Wc11-extensions C11
-Wc99-compat C99Compat
-Wc99-extensions C99
-Wcast-align CastAlign
-Wcast-qual <<<NONE>>>
-Wchar-align <<<NONE>>>
-Wcomments <<<NONE>>>
# -Wcomment Comment
-Wcompare-distinct-pointer-types CompareDistinctPointerType
-Wconditional-uninitialized UninitializedMaybe
-Wconfig-macros ConfigMacros
-Wconsumed Consumed
-Wconversion-null <<<NONE>>>
# -Wnull-conversion NullConversion
-Wcovered-switch-default CoveredSwitchDefault
-Wctor-dtor-privacy <<<NONE>>>
-Wdangling-field DanglingField
-Wdelegating-ctor-cycles DelegatingCtorCycles
-Wdeprecated Deprecated
# -Wdeprecated-declarations DeprecatedDeclarations
# -Wdeprecated-increment-bool DeprecatedIncrementBool
# -Wdeprecated-register DeprecatedRegister
-Wdeprecated-implementations DeprecatedImplementations
-Wdeprecated-objc-isa-usage DeprecatedObjCIsaUsage
-Wdeprecated-objc-pointer-introspection ObjCPointerIntrospect
# -Wdeprecated-objc-pointer-introspection-performSelector ObjCPointerIntrospectPerformSelector
-Wdisabled-optimization <<<NONE>>>
-Wdiscard-qual <<<NONE>>>
-Wdistributed-object-modifiers DistributedObjectModifiers
-Wdiv-by-zero <<<NONE>>>
-Wdivision-by-zero DivZero
-Wdocumentation Documentation
# -Wdocumentation-deprecated-sync DocumentationDeprecatedSync
# -Wdocumentation-html DocumentationHTML
-Wdocumentation-pedantic DocumentationPedantic
# -Wdocumentation-unknown-command DocumentationUnknownCommand
-Wduplicate-decl-specifier DuplicateDeclSpecifier
-Wduplicate-method-arg DuplicateArgDecl
-Wduplicate-method-match MethodDuplicate
-Weffc++ <<<NONE>>>
-Wempty-body EmptyBody
-Wendif-labels <<<NONE>>>
# -Wextra-tokens ExtraTokens
-Wexit-time-destructors ExitTimeDestructors
-Wextra-semi ExtraSemi
# -Wc++11-extra-semi CXX11ExtraSemi
-Wflexible-array-extensions FlexibleArrayExtensions
-Wformat-non-iso FormatNonStandard
-Wformat=2 Format2
# -Wformat-nonliteral FormatNonLiteral
# -Wformat-security FormatSecurity
# -Wformat-security FormatSecurity
# -Wformat-y2k FormatY2K
-Wfour-char-constants FourByteMultiChar
-Wgcc-compat GccCompat
-Wglobal-constructors GlobalConstructors
-Wgnu GNU
# -Wgnu-alignof-expression GNUAlignofExpression
# -Wgnu-anonymous-struct GNUAnonymousStruct
# -Wgnu-binary-literal GNUBinaryLiteral
# -Wgnu-case-range GNUCaseRange
# -Wgnu-complex-integer GNUComplexInteger
# -Wgnu-compound-literal-initializer GNUCompoundLiteralInitializer
# -Wgnu-conditional-omitted-operand GNUConditionalOmittedOperand
# -Wgnu-designator GNUDesignator
# -Wgnu-empty-initializer GNUEmptyInitializer
# -Wgnu-empty-struct GNUEmptyStruct
# -Wgnu-flexible-array-initializer GNUFlexibleArrayInitializer
# -Wgnu-flexible-array-union-member GNUFlexibleArrayUnionMember
# -Wgnu-folding-constant GNUFoldingConstant
# -Wgnu-imaginary-constant GNUImaginaryConstant
# -Wgnu-label-as-value GNULabelsAsValue
# -Wgnu-redeclared-enum GNURedeclaredEnum
# -Wgnu-statement-expression GNUStatementExpression
# -Wgnu-static-float-init GNUStaticFloatInit
# -Wgnu-string-literal-operator-template GNUStringLiteralOperatorTemplate
# -Wgnu-union-cast GNUUnionCast
# -Wgnu-variable-sized-type-not-at-end GNUVariableSizedTypeNotAtEnd
# -Wgnu-zero-line-directive GNUZeroLineDirective
# -Wgnu-zero-variadic-macro-arguments GNUZeroVariadicMacroArguments
# -Wredeclared-class-member RedeclaredClassMember
# -Wvla-extension VLAExtension
# -Wzero-length-array ZeroLengthArray
-Wheader-hygiene HeaderHygiene
-Wignored-attributes IgnoredAttributes
-Wimplicit-conversion-floating-point-to-bool ImplicitConversionFloatingPointToBool
-Wimplicit-fallthrough ImplicitFallthrough
# -Wimplicit-fallthrough-per-function ImplicitFallthroughPerFunction
-Wimport <<<NONE>>>
-Wincompatible-pointer-types IncompatiblePointerTypes
# -Wincompatible-pointer-types-discards-qualifiers IncompatiblePointerTypesDiscardsQualifiers
-Wincomplete-module IncompleteModule
# -Wincomplete-umbrella IncompleteUmbrella
-Winit-self <<<NONE>>>
-Winline <<<NONE>>>
-Wint-conversions <<<NONE>>>
# -Wint-conversion IntConversion
-Wint-to-pointer-cast IntToPointerCast
# -Wint-to-void-pointer-cast IntToVoidPointerCast
-Winvalid-command-line-argument InvalidCommandLineArgument
-Winvalid-iboutlet ObjCInvalidIBOutletProperty
-Winvalid-noreturn InvalidNoreturn
-Winvalid-offsetof InvalidOffsetof
-Winvalid-pch <<<NONE>>>
-Winvalid-pp-token InvalidPPToken
-Winvalid-source-encoding InvalidSourceEncoding
-Wkeyword-compat KeywordCompat
-Wknr-promoted-parameter KNRPromotedParameter
-Wlarge-by-value-copy LargeByValueCopy
-Wlocal-type-template-args LocalTypeTemplateArgs
# -Wc++98-compat-local-type-template-args CXX98CompatLocalTypeTemplateArgs
-Wlong-long LongLong
# -Wc++11-long-long CXX11LongLong
-Wloop-analysis LoopAnalysis
-Wmain Main
-Wmain-return-type MainReturnType
-Wmalformed-warning-check MalformedWarningCheck
-Wmethod-signatures MethodSignatures
-Wmicrosoft Microsoft
-Wmismatched-parameter-types MismatchedParameterTypes
-Wmismatched-return-types MismatchedReturnTypes
-Wmissing-declarations MissingDeclarations
-Wmissing-format-attribute <<<NONE>>>
-Wmissing-include-dirs <<<NONE>>>
-Wmissing-noreturn MissingNoreturn
-Wmodule-conflict ModuleConflict
-Wnarrowing <<<NONE>>>
# -Wc++11-narrowing CXX11Narrowing
-Wnested-externs <<<NONE>>>
-Wnewline-eof NewlineEOF
-Wnon-gcc NonGCC
# -Wconversion Conversion
# -Wbool-conversion BoolConversion
# -Wconstant-conversion ConstantConversion
# -Wbitfield-constant-conversion BitFieldConstantConversion
# -Wenum-conversion EnumConversion
# -Wint-conversion IntConversion
# -Wliteral-conversion LiteralConversion
# -Wnon-literal-null-conversion NonLiteralNullConversion
# -Wnull-conversion NullConversion
# -Wshorten-64-to-32 Shorten64To32
# -Wsign-conversion SignConversion
# -Wstring-conversion StringConversion
# -Wliteral-range LiteralRange
# -Wsign-compare SignCompare
-Wnon-pod-varargs NonPODVarargs
-Wnon-virtual-dtor NonVirtualDtor
-Wnonportable-cfstrings <<<NONE>>>
-Wnull-arithmetic NullArithmetic
-Wnull-character NullCharacter
-Wnull-dereference NullDereference
-Wobjc-cocoa-api ObjCCocoaAPI
# -Wobjc-redundant-api-use ObjCRedundantAPIUse
# -Wobjc-redundant-literal-use ObjCRedundantLiteralUse
-Wobjc-literal-compare ObjCLiteralComparison
# -Wobjc-string-compare ObjCStringComparison
-Wobjc-literal-missing-atsign ObjCLiteralMissingAtSign
-Wobjc-method-access MethodAccess
-Wobjc-noncopy-retain-block-property ObjCRetainBlockProperty
-Wobjc-nonunified-exceptions ObjCNonUnifiedException
-Wobjc-property-implementation ObjCPropertyImpl
-Wobjc-property-no-attribute ObjCPropertyNoAttribute
-Wobjc-property-synthesis ObjCNoPropertyAutoSynthesis
-Wobjc-protocol-method-implementation ObjCProtocolMethodImpl
-Wobjc-readonly-with-setter-property ObjCReadonlyPropertyHasSetter
-Wobjc-root-class ObjCRootClass
-Wobjc-string-concatenation ObjCStringConcatenation
-Wold-style-cast <<<NONE>>>
-Wold-style-definition <<<NONE>>>
-Wout-of-line-declaration OutOfLineDeclaration
-Wover-aligned OveralignedType
-Woverflow <<<NONE>>>
-Woverlength-strings OverlengthStrings
-Woverriding-method-mismatch OverridingMethodMismatch
-Wpacked Packed
-Wpadded Padded
-Wpedantic Pedantic
-Wpointer-arith PointerArith
-Wpointer-to-int-cast <<<NONE>>>
-Wprotocol Protocol
-Wreadonly-setter-attrs ReadOnlySetterAttrs
-Wreceiver-expr ObjCReceiver
-Wreceiver-forward-class ForwardClassReceiver
-Wredundant-decls <<<NONE>>>
-Wreinterpret-base-class ReinterpretBaseClass
-Wreserved-user-defined-literal ReservedUserDefinedLiteral
# -Wc++11-compat-reserved-user-defined-literal CXX11CompatReservedUserDefinedLiteral
-Wreturn-stack-address ReturnStackAddress
-Wsection Section
-Wselector Selector
# -Wselector-type-mismatch SelectorTypeMismatch
-Wsentinel Sentinel
-Wsequence-point <<<NONE>>>
# -Wunsequenced Unsequenced
-Wshadow Shadow
-Wsign-promo <<<NONE>>>
-Wsizeof-pointer-memaccess SizeofPointerMemaccess
-Wsource-uses-openmp SourceUsesOpenMP
-Wstack-protector <<<NONE>>>
-Wstatic-float-init StaticFloatInit
# -Wgnu-static-float-init GNUStaticFloatInit
-Wstatic-in-inline StaticInInline
-Wstatic-local-in-inline StaticLocalInInline
-Wstrict-aliasing <<<NONE>>>
-Wstrict-aliasing=0 <<<NONE>>>
-Wstrict-aliasing=1 <<<NONE>>>
-Wstrict-aliasing=2 <<<NONE>>>
-Wstrict-overflow <<<NONE>>>
-Wstrict-overflow=0 <<<NONE>>>
-Wstrict-overflow=1 <<<NONE>>>
-Wstrict-overflow=2 <<<NONE>>>
-Wstrict-overflow=3 <<<NONE>>>
-Wstrict-overflow=4 <<<NONE>>>
-Wstrict-overflow=5 <<<NONE>>>
-Wstrict-prototypes <<<NONE>>>
-Wstrict-selector-match StrictSelector
-Wstring-plus-char StringPlusChar
-Wstrncat-size StrncatSize
-Wsuper-class-method-mismatch SuperSubClassMismatch
-Wswitch-default <<<NONE>>>
-Wswitch-enum SwitchEnum
-Wsynth <<<NONE>>>
-Wtautological-compare TautologicalCompare
# -Wtautological-constant-out-of-range-compare TautologicalOutOfRangeCompare
-Wthread-safety ThreadSafety
# -Wthread-safety-analysis ThreadSafetyAnalysis
# -Wthread-safety-attributes ThreadSafetyAttributes
# -Wthread-safety-precise ThreadSafetyPrecise
-Wthread-safety-beta ThreadSafetyBeta
-Wtype-limits <<<NONE>>>
-Wtype-safety TypeSafety
-Wundeclared-selector UndeclaredSelector
-Wundefined-reinterpret-cast UndefinedReinterpretCast
-Wunicode Unicode
-Wunknown-warning-option UnknownWarningOption
-Wunnamed-type-template-args UnnamedTypeTemplateArgs
# -Wc++98-compat-unnamed-type-template-args CXX98CompatUnnamedTypeTemplateArgs
-Wunsupported-friend UnsupportedFriend
-Wunused-command-line-argument UnusedCommandLineArgument
# -Wunused-sanitize-argument UnusedSanitizeArgument
-Wunused-exception-parameter UnusedExceptionParameter
-Wunused-member-function UnusedMemberFunction
# -Wunneeded-member-function UnneededMemberFunction
-Wused-but-marked-unused UsedButMarkedUnused
-Wuser-defined-literals UserDefinedLiterals
-Wvarargs Varargs
-Wvariadic-macros VariadicMacros
-Wvector-conversions <<<NONE>>>
# -Wvector-conversion VectorConversion
-Wvexing-parse VexingParse
-Wvisibility Visibility
-Wvla VLA
-Wwrite-strings GCCWriteStrings
# -Wdeprecated-writable-strings DeprecatedWritableStr
# -Wc++11-compat-deprecated-writable-strings CXX11CompatDeprecatedWritableStr