Use -Werror in device/google/wahoo am: 7d0bdbefcd

am: 3d6511ce09

Change-Id: I56ba4e810219bb3ea1c58d84cb032deb90bb03b6
This commit is contained in:
Chih-Hung Hsieh
2017-11-06 19:22:31 +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

@@ -380,8 +380,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() {