Skip to content

Commit a8b8c4e

Browse files
committed
chore: compiler flag
1 parent 974bc32 commit a8b8c4e

2 files changed

Lines changed: 5 additions & 6 deletions

File tree

core/CMakeLists.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
cmake_minimum_required(VERSION 3.20)
22
project(epass VERSION 0.2.0 LANGUAGES C)
33
set(CMAKE_C_FLAGS
4-
"${CMAKE_C_FLAGS} -Werror -Wunused-function -Wstrict-prototypes -Wenum-compare -Wunused-variable -Wunused-but-set-variable -Wsign-compare -O3"
4+
"${CMAKE_C_FLAGS} -Werror -Wunused-function -Wstrict-prototypes -Wenum-compare -Wunused-variable -Wunused-but-set-variable -Wsign-compare -O2 -fstack-protector-strong -fno-omit-frame-pointer -fno-strict-aliasing -std=gnu11"
55
)
66

77
set(CMAKE_EXPORT_COMPILE_COMMANDS ON)

core/include/linux/bpf_ir.h

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1124,11 +1124,10 @@ struct ir_value bpf_ir_value_stack_ptr(struct ir_function *fun);
11241124

11251125
struct ir_value bpf_ir_value_r0(struct ir_function *fun);
11261126

1127-
#define VR_POS_STACK_PTR \
1128-
(struct ir_vr_pos) \
1129-
{ \
1130-
.allocated = true, .alloc_reg = BPF_REG_10, .spilled = 0 \
1131-
}
1127+
#define VR_POS_STACK_PTR \
1128+
(struct ir_vr_pos){ .allocated = true, \
1129+
.alloc_reg = BPF_REG_10, \
1130+
.spilled = 0 }
11321131

11331132
struct ir_value bpf_ir_value_norm_stack_ptr(void);
11341133

0 commit comments

Comments
 (0)