From 34cd60f0751c22200988d3a462bdf00e2ed36edd Mon Sep 17 00:00:00 2001 From: Josh Gao Date: Wed, 22 Apr 2020 17:48:43 -0700 Subject: [PATCH] adb: mark kMaxProcessNameLength as constexpr. Otherwise, the build fails with -O0. Test: mma with -O0 in adb_defaults Change-Id: Id10e320afc183eda5b46555b3b50dd8ffd84a700 --- adb/libs/adbconnection/include/adbconnection/process_info.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/adb/libs/adbconnection/include/adbconnection/process_info.h b/adb/libs/adbconnection/include/adbconnection/process_info.h index 86d325914..d22669978 100644 --- a/adb/libs/adbconnection/include/adbconnection/process_info.h +++ b/adb/libs/adbconnection/include/adbconnection/process_info.h @@ -21,7 +21,7 @@ #include struct ProcessInfo { - const static size_t kMaxArchNameLength = 16; + static constexpr size_t kMaxArchNameLength = 16; uint64_t pid; bool debuggable;