diff options
| author | Chih-Hung Hsieh <chh@google.com> | 2017-10-02 13:59:12 -0700 |
|---|---|---|
| committer | Chih-hung Hsieh <chh@google.com> | 2017-10-20 19:19:00 +0000 |
| commit | 5cf0751390afa26b8fefacbf43541d7d4cffc1a5 (patch) | |
| tree | b23cb5a877f17f7378e6f98ee906e0f55091b52c /drm/libdrmframework | |
| parent | 16f2c1559c5722a6cd69fef3c17dc5756ba73fe6 (diff) | |
| download | frameworks_av-5cf0751390afa26b8fefacbf43541d7d4cffc1a5.tar.gz frameworks_av-5cf0751390afa26b8fefacbf43541d7d4cffc1a5.tar.bz2 frameworks_av-5cf0751390afa26b8fefacbf43541d7d4cffc1a5.zip | |
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
Diffstat (limited to 'drm/libdrmframework')
6 files changed, 13 insertions, 0 deletions
diff --git a/drm/libdrmframework/plugins/common/util/Android.bp b/drm/libdrmframework/plugins/common/util/Android.bp index 0c0b6f26fa..7372eb774e 100644 --- a/drm/libdrmframework/plugins/common/util/Android.bp +++ b/drm/libdrmframework/plugins/common/util/Android.bp @@ -19,5 +19,7 @@ cc_library_static { srcs: ["src/MimeTypeUtil.cpp"], + cflags: ["-Wall", "-Werror"], + export_include_dirs: ["include"], } diff --git a/drm/libdrmframework/plugins/forward-lock/FwdLockEngine/Android.bp b/drm/libdrmframework/plugins/forward-lock/FwdLockEngine/Android.bp index 3f0f5f78e0..28a78aa21a 100644 --- a/drm/libdrmframework/plugins/forward-lock/FwdLockEngine/Android.bp +++ b/drm/libdrmframework/plugins/forward-lock/FwdLockEngine/Android.bp @@ -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"], diff --git a/drm/libdrmframework/plugins/forward-lock/internal-format/common/Android.bp b/drm/libdrmframework/plugins/forward-lock/internal-format/common/Android.bp index 698f278058..3be327ad95 100644 --- a/drm/libdrmframework/plugins/forward-lock/internal-format/common/Android.bp +++ b/drm/libdrmframework/plugins/forward-lock/internal-format/common/Android.bp @@ -19,6 +19,8 @@ cc_library_static { srcs: ["FwdLockGlue.c"], + cflags: ["-Wall", "-Werror"], + shared_libs: ["libcrypto"], export_include_dirs: ["."], diff --git a/drm/libdrmframework/plugins/forward-lock/internal-format/converter/Android.bp b/drm/libdrmframework/plugins/forward-lock/internal-format/converter/Android.bp index 33f2fe0702..d4e04b8218 100644 --- a/drm/libdrmframework/plugins/forward-lock/internal-format/converter/Android.bp +++ b/drm/libdrmframework/plugins/forward-lock/internal-format/converter/Android.bp @@ -19,6 +19,8 @@ cc_library_static { srcs: ["FwdLockConv.c"], + cflags: ["-Wall", "-Werror"], + shared_libs: ["libcrypto"], static_libs: ["libfwdlock-common"], diff --git a/drm/libdrmframework/plugins/forward-lock/internal-format/decoder/Android.bp b/drm/libdrmframework/plugins/forward-lock/internal-format/decoder/Android.bp index b6d7a06e84..0bf2737c6f 100644 --- a/drm/libdrmframework/plugins/forward-lock/internal-format/decoder/Android.bp +++ b/drm/libdrmframework/plugins/forward-lock/internal-format/decoder/Android.bp @@ -19,6 +19,8 @@ cc_library_static { srcs: ["FwdLockFile.c"], + cflags: ["-Wall", "-Werror"], + shared_libs: ["libcrypto"], static_libs: ["libfwdlock-common"], diff --git a/drm/libdrmframework/plugins/passthru/Android.bp b/drm/libdrmframework/plugins/passthru/Android.bp index 1dcf89cc07..05b6440a0b 100644 --- a/drm/libdrmframework/plugins/passthru/Android.bp +++ b/drm/libdrmframework/plugins/passthru/Android.bp @@ -32,5 +32,7 @@ cc_library_shared { cflags: [ // Set the following flag to enable the decryption passthru flow //"-DENABLE_PASSTHRU_DECRYPTION", + "-Wall", + "-Werror", ], } |
