alexfh wrote: Just to confirm: is it intended that `char *s = NULL;` now generates this warning? I mean, the C library may define `NULL` as `((void*)0)`, and `char *s = ((void*)0);` is clearly not C++-compatible. However, when compiling this code in C++, `NULL` may expand to something that IS actually okay in C++ (like `__null`). So this warning may be a bit too noisy overall?
https://gcc.godbolt.org/z/hnMfsPjsa https://github.com/llvm/llvm-project/pull/138271 _______________________________________________ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits