<table border="1" cellspacing="0" cellpadding="8">
<tr>
<th>Issue</th>
<td>
<a href=https://github.com/llvm/llvm-project/issues/125184>125184</a>
</td>
</tr>
<tr>
<th>Summary</th>
<td>
Suppress "unknown attribute 'no_unique_address' ignored" with MSVC ABI
</td>
</tr>
<tr>
<th>Labels</th>
<td>
</td>
</tr>
<tr>
<th>Assignees</th>
<td>
</td>
</tr>
<tr>
<th>Reporter</th>
<td>
bebuch
</td>
</tr>
</table>
<pre>
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.
</pre>
<img width="1" height="1" alt="" src="http://email.email.llvm.org/o/eJysU82K4zwQfBr50sTY8m8OPjgzBHL4TgPfHgdZatvaUSSvWkrI2y_OJjuzhIEdWGjQpau6qtQtiPRkETtW7Vj1nIgYZue7AYco52Rw6tL99_L_E2gbvFNRogJWZ9fm3ZFOkhU9K3rrXqPVPyK-CqU8ErHqea06g-Dg7Pyb8C5aBf3uAINH8QZnHeZ3qs8JUtg7D4vzQQza6HCBi4swixOu1JEQBhfmlGX9WnUmjbDTRpp19qRPSHBECDPCWXir7bQKvvfeKuujfbPubEGE4PUQAwLjzaMm3oCerPNrCNVu8-0G2_yGXWX_Sc2y_gDKWcabAGdhwyqb4rKsjHdRBKPzIIyBByWUwi4GODxiw6wJnEXGn0AEMCgogB6_-D-aQOGoLSoQBGc0Jr2rXrxbHF1zFkqBAOmOizboYTRi-twHLSj1qOVHE3dOYch9JCZt0AZzuQX7NxvxTzwmqivUttiKBLu8Kdoiz5uySuauEKIaxmrkW8XbosibsczbFvl2lPVYlzzRHc94leVFnrWc8ypt66xUeVbLRg28biQrMzwKbVJjTsfU-SnRRBG7nFd5WyZGDGjofm--W7s2Q5yIlZnRFOgdF3Qw2L3cQ2acf3lRGee_Tu16xf3ukERvujmEhdbY-J7x_aTDHIdUuiPj-3X47dks3n1HGRjfXx0Q4_ubiVPHfwYAAP__0ihh_w">