$OpenBSD: patch-pdfium_third_party_base_logging_h,v 1.1 2018/07/15 23:09:43 shadchin Exp $

Index: pdfium/third_party/base/logging.h
--- pdfium/third_party/base/logging.h.orig
+++ pdfium/third_party/base/logging.h
@@ -10,7 +10,7 @@
 
 #ifndef _WIN32
 #define NULL_DEREF_IF_POSSIBLE \
-  *(reinterpret_cast<volatile char*>(NULL) + 42) = 0x42;
+  *(static_cast<volatile char*>(nullptr) + 42) = 0x42;
 #else
 #define NULL_DEREF_IF_POSSIBLE
 #endif
