File tree Expand file tree Collapse file tree 2 files changed +6
-1
lines changed Expand file tree Collapse file tree 2 files changed +6
-1
lines changed Original file line number Diff line number Diff line change @@ -24,7 +24,7 @@ target_include_directories(
2424
2525# Compile options
2626target_compile_options (
27- selective_build PUBLIC -Wno-deprecated-declarations -fPIC -frtti -fexceptions
27+ selective_build PUBLIC -Wno-deprecated-declarations -fPIC -frtti -fexceptions -Werror -Wunused- variable
2828)
2929
3030# Link against required libraries
Original file line number Diff line number Diff line change @@ -186,6 +186,11 @@ get_kernel_tensor_metadatas_from_execution_plan(
186186
187187const executorch_flatbuffer::Program* _get_program_from_buffer (
188188 const py::bytes& buffer) {
189+
190+ // TEST CODE to trigger CI failure
191+ const std::string_view sv = buffer.cast <std::string_view>();
192+ void * buf_ptr = const_cast <void *>(static_cast <const void *>(sv.data ()));
193+
189194 return executorch_flatbuffer::GetProgram (
190195 buffer.cast <std::string_view>().data ());
191196}
You can’t perform that action at this time.
0 commit comments