Skip to content

Commit 093e6dd

Browse files
committed
bazel: suppress unused parameter warnings in liburing build
1 parent 07bb45a commit 093e6dd

1 file changed

Lines changed: 11 additions & 3 deletions

File tree

bazel/thirdparty/liburing.patch

Lines changed: 11 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
+ # exposed by bazel, system ld gets used, which can't
1212
+ # resolve sysroot linker scripts in the sandbox.
1313
+ export LDFLAGS="-c"
14-
14+
1515
- # switch to the package dir to execute "configure" right there
1616
- pushd $$(dirname $(location configure))
1717
- mkdir -p src/include/liburing
@@ -27,7 +27,7 @@
2727
+ ln -sf $$pkg_dir/liburing.spec liburing.spec
2828
+ mkdir -p src/include/liburing
2929
+ $$pkg_dir/configure --use-libc
30-
30+
3131
# collect the outputs
3232
for out in $(OUTS); do
3333
- cp $$(realpath --relative-to=$(BINDIR) $$out) $$out
@@ -41,4 +41,12 @@
4141
+ ],
4242
tools = ["configure"],
4343
)
44-
44+
45+
@@ -76,6 +89,7 @@
46+
"-Wall",
47+
"-Wextra",
48+
"-fno-stack-protector",
49+
+ "-Wno-unused-parameter",
50+
"-include config-host.h",
51+
],
52+
includes = ["src/include"],

0 commit comments

Comments
 (0)