On Wed, 22 May 2019 at 15:12, Jonny Grant <jg@xxxxxxxx> wrote: > > Hello > > This is a little test case. It is not real code. > > We used gcc-8 to get some warnings, but on the godbolt trunk gcc doesn't > those warnings with this little test case. Am I missing something > obvious? Is this an issue? > > with gcc-8 only (1) of the (3) occurrences of NULL is warned. Why do you want a warning for use of NULL? https://gcc.gnu.org/r260973 stopped GCC from giving that warning for uses of NULL, because it's not a literal zero.