sbc100 wrote:

I confirmed the LLVM builds these files with `-Wno-unused-parameter`.   For 
example here is the command line to build `UnwindLevel1.c` on my system:

```
[16/21] /usr/local/google/home/sbc/dev/wasm/llvm-build/bin/clang 
--target=x86_64-unknown-linux-gnu -D_DEBUG -D_GLIBCXX_ASSERTIONS 
-D_LIBCPP_HAS_NO_PRAGMA_SYSTEM_HEADER -D_LIBUNWIND_LINK_DL_LIB 
-D_LIBUNWIND_LINK_PTHREAD_LIB -D__STDC_CONSTANT_MACROS -D__STDC_FORMAT_MACROS 
-D__STDC_LIMIT_MACROS 
-I/usr/local/google/home/sbc/dev/wasm/llvm-project/libunwind/include -fPIC 
-fno-semantic-interposition -Werror=date-time 
-Werror=unguarded-availability-new -Wall -Wextra -Wno-unused-parameter 
-Wwrite-strings -Wcast-qual -Wmissing-field-initializers -Wimplicit-fallthrough 
-Wcovered-switch-default -Wstring-conversion -Wmisleading-indentation 
-Wctad-maybe-unsupported -fdiagnostics-color -ffunction-sections 
-fdata-sections -O3 -DNDEBUG -Werror=return-type -funwind-tables -nostdinc++ 
-D_DEBUG -UNDEBUG -D_LIBUNWIND_IS_NATIVE_ONLY -UNDEBUG -Wall -Wextra 
-Wnewline-eof -Wshadow -Wwrite-strings -Wno-unused-parameter -Wno-long-long 
-Werror=return-type -Wextra-semi -Wundef -Wunused-template -Wformat-nonliteral 
-Wzero-length-array -Wdeprecated-redundant-constexpr-static-def 
-Wno-nullability-completeness -Wmissing-prototypes -Wno-user-defined-literals 
-Wno-covered-switch-default -Wno-suggest-override -Wno-error -pedantic 
-fno-rtti -std=c99 -fexceptions -MD -MT 
libunwind/src/CMakeFiles/unwind_static_objects.dir/UnwindLevel1.c.o -MF 
libunwind/src/CMakeFiles/unwind_static_objects.dir/UnwindLevel1.c.o.d -o 
libunwind/src/CMakeFiles/unwind_static_objects.dir/UnwindLevel1.c.o -c 
/usr/local/google/home/sbc/dev/wasm/llvm-project/libunwind/src/UnwindLevel1.c
```

@georgthegreat I suggest you update your downstream build system to match the 
llvm flags, otherwise you will likely run into more issues like that.

https://github.com/llvm/llvm-project/pull/125412
_______________________________________________
cfe-commits mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

Reply via email to