Alejandro Colomar <a...@kernel.org> writes: > For internal C++ code, unconditionally define NULL as nullptr. > We already require a C++11 compiler to bootstrap GCC anyway. > > Link: <https://software.codidact.com/posts/292718> > Signed-off-by: Alejandro Colomar <a...@kernel.org> > --- > libgm2/libm2pim/wrapc.cc | 4 +--- > 1 file changed, 1 insertion(+), 3 deletions(-) > > diff --git a/libgm2/libm2pim/wrapc.cc b/libgm2/libm2pim/wrapc.cc > index 5c31f1e2687..cdd1cf0d0fe 100644 > --- a/libgm2/libm2pim/wrapc.cc > +++ b/libgm2/libm2pim/wrapc.cc > @@ -63,10 +63,8 @@ see the files COPYING3 and COPYING.RUNTIME respectively. > If not, see > #include <fcntl.h> > #endif > > -/* Define a generic NULL if one hasn't already been defined. */ > - > #if !defined(NULL) > -#define NULL 0 > +#define NULL nullptr > #endif > > /* strtime returns the address of a string which describes the
lgtm - thanks!