lmkd: Enable stricter compiler checks

Enable -Wall and -Wextra compiler flags to catch compilation warnings.

Signed-off-by: Suren Baghdasaryan <surenb@google.com>
Change-Id: Ia802dbd7abb167d66b76390e269e4a4418ca5def
This commit is contained in:
Suren Baghdasaryan 2020-05-11 16:34:52 -07:00
parent ed715a3424
commit e538ba2df6
1 changed files with 7 additions and 1 deletions

View File

@ -27,7 +27,12 @@ cc_binary {
"liblmkd_utils",
],
local_include_dirs: ["include"],
cflags: ["-Werror", "-DLMKD_TRACE_KILLS"],
cflags: [
"-Wall",
"-Werror",
"-Wextra",
"-DLMKD_TRACE_KILLS"
],
init_rc: ["lmkd.rc"],
defaults: ["stats_defaults"],
logtags: ["event.logtags"],
@ -39,6 +44,7 @@ cc_library_static {
cflags: [
"-Wall",
"-Werror",
"-Wextra",
],
defaults: ["stats_defaults"],
shared_libs: [