commit | 34cd60f0751c22200988d3a462bdf00e2ed36edd | [log] [tgz] |
---|---|---|
author | Josh Gao <jmgao@google.com> | Wed Apr 22 17:48:43 2020 -0700 |
committer | Josh Gao <jmgao@google.com> | Mon Apr 27 14:38:28 2020 -0700 |
tree | cec82838a8b1000986f31326a442ad4715d28e96 | |
parent | 0e778dc79400d32c990da68f192681c0c8b94461 [diff] |
adb: mark kMaxProcessNameLength as constexpr. Otherwise, the build fails with -O0. Test: mma with -O0 in adb_defaults Change-Id: Id10e320afc183eda5b46555b3b50dd8ffd84a700
diff --git a/adb/libs/adbconnection/include/adbconnection/process_info.h b/adb/libs/adbconnection/include/adbconnection/process_info.h index 86d3259..d226699 100644 --- a/adb/libs/adbconnection/include/adbconnection/process_info.h +++ b/adb/libs/adbconnection/include/adbconnection/process_info.h
@@ -21,7 +21,7 @@ #include <string> struct ProcessInfo { - const static size_t kMaxArchNameLength = 16; + static constexpr size_t kMaxArchNameLength = 16; uint64_t pid; bool debuggable;