================ @@ -3684,6 +3684,12 @@ def warn_alloca_align_alignof : Warning< "second argument to __builtin_alloca_with_align is supposed to be in bits">, InGroup<DiagGroup<"alloca-with-align-alignof">>; +def warn_alloc_size + : Warning< + "allocation of insufficient size '%0' for type %1 with size '%2'">, + InGroup<DiagGroup<"alloc-size">>, + DefaultIgnore; ---------------- erichkeane wrote:
I think I'd be ok with 'on by default', and if folks complain too much, we can toss it into -Wall/-Wextra as we decide. Do we know WHY GCC decided for -Wextra instead of something more often? Maybe their logic could help us here. There isn't really another group that this fits in that I could find, so its just a top-level warning AFAICT https://github.com/llvm/llvm-project/pull/150028 _______________________________________________ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits