[PATCH] D38186: Add the new -Wnull-pointer-arithmetic warnings to the release notes
Sylvestre Ledru via Phabricator via cfe-commits
cfe-commits at lists.llvm.org
Fri Sep 22 12:41:02 PDT 2017
sylvestre.ledru created this revision.
sylvestre.ledru added a project: clang.
https://reviews.llvm.org/D38186
Files:
ReleaseNotes.rst
Index: ReleaseNotes.rst
===================================================================
--- ReleaseNotes.rst
+++ ReleaseNotes.rst
@@ -78,6 +78,12 @@
when the signed integer is coerced to an unsigned type for the comparison.
``-Wsign-compare`` was adjusted not to warn in this case.
+- ``-Wnull-pointer-arithmetic`` now warns about performing pointer arithmetic
+ on a null pointer. It has an undefined behavior if the offset is nonzero.
+
+- ``-Wnull-pointer-arithmetic`` now warns about arithmetic on a null pointer
+ treated as a cast from integer to pointer (GNU extension).
+
Non-comprehensive list of changes in this release
-------------------------------------------------
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D38186.116388.patch
Type: text/x-patch
Size: 698 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20170922/49eb0c27/attachment.bin>
More information about the cfe-commits
mailing list