]> git.baikalelectronics.ru Git - kernel.git/commit
libbpf: Compile libbpf under -O2 level by default and catch extra warnings
authorAndrii Nakryiko <andriin@fb.com>
Tue, 29 Sep 2020 22:06:03 +0000 (15:06 -0700)
committerAlexei Starovoitov <ast@kernel.org>
Wed, 30 Sep 2020 00:05:31 +0000 (17:05 -0700)
commit03b19ff9c7bac9e5c91ea9cbbd07101b01b289e6
treef00b382d32e443e7f1c43ad71f3ce90c23d83200
parentefcf9ddb1c8a58cd33cd8bd0cdb7bc2164c33505
libbpf: Compile libbpf under -O2 level by default and catch extra warnings

For some reason compiler doesn't complain about uninitialized variable, fixed
in previous patch, if libbpf is compiled without -O2 optimization level. So do
compile it with -O2 and never let similar issue slip by again. -Wall is added
unconditionally, so no need to specify it again.

Signed-off-by: Andrii Nakryiko <andriin@fb.com>
Signed-off-by: Alexei Starovoitov <ast@kernel.org>
Acked-by: Martin KaFai Lau <kafai@fb.com>
Link: https://lore.kernel.org/bpf/20200929220604.833631-2-andriin@fb.com
tools/lib/bpf/Makefile