Index: clang/include/clang/Basic/DiagnosticGroups.td =================================================================== --- clang/include/clang/Basic/DiagnosticGroups.td +++ clang/include/clang/Basic/DiagnosticGroups.td @@ -110,6 +110,7 @@ FloatZeroConversion]>; def FrameAddress : DiagGroup<"frame-address">; +def FreeNonHeapObject : DiagGroup<"free-nonheap-object">; def DoublePromotion : DiagGroup<"double-promotion">; def EnumTooLarge : DiagGroup<"enum-too-large">; def UnsupportedNan : DiagGroup<"unsupported-nan">; @@ -907,6 +908,7 @@ Format, ForLoopAnalysis, FrameAddress, + FreeNonHeapObject, Implicit, InfiniteRecursion, IntInBoolContext, Index: clang/include/clang/Basic/DiagnosticSemaKinds.td =================================================================== --- clang/include/clang/Basic/DiagnosticSemaKinds.td +++ clang/include/clang/Basic/DiagnosticSemaKinds.td @@ -7604,7 +7604,7 @@ def err_no_dynamic_cast_with_fno_rtti : Error< "use of dynamic_cast requires -frtti">; def warn_no_dynamic_cast_with_rtti_disabled: Warning< - "dynamic_cast will not work since RTTI data is disabled by " + "dynamic_cast will not work since RTTI data is disabled by " "%select{-fno-rtti-data|/GR-}0">, InGroup; def warn_no_typeid_with_rtti_disabled: Warning< "typeid will not work since RTTI data is disabled by " @@ -7620,8 +7620,8 @@ InGroup; def warn_free_nonheap_object : Warning<"attempt to call %0 on non-heap object %1">, - InGroup>, - DefaultIgnore; // FIXME: add to -Wall after sufficient testing + InGroup, + DefaultIgnore; // Completely identical except off by default. def warn_condition_is_idiomatic_assignment : Warning<"using the result " Index: clang/test/Misc/warning-wall.c =================================================================== --- clang/test/Misc/warning-wall.c +++ clang/test/Misc/warning-wall.c @@ -18,6 +18,7 @@ CHECK-NEXT: -Wformat-insufficient-args CHECK-NEXT: -Wfor-loop-analysis CHECK-NEXT: -Wframe-address +CHECK-NEXT: -Wfree-nonheap-object CHECK-NEXT: -Wimplicit CHECK-NEXT: -Wimplicit-function-declaration CHECK-NEXT: -Wimplicit-int