Skip to content

Commit

Permalink
Use -Werror in device/google/marlin/usb
Browse files Browse the repository at this point in the history
am: acc2586

Change-Id: I76c1096c858b41eb27ef8636b3f2c18fb3259ba4
  • Loading branch information
chih-hung authored and android-build-merger committed Nov 7, 2017
2 parents 556d84f + acc2586 commit 75aa28b
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 2 deletions.
1 change: 1 addition & 0 deletions usb/Android.bp
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ cc_binary {
relative_install_path: "hw",
init_rc: ["android.hardware.usb@1.1-service.marlin.rc"],
srcs: ["service.cpp", "Usb.cpp"],
cflags: ["-Wall", "-Werror"],
shared_libs: [
"libbase",
"libhidlbase",
Expand Down
2 changes: 0 additions & 2 deletions usb/Usb.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -331,8 +331,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))) {
Expand Down

0 comments on commit 75aa28b

Please sign in to comment.