Skip to content

Commit

Permalink
libbpf-tools: Add flag -Werror=undef
Browse files Browse the repository at this point in the history
  • Loading branch information
ShawnZhong authored and yonghong-song committed Sep 3, 2024
1 parent f15e219 commit aeed9e2
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions libbpf-tools/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,8 @@ LIBBPF_SRC := $(abspath ../src/cc/libbpf/src)
LIBBPF_OBJ := $(abspath $(OUTPUT)/libbpf.a)
LIBBLAZESYM_SRC := $(abspath blazesym/target/release/libblazesym.a)
INCLUDES := -I$(OUTPUT) -I../src/cc/libbpf/include/uapi
CFLAGS := -g -O2 -Wall -Wmissing-field-initializers -Werror
BPFCFLAGS := -g -O2 -Wall
CFLAGS := -g -O2 -Wall -Wmissing-field-initializers -Werror -Werror=undef
BPFCFLAGS := -g -O2 -Wall -Werror=undef
INSTALL ?= install
prefix ?= /usr/local
bindir := $(prefix)/bin
Expand Down
2 changes: 1 addition & 1 deletion libbpf-tools/memleak.c
Original file line number Diff line number Diff line change
Expand Up @@ -685,7 +685,7 @@ pid_t fork_sync_exec(const char *command, int fd)
return pid;
}

#if USE_BLAZESYM
#ifdef USE_BLAZESYM
void print_stack_frame_by_blazesym(size_t frame, uint64_t addr, const blazesym_csym *sym)
{
if (!sym)
Expand Down

0 comments on commit aeed9e2

Please sign in to comment.