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(
24
24
25
25
# Compile options
26
26
target_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
28
28
)
29
29
30
30
# 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(
186
186
187
187
const executorch_flatbuffer::Program* _get_program_from_buffer (
188
188
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
+
189
194
return executorch_flatbuffer::GetProgram (
190
195
buffer.cast <std::string_view>().data ());
191
196
}
You can’t perform that action at this time.
0 commit comments