[PATCH] D122761: [scudo] Enable more warnings for standalone build
Dominic Chen via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Wed Dec 14 10:30:08 PST 2022
This revision was automatically updated to reflect the committed changes.
Closed by commit rG3d3bc72c0454: [scudo] Reland: Fix and enable more warnings for standalone build (authored by ddcc).
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D122761/new/
https://reviews.llvm.org/D122761
Files:
compiler-rt/lib/scudo/standalone/CMakeLists.txt
compiler-rt/lib/scudo/standalone/common.h
Index: compiler-rt/lib/scudo/standalone/common.h
===================================================================
--- compiler-rt/lib/scudo/standalone/common.h
+++ compiler-rt/lib/scudo/standalone/common.h
@@ -101,7 +101,7 @@
// Hardware specific inlinable functions.
-inline void yieldProcessor(u8 Count) {
+inline void yieldProcessor(UNUSED u8 Count) {
#if defined(__i386__) || defined(__x86_64__)
__asm__ __volatile__("" ::: "memory");
for (u8 I = 0; I < Count; I++)
Index: compiler-rt/lib/scudo/standalone/CMakeLists.txt
===================================================================
--- compiler-rt/lib/scudo/standalone/CMakeLists.txt
+++ compiler-rt/lib/scudo/standalone/CMakeLists.txt
@@ -7,6 +7,8 @@
list(APPEND SCUDO_CFLAGS
-Werror=conversion
-Wall
+ -Wextra
+ -pedantic
-g
-nostdinc++)
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D122761.482926.patch
Type: text/x-patch
Size: 833 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20221214/4c821dbe/attachment.bin>
More information about the llvm-commits
mailing list