Re: [PATCH v5] c: add Wzero-as-null-pointer-constant [PR117059]

2024-11-12 Thread Joseph Myers
On Tue, 12 Nov 2024, Martin Uecker wrote: > Added tests with some non-NPC pointers converted to bool. This version is OK. -- Joseph S. Myers josmy...@redhat.com

[PATCH v5] c: add Wzero-as-null-pointer-constant [PR117059]

2024-11-11 Thread Martin Uecker
Added tests with some non-NPC pointers converted to bool. (BTW: For some reason we allowed 0 == nullptr but not x ? 0 : nullptr in ISO C.) Bootstrapped and regression tested on x86_64. commit 5a29c43cca6fa5f50ad8266c5969a9420ef2488e Author: Martin Uecker Date: Sat Nov 9 10:48:52 2024 +0100