Use -Werror in device/google/wahoo

am: 7d0bdbefcd

Change-Id: Ifb7e67027206bbc578453a869a6fcc1987caa902
This commit is contained in:
Chih-Hung Hsieh
2017-11-06 19:20:22 +00:00
committed by android-build-merger
4 changed files with 9 additions and 5 deletions

View File

@@ -17,6 +17,10 @@ cc_binary {
relative_install_path: "hw",
init_rc: ["android.hardware.usb@1.1-service.wahoo.rc"],
srcs: ["service.cpp", "Usb.cpp"],
cflags: [
"-Wall",
"-Werror",
],
shared_libs: [
"libbase",
"libhidlbase",

View File

@@ -357,8 +357,6 @@ Status getTypeCPortNamesHelper(std::unordered_map<std::string, bool> *names) {
dp = opendir("/sys/class/typec");
if (dp != NULL) {
int32_t ports = 0;
int32_t current = 0;
struct dirent *ep;
while ((ep = readdir(dp))) {

View File

@@ -17,6 +17,10 @@ cc_binary {
relative_install_path: "hw",
init_rc: ["android.hardware.vibrator@1.1-service.wahoo.rc"],
srcs: ["service.cpp", "Vibrator.cpp"],
cflags: [
"-Wall",
"-Werror",
],
shared_libs: [
"libhidlbase",
"libcutils",

View File

@@ -193,9 +193,7 @@ status_t registerVibratorService() {
std::move(state), std::move(rtpinput), std::move(mode),
std::move(sequencer), std::move(scale), std::move(ctrlloop), std::move(lptrigger));
vibrator->registerAsService();
return OK;
return vibrator->registerAsService();
}
int main() {