[Sema] Expose a control flag for integer to pointer ext warning
authorKristina Brooks <kristina@nym.hush.com>
Mon, 14 Jan 2019 18:16:51 +0000 (18:16 +0000)
committerKristina Brooks <kristina@nym.hush.com>
Mon, 14 Jan 2019 18:16:51 +0000 (18:16 +0000)
commit4c73404809174f27672d3f49de9224ac47904ba5
treeb825b164f079879732d876b7b4d46566a2bc55df
parentc34f022bfed27bb608d784f1062709bbed5b710d
[Sema] Expose a control flag for integer to pointer ext warning

While building openJDK11u, it seems that some of the code in the
native core libraries make liberal use of integer to pointer
comparisons. We currently have no flag to disabled this warning.
This add such a flag.

Patch by Kader (abdoul-kader keita)

Differential Revision: https://reviews.llvm.org/D56241

llvm-svn: 351082
clang/include/clang/Basic/DiagnosticSemaKinds.td
clang/test/Misc/warning-flags.c
clang/test/Sema/ext-typecheck-comparison-of-pointer-integer.c [new file with mode: 0644]