Issue 125184
Summary Suppress "unknown attribute 'no_unique_address' ignored" with MSVC ABI
Labels
Assignees
Reporter bebuch
    MSVC introduced `[[msvc::no_unique_address]]` to workaround ABI break with `[[no_unique_address]]`. For portability you have to use both.

`clang-cl` gives me the warning:

```
unknown attribute 'no_unique_address' ignored [-Wunknown-attributes]
```

I don't want to suppress warnings for all unknown attributes. But I want to suppress this one, at least if `[[msvc::no_unique_address]]` is defined as well.

I propose to add a compiler flag to suppress warnings for specific attributes.

I also propose to silently ignore `[[no_unique_address]]` if `[[msvc::no_unique_address]]` is defined as well.
_______________________________________________
llvm-bugs mailing list
llvm-bugs@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-bugs

Reply via email to