mirror of
https://github.com/Evolution-X-Devices/device_google_wahoo
synced 2026-01-28 13:18:23 +00:00
Use -Werror in device/google/wahoo
am: 7d0bdbefcd
Change-Id: Ifb7e67027206bbc578453a869a6fcc1987caa902
This commit is contained in:
@@ -17,6 +17,10 @@ cc_binary {
|
|||||||
relative_install_path: "hw",
|
relative_install_path: "hw",
|
||||||
init_rc: ["android.hardware.usb@1.1-service.wahoo.rc"],
|
init_rc: ["android.hardware.usb@1.1-service.wahoo.rc"],
|
||||||
srcs: ["service.cpp", "Usb.cpp"],
|
srcs: ["service.cpp", "Usb.cpp"],
|
||||||
|
cflags: [
|
||||||
|
"-Wall",
|
||||||
|
"-Werror",
|
||||||
|
],
|
||||||
shared_libs: [
|
shared_libs: [
|
||||||
"libbase",
|
"libbase",
|
||||||
"libhidlbase",
|
"libhidlbase",
|
||||||
|
|||||||
@@ -357,8 +357,6 @@ Status getTypeCPortNamesHelper(std::unordered_map<std::string, bool> *names) {
|
|||||||
|
|
||||||
dp = opendir("/sys/class/typec");
|
dp = opendir("/sys/class/typec");
|
||||||
if (dp != NULL) {
|
if (dp != NULL) {
|
||||||
int32_t ports = 0;
|
|
||||||
int32_t current = 0;
|
|
||||||
struct dirent *ep;
|
struct dirent *ep;
|
||||||
|
|
||||||
while ((ep = readdir(dp))) {
|
while ((ep = readdir(dp))) {
|
||||||
|
|||||||
@@ -17,6 +17,10 @@ cc_binary {
|
|||||||
relative_install_path: "hw",
|
relative_install_path: "hw",
|
||||||
init_rc: ["android.hardware.vibrator@1.1-service.wahoo.rc"],
|
init_rc: ["android.hardware.vibrator@1.1-service.wahoo.rc"],
|
||||||
srcs: ["service.cpp", "Vibrator.cpp"],
|
srcs: ["service.cpp", "Vibrator.cpp"],
|
||||||
|
cflags: [
|
||||||
|
"-Wall",
|
||||||
|
"-Werror",
|
||||||
|
],
|
||||||
shared_libs: [
|
shared_libs: [
|
||||||
"libhidlbase",
|
"libhidlbase",
|
||||||
"libcutils",
|
"libcutils",
|
||||||
|
|||||||
@@ -193,9 +193,7 @@ status_t registerVibratorService() {
|
|||||||
std::move(state), std::move(rtpinput), std::move(mode),
|
std::move(state), std::move(rtpinput), std::move(mode),
|
||||||
std::move(sequencer), std::move(scale), std::move(ctrlloop), std::move(lptrigger));
|
std::move(sequencer), std::move(scale), std::move(ctrlloop), std::move(lptrigger));
|
||||||
|
|
||||||
vibrator->registerAsService();
|
return vibrator->registerAsService();
|
||||||
|
|
||||||
return OK;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
int main() {
|
int main() {
|
||||||
|
|||||||
Reference in New Issue
Block a user