[PATCH] D159383: [Headers] Remove musl-related comment about NULL

Heejin Ahn via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Tue Sep 5 13:29:50 PDT 2023


This revision was automatically updated to reflect the committed changes.
Closed by commit rG666098c5b3ea: [Headers] Remove musl-related comment about NULL (authored by aheejin).

Repository:
  rG LLVM Github Monorepo

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D159383/new/

https://reviews.llvm.org/D159383

Files:
  clang/lib/Headers/__stddef_null.h


Index: clang/lib/Headers/__stddef_null.h
===================================================================
--- clang/lib/Headers/__stddef_null.h
+++ clang/lib/Headers/__stddef_null.h
@@ -15,9 +15,5 @@
 #define NULL 0
 #endif
 #else
-// Don't add any whitespaces in ((void*)0) below!
-// musl (https://www.musl-libc.org/) redefines `NULL` as such and redefinition
-// with a different expression, even in terms of a single whitespace, causes a
-// warning.
 #define NULL ((void*)0)
 #endif


-------------- next part --------------
A non-text attachment was scrubbed...
Name: D159383.555926.patch
Type: text/x-patch
Size: 491 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20230905/19153efe/attachment.bin>


More information about the cfe-commits mailing list