From 7e09d5ac4334767b3dfc08d0a29da4815f90e4c6 Mon Sep 17 00:00:00 2001 From: Chih-Hung Hsieh Date: Thu, 26 Oct 2017 10:04:42 -0700 Subject: Use -Werror in external/webrtc * Suppress existing missing-braces warning. Bug: 66996870 Test: build with WITH_TIDY=1 Change-Id: I56af504b26843d0c9e6a56699f30996d8a1b74b8 --- Android.bp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/Android.bp b/Android.bp index b519445c89..48ff6074ed 100644 --- a/Android.bp +++ b/Android.bp @@ -25,8 +25,11 @@ cc_defaults { // "-DNETEQ_VOICEENGINE_CODECS", // [module audio_coding neteq] // "-DWEBRTC_MODULE_UTILITY_VIDEO", // [module media_file] [module utility] + "-Wall", + "-Werror", // The following warnings are disabled in most webrtc modules, // until we upgrade to newer cleaner upstream webrtc. + "-Wno-missing-braces", "-Wno-missing-field-initializers", "-Wno-unused-parameter", ], -- cgit v1.2.3