commit | bb1ded3e079adf676aedd8c34993d31bbf83974d | [log] [tgz] |
---|---|---|
author | Nick Bray <ncbray@google.com> | Tue May 14 16:31:55 2019 -0700 |
committer | Nick Bray <ncbray@google.com> | Tue May 14 16:39:09 2019 -0700 |
tree | 9f6cb4571e90a5e0dd1af6a0c5dd5f764e852520 | |
parent | db90a7b86c421ff6abb7b89ba83434ecdb090ee1 [diff] |
Define NULL as __nullptr for C++. This is non-standard by a slim technicality - stringifying NULL in a macro can show it is not a zero value. However, Clang's sentinel detection requires than the sentinel value be a pointer type. This means Musl's use of 0L for C++ NULL does not work with -Wsentinel. Since everyone else uses __null, we may as well be wrong with good company. Bug: 110161494 Change-Id: I9079041f276b0da0f6324b6b67966852f140f631