[clang] [clang] Ignore GCC 11 `[[malloc(x)]]` attribute (PR #68059)
Alois Klink via cfe-commits
cfe-commits at lists.llvm.org
Wed Nov 1 13:29:41 PDT 2023
================
@@ -177,6 +177,10 @@ def warn_unknown_attribute_ignored : Warning<
"unknown attribute %0 ignored">, InGroup<UnknownAttributes>;
def warn_attribute_ignored : Warning<"%0 attribute ignored">,
InGroup<IgnoredAttributes>;
+def warn_multiarg_malloc_attribute_ignored: Warning<
+ "'malloc' attribute ignored because"
+ " Clang does not support the one/two argument form">,
+ InGroup<IgnoredAttributes>;
----------------
aloisklink wrote:
Fixed in 02a153d9be1007b9603bcd14bf3f80d4bf900806, although I've very slightly changed the wording to match other warnings by using `because` instead of the `;`.
I've also added a couple of other error diagnostics in other commit, so please let me know if you think it's worth generalizing them too.
https://github.com/llvm/llvm-project/pull/68059
More information about the cfe-commits
mailing list