Use -Werror in frameworks/av

* Suppress unused-variable warnings.

Bug: 66996870
Test: build with WITH_TIDY=1
Exempt-From-Owner-Approval: already had multiple +2 votes
Change-Id: I985f9328684df501b5934a5c01f783ed7ca5aa0c
gugelfrei
Chih-Hung Hsieh 7 years ago committed by Chih-hung Hsieh
parent 16f2c1559c
commit 5cf0751390

@ -33,6 +33,8 @@ cc_library_static {
"ReadWriteUtils.cpp",
],
cflags: ["-Wall", "-Werror"],
static_libs: ["libbinder"],
export_include_dirs: ["include"],

@ -19,5 +19,7 @@ cc_library_static {
srcs: ["src/MimeTypeUtil.cpp"],
cflags: ["-Wall", "-Werror"],
export_include_dirs: ["include"],
}

@ -21,6 +21,9 @@ cc_library_shared {
"-DUSE_64BIT_DRM_API",
// The flag below turns on local debug printouts
//"-DDRM_OMA_FL_ENGINE_DEBUG",
"-Wall",
"-Werror",
"-Wno-unused-variable",
],
srcs: ["src/FwdLockEngine.cpp"],

@ -19,6 +19,8 @@ cc_library_static {
srcs: ["FwdLockGlue.c"],
cflags: ["-Wall", "-Werror"],
shared_libs: ["libcrypto"],
export_include_dirs: ["."],

@ -19,6 +19,8 @@ cc_library_static {
srcs: ["FwdLockConv.c"],
cflags: ["-Wall", "-Werror"],
shared_libs: ["libcrypto"],
static_libs: ["libfwdlock-common"],

@ -19,6 +19,8 @@ cc_library_static {
srcs: ["FwdLockFile.c"],
cflags: ["-Wall", "-Werror"],
shared_libs: ["libcrypto"],
static_libs: ["libfwdlock-common"],

@ -32,5 +32,7 @@ cc_library_shared {
cflags: [
// Set the following flag to enable the decryption passthru flow
//"-DENABLE_PASSTHRU_DECRYPTION",
"-Wall",
"-Werror",
],
}

@ -35,6 +35,8 @@ cc_library_shared {
vendor: true,
relative_install_path: "mediadrm",
cflags: ["-Wall", "-Werror"],
shared_libs: [
"libcrypto",
"liblog",

@ -21,6 +21,8 @@ cc_test {
name: "ClearKeyDrmUnitTest",
vendor: true,
cflags: ["-Wall", "-Werror"],
srcs: [
"AesCtrDecryptorUnittest.cpp",
"InitDataParserUnittest.cpp",

@ -30,5 +30,7 @@ cc_library_shared {
cflags: [
// Set the following flag to enable the decryption passthru flow
//"-DENABLE_PASSTHRU_DECRYPTION",
"-Wall",
"-Werror",
],
}

@ -105,6 +105,8 @@ cc_test {
srcs: ["test/amrnbdec_test.cpp"],
cflags: ["-Wall", "-Werror"],
local_include_dirs: ["src"],
static_libs: [

@ -120,6 +120,8 @@ cc_test {
srcs: ["test/amrnb_enc_test.cpp"],
cflags: ["-Wall", "-Werror"],
local_include_dirs: ["src"],
static_libs: ["libstagefright_amrnbenc"],

@ -68,6 +68,8 @@ cc_test {
srcs: ["test/amrwbdec_test.cpp"],
cflags: ["-Wall", "-Werror"],
static_libs: [
"libstagefright_amrwbdec",
"libsndfile",

@ -4,6 +4,8 @@ cc_test {
srcs: ["AMRWB_E_SAMPLE.c"],
cflags: ["-Wall", "-Werror"],
arch: {
arm: {
instruction_set: "arm",

@ -4,6 +4,12 @@ cc_library_shared {
static_libs: ["libavcdec"],
srcs: ["SoftAVCDec.cpp"],
cflags: [
"-Wall",
"-Werror",
"-Wno-unused-variable",
],
include_dirs: [
"external/libavc/decoder",
"external/libavc/common",

@ -29,5 +29,10 @@ cc_library_shared {
},
},
cflags: [
"-Wall",
"-Werror",
"-Wno-unused-variable",
],
ldflags: ["-Wl,-Bsymbolic"],
}

@ -4,6 +4,12 @@ cc_library_shared {
static_libs: ["libhevcdec"],
srcs: ["SoftHEVC.cpp"],
cflags: [
"-Wall",
"-Werror",
"-Wno-unused-variable",
],
include_dirs: [
"external/libhevc/decoder",
"external/libhevc/common",

@ -106,6 +106,8 @@ cc_test {
"-DOSCL_EXPORT_REF=",
"-DOSCL_IMPORT_REF=",
"-DBX_RC",
"-Wall",
"-Werror",
],
sanitize: {

@ -122,6 +122,8 @@ cc_test {
"test/mp3reader.cpp",
],
cflags: ["-Wall", "-Werror"],
local_include_dirs: [
"src",
"include",

@ -4,6 +4,12 @@ cc_library_shared {
static_libs: ["libmpeg2dec"],
srcs: ["SoftMPEG2.cpp"],
cflags: [
"-Wall",
"-Werror",
"-Wno-unused-variable",
],
include_dirs: [
"external/libmpeg2/decoder",
"external/libmpeg2/common",

@ -7,6 +7,8 @@ cc_library_shared {
"SoftVP9Encoder.cpp",
],
cflags: ["-Wall", "-Werror"],
include_dirs: [
"frameworks/av/media/libstagefright/include",
"frameworks/native/include/media/openmax",

@ -96,6 +96,8 @@ cc_library_shared {
},
},
cflags: ["-Wall", "-Werror"],
include_dirs: [
"frameworks/av/media/libstagefright/include",
"frameworks/native/include/media/openmax",
@ -133,5 +135,7 @@ cc_binary {
srcs: ["source/DecTestBench.c"],
cflags: ["-Wall", "-Werror"],
shared_libs: ["libstagefright_soft_h264dec"],
}

@ -17,6 +17,8 @@ cc_library_shared {
"liblog",
],
cflags: ["-Werror"],
sanitize: {
misc_undefined: [
"signed-integer-overflow",

@ -99,6 +99,7 @@ cc_library_static {
cfi: true,
},
},
cflags: ["-Wall", "-Werror"],
}
//###############################################################################

Loading…
Cancel
Save