Skip to content

Commit

Permalink
ebpf: loosen warnings while compiling generated file
Browse files Browse the repository at this point in the history
Signed-off-by: Attila Szakacs <[email protected]>
  • Loading branch information
alltilla committed Mar 17, 2023
1 parent 41cbc2d commit f62d606
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions modules/ebpf/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ add_custom_command(OUTPUT random.kern.o
COMMAND ${BPF_CC} ${BPF_CFLAGS} -c ${CMAKE_CURRENT_SOURCE_DIR}/random.kern.c -o random.kern.o
DEPENDS random.kern.c vmlinux.h)

set_source_files_properties(${CMAKE_CURRENT_BINARY_DIR}/random.skel.c PROPERTIES COMPILE_FLAGS "${CMAKE_C_FLAGS} -Wno-unused-function")

set(EBPF_SOURCES
ebpf-parser.h
Expand Down

0 comments on commit f62d606

Please sign in to comment.