<table border="1" cellspacing="0" cellpadding="8">
<tr>
<th>Issue</th>
<td>
<a href=https://github.com/llvm/llvm-project/issues/60956>60956</a>
</td>
</tr>
<tr>
<th>Summary</th>
<td>
`-Wpointer-bool-conversion` not reported in macro
</td>
</tr>
<tr>
<th>Labels</th>
<td>
new issue
</td>
</tr>
<tr>
<th>Assignees</th>
<td>
</td>
</tr>
<tr>
<th>Reporter</th>
<td>
firewave
</td>
</tr>
</table>
<pre>
```cpp
#define cb(...) cb_(__VA_ARGS__)
#define cb2(x) cb_(x)
void cb_(bool);
int main() {
int i;
cb_(&i); // warning
cb(&i); // no warning
cb2(&i);
}
```
```
<source>:6:8: warning: address of 'i' will always evaluate to 'true' [-Wpointer-bool-conversion]
cb_(&i);
~~~ ^
```
https://godbolt.org/z/3GovP6r3n
</pre>
<img width="1px" height="1px" alt="" src="http://email.email.llvm.org/o/eJx8kkFv2zwMhn8NfRFiKFRsywcf3C91rx82YDsGssUkGhQpkGSn3aG_fXDiNkO3DjAsgXxIvnpBFaM5OKIGigcotpka09GHZm8CXdREWe_1SwMlv33D-Qx8C7wFFJr2xhEbekCZ5zlgzYZ-Byh3u2_trv3y9HW3A6z_5BFQPt_x53do8kYvwd57O8fFw1J__RuX2EkZByjneqiWLGNzxrzTbOkCWJpbFwbYAXbsooIz7nDH_ko5_wG8ib6Di6hqu1ze_Pld7Meg-C_6MQwE4hFEW4JoJYj2fZBomdI6UIzM7xlgZQArdjHWMmUv6iUympQdVSKW_JxPYaQZgeJh9f3sjUsUVrNvq8G7iUI03kGx_cyRt_jr6yuD4vEfDzmmdI4g2ps5B697b1PuwwGw-wnYiSc__V8G4TLdCF2LWmXUrMuqWlelkDI7NnuSw14JjrxEkvWgpFbINxzX9VARFZlpkKPgiGIt1_VG5rLsK61pX1JV1JIL2HA6KWNza6fTPDszMY7UlLwuysyqnmy8rjCiowu7JgFx3ujQzDWrfjxE2HBrYor3LskkS_N-f25hyZnziQU6-5BIM-PYSQ3BZ2OwzQdvTDqOfT74E2A3z1iO1Tn4HzQkwO6qLAJ2V-W_AgAA__9c9v8g">