On 13 October 2014 12:57, Daniel Llorens wrote: > > Hello, > > I tried using -Wzero-as-null-pointer-constant in a C++ program, but I got warnings in some C headers, even though they are wrapped in extern "C" blocks. > > Since there is no nullptr in C, wouldn't it make more sense to disable the warning within those blocks? Is there some option that I'm missing? Although it's usually used in headers that need to be valid in both C and C++, extern "C" does not mean you can't use C++ features. extern "C" { void* ptr = nullptr; }