From 66d036e3e1daadd478427bb4edd66b5e3b2ba312 Mon Sep 17 00:00:00 2001 From: Chih-Hung Hsieh Date: Fri, 29 Sep 2017 10:45:56 -0700 Subject: Use -Werror in external/scrypt * Use -Wno-error= to Keep existing warnings to fix later. Bug: 66996870 Test: build with WITH_TIDY=1 Change-Id: I8b9847aaceaa223b34391ac94ac35924af9caccc --- Android.bp | 1 + sources.bp | 4 ++++ 2 files changed, 5 insertions(+) diff --git a/Android.bp b/Android.bp index ef9b8a0..34c0718 100644 --- a/Android.bp +++ b/Android.bp @@ -28,6 +28,7 @@ cc_library_static { cc_test { name: "scrypt_test", srcs: ["tests/scrypt_test.cpp"], + cflags: ["-Wall", "-Werror"], shared_libs: ["libcrypto"], static_libs: ["libscrypt_static"], } diff --git a/sources.bp b/sources.bp index a2ba3f4..8c7f886 100644 --- a/sources.bp +++ b/sources.bp @@ -25,6 +25,10 @@ cc_defaults { cflags: [ "-DHAVE_CONFIG_H", "-DUSE_OPENSSL_PBKDF2", + "-Wall", + "-Werror", + "-Wno-error=implicit-function-declaration", + "-Wno-error=unused-variable", ], export_include_dirs: [ -- cgit v1.2.3