You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Fixes `-Winvalid-offset` warning (treated as an error) when building
with clang 18.1.8 from Visual Studio 2022 17.12.4:
FAILED:
deps/googlebenchmark/src/CMakeFiles/benchmark.dir/Debug/benchmark.cc.obj
...
.../googlebenchmark-source/src/benchmark.cc:191:17: error: offset of on
non-standard-layout type 'State' [-Werror,-Winvalid-offsetof]
191 | static_assert(offsetof(State, error_occurred_) <=
| ^ ~~~~~~~~~~~~~~~
...\clang\18\include\__stddef_offsetof.h:16:24: note: expanded from
macro 'offsetof'
16 | #define offsetof(t, d) __builtin_offsetof(t, d)
|
Earlier issues with Android builds were fixed in:
7702e72 scripts/build-android-*.sh: bump ANDROID_PLATFORM to 24
PiperOrigin-RevId: 722840056
0 commit comments