[PATCH] D71783: gn build: Silence mismatched-new-delete warning in scudo C++ wrapper tests.
Peter Collingbourne via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Fri Dec 20 13:25:55 PST 2019
pcc created this revision.
pcc added a reviewer: thakis.
Herald added a project: LLVM.
These tests are deliberately mismatching new and delete, so the warnings
are just noise.
Repository:
rG LLVM Github Monorepo
https://reviews.llvm.org/D71783
Files:
llvm/utils/gn/secondary/compiler-rt/lib/scudo/standalone/tests/BUILD.gn
Index: llvm/utils/gn/secondary/compiler-rt/lib/scudo/standalone/tests/BUILD.gn
===================================================================
--- llvm/utils/gn/secondary/compiler-rt/lib/scudo/standalone/tests/BUILD.gn
+++ llvm/utils/gn/secondary/compiler-rt/lib/scudo/standalone/tests/BUILD.gn
@@ -1,3 +1,4 @@
+import("//llvm/utils/gn/build/toolchain/compiler.gni")
import("//llvm/utils/unittest/unittest.gni")
unittest("ScudoUnitTest") {
@@ -54,5 +55,8 @@
"scudo_unit_test_main.cpp",
"wrappers_cpp_test.cpp",
]
+ if (is_clang) {
+ cflags = [ "-Wno-mismatched-new-delete" ]
+ }
has_custom_main = true
}
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D71783.234964.patch
Type: text/x-patch
Size: 634 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20191220/af0db265/attachment.bin>
More information about the llvm-commits
mailing list