Merge "Use -Werror in external/selinux"

This commit is contained in:
Treehugger Robot 2017-10-12 22:51:41 +00:00 committed by Gerrit Code Review
commit 7477062939
3 changed files with 8 additions and 1 deletions

View File

@ -21,6 +21,7 @@ cc_binary_host {
cc_binary_host {
name: "dispol",
cflags: common_CFLAGS,
srcs: ["test/dispol.c"],
static_libs: ["libsepol"],
}

View File

@ -9,6 +9,11 @@ common_CFLAGS = [
"-DNO_MEDIA_BACKEND",
"-DNO_X_BACKEND",
"-DNO_DB_BACKEND",
"-Wall",
"-Werror",
"-Wno-error=missing-noreturn",
"-Wno-error=unused-function",
"-Wno-error=unused-variable",
]
cc_defaults {

View File

@ -1,10 +1,11 @@
common_CFLAGS = [
"-D_GNU_SOURCE",
"-Wall",
"-Werror",
"-W",
"-Wundef",
"-Wshadow",
"-Wmissing-noreturn",
"-Wno-error=missing-noreturn",
"-Wmissing-format-attribute",
]